Skip to content

Commit

Permalink
fix(core): Make ProductOption type fields non-nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Jul 9, 2019
1 parent 743998d commit 0ea150c
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 27 deletions.
6 changes: 3 additions & 3 deletions packages/common/src/generated-shop-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1590,9 +1590,9 @@ export type ProductOption = Node & {
id: Scalars['ID'];
createdAt: Scalars['DateTime'];
updatedAt: Scalars['DateTime'];
languageCode?: Maybe<LanguageCode>;
code?: Maybe<Scalars['String']>;
name?: Maybe<Scalars['String']>;
languageCode: LanguageCode;
code: Scalars['String'];
name: Scalars['String'];
groupId: Scalars['ID'];
translations: Array<ProductOptionTranslation>;
customFields?: Maybe<Scalars['JSON']>;
Expand Down
16 changes: 8 additions & 8 deletions packages/common/src/generated-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1602,8 +1602,8 @@ export type Mutation = {
updateFacetValues: Array<FacetValue>,
/** Delete one or more FacetValues */
deleteFacetValues: Array<DeletionResponse>,
updateGlobalSettings: GlobalSettings,
importProducts?: Maybe<ImportInfo>,
updateGlobalSettings: GlobalSettings,
settlePayment: Payment,
fulfillOrder: Fulfillment,
cancelOrder: Order,
Expand Down Expand Up @@ -1823,13 +1823,13 @@ export type MutationDeleteFacetValuesArgs = {
};


export type MutationUpdateGlobalSettingsArgs = {
input: UpdateGlobalSettingsInput
export type MutationImportProductsArgs = {
csvFile: Scalars['Upload']
};


export type MutationImportProductsArgs = {
csvFile: Scalars['Upload']
export type MutationUpdateGlobalSettingsArgs = {
input: UpdateGlobalSettingsInput
};


Expand Down Expand Up @@ -2297,9 +2297,9 @@ export type ProductOption = Node & {
id: Scalars['ID'],
createdAt: Scalars['DateTime'],
updatedAt: Scalars['DateTime'],
languageCode?: Maybe<LanguageCode>,
code?: Maybe<Scalars['String']>,
name?: Maybe<Scalars['String']>,
languageCode: LanguageCode,
code: Scalars['String'],
name: Scalars['String'],
groupId: Scalars['ID'],
translations: Array<ProductOptionTranslation>,
customFields?: Maybe<Scalars['JSON']>,
Expand Down
16 changes: 8 additions & 8 deletions packages/core/e2e/graphql/generated-e2e-admin-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1599,8 +1599,8 @@ export type Mutation = {
updateFacetValues: Array<FacetValue>;
/** Delete one or more FacetValues */
deleteFacetValues: Array<DeletionResponse>;
updateGlobalSettings: GlobalSettings;
importProducts?: Maybe<ImportInfo>;
updateGlobalSettings: GlobalSettings;
settlePayment: Payment;
fulfillOrder: Fulfillment;
cancelOrder: Order;
Expand Down Expand Up @@ -1790,14 +1790,14 @@ export type MutationDeleteFacetValuesArgs = {
force?: Maybe<Scalars['Boolean']>;
};

export type MutationUpdateGlobalSettingsArgs = {
input: UpdateGlobalSettingsInput;
};

export type MutationImportProductsArgs = {
csvFile: Scalars['Upload'];
};

export type MutationUpdateGlobalSettingsArgs = {
input: UpdateGlobalSettingsInput;
};

export type MutationSettlePaymentArgs = {
id: Scalars['ID'];
};
Expand Down Expand Up @@ -2227,9 +2227,9 @@ export type ProductOption = Node & {
id: Scalars['ID'];
createdAt: Scalars['DateTime'];
updatedAt: Scalars['DateTime'];
languageCode?: Maybe<LanguageCode>;
code?: Maybe<Scalars['String']>;
name?: Maybe<Scalars['String']>;
languageCode: LanguageCode;
code: Scalars['String'];
name: Scalars['String'];
groupId: Scalars['ID'];
translations: Array<ProductOptionTranslation>;
customFields?: Maybe<Scalars['JSON']>;
Expand Down
6 changes: 3 additions & 3 deletions packages/core/e2e/graphql/generated-e2e-shop-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1590,9 +1590,9 @@ export type ProductOption = Node & {
id: Scalars['ID'];
createdAt: Scalars['DateTime'];
updatedAt: Scalars['DateTime'];
languageCode?: Maybe<LanguageCode>;
code?: Maybe<Scalars['String']>;
name?: Maybe<Scalars['String']>;
languageCode: LanguageCode;
code: Scalars['String'];
name: Scalars['String'];
groupId: Scalars['ID'];
translations: Array<ProductOptionTranslation>;
customFields?: Maybe<Scalars['JSON']>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ type ProductOption implements Node {
id: ID!
createdAt: DateTime!
updatedAt: DateTime!
languageCode: LanguageCode
code: String
name: String
languageCode: LanguageCode!
code: String!
name: String!
groupId: ID!
translations: [ProductOptionTranslation!]!
}
Expand Down
2 changes: 1 addition & 1 deletion schema-admin.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion schema-shop.json

Large diffs are not rendered by default.

0 comments on commit 0ea150c

Please sign in to comment.