Procházet zdrojové kódy

chore: Update graphql-code-generator

Michael Bromley před 5 roky
rodič
revize
09ae54fae8

+ 6 - 6
package.json

@@ -29,12 +29,12 @@
   "devDependencies": {
     "@commitlint/cli": "^8.2.0",
     "@commitlint/config-conventional": "^8.2.0",
-    "@graphql-codegen/add": "1.2.0",
-    "@graphql-codegen/cli": "1.2.0",
-    "@graphql-codegen/fragment-matcher": "1.4.0",
-    "@graphql-codegen/typescript": "1.2.0",
-    "@graphql-codegen/typescript-compatibility": "1.2.0",
-    "@graphql-codegen/typescript-operations": "1.2.0",
+    "@graphql-codegen/add": "1.13.1",
+    "@graphql-codegen/cli": "1.13.1",
+    "@graphql-codegen/fragment-matcher": "1.13.1",
+    "@graphql-codegen/typescript": "1.13.1",
+    "@graphql-codegen/typescript-compatibility": "1.13.1",
+    "@graphql-codegen/typescript-operations": "1.13.1",
     "@types/graphql": "^14.0.5",
     "@types/jest": "^25.1.4",
     "@types/klaw-sync": "^6.0.0",

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 455 - 459
packages/admin-ui/src/lib/core/src/common/generated-types.ts


+ 55 - 57
packages/admin-ui/src/lib/core/src/common/introspection-result.ts

@@ -11,163 +11,162 @@ export interface IntrospectionResultData {
         }[];
     };
 }
-
 const result: IntrospectionResultData = {
     __schema: {
         types: [
             {
                 kind: 'INTERFACE',
-                name: 'PaginatedList',
+                name: 'Node',
                 possibleTypes: [
                     {
-                        name: 'AdministratorList',
+                        name: 'Channel',
                     },
                     {
-                        name: 'AssetList',
+                        name: 'Zone',
                     },
                     {
-                        name: 'CollectionList',
+                        name: 'Country',
                     },
                     {
-                        name: 'ProductVariantList',
+                        name: 'Administrator',
                     },
                     {
-                        name: 'OrderList',
+                        name: 'User',
                     },
                     {
-                        name: 'HistoryEntryList',
+                        name: 'Role',
                     },
                     {
-                        name: 'CountryList',
+                        name: 'Asset',
                     },
                     {
-                        name: 'CustomerList',
+                        name: 'Collection',
                     },
                     {
-                        name: 'FacetList',
+                        name: 'ProductVariant',
                     },
                     {
-                        name: 'PaymentMethodList',
+                        name: 'StockAdjustment',
                     },
                     {
-                        name: 'ProductList',
+                        name: 'Sale',
                     },
                     {
-                        name: 'PromotionList',
+                        name: 'OrderLine',
                     },
                     {
-                        name: 'RoleList',
+                        name: 'OrderItem',
                     },
                     {
-                        name: 'ShippingMethodList',
+                        name: 'Fulfillment',
                     },
                     {
-                        name: 'TaxRateList',
+                        name: 'Order',
                     },
-                ],
-            },
-            {
-                kind: 'INTERFACE',
-                name: 'Node',
-                possibleTypes: [
                     {
-                        name: 'Administrator',
+                        name: 'Customer',
                     },
                     {
-                        name: 'User',
+                        name: 'Address',
                     },
                     {
-                        name: 'Role',
+                        name: 'Promotion',
                     },
                     {
-                        name: 'Channel',
+                        name: 'Payment',
                     },
                     {
-                        name: 'Zone',
+                        name: 'Refund',
                     },
                     {
-                        name: 'Country',
+                        name: 'ShippingMethod',
                     },
                     {
-                        name: 'Asset',
+                        name: 'HistoryEntry',
                     },
                     {
-                        name: 'Collection',
+                        name: 'Cancellation',
                     },
                     {
-                        name: 'ProductVariant',
+                        name: 'Return',
                     },
                     {
-                        name: 'StockAdjustment',
+                        name: 'TaxRate',
                     },
                     {
-                        name: 'Sale',
+                        name: 'TaxCategory',
                     },
                     {
-                        name: 'OrderLine',
+                        name: 'CustomerGroup',
                     },
                     {
-                        name: 'OrderItem',
+                        name: 'ProductOption',
                     },
                     {
-                        name: 'Fulfillment',
+                        name: 'FacetValue',
                     },
                     {
-                        name: 'Order',
+                        name: 'Facet',
                     },
                     {
-                        name: 'Customer',
+                        name: 'PaymentMethod',
                     },
                     {
-                        name: 'Address',
+                        name: 'Product',
                     },
                     {
-                        name: 'Promotion',
+                        name: 'ProductOptionGroup',
                     },
+                ],
+            },
+            {
+                kind: 'INTERFACE',
+                name: 'PaginatedList',
+                possibleTypes: [
                     {
-                        name: 'Payment',
+                        name: 'AdministratorList',
                     },
                     {
-                        name: 'Refund',
+                        name: 'AssetList',
                     },
                     {
-                        name: 'ShippingMethod',
+                        name: 'ProductVariantList',
                     },
                     {
-                        name: 'HistoryEntry',
+                        name: 'OrderList',
                     },
                     {
-                        name: 'Cancellation',
+                        name: 'HistoryEntryList',
                     },
                     {
-                        name: 'Return',
+                        name: 'CollectionList',
                     },
                     {
-                        name: 'TaxRate',
+                        name: 'CountryList',
                     },
                     {
-                        name: 'TaxCategory',
+                        name: 'CustomerList',
                     },
                     {
-                        name: 'CustomerGroup',
+                        name: 'FacetList',
                     },
                     {
-                        name: 'ProductOption',
+                        name: 'PaymentMethodList',
                     },
                     {
-                        name: 'FacetValue',
+                        name: 'ProductList',
                     },
                     {
-                        name: 'Facet',
+                        name: 'PromotionList',
                     },
                     {
-                        name: 'PaymentMethod',
+                        name: 'RoleList',
                     },
                     {
-                        name: 'ProductOptionGroup',
+                        name: 'ShippingMethodList',
                     },
                     {
-                        name: 'Product',
+                        name: 'TaxRateList',
                     },
                 ],
             },
@@ -270,5 +269,4 @@ const result: IntrospectionResultData = {
         ],
     },
 };
-
 export default result;

+ 17 - 19
packages/asset-server-plugin/e2e/graphql/generated-e2e-asset-server-plugin-types.ts

@@ -1,5 +1,6 @@
 // tslint:disable
 export type Maybe<T> = T | null;
+
 /** All built-in and custom scalars, mapped to their actual values */
 export type Scalars = {
     ID: string;
@@ -7,14 +8,8 @@ export type Scalars = {
     Boolean: boolean;
     Int: number;
     Float: number;
-    /** A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the
-     * `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO
-     * 8601 standard for representation of dates and times using the Gregorian calendar.
-     */
     DateTime: any;
-    /** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */
     JSON: any;
-    /** The `Upload` scalar type represents a file upload. */
     Upload: any;
 };
 
@@ -584,7 +579,8 @@ export type CreateZoneInput = {
     memberIds?: Maybe<Array<Scalars['ID']>>;
 };
 
-/** @description
+/**
+ * @description
  * ISO 4217 currency code
  *
  * @docsCategory common
@@ -984,7 +980,6 @@ export type CustomerSortParameter = {
 };
 
 export type CustomField = {
-    __typename?: 'CustomField';
     name: Scalars['String'];
     type: Scalars['String'];
     label?: Maybe<Array<LocalizedString>>;
@@ -1030,7 +1025,8 @@ export type DateRange = {
     end: Scalars['DateTime'];
 };
 
-/** Expects the same validation formats as the <input type="datetime-local"> HTML element.
+/**
+ * Expects the same validation formats as the <input type="datetime-local"> HTML element.
  * See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local#Additional_attributes
  */
 export type DateTimeCustomFieldConfig = CustomField & {
@@ -1132,7 +1128,8 @@ export type FacetValue = Node & {
     customFields?: Maybe<Scalars['JSON']>;
 };
 
-/** Which FacetValues are present in the products returned
+/**
+ * Which FacetValues are present in the products returned
  * by the search, and in what quantity.
  */
 export type FacetValueResult = {
@@ -1290,7 +1287,8 @@ export enum JobState {
     FAILED = 'FAILED',
 }
 
-/** @description
+/**
+ * @description
  * ISO 639-1 language code
  *
  * @docsCategory common
@@ -2152,7 +2150,6 @@ export type MutationRemoveMembersFromZoneArgs = {
 };
 
 export type Node = {
-    __typename?: 'Node';
     id: Scalars['ID'];
 };
 
@@ -2301,7 +2298,6 @@ export type OrderSortParameter = {
 };
 
 export type PaginatedList = {
-    __typename?: 'PaginatedList';
     items: Array<Node>;
     totalItems: Scalars['Int'];
 };
@@ -2357,7 +2353,8 @@ export type PaymentMethodSortParameter = {
     code?: Maybe<SortOrder>;
 };
 
-/** "
+/**
+ * "
  * @description
  * Permissions for administrators and customers. Used to control access to
  * GraphQL resolvers via the {@link Allow} decorator.
@@ -3004,10 +3001,12 @@ export type SearchResult = {
     slug: Scalars['String'];
     productId: Scalars['ID'];
     productName: Scalars['String'];
+    /** @deprecated Use `productAsset.preview` instead */
     productPreview: Scalars['String'];
     productAsset?: Maybe<SearchResultAsset>;
     productVariantId: Scalars['ID'];
     productVariantName: Scalars['String'];
+    /** @deprecated Use `productVariantAsset.preview` instead */
     productVariantPreview: Scalars['String'];
     productVariantAsset?: Maybe<SearchResultAsset>;
     price: SearchResultPrice;
@@ -3118,7 +3117,6 @@ export type StockAdjustment = Node &
     };
 
 export type StockMovement = {
-    __typename?: 'StockMovement';
     id: Scalars['ID'];
     createdAt: Scalars['DateTime'];
     updatedAt: Scalars['DateTime'];
@@ -3463,6 +3461,7 @@ export type Zone = Node & {
     name: Scalars['String'];
     members: Array<Country>;
 };
+
 export type CreateAssetsMutationVariables = {
     input: Array<CreateAssetInput>;
 };
@@ -3470,15 +3469,14 @@ export type CreateAssetsMutationVariables = {
 export type CreateAssetsMutation = { __typename?: 'Mutation' } & {
     createAssets: Array<
         { __typename?: 'Asset' } & Pick<Asset, 'id' | 'name' | 'source' | 'preview'> & {
-                focalPoint: Maybe<{ __typename?: 'Coordinate' } & Pick<Coordinate, 'x' | 'y'>>;
+                focalPoint?: Maybe<{ __typename?: 'Coordinate' } & Pick<Coordinate, 'x' | 'y'>>;
             }
     >;
 };
+
 export namespace CreateAssets {
     export type Variables = CreateAssetsMutationVariables;
     export type Mutation = CreateAssetsMutation;
     export type CreateAssets = NonNullable<CreateAssetsMutation['createAssets'][0]>;
-    export type FocalPoint = NonNullable<
-        (NonNullable<CreateAssetsMutation['createAssets'][0]>)['focalPoint']
-    >;
+    export type FocalPoint = NonNullable<NonNullable<CreateAssetsMutation['createAssets'][0]>['focalPoint']>;
 }

+ 27 - 22
packages/common/src/generated-shop-types.ts

@@ -1,5 +1,6 @@
 // tslint:disable
 export type Maybe<T> = T | null;
+
 /** All built-in and custom scalars, mapped to their actual values */
 export type Scalars = {
     ID: string;
@@ -7,14 +8,8 @@ export type Scalars = {
     Boolean: boolean;
     Int: number;
     Float: number;
-    /** A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the
-     * `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO
-     * 8601 standard for representation of dates and times using the Gregorian calendar.
-     */
     DateTime: any;
-    /** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */
     JSON: any;
-    /** The `Upload` scalar type represents a file upload. */
     Upload: any;
 };
 
@@ -308,7 +303,8 @@ export type CreateCustomerInput = {
     customFields?: Maybe<Scalars['JSON']>;
 };
 
-/** @description
+/**
+ * @description
  * ISO 4217 currency code
  *
  * @docsCategory common
@@ -680,7 +676,6 @@ export type CustomerList = PaginatedList & {
 };
 
 export type CustomField = {
-    __typename?: 'CustomField';
     name: Scalars['String'];
     type: Scalars['String'];
     label?: Maybe<Array<LocalizedString>>;
@@ -726,7 +721,8 @@ export type DateRange = {
     end: Scalars['DateTime'];
 };
 
-/** Expects the same validation formats as the <input type="datetime-local"> HTML element.
+/**
+ * Expects the same validation formats as the <input type="datetime-local"> HTML element.
  * See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local#Additional_attributes
  */
 export type DateTimeCustomFieldConfig = CustomField & {
@@ -796,7 +792,8 @@ export type FacetValue = Node & {
     customFields?: Maybe<Scalars['JSON']>;
 };
 
-/** Which FacetValues are present in the products returned
+/**
+ * Which FacetValues are present in the products returned
  * by the search, and in what quantity.
  */
 export type FacetValueResult = {
@@ -916,7 +913,8 @@ export type IntCustomFieldConfig = CustomField & {
     step?: Maybe<Scalars['Int']>;
 };
 
-/** @description
+/**
+ * @description
  * ISO 639-1 language code
  *
  * @docsCategory common
@@ -1316,12 +1314,14 @@ export type LoginResult = {
 
 export type Mutation = {
     __typename?: 'Mutation';
-    /** Adds an item to the order. If custom fields are defined on the OrderLine
+    /**
+     * Adds an item to the order. If custom fields are defined on the OrderLine
      * entity, a third argument 'customFields' will be available.
      */
     addItemToOrder?: Maybe<Order>;
     removeOrderLine?: Maybe<Order>;
-    /** Adjusts an OrderLine. If custom fields are defined on the OrderLine entity, a
+    /**
+     * Adjusts an OrderLine. If custom fields are defined on the OrderLine entity, a
      * third argument 'customFields' will be available.
      */
     adjustOrderLine?: Maybe<Order>;
@@ -1336,7 +1336,8 @@ export type Mutation = {
     setCustomerForOrder?: Maybe<Order>;
     login: LoginResult;
     logout: Scalars['Boolean'];
-    /** Regenerate and send a verification token for a new Customer registration. Only
+    /**
+     * Regenerate and send a verification token for a new Customer registration. Only
      * applicable if `authOptions.requireVerification` is set to true.
      */
     refreshCustomerVerification: Scalars['Boolean'];
@@ -1350,19 +1351,22 @@ export type Mutation = {
     updateCustomerAddress: Address;
     /** Delete an existing Address */
     deleteCustomerAddress: Scalars['Boolean'];
-    /** Verify a Customer email address with the token sent to that address. Only
+    /**
+     * Verify a Customer email address with the token sent to that address. Only
      * applicable if `authOptions.requireVerification` is set to true.
      */
     verifyCustomerAccount: LoginResult;
     /** Update the password of the active Customer */
     updateCustomerPassword?: Maybe<Scalars['Boolean']>;
-    /** Request to update the emailAddress of the active Customer. If `authOptions.requireVerification` is enabled
+    /**
+     * Request to update the emailAddress of the active Customer. If `authOptions.requireVerification` is enabled
      * (as is the default), then the `identifierChangeToken` will be assigned to the current User and
      * a IdentifierChangeRequestEvent will be raised. This can then be used e.g. by the EmailPlugin to email
      * that verification token to the Customer, which is then used to verify the change of email address.
      */
     requestUpdateCustomerEmailAddress?: Maybe<Scalars['Boolean']>;
-    /** Confirm the update of the emailAddress with the provided token, which has been generated by the
+    /**
+     * Confirm the update of the emailAddress with the provided token, which has been generated by the
      * `requestUpdateCustomerEmailAddress` mutation.
      */
     updateCustomerEmailAddress?: Maybe<Scalars['Boolean']>;
@@ -1473,7 +1477,6 @@ export type MutationResetPasswordArgs = {
 };
 
 export type Node = {
-    __typename?: 'Node';
     id: Scalars['ID'];
 };
 
@@ -1617,7 +1620,6 @@ export type OrderSortParameter = {
 };
 
 export type PaginatedList = {
-    __typename?: 'PaginatedList';
     items: Array<Node>;
     totalItems: Scalars['Int'];
 };
@@ -1640,7 +1642,8 @@ export type Payment = Node & {
 export type PaymentInput = {
     /** This field should correspond to the `code` property of a PaymentMethodHandler. */
     method: Scalars['String'];
-    /** This field should contain arbitrary data passed to the specified PaymentMethodHandler's `createPayment()` method
+    /**
+     * This field should contain arbitrary data passed to the specified PaymentMethodHandler's `createPayment()` method
      * as the "metadata" argument. For example, it could contain an ID for the payment and other
      * data generated by the payment provider.
      */
@@ -1657,7 +1660,8 @@ export type PaymentMethod = Node & {
     configArgs: Array<ConfigArg>;
 };
 
-/** "
+/**
+ * "
  * @description
  * Permissions for administrators and customers. Used to control access to
  * GraphQL resolvers via the {@link Allow} decorator.
@@ -2043,10 +2047,12 @@ export type SearchResult = {
     slug: Scalars['String'];
     productId: Scalars['ID'];
     productName: Scalars['String'];
+    /** @deprecated Use `productAsset.preview` instead */
     productPreview: Scalars['String'];
     productAsset?: Maybe<SearchResultAsset>;
     productVariantId: Scalars['ID'];
     productVariantName: Scalars['String'];
+    /** @deprecated Use `productVariantAsset.preview` instead */
     productVariantPreview: Scalars['String'];
     productVariantAsset?: Maybe<SearchResultAsset>;
     price: SearchResultPrice;
@@ -2130,7 +2136,6 @@ export type StockAdjustment = Node &
     };
 
 export type StockMovement = {
-    __typename?: 'StockMovement';
     id: Scalars['ID'];
     createdAt: Scalars['DateTime'];
     updatedAt: Scalars['DateTime'];

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 451 - 455
packages/common/src/generated-types.ts


Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 138 - 138
packages/core/e2e/graphql/generated-e2e-admin-types.ts


+ 81 - 72
packages/core/e2e/graphql/generated-e2e-shop-types.ts

@@ -1,5 +1,6 @@
 // tslint:disable
 export type Maybe<T> = T | null;
+
 /** All built-in and custom scalars, mapped to their actual values */
 export type Scalars = {
     ID: string;
@@ -7,14 +8,8 @@ export type Scalars = {
     Boolean: boolean;
     Int: number;
     Float: number;
-    /** A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the
-     * `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO
-     * 8601 standard for representation of dates and times using the Gregorian calendar.
-     */
     DateTime: any;
-    /** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */
     JSON: any;
-    /** The `Upload` scalar type represents a file upload. */
     Upload: any;
 };
 
@@ -308,7 +303,8 @@ export type CreateCustomerInput = {
     customFields?: Maybe<Scalars['JSON']>;
 };
 
-/** @description
+/**
+ * @description
  * ISO 4217 currency code
  *
  * @docsCategory common
@@ -680,7 +676,6 @@ export type CustomerList = PaginatedList & {
 };
 
 export type CustomField = {
-    __typename?: 'CustomField';
     name: Scalars['String'];
     type: Scalars['String'];
     label?: Maybe<Array<LocalizedString>>;
@@ -726,7 +721,8 @@ export type DateRange = {
     end: Scalars['DateTime'];
 };
 
-/** Expects the same validation formats as the <input type="datetime-local"> HTML element.
+/**
+ * Expects the same validation formats as the <input type="datetime-local"> HTML element.
  * See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local#Additional_attributes
  */
 export type DateTimeCustomFieldConfig = CustomField & {
@@ -796,7 +792,8 @@ export type FacetValue = Node & {
     customFields?: Maybe<Scalars['JSON']>;
 };
 
-/** Which FacetValues are present in the products returned
+/**
+ * Which FacetValues are present in the products returned
  * by the search, and in what quantity.
  */
 export type FacetValueResult = {
@@ -916,7 +913,8 @@ export type IntCustomFieldConfig = CustomField & {
     step?: Maybe<Scalars['Int']>;
 };
 
-/** @description
+/**
+ * @description
  * ISO 639-1 language code
  *
  * @docsCategory common
@@ -1316,12 +1314,14 @@ export type LoginResult = {
 
 export type Mutation = {
     __typename?: 'Mutation';
-    /** Adds an item to the order. If custom fields are defined on the OrderLine
+    /**
+     * Adds an item to the order. If custom fields are defined on the OrderLine
      * entity, a third argument 'customFields' will be available.
      */
     addItemToOrder?: Maybe<Order>;
     removeOrderLine?: Maybe<Order>;
-    /** Adjusts an OrderLine. If custom fields are defined on the OrderLine entity, a
+    /**
+     * Adjusts an OrderLine. If custom fields are defined on the OrderLine entity, a
      * third argument 'customFields' will be available.
      */
     adjustOrderLine?: Maybe<Order>;
@@ -1336,7 +1336,8 @@ export type Mutation = {
     setCustomerForOrder?: Maybe<Order>;
     login: LoginResult;
     logout: Scalars['Boolean'];
-    /** Regenerate and send a verification token for a new Customer registration. Only
+    /**
+     * Regenerate and send a verification token for a new Customer registration. Only
      * applicable if `authOptions.requireVerification` is set to true.
      */
     refreshCustomerVerification: Scalars['Boolean'];
@@ -1350,19 +1351,22 @@ export type Mutation = {
     updateCustomerAddress: Address;
     /** Delete an existing Address */
     deleteCustomerAddress: Scalars['Boolean'];
-    /** Verify a Customer email address with the token sent to that address. Only
+    /**
+     * Verify a Customer email address with the token sent to that address. Only
      * applicable if `authOptions.requireVerification` is set to true.
      */
     verifyCustomerAccount: LoginResult;
     /** Update the password of the active Customer */
     updateCustomerPassword?: Maybe<Scalars['Boolean']>;
-    /** Request to update the emailAddress of the active Customer. If `authOptions.requireVerification` is enabled
+    /**
+     * Request to update the emailAddress of the active Customer. If `authOptions.requireVerification` is enabled
      * (as is the default), then the `identifierChangeToken` will be assigned to the current User and
      * a IdentifierChangeRequestEvent will be raised. This can then be used e.g. by the EmailPlugin to email
      * that verification token to the Customer, which is then used to verify the change of email address.
      */
     requestUpdateCustomerEmailAddress?: Maybe<Scalars['Boolean']>;
-    /** Confirm the update of the emailAddress with the provided token, which has been generated by the
+    /**
+     * Confirm the update of the emailAddress with the provided token, which has been generated by the
      * `requestUpdateCustomerEmailAddress` mutation.
      */
     updateCustomerEmailAddress?: Maybe<Scalars['Boolean']>;
@@ -1473,7 +1477,6 @@ export type MutationResetPasswordArgs = {
 };
 
 export type Node = {
-    __typename?: 'Node';
     id: Scalars['ID'];
 };
 
@@ -1617,7 +1620,6 @@ export type OrderSortParameter = {
 };
 
 export type PaginatedList = {
-    __typename?: 'PaginatedList';
     items: Array<Node>;
     totalItems: Scalars['Int'];
 };
@@ -1640,7 +1642,8 @@ export type Payment = Node & {
 export type PaymentInput = {
     /** This field should correspond to the `code` property of a PaymentMethodHandler. */
     method: Scalars['String'];
-    /** This field should contain arbitrary data passed to the specified PaymentMethodHandler's `createPayment()` method
+    /**
+     * This field should contain arbitrary data passed to the specified PaymentMethodHandler's `createPayment()` method
      * as the "metadata" argument. For example, it could contain an ID for the payment and other
      * data generated by the payment provider.
      */
@@ -1657,7 +1660,8 @@ export type PaymentMethod = Node & {
     configArgs: Array<ConfigArg>;
 };
 
-/** "
+/**
+ * "
  * @description
  * Permissions for administrators and customers. Used to control access to
  * GraphQL resolvers via the {@link Allow} decorator.
@@ -2043,10 +2047,12 @@ export type SearchResult = {
     slug: Scalars['String'];
     productId: Scalars['ID'];
     productName: Scalars['String'];
+    /** @deprecated Use `productAsset.preview` instead */
     productPreview: Scalars['String'];
     productAsset?: Maybe<SearchResultAsset>;
     productVariantId: Scalars['ID'];
     productVariantName: Scalars['String'];
+    /** @deprecated Use `productVariantAsset.preview` instead */
     productVariantPreview: Scalars['String'];
     productVariantAsset?: Maybe<SearchResultAsset>;
     price: SearchResultPrice;
@@ -2130,7 +2136,6 @@ export type StockAdjustment = Node &
     };
 
 export type StockMovement = {
-    __typename?: 'StockMovement';
     id: Scalars['ID'];
     createdAt: Scalars['DateTime'];
     updatedAt: Scalars['DateTime'];
@@ -2249,6 +2254,7 @@ export type Zone = Node & {
     name: Scalars['String'];
     members: Array<Country>;
 };
+
 export type TestOrderFragmentFragment = { __typename?: 'Order' } & Pick<
     Order,
     'id' | 'code' | 'state' | 'active' | 'total' | 'couponCodes' | 'shipping'
@@ -2264,12 +2270,12 @@ export type TestOrderFragmentFragment = { __typename?: 'Order' } & Pick<
                     productVariant: { __typename?: 'ProductVariant' } & Pick<ProductVariant, 'id'>;
                 }
         >;
-        shippingMethod: Maybe<
+        shippingMethod?: Maybe<
             { __typename?: 'ShippingMethod' } & Pick<ShippingMethod, 'id' | 'code' | 'description'>
         >;
-        customer: Maybe<
+        customer?: Maybe<
             { __typename?: 'Customer' } & Pick<Customer, 'id'> & {
-                    user: Maybe<{ __typename?: 'User' } & Pick<User, 'id' | 'identifier'>>;
+                    user?: Maybe<{ __typename?: 'User' } & Pick<User, 'id' | 'identifier'>>;
                 }
         >;
         history: { __typename?: 'HistoryEntryList' } & {
@@ -2283,7 +2289,7 @@ export type AddItemToOrderMutationVariables = {
 };
 
 export type AddItemToOrderMutation = { __typename?: 'Mutation' } & {
-    addItemToOrder: Maybe<
+    addItemToOrder?: Maybe<
         { __typename?: 'Order' } & Pick<Order, 'id' | 'code' | 'state' | 'active' | 'total'> & {
                 lines: Array<
                     { __typename?: 'OrderLine' } & Pick<OrderLine, 'id' | 'quantity'> & {
@@ -2390,7 +2396,7 @@ export type UpdateEmailAddressMutation = { __typename?: 'Mutation' } & Pick<
 export type GetActiveCustomerQueryVariables = {};
 
 export type GetActiveCustomerQuery = { __typename?: 'Query' } & {
-    activeCustomer: Maybe<{ __typename?: 'Customer' } & Pick<Customer, 'id' | 'emailAddress'>>;
+    activeCustomer?: Maybe<{ __typename?: 'Customer' } & Pick<Customer, 'id' | 'emailAddress'>>;
 };
 
 export type CreateAddressShopMutationVariables = {
@@ -2437,7 +2443,7 @@ export type UpdatePasswordMutation = { __typename?: 'Mutation' } & Pick<Mutation
 export type GetActiveOrderQueryVariables = {};
 
 export type GetActiveOrderQuery = { __typename?: 'Query' } & {
-    activeOrder: Maybe<{ __typename?: 'Order' } & TestOrderFragmentFragment>;
+    activeOrder?: Maybe<{ __typename?: 'Order' } & TestOrderFragmentFragment>;
 };
 
 export type AdjustItemQuantityMutationVariables = {
@@ -2446,7 +2452,7 @@ export type AdjustItemQuantityMutationVariables = {
 };
 
 export type AdjustItemQuantityMutation = { __typename?: 'Mutation' } & {
-    adjustOrderLine: Maybe<{ __typename?: 'Order' } & TestOrderFragmentFragment>;
+    adjustOrderLine?: Maybe<{ __typename?: 'Order' } & TestOrderFragmentFragment>;
 };
 
 export type RemoveItemFromOrderMutationVariables = {
@@ -2454,7 +2460,7 @@ export type RemoveItemFromOrderMutationVariables = {
 };
 
 export type RemoveItemFromOrderMutation = { __typename?: 'Mutation' } & {
-    removeOrderLine: Maybe<{ __typename?: 'Order' } & TestOrderFragmentFragment>;
+    removeOrderLine?: Maybe<{ __typename?: 'Order' } & TestOrderFragmentFragment>;
 };
 
 export type GetShippingMethodsQueryVariables = {};
@@ -2470,9 +2476,9 @@ export type SetShippingMethodMutationVariables = {
 };
 
 export type SetShippingMethodMutation = { __typename?: 'Mutation' } & {
-    setOrderShippingMethod: Maybe<
+    setOrderShippingMethod?: Maybe<
         { __typename?: 'Order' } & Pick<Order, 'shipping'> & {
-                shippingMethod: Maybe<
+                shippingMethod?: Maybe<
                     { __typename?: 'ShippingMethod' } & Pick<ShippingMethod, 'id' | 'code' | 'description'>
                 >;
             }
@@ -2484,9 +2490,9 @@ export type SetCustomerForOrderMutationVariables = {
 };
 
 export type SetCustomerForOrderMutation = { __typename?: 'Mutation' } & {
-    setCustomerForOrder: Maybe<
+    setCustomerForOrder?: Maybe<
         { __typename?: 'Order' } & Pick<Order, 'id'> & {
-                customer: Maybe<
+                customer?: Maybe<
                     { __typename?: 'Customer' } & Pick<
                         Customer,
                         'id' | 'emailAddress' | 'firstName' | 'lastName'
@@ -2501,7 +2507,7 @@ export type GetOrderByCodeQueryVariables = {
 };
 
 export type GetOrderByCodeQuery = { __typename?: 'Query' } & {
-    orderByCode: Maybe<{ __typename?: 'Order' } & TestOrderFragmentFragment>;
+    orderByCode?: Maybe<{ __typename?: 'Order' } & TestOrderFragmentFragment>;
 };
 
 export type GetOrderPromotionsByCodeQueryVariables = {
@@ -2509,7 +2515,7 @@ export type GetOrderPromotionsByCodeQueryVariables = {
 };
 
 export type GetOrderPromotionsByCodeQuery = { __typename?: 'Query' } & {
-    orderByCode: Maybe<
+    orderByCode?: Maybe<
         { __typename?: 'Order' } & {
             promotions: Array<{ __typename?: 'Promotion' } & Pick<Promotion, 'id' | 'name'>>;
         } & TestOrderFragmentFragment
@@ -2527,7 +2533,7 @@ export type TransitionToStateMutationVariables = {
 };
 
 export type TransitionToStateMutation = { __typename?: 'Mutation' } & {
-    transitionOrderToState: Maybe<{ __typename?: 'Order' } & Pick<Order, 'id' | 'state'>>;
+    transitionOrderToState?: Maybe<{ __typename?: 'Order' } & Pick<Order, 'id' | 'state'>>;
 };
 
 export type SetShippingAddressMutationVariables = {
@@ -2535,9 +2541,9 @@ export type SetShippingAddressMutationVariables = {
 };
 
 export type SetShippingAddressMutation = { __typename?: 'Mutation' } & {
-    setOrderShippingAddress: Maybe<
+    setOrderShippingAddress?: Maybe<
         { __typename?: 'Order' } & {
-            shippingAddress: Maybe<
+            shippingAddress?: Maybe<
                 { __typename?: 'OrderAddress' } & Pick<
                     OrderAddress,
                     | 'fullName'
@@ -2560,9 +2566,9 @@ export type AddPaymentToOrderMutationVariables = {
 };
 
 export type AddPaymentToOrderMutation = { __typename?: 'Mutation' } & {
-    addPaymentToOrder: Maybe<
+    addPaymentToOrder?: Maybe<
         { __typename?: 'Order' } & {
-            payments: Maybe<
+            payments?: Maybe<
                 Array<
                     { __typename?: 'Payment' } & Pick<
                         Payment,
@@ -2577,9 +2583,9 @@ export type AddPaymentToOrderMutation = { __typename?: 'Mutation' } & {
 export type GetActiveOrderPaymentsQueryVariables = {};
 
 export type GetActiveOrderPaymentsQuery = { __typename?: 'Query' } & {
-    activeOrder: Maybe<
+    activeOrder?: Maybe<
         { __typename?: 'Order' } & Pick<Order, 'id'> & {
-                payments: Maybe<
+                payments?: Maybe<
                     Array<
                         { __typename?: 'Payment' } & Pick<
                             Payment,
@@ -2604,11 +2610,13 @@ export type GetNextOrderStatesQuery = { __typename?: 'Query' } & Pick<Query, 'ne
 export type GetCustomerAddressesQueryVariables = {};
 
 export type GetCustomerAddressesQuery = { __typename?: 'Query' } & {
-    activeOrder: Maybe<
+    activeOrder?: Maybe<
         { __typename?: 'Order' } & {
-            customer: Maybe<
+            customer?: Maybe<
                 { __typename?: 'Customer' } & {
-                    addresses: Maybe<Array<{ __typename?: 'Address' } & Pick<Address, 'id' | 'streetLine1'>>>;
+                    addresses?: Maybe<
+                        Array<{ __typename?: 'Address' } & Pick<Address, 'id' | 'streetLine1'>>
+                    >;
                 }
             >;
         }
@@ -2618,9 +2626,9 @@ export type GetCustomerAddressesQuery = { __typename?: 'Query' } & {
 export type GetCustomerOrdersQueryVariables = {};
 
 export type GetCustomerOrdersQuery = { __typename?: 'Query' } & {
-    activeOrder: Maybe<
+    activeOrder?: Maybe<
         { __typename?: 'Order' } & {
-            customer: Maybe<
+            customer?: Maybe<
                 { __typename?: 'Customer' } & {
                     orders: { __typename?: 'OrderList' } & {
                         items: Array<{ __typename?: 'Order' } & Pick<Order, 'id'>>;
@@ -2636,7 +2644,7 @@ export type ApplyCouponCodeMutationVariables = {
 };
 
 export type ApplyCouponCodeMutation = { __typename?: 'Mutation' } & {
-    applyCouponCode: Maybe<{ __typename?: 'Order' } & TestOrderFragmentFragment>;
+    applyCouponCode?: Maybe<{ __typename?: 'Order' } & TestOrderFragmentFragment>;
 };
 
 export type RemoveCouponCodeMutationVariables = {
@@ -2644,16 +2652,17 @@ export type RemoveCouponCodeMutationVariables = {
 };
 
 export type RemoveCouponCodeMutation = { __typename?: 'Mutation' } & {
-    removeCouponCode: Maybe<{ __typename?: 'Order' } & TestOrderFragmentFragment>;
+    removeCouponCode?: Maybe<{ __typename?: 'Order' } & TestOrderFragmentFragment>;
 };
+
 export namespace TestOrderFragment {
     export type Fragment = TestOrderFragmentFragment;
     export type Adjustments = NonNullable<TestOrderFragmentFragment['adjustments'][0]>;
     export type Lines = NonNullable<TestOrderFragmentFragment['lines'][0]>;
-    export type ProductVariant = (NonNullable<TestOrderFragmentFragment['lines'][0]>)['productVariant'];
+    export type ProductVariant = NonNullable<TestOrderFragmentFragment['lines'][0]>['productVariant'];
     export type ShippingMethod = NonNullable<TestOrderFragmentFragment['shippingMethod']>;
     export type Customer = NonNullable<TestOrderFragmentFragment['customer']>;
-    export type User = NonNullable<(NonNullable<TestOrderFragmentFragment['customer']>)['user']>;
+    export type User = NonNullable<NonNullable<TestOrderFragmentFragment['customer']>['user']>;
     export type History = TestOrderFragmentFragment['history'];
     export type Items = NonNullable<TestOrderFragmentFragment['history']['items'][0]>;
 }
@@ -2662,12 +2671,12 @@ export namespace AddItemToOrder {
     export type Variables = AddItemToOrderMutationVariables;
     export type Mutation = AddItemToOrderMutation;
     export type AddItemToOrder = NonNullable<AddItemToOrderMutation['addItemToOrder']>;
-    export type Lines = NonNullable<(NonNullable<AddItemToOrderMutation['addItemToOrder']>)['lines'][0]>;
-    export type ProductVariant = (NonNullable<
-        (NonNullable<AddItemToOrderMutation['addItemToOrder']>)['lines'][0]
-    >)['productVariant'];
+    export type Lines = NonNullable<NonNullable<AddItemToOrderMutation['addItemToOrder']>['lines'][0]>;
+    export type ProductVariant = NonNullable<
+        NonNullable<AddItemToOrderMutation['addItemToOrder']>['lines'][0]
+    >['productVariant'];
     export type Adjustments = NonNullable<
-        (NonNullable<AddItemToOrderMutation['addItemToOrder']>)['adjustments'][0]
+        NonNullable<AddItemToOrderMutation['addItemToOrder']>['adjustments'][0]
     >;
 }
 
@@ -2782,7 +2791,7 @@ export namespace SetShippingMethod {
     export type Mutation = SetShippingMethodMutation;
     export type SetOrderShippingMethod = NonNullable<SetShippingMethodMutation['setOrderShippingMethod']>;
     export type ShippingMethod = NonNullable<
-        (NonNullable<SetShippingMethodMutation['setOrderShippingMethod']>)['shippingMethod']
+        NonNullable<SetShippingMethodMutation['setOrderShippingMethod']>['shippingMethod']
     >;
 }
 
@@ -2791,7 +2800,7 @@ export namespace SetCustomerForOrder {
     export type Mutation = SetCustomerForOrderMutation;
     export type SetCustomerForOrder = NonNullable<SetCustomerForOrderMutation['setCustomerForOrder']>;
     export type Customer = NonNullable<
-        (NonNullable<SetCustomerForOrderMutation['setCustomerForOrder']>)['customer']
+        NonNullable<SetCustomerForOrderMutation['setCustomerForOrder']>['customer']
     >;
 }
 
@@ -2806,7 +2815,7 @@ export namespace GetOrderPromotionsByCode {
     export type Query = GetOrderPromotionsByCodeQuery;
     export type OrderByCode = TestOrderFragmentFragment;
     export type Promotions = NonNullable<
-        (NonNullable<GetOrderPromotionsByCodeQuery['orderByCode']>)['promotions'][0]
+        NonNullable<GetOrderPromotionsByCodeQuery['orderByCode']>['promotions'][0]
     >;
 }
 
@@ -2827,7 +2836,7 @@ export namespace SetShippingAddress {
     export type Mutation = SetShippingAddressMutation;
     export type SetOrderShippingAddress = NonNullable<SetShippingAddressMutation['setOrderShippingAddress']>;
     export type ShippingAddress = NonNullable<
-        (NonNullable<SetShippingAddressMutation['setOrderShippingAddress']>)['shippingAddress']
+        NonNullable<SetShippingAddressMutation['setOrderShippingAddress']>['shippingAddress']
     >;
 }
 
@@ -2836,7 +2845,7 @@ export namespace AddPaymentToOrder {
     export type Mutation = AddPaymentToOrderMutation;
     export type AddPaymentToOrder = TestOrderFragmentFragment;
     export type Payments = NonNullable<
-        (NonNullable<(NonNullable<AddPaymentToOrderMutation['addPaymentToOrder']>)['payments']>)[0]
+        NonNullable<NonNullable<AddPaymentToOrderMutation['addPaymentToOrder']>['payments']>[0]
     >;
 }
 
@@ -2845,7 +2854,7 @@ export namespace GetActiveOrderPayments {
     export type Query = GetActiveOrderPaymentsQuery;
     export type ActiveOrder = NonNullable<GetActiveOrderPaymentsQuery['activeOrder']>;
     export type Payments = NonNullable<
-        (NonNullable<(NonNullable<GetActiveOrderPaymentsQuery['activeOrder']>)['payments']>)[0]
+        NonNullable<NonNullable<GetActiveOrderPaymentsQuery['activeOrder']>['payments']>[0]
     >;
 }
 
@@ -2858,11 +2867,11 @@ export namespace GetCustomerAddresses {
     export type Variables = GetCustomerAddressesQueryVariables;
     export type Query = GetCustomerAddressesQuery;
     export type ActiveOrder = NonNullable<GetCustomerAddressesQuery['activeOrder']>;
-    export type Customer = NonNullable<(NonNullable<GetCustomerAddressesQuery['activeOrder']>)['customer']>;
+    export type Customer = NonNullable<NonNullable<GetCustomerAddressesQuery['activeOrder']>['customer']>;
     export type Addresses = NonNullable<
-        (NonNullable<
-            (NonNullable<(NonNullable<GetCustomerAddressesQuery['activeOrder']>)['customer']>)['addresses']
-        >)[0]
+        NonNullable<
+            NonNullable<NonNullable<GetCustomerAddressesQuery['activeOrder']>['customer']>['addresses']
+        >[0]
     >;
 }
 
@@ -2870,12 +2879,12 @@ export namespace GetCustomerOrders {
     export type Variables = GetCustomerOrdersQueryVariables;
     export type Query = GetCustomerOrdersQuery;
     export type ActiveOrder = NonNullable<GetCustomerOrdersQuery['activeOrder']>;
-    export type Customer = NonNullable<(NonNullable<GetCustomerOrdersQuery['activeOrder']>)['customer']>;
-    export type Orders = (NonNullable<
-        (NonNullable<GetCustomerOrdersQuery['activeOrder']>)['customer']
-    >)['orders'];
+    export type Customer = NonNullable<NonNullable<GetCustomerOrdersQuery['activeOrder']>['customer']>;
+    export type Orders = NonNullable<
+        NonNullable<GetCustomerOrdersQuery['activeOrder']>['customer']
+    >['orders'];
     export type Items = NonNullable<
-        (NonNullable<(NonNullable<GetCustomerOrdersQuery['activeOrder']>)['customer']>)['orders']['items'][0]
+        NonNullable<NonNullable<GetCustomerOrdersQuery['activeOrder']>['customer']>['orders']['items'][0]
     >;
 }
 

+ 33 - 35
packages/elasticsearch-plugin/e2e/graphql/generated-e2e-elasticsearch-plugin-types.ts

@@ -1,5 +1,6 @@
 // tslint:disable
 export type Maybe<T> = T | null;
+
 /** All built-in and custom scalars, mapped to their actual values */
 export type Scalars = {
     ID: string;
@@ -7,14 +8,8 @@ export type Scalars = {
     Boolean: boolean;
     Int: number;
     Float: number;
-    /** A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the
-     * `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO
-     * 8601 standard for representation of dates and times using the Gregorian calendar.
-     */
     DateTime: any;
-    /** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */
     JSON: any;
-    /** The `Upload` scalar type represents a file upload. */
     Upload: any;
 };
 
@@ -584,7 +579,8 @@ export type CreateZoneInput = {
     memberIds?: Maybe<Array<Scalars['ID']>>;
 };
 
-/** @description
+/**
+ * @description
  * ISO 4217 currency code
  *
  * @docsCategory common
@@ -984,7 +980,6 @@ export type CustomerSortParameter = {
 };
 
 export type CustomField = {
-    __typename?: 'CustomField';
     name: Scalars['String'];
     type: Scalars['String'];
     label?: Maybe<Array<LocalizedString>>;
@@ -1030,7 +1025,8 @@ export type DateRange = {
     end: Scalars['DateTime'];
 };
 
-/** Expects the same validation formats as the <input type="datetime-local"> HTML element.
+/**
+ * Expects the same validation formats as the <input type="datetime-local"> HTML element.
  * See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local#Additional_attributes
  */
 export type DateTimeCustomFieldConfig = CustomField & {
@@ -1132,7 +1128,8 @@ export type FacetValue = Node & {
     customFields?: Maybe<Scalars['JSON']>;
 };
 
-/** Which FacetValues are present in the products returned
+/**
+ * Which FacetValues are present in the products returned
  * by the search, and in what quantity.
  */
 export type FacetValueResult = {
@@ -1290,7 +1287,8 @@ export enum JobState {
     FAILED = 'FAILED',
 }
 
-/** @description
+/**
+ * @description
  * ISO 639-1 language code
  *
  * @docsCategory common
@@ -2152,7 +2150,6 @@ export type MutationRemoveMembersFromZoneArgs = {
 };
 
 export type Node = {
-    __typename?: 'Node';
     id: Scalars['ID'];
 };
 
@@ -2301,7 +2298,6 @@ export type OrderSortParameter = {
 };
 
 export type PaginatedList = {
-    __typename?: 'PaginatedList';
     items: Array<Node>;
     totalItems: Scalars['Int'];
 };
@@ -2357,7 +2353,8 @@ export type PaymentMethodSortParameter = {
     code?: Maybe<SortOrder>;
 };
 
-/** "
+/**
+ * "
  * @description
  * Permissions for administrators and customers. Used to control access to
  * GraphQL resolvers via the {@link Allow} decorator.
@@ -3004,10 +3001,12 @@ export type SearchResult = {
     slug: Scalars['String'];
     productId: Scalars['ID'];
     productName: Scalars['String'];
+    /** @deprecated Use `productAsset.preview` instead */
     productPreview: Scalars['String'];
     productAsset?: Maybe<SearchResultAsset>;
     productVariantId: Scalars['ID'];
     productVariantName: Scalars['String'];
+    /** @deprecated Use `productVariantAsset.preview` instead */
     productVariantPreview: Scalars['String'];
     productVariantAsset?: Maybe<SearchResultAsset>;
     price: SearchResultPrice;
@@ -3118,7 +3117,6 @@ export type StockAdjustment = Node &
     };
 
 export type StockMovement = {
-    __typename?: 'StockMovement';
     id: Scalars['ID'];
     createdAt: Scalars['DateTime'];
     updatedAt: Scalars['DateTime'];
@@ -3463,6 +3461,7 @@ export type Zone = Node & {
     name: Scalars['String'];
     members: Array<Country>;
 };
+
 export type SearchProductsAdminQueryVariables = {
     input: SearchInput;
 };
@@ -3481,22 +3480,22 @@ export type SearchProductsAdminQuery = { __typename?: 'Query' } & {
                     | 'productVariantPreview'
                     | 'sku'
                 > & {
-                        productAsset: Maybe<
+                        productAsset?: Maybe<
                             { __typename?: 'SearchResultAsset' } & Pick<
                                 SearchResultAsset,
                                 'id' | 'preview'
                             > & {
-                                    focalPoint: Maybe<
+                                    focalPoint?: Maybe<
                                         { __typename?: 'Coordinate' } & Pick<Coordinate, 'x' | 'y'>
                                     >;
                                 }
                         >;
-                        productVariantAsset: Maybe<
+                        productVariantAsset?: Maybe<
                             { __typename?: 'SearchResultAsset' } & Pick<
                                 SearchResultAsset,
                                 'id' | 'preview'
                             > & {
-                                    focalPoint: Maybe<
+                                    focalPoint?: Maybe<
                                         { __typename?: 'Coordinate' } & Pick<Coordinate, 'x' | 'y'>
                                     >;
                                 }
@@ -3553,13 +3552,14 @@ export type GetJobInfoQueryVariables = {
 };
 
 export type GetJobInfoQuery = { __typename?: 'Query' } & {
-    job: Maybe<
+    job?: Maybe<
         { __typename?: 'JobInfo' } & Pick<
             JobInfo,
             'id' | 'name' | 'state' | 'progress' | 'duration' | 'result'
         >
     >;
 };
+
 type DiscriminateUnion<T, U> = T extends U ? T : never;
 
 type RequireField<T, TNames extends string> = T & { [P in TNames]: (T & { [name: string]: never })[P] };
@@ -3570,20 +3570,18 @@ export namespace SearchProductsAdmin {
     export type Search = SearchProductsAdminQuery['search'];
     export type Items = NonNullable<SearchProductsAdminQuery['search']['items'][0]>;
     export type ProductAsset = NonNullable<
-        (NonNullable<SearchProductsAdminQuery['search']['items'][0]>)['productAsset']
+        NonNullable<SearchProductsAdminQuery['search']['items'][0]>['productAsset']
     >;
     export type FocalPoint = NonNullable<
-        (NonNullable<
-            (NonNullable<SearchProductsAdminQuery['search']['items'][0]>)['productAsset']
-        >)['focalPoint']
+        NonNullable<NonNullable<SearchProductsAdminQuery['search']['items'][0]>['productAsset']>['focalPoint']
     >;
     export type ProductVariantAsset = NonNullable<
-        (NonNullable<SearchProductsAdminQuery['search']['items'][0]>)['productVariantAsset']
+        NonNullable<SearchProductsAdminQuery['search']['items'][0]>['productVariantAsset']
     >;
     export type _FocalPoint = NonNullable<
-        (NonNullable<
-            (NonNullable<SearchProductsAdminQuery['search']['items'][0]>)['productVariantAsset']
-        >)['focalPoint']
+        NonNullable<
+            NonNullable<SearchProductsAdminQuery['search']['items'][0]>['productVariantAsset']
+        >['focalPoint']
     >;
 }
 
@@ -3592,7 +3590,7 @@ export namespace SearchFacetValues {
     export type Query = SearchFacetValuesQuery;
     export type Search = SearchFacetValuesQuery['search'];
     export type FacetValues = NonNullable<SearchFacetValuesQuery['search']['facetValues'][0]>;
-    export type FacetValue = (NonNullable<SearchFacetValuesQuery['search']['facetValues'][0]>)['facetValue'];
+    export type FacetValue = NonNullable<SearchFacetValuesQuery['search']['facetValues'][0]>['facetValue'];
 }
 
 export namespace SearchGetPrices {
@@ -3600,22 +3598,22 @@ export namespace SearchGetPrices {
     export type Query = SearchGetPricesQuery;
     export type Search = SearchGetPricesQuery['search'];
     export type Items = NonNullable<SearchGetPricesQuery['search']['items'][0]>;
-    export type Price = (NonNullable<SearchGetPricesQuery['search']['items'][0]>)['price'];
+    export type Price = NonNullable<SearchGetPricesQuery['search']['items'][0]>['price'];
     export type PriceRangeInlineFragment = DiscriminateUnion<
-        RequireField<(NonNullable<SearchGetPricesQuery['search']['items'][0]>)['price'], '__typename'>,
+        RequireField<NonNullable<SearchGetPricesQuery['search']['items'][0]>['price'], '__typename'>,
         { __typename: 'PriceRange' }
     >;
     export type SinglePriceInlineFragment = DiscriminateUnion<
-        RequireField<(NonNullable<SearchGetPricesQuery['search']['items'][0]>)['price'], '__typename'>,
+        RequireField<NonNullable<SearchGetPricesQuery['search']['items'][0]>['price'], '__typename'>,
         { __typename: 'SinglePrice' }
     >;
-    export type PriceWithTax = (NonNullable<SearchGetPricesQuery['search']['items'][0]>)['priceWithTax'];
+    export type PriceWithTax = NonNullable<SearchGetPricesQuery['search']['items'][0]>['priceWithTax'];
     export type _PriceRangeInlineFragment = DiscriminateUnion<
-        RequireField<(NonNullable<SearchGetPricesQuery['search']['items'][0]>)['priceWithTax'], '__typename'>,
+        RequireField<NonNullable<SearchGetPricesQuery['search']['items'][0]>['priceWithTax'], '__typename'>,
         { __typename: 'PriceRange' }
     >;
     export type _SinglePriceInlineFragment = DiscriminateUnion<
-        RequireField<(NonNullable<SearchGetPricesQuery['search']['items'][0]>)['priceWithTax'], '__typename'>,
+        RequireField<NonNullable<SearchGetPricesQuery['search']['items'][0]>['priceWithTax'], '__typename'>,
         { __typename: 'SinglePrice' }
     >;
 }

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 509 - 146
yarn.lock


Některé soubory nejsou zobrazeny, neboť je v těchto rozdílových datech změněno mnoho souborů