From 76d2d56a2caf24226dbca122a18853741df1ab23 Mon Sep 17 00:00:00 2001 From: Lukas Chladek Date: Mon, 19 Oct 2020 14:45:00 +0200 Subject: [PATCH] feat(admin-ui): Enable filtering by custom Order states in list view Also improved highlighting of states --- .../lib/core/src/common/generated-types.ts | 9 + .../data/definitions/settings-definitions.ts | 5 + .../order-state-label.component.ts | 12 +- .../order-list/order-list.component.html | 10 +- .../order-list/order-list.component.ts | 1 + packages/common/src/generated-shop-types.ts | 3905 +++++++------- .../e2e/graphql/generated-e2e-shop-types.ts | 4595 ++++++++--------- 7 files changed, 4147 insertions(+), 4390 deletions(-) diff --git a/packages/admin-ui/src/lib/core/src/common/generated-types.ts b/packages/admin-ui/src/lib/core/src/common/generated-types.ts index 08a86cf891..ca5e2331ef 100644 --- a/packages/admin-ui/src/lib/core/src/common/generated-types.ts +++ b/packages/admin-ui/src/lib/core/src/common/generated-types.ts @@ -6207,6 +6207,13 @@ export type UpdatePaymentMethodMutation = { updatePaymentMethod: ( export type GlobalSettingsFragment = ( { __typename?: 'GlobalSettings' } & Pick + & { serverConfig: ( + { __typename?: 'ServerConfig' } + & { orderProcess: Array<( + { __typename?: 'OrderProcessState' } + & Pick + )> } + ) } ); export type GetGlobalSettingsQueryVariables = Exact<{ [key: string]: never; }>; @@ -8015,6 +8022,8 @@ export namespace UpdatePaymentMethod { export namespace GlobalSettings { export type Fragment = GlobalSettingsFragment; + export type ServerConfig = (NonNullable); + export type OrderProcess = NonNullable<(NonNullable<(NonNullable)['orderProcess']>)[number]>; } export namespace GetGlobalSettings { diff --git a/packages/admin-ui/src/lib/core/src/data/definitions/settings-definitions.ts b/packages/admin-ui/src/lib/core/src/data/definitions/settings-definitions.ts index c83a7eb801..6ad84b5b74 100644 --- a/packages/admin-ui/src/lib/core/src/data/definitions/settings-definitions.ts +++ b/packages/admin-ui/src/lib/core/src/data/definitions/settings-definitions.ts @@ -422,6 +422,11 @@ export const GLOBAL_SETTINGS_FRAGMENT = gql` id availableLanguages trackInventory + serverConfig { + orderProcess { + name + } + } } `; diff --git a/packages/admin-ui/src/lib/core/src/shared/components/order-state-label/order-state-label.component.ts b/packages/admin-ui/src/lib/core/src/shared/components/order-state-label/order-state-label.component.ts index f07a927db8..6301eb09a3 100644 --- a/packages/admin-ui/src/lib/core/src/shared/components/order-state-label/order-state-label.component.ts +++ b/packages/admin-ui/src/lib/core/src/shared/components/order-state-label/order-state-label.component.ts @@ -11,16 +11,20 @@ export class OrderStateLabelComponent { get chipColorType() { switch (this.state) { + case 'AddingItems': + case 'ArrangingPayment': + return ''; + case 'Delivered': + return 'success'; + case 'Cancelled': + return 'error'; case 'PaymentAuthorized': case 'PaymentSettled': case 'PartiallyDelivered': case 'PartiallyShipped': case 'Shipped': + default: return 'warning'; - case 'Delivered': - return 'success'; - case 'Cancelled': - return 'error'; } } } diff --git a/packages/admin-ui/src/lib/order/src/components/order-list/order-list.component.html b/packages/admin-ui/src/lib/order/src/components/order-list/order-list.component.html index f9505345f4..50c4444fa7 100644 --- a/packages/admin-ui/src/lib/order/src/components/order-list/order-list.component.html +++ b/packages/admin-ui/src/lib/order/src/components/order-list/order-list.component.html @@ -3,15 +3,9 @@
data.globalSettings.serverConfig.orderProcess.map(item => item.name)); constructor(private dataService: DataService, router: Router, route: ActivatedRoute) { super(router, route); diff --git a/packages/common/src/generated-shop-types.ts b/packages/common/src/generated-shop-types.ts index f438ecb316..5c13e61ea9 100644 --- a/packages/common/src/generated-shop-types.ts +++ b/packages/common/src/generated-shop-types.ts @@ -3,948 +3,984 @@ export type Maybe = T; export type Exact = { [K in keyof T]: T[K] }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string | number; - String: string; - Boolean: boolean; - Int: number; - Float: number; - /** 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; - /** 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 `Upload` scalar type represents a file upload. */ - Upload: any; + ID: string | number; + String: string; + Boolean: boolean; + Int: number; + Float: number; + /** 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; + /** 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 `Upload` scalar type represents a file upload. */ + Upload: any; }; export type Query = { - __typename?: 'Query'; - /** The active Channel */ - activeChannel: Channel; - /** The active Customer */ - activeCustomer?: Maybe; - /** - * The active Order. Will be `null` until an Order is created via `addItemToOrder`. Once an Order reaches the - * state of `PaymentApproved` or `PaymentSettled`, then that Order is no longer considered "active" and this - * query will once again return `null`. - */ - activeOrder?: Maybe; - /** An array of supported Countries */ - availableCountries: Array; - /** A list of Collections available to the shop */ - collections: CollectionList; - /** Returns a Collection either by its id or slug. If neither 'id' nor 'slug' is speicified, an error will result. */ - collection?: Maybe; - /** Returns a list of eligible shipping methods based on the current active Order */ - eligibleShippingMethods: Array; - /** Returns information about the current authenticated User */ - me?: Maybe; - /** Returns the possible next states that the activeOrder can transition to */ - nextOrderStates: Array; - /** - * Returns an Order based on the id. Note that in the Shop API, only orders belonging to the - * currently-authenticated User may be queried. - */ - order?: Maybe; - /** - * Returns an Order based on the order `code`. For guest Orders (i.e. Orders placed by non-authenticated Customers) - * this query will only return the Order within 2 hours of the Order being placed. This allows an Order confirmation - * screen to be shown immediately after completion of a guest checkout, yet prevents security risks of allowing - * general anonymous access to Order data. - */ - orderByCode?: Maybe; - /** Get a Product either by id or slug. If neither 'id' nor 'slug' is speicified, an error will result. */ - product?: Maybe; - /** Get a list of Products */ - products: ProductList; - /** Search Products based on the criteria set by the `SearchInput` */ - search: SearchResponse; + __typename?: 'Query'; + /** The active Channel */ + activeChannel: Channel; + /** The active Customer */ + activeCustomer?: Maybe; + /** + * The active Order. Will be `null` until an Order is created via `addItemToOrder`. Once an Order reaches the + * state of `PaymentApproved` or `PaymentSettled`, then that Order is no longer considered "active" and this + * query will once again return `null`. + */ + activeOrder?: Maybe; + /** An array of supported Countries */ + availableCountries: Array; + /** A list of Collections available to the shop */ + collections: CollectionList; + /** Returns a Collection either by its id or slug. If neither 'id' nor 'slug' is speicified, an error will result. */ + collection?: Maybe; + /** Returns a list of eligible shipping methods based on the current active Order */ + eligibleShippingMethods: Array; + /** Returns information about the current authenticated User */ + me?: Maybe; + /** Returns the possible next states that the activeOrder can transition to */ + nextOrderStates: Array; + /** + * Returns an Order based on the id. Note that in the Shop API, only orders belonging to the + * currently-authenticated User may be queried. + */ + order?: Maybe; + /** + * Returns an Order based on the order `code`. For guest Orders (i.e. Orders placed by non-authenticated Customers) + * this query will only return the Order within 2 hours of the Order being placed. This allows an Order confirmation + * screen to be shown immediately after completion of a guest checkout, yet prevents security risks of allowing + * general anonymous access to Order data. + */ + orderByCode?: Maybe; + /** Get a Product either by id or slug. If neither 'id' nor 'slug' is speicified, an error will result. */ + product?: Maybe; + /** Get a list of Products */ + products: ProductList; + /** Search Products based on the criteria set by the `SearchInput` */ + search: SearchResponse; }; + export type QueryCollectionsArgs = { - options?: Maybe; + options?: Maybe; }; + export type QueryCollectionArgs = { - id?: Maybe; - slug?: Maybe; + id?: Maybe; + slug?: Maybe; }; + export type QueryOrderArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryOrderByCodeArgs = { - code: Scalars['String']; + code: Scalars['String']; }; + export type QueryProductArgs = { - id?: Maybe; - slug?: Maybe; + id?: Maybe; + slug?: Maybe; }; + export type QueryProductsArgs = { - options?: Maybe; + options?: Maybe; }; + export type QuerySearchArgs = { - input: SearchInput; + input: SearchInput; }; export type Mutation = { - __typename?: 'Mutation'; - /** Adds an item to the order. If custom fields are defined on the OrderLine entity, a third argument 'customFields' will be available. */ - addItemToOrder: UpdateOrderItemsResult; - /** Remove an OrderLine from the Order */ - removeOrderLine: RemoveOrderItemsResult; - /** Remove all OrderLine from the Order */ - removeAllOrderLines: RemoveOrderItemsResult; - /** Adjusts an OrderLine. If custom fields are defined on the OrderLine entity, a third argument 'customFields' of type `OrderLineCustomFieldsInput` will be available. */ - adjustOrderLine: UpdateOrderItemsResult; - /** Applies the given coupon code to the active Order */ - applyCouponCode: ApplyCouponCodeResult; - /** Removes the given coupon code from the active Order */ - removeCouponCode?: Maybe; - /** Transitions an Order to a new state. Valid next states can be found by querying `nextOrderStates` */ - transitionOrderToState?: Maybe; - /** Sets the shipping address for this order */ - setOrderShippingAddress?: Maybe; - /** Sets the billing address for this order */ - setOrderBillingAddress?: Maybe; - /** Allows any custom fields to be set for the active order */ - setOrderCustomFields?: Maybe; - /** Sets the shipping method by id, which can be obtained with the `eligibleShippingMethods` query */ - setOrderShippingMethod: SetOrderShippingMethodResult; - /** Add a Payment to the Order */ - addPaymentToOrder?: Maybe; - /** Set the Customer for the Order. Required only if the Customer is not currently logged in */ - setCustomerForOrder?: Maybe; - /** Authenticates the user using the native authentication strategy. This mutation is an alias for `authenticate({ native: { ... }})` */ - login: NativeAuthenticationResult; - /** Authenticates the user using a named authentication strategy */ - authenticate: AuthenticationResult; - /** End the current authenticated session */ - logout: Success; - /** - * Register a Customer account with the given credentials. There are three possible registration flows: - * - * _If `authOptions.requireVerification` is set to `true`:_ - * - * 1. **The Customer is registered _with_ a password**. A verificationToken will be created (and typically emailed to the Customer). That - * verificationToken would then be passed to the `verifyCustomerAccount` mutation _without_ a password. The Customer is then - * verified and authenticated in one step. - * 2. **The Customer is registered _without_ a password**. A verificationToken will be created (and typically emailed to the Customer). That - * verificationToken would then be passed to the `verifyCustomerAccount` mutation _with_ the chosed password of the Customer. The Customer is then - * verified and authenticated in one step. - * - * _If `authOptions.requireVerification` is set to `false`:_ - * - * 3. The Customer _must_ be registered _with_ a password. No further action is needed - the Customer is able to authenticate immediately. - */ - registerCustomerAccount: RegisterCustomerAccountResult; - /** Regenerate and send a verification token for a new Customer registration. Only applicable if `authOptions.requireVerification` is set to true. */ - refreshCustomerVerification: RefreshCustomerVerificationResult; - /** Update an existing Customer */ - updateCustomer: Customer; - /** Create a new Customer Address */ - createCustomerAddress: Address; - /** Update an existing Address */ - updateCustomerAddress: Address; - /** Delete an existing Address */ - deleteCustomerAddress: Success; - /** - * Verify a Customer email address with the token sent to that address. Only applicable if `authOptions.requireVerification` is set to true. - * - * If the Customer was not registered with a password in the `registerCustomerAccount` mutation, the a password _must_ be - * provided here. - */ - verifyCustomerAccount: VerifyCustomerAccountResult; - /** Update the password of the active Customer */ - updateCustomerPassword: UpdateCustomerPasswordResult; - /** - * 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: RequestUpdateCustomerEmailAddressResult; - /** - * Confirm the update of the emailAddress with the provided token, which has been generated by the - * `requestUpdateCustomerEmailAddress` mutation. - */ - updateCustomerEmailAddress: UpdateCustomerEmailAddressResult; - /** Requests a password reset email to be sent */ - requestPasswordReset?: Maybe; - /** Resets a Customer's password based on the provided token */ - resetPassword: ResetPasswordResult; + __typename?: 'Mutation'; + /** Adds an item to the order. If custom fields are defined on the OrderLine entity, a third argument 'customFields' will be available. */ + addItemToOrder: UpdateOrderItemsResult; + /** Remove an OrderLine from the Order */ + removeOrderLine: RemoveOrderItemsResult; + /** Remove all OrderLine from the Order */ + removeAllOrderLines: RemoveOrderItemsResult; + /** Adjusts an OrderLine. If custom fields are defined on the OrderLine entity, a third argument 'customFields' of type `OrderLineCustomFieldsInput` will be available. */ + adjustOrderLine: UpdateOrderItemsResult; + /** Applies the given coupon code to the active Order */ + applyCouponCode: ApplyCouponCodeResult; + /** Removes the given coupon code from the active Order */ + removeCouponCode?: Maybe; + /** Transitions an Order to a new state. Valid next states can be found by querying `nextOrderStates` */ + transitionOrderToState?: Maybe; + /** Sets the shipping address for this order */ + setOrderShippingAddress?: Maybe; + /** Sets the billing address for this order */ + setOrderBillingAddress?: Maybe; + /** Allows any custom fields to be set for the active order */ + setOrderCustomFields?: Maybe; + /** Sets the shipping method by id, which can be obtained with the `eligibleShippingMethods` query */ + setOrderShippingMethod: SetOrderShippingMethodResult; + /** Add a Payment to the Order */ + addPaymentToOrder?: Maybe; + /** Set the Customer for the Order. Required only if the Customer is not currently logged in */ + setCustomerForOrder?: Maybe; + /** Authenticates the user using the native authentication strategy. This mutation is an alias for `authenticate({ native: { ... }})` */ + login: NativeAuthenticationResult; + /** Authenticates the user using a named authentication strategy */ + authenticate: AuthenticationResult; + /** End the current authenticated session */ + logout: Success; + /** + * Register a Customer account with the given credentials. There are three possible registration flows: + * + * _If `authOptions.requireVerification` is set to `true`:_ + * + * 1. **The Customer is registered _with_ a password**. A verificationToken will be created (and typically emailed to the Customer). That + * verificationToken would then be passed to the `verifyCustomerAccount` mutation _without_ a password. The Customer is then + * verified and authenticated in one step. + * 2. **The Customer is registered _without_ a password**. A verificationToken will be created (and typically emailed to the Customer). That + * verificationToken would then be passed to the `verifyCustomerAccount` mutation _with_ the chosed password of the Customer. The Customer is then + * verified and authenticated in one step. + * + * _If `authOptions.requireVerification` is set to `false`:_ + * + * 3. The Customer _must_ be registered _with_ a password. No further action is needed - the Customer is able to authenticate immediately. + */ + registerCustomerAccount: RegisterCustomerAccountResult; + /** Regenerate and send a verification token for a new Customer registration. Only applicable if `authOptions.requireVerification` is set to true. */ + refreshCustomerVerification: RefreshCustomerVerificationResult; + /** Update an existing Customer */ + updateCustomer: Customer; + /** Create a new Customer Address */ + createCustomerAddress: Address; + /** Update an existing Address */ + updateCustomerAddress: Address; + /** Delete an existing Address */ + deleteCustomerAddress: Success; + /** + * Verify a Customer email address with the token sent to that address. Only applicable if `authOptions.requireVerification` is set to true. + * + * If the Customer was not registered with a password in the `registerCustomerAccount` mutation, the a password _must_ be + * provided here. + */ + verifyCustomerAccount: VerifyCustomerAccountResult; + /** Update the password of the active Customer */ + updateCustomerPassword: UpdateCustomerPasswordResult; + /** + * 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: RequestUpdateCustomerEmailAddressResult; + /** + * Confirm the update of the emailAddress with the provided token, which has been generated by the + * `requestUpdateCustomerEmailAddress` mutation. + */ + updateCustomerEmailAddress: UpdateCustomerEmailAddressResult; + /** Requests a password reset email to be sent */ + requestPasswordReset?: Maybe; + /** Resets a Customer's password based on the provided token */ + resetPassword: ResetPasswordResult; }; + export type MutationAddItemToOrderArgs = { - productVariantId: Scalars['ID']; - quantity: Scalars['Int']; + productVariantId: Scalars['ID']; + quantity: Scalars['Int']; }; + export type MutationRemoveOrderLineArgs = { - orderLineId: Scalars['ID']; + orderLineId: Scalars['ID']; }; + export type MutationAdjustOrderLineArgs = { - orderLineId: Scalars['ID']; - quantity?: Maybe; + orderLineId: Scalars['ID']; + quantity?: Maybe; }; + export type MutationApplyCouponCodeArgs = { - couponCode: Scalars['String']; + couponCode: Scalars['String']; }; + export type MutationRemoveCouponCodeArgs = { - couponCode: Scalars['String']; + couponCode: Scalars['String']; }; + export type MutationTransitionOrderToStateArgs = { - state: Scalars['String']; + state: Scalars['String']; }; + export type MutationSetOrderShippingAddressArgs = { - input: CreateAddressInput; + input: CreateAddressInput; }; + export type MutationSetOrderBillingAddressArgs = { - input: CreateAddressInput; + input: CreateAddressInput; }; + export type MutationSetOrderCustomFieldsArgs = { - input: UpdateOrderInput; + input: UpdateOrderInput; }; + export type MutationSetOrderShippingMethodArgs = { - shippingMethodId: Scalars['ID']; + shippingMethodId: Scalars['ID']; }; + export type MutationAddPaymentToOrderArgs = { - input: PaymentInput; + input: PaymentInput; }; + export type MutationSetCustomerForOrderArgs = { - input: CreateCustomerInput; + input: CreateCustomerInput; }; + export type MutationLoginArgs = { - username: Scalars['String']; - password: Scalars['String']; - rememberMe?: Maybe; + username: Scalars['String']; + password: Scalars['String']; + rememberMe?: Maybe; }; + export type MutationAuthenticateArgs = { - input: AuthenticationInput; - rememberMe?: Maybe; + input: AuthenticationInput; + rememberMe?: Maybe; }; + export type MutationRegisterCustomerAccountArgs = { - input: RegisterCustomerInput; + input: RegisterCustomerInput; }; + export type MutationRefreshCustomerVerificationArgs = { - emailAddress: Scalars['String']; + emailAddress: Scalars['String']; }; + export type MutationUpdateCustomerArgs = { - input: UpdateCustomerInput; + input: UpdateCustomerInput; }; + export type MutationCreateCustomerAddressArgs = { - input: CreateAddressInput; + input: CreateAddressInput; }; + export type MutationUpdateCustomerAddressArgs = { - input: UpdateAddressInput; + input: UpdateAddressInput; }; + export type MutationDeleteCustomerAddressArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationVerifyCustomerAccountArgs = { - token: Scalars['String']; - password?: Maybe; + token: Scalars['String']; + password?: Maybe; }; + export type MutationUpdateCustomerPasswordArgs = { - currentPassword: Scalars['String']; - newPassword: Scalars['String']; + currentPassword: Scalars['String']; + newPassword: Scalars['String']; }; + export type MutationRequestUpdateCustomerEmailAddressArgs = { - password: Scalars['String']; - newEmailAddress: Scalars['String']; + password: Scalars['String']; + newEmailAddress: Scalars['String']; }; + export type MutationUpdateCustomerEmailAddressArgs = { - token: Scalars['String']; + token: Scalars['String']; }; + export type MutationRequestPasswordResetArgs = { - emailAddress: Scalars['String']; + emailAddress: Scalars['String']; }; + export type MutationResetPasswordArgs = { - token: Scalars['String']; - password: Scalars['String']; + token: Scalars['String']; + password: Scalars['String']; }; + + + export enum AdjustmentType { - TAX = 'TAX', - PROMOTION = 'PROMOTION', - SHIPPING = 'SHIPPING', - REFUND = 'REFUND', - TAX_REFUND = 'TAX_REFUND', - PROMOTION_REFUND = 'PROMOTION_REFUND', - SHIPPING_REFUND = 'SHIPPING_REFUND', + TAX = 'TAX', + PROMOTION = 'PROMOTION', + SHIPPING = 'SHIPPING', + REFUND = 'REFUND', + TAX_REFUND = 'TAX_REFUND', + PROMOTION_REFUND = 'PROMOTION_REFUND', + SHIPPING_REFUND = 'SHIPPING_REFUND' } export type Adjustment = { - __typename?: 'Adjustment'; - adjustmentSource: Scalars['String']; - type: AdjustmentType; - description: Scalars['String']; - amount: Scalars['Int']; + __typename?: 'Adjustment'; + adjustmentSource: Scalars['String']; + type: AdjustmentType; + description: Scalars['String']; + amount: Scalars['Int']; }; export type ConfigArg = { - __typename?: 'ConfigArg'; - name: Scalars['String']; - value: Scalars['String']; + __typename?: 'ConfigArg'; + name: Scalars['String']; + value: Scalars['String']; }; export type ConfigArgDefinition = { - __typename?: 'ConfigArgDefinition'; - name: Scalars['String']; - type: Scalars['String']; - list: Scalars['Boolean']; - label?: Maybe; - description?: Maybe; - ui?: Maybe; + __typename?: 'ConfigArgDefinition'; + name: Scalars['String']; + type: Scalars['String']; + list: Scalars['Boolean']; + label?: Maybe; + description?: Maybe; + ui?: Maybe; }; export type ConfigurableOperation = { - __typename?: 'ConfigurableOperation'; - code: Scalars['String']; - args: Array; + __typename?: 'ConfigurableOperation'; + code: Scalars['String']; + args: Array; }; export type ConfigurableOperationDefinition = { - __typename?: 'ConfigurableOperationDefinition'; - code: Scalars['String']; - args: Array; - description: Scalars['String']; + __typename?: 'ConfigurableOperationDefinition'; + code: Scalars['String']; + args: Array; + description: Scalars['String']; }; export enum DeletionResult { - /** The entity was successfully deleted */ - DELETED = 'DELETED', - /** Deletion did not take place, reason given in message */ - NOT_DELETED = 'NOT_DELETED', + /** The entity was successfully deleted */ + DELETED = 'DELETED', + /** Deletion did not take place, reason given in message */ + NOT_DELETED = 'NOT_DELETED' } export type DeletionResponse = { - __typename?: 'DeletionResponse'; - result: DeletionResult; - message?: Maybe; + __typename?: 'DeletionResponse'; + result: DeletionResult; + message?: Maybe; }; export type ConfigArgInput = { - name: Scalars['String']; - value: Scalars['String']; + name: Scalars['String']; + value: Scalars['String']; }; export type ConfigurableOperationInput = { - code: Scalars['String']; - arguments: Array; + code: Scalars['String']; + arguments: Array; }; export type PaginatedList = { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type Node = { - id: Scalars['ID']; + id: Scalars['ID']; }; export enum SortOrder { - ASC = 'ASC', - DESC = 'DESC', + ASC = 'ASC', + DESC = 'DESC' } export enum ErrorCode { - UNKNOWN_ERROR = 'UNKNOWN_ERROR', - NATIVE_AUTH_STRATEGY_ERROR = 'NATIVE_AUTH_STRATEGY_ERROR', - INVALID_CREDENTIALS_ERROR = 'INVALID_CREDENTIALS_ERROR', - ORDER_STATE_TRANSITION_ERROR = 'ORDER_STATE_TRANSITION_ERROR', - EMAIL_ADDRESS_CONFLICT_ERROR = 'EMAIL_ADDRESS_CONFLICT_ERROR', - ORDER_MODIFICATION_ERROR = 'ORDER_MODIFICATION_ERROR', - ORDER_LIMIT_ERROR = 'ORDER_LIMIT_ERROR', - NEGATIVE_QUANTITY_ERROR = 'NEGATIVE_QUANTITY_ERROR', - ORDER_PAYMENT_STATE_ERROR = 'ORDER_PAYMENT_STATE_ERROR', - PAYMENT_FAILED_ERROR = 'PAYMENT_FAILED_ERROR', - PAYMENT_DECLINED_ERROR = 'PAYMENT_DECLINED_ERROR', - COUPON_CODE_INVALID_ERROR = 'COUPON_CODE_INVALID_ERROR', - COUPON_CODE_EXPIRED_ERROR = 'COUPON_CODE_EXPIRED_ERROR', - COUPON_CODE_LIMIT_ERROR = 'COUPON_CODE_LIMIT_ERROR', - ALREADY_LOGGED_IN_ERROR = 'ALREADY_LOGGED_IN_ERROR', - MISSING_PASSWORD_ERROR = 'MISSING_PASSWORD_ERROR', - PASSWORD_ALREADY_SET_ERROR = 'PASSWORD_ALREADY_SET_ERROR', - VERIFICATION_TOKEN_INVALID_ERROR = 'VERIFICATION_TOKEN_INVALID_ERROR', - VERIFICATION_TOKEN_EXPIRED_ERROR = 'VERIFICATION_TOKEN_EXPIRED_ERROR', - IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR = 'IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR', - IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR = 'IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR', - PASSWORD_RESET_TOKEN_INVALID_ERROR = 'PASSWORD_RESET_TOKEN_INVALID_ERROR', - PASSWORD_RESET_TOKEN_EXPIRED_ERROR = 'PASSWORD_RESET_TOKEN_EXPIRED_ERROR', - NOT_VERIFIED_ERROR = 'NOT_VERIFIED_ERROR', + UNKNOWN_ERROR = 'UNKNOWN_ERROR', + NATIVE_AUTH_STRATEGY_ERROR = 'NATIVE_AUTH_STRATEGY_ERROR', + INVALID_CREDENTIALS_ERROR = 'INVALID_CREDENTIALS_ERROR', + ORDER_STATE_TRANSITION_ERROR = 'ORDER_STATE_TRANSITION_ERROR', + EMAIL_ADDRESS_CONFLICT_ERROR = 'EMAIL_ADDRESS_CONFLICT_ERROR', + ORDER_MODIFICATION_ERROR = 'ORDER_MODIFICATION_ERROR', + ORDER_LIMIT_ERROR = 'ORDER_LIMIT_ERROR', + NEGATIVE_QUANTITY_ERROR = 'NEGATIVE_QUANTITY_ERROR', + ORDER_PAYMENT_STATE_ERROR = 'ORDER_PAYMENT_STATE_ERROR', + PAYMENT_FAILED_ERROR = 'PAYMENT_FAILED_ERROR', + PAYMENT_DECLINED_ERROR = 'PAYMENT_DECLINED_ERROR', + COUPON_CODE_INVALID_ERROR = 'COUPON_CODE_INVALID_ERROR', + COUPON_CODE_EXPIRED_ERROR = 'COUPON_CODE_EXPIRED_ERROR', + COUPON_CODE_LIMIT_ERROR = 'COUPON_CODE_LIMIT_ERROR', + ALREADY_LOGGED_IN_ERROR = 'ALREADY_LOGGED_IN_ERROR', + MISSING_PASSWORD_ERROR = 'MISSING_PASSWORD_ERROR', + PASSWORD_ALREADY_SET_ERROR = 'PASSWORD_ALREADY_SET_ERROR', + VERIFICATION_TOKEN_INVALID_ERROR = 'VERIFICATION_TOKEN_INVALID_ERROR', + VERIFICATION_TOKEN_EXPIRED_ERROR = 'VERIFICATION_TOKEN_EXPIRED_ERROR', + IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR = 'IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR', + IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR = 'IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR', + PASSWORD_RESET_TOKEN_INVALID_ERROR = 'PASSWORD_RESET_TOKEN_INVALID_ERROR', + PASSWORD_RESET_TOKEN_EXPIRED_ERROR = 'PASSWORD_RESET_TOKEN_EXPIRED_ERROR', + NOT_VERIFIED_ERROR = 'NOT_VERIFIED_ERROR' } export type ErrorResult = { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; export type StringOperators = { - eq?: Maybe; - contains?: Maybe; + eq?: Maybe; + contains?: Maybe; }; export type BooleanOperators = { - eq?: Maybe; + eq?: Maybe; }; export type NumberRange = { - start: Scalars['Float']; - end: Scalars['Float']; + start: Scalars['Float']; + end: Scalars['Float']; }; export type NumberOperators = { - eq?: Maybe; - lt?: Maybe; - lte?: Maybe; - gt?: Maybe; - gte?: Maybe; - between?: Maybe; + eq?: Maybe; + lt?: Maybe; + lte?: Maybe; + gt?: Maybe; + gte?: Maybe; + between?: Maybe; }; export type DateRange = { - start: Scalars['DateTime']; - end: Scalars['DateTime']; + start: Scalars['DateTime']; + end: Scalars['DateTime']; }; export type DateOperators = { - eq?: Maybe; - before?: Maybe; - after?: Maybe; - between?: Maybe; + eq?: Maybe; + before?: Maybe; + after?: Maybe; + between?: Maybe; }; export enum LogicalOperator { - AND = 'AND', - OR = 'OR', + AND = 'AND', + OR = 'OR' } export type SearchInput = { - term?: Maybe; - facetValueIds?: Maybe>; - facetValueOperator?: Maybe; - collectionId?: Maybe; - collectionSlug?: Maybe; - groupByProduct?: Maybe; - take?: Maybe; - skip?: Maybe; - sort?: Maybe; + term?: Maybe; + facetValueIds?: Maybe>; + facetValueOperator?: Maybe; + collectionId?: Maybe; + collectionSlug?: Maybe; + groupByProduct?: Maybe; + take?: Maybe; + skip?: Maybe; + sort?: Maybe; }; export type SearchResultSortParameter = { - name?: Maybe; - price?: Maybe; + name?: Maybe; + price?: Maybe; }; export type CreateCustomerInput = { - title?: Maybe; - firstName: Scalars['String']; - lastName: Scalars['String']; - phoneNumber?: Maybe; - emailAddress: Scalars['String']; - customFields?: Maybe; + title?: Maybe; + firstName: Scalars['String']; + lastName: Scalars['String']; + phoneNumber?: Maybe; + emailAddress: Scalars['String']; + customFields?: Maybe; }; export type CreateAddressInput = { - fullName?: Maybe; - company?: Maybe; - streetLine1: Scalars['String']; - streetLine2?: Maybe; - city?: Maybe; - province?: Maybe; - postalCode?: Maybe; - countryCode: Scalars['String']; - phoneNumber?: Maybe; - defaultShippingAddress?: Maybe; - defaultBillingAddress?: Maybe; - customFields?: Maybe; + fullName?: Maybe; + company?: Maybe; + streetLine1: Scalars['String']; + streetLine2?: Maybe; + city?: Maybe; + province?: Maybe; + postalCode?: Maybe; + countryCode: Scalars['String']; + phoneNumber?: Maybe; + defaultShippingAddress?: Maybe; + defaultBillingAddress?: Maybe; + customFields?: Maybe; }; export type UpdateAddressInput = { - id: Scalars['ID']; - fullName?: Maybe; - company?: Maybe; - streetLine1?: Maybe; - streetLine2?: Maybe; - city?: Maybe; - province?: Maybe; - postalCode?: Maybe; - countryCode?: Maybe; - phoneNumber?: Maybe; - defaultShippingAddress?: Maybe; - defaultBillingAddress?: Maybe; - customFields?: Maybe; + id: Scalars['ID']; + fullName?: Maybe; + company?: Maybe; + streetLine1?: Maybe; + streetLine2?: Maybe; + city?: Maybe; + province?: Maybe; + postalCode?: Maybe; + countryCode?: Maybe; + phoneNumber?: Maybe; + defaultShippingAddress?: Maybe; + defaultBillingAddress?: Maybe; + customFields?: Maybe; }; /** Indicates that an operation succeeded, where we do not want to return any more specific information. */ export type Success = { - __typename?: 'Success'; - success: Scalars['Boolean']; + __typename?: 'Success'; + success: Scalars['Boolean']; }; /** Retured when attempting an operation that relies on the NativeAuthStrategy, if that strategy is not configured. */ export type NativeAuthStrategyError = ErrorResult & { - __typename?: 'NativeAuthStrategyError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'NativeAuthStrategyError'; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned if the user authentication credentials are not valid */ export type InvalidCredentialsError = ErrorResult & { - __typename?: 'InvalidCredentialsError'; - errorCode: ErrorCode; - message: Scalars['String']; - authenticationError: Scalars['String']; + __typename?: 'InvalidCredentialsError'; + errorCode: ErrorCode; + message: Scalars['String']; + authenticationError: Scalars['String']; }; /** Returned if there is an error in transitioning the Order state */ export type OrderStateTransitionError = ErrorResult & { - __typename?: 'OrderStateTransitionError'; - errorCode: ErrorCode; - message: Scalars['String']; - transitionError: Scalars['String']; - fromState: Scalars['String']; - toState: Scalars['String']; + __typename?: 'OrderStateTransitionError'; + errorCode: ErrorCode; + message: Scalars['String']; + transitionError: Scalars['String']; + fromState: Scalars['String']; + toState: Scalars['String']; }; /** Retured when attemting to create a Customer with an email address already registered to an existing User. */ export type EmailAddressConflictError = ErrorResult & { - __typename?: 'EmailAddressConflictError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'EmailAddressConflictError'; + errorCode: ErrorCode; + message: Scalars['String']; }; /** * @description * ISO 4217 currency code - * + * * @docsCategory common */ export enum CurrencyCode { - /** United Arab Emirates dirham */ - AED = 'AED', - /** Afghan afghani */ - AFN = 'AFN', - /** Albanian lek */ - ALL = 'ALL', - /** Armenian dram */ - AMD = 'AMD', - /** Netherlands Antillean guilder */ - ANG = 'ANG', - /** Angolan kwanza */ - AOA = 'AOA', - /** Argentine peso */ - ARS = 'ARS', - /** Australian dollar */ - AUD = 'AUD', - /** Aruban florin */ - AWG = 'AWG', - /** Azerbaijani manat */ - AZN = 'AZN', - /** Bosnia and Herzegovina convertible mark */ - BAM = 'BAM', - /** Barbados dollar */ - BBD = 'BBD', - /** Bangladeshi taka */ - BDT = 'BDT', - /** Bulgarian lev */ - BGN = 'BGN', - /** Bahraini dinar */ - BHD = 'BHD', - /** Burundian franc */ - BIF = 'BIF', - /** Bermudian dollar */ - BMD = 'BMD', - /** Brunei dollar */ - BND = 'BND', - /** Boliviano */ - BOB = 'BOB', - /** Brazilian real */ - BRL = 'BRL', - /** Bahamian dollar */ - BSD = 'BSD', - /** Bhutanese ngultrum */ - BTN = 'BTN', - /** Botswana pula */ - BWP = 'BWP', - /** Belarusian ruble */ - BYN = 'BYN', - /** Belize dollar */ - BZD = 'BZD', - /** Canadian dollar */ - CAD = 'CAD', - /** Congolese franc */ - CDF = 'CDF', - /** Swiss franc */ - CHF = 'CHF', - /** Chilean peso */ - CLP = 'CLP', - /** Renminbi (Chinese) yuan */ - CNY = 'CNY', - /** Colombian peso */ - COP = 'COP', - /** Costa Rican colon */ - CRC = 'CRC', - /** Cuban convertible peso */ - CUC = 'CUC', - /** Cuban peso */ - CUP = 'CUP', - /** Cape Verde escudo */ - CVE = 'CVE', - /** Czech koruna */ - CZK = 'CZK', - /** Djiboutian franc */ - DJF = 'DJF', - /** Danish krone */ - DKK = 'DKK', - /** Dominican peso */ - DOP = 'DOP', - /** Algerian dinar */ - DZD = 'DZD', - /** Egyptian pound */ - EGP = 'EGP', - /** Eritrean nakfa */ - ERN = 'ERN', - /** Ethiopian birr */ - ETB = 'ETB', - /** Euro */ - EUR = 'EUR', - /** Fiji dollar */ - FJD = 'FJD', - /** Falkland Islands pound */ - FKP = 'FKP', - /** Pound sterling */ - GBP = 'GBP', - /** Georgian lari */ - GEL = 'GEL', - /** Ghanaian cedi */ - GHS = 'GHS', - /** Gibraltar pound */ - GIP = 'GIP', - /** Gambian dalasi */ - GMD = 'GMD', - /** Guinean franc */ - GNF = 'GNF', - /** Guatemalan quetzal */ - GTQ = 'GTQ', - /** Guyanese dollar */ - GYD = 'GYD', - /** Hong Kong dollar */ - HKD = 'HKD', - /** Honduran lempira */ - HNL = 'HNL', - /** Croatian kuna */ - HRK = 'HRK', - /** Haitian gourde */ - HTG = 'HTG', - /** Hungarian forint */ - HUF = 'HUF', - /** Indonesian rupiah */ - IDR = 'IDR', - /** Israeli new shekel */ - ILS = 'ILS', - /** Indian rupee */ - INR = 'INR', - /** Iraqi dinar */ - IQD = 'IQD', - /** Iranian rial */ - IRR = 'IRR', - /** Icelandic króna */ - ISK = 'ISK', - /** Jamaican dollar */ - JMD = 'JMD', - /** Jordanian dinar */ - JOD = 'JOD', - /** Japanese yen */ - JPY = 'JPY', - /** Kenyan shilling */ - KES = 'KES', - /** Kyrgyzstani som */ - KGS = 'KGS', - /** Cambodian riel */ - KHR = 'KHR', - /** Comoro franc */ - KMF = 'KMF', - /** North Korean won */ - KPW = 'KPW', - /** South Korean won */ - KRW = 'KRW', - /** Kuwaiti dinar */ - KWD = 'KWD', - /** Cayman Islands dollar */ - KYD = 'KYD', - /** Kazakhstani tenge */ - KZT = 'KZT', - /** Lao kip */ - LAK = 'LAK', - /** Lebanese pound */ - LBP = 'LBP', - /** Sri Lankan rupee */ - LKR = 'LKR', - /** Liberian dollar */ - LRD = 'LRD', - /** Lesotho loti */ - LSL = 'LSL', - /** Libyan dinar */ - LYD = 'LYD', - /** Moroccan dirham */ - MAD = 'MAD', - /** Moldovan leu */ - MDL = 'MDL', - /** Malagasy ariary */ - MGA = 'MGA', - /** Macedonian denar */ - MKD = 'MKD', - /** Myanmar kyat */ - MMK = 'MMK', - /** Mongolian tögrög */ - MNT = 'MNT', - /** Macanese pataca */ - MOP = 'MOP', - /** Mauritanian ouguiya */ - MRU = 'MRU', - /** Mauritian rupee */ - MUR = 'MUR', - /** Maldivian rufiyaa */ - MVR = 'MVR', - /** Malawian kwacha */ - MWK = 'MWK', - /** Mexican peso */ - MXN = 'MXN', - /** Malaysian ringgit */ - MYR = 'MYR', - /** Mozambican metical */ - MZN = 'MZN', - /** Namibian dollar */ - NAD = 'NAD', - /** Nigerian naira */ - NGN = 'NGN', - /** Nicaraguan córdoba */ - NIO = 'NIO', - /** Norwegian krone */ - NOK = 'NOK', - /** Nepalese rupee */ - NPR = 'NPR', - /** New Zealand dollar */ - NZD = 'NZD', - /** Omani rial */ - OMR = 'OMR', - /** Panamanian balboa */ - PAB = 'PAB', - /** Peruvian sol */ - PEN = 'PEN', - /** Papua New Guinean kina */ - PGK = 'PGK', - /** Philippine peso */ - PHP = 'PHP', - /** Pakistani rupee */ - PKR = 'PKR', - /** Polish złoty */ - PLN = 'PLN', - /** Paraguayan guaraní */ - PYG = 'PYG', - /** Qatari riyal */ - QAR = 'QAR', - /** Romanian leu */ - RON = 'RON', - /** Serbian dinar */ - RSD = 'RSD', - /** Russian ruble */ - RUB = 'RUB', - /** Rwandan franc */ - RWF = 'RWF', - /** Saudi riyal */ - SAR = 'SAR', - /** Solomon Islands dollar */ - SBD = 'SBD', - /** Seychelles rupee */ - SCR = 'SCR', - /** Sudanese pound */ - SDG = 'SDG', - /** Swedish krona/kronor */ - SEK = 'SEK', - /** Singapore dollar */ - SGD = 'SGD', - /** Saint Helena pound */ - SHP = 'SHP', - /** Sierra Leonean leone */ - SLL = 'SLL', - /** Somali shilling */ - SOS = 'SOS', - /** Surinamese dollar */ - SRD = 'SRD', - /** South Sudanese pound */ - SSP = 'SSP', - /** São Tomé and Príncipe dobra */ - STN = 'STN', - /** Salvadoran colón */ - SVC = 'SVC', - /** Syrian pound */ - SYP = 'SYP', - /** Swazi lilangeni */ - SZL = 'SZL', - /** Thai baht */ - THB = 'THB', - /** Tajikistani somoni */ - TJS = 'TJS', - /** Turkmenistan manat */ - TMT = 'TMT', - /** Tunisian dinar */ - TND = 'TND', - /** Tongan paʻanga */ - TOP = 'TOP', - /** Turkish lira */ - TRY = 'TRY', - /** Trinidad and Tobago dollar */ - TTD = 'TTD', - /** New Taiwan dollar */ - TWD = 'TWD', - /** Tanzanian shilling */ - TZS = 'TZS', - /** Ukrainian hryvnia */ - UAH = 'UAH', - /** Ugandan shilling */ - UGX = 'UGX', - /** United States dollar */ - USD = 'USD', - /** Uruguayan peso */ - UYU = 'UYU', - /** Uzbekistan som */ - UZS = 'UZS', - /** Venezuelan bolívar soberano */ - VES = 'VES', - /** Vietnamese đồng */ - VND = 'VND', - /** Vanuatu vatu */ - VUV = 'VUV', - /** Samoan tala */ - WST = 'WST', - /** CFA franc BEAC */ - XAF = 'XAF', - /** East Caribbean dollar */ - XCD = 'XCD', - /** CFA franc BCEAO */ - XOF = 'XOF', - /** CFP franc (franc Pacifique) */ - XPF = 'XPF', - /** Yemeni rial */ - YER = 'YER', - /** South African rand */ - ZAR = 'ZAR', - /** Zambian kwacha */ - ZMW = 'ZMW', - /** Zimbabwean dollar */ - ZWL = 'ZWL', + /** United Arab Emirates dirham */ + AED = 'AED', + /** Afghan afghani */ + AFN = 'AFN', + /** Albanian lek */ + ALL = 'ALL', + /** Armenian dram */ + AMD = 'AMD', + /** Netherlands Antillean guilder */ + ANG = 'ANG', + /** Angolan kwanza */ + AOA = 'AOA', + /** Argentine peso */ + ARS = 'ARS', + /** Australian dollar */ + AUD = 'AUD', + /** Aruban florin */ + AWG = 'AWG', + /** Azerbaijani manat */ + AZN = 'AZN', + /** Bosnia and Herzegovina convertible mark */ + BAM = 'BAM', + /** Barbados dollar */ + BBD = 'BBD', + /** Bangladeshi taka */ + BDT = 'BDT', + /** Bulgarian lev */ + BGN = 'BGN', + /** Bahraini dinar */ + BHD = 'BHD', + /** Burundian franc */ + BIF = 'BIF', + /** Bermudian dollar */ + BMD = 'BMD', + /** Brunei dollar */ + BND = 'BND', + /** Boliviano */ + BOB = 'BOB', + /** Brazilian real */ + BRL = 'BRL', + /** Bahamian dollar */ + BSD = 'BSD', + /** Bhutanese ngultrum */ + BTN = 'BTN', + /** Botswana pula */ + BWP = 'BWP', + /** Belarusian ruble */ + BYN = 'BYN', + /** Belize dollar */ + BZD = 'BZD', + /** Canadian dollar */ + CAD = 'CAD', + /** Congolese franc */ + CDF = 'CDF', + /** Swiss franc */ + CHF = 'CHF', + /** Chilean peso */ + CLP = 'CLP', + /** Renminbi (Chinese) yuan */ + CNY = 'CNY', + /** Colombian peso */ + COP = 'COP', + /** Costa Rican colon */ + CRC = 'CRC', + /** Cuban convertible peso */ + CUC = 'CUC', + /** Cuban peso */ + CUP = 'CUP', + /** Cape Verde escudo */ + CVE = 'CVE', + /** Czech koruna */ + CZK = 'CZK', + /** Djiboutian franc */ + DJF = 'DJF', + /** Danish krone */ + DKK = 'DKK', + /** Dominican peso */ + DOP = 'DOP', + /** Algerian dinar */ + DZD = 'DZD', + /** Egyptian pound */ + EGP = 'EGP', + /** Eritrean nakfa */ + ERN = 'ERN', + /** Ethiopian birr */ + ETB = 'ETB', + /** Euro */ + EUR = 'EUR', + /** Fiji dollar */ + FJD = 'FJD', + /** Falkland Islands pound */ + FKP = 'FKP', + /** Pound sterling */ + GBP = 'GBP', + /** Georgian lari */ + GEL = 'GEL', + /** Ghanaian cedi */ + GHS = 'GHS', + /** Gibraltar pound */ + GIP = 'GIP', + /** Gambian dalasi */ + GMD = 'GMD', + /** Guinean franc */ + GNF = 'GNF', + /** Guatemalan quetzal */ + GTQ = 'GTQ', + /** Guyanese dollar */ + GYD = 'GYD', + /** Hong Kong dollar */ + HKD = 'HKD', + /** Honduran lempira */ + HNL = 'HNL', + /** Croatian kuna */ + HRK = 'HRK', + /** Haitian gourde */ + HTG = 'HTG', + /** Hungarian forint */ + HUF = 'HUF', + /** Indonesian rupiah */ + IDR = 'IDR', + /** Israeli new shekel */ + ILS = 'ILS', + /** Indian rupee */ + INR = 'INR', + /** Iraqi dinar */ + IQD = 'IQD', + /** Iranian rial */ + IRR = 'IRR', + /** Icelandic króna */ + ISK = 'ISK', + /** Jamaican dollar */ + JMD = 'JMD', + /** Jordanian dinar */ + JOD = 'JOD', + /** Japanese yen */ + JPY = 'JPY', + /** Kenyan shilling */ + KES = 'KES', + /** Kyrgyzstani som */ + KGS = 'KGS', + /** Cambodian riel */ + KHR = 'KHR', + /** Comoro franc */ + KMF = 'KMF', + /** North Korean won */ + KPW = 'KPW', + /** South Korean won */ + KRW = 'KRW', + /** Kuwaiti dinar */ + KWD = 'KWD', + /** Cayman Islands dollar */ + KYD = 'KYD', + /** Kazakhstani tenge */ + KZT = 'KZT', + /** Lao kip */ + LAK = 'LAK', + /** Lebanese pound */ + LBP = 'LBP', + /** Sri Lankan rupee */ + LKR = 'LKR', + /** Liberian dollar */ + LRD = 'LRD', + /** Lesotho loti */ + LSL = 'LSL', + /** Libyan dinar */ + LYD = 'LYD', + /** Moroccan dirham */ + MAD = 'MAD', + /** Moldovan leu */ + MDL = 'MDL', + /** Malagasy ariary */ + MGA = 'MGA', + /** Macedonian denar */ + MKD = 'MKD', + /** Myanmar kyat */ + MMK = 'MMK', + /** Mongolian tögrög */ + MNT = 'MNT', + /** Macanese pataca */ + MOP = 'MOP', + /** Mauritanian ouguiya */ + MRU = 'MRU', + /** Mauritian rupee */ + MUR = 'MUR', + /** Maldivian rufiyaa */ + MVR = 'MVR', + /** Malawian kwacha */ + MWK = 'MWK', + /** Mexican peso */ + MXN = 'MXN', + /** Malaysian ringgit */ + MYR = 'MYR', + /** Mozambican metical */ + MZN = 'MZN', + /** Namibian dollar */ + NAD = 'NAD', + /** Nigerian naira */ + NGN = 'NGN', + /** Nicaraguan córdoba */ + NIO = 'NIO', + /** Norwegian krone */ + NOK = 'NOK', + /** Nepalese rupee */ + NPR = 'NPR', + /** New Zealand dollar */ + NZD = 'NZD', + /** Omani rial */ + OMR = 'OMR', + /** Panamanian balboa */ + PAB = 'PAB', + /** Peruvian sol */ + PEN = 'PEN', + /** Papua New Guinean kina */ + PGK = 'PGK', + /** Philippine peso */ + PHP = 'PHP', + /** Pakistani rupee */ + PKR = 'PKR', + /** Polish złoty */ + PLN = 'PLN', + /** Paraguayan guaraní */ + PYG = 'PYG', + /** Qatari riyal */ + QAR = 'QAR', + /** Romanian leu */ + RON = 'RON', + /** Serbian dinar */ + RSD = 'RSD', + /** Russian ruble */ + RUB = 'RUB', + /** Rwandan franc */ + RWF = 'RWF', + /** Saudi riyal */ + SAR = 'SAR', + /** Solomon Islands dollar */ + SBD = 'SBD', + /** Seychelles rupee */ + SCR = 'SCR', + /** Sudanese pound */ + SDG = 'SDG', + /** Swedish krona/kronor */ + SEK = 'SEK', + /** Singapore dollar */ + SGD = 'SGD', + /** Saint Helena pound */ + SHP = 'SHP', + /** Sierra Leonean leone */ + SLL = 'SLL', + /** Somali shilling */ + SOS = 'SOS', + /** Surinamese dollar */ + SRD = 'SRD', + /** South Sudanese pound */ + SSP = 'SSP', + /** São Tomé and Príncipe dobra */ + STN = 'STN', + /** Salvadoran colón */ + SVC = 'SVC', + /** Syrian pound */ + SYP = 'SYP', + /** Swazi lilangeni */ + SZL = 'SZL', + /** Thai baht */ + THB = 'THB', + /** Tajikistani somoni */ + TJS = 'TJS', + /** Turkmenistan manat */ + TMT = 'TMT', + /** Tunisian dinar */ + TND = 'TND', + /** Tongan paʻanga */ + TOP = 'TOP', + /** Turkish lira */ + TRY = 'TRY', + /** Trinidad and Tobago dollar */ + TTD = 'TTD', + /** New Taiwan dollar */ + TWD = 'TWD', + /** Tanzanian shilling */ + TZS = 'TZS', + /** Ukrainian hryvnia */ + UAH = 'UAH', + /** Ugandan shilling */ + UGX = 'UGX', + /** United States dollar */ + USD = 'USD', + /** Uruguayan peso */ + UYU = 'UYU', + /** Uzbekistan som */ + UZS = 'UZS', + /** Venezuelan bolívar soberano */ + VES = 'VES', + /** Vietnamese đồng */ + VND = 'VND', + /** Vanuatu vatu */ + VUV = 'VUV', + /** Samoan tala */ + WST = 'WST', + /** CFA franc BEAC */ + XAF = 'XAF', + /** East Caribbean dollar */ + XCD = 'XCD', + /** CFA franc BCEAO */ + XOF = 'XOF', + /** CFP franc (franc Pacifique) */ + XPF = 'XPF', + /** Yemeni rial */ + YER = 'YER', + /** South African rand */ + ZAR = 'ZAR', + /** Zambian kwacha */ + ZMW = 'ZMW', + /** Zimbabwean dollar */ + ZWL = 'ZWL' } export type CustomField = { - name: Scalars['String']; - type: Scalars['String']; - list: Scalars['Boolean']; - label?: Maybe>; - description?: Maybe>; - readonly?: Maybe; - internal?: Maybe; + name: Scalars['String']; + type: Scalars['String']; + list: Scalars['Boolean']; + label?: Maybe>; + description?: Maybe>; + readonly?: Maybe; + internal?: Maybe; }; export type StringCustomFieldConfig = CustomField & { - __typename?: 'StringCustomFieldConfig'; - name: Scalars['String']; - type: Scalars['String']; - list: Scalars['Boolean']; - length?: Maybe; - label?: Maybe>; - description?: Maybe>; - readonly?: Maybe; - internal?: Maybe; - pattern?: Maybe; - options?: Maybe>; + __typename?: 'StringCustomFieldConfig'; + name: Scalars['String']; + type: Scalars['String']; + list: Scalars['Boolean']; + length?: Maybe; + label?: Maybe>; + description?: Maybe>; + readonly?: Maybe; + internal?: Maybe; + pattern?: Maybe; + options?: Maybe>; }; export type StringFieldOption = { - __typename?: 'StringFieldOption'; - value: Scalars['String']; - label?: Maybe>; + __typename?: 'StringFieldOption'; + value: Scalars['String']; + label?: Maybe>; }; export type LocaleStringCustomFieldConfig = CustomField & { - __typename?: 'LocaleStringCustomFieldConfig'; - name: Scalars['String']; - type: Scalars['String']; - list: Scalars['Boolean']; - length?: Maybe; - label?: Maybe>; - description?: Maybe>; - readonly?: Maybe; - internal?: Maybe; - pattern?: Maybe; + __typename?: 'LocaleStringCustomFieldConfig'; + name: Scalars['String']; + type: Scalars['String']; + list: Scalars['Boolean']; + length?: Maybe; + label?: Maybe>; + description?: Maybe>; + readonly?: Maybe; + internal?: Maybe; + pattern?: Maybe; }; export type IntCustomFieldConfig = CustomField & { - __typename?: 'IntCustomFieldConfig'; - name: Scalars['String']; - type: Scalars['String']; - list: Scalars['Boolean']; - label?: Maybe>; - description?: Maybe>; - readonly?: Maybe; - internal?: Maybe; - min?: Maybe; - max?: Maybe; - step?: Maybe; + __typename?: 'IntCustomFieldConfig'; + name: Scalars['String']; + type: Scalars['String']; + list: Scalars['Boolean']; + label?: Maybe>; + description?: Maybe>; + readonly?: Maybe; + internal?: Maybe; + min?: Maybe; + max?: Maybe; + step?: Maybe; }; export type FloatCustomFieldConfig = CustomField & { - __typename?: 'FloatCustomFieldConfig'; - name: Scalars['String']; - type: Scalars['String']; - list: Scalars['Boolean']; - label?: Maybe>; - description?: Maybe>; - readonly?: Maybe; - internal?: Maybe; - min?: Maybe; - max?: Maybe; - step?: Maybe; + __typename?: 'FloatCustomFieldConfig'; + name: Scalars['String']; + type: Scalars['String']; + list: Scalars['Boolean']; + label?: Maybe>; + description?: Maybe>; + readonly?: Maybe; + internal?: Maybe; + min?: Maybe; + max?: Maybe; + step?: Maybe; }; export type BooleanCustomFieldConfig = CustomField & { - __typename?: 'BooleanCustomFieldConfig'; - name: Scalars['String']; - type: Scalars['String']; - list: Scalars['Boolean']; - label?: Maybe>; - description?: Maybe>; - readonly?: Maybe; - internal?: Maybe; + __typename?: 'BooleanCustomFieldConfig'; + name: Scalars['String']; + type: Scalars['String']; + list: Scalars['Boolean']; + label?: Maybe>; + description?: Maybe>; + readonly?: Maybe; + internal?: Maybe; }; /** @@ -952,32 +988,26 @@ export type BooleanCustomFieldConfig = CustomField & { * See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local#Additional_attributes */ export type DateTimeCustomFieldConfig = CustomField & { - __typename?: 'DateTimeCustomFieldConfig'; - name: Scalars['String']; - type: Scalars['String']; - list: Scalars['Boolean']; - label?: Maybe>; - description?: Maybe>; - readonly?: Maybe; - internal?: Maybe; - min?: Maybe; - max?: Maybe; - step?: Maybe; + __typename?: 'DateTimeCustomFieldConfig'; + name: Scalars['String']; + type: Scalars['String']; + list: Scalars['Boolean']; + label?: Maybe>; + description?: Maybe>; + readonly?: Maybe; + internal?: Maybe; + min?: Maybe; + max?: Maybe; + step?: Maybe; }; export type LocalizedString = { - __typename?: 'LocalizedString'; - languageCode: LanguageCode; - value: Scalars['String']; + __typename?: 'LocalizedString'; + languageCode: LanguageCode; + value: Scalars['String']; }; -export type CustomFieldConfig = - | StringCustomFieldConfig - | LocaleStringCustomFieldConfig - | IntCustomFieldConfig - | FloatCustomFieldConfig - | BooleanCustomFieldConfig - | DateTimeCustomFieldConfig; +export type CustomFieldConfig = StringCustomFieldConfig | LocaleStringCustomFieldConfig | IntCustomFieldConfig | FloatCustomFieldConfig | BooleanCustomFieldConfig | DateTimeCustomFieldConfig; /** * @description @@ -985,324 +1015,324 @@ export type CustomFieldConfig = * region or script modifier (e.g. de_AT). The selection available is based * on the [Unicode CLDR summary list](https://unicode-org.github.io/cldr-staging/charts/37/summary/root.html) * and includes the major spoken languages of the world and any widely-used variants. - * + * * @docsCategory common */ export enum LanguageCode { - /** Afrikaans */ - af = 'af', - /** Akan */ - ak = 'ak', - /** Albanian */ - sq = 'sq', - /** Amharic */ - am = 'am', - /** Arabic */ - ar = 'ar', - /** Armenian */ - hy = 'hy', - /** Assamese */ - as = 'as', - /** Azerbaijani */ - az = 'az', - /** Bambara */ - bm = 'bm', - /** Bangla */ - bn = 'bn', - /** Basque */ - eu = 'eu', - /** Belarusian */ - be = 'be', - /** Bosnian */ - bs = 'bs', - /** Breton */ - br = 'br', - /** Bulgarian */ - bg = 'bg', - /** Burmese */ - my = 'my', - /** Catalan */ - ca = 'ca', - /** Chechen */ - ce = 'ce', - /** Chinese */ - zh = 'zh', - /** Simplified Chinese */ - zh_Hans = 'zh_Hans', - /** Traditional Chinese */ - zh_Hant = 'zh_Hant', - /** Church Slavic */ - cu = 'cu', - /** Cornish */ - kw = 'kw', - /** Corsican */ - co = 'co', - /** Croatian */ - hr = 'hr', - /** Czech */ - cs = 'cs', - /** Danish */ - da = 'da', - /** Dutch */ - nl = 'nl', - /** Flemish */ - nl_BE = 'nl_BE', - /** Dzongkha */ - dz = 'dz', - /** English */ - en = 'en', - /** Australian English */ - en_AU = 'en_AU', - /** Canadian English */ - en_CA = 'en_CA', - /** British English */ - en_GB = 'en_GB', - /** American English */ - en_US = 'en_US', - /** Esperanto */ - eo = 'eo', - /** Estonian */ - et = 'et', - /** Ewe */ - ee = 'ee', - /** Faroese */ - fo = 'fo', - /** Finnish */ - fi = 'fi', - /** French */ - fr = 'fr', - /** Canadian French */ - fr_CA = 'fr_CA', - /** Swiss French */ - fr_CH = 'fr_CH', - /** Fulah */ - ff = 'ff', - /** Galician */ - gl = 'gl', - /** Ganda */ - lg = 'lg', - /** Georgian */ - ka = 'ka', - /** German */ - de = 'de', - /** Austrian German */ - de_AT = 'de_AT', - /** Swiss High German */ - de_CH = 'de_CH', - /** Greek */ - el = 'el', - /** Gujarati */ - gu = 'gu', - /** Haitian Creole */ - ht = 'ht', - /** Hausa */ - ha = 'ha', - /** Hebrew */ - he = 'he', - /** Hindi */ - hi = 'hi', - /** Hungarian */ - hu = 'hu', - /** Icelandic */ - is = 'is', - /** Igbo */ - ig = 'ig', - /** Indonesian */ - id = 'id', - /** Interlingua */ - ia = 'ia', - /** Irish */ - ga = 'ga', - /** Italian */ - it = 'it', - /** Japanese */ - ja = 'ja', - /** Javanese */ - jv = 'jv', - /** Kalaallisut */ - kl = 'kl', - /** Kannada */ - kn = 'kn', - /** Kashmiri */ - ks = 'ks', - /** Kazakh */ - kk = 'kk', - /** Khmer */ - km = 'km', - /** Kikuyu */ - ki = 'ki', - /** Kinyarwanda */ - rw = 'rw', - /** Korean */ - ko = 'ko', - /** Kurdish */ - ku = 'ku', - /** Kyrgyz */ - ky = 'ky', - /** Lao */ - lo = 'lo', - /** Latin */ - la = 'la', - /** Latvian */ - lv = 'lv', - /** Lingala */ - ln = 'ln', - /** Lithuanian */ - lt = 'lt', - /** Luba-Katanga */ - lu = 'lu', - /** Luxembourgish */ - lb = 'lb', - /** Macedonian */ - mk = 'mk', - /** Malagasy */ - mg = 'mg', - /** Malay */ - ms = 'ms', - /** Malayalam */ - ml = 'ml', - /** Maltese */ - mt = 'mt', - /** Manx */ - gv = 'gv', - /** Maori */ - mi = 'mi', - /** Marathi */ - mr = 'mr', - /** Mongolian */ - mn = 'mn', - /** Nepali */ - ne = 'ne', - /** North Ndebele */ - nd = 'nd', - /** Northern Sami */ - se = 'se', - /** Norwegian Bokmål */ - nb = 'nb', - /** Norwegian Nynorsk */ - nn = 'nn', - /** Nyanja */ - ny = 'ny', - /** Odia */ - or = 'or', - /** Oromo */ - om = 'om', - /** Ossetic */ - os = 'os', - /** Pashto */ - ps = 'ps', - /** Persian */ - fa = 'fa', - /** Dari */ - fa_AF = 'fa_AF', - /** Polish */ - pl = 'pl', - /** Portuguese */ - pt = 'pt', - /** Brazilian Portuguese */ - pt_BR = 'pt_BR', - /** European Portuguese */ - pt_PT = 'pt_PT', - /** Punjabi */ - pa = 'pa', - /** Quechua */ - qu = 'qu', - /** Romanian */ - ro = 'ro', - /** Moldavian */ - ro_MD = 'ro_MD', - /** Romansh */ - rm = 'rm', - /** Rundi */ - rn = 'rn', - /** Russian */ - ru = 'ru', - /** Samoan */ - sm = 'sm', - /** Sango */ - sg = 'sg', - /** Sanskrit */ - sa = 'sa', - /** Scottish Gaelic */ - gd = 'gd', - /** Serbian */ - sr = 'sr', - /** Shona */ - sn = 'sn', - /** Sichuan Yi */ - ii = 'ii', - /** Sindhi */ - sd = 'sd', - /** Sinhala */ - si = 'si', - /** Slovak */ - sk = 'sk', - /** Slovenian */ - sl = 'sl', - /** Somali */ - so = 'so', - /** Southern Sotho */ - st = 'st', - /** Spanish */ - es = 'es', - /** European Spanish */ - es_ES = 'es_ES', - /** Mexican Spanish */ - es_MX = 'es_MX', - /** Sundanese */ - su = 'su', - /** Swahili */ - sw = 'sw', - /** Congo Swahili */ - sw_CD = 'sw_CD', - /** Swedish */ - sv = 'sv', - /** Tajik */ - tg = 'tg', - /** Tamil */ - ta = 'ta', - /** Tatar */ - tt = 'tt', - /** Telugu */ - te = 'te', - /** Thai */ - th = 'th', - /** Tibetan */ - bo = 'bo', - /** Tigrinya */ - ti = 'ti', - /** Tongan */ - to = 'to', - /** Turkish */ - tr = 'tr', - /** Turkmen */ - tk = 'tk', - /** Ukrainian */ - uk = 'uk', - /** Urdu */ - ur = 'ur', - /** Uyghur */ - ug = 'ug', - /** Uzbek */ - uz = 'uz', - /** Vietnamese */ - vi = 'vi', - /** Volapük */ - vo = 'vo', - /** Welsh */ - cy = 'cy', - /** Western Frisian */ - fy = 'fy', - /** Wolof */ - wo = 'wo', - /** Xhosa */ - xh = 'xh', - /** Yiddish */ - yi = 'yi', - /** Yoruba */ - yo = 'yo', - /** Zulu */ - zu = 'zu', + /** Afrikaans */ + af = 'af', + /** Akan */ + ak = 'ak', + /** Albanian */ + sq = 'sq', + /** Amharic */ + am = 'am', + /** Arabic */ + ar = 'ar', + /** Armenian */ + hy = 'hy', + /** Assamese */ + as = 'as', + /** Azerbaijani */ + az = 'az', + /** Bambara */ + bm = 'bm', + /** Bangla */ + bn = 'bn', + /** Basque */ + eu = 'eu', + /** Belarusian */ + be = 'be', + /** Bosnian */ + bs = 'bs', + /** Breton */ + br = 'br', + /** Bulgarian */ + bg = 'bg', + /** Burmese */ + my = 'my', + /** Catalan */ + ca = 'ca', + /** Chechen */ + ce = 'ce', + /** Chinese */ + zh = 'zh', + /** Simplified Chinese */ + zh_Hans = 'zh_Hans', + /** Traditional Chinese */ + zh_Hant = 'zh_Hant', + /** Church Slavic */ + cu = 'cu', + /** Cornish */ + kw = 'kw', + /** Corsican */ + co = 'co', + /** Croatian */ + hr = 'hr', + /** Czech */ + cs = 'cs', + /** Danish */ + da = 'da', + /** Dutch */ + nl = 'nl', + /** Flemish */ + nl_BE = 'nl_BE', + /** Dzongkha */ + dz = 'dz', + /** English */ + en = 'en', + /** Australian English */ + en_AU = 'en_AU', + /** Canadian English */ + en_CA = 'en_CA', + /** British English */ + en_GB = 'en_GB', + /** American English */ + en_US = 'en_US', + /** Esperanto */ + eo = 'eo', + /** Estonian */ + et = 'et', + /** Ewe */ + ee = 'ee', + /** Faroese */ + fo = 'fo', + /** Finnish */ + fi = 'fi', + /** French */ + fr = 'fr', + /** Canadian French */ + fr_CA = 'fr_CA', + /** Swiss French */ + fr_CH = 'fr_CH', + /** Fulah */ + ff = 'ff', + /** Galician */ + gl = 'gl', + /** Ganda */ + lg = 'lg', + /** Georgian */ + ka = 'ka', + /** German */ + de = 'de', + /** Austrian German */ + de_AT = 'de_AT', + /** Swiss High German */ + de_CH = 'de_CH', + /** Greek */ + el = 'el', + /** Gujarati */ + gu = 'gu', + /** Haitian Creole */ + ht = 'ht', + /** Hausa */ + ha = 'ha', + /** Hebrew */ + he = 'he', + /** Hindi */ + hi = 'hi', + /** Hungarian */ + hu = 'hu', + /** Icelandic */ + is = 'is', + /** Igbo */ + ig = 'ig', + /** Indonesian */ + id = 'id', + /** Interlingua */ + ia = 'ia', + /** Irish */ + ga = 'ga', + /** Italian */ + it = 'it', + /** Japanese */ + ja = 'ja', + /** Javanese */ + jv = 'jv', + /** Kalaallisut */ + kl = 'kl', + /** Kannada */ + kn = 'kn', + /** Kashmiri */ + ks = 'ks', + /** Kazakh */ + kk = 'kk', + /** Khmer */ + km = 'km', + /** Kikuyu */ + ki = 'ki', + /** Kinyarwanda */ + rw = 'rw', + /** Korean */ + ko = 'ko', + /** Kurdish */ + ku = 'ku', + /** Kyrgyz */ + ky = 'ky', + /** Lao */ + lo = 'lo', + /** Latin */ + la = 'la', + /** Latvian */ + lv = 'lv', + /** Lingala */ + ln = 'ln', + /** Lithuanian */ + lt = 'lt', + /** Luba-Katanga */ + lu = 'lu', + /** Luxembourgish */ + lb = 'lb', + /** Macedonian */ + mk = 'mk', + /** Malagasy */ + mg = 'mg', + /** Malay */ + ms = 'ms', + /** Malayalam */ + ml = 'ml', + /** Maltese */ + mt = 'mt', + /** Manx */ + gv = 'gv', + /** Maori */ + mi = 'mi', + /** Marathi */ + mr = 'mr', + /** Mongolian */ + mn = 'mn', + /** Nepali */ + ne = 'ne', + /** North Ndebele */ + nd = 'nd', + /** Northern Sami */ + se = 'se', + /** Norwegian Bokmål */ + nb = 'nb', + /** Norwegian Nynorsk */ + nn = 'nn', + /** Nyanja */ + ny = 'ny', + /** Odia */ + or = 'or', + /** Oromo */ + om = 'om', + /** Ossetic */ + os = 'os', + /** Pashto */ + ps = 'ps', + /** Persian */ + fa = 'fa', + /** Dari */ + fa_AF = 'fa_AF', + /** Polish */ + pl = 'pl', + /** Portuguese */ + pt = 'pt', + /** Brazilian Portuguese */ + pt_BR = 'pt_BR', + /** European Portuguese */ + pt_PT = 'pt_PT', + /** Punjabi */ + pa = 'pa', + /** Quechua */ + qu = 'qu', + /** Romanian */ + ro = 'ro', + /** Moldavian */ + ro_MD = 'ro_MD', + /** Romansh */ + rm = 'rm', + /** Rundi */ + rn = 'rn', + /** Russian */ + ru = 'ru', + /** Samoan */ + sm = 'sm', + /** Sango */ + sg = 'sg', + /** Sanskrit */ + sa = 'sa', + /** Scottish Gaelic */ + gd = 'gd', + /** Serbian */ + sr = 'sr', + /** Shona */ + sn = 'sn', + /** Sichuan Yi */ + ii = 'ii', + /** Sindhi */ + sd = 'sd', + /** Sinhala */ + si = 'si', + /** Slovak */ + sk = 'sk', + /** Slovenian */ + sl = 'sl', + /** Somali */ + so = 'so', + /** Southern Sotho */ + st = 'st', + /** Spanish */ + es = 'es', + /** European Spanish */ + es_ES = 'es_ES', + /** Mexican Spanish */ + es_MX = 'es_MX', + /** Sundanese */ + su = 'su', + /** Swahili */ + sw = 'sw', + /** Congo Swahili */ + sw_CD = 'sw_CD', + /** Swedish */ + sv = 'sv', + /** Tajik */ + tg = 'tg', + /** Tamil */ + ta = 'ta', + /** Tatar */ + tt = 'tt', + /** Telugu */ + te = 'te', + /** Thai */ + th = 'th', + /** Tibetan */ + bo = 'bo', + /** Tigrinya */ + ti = 'ti', + /** Tongan */ + to = 'to', + /** Turkish */ + tr = 'tr', + /** Turkmen */ + tk = 'tk', + /** Ukrainian */ + uk = 'uk', + /** Urdu */ + ur = 'ur', + /** Uyghur */ + ug = 'ug', + /** Uzbek */ + uz = 'uz', + /** Vietnamese */ + vi = 'vi', + /** Volapük */ + vo = 'vo', + /** Welsh */ + cy = 'cy', + /** Western Frisian */ + fy = 'fy', + /** Wolof */ + wo = 'wo', + /** Xhosa */ + xh = 'xh', + /** Yiddish */ + yi = 'yi', + /** Yoruba */ + yo = 'yo', + /** Zulu */ + zu = 'zu' } /** @@ -1310,162 +1340,162 @@ export enum LanguageCode { * @description * Permissions for administrators and customers. Used to control access to * GraphQL resolvers via the {@link Allow} decorator. - * + * * @docsCategory common */ export enum Permission { - /** The Authenticated role means simply that the user is logged in */ - Authenticated = 'Authenticated', - /** SuperAdmin can perform the most sensitive tasks */ - SuperAdmin = 'SuperAdmin', - /** Owner means the user owns this entity, e.g. a Customer's own Order */ - Owner = 'Owner', - /** Public means any unauthenticated user may perform the operation */ - Public = 'Public', - CreateCatalog = 'CreateCatalog', - ReadCatalog = 'ReadCatalog', - UpdateCatalog = 'UpdateCatalog', - DeleteCatalog = 'DeleteCatalog', - CreateCustomer = 'CreateCustomer', - ReadCustomer = 'ReadCustomer', - UpdateCustomer = 'UpdateCustomer', - DeleteCustomer = 'DeleteCustomer', - CreateAdministrator = 'CreateAdministrator', - ReadAdministrator = 'ReadAdministrator', - UpdateAdministrator = 'UpdateAdministrator', - DeleteAdministrator = 'DeleteAdministrator', - CreateOrder = 'CreateOrder', - ReadOrder = 'ReadOrder', - UpdateOrder = 'UpdateOrder', - DeleteOrder = 'DeleteOrder', - CreatePromotion = 'CreatePromotion', - ReadPromotion = 'ReadPromotion', - UpdatePromotion = 'UpdatePromotion', - DeletePromotion = 'DeletePromotion', - CreateSettings = 'CreateSettings', - ReadSettings = 'ReadSettings', - UpdateSettings = 'UpdateSettings', - DeleteSettings = 'DeleteSettings', + /** The Authenticated role means simply that the user is logged in */ + Authenticated = 'Authenticated', + /** SuperAdmin can perform the most sensitive tasks */ + SuperAdmin = 'SuperAdmin', + /** Owner means the user owns this entity, e.g. a Customer's own Order */ + Owner = 'Owner', + /** Public means any unauthenticated user may perform the operation */ + Public = 'Public', + CreateCatalog = 'CreateCatalog', + ReadCatalog = 'ReadCatalog', + UpdateCatalog = 'UpdateCatalog', + DeleteCatalog = 'DeleteCatalog', + CreateCustomer = 'CreateCustomer', + ReadCustomer = 'ReadCustomer', + UpdateCustomer = 'UpdateCustomer', + DeleteCustomer = 'DeleteCustomer', + CreateAdministrator = 'CreateAdministrator', + ReadAdministrator = 'ReadAdministrator', + UpdateAdministrator = 'UpdateAdministrator', + DeleteAdministrator = 'DeleteAdministrator', + CreateOrder = 'CreateOrder', + ReadOrder = 'ReadOrder', + UpdateOrder = 'UpdateOrder', + DeleteOrder = 'DeleteOrder', + CreatePromotion = 'CreatePromotion', + ReadPromotion = 'ReadPromotion', + UpdatePromotion = 'UpdatePromotion', + DeletePromotion = 'DeletePromotion', + CreateSettings = 'CreateSettings', + ReadSettings = 'ReadSettings', + UpdateSettings = 'UpdateSettings', + DeleteSettings = 'DeleteSettings' } export type RegisterCustomerInput = { - emailAddress: Scalars['String']; - title?: Maybe; - firstName?: Maybe; - lastName?: Maybe; - phoneNumber?: Maybe; - password?: Maybe; + emailAddress: Scalars['String']; + title?: Maybe; + firstName?: Maybe; + lastName?: Maybe; + phoneNumber?: Maybe; + password?: Maybe; }; export type UpdateCustomerInput = { - title?: Maybe; - firstName?: Maybe; - lastName?: Maybe; - phoneNumber?: Maybe; - customFields?: Maybe; + title?: Maybe; + firstName?: Maybe; + lastName?: Maybe; + phoneNumber?: Maybe; + customFields?: Maybe; }; /** Passed as input to the `addPaymentToOrder` mutation. */ 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 - * as the "metadata" argument. For example, it could contain an ID for the payment and other - * data generated by the payment provider. - */ - metadata: Scalars['JSON']; + /** 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 + * as the "metadata" argument. For example, it could contain an ID for the payment and other + * data generated by the payment provider. + */ + metadata: Scalars['JSON']; }; /** Returned when attempting to modify the contents of an Order that is not in the `AddingItems` state. */ export type OrderModificationError = ErrorResult & { - __typename?: 'OrderModificationError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'OrderModificationError'; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Retured when the maximum order size limit has been reached. */ export type OrderLimitError = ErrorResult & { - __typename?: 'OrderLimitError'; - errorCode: ErrorCode; - message: Scalars['String']; - maxItems: Scalars['Int']; + __typename?: 'OrderLimitError'; + errorCode: ErrorCode; + message: Scalars['String']; + maxItems: Scalars['Int']; }; /** Retured when attemting to set a negative OrderLine quantity. */ export type NegativeQuantityError = ErrorResult & { - __typename?: 'NegativeQuantityError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'NegativeQuantityError'; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned when attempting to add a Payment to an Order that is not in the `ArrangingPayment` state. */ export type OrderPaymentStateError = ErrorResult & { - __typename?: 'OrderPaymentStateError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'OrderPaymentStateError'; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned when a Payment fails due to an error. */ export type PaymentFailedError = ErrorResult & { - __typename?: 'PaymentFailedError'; - errorCode: ErrorCode; - message: Scalars['String']; - paymentErrorMessage: Scalars['String']; + __typename?: 'PaymentFailedError'; + errorCode: ErrorCode; + message: Scalars['String']; + paymentErrorMessage: Scalars['String']; }; /** Returned when a Payment is declined by the payment provider. */ export type PaymentDeclinedError = ErrorResult & { - __typename?: 'PaymentDeclinedError'; - errorCode: ErrorCode; - message: Scalars['String']; - paymentErrorMessage: Scalars['String']; + __typename?: 'PaymentDeclinedError'; + errorCode: ErrorCode; + message: Scalars['String']; + paymentErrorMessage: Scalars['String']; }; /** Returned if the provided coupon code is invalid */ export type CouponCodeInvalidError = ErrorResult & { - __typename?: 'CouponCodeInvalidError'; - errorCode: ErrorCode; - message: Scalars['String']; - couponCode: Scalars['String']; + __typename?: 'CouponCodeInvalidError'; + errorCode: ErrorCode; + message: Scalars['String']; + couponCode: Scalars['String']; }; /** Returned if the provided coupon code is invalid */ export type CouponCodeExpiredError = ErrorResult & { - __typename?: 'CouponCodeExpiredError'; - errorCode: ErrorCode; - message: Scalars['String']; - couponCode: Scalars['String']; + __typename?: 'CouponCodeExpiredError'; + errorCode: ErrorCode; + message: Scalars['String']; + couponCode: Scalars['String']; }; /** Returned if the provided coupon code is invalid */ export type CouponCodeLimitError = ErrorResult & { - __typename?: 'CouponCodeLimitError'; - errorCode: ErrorCode; - message: Scalars['String']; - couponCode: Scalars['String']; - limit: Scalars['Int']; + __typename?: 'CouponCodeLimitError'; + errorCode: ErrorCode; + message: Scalars['String']; + couponCode: Scalars['String']; + limit: Scalars['Int']; }; /** Retured when attemting to set the Customer for an Order when already logged in. */ export type AlreadyLoggedInError = ErrorResult & { - __typename?: 'AlreadyLoggedInError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'AlreadyLoggedInError'; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Retured when attemting to register or verify a customer account without a password, when one is required. */ export type MissingPasswordError = ErrorResult & { - __typename?: 'MissingPasswordError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'MissingPasswordError'; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Retured when attemting to verify a customer account with a password, when a password has already been set. */ export type PasswordAlreadySetError = ErrorResult & { - __typename?: 'PasswordAlreadySetError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'PasswordAlreadySetError'; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -1473,9 +1503,9 @@ export type PasswordAlreadySetError = ErrorResult & { * invalid or does not match any expected tokens. */ export type VerificationTokenInvalidError = ErrorResult & { - __typename?: 'VerificationTokenInvalidError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'VerificationTokenInvalidError'; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -1483,9 +1513,9 @@ export type VerificationTokenInvalidError = ErrorResult & { * expired according to the `verificationTokenDuration` setting in the AuthOptions. */ export type VerificationTokenExpiredError = ErrorResult & { - __typename?: 'VerificationTokenExpiredError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'VerificationTokenExpiredError'; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -1493,9 +1523,9 @@ export type VerificationTokenExpiredError = ErrorResult & { * invalid or does not match any expected tokens. */ export type IdentifierChangeTokenInvalidError = ErrorResult & { - __typename?: 'IdentifierChangeTokenInvalidError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'IdentifierChangeTokenInvalidError'; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -1503,9 +1533,9 @@ export type IdentifierChangeTokenInvalidError = ErrorResult & { * expired according to the `verificationTokenDuration` setting in the AuthOptions. */ export type IdentifierChangeTokenExpiredError = ErrorResult & { - __typename?: 'IdentifierChangeTokenExpiredError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'IdentifierChangeTokenExpiredError'; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -1513,9 +1543,9 @@ export type IdentifierChangeTokenExpiredError = ErrorResult & { * invalid or does not match any expected tokens. */ export type PasswordResetTokenInvalidError = ErrorResult & { - __typename?: 'PasswordResetTokenInvalidError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'PasswordResetTokenInvalidError'; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -1523,9 +1553,9 @@ export type PasswordResetTokenInvalidError = ErrorResult & { * expired according to the `verificationTokenDuration` setting in the AuthOptions. */ export type PasswordResetTokenExpiredError = ErrorResult & { - __typename?: 'PasswordResetTokenExpiredError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'PasswordResetTokenExpiredError'; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -1533,9 +1563,9 @@ export type PasswordResetTokenExpiredError = ErrorResult & { * and an unverified user attempts to authenticate. */ export type NotVerifiedError = ErrorResult & { - __typename?: 'NotVerifiedError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'NotVerifiedError'; + errorCode: ErrorCode; + message: Scalars['String']; }; export type UpdateOrderItemsResult = Order | OrderModificationError | OrderLimitError | NegativeQuantityError; @@ -1544,18 +1574,9 @@ export type RemoveOrderItemsResult = Order | OrderModificationError; export type SetOrderShippingMethodResult = Order | OrderModificationError; -export type ApplyCouponCodeResult = - | Order - | CouponCodeExpiredError - | CouponCodeInvalidError - | CouponCodeLimitError; +export type ApplyCouponCodeResult = Order | CouponCodeExpiredError | CouponCodeInvalidError | CouponCodeLimitError; -export type AddPaymentToOrderResult = - | Order - | OrderPaymentStateError - | PaymentFailedError - | PaymentDeclinedError - | OrderStateTransitionError; +export type AddPaymentToOrderResult = Order | OrderPaymentStateError | PaymentFailedError | PaymentDeclinedError | OrderStateTransitionError; export type TransitionOrderToStateResult = Order | OrderStateTransitionError; @@ -1565,597 +1586,579 @@ export type RegisterCustomerAccountResult = Success | MissingPasswordError | Nat export type RefreshCustomerVerificationResult = Success | NativeAuthStrategyError; -export type VerifyCustomerAccountResult = - | CurrentUser - | VerificationTokenInvalidError - | VerificationTokenExpiredError - | MissingPasswordError - | PasswordAlreadySetError - | NativeAuthStrategyError; +export type VerifyCustomerAccountResult = CurrentUser | VerificationTokenInvalidError | VerificationTokenExpiredError | MissingPasswordError | PasswordAlreadySetError | NativeAuthStrategyError; export type UpdateCustomerPasswordResult = Success | InvalidCredentialsError | NativeAuthStrategyError; -export type RequestUpdateCustomerEmailAddressResult = - | Success - | InvalidCredentialsError - | EmailAddressConflictError - | NativeAuthStrategyError; +export type RequestUpdateCustomerEmailAddressResult = Success | InvalidCredentialsError | EmailAddressConflictError | NativeAuthStrategyError; -export type UpdateCustomerEmailAddressResult = - | Success - | IdentifierChangeTokenInvalidError - | IdentifierChangeTokenExpiredError - | NativeAuthStrategyError; +export type UpdateCustomerEmailAddressResult = Success | IdentifierChangeTokenInvalidError | IdentifierChangeTokenExpiredError | NativeAuthStrategyError; export type RequestPasswordResetResult = Success | NativeAuthStrategyError; -export type ResetPasswordResult = - | CurrentUser - | PasswordResetTokenInvalidError - | PasswordResetTokenExpiredError - | NativeAuthStrategyError; +export type ResetPasswordResult = CurrentUser | PasswordResetTokenInvalidError | PasswordResetTokenExpiredError | NativeAuthStrategyError; -export type NativeAuthenticationResult = - | CurrentUser - | InvalidCredentialsError - | NotVerifiedError - | NativeAuthStrategyError; +export type NativeAuthenticationResult = CurrentUser | InvalidCredentialsError | NotVerifiedError | NativeAuthStrategyError; export type AuthenticationResult = CurrentUser | InvalidCredentialsError | NotVerifiedError; export type Address = Node & { - __typename?: 'Address'; - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - fullName?: Maybe; - company?: Maybe; - streetLine1: Scalars['String']; - streetLine2?: Maybe; - city?: Maybe; - province?: Maybe; - postalCode?: Maybe; - country: Country; - phoneNumber?: Maybe; - defaultShippingAddress?: Maybe; - defaultBillingAddress?: Maybe; - customFields?: Maybe; + __typename?: 'Address'; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + fullName?: Maybe; + company?: Maybe; + streetLine1: Scalars['String']; + streetLine2?: Maybe; + city?: Maybe; + province?: Maybe; + postalCode?: Maybe; + country: Country; + phoneNumber?: Maybe; + defaultShippingAddress?: Maybe; + defaultBillingAddress?: Maybe; + customFields?: Maybe; }; export type Administrator = Node & { - __typename?: 'Administrator'; - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - firstName: Scalars['String']; - lastName: Scalars['String']; - emailAddress: Scalars['String']; - user: User; + __typename?: 'Administrator'; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + firstName: Scalars['String']; + lastName: Scalars['String']; + emailAddress: Scalars['String']; + user: User; }; export type AdministratorList = PaginatedList & { - __typename?: 'AdministratorList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'AdministratorList'; + items: Array; + totalItems: Scalars['Int']; }; export type Asset = Node & { - __typename?: 'Asset'; - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - name: Scalars['String']; - type: AssetType; - fileSize: Scalars['Int']; - mimeType: Scalars['String']; - width: Scalars['Int']; - height: Scalars['Int']; - source: Scalars['String']; - preview: Scalars['String']; - focalPoint?: Maybe; + __typename?: 'Asset'; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + name: Scalars['String']; + type: AssetType; + fileSize: Scalars['Int']; + mimeType: Scalars['String']; + width: Scalars['Int']; + height: Scalars['Int']; + source: Scalars['String']; + preview: Scalars['String']; + focalPoint?: Maybe; }; export type Coordinate = { - __typename?: 'Coordinate'; - x: Scalars['Float']; - y: Scalars['Float']; + __typename?: 'Coordinate'; + x: Scalars['Float']; + y: Scalars['Float']; }; export type AssetList = PaginatedList & { - __typename?: 'AssetList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'AssetList'; + items: Array; + totalItems: Scalars['Int']; }; export enum AssetType { - IMAGE = 'IMAGE', - VIDEO = 'VIDEO', - BINARY = 'BINARY', + IMAGE = 'IMAGE', + VIDEO = 'VIDEO', + BINARY = 'BINARY' } export type CurrentUser = { - __typename?: 'CurrentUser'; - id: Scalars['ID']; - identifier: Scalars['String']; - channels: Array; + __typename?: 'CurrentUser'; + id: Scalars['ID']; + identifier: Scalars['String']; + channels: Array; }; export type CurrentUserChannel = { - __typename?: 'CurrentUserChannel'; - id: Scalars['ID']; - token: Scalars['String']; - code: Scalars['String']; - permissions: Array; + __typename?: 'CurrentUserChannel'; + id: Scalars['ID']; + token: Scalars['String']; + code: Scalars['String']; + permissions: Array; }; export type Channel = Node & { - __typename?: 'Channel'; - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - code: Scalars['String']; - token: Scalars['String']; - defaultTaxZone?: Maybe; - defaultShippingZone?: Maybe; - defaultLanguageCode: LanguageCode; - currencyCode: CurrencyCode; - pricesIncludeTax: Scalars['Boolean']; + __typename?: 'Channel'; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + code: Scalars['String']; + token: Scalars['String']; + defaultTaxZone?: Maybe; + defaultShippingZone?: Maybe; + defaultLanguageCode: LanguageCode; + currencyCode: CurrencyCode; + pricesIncludeTax: Scalars['Boolean']; }; export type Collection = Node & { - __typename?: 'Collection'; - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - languageCode?: Maybe; - name: Scalars['String']; - slug: Scalars['String']; - breadcrumbs: Array; - position: Scalars['Int']; - description: Scalars['String']; - featuredAsset?: Maybe; - assets: Array; - parent?: Maybe; - children?: Maybe>; - filters: Array; - translations: Array; - productVariants: ProductVariantList; - customFields?: Maybe; + __typename?: 'Collection'; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + languageCode?: Maybe; + name: Scalars['String']; + slug: Scalars['String']; + breadcrumbs: Array; + position: Scalars['Int']; + description: Scalars['String']; + featuredAsset?: Maybe; + assets: Array; + parent?: Maybe; + children?: Maybe>; + filters: Array; + translations: Array; + productVariants: ProductVariantList; + customFields?: Maybe; }; + export type CollectionProductVariantsArgs = { - options?: Maybe; + options?: Maybe; }; export type CollectionBreadcrumb = { - __typename?: 'CollectionBreadcrumb'; - id: Scalars['ID']; - name: Scalars['String']; - slug: Scalars['String']; + __typename?: 'CollectionBreadcrumb'; + id: Scalars['ID']; + name: Scalars['String']; + slug: Scalars['String']; }; export type CollectionTranslation = { - __typename?: 'CollectionTranslation'; - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - languageCode: LanguageCode; - name: Scalars['String']; - slug: Scalars['String']; - description: Scalars['String']; + __typename?: 'CollectionTranslation'; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + languageCode: LanguageCode; + name: Scalars['String']; + slug: Scalars['String']; + description: Scalars['String']; }; export type CollectionList = PaginatedList & { - __typename?: 'CollectionList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'CollectionList'; + items: Array; + totalItems: Scalars['Int']; }; export type ProductVariantList = PaginatedList & { - __typename?: 'ProductVariantList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'ProductVariantList'; + items: Array; + totalItems: Scalars['Int']; }; export type Country = Node & { - __typename?: 'Country'; - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - languageCode: LanguageCode; - code: Scalars['String']; - name: Scalars['String']; - enabled: Scalars['Boolean']; - translations: Array; + __typename?: 'Country'; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + languageCode: LanguageCode; + code: Scalars['String']; + name: Scalars['String']; + enabled: Scalars['Boolean']; + translations: Array; }; export type CountryTranslation = { - __typename?: 'CountryTranslation'; - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - languageCode: LanguageCode; - name: Scalars['String']; + __typename?: 'CountryTranslation'; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + languageCode: LanguageCode; + name: Scalars['String']; }; export type CountryList = PaginatedList & { - __typename?: 'CountryList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'CountryList'; + items: Array; + totalItems: Scalars['Int']; }; export type CustomerGroup = Node & { - __typename?: 'CustomerGroup'; - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - name: Scalars['String']; - customers: CustomerList; + __typename?: 'CustomerGroup'; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + name: Scalars['String']; + customers: CustomerList; }; + export type CustomerGroupCustomersArgs = { - options?: Maybe; + options?: Maybe; }; export type Customer = Node & { - __typename?: 'Customer'; - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - title?: Maybe; - firstName: Scalars['String']; - lastName: Scalars['String']; - phoneNumber?: Maybe; - emailAddress: Scalars['String']; - addresses?: Maybe>; - orders: OrderList; - user?: Maybe; - customFields?: Maybe; + __typename?: 'Customer'; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + title?: Maybe; + firstName: Scalars['String']; + lastName: Scalars['String']; + phoneNumber?: Maybe; + emailAddress: Scalars['String']; + addresses?: Maybe>; + orders: OrderList; + user?: Maybe; + customFields?: Maybe; }; + export type CustomerOrdersArgs = { - options?: Maybe; + options?: Maybe; }; export type CustomerList = PaginatedList & { - __typename?: 'CustomerList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'CustomerList'; + items: Array; + totalItems: Scalars['Int']; }; export type FacetValue = Node & { - __typename?: 'FacetValue'; - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - languageCode: LanguageCode; - facet: Facet; - name: Scalars['String']; - code: Scalars['String']; - translations: Array; - customFields?: Maybe; + __typename?: 'FacetValue'; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + languageCode: LanguageCode; + facet: Facet; + name: Scalars['String']; + code: Scalars['String']; + translations: Array; + customFields?: Maybe; }; export type FacetValueTranslation = { - __typename?: 'FacetValueTranslation'; - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - languageCode: LanguageCode; - name: Scalars['String']; + __typename?: 'FacetValueTranslation'; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + languageCode: LanguageCode; + name: Scalars['String']; }; export type Facet = Node & { - __typename?: 'Facet'; - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - languageCode: LanguageCode; - name: Scalars['String']; - code: Scalars['String']; - values: Array; - translations: Array; - customFields?: Maybe; + __typename?: 'Facet'; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + languageCode: LanguageCode; + name: Scalars['String']; + code: Scalars['String']; + values: Array; + translations: Array; + customFields?: Maybe; }; export type FacetTranslation = { - __typename?: 'FacetTranslation'; - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - languageCode: LanguageCode; - name: Scalars['String']; + __typename?: 'FacetTranslation'; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + languageCode: LanguageCode; + name: Scalars['String']; }; export type FacetList = PaginatedList & { - __typename?: 'FacetList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'FacetList'; + items: Array; + totalItems: Scalars['Int']; }; export type GlobalSettings = { - __typename?: 'GlobalSettings'; - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - availableLanguages: Array; - trackInventory: Scalars['Boolean']; - serverConfig: ServerConfig; - customFields?: Maybe; + __typename?: 'GlobalSettings'; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + availableLanguages: Array; + trackInventory: Scalars['Boolean']; + serverConfig: ServerConfig; + customFields?: Maybe; }; export type OrderProcessState = { - __typename?: 'OrderProcessState'; - name: Scalars['String']; - to: Array; + __typename?: 'OrderProcessState'; + name: Scalars['String']; + to: Array; }; export type ServerConfig = { - __typename?: 'ServerConfig'; - orderProcess: Array; - permittedAssetTypes: Array; - customFieldConfig: CustomFields; + __typename?: 'ServerConfig'; + orderProcess: Array; + permittedAssetTypes: Array; + customFieldConfig: CustomFields; }; export type HistoryEntry = Node & { - __typename?: 'HistoryEntry'; - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - isPublic: Scalars['Boolean']; - type: HistoryEntryType; - administrator?: Maybe; - data: Scalars['JSON']; + __typename?: 'HistoryEntry'; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + isPublic: Scalars['Boolean']; + type: HistoryEntryType; + administrator?: Maybe; + data: Scalars['JSON']; }; export enum HistoryEntryType { - CUSTOMER_REGISTERED = 'CUSTOMER_REGISTERED', - CUSTOMER_VERIFIED = 'CUSTOMER_VERIFIED', - CUSTOMER_DETAIL_UPDATED = 'CUSTOMER_DETAIL_UPDATED', - CUSTOMER_ADDED_TO_GROUP = 'CUSTOMER_ADDED_TO_GROUP', - CUSTOMER_REMOVED_FROM_GROUP = 'CUSTOMER_REMOVED_FROM_GROUP', - CUSTOMER_ADDRESS_CREATED = 'CUSTOMER_ADDRESS_CREATED', - CUSTOMER_ADDRESS_UPDATED = 'CUSTOMER_ADDRESS_UPDATED', - CUSTOMER_ADDRESS_DELETED = 'CUSTOMER_ADDRESS_DELETED', - CUSTOMER_PASSWORD_UPDATED = 'CUSTOMER_PASSWORD_UPDATED', - CUSTOMER_PASSWORD_RESET_REQUESTED = 'CUSTOMER_PASSWORD_RESET_REQUESTED', - CUSTOMER_PASSWORD_RESET_VERIFIED = 'CUSTOMER_PASSWORD_RESET_VERIFIED', - CUSTOMER_EMAIL_UPDATE_REQUESTED = 'CUSTOMER_EMAIL_UPDATE_REQUESTED', - CUSTOMER_EMAIL_UPDATE_VERIFIED = 'CUSTOMER_EMAIL_UPDATE_VERIFIED', - CUSTOMER_NOTE = 'CUSTOMER_NOTE', - ORDER_STATE_TRANSITION = 'ORDER_STATE_TRANSITION', - ORDER_PAYMENT_TRANSITION = 'ORDER_PAYMENT_TRANSITION', - ORDER_FULFILLMENT = 'ORDER_FULFILLMENT', - ORDER_CANCELLATION = 'ORDER_CANCELLATION', - ORDER_REFUND_TRANSITION = 'ORDER_REFUND_TRANSITION', - ORDER_FULFILLMENT_TRANSITION = 'ORDER_FULFILLMENT_TRANSITION', - ORDER_NOTE = 'ORDER_NOTE', - ORDER_COUPON_APPLIED = 'ORDER_COUPON_APPLIED', - ORDER_COUPON_REMOVED = 'ORDER_COUPON_REMOVED', + CUSTOMER_REGISTERED = 'CUSTOMER_REGISTERED', + CUSTOMER_VERIFIED = 'CUSTOMER_VERIFIED', + CUSTOMER_DETAIL_UPDATED = 'CUSTOMER_DETAIL_UPDATED', + CUSTOMER_ADDED_TO_GROUP = 'CUSTOMER_ADDED_TO_GROUP', + CUSTOMER_REMOVED_FROM_GROUP = 'CUSTOMER_REMOVED_FROM_GROUP', + CUSTOMER_ADDRESS_CREATED = 'CUSTOMER_ADDRESS_CREATED', + CUSTOMER_ADDRESS_UPDATED = 'CUSTOMER_ADDRESS_UPDATED', + CUSTOMER_ADDRESS_DELETED = 'CUSTOMER_ADDRESS_DELETED', + CUSTOMER_PASSWORD_UPDATED = 'CUSTOMER_PASSWORD_UPDATED', + CUSTOMER_PASSWORD_RESET_REQUESTED = 'CUSTOMER_PASSWORD_RESET_REQUESTED', + CUSTOMER_PASSWORD_RESET_VERIFIED = 'CUSTOMER_PASSWORD_RESET_VERIFIED', + CUSTOMER_EMAIL_UPDATE_REQUESTED = 'CUSTOMER_EMAIL_UPDATE_REQUESTED', + CUSTOMER_EMAIL_UPDATE_VERIFIED = 'CUSTOMER_EMAIL_UPDATE_VERIFIED', + CUSTOMER_NOTE = 'CUSTOMER_NOTE', + ORDER_STATE_TRANSITION = 'ORDER_STATE_TRANSITION', + ORDER_PAYMENT_TRANSITION = 'ORDER_PAYMENT_TRANSITION', + ORDER_FULFILLMENT = 'ORDER_FULFILLMENT', + ORDER_CANCELLATION = 'ORDER_CANCELLATION', + ORDER_REFUND_TRANSITION = 'ORDER_REFUND_TRANSITION', + ORDER_FULFILLMENT_TRANSITION = 'ORDER_FULFILLMENT_TRANSITION', + ORDER_NOTE = 'ORDER_NOTE', + ORDER_COUPON_APPLIED = 'ORDER_COUPON_APPLIED', + ORDER_COUPON_REMOVED = 'ORDER_COUPON_REMOVED' } export type HistoryEntryList = PaginatedList & { - __typename?: 'HistoryEntryList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'HistoryEntryList'; + items: Array; + totalItems: Scalars['Int']; }; export type ImportInfo = { - __typename?: 'ImportInfo'; - errors?: Maybe>; - processed: Scalars['Int']; - imported: Scalars['Int']; + __typename?: 'ImportInfo'; + errors?: Maybe>; + processed: Scalars['Int']; + imported: Scalars['Int']; }; export type Order = Node & { - __typename?: 'Order'; - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - /** A unique code for the Order */ - code: Scalars['String']; - state: Scalars['String']; - /** An order is active as long as the payment process has not been completed */ - active: Scalars['Boolean']; - customer?: Maybe; - shippingAddress?: Maybe; - billingAddress?: Maybe; - lines: Array; - /** Order-level adjustments to the order total, such as discounts from promotions */ - adjustments: Array; - couponCodes: Array; - /** Promotions applied to the order. Only gets populated after the payment process has completed. */ - promotions: Array; - payments?: Maybe>; - fulfillments?: Maybe>; - totalQuantity: Scalars['Int']; - subTotalBeforeTax: Scalars['Int']; - /** The subTotal is the total of the OrderLines, before order-level promotions and shipping has been applied. */ - subTotal: Scalars['Int']; - currencyCode: CurrencyCode; - shipping: Scalars['Int']; - shippingWithTax: Scalars['Int']; - shippingMethod?: Maybe; - totalBeforeTax: Scalars['Int']; - total: Scalars['Int']; - history: HistoryEntryList; - customFields?: Maybe; + __typename?: 'Order'; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + /** A unique code for the Order */ + code: Scalars['String']; + state: Scalars['String']; + /** An order is active as long as the payment process has not been completed */ + active: Scalars['Boolean']; + customer?: Maybe; + shippingAddress?: Maybe; + billingAddress?: Maybe; + lines: Array; + /** Order-level adjustments to the order total, such as discounts from promotions */ + adjustments: Array; + couponCodes: Array; + /** Promotions applied to the order. Only gets populated after the payment process has completed. */ + promotions: Array; + payments?: Maybe>; + fulfillments?: Maybe>; + totalQuantity: Scalars['Int']; + subTotalBeforeTax: Scalars['Int']; + /** The subTotal is the total of the OrderLines, before order-level promotions and shipping has been applied. */ + subTotal: Scalars['Int']; + currencyCode: CurrencyCode; + shipping: Scalars['Int']; + shippingWithTax: Scalars['Int']; + shippingMethod?: Maybe; + totalBeforeTax: Scalars['Int']; + total: Scalars['Int']; + history: HistoryEntryList; + customFields?: Maybe; }; + export type OrderHistoryArgs = { - options?: Maybe; + options?: Maybe; }; export type OrderAddress = { - __typename?: 'OrderAddress'; - fullName?: Maybe; - company?: Maybe; - streetLine1?: Maybe; - streetLine2?: Maybe; - city?: Maybe; - province?: Maybe; - postalCode?: Maybe; - country?: Maybe; - countryCode?: Maybe; - phoneNumber?: Maybe; + __typename?: 'OrderAddress'; + fullName?: Maybe; + company?: Maybe; + streetLine1?: Maybe; + streetLine2?: Maybe; + city?: Maybe; + province?: Maybe; + postalCode?: Maybe; + country?: Maybe; + countryCode?: Maybe; + phoneNumber?: Maybe; }; export type OrderList = PaginatedList & { - __typename?: 'OrderList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'OrderList'; + items: Array; + totalItems: Scalars['Int']; }; export type ShippingMethodQuote = { - __typename?: 'ShippingMethodQuote'; - id: Scalars['ID']; - price: Scalars['Int']; - priceWithTax: Scalars['Int']; - description: Scalars['String']; - metadata?: Maybe; + __typename?: 'ShippingMethodQuote'; + id: Scalars['ID']; + price: Scalars['Int']; + priceWithTax: Scalars['Int']; + description: Scalars['String']; + metadata?: Maybe; }; export type OrderItem = Node & { - __typename?: 'OrderItem'; - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - cancelled: Scalars['Boolean']; - unitPrice: Scalars['Int']; - unitPriceWithTax: Scalars['Int']; - unitPriceIncludesTax: Scalars['Boolean']; - taxRate: Scalars['Float']; - adjustments: Array; - fulfillment?: Maybe; - refundId?: Maybe; + __typename?: 'OrderItem'; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + cancelled: Scalars['Boolean']; + unitPrice: Scalars['Int']; + unitPriceWithTax: Scalars['Int']; + unitPriceIncludesTax: Scalars['Boolean']; + taxRate: Scalars['Float']; + adjustments: Array; + fulfillment?: Maybe; + refundId?: Maybe; }; export type OrderLine = Node & { - __typename?: 'OrderLine'; - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - productVariant: ProductVariant; - featuredAsset?: Maybe; - unitPrice: Scalars['Int']; - unitPriceWithTax: Scalars['Int']; - quantity: Scalars['Int']; - items: Array; - totalPrice: Scalars['Int']; - adjustments: Array; - order: Order; - customFields?: Maybe; + __typename?: 'OrderLine'; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + productVariant: ProductVariant; + featuredAsset?: Maybe; + unitPrice: Scalars['Int']; + unitPriceWithTax: Scalars['Int']; + quantity: Scalars['Int']; + items: Array; + totalPrice: Scalars['Int']; + adjustments: Array; + order: Order; + customFields?: Maybe; }; export type Payment = Node & { - __typename?: 'Payment'; - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - method: Scalars['String']; - amount: Scalars['Int']; - state: Scalars['String']; - transactionId?: Maybe; - errorMessage?: Maybe; - refunds: Array; - metadata?: Maybe; + __typename?: 'Payment'; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + method: Scalars['String']; + amount: Scalars['Int']; + state: Scalars['String']; + transactionId?: Maybe; + errorMessage?: Maybe; + refunds: Array; + metadata?: Maybe; }; export type Refund = Node & { - __typename?: 'Refund'; - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - items: Scalars['Int']; - shipping: Scalars['Int']; - adjustment: Scalars['Int']; - total: Scalars['Int']; - method?: Maybe; - state: Scalars['String']; - transactionId?: Maybe; - reason?: Maybe; - orderItems: Array; - paymentId: Scalars['ID']; - metadata?: Maybe; + __typename?: 'Refund'; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + items: Scalars['Int']; + shipping: Scalars['Int']; + adjustment: Scalars['Int']; + total: Scalars['Int']; + method?: Maybe; + state: Scalars['String']; + transactionId?: Maybe; + reason?: Maybe; + orderItems: Array; + paymentId: Scalars['ID']; + metadata?: Maybe; }; export type Fulfillment = Node & { - __typename?: 'Fulfillment'; - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - orderItems: Array; - state: Scalars['String']; - method: Scalars['String']; - trackingCode?: Maybe; + __typename?: 'Fulfillment'; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + orderItems: Array; + state: Scalars['String']; + method: Scalars['String']; + trackingCode?: Maybe; }; export type PaymentMethod = Node & { - __typename?: 'PaymentMethod'; - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - code: Scalars['String']; - enabled: Scalars['Boolean']; - configArgs: Array; - definition: ConfigurableOperationDefinition; + __typename?: 'PaymentMethod'; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + code: Scalars['String']; + enabled: Scalars['Boolean']; + configArgs: Array; + definition: ConfigurableOperationDefinition; }; export type ProductOptionGroup = Node & { - __typename?: 'ProductOptionGroup'; - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - languageCode: LanguageCode; - code: Scalars['String']; - name: Scalars['String']; - options: Array; - translations: Array; - customFields?: Maybe; + __typename?: 'ProductOptionGroup'; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + languageCode: LanguageCode; + code: Scalars['String']; + name: Scalars['String']; + options: Array; + translations: Array; + customFields?: Maybe; }; export type ProductOptionGroupTranslation = { - __typename?: 'ProductOptionGroupTranslation'; - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - languageCode: LanguageCode; - name: Scalars['String']; + __typename?: 'ProductOptionGroupTranslation'; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + languageCode: LanguageCode; + name: Scalars['String']; }; export type ProductOption = Node & { - __typename?: 'ProductOption'; - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - languageCode: LanguageCode; - code: Scalars['String']; - name: Scalars['String']; - groupId: Scalars['ID']; - group: ProductOptionGroup; - translations: Array; - customFields?: Maybe; + __typename?: 'ProductOption'; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + languageCode: LanguageCode; + code: Scalars['String']; + name: Scalars['String']; + groupId: Scalars['ID']; + group: ProductOptionGroup; + translations: Array; + customFields?: Maybe; }; export type ProductOptionTranslation = { - __typename?: 'ProductOptionTranslation'; - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - languageCode: LanguageCode; - name: Scalars['String']; + __typename?: 'ProductOptionTranslation'; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + languageCode: LanguageCode; + name: Scalars['String']; }; export type SearchReindexResponse = { - __typename?: 'SearchReindexResponse'; - success: Scalars['Boolean']; + __typename?: 'SearchReindexResponse'; + success: Scalars['Boolean']; }; export type SearchResponse = { - __typename?: 'SearchResponse'; - items: Array; - totalItems: Scalars['Int']; - facetValues: Array; + __typename?: 'SearchResponse'; + items: Array; + totalItems: Scalars['Int']; + facetValues: Array; }; /** @@ -2163,42 +2166,42 @@ export type SearchResponse = { * by the search, and in what quantity. */ export type FacetValueResult = { - __typename?: 'FacetValueResult'; - facetValue: FacetValue; - count: Scalars['Int']; + __typename?: 'FacetValueResult'; + facetValue: FacetValue; + count: Scalars['Int']; }; export type SearchResultAsset = { - __typename?: 'SearchResultAsset'; - id: Scalars['ID']; - preview: Scalars['String']; - focalPoint?: Maybe; + __typename?: 'SearchResultAsset'; + id: Scalars['ID']; + preview: Scalars['String']; + focalPoint?: Maybe; }; export type SearchResult = { - __typename?: 'SearchResult'; - sku: Scalars['String']; - slug: Scalars['String']; - productId: Scalars['ID']; - productName: Scalars['String']; - /** @deprecated Use `productAsset.preview` instead */ - productPreview: Scalars['String']; - productAsset?: Maybe; - productVariantId: Scalars['ID']; - productVariantName: Scalars['String']; - /** @deprecated Use `productVariantAsset.preview` instead */ - productVariantPreview: Scalars['String']; - productVariantAsset?: Maybe; - price: SearchResultPrice; - priceWithTax: SearchResultPrice; - currencyCode: CurrencyCode; - description: Scalars['String']; - facetIds: Array; - facetValueIds: Array; - /** An array of ids of the Collections in which this result appears */ - collectionIds: Array; - /** A relevence score for the result. Differs between database implementations */ - score: Scalars['Float']; + __typename?: 'SearchResult'; + sku: Scalars['String']; + slug: Scalars['String']; + productId: Scalars['ID']; + productName: Scalars['String']; + /** @deprecated Use `productAsset.preview` instead */ + productPreview: Scalars['String']; + productAsset?: Maybe; + productVariantId: Scalars['ID']; + productVariantName: Scalars['String']; + /** @deprecated Use `productVariantAsset.preview` instead */ + productVariantPreview: Scalars['String']; + productVariantAsset?: Maybe; + price: SearchResultPrice; + priceWithTax: SearchResultPrice; + currencyCode: CurrencyCode; + description: Scalars['String']; + facetIds: Array; + facetValueIds: Array; + /** An array of ids of the Collections in which this result appears */ + collectionIds: Array; + /** A relevence score for the result. Differs between database implementations */ + score: Scalars['Float']; }; /** The price of a search result product, either as a range or as a single price */ @@ -2206,465 +2209,461 @@ export type SearchResultPrice = PriceRange | SinglePrice; /** The price value where the result has a single price */ export type SinglePrice = { - __typename?: 'SinglePrice'; - value: Scalars['Int']; + __typename?: 'SinglePrice'; + value: Scalars['Int']; }; /** The price range where the result has more than one price */ export type PriceRange = { - __typename?: 'PriceRange'; - min: Scalars['Int']; - max: Scalars['Int']; + __typename?: 'PriceRange'; + min: Scalars['Int']; + max: Scalars['Int']; }; export type Product = Node & { - __typename?: 'Product'; - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - languageCode: LanguageCode; - name: Scalars['String']; - slug: Scalars['String']; - description: Scalars['String']; - featuredAsset?: Maybe; - assets: Array; - variants: Array; - optionGroups: Array; - facetValues: Array; - translations: Array; - collections: Array; - customFields?: Maybe; + __typename?: 'Product'; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + languageCode: LanguageCode; + name: Scalars['String']; + slug: Scalars['String']; + description: Scalars['String']; + featuredAsset?: Maybe; + assets: Array; + variants: Array; + optionGroups: Array; + facetValues: Array; + translations: Array; + collections: Array; + customFields?: Maybe; }; export type ProductTranslation = { - __typename?: 'ProductTranslation'; - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - languageCode: LanguageCode; - name: Scalars['String']; - slug: Scalars['String']; - description: Scalars['String']; + __typename?: 'ProductTranslation'; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + languageCode: LanguageCode; + name: Scalars['String']; + slug: Scalars['String']; + description: Scalars['String']; }; export type ProductList = PaginatedList & { - __typename?: 'ProductList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'ProductList'; + items: Array; + totalItems: Scalars['Int']; }; export type ProductVariant = Node & { - __typename?: 'ProductVariant'; - id: Scalars['ID']; - product: Product; - productId: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - languageCode: LanguageCode; - sku: Scalars['String']; - name: Scalars['String']; - featuredAsset?: Maybe; - assets: Array; - price: Scalars['Int']; - currencyCode: CurrencyCode; - priceIncludesTax: Scalars['Boolean']; - priceWithTax: Scalars['Int']; - taxRateApplied: TaxRate; - taxCategory: TaxCategory; - options: Array; - facetValues: Array; - translations: Array; - customFields?: Maybe; + __typename?: 'ProductVariant'; + id: Scalars['ID']; + product: Product; + productId: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + languageCode: LanguageCode; + sku: Scalars['String']; + name: Scalars['String']; + featuredAsset?: Maybe; + assets: Array; + price: Scalars['Int']; + currencyCode: CurrencyCode; + priceIncludesTax: Scalars['Boolean']; + priceWithTax: Scalars['Int']; + taxRateApplied: TaxRate; + taxCategory: TaxCategory; + options: Array; + facetValues: Array; + translations: Array; + customFields?: Maybe; }; export type ProductVariantTranslation = { - __typename?: 'ProductVariantTranslation'; - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - languageCode: LanguageCode; - name: Scalars['String']; + __typename?: 'ProductVariantTranslation'; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + languageCode: LanguageCode; + name: Scalars['String']; }; export type Promotion = Node & { - __typename?: 'Promotion'; - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - startsAt?: Maybe; - endsAt?: Maybe; - couponCode?: Maybe; - perCustomerUsageLimit?: Maybe; - name: Scalars['String']; - enabled: Scalars['Boolean']; - conditions: Array; - actions: Array; + __typename?: 'Promotion'; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + startsAt?: Maybe; + endsAt?: Maybe; + couponCode?: Maybe; + perCustomerUsageLimit?: Maybe; + name: Scalars['String']; + enabled: Scalars['Boolean']; + conditions: Array; + actions: Array; }; export type PromotionList = PaginatedList & { - __typename?: 'PromotionList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'PromotionList'; + items: Array; + totalItems: Scalars['Int']; }; export type Role = Node & { - __typename?: 'Role'; - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - code: Scalars['String']; - description: Scalars['String']; - permissions: Array; - channels: Array; + __typename?: 'Role'; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + code: Scalars['String']; + description: Scalars['String']; + permissions: Array; + channels: Array; }; export type RoleList = PaginatedList & { - __typename?: 'RoleList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'RoleList'; + items: Array; + totalItems: Scalars['Int']; }; export type ShippingMethod = Node & { - __typename?: 'ShippingMethod'; - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - code: Scalars['String']; - description: Scalars['String']; - checker: ConfigurableOperation; - calculator: ConfigurableOperation; - customFields?: Maybe; + __typename?: 'ShippingMethod'; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + code: Scalars['String']; + description: Scalars['String']; + checker: ConfigurableOperation; + calculator: ConfigurableOperation; + customFields?: Maybe; }; export type ShippingMethodList = PaginatedList & { - __typename?: 'ShippingMethodList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'ShippingMethodList'; + items: Array; + totalItems: Scalars['Int']; }; export enum StockMovementType { - ADJUSTMENT = 'ADJUSTMENT', - SALE = 'SALE', - CANCELLATION = 'CANCELLATION', - RETURN = 'RETURN', + ADJUSTMENT = 'ADJUSTMENT', + SALE = 'SALE', + CANCELLATION = 'CANCELLATION', + RETURN = 'RETURN' } export type StockMovement = { - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - productVariant: ProductVariant; - type: StockMovementType; - quantity: Scalars['Int']; -}; - -export type StockAdjustment = Node & - StockMovement & { - __typename?: 'StockAdjustment'; - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - productVariant: ProductVariant; - type: StockMovementType; - quantity: Scalars['Int']; - }; - -export type Sale = Node & - StockMovement & { - __typename?: 'Sale'; - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - productVariant: ProductVariant; - type: StockMovementType; - quantity: Scalars['Int']; - orderLine: OrderLine; - }; - -export type Cancellation = Node & - StockMovement & { - __typename?: 'Cancellation'; - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - productVariant: ProductVariant; - type: StockMovementType; - quantity: Scalars['Int']; - orderLine: OrderLine; - }; - -export type Return = Node & - StockMovement & { - __typename?: 'Return'; - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - productVariant: ProductVariant; - type: StockMovementType; - quantity: Scalars['Int']; - orderItem: OrderItem; - }; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + productVariant: ProductVariant; + type: StockMovementType; + quantity: Scalars['Int']; +}; + +export type StockAdjustment = Node & StockMovement & { + __typename?: 'StockAdjustment'; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + productVariant: ProductVariant; + type: StockMovementType; + quantity: Scalars['Int']; +}; + +export type Sale = Node & StockMovement & { + __typename?: 'Sale'; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + productVariant: ProductVariant; + type: StockMovementType; + quantity: Scalars['Int']; + orderLine: OrderLine; +}; + +export type Cancellation = Node & StockMovement & { + __typename?: 'Cancellation'; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + productVariant: ProductVariant; + type: StockMovementType; + quantity: Scalars['Int']; + orderLine: OrderLine; +}; + +export type Return = Node & StockMovement & { + __typename?: 'Return'; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + productVariant: ProductVariant; + type: StockMovementType; + quantity: Scalars['Int']; + orderItem: OrderItem; +}; export type StockMovementItem = StockAdjustment | Sale | Cancellation | Return; export type StockMovementList = { - __typename?: 'StockMovementList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'StockMovementList'; + items: Array; + totalItems: Scalars['Int']; }; export type TaxCategory = Node & { - __typename?: 'TaxCategory'; - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - name: Scalars['String']; + __typename?: 'TaxCategory'; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + name: Scalars['String']; }; export type TaxRate = Node & { - __typename?: 'TaxRate'; - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - name: Scalars['String']; - enabled: Scalars['Boolean']; - value: Scalars['Float']; - category: TaxCategory; - zone: Zone; - customerGroup?: Maybe; + __typename?: 'TaxRate'; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + name: Scalars['String']; + enabled: Scalars['Boolean']; + value: Scalars['Float']; + category: TaxCategory; + zone: Zone; + customerGroup?: Maybe; }; export type TaxRateList = PaginatedList & { - __typename?: 'TaxRateList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'TaxRateList'; + items: Array; + totalItems: Scalars['Int']; }; export type User = Node & { - __typename?: 'User'; - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - identifier: Scalars['String']; - verified: Scalars['Boolean']; - roles: Array; - lastLogin?: Maybe; - authenticationMethods: Array; - customFields?: Maybe; + __typename?: 'User'; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + identifier: Scalars['String']; + verified: Scalars['Boolean']; + roles: Array; + lastLogin?: Maybe; + authenticationMethods: Array; + customFields?: Maybe; }; export type AuthenticationMethod = Node & { - __typename?: 'AuthenticationMethod'; - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - strategy: Scalars['String']; + __typename?: 'AuthenticationMethod'; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + strategy: Scalars['String']; }; export type Zone = Node & { - __typename?: 'Zone'; - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - name: Scalars['String']; - members: Array; + __typename?: 'Zone'; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + name: Scalars['String']; + members: Array; }; export type CollectionListOptions = { - skip?: Maybe; - take?: Maybe; - sort?: Maybe; - filter?: Maybe; + skip?: Maybe; + take?: Maybe; + sort?: Maybe; + filter?: Maybe; }; export type ProductListOptions = { - skip?: Maybe; - take?: Maybe; - sort?: Maybe; - filter?: Maybe; + skip?: Maybe; + take?: Maybe; + sort?: Maybe; + filter?: Maybe; }; export type ProductVariantListOptions = { - skip?: Maybe; - take?: Maybe; - sort?: Maybe; - filter?: Maybe; + skip?: Maybe; + take?: Maybe; + sort?: Maybe; + filter?: Maybe; }; export type CustomerListOptions = { - skip?: Maybe; - take?: Maybe; - sort?: Maybe; - filter?: Maybe; + skip?: Maybe; + take?: Maybe; + sort?: Maybe; + filter?: Maybe; }; export type OrderListOptions = { - skip?: Maybe; - take?: Maybe; - sort?: Maybe; - filter?: Maybe; + skip?: Maybe; + take?: Maybe; + sort?: Maybe; + filter?: Maybe; }; export type HistoryEntryListOptions = { - skip?: Maybe; - take?: Maybe; - sort?: Maybe; - filter?: Maybe; + skip?: Maybe; + take?: Maybe; + sort?: Maybe; + filter?: Maybe; }; export type CollectionFilterParameter = { - createdAt?: Maybe; - updatedAt?: Maybe; - languageCode?: Maybe; - name?: Maybe; - slug?: Maybe; - position?: Maybe; - description?: Maybe; + createdAt?: Maybe; + updatedAt?: Maybe; + languageCode?: Maybe; + name?: Maybe; + slug?: Maybe; + position?: Maybe; + description?: Maybe; }; export type CollectionSortParameter = { - id?: Maybe; - createdAt?: Maybe; - updatedAt?: Maybe; - name?: Maybe; - slug?: Maybe; - position?: Maybe; - description?: Maybe; + id?: Maybe; + createdAt?: Maybe; + updatedAt?: Maybe; + name?: Maybe; + slug?: Maybe; + position?: Maybe; + description?: Maybe; }; export type ProductFilterParameter = { - createdAt?: Maybe; - updatedAt?: Maybe; - languageCode?: Maybe; - name?: Maybe; - slug?: Maybe; - description?: Maybe; + createdAt?: Maybe; + updatedAt?: Maybe; + languageCode?: Maybe; + name?: Maybe; + slug?: Maybe; + description?: Maybe; }; export type ProductSortParameter = { - id?: Maybe; - createdAt?: Maybe; - updatedAt?: Maybe; - name?: Maybe; - slug?: Maybe; - description?: Maybe; + id?: Maybe; + createdAt?: Maybe; + updatedAt?: Maybe; + name?: Maybe; + slug?: Maybe; + description?: Maybe; }; export type ProductVariantFilterParameter = { - createdAt?: Maybe; - updatedAt?: Maybe; - languageCode?: Maybe; - sku?: Maybe; - name?: Maybe; - price?: Maybe; - currencyCode?: Maybe; - priceIncludesTax?: Maybe; - priceWithTax?: Maybe; + createdAt?: Maybe; + updatedAt?: Maybe; + languageCode?: Maybe; + sku?: Maybe; + name?: Maybe; + price?: Maybe; + currencyCode?: Maybe; + priceIncludesTax?: Maybe; + priceWithTax?: Maybe; }; export type ProductVariantSortParameter = { - id?: Maybe; - productId?: Maybe; - createdAt?: Maybe; - updatedAt?: Maybe; - sku?: Maybe; - name?: Maybe; - price?: Maybe; - priceWithTax?: Maybe; + id?: Maybe; + productId?: Maybe; + createdAt?: Maybe; + updatedAt?: Maybe; + sku?: Maybe; + name?: Maybe; + price?: Maybe; + priceWithTax?: Maybe; }; export type CustomerFilterParameter = { - createdAt?: Maybe; - updatedAt?: Maybe; - title?: Maybe; - firstName?: Maybe; - lastName?: Maybe; - phoneNumber?: Maybe; - emailAddress?: Maybe; + createdAt?: Maybe; + updatedAt?: Maybe; + title?: Maybe; + firstName?: Maybe; + lastName?: Maybe; + phoneNumber?: Maybe; + emailAddress?: Maybe; }; export type CustomerSortParameter = { - id?: Maybe; - createdAt?: Maybe; - updatedAt?: Maybe; - title?: Maybe; - firstName?: Maybe; - lastName?: Maybe; - phoneNumber?: Maybe; - emailAddress?: Maybe; + id?: Maybe; + createdAt?: Maybe; + updatedAt?: Maybe; + title?: Maybe; + firstName?: Maybe; + lastName?: Maybe; + phoneNumber?: Maybe; + emailAddress?: Maybe; }; export type OrderFilterParameter = { - createdAt?: Maybe; - updatedAt?: Maybe; - code?: Maybe; - state?: Maybe; - active?: Maybe; - totalQuantity?: Maybe; - subTotalBeforeTax?: Maybe; - subTotal?: Maybe; - currencyCode?: Maybe; - shipping?: Maybe; - shippingWithTax?: Maybe; - totalBeforeTax?: Maybe; - total?: Maybe; + createdAt?: Maybe; + updatedAt?: Maybe; + code?: Maybe; + state?: Maybe; + active?: Maybe; + totalQuantity?: Maybe; + subTotalBeforeTax?: Maybe; + subTotal?: Maybe; + currencyCode?: Maybe; + shipping?: Maybe; + shippingWithTax?: Maybe; + totalBeforeTax?: Maybe; + total?: Maybe; }; export type OrderSortParameter = { - id?: Maybe; - createdAt?: Maybe; - updatedAt?: Maybe; - code?: Maybe; - state?: Maybe; - totalQuantity?: Maybe; - subTotalBeforeTax?: Maybe; - subTotal?: Maybe; - shipping?: Maybe; - shippingWithTax?: Maybe; - totalBeforeTax?: Maybe; - total?: Maybe; + id?: Maybe; + createdAt?: Maybe; + updatedAt?: Maybe; + code?: Maybe; + state?: Maybe; + totalQuantity?: Maybe; + subTotalBeforeTax?: Maybe; + subTotal?: Maybe; + shipping?: Maybe; + shippingWithTax?: Maybe; + totalBeforeTax?: Maybe; + total?: Maybe; }; export type HistoryEntryFilterParameter = { - createdAt?: Maybe; - updatedAt?: Maybe; - isPublic?: Maybe; - type?: Maybe; + createdAt?: Maybe; + updatedAt?: Maybe; + isPublic?: Maybe; + type?: Maybe; }; export type HistoryEntrySortParameter = { - id?: Maybe; - createdAt?: Maybe; - updatedAt?: Maybe; + id?: Maybe; + createdAt?: Maybe; + updatedAt?: Maybe; }; export type UpdateOrderInput = { - customFields?: Maybe; + customFields?: Maybe; }; export type CustomFields = { - __typename?: 'CustomFields'; - Address: Array; - Collection: Array; - Customer: Array; - Facet: Array; - FacetValue: Array; - GlobalSettings: Array; - Order: Array; - OrderLine: Array; - Product: Array; - ProductOption: Array; - ProductOptionGroup: Array; - ProductVariant: Array; - User: Array; - ShippingMethod: Array; + __typename?: 'CustomFields'; + Address: Array; + Collection: Array; + Customer: Array; + Facet: Array; + FacetValue: Array; + GlobalSettings: Array; + Order: Array; + OrderLine: Array; + Product: Array; + ProductOption: Array; + ProductOptionGroup: Array; + ProductVariant: Array; + User: Array; + ShippingMethod: Array; }; export type AuthenticationInput = { - native?: Maybe; + native?: Maybe; }; export type NativeAuthInput = { - username: Scalars['String']; - password: Scalars['String']; + username: Scalars['String']; + password: Scalars['String']; }; diff --git a/packages/core/e2e/graphql/generated-e2e-shop-types.ts b/packages/core/e2e/graphql/generated-e2e-shop-types.ts index 60f94aac27..66e8f8c513 100644 --- a/packages/core/e2e/graphql/generated-e2e-shop-types.ts +++ b/packages/core/e2e/graphql/generated-e2e-shop-types.ts @@ -3,929 +3,965 @@ export type Maybe = T | null; export type Exact = { [K in keyof T]: T[K] }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; - /** 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; - /** 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 `Upload` scalar type represents a file upload. */ - Upload: any; + ID: string; + String: string; + Boolean: boolean; + Int: number; + Float: number; + /** 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; + /** 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 `Upload` scalar type represents a file upload. */ + Upload: any; }; export type Query = { - /** The active Channel */ - activeChannel: Channel; - /** The active Customer */ - activeCustomer?: Maybe; - /** - * The active Order. Will be `null` until an Order is created via `addItemToOrder`. Once an Order reaches the - * state of `PaymentApproved` or `PaymentSettled`, then that Order is no longer considered "active" and this - * query will once again return `null`. - */ - activeOrder?: Maybe; - /** An array of supported Countries */ - availableCountries: Array; - /** A list of Collections available to the shop */ - collections: CollectionList; - /** Returns a Collection either by its id or slug. If neither 'id' nor 'slug' is speicified, an error will result. */ - collection?: Maybe; - /** Returns a list of eligible shipping methods based on the current active Order */ - eligibleShippingMethods: Array; - /** Returns information about the current authenticated User */ - me?: Maybe; - /** Returns the possible next states that the activeOrder can transition to */ - nextOrderStates: Array; - /** - * Returns an Order based on the id. Note that in the Shop API, only orders belonging to the - * currently-authenticated User may be queried. - */ - order?: Maybe; - /** - * Returns an Order based on the order `code`. For guest Orders (i.e. Orders placed by non-authenticated Customers) - * this query will only return the Order within 2 hours of the Order being placed. This allows an Order confirmation - * screen to be shown immediately after completion of a guest checkout, yet prevents security risks of allowing - * general anonymous access to Order data. - */ - orderByCode?: Maybe; - /** Get a Product either by id or slug. If neither 'id' nor 'slug' is speicified, an error will result. */ - product?: Maybe; - /** Get a list of Products */ - products: ProductList; - /** Search Products based on the criteria set by the `SearchInput` */ - search: SearchResponse; + /** The active Channel */ + activeChannel: Channel; + /** The active Customer */ + activeCustomer?: Maybe; + /** + * The active Order. Will be `null` until an Order is created via `addItemToOrder`. Once an Order reaches the + * state of `PaymentApproved` or `PaymentSettled`, then that Order is no longer considered "active" and this + * query will once again return `null`. + */ + activeOrder?: Maybe; + /** An array of supported Countries */ + availableCountries: Array; + /** A list of Collections available to the shop */ + collections: CollectionList; + /** Returns a Collection either by its id or slug. If neither 'id' nor 'slug' is speicified, an error will result. */ + collection?: Maybe; + /** Returns a list of eligible shipping methods based on the current active Order */ + eligibleShippingMethods: Array; + /** Returns information about the current authenticated User */ + me?: Maybe; + /** Returns the possible next states that the activeOrder can transition to */ + nextOrderStates: Array; + /** + * Returns an Order based on the id. Note that in the Shop API, only orders belonging to the + * currently-authenticated User may be queried. + */ + order?: Maybe; + /** + * Returns an Order based on the order `code`. For guest Orders (i.e. Orders placed by non-authenticated Customers) + * this query will only return the Order within 2 hours of the Order being placed. This allows an Order confirmation + * screen to be shown immediately after completion of a guest checkout, yet prevents security risks of allowing + * general anonymous access to Order data. + */ + orderByCode?: Maybe; + /** Get a Product either by id or slug. If neither 'id' nor 'slug' is speicified, an error will result. */ + product?: Maybe; + /** Get a list of Products */ + products: ProductList; + /** Search Products based on the criteria set by the `SearchInput` */ + search: SearchResponse; }; + export type QueryCollectionsArgs = { - options?: Maybe; + options?: Maybe; }; + export type QueryCollectionArgs = { - id?: Maybe; - slug?: Maybe; + id?: Maybe; + slug?: Maybe; }; + export type QueryOrderArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryOrderByCodeArgs = { - code: Scalars['String']; + code: Scalars['String']; }; + export type QueryProductArgs = { - id?: Maybe; - slug?: Maybe; + id?: Maybe; + slug?: Maybe; }; + export type QueryProductsArgs = { - options?: Maybe; + options?: Maybe; }; + export type QuerySearchArgs = { - input: SearchInput; + input: SearchInput; }; export type Mutation = { - /** Adds an item to the order. If custom fields are defined on the OrderLine entity, a third argument 'customFields' will be available. */ - addItemToOrder: UpdateOrderItemsResult; - /** Remove an OrderLine from the Order */ - removeOrderLine: RemoveOrderItemsResult; - /** Remove all OrderLine from the Order */ - removeAllOrderLines: RemoveOrderItemsResult; - /** Adjusts an OrderLine. If custom fields are defined on the OrderLine entity, a third argument 'customFields' of type `OrderLineCustomFieldsInput` will be available. */ - adjustOrderLine: UpdateOrderItemsResult; - /** Applies the given coupon code to the active Order */ - applyCouponCode: ApplyCouponCodeResult; - /** Removes the given coupon code from the active Order */ - removeCouponCode?: Maybe; - /** Transitions an Order to a new state. Valid next states can be found by querying `nextOrderStates` */ - transitionOrderToState?: Maybe; - /** Sets the shipping address for this order */ - setOrderShippingAddress?: Maybe; - /** Sets the billing address for this order */ - setOrderBillingAddress?: Maybe; - /** Allows any custom fields to be set for the active order */ - setOrderCustomFields?: Maybe; - /** Sets the shipping method by id, which can be obtained with the `eligibleShippingMethods` query */ - setOrderShippingMethod: SetOrderShippingMethodResult; - /** Add a Payment to the Order */ - addPaymentToOrder?: Maybe; - /** Set the Customer for the Order. Required only if the Customer is not currently logged in */ - setCustomerForOrder?: Maybe; - /** Authenticates the user using the native authentication strategy. This mutation is an alias for `authenticate({ native: { ... }})` */ - login: NativeAuthenticationResult; - /** Authenticates the user using a named authentication strategy */ - authenticate: AuthenticationResult; - /** End the current authenticated session */ - logout: Success; - /** - * Register a Customer account with the given credentials. There are three possible registration flows: - * - * _If `authOptions.requireVerification` is set to `true`:_ - * - * 1. **The Customer is registered _with_ a password**. A verificationToken will be created (and typically emailed to the Customer). That - * verificationToken would then be passed to the `verifyCustomerAccount` mutation _without_ a password. The Customer is then - * verified and authenticated in one step. - * 2. **The Customer is registered _without_ a password**. A verificationToken will be created (and typically emailed to the Customer). That - * verificationToken would then be passed to the `verifyCustomerAccount` mutation _with_ the chosed password of the Customer. The Customer is then - * verified and authenticated in one step. - * - * _If `authOptions.requireVerification` is set to `false`:_ - * - * 3. The Customer _must_ be registered _with_ a password. No further action is needed - the Customer is able to authenticate immediately. - */ - registerCustomerAccount: RegisterCustomerAccountResult; - /** Regenerate and send a verification token for a new Customer registration. Only applicable if `authOptions.requireVerification` is set to true. */ - refreshCustomerVerification: RefreshCustomerVerificationResult; - /** Update an existing Customer */ - updateCustomer: Customer; - /** Create a new Customer Address */ - createCustomerAddress: Address; - /** Update an existing Address */ - updateCustomerAddress: Address; - /** Delete an existing Address */ - deleteCustomerAddress: Success; - /** - * Verify a Customer email address with the token sent to that address. Only applicable if `authOptions.requireVerification` is set to true. - * - * If the Customer was not registered with a password in the `registerCustomerAccount` mutation, the a password _must_ be - * provided here. - */ - verifyCustomerAccount: VerifyCustomerAccountResult; - /** Update the password of the active Customer */ - updateCustomerPassword: UpdateCustomerPasswordResult; - /** - * 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: RequestUpdateCustomerEmailAddressResult; - /** - * Confirm the update of the emailAddress with the provided token, which has been generated by the - * `requestUpdateCustomerEmailAddress` mutation. - */ - updateCustomerEmailAddress: UpdateCustomerEmailAddressResult; - /** Requests a password reset email to be sent */ - requestPasswordReset?: Maybe; - /** Resets a Customer's password based on the provided token */ - resetPassword: ResetPasswordResult; + /** Adds an item to the order. If custom fields are defined on the OrderLine entity, a third argument 'customFields' will be available. */ + addItemToOrder: UpdateOrderItemsResult; + /** Remove an OrderLine from the Order */ + removeOrderLine: RemoveOrderItemsResult; + /** Remove all OrderLine from the Order */ + removeAllOrderLines: RemoveOrderItemsResult; + /** Adjusts an OrderLine. If custom fields are defined on the OrderLine entity, a third argument 'customFields' of type `OrderLineCustomFieldsInput` will be available. */ + adjustOrderLine: UpdateOrderItemsResult; + /** Applies the given coupon code to the active Order */ + applyCouponCode: ApplyCouponCodeResult; + /** Removes the given coupon code from the active Order */ + removeCouponCode?: Maybe; + /** Transitions an Order to a new state. Valid next states can be found by querying `nextOrderStates` */ + transitionOrderToState?: Maybe; + /** Sets the shipping address for this order */ + setOrderShippingAddress?: Maybe; + /** Sets the billing address for this order */ + setOrderBillingAddress?: Maybe; + /** Allows any custom fields to be set for the active order */ + setOrderCustomFields?: Maybe; + /** Sets the shipping method by id, which can be obtained with the `eligibleShippingMethods` query */ + setOrderShippingMethod: SetOrderShippingMethodResult; + /** Add a Payment to the Order */ + addPaymentToOrder?: Maybe; + /** Set the Customer for the Order. Required only if the Customer is not currently logged in */ + setCustomerForOrder?: Maybe; + /** Authenticates the user using the native authentication strategy. This mutation is an alias for `authenticate({ native: { ... }})` */ + login: NativeAuthenticationResult; + /** Authenticates the user using a named authentication strategy */ + authenticate: AuthenticationResult; + /** End the current authenticated session */ + logout: Success; + /** + * Register a Customer account with the given credentials. There are three possible registration flows: + * + * _If `authOptions.requireVerification` is set to `true`:_ + * + * 1. **The Customer is registered _with_ a password**. A verificationToken will be created (and typically emailed to the Customer). That + * verificationToken would then be passed to the `verifyCustomerAccount` mutation _without_ a password. The Customer is then + * verified and authenticated in one step. + * 2. **The Customer is registered _without_ a password**. A verificationToken will be created (and typically emailed to the Customer). That + * verificationToken would then be passed to the `verifyCustomerAccount` mutation _with_ the chosed password of the Customer. The Customer is then + * verified and authenticated in one step. + * + * _If `authOptions.requireVerification` is set to `false`:_ + * + * 3. The Customer _must_ be registered _with_ a password. No further action is needed - the Customer is able to authenticate immediately. + */ + registerCustomerAccount: RegisterCustomerAccountResult; + /** Regenerate and send a verification token for a new Customer registration. Only applicable if `authOptions.requireVerification` is set to true. */ + refreshCustomerVerification: RefreshCustomerVerificationResult; + /** Update an existing Customer */ + updateCustomer: Customer; + /** Create a new Customer Address */ + createCustomerAddress: Address; + /** Update an existing Address */ + updateCustomerAddress: Address; + /** Delete an existing Address */ + deleteCustomerAddress: Success; + /** + * Verify a Customer email address with the token sent to that address. Only applicable if `authOptions.requireVerification` is set to true. + * + * If the Customer was not registered with a password in the `registerCustomerAccount` mutation, the a password _must_ be + * provided here. + */ + verifyCustomerAccount: VerifyCustomerAccountResult; + /** Update the password of the active Customer */ + updateCustomerPassword: UpdateCustomerPasswordResult; + /** + * 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: RequestUpdateCustomerEmailAddressResult; + /** + * Confirm the update of the emailAddress with the provided token, which has been generated by the + * `requestUpdateCustomerEmailAddress` mutation. + */ + updateCustomerEmailAddress: UpdateCustomerEmailAddressResult; + /** Requests a password reset email to be sent */ + requestPasswordReset?: Maybe; + /** Resets a Customer's password based on the provided token */ + resetPassword: ResetPasswordResult; }; + export type MutationAddItemToOrderArgs = { - productVariantId: Scalars['ID']; - quantity: Scalars['Int']; + productVariantId: Scalars['ID']; + quantity: Scalars['Int']; }; + export type MutationRemoveOrderLineArgs = { - orderLineId: Scalars['ID']; + orderLineId: Scalars['ID']; }; + export type MutationAdjustOrderLineArgs = { - orderLineId: Scalars['ID']; - quantity?: Maybe; + orderLineId: Scalars['ID']; + quantity?: Maybe; }; + export type MutationApplyCouponCodeArgs = { - couponCode: Scalars['String']; + couponCode: Scalars['String']; }; + export type MutationRemoveCouponCodeArgs = { - couponCode: Scalars['String']; + couponCode: Scalars['String']; }; + export type MutationTransitionOrderToStateArgs = { - state: Scalars['String']; + state: Scalars['String']; }; + export type MutationSetOrderShippingAddressArgs = { - input: CreateAddressInput; + input: CreateAddressInput; }; + export type MutationSetOrderBillingAddressArgs = { - input: CreateAddressInput; + input: CreateAddressInput; }; + export type MutationSetOrderCustomFieldsArgs = { - input: UpdateOrderInput; + input: UpdateOrderInput; }; + export type MutationSetOrderShippingMethodArgs = { - shippingMethodId: Scalars['ID']; + shippingMethodId: Scalars['ID']; }; + export type MutationAddPaymentToOrderArgs = { - input: PaymentInput; + input: PaymentInput; }; + export type MutationSetCustomerForOrderArgs = { - input: CreateCustomerInput; + input: CreateCustomerInput; }; + export type MutationLoginArgs = { - username: Scalars['String']; - password: Scalars['String']; - rememberMe?: Maybe; + username: Scalars['String']; + password: Scalars['String']; + rememberMe?: Maybe; }; + export type MutationAuthenticateArgs = { - input: AuthenticationInput; - rememberMe?: Maybe; + input: AuthenticationInput; + rememberMe?: Maybe; }; + export type MutationRegisterCustomerAccountArgs = { - input: RegisterCustomerInput; + input: RegisterCustomerInput; }; + export type MutationRefreshCustomerVerificationArgs = { - emailAddress: Scalars['String']; + emailAddress: Scalars['String']; }; + export type MutationUpdateCustomerArgs = { - input: UpdateCustomerInput; + input: UpdateCustomerInput; }; + export type MutationCreateCustomerAddressArgs = { - input: CreateAddressInput; + input: CreateAddressInput; }; + export type MutationUpdateCustomerAddressArgs = { - input: UpdateAddressInput; + input: UpdateAddressInput; }; + export type MutationDeleteCustomerAddressArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationVerifyCustomerAccountArgs = { - token: Scalars['String']; - password?: Maybe; + token: Scalars['String']; + password?: Maybe; }; + export type MutationUpdateCustomerPasswordArgs = { - currentPassword: Scalars['String']; - newPassword: Scalars['String']; + currentPassword: Scalars['String']; + newPassword: Scalars['String']; }; + export type MutationRequestUpdateCustomerEmailAddressArgs = { - password: Scalars['String']; - newEmailAddress: Scalars['String']; + password: Scalars['String']; + newEmailAddress: Scalars['String']; }; + export type MutationUpdateCustomerEmailAddressArgs = { - token: Scalars['String']; + token: Scalars['String']; }; + export type MutationRequestPasswordResetArgs = { - emailAddress: Scalars['String']; + emailAddress: Scalars['String']; }; + export type MutationResetPasswordArgs = { - token: Scalars['String']; - password: Scalars['String']; + token: Scalars['String']; + password: Scalars['String']; }; + + + export enum AdjustmentType { - TAX = 'TAX', - PROMOTION = 'PROMOTION', - SHIPPING = 'SHIPPING', - REFUND = 'REFUND', - TAX_REFUND = 'TAX_REFUND', - PROMOTION_REFUND = 'PROMOTION_REFUND', - SHIPPING_REFUND = 'SHIPPING_REFUND', + TAX = 'TAX', + PROMOTION = 'PROMOTION', + SHIPPING = 'SHIPPING', + REFUND = 'REFUND', + TAX_REFUND = 'TAX_REFUND', + PROMOTION_REFUND = 'PROMOTION_REFUND', + SHIPPING_REFUND = 'SHIPPING_REFUND' } export type Adjustment = { - adjustmentSource: Scalars['String']; - type: AdjustmentType; - description: Scalars['String']; - amount: Scalars['Int']; + adjustmentSource: Scalars['String']; + type: AdjustmentType; + description: Scalars['String']; + amount: Scalars['Int']; }; export type ConfigArg = { - name: Scalars['String']; - value: Scalars['String']; + name: Scalars['String']; + value: Scalars['String']; }; export type ConfigArgDefinition = { - name: Scalars['String']; - type: Scalars['String']; - list: Scalars['Boolean']; - label?: Maybe; - description?: Maybe; - ui?: Maybe; + name: Scalars['String']; + type: Scalars['String']; + list: Scalars['Boolean']; + label?: Maybe; + description?: Maybe; + ui?: Maybe; }; export type ConfigurableOperation = { - code: Scalars['String']; - args: Array; + code: Scalars['String']; + args: Array; }; export type ConfigurableOperationDefinition = { - code: Scalars['String']; - args: Array; - description: Scalars['String']; + code: Scalars['String']; + args: Array; + description: Scalars['String']; }; export enum DeletionResult { - /** The entity was successfully deleted */ - DELETED = 'DELETED', - /** Deletion did not take place, reason given in message */ - NOT_DELETED = 'NOT_DELETED', + /** The entity was successfully deleted */ + DELETED = 'DELETED', + /** Deletion did not take place, reason given in message */ + NOT_DELETED = 'NOT_DELETED' } export type DeletionResponse = { - result: DeletionResult; - message?: Maybe; + result: DeletionResult; + message?: Maybe; }; export type ConfigArgInput = { - name: Scalars['String']; - value: Scalars['String']; + name: Scalars['String']; + value: Scalars['String']; }; export type ConfigurableOperationInput = { - code: Scalars['String']; - arguments: Array; + code: Scalars['String']; + arguments: Array; }; export type PaginatedList = { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type Node = { - id: Scalars['ID']; + id: Scalars['ID']; }; export enum SortOrder { - ASC = 'ASC', - DESC = 'DESC', + ASC = 'ASC', + DESC = 'DESC' } export enum ErrorCode { - UNKNOWN_ERROR = 'UNKNOWN_ERROR', - NATIVE_AUTH_STRATEGY_ERROR = 'NATIVE_AUTH_STRATEGY_ERROR', - INVALID_CREDENTIALS_ERROR = 'INVALID_CREDENTIALS_ERROR', - ORDER_STATE_TRANSITION_ERROR = 'ORDER_STATE_TRANSITION_ERROR', - EMAIL_ADDRESS_CONFLICT_ERROR = 'EMAIL_ADDRESS_CONFLICT_ERROR', - ORDER_MODIFICATION_ERROR = 'ORDER_MODIFICATION_ERROR', - ORDER_LIMIT_ERROR = 'ORDER_LIMIT_ERROR', - NEGATIVE_QUANTITY_ERROR = 'NEGATIVE_QUANTITY_ERROR', - ORDER_PAYMENT_STATE_ERROR = 'ORDER_PAYMENT_STATE_ERROR', - PAYMENT_FAILED_ERROR = 'PAYMENT_FAILED_ERROR', - PAYMENT_DECLINED_ERROR = 'PAYMENT_DECLINED_ERROR', - COUPON_CODE_INVALID_ERROR = 'COUPON_CODE_INVALID_ERROR', - COUPON_CODE_EXPIRED_ERROR = 'COUPON_CODE_EXPIRED_ERROR', - COUPON_CODE_LIMIT_ERROR = 'COUPON_CODE_LIMIT_ERROR', - ALREADY_LOGGED_IN_ERROR = 'ALREADY_LOGGED_IN_ERROR', - MISSING_PASSWORD_ERROR = 'MISSING_PASSWORD_ERROR', - PASSWORD_ALREADY_SET_ERROR = 'PASSWORD_ALREADY_SET_ERROR', - VERIFICATION_TOKEN_INVALID_ERROR = 'VERIFICATION_TOKEN_INVALID_ERROR', - VERIFICATION_TOKEN_EXPIRED_ERROR = 'VERIFICATION_TOKEN_EXPIRED_ERROR', - IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR = 'IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR', - IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR = 'IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR', - PASSWORD_RESET_TOKEN_INVALID_ERROR = 'PASSWORD_RESET_TOKEN_INVALID_ERROR', - PASSWORD_RESET_TOKEN_EXPIRED_ERROR = 'PASSWORD_RESET_TOKEN_EXPIRED_ERROR', - NOT_VERIFIED_ERROR = 'NOT_VERIFIED_ERROR', + UNKNOWN_ERROR = 'UNKNOWN_ERROR', + NATIVE_AUTH_STRATEGY_ERROR = 'NATIVE_AUTH_STRATEGY_ERROR', + INVALID_CREDENTIALS_ERROR = 'INVALID_CREDENTIALS_ERROR', + ORDER_STATE_TRANSITION_ERROR = 'ORDER_STATE_TRANSITION_ERROR', + EMAIL_ADDRESS_CONFLICT_ERROR = 'EMAIL_ADDRESS_CONFLICT_ERROR', + ORDER_MODIFICATION_ERROR = 'ORDER_MODIFICATION_ERROR', + ORDER_LIMIT_ERROR = 'ORDER_LIMIT_ERROR', + NEGATIVE_QUANTITY_ERROR = 'NEGATIVE_QUANTITY_ERROR', + ORDER_PAYMENT_STATE_ERROR = 'ORDER_PAYMENT_STATE_ERROR', + PAYMENT_FAILED_ERROR = 'PAYMENT_FAILED_ERROR', + PAYMENT_DECLINED_ERROR = 'PAYMENT_DECLINED_ERROR', + COUPON_CODE_INVALID_ERROR = 'COUPON_CODE_INVALID_ERROR', + COUPON_CODE_EXPIRED_ERROR = 'COUPON_CODE_EXPIRED_ERROR', + COUPON_CODE_LIMIT_ERROR = 'COUPON_CODE_LIMIT_ERROR', + ALREADY_LOGGED_IN_ERROR = 'ALREADY_LOGGED_IN_ERROR', + MISSING_PASSWORD_ERROR = 'MISSING_PASSWORD_ERROR', + PASSWORD_ALREADY_SET_ERROR = 'PASSWORD_ALREADY_SET_ERROR', + VERIFICATION_TOKEN_INVALID_ERROR = 'VERIFICATION_TOKEN_INVALID_ERROR', + VERIFICATION_TOKEN_EXPIRED_ERROR = 'VERIFICATION_TOKEN_EXPIRED_ERROR', + IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR = 'IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR', + IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR = 'IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR', + PASSWORD_RESET_TOKEN_INVALID_ERROR = 'PASSWORD_RESET_TOKEN_INVALID_ERROR', + PASSWORD_RESET_TOKEN_EXPIRED_ERROR = 'PASSWORD_RESET_TOKEN_EXPIRED_ERROR', + NOT_VERIFIED_ERROR = 'NOT_VERIFIED_ERROR' } export type ErrorResult = { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; export type StringOperators = { - eq?: Maybe; - contains?: Maybe; + eq?: Maybe; + contains?: Maybe; }; export type BooleanOperators = { - eq?: Maybe; + eq?: Maybe; }; export type NumberRange = { - start: Scalars['Float']; - end: Scalars['Float']; + start: Scalars['Float']; + end: Scalars['Float']; }; export type NumberOperators = { - eq?: Maybe; - lt?: Maybe; - lte?: Maybe; - gt?: Maybe; - gte?: Maybe; - between?: Maybe; + eq?: Maybe; + lt?: Maybe; + lte?: Maybe; + gt?: Maybe; + gte?: Maybe; + between?: Maybe; }; export type DateRange = { - start: Scalars['DateTime']; - end: Scalars['DateTime']; + start: Scalars['DateTime']; + end: Scalars['DateTime']; }; export type DateOperators = { - eq?: Maybe; - before?: Maybe; - after?: Maybe; - between?: Maybe; + eq?: Maybe; + before?: Maybe; + after?: Maybe; + between?: Maybe; }; export enum LogicalOperator { - AND = 'AND', - OR = 'OR', + AND = 'AND', + OR = 'OR' } export type SearchInput = { - term?: Maybe; - facetValueIds?: Maybe>; - facetValueOperator?: Maybe; - collectionId?: Maybe; - collectionSlug?: Maybe; - groupByProduct?: Maybe; - take?: Maybe; - skip?: Maybe; - sort?: Maybe; + term?: Maybe; + facetValueIds?: Maybe>; + facetValueOperator?: Maybe; + collectionId?: Maybe; + collectionSlug?: Maybe; + groupByProduct?: Maybe; + take?: Maybe; + skip?: Maybe; + sort?: Maybe; }; export type SearchResultSortParameter = { - name?: Maybe; - price?: Maybe; + name?: Maybe; + price?: Maybe; }; export type CreateCustomerInput = { - title?: Maybe; - firstName: Scalars['String']; - lastName: Scalars['String']; - phoneNumber?: Maybe; - emailAddress: Scalars['String']; - customFields?: Maybe; + title?: Maybe; + firstName: Scalars['String']; + lastName: Scalars['String']; + phoneNumber?: Maybe; + emailAddress: Scalars['String']; + customFields?: Maybe; }; export type CreateAddressInput = { - fullName?: Maybe; - company?: Maybe; - streetLine1: Scalars['String']; - streetLine2?: Maybe; - city?: Maybe; - province?: Maybe; - postalCode?: Maybe; - countryCode: Scalars['String']; - phoneNumber?: Maybe; - defaultShippingAddress?: Maybe; - defaultBillingAddress?: Maybe; - customFields?: Maybe; + fullName?: Maybe; + company?: Maybe; + streetLine1: Scalars['String']; + streetLine2?: Maybe; + city?: Maybe; + province?: Maybe; + postalCode?: Maybe; + countryCode: Scalars['String']; + phoneNumber?: Maybe; + defaultShippingAddress?: Maybe; + defaultBillingAddress?: Maybe; + customFields?: Maybe; }; export type UpdateAddressInput = { - id: Scalars['ID']; - fullName?: Maybe; - company?: Maybe; - streetLine1?: Maybe; - streetLine2?: Maybe; - city?: Maybe; - province?: Maybe; - postalCode?: Maybe; - countryCode?: Maybe; - phoneNumber?: Maybe; - defaultShippingAddress?: Maybe; - defaultBillingAddress?: Maybe; - customFields?: Maybe; + id: Scalars['ID']; + fullName?: Maybe; + company?: Maybe; + streetLine1?: Maybe; + streetLine2?: Maybe; + city?: Maybe; + province?: Maybe; + postalCode?: Maybe; + countryCode?: Maybe; + phoneNumber?: Maybe; + defaultShippingAddress?: Maybe; + defaultBillingAddress?: Maybe; + customFields?: Maybe; }; /** Indicates that an operation succeeded, where we do not want to return any more specific information. */ export type Success = { - success: Scalars['Boolean']; + success: Scalars['Boolean']; }; /** Retured when attempting an operation that relies on the NativeAuthStrategy, if that strategy is not configured. */ export type NativeAuthStrategyError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned if the user authentication credentials are not valid */ export type InvalidCredentialsError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; - authenticationError: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; + authenticationError: Scalars['String']; }; /** Returned if there is an error in transitioning the Order state */ export type OrderStateTransitionError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; - transitionError: Scalars['String']; - fromState: Scalars['String']; - toState: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; + transitionError: Scalars['String']; + fromState: Scalars['String']; + toState: Scalars['String']; }; /** Retured when attemting to create a Customer with an email address already registered to an existing User. */ export type EmailAddressConflictError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** * @description * ISO 4217 currency code - * + * * @docsCategory common */ export enum CurrencyCode { - /** United Arab Emirates dirham */ - AED = 'AED', - /** Afghan afghani */ - AFN = 'AFN', - /** Albanian lek */ - ALL = 'ALL', - /** Armenian dram */ - AMD = 'AMD', - /** Netherlands Antillean guilder */ - ANG = 'ANG', - /** Angolan kwanza */ - AOA = 'AOA', - /** Argentine peso */ - ARS = 'ARS', - /** Australian dollar */ - AUD = 'AUD', - /** Aruban florin */ - AWG = 'AWG', - /** Azerbaijani manat */ - AZN = 'AZN', - /** Bosnia and Herzegovina convertible mark */ - BAM = 'BAM', - /** Barbados dollar */ - BBD = 'BBD', - /** Bangladeshi taka */ - BDT = 'BDT', - /** Bulgarian lev */ - BGN = 'BGN', - /** Bahraini dinar */ - BHD = 'BHD', - /** Burundian franc */ - BIF = 'BIF', - /** Bermudian dollar */ - BMD = 'BMD', - /** Brunei dollar */ - BND = 'BND', - /** Boliviano */ - BOB = 'BOB', - /** Brazilian real */ - BRL = 'BRL', - /** Bahamian dollar */ - BSD = 'BSD', - /** Bhutanese ngultrum */ - BTN = 'BTN', - /** Botswana pula */ - BWP = 'BWP', - /** Belarusian ruble */ - BYN = 'BYN', - /** Belize dollar */ - BZD = 'BZD', - /** Canadian dollar */ - CAD = 'CAD', - /** Congolese franc */ - CDF = 'CDF', - /** Swiss franc */ - CHF = 'CHF', - /** Chilean peso */ - CLP = 'CLP', - /** Renminbi (Chinese) yuan */ - CNY = 'CNY', - /** Colombian peso */ - COP = 'COP', - /** Costa Rican colon */ - CRC = 'CRC', - /** Cuban convertible peso */ - CUC = 'CUC', - /** Cuban peso */ - CUP = 'CUP', - /** Cape Verde escudo */ - CVE = 'CVE', - /** Czech koruna */ - CZK = 'CZK', - /** Djiboutian franc */ - DJF = 'DJF', - /** Danish krone */ - DKK = 'DKK', - /** Dominican peso */ - DOP = 'DOP', - /** Algerian dinar */ - DZD = 'DZD', - /** Egyptian pound */ - EGP = 'EGP', - /** Eritrean nakfa */ - ERN = 'ERN', - /** Ethiopian birr */ - ETB = 'ETB', - /** Euro */ - EUR = 'EUR', - /** Fiji dollar */ - FJD = 'FJD', - /** Falkland Islands pound */ - FKP = 'FKP', - /** Pound sterling */ - GBP = 'GBP', - /** Georgian lari */ - GEL = 'GEL', - /** Ghanaian cedi */ - GHS = 'GHS', - /** Gibraltar pound */ - GIP = 'GIP', - /** Gambian dalasi */ - GMD = 'GMD', - /** Guinean franc */ - GNF = 'GNF', - /** Guatemalan quetzal */ - GTQ = 'GTQ', - /** Guyanese dollar */ - GYD = 'GYD', - /** Hong Kong dollar */ - HKD = 'HKD', - /** Honduran lempira */ - HNL = 'HNL', - /** Croatian kuna */ - HRK = 'HRK', - /** Haitian gourde */ - HTG = 'HTG', - /** Hungarian forint */ - HUF = 'HUF', - /** Indonesian rupiah */ - IDR = 'IDR', - /** Israeli new shekel */ - ILS = 'ILS', - /** Indian rupee */ - INR = 'INR', - /** Iraqi dinar */ - IQD = 'IQD', - /** Iranian rial */ - IRR = 'IRR', - /** Icelandic króna */ - ISK = 'ISK', - /** Jamaican dollar */ - JMD = 'JMD', - /** Jordanian dinar */ - JOD = 'JOD', - /** Japanese yen */ - JPY = 'JPY', - /** Kenyan shilling */ - KES = 'KES', - /** Kyrgyzstani som */ - KGS = 'KGS', - /** Cambodian riel */ - KHR = 'KHR', - /** Comoro franc */ - KMF = 'KMF', - /** North Korean won */ - KPW = 'KPW', - /** South Korean won */ - KRW = 'KRW', - /** Kuwaiti dinar */ - KWD = 'KWD', - /** Cayman Islands dollar */ - KYD = 'KYD', - /** Kazakhstani tenge */ - KZT = 'KZT', - /** Lao kip */ - LAK = 'LAK', - /** Lebanese pound */ - LBP = 'LBP', - /** Sri Lankan rupee */ - LKR = 'LKR', - /** Liberian dollar */ - LRD = 'LRD', - /** Lesotho loti */ - LSL = 'LSL', - /** Libyan dinar */ - LYD = 'LYD', - /** Moroccan dirham */ - MAD = 'MAD', - /** Moldovan leu */ - MDL = 'MDL', - /** Malagasy ariary */ - MGA = 'MGA', - /** Macedonian denar */ - MKD = 'MKD', - /** Myanmar kyat */ - MMK = 'MMK', - /** Mongolian tögrög */ - MNT = 'MNT', - /** Macanese pataca */ - MOP = 'MOP', - /** Mauritanian ouguiya */ - MRU = 'MRU', - /** Mauritian rupee */ - MUR = 'MUR', - /** Maldivian rufiyaa */ - MVR = 'MVR', - /** Malawian kwacha */ - MWK = 'MWK', - /** Mexican peso */ - MXN = 'MXN', - /** Malaysian ringgit */ - MYR = 'MYR', - /** Mozambican metical */ - MZN = 'MZN', - /** Namibian dollar */ - NAD = 'NAD', - /** Nigerian naira */ - NGN = 'NGN', - /** Nicaraguan córdoba */ - NIO = 'NIO', - /** Norwegian krone */ - NOK = 'NOK', - /** Nepalese rupee */ - NPR = 'NPR', - /** New Zealand dollar */ - NZD = 'NZD', - /** Omani rial */ - OMR = 'OMR', - /** Panamanian balboa */ - PAB = 'PAB', - /** Peruvian sol */ - PEN = 'PEN', - /** Papua New Guinean kina */ - PGK = 'PGK', - /** Philippine peso */ - PHP = 'PHP', - /** Pakistani rupee */ - PKR = 'PKR', - /** Polish złoty */ - PLN = 'PLN', - /** Paraguayan guaraní */ - PYG = 'PYG', - /** Qatari riyal */ - QAR = 'QAR', - /** Romanian leu */ - RON = 'RON', - /** Serbian dinar */ - RSD = 'RSD', - /** Russian ruble */ - RUB = 'RUB', - /** Rwandan franc */ - RWF = 'RWF', - /** Saudi riyal */ - SAR = 'SAR', - /** Solomon Islands dollar */ - SBD = 'SBD', - /** Seychelles rupee */ - SCR = 'SCR', - /** Sudanese pound */ - SDG = 'SDG', - /** Swedish krona/kronor */ - SEK = 'SEK', - /** Singapore dollar */ - SGD = 'SGD', - /** Saint Helena pound */ - SHP = 'SHP', - /** Sierra Leonean leone */ - SLL = 'SLL', - /** Somali shilling */ - SOS = 'SOS', - /** Surinamese dollar */ - SRD = 'SRD', - /** South Sudanese pound */ - SSP = 'SSP', - /** São Tomé and Príncipe dobra */ - STN = 'STN', - /** Salvadoran colón */ - SVC = 'SVC', - /** Syrian pound */ - SYP = 'SYP', - /** Swazi lilangeni */ - SZL = 'SZL', - /** Thai baht */ - THB = 'THB', - /** Tajikistani somoni */ - TJS = 'TJS', - /** Turkmenistan manat */ - TMT = 'TMT', - /** Tunisian dinar */ - TND = 'TND', - /** Tongan paʻanga */ - TOP = 'TOP', - /** Turkish lira */ - TRY = 'TRY', - /** Trinidad and Tobago dollar */ - TTD = 'TTD', - /** New Taiwan dollar */ - TWD = 'TWD', - /** Tanzanian shilling */ - TZS = 'TZS', - /** Ukrainian hryvnia */ - UAH = 'UAH', - /** Ugandan shilling */ - UGX = 'UGX', - /** United States dollar */ - USD = 'USD', - /** Uruguayan peso */ - UYU = 'UYU', - /** Uzbekistan som */ - UZS = 'UZS', - /** Venezuelan bolívar soberano */ - VES = 'VES', - /** Vietnamese đồng */ - VND = 'VND', - /** Vanuatu vatu */ - VUV = 'VUV', - /** Samoan tala */ - WST = 'WST', - /** CFA franc BEAC */ - XAF = 'XAF', - /** East Caribbean dollar */ - XCD = 'XCD', - /** CFA franc BCEAO */ - XOF = 'XOF', - /** CFP franc (franc Pacifique) */ - XPF = 'XPF', - /** Yemeni rial */ - YER = 'YER', - /** South African rand */ - ZAR = 'ZAR', - /** Zambian kwacha */ - ZMW = 'ZMW', - /** Zimbabwean dollar */ - ZWL = 'ZWL', + /** United Arab Emirates dirham */ + AED = 'AED', + /** Afghan afghani */ + AFN = 'AFN', + /** Albanian lek */ + ALL = 'ALL', + /** Armenian dram */ + AMD = 'AMD', + /** Netherlands Antillean guilder */ + ANG = 'ANG', + /** Angolan kwanza */ + AOA = 'AOA', + /** Argentine peso */ + ARS = 'ARS', + /** Australian dollar */ + AUD = 'AUD', + /** Aruban florin */ + AWG = 'AWG', + /** Azerbaijani manat */ + AZN = 'AZN', + /** Bosnia and Herzegovina convertible mark */ + BAM = 'BAM', + /** Barbados dollar */ + BBD = 'BBD', + /** Bangladeshi taka */ + BDT = 'BDT', + /** Bulgarian lev */ + BGN = 'BGN', + /** Bahraini dinar */ + BHD = 'BHD', + /** Burundian franc */ + BIF = 'BIF', + /** Bermudian dollar */ + BMD = 'BMD', + /** Brunei dollar */ + BND = 'BND', + /** Boliviano */ + BOB = 'BOB', + /** Brazilian real */ + BRL = 'BRL', + /** Bahamian dollar */ + BSD = 'BSD', + /** Bhutanese ngultrum */ + BTN = 'BTN', + /** Botswana pula */ + BWP = 'BWP', + /** Belarusian ruble */ + BYN = 'BYN', + /** Belize dollar */ + BZD = 'BZD', + /** Canadian dollar */ + CAD = 'CAD', + /** Congolese franc */ + CDF = 'CDF', + /** Swiss franc */ + CHF = 'CHF', + /** Chilean peso */ + CLP = 'CLP', + /** Renminbi (Chinese) yuan */ + CNY = 'CNY', + /** Colombian peso */ + COP = 'COP', + /** Costa Rican colon */ + CRC = 'CRC', + /** Cuban convertible peso */ + CUC = 'CUC', + /** Cuban peso */ + CUP = 'CUP', + /** Cape Verde escudo */ + CVE = 'CVE', + /** Czech koruna */ + CZK = 'CZK', + /** Djiboutian franc */ + DJF = 'DJF', + /** Danish krone */ + DKK = 'DKK', + /** Dominican peso */ + DOP = 'DOP', + /** Algerian dinar */ + DZD = 'DZD', + /** Egyptian pound */ + EGP = 'EGP', + /** Eritrean nakfa */ + ERN = 'ERN', + /** Ethiopian birr */ + ETB = 'ETB', + /** Euro */ + EUR = 'EUR', + /** Fiji dollar */ + FJD = 'FJD', + /** Falkland Islands pound */ + FKP = 'FKP', + /** Pound sterling */ + GBP = 'GBP', + /** Georgian lari */ + GEL = 'GEL', + /** Ghanaian cedi */ + GHS = 'GHS', + /** Gibraltar pound */ + GIP = 'GIP', + /** Gambian dalasi */ + GMD = 'GMD', + /** Guinean franc */ + GNF = 'GNF', + /** Guatemalan quetzal */ + GTQ = 'GTQ', + /** Guyanese dollar */ + GYD = 'GYD', + /** Hong Kong dollar */ + HKD = 'HKD', + /** Honduran lempira */ + HNL = 'HNL', + /** Croatian kuna */ + HRK = 'HRK', + /** Haitian gourde */ + HTG = 'HTG', + /** Hungarian forint */ + HUF = 'HUF', + /** Indonesian rupiah */ + IDR = 'IDR', + /** Israeli new shekel */ + ILS = 'ILS', + /** Indian rupee */ + INR = 'INR', + /** Iraqi dinar */ + IQD = 'IQD', + /** Iranian rial */ + IRR = 'IRR', + /** Icelandic króna */ + ISK = 'ISK', + /** Jamaican dollar */ + JMD = 'JMD', + /** Jordanian dinar */ + JOD = 'JOD', + /** Japanese yen */ + JPY = 'JPY', + /** Kenyan shilling */ + KES = 'KES', + /** Kyrgyzstani som */ + KGS = 'KGS', + /** Cambodian riel */ + KHR = 'KHR', + /** Comoro franc */ + KMF = 'KMF', + /** North Korean won */ + KPW = 'KPW', + /** South Korean won */ + KRW = 'KRW', + /** Kuwaiti dinar */ + KWD = 'KWD', + /** Cayman Islands dollar */ + KYD = 'KYD', + /** Kazakhstani tenge */ + KZT = 'KZT', + /** Lao kip */ + LAK = 'LAK', + /** Lebanese pound */ + LBP = 'LBP', + /** Sri Lankan rupee */ + LKR = 'LKR', + /** Liberian dollar */ + LRD = 'LRD', + /** Lesotho loti */ + LSL = 'LSL', + /** Libyan dinar */ + LYD = 'LYD', + /** Moroccan dirham */ + MAD = 'MAD', + /** Moldovan leu */ + MDL = 'MDL', + /** Malagasy ariary */ + MGA = 'MGA', + /** Macedonian denar */ + MKD = 'MKD', + /** Myanmar kyat */ + MMK = 'MMK', + /** Mongolian tögrög */ + MNT = 'MNT', + /** Macanese pataca */ + MOP = 'MOP', + /** Mauritanian ouguiya */ + MRU = 'MRU', + /** Mauritian rupee */ + MUR = 'MUR', + /** Maldivian rufiyaa */ + MVR = 'MVR', + /** Malawian kwacha */ + MWK = 'MWK', + /** Mexican peso */ + MXN = 'MXN', + /** Malaysian ringgit */ + MYR = 'MYR', + /** Mozambican metical */ + MZN = 'MZN', + /** Namibian dollar */ + NAD = 'NAD', + /** Nigerian naira */ + NGN = 'NGN', + /** Nicaraguan córdoba */ + NIO = 'NIO', + /** Norwegian krone */ + NOK = 'NOK', + /** Nepalese rupee */ + NPR = 'NPR', + /** New Zealand dollar */ + NZD = 'NZD', + /** Omani rial */ + OMR = 'OMR', + /** Panamanian balboa */ + PAB = 'PAB', + /** Peruvian sol */ + PEN = 'PEN', + /** Papua New Guinean kina */ + PGK = 'PGK', + /** Philippine peso */ + PHP = 'PHP', + /** Pakistani rupee */ + PKR = 'PKR', + /** Polish złoty */ + PLN = 'PLN', + /** Paraguayan guaraní */ + PYG = 'PYG', + /** Qatari riyal */ + QAR = 'QAR', + /** Romanian leu */ + RON = 'RON', + /** Serbian dinar */ + RSD = 'RSD', + /** Russian ruble */ + RUB = 'RUB', + /** Rwandan franc */ + RWF = 'RWF', + /** Saudi riyal */ + SAR = 'SAR', + /** Solomon Islands dollar */ + SBD = 'SBD', + /** Seychelles rupee */ + SCR = 'SCR', + /** Sudanese pound */ + SDG = 'SDG', + /** Swedish krona/kronor */ + SEK = 'SEK', + /** Singapore dollar */ + SGD = 'SGD', + /** Saint Helena pound */ + SHP = 'SHP', + /** Sierra Leonean leone */ + SLL = 'SLL', + /** Somali shilling */ + SOS = 'SOS', + /** Surinamese dollar */ + SRD = 'SRD', + /** South Sudanese pound */ + SSP = 'SSP', + /** São Tomé and Príncipe dobra */ + STN = 'STN', + /** Salvadoran colón */ + SVC = 'SVC', + /** Syrian pound */ + SYP = 'SYP', + /** Swazi lilangeni */ + SZL = 'SZL', + /** Thai baht */ + THB = 'THB', + /** Tajikistani somoni */ + TJS = 'TJS', + /** Turkmenistan manat */ + TMT = 'TMT', + /** Tunisian dinar */ + TND = 'TND', + /** Tongan paʻanga */ + TOP = 'TOP', + /** Turkish lira */ + TRY = 'TRY', + /** Trinidad and Tobago dollar */ + TTD = 'TTD', + /** New Taiwan dollar */ + TWD = 'TWD', + /** Tanzanian shilling */ + TZS = 'TZS', + /** Ukrainian hryvnia */ + UAH = 'UAH', + /** Ugandan shilling */ + UGX = 'UGX', + /** United States dollar */ + USD = 'USD', + /** Uruguayan peso */ + UYU = 'UYU', + /** Uzbekistan som */ + UZS = 'UZS', + /** Venezuelan bolívar soberano */ + VES = 'VES', + /** Vietnamese đồng */ + VND = 'VND', + /** Vanuatu vatu */ + VUV = 'VUV', + /** Samoan tala */ + WST = 'WST', + /** CFA franc BEAC */ + XAF = 'XAF', + /** East Caribbean dollar */ + XCD = 'XCD', + /** CFA franc BCEAO */ + XOF = 'XOF', + /** CFP franc (franc Pacifique) */ + XPF = 'XPF', + /** Yemeni rial */ + YER = 'YER', + /** South African rand */ + ZAR = 'ZAR', + /** Zambian kwacha */ + ZMW = 'ZMW', + /** Zimbabwean dollar */ + ZWL = 'ZWL' } export type CustomField = { - name: Scalars['String']; - type: Scalars['String']; - list: Scalars['Boolean']; - label?: Maybe>; - description?: Maybe>; - readonly?: Maybe; - internal?: Maybe; + name: Scalars['String']; + type: Scalars['String']; + list: Scalars['Boolean']; + label?: Maybe>; + description?: Maybe>; + readonly?: Maybe; + internal?: Maybe; }; export type StringCustomFieldConfig = CustomField & { - name: Scalars['String']; - type: Scalars['String']; - list: Scalars['Boolean']; - length?: Maybe; - label?: Maybe>; - description?: Maybe>; - readonly?: Maybe; - internal?: Maybe; - pattern?: Maybe; - options?: Maybe>; + name: Scalars['String']; + type: Scalars['String']; + list: Scalars['Boolean']; + length?: Maybe; + label?: Maybe>; + description?: Maybe>; + readonly?: Maybe; + internal?: Maybe; + pattern?: Maybe; + options?: Maybe>; }; export type StringFieldOption = { - value: Scalars['String']; - label?: Maybe>; + value: Scalars['String']; + label?: Maybe>; }; export type LocaleStringCustomFieldConfig = CustomField & { - name: Scalars['String']; - type: Scalars['String']; - list: Scalars['Boolean']; - length?: Maybe; - label?: Maybe>; - description?: Maybe>; - readonly?: Maybe; - internal?: Maybe; - pattern?: Maybe; + name: Scalars['String']; + type: Scalars['String']; + list: Scalars['Boolean']; + length?: Maybe; + label?: Maybe>; + description?: Maybe>; + readonly?: Maybe; + internal?: Maybe; + pattern?: Maybe; }; export type IntCustomFieldConfig = CustomField & { - name: Scalars['String']; - type: Scalars['String']; - list: Scalars['Boolean']; - label?: Maybe>; - description?: Maybe>; - readonly?: Maybe; - internal?: Maybe; - min?: Maybe; - max?: Maybe; - step?: Maybe; + name: Scalars['String']; + type: Scalars['String']; + list: Scalars['Boolean']; + label?: Maybe>; + description?: Maybe>; + readonly?: Maybe; + internal?: Maybe; + min?: Maybe; + max?: Maybe; + step?: Maybe; }; export type FloatCustomFieldConfig = CustomField & { - name: Scalars['String']; - type: Scalars['String']; - list: Scalars['Boolean']; - label?: Maybe>; - description?: Maybe>; - readonly?: Maybe; - internal?: Maybe; - min?: Maybe; - max?: Maybe; - step?: Maybe; + name: Scalars['String']; + type: Scalars['String']; + list: Scalars['Boolean']; + label?: Maybe>; + description?: Maybe>; + readonly?: Maybe; + internal?: Maybe; + min?: Maybe; + max?: Maybe; + step?: Maybe; }; export type BooleanCustomFieldConfig = CustomField & { - name: Scalars['String']; - type: Scalars['String']; - list: Scalars['Boolean']; - label?: Maybe>; - description?: Maybe>; - readonly?: Maybe; - internal?: Maybe; + name: Scalars['String']; + type: Scalars['String']; + list: Scalars['Boolean']; + label?: Maybe>; + description?: Maybe>; + readonly?: Maybe; + internal?: Maybe; }; /** @@ -933,30 +969,24 @@ export type BooleanCustomFieldConfig = CustomField & { * See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local#Additional_attributes */ export type DateTimeCustomFieldConfig = CustomField & { - name: Scalars['String']; - type: Scalars['String']; - list: Scalars['Boolean']; - label?: Maybe>; - description?: Maybe>; - readonly?: Maybe; - internal?: Maybe; - min?: Maybe; - max?: Maybe; - step?: Maybe; + name: Scalars['String']; + type: Scalars['String']; + list: Scalars['Boolean']; + label?: Maybe>; + description?: Maybe>; + readonly?: Maybe; + internal?: Maybe; + min?: Maybe; + max?: Maybe; + step?: Maybe; }; export type LocalizedString = { - languageCode: LanguageCode; - value: Scalars['String']; + languageCode: LanguageCode; + value: Scalars['String']; }; -export type CustomFieldConfig = - | StringCustomFieldConfig - | LocaleStringCustomFieldConfig - | IntCustomFieldConfig - | FloatCustomFieldConfig - | BooleanCustomFieldConfig - | DateTimeCustomFieldConfig; +export type CustomFieldConfig = StringCustomFieldConfig | LocaleStringCustomFieldConfig | IntCustomFieldConfig | FloatCustomFieldConfig | BooleanCustomFieldConfig | DateTimeCustomFieldConfig; /** * @description @@ -964,324 +994,324 @@ export type CustomFieldConfig = * region or script modifier (e.g. de_AT). The selection available is based * on the [Unicode CLDR summary list](https://unicode-org.github.io/cldr-staging/charts/37/summary/root.html) * and includes the major spoken languages of the world and any widely-used variants. - * + * * @docsCategory common */ export enum LanguageCode { - /** Afrikaans */ - af = 'af', - /** Akan */ - ak = 'ak', - /** Albanian */ - sq = 'sq', - /** Amharic */ - am = 'am', - /** Arabic */ - ar = 'ar', - /** Armenian */ - hy = 'hy', - /** Assamese */ - as = 'as', - /** Azerbaijani */ - az = 'az', - /** Bambara */ - bm = 'bm', - /** Bangla */ - bn = 'bn', - /** Basque */ - eu = 'eu', - /** Belarusian */ - be = 'be', - /** Bosnian */ - bs = 'bs', - /** Breton */ - br = 'br', - /** Bulgarian */ - bg = 'bg', - /** Burmese */ - my = 'my', - /** Catalan */ - ca = 'ca', - /** Chechen */ - ce = 'ce', - /** Chinese */ - zh = 'zh', - /** Simplified Chinese */ - zh_Hans = 'zh_Hans', - /** Traditional Chinese */ - zh_Hant = 'zh_Hant', - /** Church Slavic */ - cu = 'cu', - /** Cornish */ - kw = 'kw', - /** Corsican */ - co = 'co', - /** Croatian */ - hr = 'hr', - /** Czech */ - cs = 'cs', - /** Danish */ - da = 'da', - /** Dutch */ - nl = 'nl', - /** Flemish */ - nl_BE = 'nl_BE', - /** Dzongkha */ - dz = 'dz', - /** English */ - en = 'en', - /** Australian English */ - en_AU = 'en_AU', - /** Canadian English */ - en_CA = 'en_CA', - /** British English */ - en_GB = 'en_GB', - /** American English */ - en_US = 'en_US', - /** Esperanto */ - eo = 'eo', - /** Estonian */ - et = 'et', - /** Ewe */ - ee = 'ee', - /** Faroese */ - fo = 'fo', - /** Finnish */ - fi = 'fi', - /** French */ - fr = 'fr', - /** Canadian French */ - fr_CA = 'fr_CA', - /** Swiss French */ - fr_CH = 'fr_CH', - /** Fulah */ - ff = 'ff', - /** Galician */ - gl = 'gl', - /** Ganda */ - lg = 'lg', - /** Georgian */ - ka = 'ka', - /** German */ - de = 'de', - /** Austrian German */ - de_AT = 'de_AT', - /** Swiss High German */ - de_CH = 'de_CH', - /** Greek */ - el = 'el', - /** Gujarati */ - gu = 'gu', - /** Haitian Creole */ - ht = 'ht', - /** Hausa */ - ha = 'ha', - /** Hebrew */ - he = 'he', - /** Hindi */ - hi = 'hi', - /** Hungarian */ - hu = 'hu', - /** Icelandic */ - is = 'is', - /** Igbo */ - ig = 'ig', - /** Indonesian */ - id = 'id', - /** Interlingua */ - ia = 'ia', - /** Irish */ - ga = 'ga', - /** Italian */ - it = 'it', - /** Japanese */ - ja = 'ja', - /** Javanese */ - jv = 'jv', - /** Kalaallisut */ - kl = 'kl', - /** Kannada */ - kn = 'kn', - /** Kashmiri */ - ks = 'ks', - /** Kazakh */ - kk = 'kk', - /** Khmer */ - km = 'km', - /** Kikuyu */ - ki = 'ki', - /** Kinyarwanda */ - rw = 'rw', - /** Korean */ - ko = 'ko', - /** Kurdish */ - ku = 'ku', - /** Kyrgyz */ - ky = 'ky', - /** Lao */ - lo = 'lo', - /** Latin */ - la = 'la', - /** Latvian */ - lv = 'lv', - /** Lingala */ - ln = 'ln', - /** Lithuanian */ - lt = 'lt', - /** Luba-Katanga */ - lu = 'lu', - /** Luxembourgish */ - lb = 'lb', - /** Macedonian */ - mk = 'mk', - /** Malagasy */ - mg = 'mg', - /** Malay */ - ms = 'ms', - /** Malayalam */ - ml = 'ml', - /** Maltese */ - mt = 'mt', - /** Manx */ - gv = 'gv', - /** Maori */ - mi = 'mi', - /** Marathi */ - mr = 'mr', - /** Mongolian */ - mn = 'mn', - /** Nepali */ - ne = 'ne', - /** North Ndebele */ - nd = 'nd', - /** Northern Sami */ - se = 'se', - /** Norwegian Bokmål */ - nb = 'nb', - /** Norwegian Nynorsk */ - nn = 'nn', - /** Nyanja */ - ny = 'ny', - /** Odia */ - or = 'or', - /** Oromo */ - om = 'om', - /** Ossetic */ - os = 'os', - /** Pashto */ - ps = 'ps', - /** Persian */ - fa = 'fa', - /** Dari */ - fa_AF = 'fa_AF', - /** Polish */ - pl = 'pl', - /** Portuguese */ - pt = 'pt', - /** Brazilian Portuguese */ - pt_BR = 'pt_BR', - /** European Portuguese */ - pt_PT = 'pt_PT', - /** Punjabi */ - pa = 'pa', - /** Quechua */ - qu = 'qu', - /** Romanian */ - ro = 'ro', - /** Moldavian */ - ro_MD = 'ro_MD', - /** Romansh */ - rm = 'rm', - /** Rundi */ - rn = 'rn', - /** Russian */ - ru = 'ru', - /** Samoan */ - sm = 'sm', - /** Sango */ - sg = 'sg', - /** Sanskrit */ - sa = 'sa', - /** Scottish Gaelic */ - gd = 'gd', - /** Serbian */ - sr = 'sr', - /** Shona */ - sn = 'sn', - /** Sichuan Yi */ - ii = 'ii', - /** Sindhi */ - sd = 'sd', - /** Sinhala */ - si = 'si', - /** Slovak */ - sk = 'sk', - /** Slovenian */ - sl = 'sl', - /** Somali */ - so = 'so', - /** Southern Sotho */ - st = 'st', - /** Spanish */ - es = 'es', - /** European Spanish */ - es_ES = 'es_ES', - /** Mexican Spanish */ - es_MX = 'es_MX', - /** Sundanese */ - su = 'su', - /** Swahili */ - sw = 'sw', - /** Congo Swahili */ - sw_CD = 'sw_CD', - /** Swedish */ - sv = 'sv', - /** Tajik */ - tg = 'tg', - /** Tamil */ - ta = 'ta', - /** Tatar */ - tt = 'tt', - /** Telugu */ - te = 'te', - /** Thai */ - th = 'th', - /** Tibetan */ - bo = 'bo', - /** Tigrinya */ - ti = 'ti', - /** Tongan */ - to = 'to', - /** Turkish */ - tr = 'tr', - /** Turkmen */ - tk = 'tk', - /** Ukrainian */ - uk = 'uk', - /** Urdu */ - ur = 'ur', - /** Uyghur */ - ug = 'ug', - /** Uzbek */ - uz = 'uz', - /** Vietnamese */ - vi = 'vi', - /** Volapük */ - vo = 'vo', - /** Welsh */ - cy = 'cy', - /** Western Frisian */ - fy = 'fy', - /** Wolof */ - wo = 'wo', - /** Xhosa */ - xh = 'xh', - /** Yiddish */ - yi = 'yi', - /** Yoruba */ - yo = 'yo', - /** Zulu */ - zu = 'zu', + /** Afrikaans */ + af = 'af', + /** Akan */ + ak = 'ak', + /** Albanian */ + sq = 'sq', + /** Amharic */ + am = 'am', + /** Arabic */ + ar = 'ar', + /** Armenian */ + hy = 'hy', + /** Assamese */ + as = 'as', + /** Azerbaijani */ + az = 'az', + /** Bambara */ + bm = 'bm', + /** Bangla */ + bn = 'bn', + /** Basque */ + eu = 'eu', + /** Belarusian */ + be = 'be', + /** Bosnian */ + bs = 'bs', + /** Breton */ + br = 'br', + /** Bulgarian */ + bg = 'bg', + /** Burmese */ + my = 'my', + /** Catalan */ + ca = 'ca', + /** Chechen */ + ce = 'ce', + /** Chinese */ + zh = 'zh', + /** Simplified Chinese */ + zh_Hans = 'zh_Hans', + /** Traditional Chinese */ + zh_Hant = 'zh_Hant', + /** Church Slavic */ + cu = 'cu', + /** Cornish */ + kw = 'kw', + /** Corsican */ + co = 'co', + /** Croatian */ + hr = 'hr', + /** Czech */ + cs = 'cs', + /** Danish */ + da = 'da', + /** Dutch */ + nl = 'nl', + /** Flemish */ + nl_BE = 'nl_BE', + /** Dzongkha */ + dz = 'dz', + /** English */ + en = 'en', + /** Australian English */ + en_AU = 'en_AU', + /** Canadian English */ + en_CA = 'en_CA', + /** British English */ + en_GB = 'en_GB', + /** American English */ + en_US = 'en_US', + /** Esperanto */ + eo = 'eo', + /** Estonian */ + et = 'et', + /** Ewe */ + ee = 'ee', + /** Faroese */ + fo = 'fo', + /** Finnish */ + fi = 'fi', + /** French */ + fr = 'fr', + /** Canadian French */ + fr_CA = 'fr_CA', + /** Swiss French */ + fr_CH = 'fr_CH', + /** Fulah */ + ff = 'ff', + /** Galician */ + gl = 'gl', + /** Ganda */ + lg = 'lg', + /** Georgian */ + ka = 'ka', + /** German */ + de = 'de', + /** Austrian German */ + de_AT = 'de_AT', + /** Swiss High German */ + de_CH = 'de_CH', + /** Greek */ + el = 'el', + /** Gujarati */ + gu = 'gu', + /** Haitian Creole */ + ht = 'ht', + /** Hausa */ + ha = 'ha', + /** Hebrew */ + he = 'he', + /** Hindi */ + hi = 'hi', + /** Hungarian */ + hu = 'hu', + /** Icelandic */ + is = 'is', + /** Igbo */ + ig = 'ig', + /** Indonesian */ + id = 'id', + /** Interlingua */ + ia = 'ia', + /** Irish */ + ga = 'ga', + /** Italian */ + it = 'it', + /** Japanese */ + ja = 'ja', + /** Javanese */ + jv = 'jv', + /** Kalaallisut */ + kl = 'kl', + /** Kannada */ + kn = 'kn', + /** Kashmiri */ + ks = 'ks', + /** Kazakh */ + kk = 'kk', + /** Khmer */ + km = 'km', + /** Kikuyu */ + ki = 'ki', + /** Kinyarwanda */ + rw = 'rw', + /** Korean */ + ko = 'ko', + /** Kurdish */ + ku = 'ku', + /** Kyrgyz */ + ky = 'ky', + /** Lao */ + lo = 'lo', + /** Latin */ + la = 'la', + /** Latvian */ + lv = 'lv', + /** Lingala */ + ln = 'ln', + /** Lithuanian */ + lt = 'lt', + /** Luba-Katanga */ + lu = 'lu', + /** Luxembourgish */ + lb = 'lb', + /** Macedonian */ + mk = 'mk', + /** Malagasy */ + mg = 'mg', + /** Malay */ + ms = 'ms', + /** Malayalam */ + ml = 'ml', + /** Maltese */ + mt = 'mt', + /** Manx */ + gv = 'gv', + /** Maori */ + mi = 'mi', + /** Marathi */ + mr = 'mr', + /** Mongolian */ + mn = 'mn', + /** Nepali */ + ne = 'ne', + /** North Ndebele */ + nd = 'nd', + /** Northern Sami */ + se = 'se', + /** Norwegian Bokmål */ + nb = 'nb', + /** Norwegian Nynorsk */ + nn = 'nn', + /** Nyanja */ + ny = 'ny', + /** Odia */ + or = 'or', + /** Oromo */ + om = 'om', + /** Ossetic */ + os = 'os', + /** Pashto */ + ps = 'ps', + /** Persian */ + fa = 'fa', + /** Dari */ + fa_AF = 'fa_AF', + /** Polish */ + pl = 'pl', + /** Portuguese */ + pt = 'pt', + /** Brazilian Portuguese */ + pt_BR = 'pt_BR', + /** European Portuguese */ + pt_PT = 'pt_PT', + /** Punjabi */ + pa = 'pa', + /** Quechua */ + qu = 'qu', + /** Romanian */ + ro = 'ro', + /** Moldavian */ + ro_MD = 'ro_MD', + /** Romansh */ + rm = 'rm', + /** Rundi */ + rn = 'rn', + /** Russian */ + ru = 'ru', + /** Samoan */ + sm = 'sm', + /** Sango */ + sg = 'sg', + /** Sanskrit */ + sa = 'sa', + /** Scottish Gaelic */ + gd = 'gd', + /** Serbian */ + sr = 'sr', + /** Shona */ + sn = 'sn', + /** Sichuan Yi */ + ii = 'ii', + /** Sindhi */ + sd = 'sd', + /** Sinhala */ + si = 'si', + /** Slovak */ + sk = 'sk', + /** Slovenian */ + sl = 'sl', + /** Somali */ + so = 'so', + /** Southern Sotho */ + st = 'st', + /** Spanish */ + es = 'es', + /** European Spanish */ + es_ES = 'es_ES', + /** Mexican Spanish */ + es_MX = 'es_MX', + /** Sundanese */ + su = 'su', + /** Swahili */ + sw = 'sw', + /** Congo Swahili */ + sw_CD = 'sw_CD', + /** Swedish */ + sv = 'sv', + /** Tajik */ + tg = 'tg', + /** Tamil */ + ta = 'ta', + /** Tatar */ + tt = 'tt', + /** Telugu */ + te = 'te', + /** Thai */ + th = 'th', + /** Tibetan */ + bo = 'bo', + /** Tigrinya */ + ti = 'ti', + /** Tongan */ + to = 'to', + /** Turkish */ + tr = 'tr', + /** Turkmen */ + tk = 'tk', + /** Ukrainian */ + uk = 'uk', + /** Urdu */ + ur = 'ur', + /** Uyghur */ + ug = 'ug', + /** Uzbek */ + uz = 'uz', + /** Vietnamese */ + vi = 'vi', + /** Volapük */ + vo = 'vo', + /** Welsh */ + cy = 'cy', + /** Western Frisian */ + fy = 'fy', + /** Wolof */ + wo = 'wo', + /** Xhosa */ + xh = 'xh', + /** Yiddish */ + yi = 'yi', + /** Yoruba */ + yo = 'yo', + /** Zulu */ + zu = 'zu' } /** @@ -1289,150 +1319,150 @@ export enum LanguageCode { * @description * Permissions for administrators and customers. Used to control access to * GraphQL resolvers via the {@link Allow} decorator. - * + * * @docsCategory common */ export enum Permission { - /** The Authenticated role means simply that the user is logged in */ - Authenticated = 'Authenticated', - /** SuperAdmin can perform the most sensitive tasks */ - SuperAdmin = 'SuperAdmin', - /** Owner means the user owns this entity, e.g. a Customer's own Order */ - Owner = 'Owner', - /** Public means any unauthenticated user may perform the operation */ - Public = 'Public', - CreateCatalog = 'CreateCatalog', - ReadCatalog = 'ReadCatalog', - UpdateCatalog = 'UpdateCatalog', - DeleteCatalog = 'DeleteCatalog', - CreateCustomer = 'CreateCustomer', - ReadCustomer = 'ReadCustomer', - UpdateCustomer = 'UpdateCustomer', - DeleteCustomer = 'DeleteCustomer', - CreateAdministrator = 'CreateAdministrator', - ReadAdministrator = 'ReadAdministrator', - UpdateAdministrator = 'UpdateAdministrator', - DeleteAdministrator = 'DeleteAdministrator', - CreateOrder = 'CreateOrder', - ReadOrder = 'ReadOrder', - UpdateOrder = 'UpdateOrder', - DeleteOrder = 'DeleteOrder', - CreatePromotion = 'CreatePromotion', - ReadPromotion = 'ReadPromotion', - UpdatePromotion = 'UpdatePromotion', - DeletePromotion = 'DeletePromotion', - CreateSettings = 'CreateSettings', - ReadSettings = 'ReadSettings', - UpdateSettings = 'UpdateSettings', - DeleteSettings = 'DeleteSettings', + /** The Authenticated role means simply that the user is logged in */ + Authenticated = 'Authenticated', + /** SuperAdmin can perform the most sensitive tasks */ + SuperAdmin = 'SuperAdmin', + /** Owner means the user owns this entity, e.g. a Customer's own Order */ + Owner = 'Owner', + /** Public means any unauthenticated user may perform the operation */ + Public = 'Public', + CreateCatalog = 'CreateCatalog', + ReadCatalog = 'ReadCatalog', + UpdateCatalog = 'UpdateCatalog', + DeleteCatalog = 'DeleteCatalog', + CreateCustomer = 'CreateCustomer', + ReadCustomer = 'ReadCustomer', + UpdateCustomer = 'UpdateCustomer', + DeleteCustomer = 'DeleteCustomer', + CreateAdministrator = 'CreateAdministrator', + ReadAdministrator = 'ReadAdministrator', + UpdateAdministrator = 'UpdateAdministrator', + DeleteAdministrator = 'DeleteAdministrator', + CreateOrder = 'CreateOrder', + ReadOrder = 'ReadOrder', + UpdateOrder = 'UpdateOrder', + DeleteOrder = 'DeleteOrder', + CreatePromotion = 'CreatePromotion', + ReadPromotion = 'ReadPromotion', + UpdatePromotion = 'UpdatePromotion', + DeletePromotion = 'DeletePromotion', + CreateSettings = 'CreateSettings', + ReadSettings = 'ReadSettings', + UpdateSettings = 'UpdateSettings', + DeleteSettings = 'DeleteSettings' } export type RegisterCustomerInput = { - emailAddress: Scalars['String']; - title?: Maybe; - firstName?: Maybe; - lastName?: Maybe; - phoneNumber?: Maybe; - password?: Maybe; + emailAddress: Scalars['String']; + title?: Maybe; + firstName?: Maybe; + lastName?: Maybe; + phoneNumber?: Maybe; + password?: Maybe; }; export type UpdateCustomerInput = { - title?: Maybe; - firstName?: Maybe; - lastName?: Maybe; - phoneNumber?: Maybe; - customFields?: Maybe; + title?: Maybe; + firstName?: Maybe; + lastName?: Maybe; + phoneNumber?: Maybe; + customFields?: Maybe; }; /** Passed as input to the `addPaymentToOrder` mutation. */ 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 - * as the "metadata" argument. For example, it could contain an ID for the payment and other - * data generated by the payment provider. - */ - metadata: Scalars['JSON']; + /** 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 + * as the "metadata" argument. For example, it could contain an ID for the payment and other + * data generated by the payment provider. + */ + metadata: Scalars['JSON']; }; /** Returned when attempting to modify the contents of an Order that is not in the `AddingItems` state. */ export type OrderModificationError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Retured when the maximum order size limit has been reached. */ export type OrderLimitError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; - maxItems: Scalars['Int']; + errorCode: ErrorCode; + message: Scalars['String']; + maxItems: Scalars['Int']; }; /** Retured when attemting to set a negative OrderLine quantity. */ export type NegativeQuantityError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned when attempting to add a Payment to an Order that is not in the `ArrangingPayment` state. */ export type OrderPaymentStateError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned when a Payment fails due to an error. */ export type PaymentFailedError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; - paymentErrorMessage: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; + paymentErrorMessage: Scalars['String']; }; /** Returned when a Payment is declined by the payment provider. */ export type PaymentDeclinedError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; - paymentErrorMessage: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; + paymentErrorMessage: Scalars['String']; }; /** Returned if the provided coupon code is invalid */ export type CouponCodeInvalidError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; - couponCode: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; + couponCode: Scalars['String']; }; /** Returned if the provided coupon code is invalid */ export type CouponCodeExpiredError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; - couponCode: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; + couponCode: Scalars['String']; }; /** Returned if the provided coupon code is invalid */ export type CouponCodeLimitError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; - couponCode: Scalars['String']; - limit: Scalars['Int']; + errorCode: ErrorCode; + message: Scalars['String']; + couponCode: Scalars['String']; + limit: Scalars['Int']; }; /** Retured when attemting to set the Customer for an Order when already logged in. */ export type AlreadyLoggedInError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Retured when attemting to register or verify a customer account without a password, when one is required. */ export type MissingPasswordError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Retured when attemting to verify a customer account with a password, when a password has already been set. */ export type PasswordAlreadySetError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -1440,8 +1470,8 @@ export type PasswordAlreadySetError = ErrorResult & { * invalid or does not match any expected tokens. */ export type VerificationTokenInvalidError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -1449,8 +1479,8 @@ export type VerificationTokenInvalidError = ErrorResult & { * expired according to the `verificationTokenDuration` setting in the AuthOptions. */ export type VerificationTokenExpiredError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -1458,8 +1488,8 @@ export type VerificationTokenExpiredError = ErrorResult & { * invalid or does not match any expected tokens. */ export type IdentifierChangeTokenInvalidError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -1467,8 +1497,8 @@ export type IdentifierChangeTokenInvalidError = ErrorResult & { * expired according to the `verificationTokenDuration` setting in the AuthOptions. */ export type IdentifierChangeTokenExpiredError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -1476,8 +1506,8 @@ export type IdentifierChangeTokenExpiredError = ErrorResult & { * invalid or does not match any expected tokens. */ export type PasswordResetTokenInvalidError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -1485,8 +1515,8 @@ export type PasswordResetTokenInvalidError = ErrorResult & { * expired according to the `verificationTokenDuration` setting in the AuthOptions. */ export type PasswordResetTokenExpiredError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -1494,8 +1524,8 @@ export type PasswordResetTokenExpiredError = ErrorResult & { * and an unverified user attempts to authenticate. */ export type NotVerifiedError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; export type UpdateOrderItemsResult = Order | OrderModificationError | OrderLimitError | NegativeQuantityError; @@ -1504,18 +1534,9 @@ export type RemoveOrderItemsResult = Order | OrderModificationError; export type SetOrderShippingMethodResult = Order | OrderModificationError; -export type ApplyCouponCodeResult = - | Order - | CouponCodeExpiredError - | CouponCodeInvalidError - | CouponCodeLimitError; +export type ApplyCouponCodeResult = Order | CouponCodeExpiredError | CouponCodeInvalidError | CouponCodeLimitError; -export type AddPaymentToOrderResult = - | Order - | OrderPaymentStateError - | PaymentFailedError - | PaymentDeclinedError - | OrderStateTransitionError; +export type AddPaymentToOrderResult = Order | OrderPaymentStateError | PaymentFailedError | PaymentDeclinedError | OrderStateTransitionError; export type TransitionOrderToStateResult = Order | OrderStateTransitionError; @@ -1525,550 +1546,532 @@ export type RegisterCustomerAccountResult = Success | MissingPasswordError | Nat export type RefreshCustomerVerificationResult = Success | NativeAuthStrategyError; -export type VerifyCustomerAccountResult = - | CurrentUser - | VerificationTokenInvalidError - | VerificationTokenExpiredError - | MissingPasswordError - | PasswordAlreadySetError - | NativeAuthStrategyError; +export type VerifyCustomerAccountResult = CurrentUser | VerificationTokenInvalidError | VerificationTokenExpiredError | MissingPasswordError | PasswordAlreadySetError | NativeAuthStrategyError; export type UpdateCustomerPasswordResult = Success | InvalidCredentialsError | NativeAuthStrategyError; -export type RequestUpdateCustomerEmailAddressResult = - | Success - | InvalidCredentialsError - | EmailAddressConflictError - | NativeAuthStrategyError; +export type RequestUpdateCustomerEmailAddressResult = Success | InvalidCredentialsError | EmailAddressConflictError | NativeAuthStrategyError; -export type UpdateCustomerEmailAddressResult = - | Success - | IdentifierChangeTokenInvalidError - | IdentifierChangeTokenExpiredError - | NativeAuthStrategyError; +export type UpdateCustomerEmailAddressResult = Success | IdentifierChangeTokenInvalidError | IdentifierChangeTokenExpiredError | NativeAuthStrategyError; export type RequestPasswordResetResult = Success | NativeAuthStrategyError; -export type ResetPasswordResult = - | CurrentUser - | PasswordResetTokenInvalidError - | PasswordResetTokenExpiredError - | NativeAuthStrategyError; +export type ResetPasswordResult = CurrentUser | PasswordResetTokenInvalidError | PasswordResetTokenExpiredError | NativeAuthStrategyError; -export type NativeAuthenticationResult = - | CurrentUser - | InvalidCredentialsError - | NotVerifiedError - | NativeAuthStrategyError; +export type NativeAuthenticationResult = CurrentUser | InvalidCredentialsError | NotVerifiedError | NativeAuthStrategyError; export type AuthenticationResult = CurrentUser | InvalidCredentialsError | NotVerifiedError; export type Address = Node & { - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - fullName?: Maybe; - company?: Maybe; - streetLine1: Scalars['String']; - streetLine2?: Maybe; - city?: Maybe; - province?: Maybe; - postalCode?: Maybe; - country: Country; - phoneNumber?: Maybe; - defaultShippingAddress?: Maybe; - defaultBillingAddress?: Maybe; - customFields?: Maybe; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + fullName?: Maybe; + company?: Maybe; + streetLine1: Scalars['String']; + streetLine2?: Maybe; + city?: Maybe; + province?: Maybe; + postalCode?: Maybe; + country: Country; + phoneNumber?: Maybe; + defaultShippingAddress?: Maybe; + defaultBillingAddress?: Maybe; + customFields?: Maybe; }; export type Administrator = Node & { - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - firstName: Scalars['String']; - lastName: Scalars['String']; - emailAddress: Scalars['String']; - user: User; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + firstName: Scalars['String']; + lastName: Scalars['String']; + emailAddress: Scalars['String']; + user: User; }; export type AdministratorList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type Asset = Node & { - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - name: Scalars['String']; - type: AssetType; - fileSize: Scalars['Int']; - mimeType: Scalars['String']; - width: Scalars['Int']; - height: Scalars['Int']; - source: Scalars['String']; - preview: Scalars['String']; - focalPoint?: Maybe; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + name: Scalars['String']; + type: AssetType; + fileSize: Scalars['Int']; + mimeType: Scalars['String']; + width: Scalars['Int']; + height: Scalars['Int']; + source: Scalars['String']; + preview: Scalars['String']; + focalPoint?: Maybe; }; export type Coordinate = { - x: Scalars['Float']; - y: Scalars['Float']; + x: Scalars['Float']; + y: Scalars['Float']; }; export type AssetList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export enum AssetType { - IMAGE = 'IMAGE', - VIDEO = 'VIDEO', - BINARY = 'BINARY', + IMAGE = 'IMAGE', + VIDEO = 'VIDEO', + BINARY = 'BINARY' } export type CurrentUser = { - id: Scalars['ID']; - identifier: Scalars['String']; - channels: Array; + id: Scalars['ID']; + identifier: Scalars['String']; + channels: Array; }; export type CurrentUserChannel = { - id: Scalars['ID']; - token: Scalars['String']; - code: Scalars['String']; - permissions: Array; + id: Scalars['ID']; + token: Scalars['String']; + code: Scalars['String']; + permissions: Array; }; export type Channel = Node & { - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - code: Scalars['String']; - token: Scalars['String']; - defaultTaxZone?: Maybe; - defaultShippingZone?: Maybe; - defaultLanguageCode: LanguageCode; - currencyCode: CurrencyCode; - pricesIncludeTax: Scalars['Boolean']; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + code: Scalars['String']; + token: Scalars['String']; + defaultTaxZone?: Maybe; + defaultShippingZone?: Maybe; + defaultLanguageCode: LanguageCode; + currencyCode: CurrencyCode; + pricesIncludeTax: Scalars['Boolean']; }; export type Collection = Node & { - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - languageCode?: Maybe; - name: Scalars['String']; - slug: Scalars['String']; - breadcrumbs: Array; - position: Scalars['Int']; - description: Scalars['String']; - featuredAsset?: Maybe; - assets: Array; - parent?: Maybe; - children?: Maybe>; - filters: Array; - translations: Array; - productVariants: ProductVariantList; - customFields?: Maybe; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + languageCode?: Maybe; + name: Scalars['String']; + slug: Scalars['String']; + breadcrumbs: Array; + position: Scalars['Int']; + description: Scalars['String']; + featuredAsset?: Maybe; + assets: Array; + parent?: Maybe; + children?: Maybe>; + filters: Array; + translations: Array; + productVariants: ProductVariantList; + customFields?: Maybe; }; + export type CollectionProductVariantsArgs = { - options?: Maybe; + options?: Maybe; }; export type CollectionBreadcrumb = { - id: Scalars['ID']; - name: Scalars['String']; - slug: Scalars['String']; + id: Scalars['ID']; + name: Scalars['String']; + slug: Scalars['String']; }; export type CollectionTranslation = { - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - languageCode: LanguageCode; - name: Scalars['String']; - slug: Scalars['String']; - description: Scalars['String']; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + languageCode: LanguageCode; + name: Scalars['String']; + slug: Scalars['String']; + description: Scalars['String']; }; export type CollectionList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type ProductVariantList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type Country = Node & { - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - languageCode: LanguageCode; - code: Scalars['String']; - name: Scalars['String']; - enabled: Scalars['Boolean']; - translations: Array; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + languageCode: LanguageCode; + code: Scalars['String']; + name: Scalars['String']; + enabled: Scalars['Boolean']; + translations: Array; }; export type CountryTranslation = { - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - languageCode: LanguageCode; - name: Scalars['String']; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + languageCode: LanguageCode; + name: Scalars['String']; }; export type CountryList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type CustomerGroup = Node & { - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - name: Scalars['String']; - customers: CustomerList; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + name: Scalars['String']; + customers: CustomerList; }; + export type CustomerGroupCustomersArgs = { - options?: Maybe; + options?: Maybe; }; export type Customer = Node & { - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - title?: Maybe; - firstName: Scalars['String']; - lastName: Scalars['String']; - phoneNumber?: Maybe; - emailAddress: Scalars['String']; - addresses?: Maybe>; - orders: OrderList; - user?: Maybe; - customFields?: Maybe; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + title?: Maybe; + firstName: Scalars['String']; + lastName: Scalars['String']; + phoneNumber?: Maybe; + emailAddress: Scalars['String']; + addresses?: Maybe>; + orders: OrderList; + user?: Maybe; + customFields?: Maybe; }; + export type CustomerOrdersArgs = { - options?: Maybe; + options?: Maybe; }; export type CustomerList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type FacetValue = Node & { - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - languageCode: LanguageCode; - facet: Facet; - name: Scalars['String']; - code: Scalars['String']; - translations: Array; - customFields?: Maybe; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + languageCode: LanguageCode; + facet: Facet; + name: Scalars['String']; + code: Scalars['String']; + translations: Array; + customFields?: Maybe; }; export type FacetValueTranslation = { - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - languageCode: LanguageCode; - name: Scalars['String']; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + languageCode: LanguageCode; + name: Scalars['String']; }; export type Facet = Node & { - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - languageCode: LanguageCode; - name: Scalars['String']; - code: Scalars['String']; - values: Array; - translations: Array; - customFields?: Maybe; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + languageCode: LanguageCode; + name: Scalars['String']; + code: Scalars['String']; + values: Array; + translations: Array; + customFields?: Maybe; }; export type FacetTranslation = { - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - languageCode: LanguageCode; - name: Scalars['String']; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + languageCode: LanguageCode; + name: Scalars['String']; }; export type FacetList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type GlobalSettings = { - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - availableLanguages: Array; - trackInventory: Scalars['Boolean']; - serverConfig: ServerConfig; - customFields?: Maybe; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + availableLanguages: Array; + trackInventory: Scalars['Boolean']; + serverConfig: ServerConfig; + customFields?: Maybe; }; export type OrderProcessState = { - name: Scalars['String']; - to: Array; + name: Scalars['String']; + to: Array; }; export type ServerConfig = { - orderProcess: Array; - permittedAssetTypes: Array; - customFieldConfig: CustomFields; + orderProcess: Array; + permittedAssetTypes: Array; + customFieldConfig: CustomFields; }; export type HistoryEntry = Node & { - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - isPublic: Scalars['Boolean']; - type: HistoryEntryType; - administrator?: Maybe; - data: Scalars['JSON']; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + isPublic: Scalars['Boolean']; + type: HistoryEntryType; + administrator?: Maybe; + data: Scalars['JSON']; }; export enum HistoryEntryType { - CUSTOMER_REGISTERED = 'CUSTOMER_REGISTERED', - CUSTOMER_VERIFIED = 'CUSTOMER_VERIFIED', - CUSTOMER_DETAIL_UPDATED = 'CUSTOMER_DETAIL_UPDATED', - CUSTOMER_ADDED_TO_GROUP = 'CUSTOMER_ADDED_TO_GROUP', - CUSTOMER_REMOVED_FROM_GROUP = 'CUSTOMER_REMOVED_FROM_GROUP', - CUSTOMER_ADDRESS_CREATED = 'CUSTOMER_ADDRESS_CREATED', - CUSTOMER_ADDRESS_UPDATED = 'CUSTOMER_ADDRESS_UPDATED', - CUSTOMER_ADDRESS_DELETED = 'CUSTOMER_ADDRESS_DELETED', - CUSTOMER_PASSWORD_UPDATED = 'CUSTOMER_PASSWORD_UPDATED', - CUSTOMER_PASSWORD_RESET_REQUESTED = 'CUSTOMER_PASSWORD_RESET_REQUESTED', - CUSTOMER_PASSWORD_RESET_VERIFIED = 'CUSTOMER_PASSWORD_RESET_VERIFIED', - CUSTOMER_EMAIL_UPDATE_REQUESTED = 'CUSTOMER_EMAIL_UPDATE_REQUESTED', - CUSTOMER_EMAIL_UPDATE_VERIFIED = 'CUSTOMER_EMAIL_UPDATE_VERIFIED', - CUSTOMER_NOTE = 'CUSTOMER_NOTE', - ORDER_STATE_TRANSITION = 'ORDER_STATE_TRANSITION', - ORDER_PAYMENT_TRANSITION = 'ORDER_PAYMENT_TRANSITION', - ORDER_FULFILLMENT = 'ORDER_FULFILLMENT', - ORDER_CANCELLATION = 'ORDER_CANCELLATION', - ORDER_REFUND_TRANSITION = 'ORDER_REFUND_TRANSITION', - ORDER_FULFILLMENT_TRANSITION = 'ORDER_FULFILLMENT_TRANSITION', - ORDER_NOTE = 'ORDER_NOTE', - ORDER_COUPON_APPLIED = 'ORDER_COUPON_APPLIED', - ORDER_COUPON_REMOVED = 'ORDER_COUPON_REMOVED', + CUSTOMER_REGISTERED = 'CUSTOMER_REGISTERED', + CUSTOMER_VERIFIED = 'CUSTOMER_VERIFIED', + CUSTOMER_DETAIL_UPDATED = 'CUSTOMER_DETAIL_UPDATED', + CUSTOMER_ADDED_TO_GROUP = 'CUSTOMER_ADDED_TO_GROUP', + CUSTOMER_REMOVED_FROM_GROUP = 'CUSTOMER_REMOVED_FROM_GROUP', + CUSTOMER_ADDRESS_CREATED = 'CUSTOMER_ADDRESS_CREATED', + CUSTOMER_ADDRESS_UPDATED = 'CUSTOMER_ADDRESS_UPDATED', + CUSTOMER_ADDRESS_DELETED = 'CUSTOMER_ADDRESS_DELETED', + CUSTOMER_PASSWORD_UPDATED = 'CUSTOMER_PASSWORD_UPDATED', + CUSTOMER_PASSWORD_RESET_REQUESTED = 'CUSTOMER_PASSWORD_RESET_REQUESTED', + CUSTOMER_PASSWORD_RESET_VERIFIED = 'CUSTOMER_PASSWORD_RESET_VERIFIED', + CUSTOMER_EMAIL_UPDATE_REQUESTED = 'CUSTOMER_EMAIL_UPDATE_REQUESTED', + CUSTOMER_EMAIL_UPDATE_VERIFIED = 'CUSTOMER_EMAIL_UPDATE_VERIFIED', + CUSTOMER_NOTE = 'CUSTOMER_NOTE', + ORDER_STATE_TRANSITION = 'ORDER_STATE_TRANSITION', + ORDER_PAYMENT_TRANSITION = 'ORDER_PAYMENT_TRANSITION', + ORDER_FULFILLMENT = 'ORDER_FULFILLMENT', + ORDER_CANCELLATION = 'ORDER_CANCELLATION', + ORDER_REFUND_TRANSITION = 'ORDER_REFUND_TRANSITION', + ORDER_FULFILLMENT_TRANSITION = 'ORDER_FULFILLMENT_TRANSITION', + ORDER_NOTE = 'ORDER_NOTE', + ORDER_COUPON_APPLIED = 'ORDER_COUPON_APPLIED', + ORDER_COUPON_REMOVED = 'ORDER_COUPON_REMOVED' } export type HistoryEntryList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type ImportInfo = { - errors?: Maybe>; - processed: Scalars['Int']; - imported: Scalars['Int']; + errors?: Maybe>; + processed: Scalars['Int']; + imported: Scalars['Int']; }; export type Order = Node & { - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - /** A unique code for the Order */ - code: Scalars['String']; - state: Scalars['String']; - /** An order is active as long as the payment process has not been completed */ - active: Scalars['Boolean']; - customer?: Maybe; - shippingAddress?: Maybe; - billingAddress?: Maybe; - lines: Array; - /** Order-level adjustments to the order total, such as discounts from promotions */ - adjustments: Array; - couponCodes: Array; - /** Promotions applied to the order. Only gets populated after the payment process has completed. */ - promotions: Array; - payments?: Maybe>; - fulfillments?: Maybe>; - totalQuantity: Scalars['Int']; - subTotalBeforeTax: Scalars['Int']; - /** The subTotal is the total of the OrderLines, before order-level promotions and shipping has been applied. */ - subTotal: Scalars['Int']; - currencyCode: CurrencyCode; - shipping: Scalars['Int']; - shippingWithTax: Scalars['Int']; - shippingMethod?: Maybe; - totalBeforeTax: Scalars['Int']; - total: Scalars['Int']; - history: HistoryEntryList; - customFields?: Maybe; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + /** A unique code for the Order */ + code: Scalars['String']; + state: Scalars['String']; + /** An order is active as long as the payment process has not been completed */ + active: Scalars['Boolean']; + customer?: Maybe; + shippingAddress?: Maybe; + billingAddress?: Maybe; + lines: Array; + /** Order-level adjustments to the order total, such as discounts from promotions */ + adjustments: Array; + couponCodes: Array; + /** Promotions applied to the order. Only gets populated after the payment process has completed. */ + promotions: Array; + payments?: Maybe>; + fulfillments?: Maybe>; + totalQuantity: Scalars['Int']; + subTotalBeforeTax: Scalars['Int']; + /** The subTotal is the total of the OrderLines, before order-level promotions and shipping has been applied. */ + subTotal: Scalars['Int']; + currencyCode: CurrencyCode; + shipping: Scalars['Int']; + shippingWithTax: Scalars['Int']; + shippingMethod?: Maybe; + totalBeforeTax: Scalars['Int']; + total: Scalars['Int']; + history: HistoryEntryList; + customFields?: Maybe; }; + export type OrderHistoryArgs = { - options?: Maybe; + options?: Maybe; }; export type OrderAddress = { - fullName?: Maybe; - company?: Maybe; - streetLine1?: Maybe; - streetLine2?: Maybe; - city?: Maybe; - province?: Maybe; - postalCode?: Maybe; - country?: Maybe; - countryCode?: Maybe; - phoneNumber?: Maybe; + fullName?: Maybe; + company?: Maybe; + streetLine1?: Maybe; + streetLine2?: Maybe; + city?: Maybe; + province?: Maybe; + postalCode?: Maybe; + country?: Maybe; + countryCode?: Maybe; + phoneNumber?: Maybe; }; export type OrderList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type ShippingMethodQuote = { - id: Scalars['ID']; - price: Scalars['Int']; - priceWithTax: Scalars['Int']; - description: Scalars['String']; - metadata?: Maybe; + id: Scalars['ID']; + price: Scalars['Int']; + priceWithTax: Scalars['Int']; + description: Scalars['String']; + metadata?: Maybe; }; export type OrderItem = Node & { - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - cancelled: Scalars['Boolean']; - unitPrice: Scalars['Int']; - unitPriceWithTax: Scalars['Int']; - unitPriceIncludesTax: Scalars['Boolean']; - taxRate: Scalars['Float']; - adjustments: Array; - fulfillment?: Maybe; - refundId?: Maybe; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + cancelled: Scalars['Boolean']; + unitPrice: Scalars['Int']; + unitPriceWithTax: Scalars['Int']; + unitPriceIncludesTax: Scalars['Boolean']; + taxRate: Scalars['Float']; + adjustments: Array; + fulfillment?: Maybe; + refundId?: Maybe; }; export type OrderLine = Node & { - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - productVariant: ProductVariant; - featuredAsset?: Maybe; - unitPrice: Scalars['Int']; - unitPriceWithTax: Scalars['Int']; - quantity: Scalars['Int']; - items: Array; - totalPrice: Scalars['Int']; - adjustments: Array; - order: Order; - customFields?: Maybe; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + productVariant: ProductVariant; + featuredAsset?: Maybe; + unitPrice: Scalars['Int']; + unitPriceWithTax: Scalars['Int']; + quantity: Scalars['Int']; + items: Array; + totalPrice: Scalars['Int']; + adjustments: Array; + order: Order; + customFields?: Maybe; }; export type Payment = Node & { - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - method: Scalars['String']; - amount: Scalars['Int']; - state: Scalars['String']; - transactionId?: Maybe; - errorMessage?: Maybe; - refunds: Array; - metadata?: Maybe; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + method: Scalars['String']; + amount: Scalars['Int']; + state: Scalars['String']; + transactionId?: Maybe; + errorMessage?: Maybe; + refunds: Array; + metadata?: Maybe; }; export type Refund = Node & { - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - items: Scalars['Int']; - shipping: Scalars['Int']; - adjustment: Scalars['Int']; - total: Scalars['Int']; - method?: Maybe; - state: Scalars['String']; - transactionId?: Maybe; - reason?: Maybe; - orderItems: Array; - paymentId: Scalars['ID']; - metadata?: Maybe; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + items: Scalars['Int']; + shipping: Scalars['Int']; + adjustment: Scalars['Int']; + total: Scalars['Int']; + method?: Maybe; + state: Scalars['String']; + transactionId?: Maybe; + reason?: Maybe; + orderItems: Array; + paymentId: Scalars['ID']; + metadata?: Maybe; }; export type Fulfillment = Node & { - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - orderItems: Array; - state: Scalars['String']; - method: Scalars['String']; - trackingCode?: Maybe; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + orderItems: Array; + state: Scalars['String']; + method: Scalars['String']; + trackingCode?: Maybe; }; export type PaymentMethod = Node & { - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - code: Scalars['String']; - enabled: Scalars['Boolean']; - configArgs: Array; - definition: ConfigurableOperationDefinition; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + code: Scalars['String']; + enabled: Scalars['Boolean']; + configArgs: Array; + definition: ConfigurableOperationDefinition; }; export type ProductOptionGroup = Node & { - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - languageCode: LanguageCode; - code: Scalars['String']; - name: Scalars['String']; - options: Array; - translations: Array; - customFields?: Maybe; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + languageCode: LanguageCode; + code: Scalars['String']; + name: Scalars['String']; + options: Array; + translations: Array; + customFields?: Maybe; }; export type ProductOptionGroupTranslation = { - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - languageCode: LanguageCode; - name: Scalars['String']; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + languageCode: LanguageCode; + name: Scalars['String']; }; export type ProductOption = Node & { - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - languageCode: LanguageCode; - code: Scalars['String']; - name: Scalars['String']; - groupId: Scalars['ID']; - group: ProductOptionGroup; - translations: Array; - customFields?: Maybe; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + languageCode: LanguageCode; + code: Scalars['String']; + name: Scalars['String']; + groupId: Scalars['ID']; + group: ProductOptionGroup; + translations: Array; + customFields?: Maybe; }; export type ProductOptionTranslation = { - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - languageCode: LanguageCode; - name: Scalars['String']; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + languageCode: LanguageCode; + name: Scalars['String']; }; export type SearchReindexResponse = { - success: Scalars['Boolean']; + success: Scalars['Boolean']; }; export type SearchResponse = { - items: Array; - totalItems: Scalars['Int']; - facetValues: Array; + items: Array; + totalItems: Scalars['Int']; + facetValues: Array; }; /** @@ -2076,39 +2079,39 @@ export type SearchResponse = { * by the search, and in what quantity. */ export type FacetValueResult = { - facetValue: FacetValue; - count: Scalars['Int']; + facetValue: FacetValue; + count: Scalars['Int']; }; export type SearchResultAsset = { - id: Scalars['ID']; - preview: Scalars['String']; - focalPoint?: Maybe; + id: Scalars['ID']; + preview: Scalars['String']; + focalPoint?: Maybe; }; export type SearchResult = { - sku: Scalars['String']; - slug: Scalars['String']; - productId: Scalars['ID']; - productName: Scalars['String']; - /** @deprecated Use `productAsset.preview` instead */ - productPreview: Scalars['String']; - productAsset?: Maybe; - productVariantId: Scalars['ID']; - productVariantName: Scalars['String']; - /** @deprecated Use `productVariantAsset.preview` instead */ - productVariantPreview: Scalars['String']; - productVariantAsset?: Maybe; - price: SearchResultPrice; - priceWithTax: SearchResultPrice; - currencyCode: CurrencyCode; - description: Scalars['String']; - facetIds: Array; - facetValueIds: Array; - /** An array of ids of the Collections in which this result appears */ - collectionIds: Array; - /** A relevence score for the result. Differs between database implementations */ - score: Scalars['Float']; + sku: Scalars['String']; + slug: Scalars['String']; + productId: Scalars['ID']; + productName: Scalars['String']; + /** @deprecated Use `productAsset.preview` instead */ + productPreview: Scalars['String']; + productAsset?: Maybe; + productVariantId: Scalars['ID']; + productVariantName: Scalars['String']; + /** @deprecated Use `productVariantAsset.preview` instead */ + productVariantPreview: Scalars['String']; + productVariantAsset?: Maybe; + price: SearchResultPrice; + priceWithTax: SearchResultPrice; + currencyCode: CurrencyCode; + description: Scalars['String']; + facetIds: Array; + facetValueIds: Array; + /** An array of ids of the Collections in which this result appears */ + collectionIds: Array; + /** A relevence score for the result. Differs between database implementations */ + score: Scalars['Float']; }; /** The price of a search result product, either as a range or as a single price */ @@ -2116,1291 +2119,1033 @@ export type SearchResultPrice = PriceRange | SinglePrice; /** The price value where the result has a single price */ export type SinglePrice = { - value: Scalars['Int']; + value: Scalars['Int']; }; /** The price range where the result has more than one price */ export type PriceRange = { - min: Scalars['Int']; - max: Scalars['Int']; + min: Scalars['Int']; + max: Scalars['Int']; }; export type Product = Node & { - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - languageCode: LanguageCode; - name: Scalars['String']; - slug: Scalars['String']; - description: Scalars['String']; - featuredAsset?: Maybe; - assets: Array; - variants: Array; - optionGroups: Array; - facetValues: Array; - translations: Array; - collections: Array; - customFields?: Maybe; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + languageCode: LanguageCode; + name: Scalars['String']; + slug: Scalars['String']; + description: Scalars['String']; + featuredAsset?: Maybe; + assets: Array; + variants: Array; + optionGroups: Array; + facetValues: Array; + translations: Array; + collections: Array; + customFields?: Maybe; }; export type ProductTranslation = { - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - languageCode: LanguageCode; - name: Scalars['String']; - slug: Scalars['String']; - description: Scalars['String']; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + languageCode: LanguageCode; + name: Scalars['String']; + slug: Scalars['String']; + description: Scalars['String']; }; export type ProductList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type ProductVariant = Node & { - id: Scalars['ID']; - product: Product; - productId: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - languageCode: LanguageCode; - sku: Scalars['String']; - name: Scalars['String']; - featuredAsset?: Maybe; - assets: Array; - price: Scalars['Int']; - currencyCode: CurrencyCode; - priceIncludesTax: Scalars['Boolean']; - priceWithTax: Scalars['Int']; - taxRateApplied: TaxRate; - taxCategory: TaxCategory; - options: Array; - facetValues: Array; - translations: Array; - customFields?: Maybe; + id: Scalars['ID']; + product: Product; + productId: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + languageCode: LanguageCode; + sku: Scalars['String']; + name: Scalars['String']; + featuredAsset?: Maybe; + assets: Array; + price: Scalars['Int']; + currencyCode: CurrencyCode; + priceIncludesTax: Scalars['Boolean']; + priceWithTax: Scalars['Int']; + taxRateApplied: TaxRate; + taxCategory: TaxCategory; + options: Array; + facetValues: Array; + translations: Array; + customFields?: Maybe; }; export type ProductVariantTranslation = { - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - languageCode: LanguageCode; - name: Scalars['String']; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + languageCode: LanguageCode; + name: Scalars['String']; }; export type Promotion = Node & { - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - startsAt?: Maybe; - endsAt?: Maybe; - couponCode?: Maybe; - perCustomerUsageLimit?: Maybe; - name: Scalars['String']; - enabled: Scalars['Boolean']; - conditions: Array; - actions: Array; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + startsAt?: Maybe; + endsAt?: Maybe; + couponCode?: Maybe; + perCustomerUsageLimit?: Maybe; + name: Scalars['String']; + enabled: Scalars['Boolean']; + conditions: Array; + actions: Array; }; export type PromotionList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type Role = Node & { - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - code: Scalars['String']; - description: Scalars['String']; - permissions: Array; - channels: Array; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + code: Scalars['String']; + description: Scalars['String']; + permissions: Array; + channels: Array; }; export type RoleList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type ShippingMethod = Node & { - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - code: Scalars['String']; - description: Scalars['String']; - checker: ConfigurableOperation; - calculator: ConfigurableOperation; - customFields?: Maybe; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + code: Scalars['String']; + description: Scalars['String']; + checker: ConfigurableOperation; + calculator: ConfigurableOperation; + customFields?: Maybe; }; export type ShippingMethodList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export enum StockMovementType { - ADJUSTMENT = 'ADJUSTMENT', - SALE = 'SALE', - CANCELLATION = 'CANCELLATION', - RETURN = 'RETURN', + ADJUSTMENT = 'ADJUSTMENT', + SALE = 'SALE', + CANCELLATION = 'CANCELLATION', + RETURN = 'RETURN' } export type StockMovement = { - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - productVariant: ProductVariant; - type: StockMovementType; - quantity: Scalars['Int']; -}; - -export type StockAdjustment = Node & - StockMovement & { - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - productVariant: ProductVariant; - type: StockMovementType; - quantity: Scalars['Int']; - }; - -export type Sale = Node & - StockMovement & { - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - productVariant: ProductVariant; - type: StockMovementType; - quantity: Scalars['Int']; - orderLine: OrderLine; - }; - -export type Cancellation = Node & - StockMovement & { - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - productVariant: ProductVariant; - type: StockMovementType; - quantity: Scalars['Int']; - orderLine: OrderLine; - }; - -export type Return = Node & - StockMovement & { - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - productVariant: ProductVariant; - type: StockMovementType; - quantity: Scalars['Int']; - orderItem: OrderItem; - }; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + productVariant: ProductVariant; + type: StockMovementType; + quantity: Scalars['Int']; +}; + +export type StockAdjustment = Node & StockMovement & { + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + productVariant: ProductVariant; + type: StockMovementType; + quantity: Scalars['Int']; +}; + +export type Sale = Node & StockMovement & { + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + productVariant: ProductVariant; + type: StockMovementType; + quantity: Scalars['Int']; + orderLine: OrderLine; +}; + +export type Cancellation = Node & StockMovement & { + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + productVariant: ProductVariant; + type: StockMovementType; + quantity: Scalars['Int']; + orderLine: OrderLine; +}; + +export type Return = Node & StockMovement & { + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + productVariant: ProductVariant; + type: StockMovementType; + quantity: Scalars['Int']; + orderItem: OrderItem; +}; export type StockMovementItem = StockAdjustment | Sale | Cancellation | Return; export type StockMovementList = { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type TaxCategory = Node & { - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - name: Scalars['String']; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + name: Scalars['String']; }; export type TaxRate = Node & { - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - name: Scalars['String']; - enabled: Scalars['Boolean']; - value: Scalars['Float']; - category: TaxCategory; - zone: Zone; - customerGroup?: Maybe; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + name: Scalars['String']; + enabled: Scalars['Boolean']; + value: Scalars['Float']; + category: TaxCategory; + zone: Zone; + customerGroup?: Maybe; }; export type TaxRateList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type User = Node & { - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - identifier: Scalars['String']; - verified: Scalars['Boolean']; - roles: Array; - lastLogin?: Maybe; - authenticationMethods: Array; - customFields?: Maybe; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + identifier: Scalars['String']; + verified: Scalars['Boolean']; + roles: Array; + lastLogin?: Maybe; + authenticationMethods: Array; + customFields?: Maybe; }; export type AuthenticationMethod = Node & { - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - strategy: Scalars['String']; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + strategy: Scalars['String']; }; export type Zone = Node & { - id: Scalars['ID']; - createdAt: Scalars['DateTime']; - updatedAt: Scalars['DateTime']; - name: Scalars['String']; - members: Array; + id: Scalars['ID']; + createdAt: Scalars['DateTime']; + updatedAt: Scalars['DateTime']; + name: Scalars['String']; + members: Array; }; export type CollectionListOptions = { - skip?: Maybe; - take?: Maybe; - sort?: Maybe; - filter?: Maybe; + skip?: Maybe; + take?: Maybe; + sort?: Maybe; + filter?: Maybe; }; export type ProductListOptions = { - skip?: Maybe; - take?: Maybe; - sort?: Maybe; - filter?: Maybe; + skip?: Maybe; + take?: Maybe; + sort?: Maybe; + filter?: Maybe; }; export type ProductVariantListOptions = { - skip?: Maybe; - take?: Maybe; - sort?: Maybe; - filter?: Maybe; + skip?: Maybe; + take?: Maybe; + sort?: Maybe; + filter?: Maybe; }; export type CustomerListOptions = { - skip?: Maybe; - take?: Maybe; - sort?: Maybe; - filter?: Maybe; + skip?: Maybe; + take?: Maybe; + sort?: Maybe; + filter?: Maybe; }; export type OrderListOptions = { - skip?: Maybe; - take?: Maybe; - sort?: Maybe; - filter?: Maybe; + skip?: Maybe; + take?: Maybe; + sort?: Maybe; + filter?: Maybe; }; export type HistoryEntryListOptions = { - skip?: Maybe; - take?: Maybe; - sort?: Maybe; - filter?: Maybe; + skip?: Maybe; + take?: Maybe; + sort?: Maybe; + filter?: Maybe; }; export type CollectionFilterParameter = { - createdAt?: Maybe; - updatedAt?: Maybe; - languageCode?: Maybe; - name?: Maybe; - slug?: Maybe; - position?: Maybe; - description?: Maybe; + createdAt?: Maybe; + updatedAt?: Maybe; + languageCode?: Maybe; + name?: Maybe; + slug?: Maybe; + position?: Maybe; + description?: Maybe; }; export type CollectionSortParameter = { - id?: Maybe; - createdAt?: Maybe; - updatedAt?: Maybe; - name?: Maybe; - slug?: Maybe; - position?: Maybe; - description?: Maybe; + id?: Maybe; + createdAt?: Maybe; + updatedAt?: Maybe; + name?: Maybe; + slug?: Maybe; + position?: Maybe; + description?: Maybe; }; export type ProductFilterParameter = { - createdAt?: Maybe; - updatedAt?: Maybe; - languageCode?: Maybe; - name?: Maybe; - slug?: Maybe; - description?: Maybe; + createdAt?: Maybe; + updatedAt?: Maybe; + languageCode?: Maybe; + name?: Maybe; + slug?: Maybe; + description?: Maybe; }; export type ProductSortParameter = { - id?: Maybe; - createdAt?: Maybe; - updatedAt?: Maybe; - name?: Maybe; - slug?: Maybe; - description?: Maybe; + id?: Maybe; + createdAt?: Maybe; + updatedAt?: Maybe; + name?: Maybe; + slug?: Maybe; + description?: Maybe; }; export type ProductVariantFilterParameter = { - createdAt?: Maybe; - updatedAt?: Maybe; - languageCode?: Maybe; - sku?: Maybe; - name?: Maybe; - price?: Maybe; - currencyCode?: Maybe; - priceIncludesTax?: Maybe; - priceWithTax?: Maybe; + createdAt?: Maybe; + updatedAt?: Maybe; + languageCode?: Maybe; + sku?: Maybe; + name?: Maybe; + price?: Maybe; + currencyCode?: Maybe; + priceIncludesTax?: Maybe; + priceWithTax?: Maybe; }; export type ProductVariantSortParameter = { - id?: Maybe; - productId?: Maybe; - createdAt?: Maybe; - updatedAt?: Maybe; - sku?: Maybe; - name?: Maybe; - price?: Maybe; - priceWithTax?: Maybe; + id?: Maybe; + productId?: Maybe; + createdAt?: Maybe; + updatedAt?: Maybe; + sku?: Maybe; + name?: Maybe; + price?: Maybe; + priceWithTax?: Maybe; }; export type CustomerFilterParameter = { - createdAt?: Maybe; - updatedAt?: Maybe; - title?: Maybe; - firstName?: Maybe; - lastName?: Maybe; - phoneNumber?: Maybe; - emailAddress?: Maybe; + createdAt?: Maybe; + updatedAt?: Maybe; + title?: Maybe; + firstName?: Maybe; + lastName?: Maybe; + phoneNumber?: Maybe; + emailAddress?: Maybe; }; export type CustomerSortParameter = { - id?: Maybe; - createdAt?: Maybe; - updatedAt?: Maybe; - title?: Maybe; - firstName?: Maybe; - lastName?: Maybe; - phoneNumber?: Maybe; - emailAddress?: Maybe; + id?: Maybe; + createdAt?: Maybe; + updatedAt?: Maybe; + title?: Maybe; + firstName?: Maybe; + lastName?: Maybe; + phoneNumber?: Maybe; + emailAddress?: Maybe; }; export type OrderFilterParameter = { - createdAt?: Maybe; - updatedAt?: Maybe; - code?: Maybe; - state?: Maybe; - active?: Maybe; - totalQuantity?: Maybe; - subTotalBeforeTax?: Maybe; - subTotal?: Maybe; - currencyCode?: Maybe; - shipping?: Maybe; - shippingWithTax?: Maybe; - totalBeforeTax?: Maybe; - total?: Maybe; + createdAt?: Maybe; + updatedAt?: Maybe; + code?: Maybe; + state?: Maybe; + active?: Maybe; + totalQuantity?: Maybe; + subTotalBeforeTax?: Maybe; + subTotal?: Maybe; + currencyCode?: Maybe; + shipping?: Maybe; + shippingWithTax?: Maybe; + totalBeforeTax?: Maybe; + total?: Maybe; }; export type OrderSortParameter = { - id?: Maybe; - createdAt?: Maybe; - updatedAt?: Maybe; - code?: Maybe; - state?: Maybe; - totalQuantity?: Maybe; - subTotalBeforeTax?: Maybe; - subTotal?: Maybe; - shipping?: Maybe; - shippingWithTax?: Maybe; - totalBeforeTax?: Maybe; - total?: Maybe; + id?: Maybe; + createdAt?: Maybe; + updatedAt?: Maybe; + code?: Maybe; + state?: Maybe; + totalQuantity?: Maybe; + subTotalBeforeTax?: Maybe; + subTotal?: Maybe; + shipping?: Maybe; + shippingWithTax?: Maybe; + totalBeforeTax?: Maybe; + total?: Maybe; }; export type HistoryEntryFilterParameter = { - createdAt?: Maybe; - updatedAt?: Maybe; - isPublic?: Maybe; - type?: Maybe; + createdAt?: Maybe; + updatedAt?: Maybe; + isPublic?: Maybe; + type?: Maybe; }; export type HistoryEntrySortParameter = { - id?: Maybe; - createdAt?: Maybe; - updatedAt?: Maybe; + id?: Maybe; + createdAt?: Maybe; + updatedAt?: Maybe; }; export type UpdateOrderInput = { - customFields?: Maybe; + customFields?: Maybe; }; export type CustomFields = { - Address: Array; - Collection: Array; - Customer: Array; - Facet: Array; - FacetValue: Array; - GlobalSettings: Array; - Order: Array; - OrderLine: Array; - Product: Array; - ProductOption: Array; - ProductOptionGroup: Array; - ProductVariant: Array; - User: Array; - ShippingMethod: Array; + Address: Array; + Collection: Array; + Customer: Array; + Facet: Array; + FacetValue: Array; + GlobalSettings: Array; + Order: Array; + OrderLine: Array; + Product: Array; + ProductOption: Array; + ProductOptionGroup: Array; + ProductVariant: Array; + User: Array; + ShippingMethod: Array; }; export type AuthenticationInput = { - native?: Maybe; + native?: Maybe; }; export type NativeAuthInput = { - username: Scalars['String']; - password: Scalars['String']; -}; - -export type TestOrderFragmentFragment = Pick< - Order, - 'id' | 'code' | 'state' | 'active' | 'total' | 'couponCodes' | 'shipping' -> & { - adjustments: Array>; - lines: Array< - Pick & { - productVariant: Pick; - adjustments: Array>; - } - >; - shippingMethod?: Maybe>; - customer?: Maybe & { user?: Maybe> }>; - history: { items: Array> }; -}; - -export type UpdatedOrderFragment = Pick & { - lines: Array< - Pick & { - productVariant: Pick; - adjustments: Array>; - } - >; - adjustments: Array>; -}; + username: Scalars['String']; + password: Scalars['String']; +}; + +export type TestOrderFragmentFragment = ( + Pick + & { adjustments: Array>, lines: Array<( + Pick + & { productVariant: Pick, adjustments: Array> } + )>, shippingMethod?: Maybe>, customer?: Maybe<( + Pick + & { user?: Maybe> } + )>, history: { items: Array> } } +); + +export type UpdatedOrderFragment = ( + Pick + & { lines: Array<( + Pick + & { productVariant: Pick, adjustments: Array> } + )>, adjustments: Array> } +); export type AddItemToOrderMutationVariables = Exact<{ - productVariantId: Scalars['ID']; - quantity: Scalars['Int']; + productVariantId: Scalars['ID']; + quantity: Scalars['Int']; }>; -export type AddItemToOrderMutation = { - addItemToOrder: - | UpdatedOrderFragment - | Pick - | Pick - | Pick; -}; + +export type AddItemToOrderMutation = { addItemToOrder: UpdatedOrderFragment | Pick | Pick | Pick }; export type SearchProductsShopQueryVariables = Exact<{ - input: SearchInput; + input: SearchInput; }>; -export type SearchProductsShopQuery = { - search: Pick & { - items: Array< - Pick< - SearchResult, - | 'productId' - | 'productName' - | 'productPreview' - | 'productVariantId' - | 'productVariantName' - | 'productVariantPreview' - | 'sku' - | 'collectionIds' - > & { price: Pick | Pick } - >; - }; -}; + +export type SearchProductsShopQuery = { search: ( + Pick + & { items: Array<( + Pick + & { price: Pick | Pick } + )> } + ) }; export type RegisterMutationVariables = Exact<{ - input: RegisterCustomerInput; + input: RegisterCustomerInput; }>; -export type RegisterMutation = { - registerCustomerAccount: - | Pick - | Pick - | Pick; -}; -export type CurrentUserShopFragment = Pick & { - channels: Array>; -}; +export type RegisterMutation = { registerCustomerAccount: Pick | Pick | Pick }; + +export type CurrentUserShopFragment = ( + Pick + & { channels: Array> } +); export type VerifyMutationVariables = Exact<{ - password?: Maybe; - token: Scalars['String']; + password?: Maybe; + token: Scalars['String']; }>; -export type VerifyMutation = { - verifyCustomerAccount: - | CurrentUserShopFragment - | Pick - | Pick - | Pick - | Pick - | Pick; -}; + +export type VerifyMutation = { verifyCustomerAccount: CurrentUserShopFragment | Pick | Pick | Pick | Pick | Pick }; export type RefreshTokenMutationVariables = Exact<{ - emailAddress: Scalars['String']; + emailAddress: Scalars['String']; }>; -export type RefreshTokenMutation = { - refreshCustomerVerification: - | Pick - | Pick; -}; + +export type RefreshTokenMutation = { refreshCustomerVerification: Pick | Pick }; export type RequestPasswordResetMutationVariables = Exact<{ - identifier: Scalars['String']; + identifier: Scalars['String']; }>; -export type RequestPasswordResetMutation = { - requestPasswordReset?: Maybe< - Pick | Pick - >; -}; + +export type RequestPasswordResetMutation = { requestPasswordReset?: Maybe | Pick> }; export type ResetPasswordMutationVariables = Exact<{ - token: Scalars['String']; - password: Scalars['String']; + token: Scalars['String']; + password: Scalars['String']; }>; -export type ResetPasswordMutation = { - resetPassword: - | CurrentUserShopFragment - | Pick - | Pick - | Pick; -}; + +export type ResetPasswordMutation = { resetPassword: CurrentUserShopFragment | Pick | Pick | Pick }; export type RequestUpdateEmailAddressMutationVariables = Exact<{ - password: Scalars['String']; - newEmailAddress: Scalars['String']; + password: Scalars['String']; + newEmailAddress: Scalars['String']; }>; -export type RequestUpdateEmailAddressMutation = { - requestUpdateCustomerEmailAddress: - | Pick - | Pick - | Pick - | Pick; -}; + +export type RequestUpdateEmailAddressMutation = { requestUpdateCustomerEmailAddress: Pick | Pick | Pick | Pick }; export type UpdateEmailAddressMutationVariables = Exact<{ - token: Scalars['String']; + token: Scalars['String']; }>; -export type UpdateEmailAddressMutation = { - updateCustomerEmailAddress: - | Pick - | Pick - | Pick - | Pick; -}; -export type GetActiveCustomerQueryVariables = Exact<{ [key: string]: never }>; +export type UpdateEmailAddressMutation = { updateCustomerEmailAddress: Pick | Pick | Pick | Pick }; + +export type GetActiveCustomerQueryVariables = Exact<{ [key: string]: never; }>; + export type GetActiveCustomerQuery = { activeCustomer?: Maybe> }; export type CreateAddressShopMutationVariables = Exact<{ - input: CreateAddressInput; + input: CreateAddressInput; }>; -export type CreateAddressShopMutation = { - createCustomerAddress: Pick & { country: Pick }; -}; + +export type CreateAddressShopMutation = { createCustomerAddress: ( + Pick + & { country: Pick } + ) }; export type UpdateAddressShopMutationVariables = Exact<{ - input: UpdateAddressInput; + input: UpdateAddressInput; }>; -export type UpdateAddressShopMutation = { - updateCustomerAddress: Pick & { country: Pick }; -}; + +export type UpdateAddressShopMutation = { updateCustomerAddress: ( + Pick + & { country: Pick } + ) }; export type DeleteAddressShopMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; + export type DeleteAddressShopMutation = { deleteCustomerAddress: Pick }; export type UpdateCustomerMutationVariables = Exact<{ - input: UpdateCustomerInput; + input: UpdateCustomerInput; }>; + export type UpdateCustomerMutation = { updateCustomer: Pick }; export type UpdatePasswordMutationVariables = Exact<{ - old: Scalars['String']; - new: Scalars['String']; + old: Scalars['String']; + new: Scalars['String']; }>; -export type UpdatePasswordMutation = { - updateCustomerPassword: - | Pick - | Pick - | Pick; -}; -export type GetActiveOrderQueryVariables = Exact<{ [key: string]: never }>; +export type UpdatePasswordMutation = { updateCustomerPassword: Pick | Pick | Pick }; + +export type GetActiveOrderQueryVariables = Exact<{ [key: string]: never; }>; + export type GetActiveOrderQuery = { activeOrder?: Maybe }; export type AdjustItemQuantityMutationVariables = Exact<{ - orderLineId: Scalars['ID']; - quantity: Scalars['Int']; + orderLineId: Scalars['ID']; + quantity: Scalars['Int']; }>; -export type AdjustItemQuantityMutation = { - adjustOrderLine: - | TestOrderFragmentFragment - | Pick - | Pick - | Pick; -}; + +export type AdjustItemQuantityMutation = { adjustOrderLine: TestOrderFragmentFragment | Pick | Pick | Pick }; export type RemoveItemFromOrderMutationVariables = Exact<{ - orderLineId: Scalars['ID']; + orderLineId: Scalars['ID']; }>; -export type RemoveItemFromOrderMutation = { - removeOrderLine: TestOrderFragmentFragment | Pick; -}; -export type GetShippingMethodsQueryVariables = Exact<{ [key: string]: never }>; +export type RemoveItemFromOrderMutation = { removeOrderLine: TestOrderFragmentFragment | Pick }; + +export type GetShippingMethodsQueryVariables = Exact<{ [key: string]: never; }>; -export type GetShippingMethodsQuery = { - eligibleShippingMethods: Array>; -}; + +export type GetShippingMethodsQuery = { eligibleShippingMethods: Array> }; export type SetShippingMethodMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; -export type SetShippingMethodMutation = { - setOrderShippingMethod: TestOrderFragmentFragment | Pick; -}; -export type ActiveOrderCustomerFragment = Pick & { - customer?: Maybe>; - lines: Array>; -}; +export type SetShippingMethodMutation = { setOrderShippingMethod: TestOrderFragmentFragment | Pick }; + +export type ActiveOrderCustomerFragment = ( + Pick + & { customer?: Maybe>, lines: Array> } +); export type SetCustomerForOrderMutationVariables = Exact<{ - input: CreateCustomerInput; + input: CreateCustomerInput; }>; -export type SetCustomerForOrderMutation = { - setCustomerForOrder?: Maybe< - | ActiveOrderCustomerFragment - | Pick - | Pick - >; -}; + +export type SetCustomerForOrderMutation = { setCustomerForOrder?: Maybe | Pick> }; export type GetOrderByCodeQueryVariables = Exact<{ - code: Scalars['String']; + code: Scalars['String']; }>; + export type GetOrderByCodeQuery = { orderByCode?: Maybe }; export type GetOrderPromotionsByCodeQueryVariables = Exact<{ - code: Scalars['String']; + code: Scalars['String']; }>; -export type GetOrderPromotionsByCodeQuery = { - orderByCode?: Maybe<{ promotions: Array> } & TestOrderFragmentFragment>; -}; -export type GetAvailableCountriesQueryVariables = Exact<{ [key: string]: never }>; +export type GetOrderPromotionsByCodeQuery = { orderByCode?: Maybe<( + { promotions: Array> } + & TestOrderFragmentFragment + )> }; + +export type GetAvailableCountriesQueryVariables = Exact<{ [key: string]: never; }>; + export type GetAvailableCountriesQuery = { availableCountries: Array> }; export type TransitionToStateMutationVariables = Exact<{ - state: Scalars['String']; + state: Scalars['String']; }>; -export type TransitionToStateMutation = { - transitionOrderToState?: Maybe< - | TestOrderFragmentFragment - | Pick< - OrderStateTransitionError, - 'errorCode' | 'message' | 'transitionError' | 'fromState' | 'toState' - > - >; -}; + +export type TransitionToStateMutation = { transitionOrderToState?: Maybe> }; export type SetShippingAddressMutationVariables = Exact<{ - input: CreateAddressInput; + input: CreateAddressInput; }>; -export type SetShippingAddressMutation = { - setOrderShippingAddress?: Maybe<{ - shippingAddress?: Maybe< - Pick< - OrderAddress, - | 'fullName' - | 'company' - | 'streetLine1' - | 'streetLine2' - | 'city' - | 'province' - | 'postalCode' - | 'country' - | 'phoneNumber' - > - >; - }>; -}; + +export type SetShippingAddressMutation = { setOrderShippingAddress?: Maybe<{ shippingAddress?: Maybe> }> }; export type SetBillingAddressMutationVariables = Exact<{ - input: CreateAddressInput; + input: CreateAddressInput; }>; -export type SetBillingAddressMutation = { - setOrderBillingAddress?: Maybe<{ - billingAddress?: Maybe< - Pick< - OrderAddress, - | 'fullName' - | 'company' - | 'streetLine1' - | 'streetLine2' - | 'city' - | 'province' - | 'postalCode' - | 'country' - | 'phoneNumber' - > - >; - }>; -}; - -export type TestOrderWithPaymentsFragment = { - payments?: Maybe< - Array> - >; -} & TestOrderFragmentFragment; - -export type GetActiveOrderWithPaymentsQueryVariables = Exact<{ [key: string]: never }>; + +export type SetBillingAddressMutation = { setOrderBillingAddress?: Maybe<{ billingAddress?: Maybe> }> }; + +export type TestOrderWithPaymentsFragment = ( + { payments?: Maybe>> } + & TestOrderFragmentFragment +); + +export type GetActiveOrderWithPaymentsQueryVariables = Exact<{ [key: string]: never; }>; + export type GetActiveOrderWithPaymentsQuery = { activeOrder?: Maybe }; export type AddPaymentToOrderMutationVariables = Exact<{ - input: PaymentInput; + input: PaymentInput; }>; -export type AddPaymentToOrderMutation = { - addPaymentToOrder?: Maybe< - | TestOrderWithPaymentsFragment - | Pick - | Pick - | Pick - | Pick - >; -}; - -export type GetActiveOrderPaymentsQueryVariables = Exact<{ [key: string]: never }>; - -export type GetActiveOrderPaymentsQuery = { - activeOrder?: Maybe< - Pick & { - payments?: Maybe< - Array< - Pick< - Payment, - 'id' | 'transactionId' | 'method' | 'amount' | 'state' | 'errorMessage' | 'metadata' - > - > - >; - } - >; -}; + +export type AddPaymentToOrderMutation = { addPaymentToOrder?: Maybe | Pick | Pick | Pick> }; + +export type GetActiveOrderPaymentsQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetActiveOrderPaymentsQuery = { activeOrder?: Maybe<( + Pick + & { payments?: Maybe>> } + )> }; export type GetOrderByCodeWithPaymentsQueryVariables = Exact<{ - code: Scalars['String']; + code: Scalars['String']; }>; + export type GetOrderByCodeWithPaymentsQuery = { orderByCode?: Maybe }; -export type GetNextOrderStatesQueryVariables = Exact<{ [key: string]: never }>; +export type GetNextOrderStatesQueryVariables = Exact<{ [key: string]: never; }>; + export type GetNextOrderStatesQuery = Pick; -export type GetCustomerAddressesQueryVariables = Exact<{ [key: string]: never }>; +export type GetCustomerAddressesQueryVariables = Exact<{ [key: string]: never; }>; -export type GetCustomerAddressesQuery = { - activeOrder?: Maybe<{ - customer?: Maybe<{ addresses?: Maybe>> }>; - }>; -}; -export type GetCustomerOrdersQueryVariables = Exact<{ [key: string]: never }>; +export type GetCustomerAddressesQuery = { activeOrder?: Maybe<{ customer?: Maybe<{ addresses?: Maybe>> }> }> }; + +export type GetCustomerOrdersQueryVariables = Exact<{ [key: string]: never; }>; -export type GetCustomerOrdersQuery = { - activeOrder?: Maybe<{ customer?: Maybe<{ orders: { items: Array> } }> }>; -}; + +export type GetCustomerOrdersQuery = { activeOrder?: Maybe<{ customer?: Maybe<{ orders: { items: Array> } }> }> }; export type ApplyCouponCodeMutationVariables = Exact<{ - couponCode: Scalars['String']; + couponCode: Scalars['String']; }>; -export type ApplyCouponCodeMutation = { - applyCouponCode: - | TestOrderFragmentFragment - | Pick - | Pick - | Pick; -}; + +export type ApplyCouponCodeMutation = { applyCouponCode: TestOrderFragmentFragment | Pick | Pick | Pick }; export type RemoveCouponCodeMutationVariables = Exact<{ - couponCode: Scalars['String']; + couponCode: Scalars['String']; }>; + export type RemoveCouponCodeMutation = { removeCouponCode?: Maybe }; -export type RemoveAllOrderLinesMutationVariables = Exact<{ [key: string]: never }>; +export type RemoveAllOrderLinesMutationVariables = Exact<{ [key: string]: never; }>; -export type RemoveAllOrderLinesMutation = { - removeAllOrderLines: TestOrderFragmentFragment | Pick; -}; + +export type RemoveAllOrderLinesMutation = { removeAllOrderLines: TestOrderFragmentFragment | Pick }; type DiscriminateUnion = T extends U ? T : never; export namespace TestOrderFragment { - export type Fragment = TestOrderFragmentFragment; - export type Adjustments = NonNullable[number]>; - export type Lines = NonNullable[number]>; - export type ProductVariant = NonNullable< - NonNullable[number]>['productVariant'] - >; - export type _Adjustments = NonNullable< - NonNullable< - NonNullable[number]>['adjustments'] - >[number] - >; - export type ShippingMethod = NonNullable; - export type Customer = NonNullable; - export type User = NonNullable['user']>; - export type History = NonNullable; - export type Items = NonNullable< - NonNullable['items']>[number] - >; + export type Fragment = TestOrderFragmentFragment; + export type Adjustments = NonNullable<(NonNullable)[number]>; + export type Lines = NonNullable<(NonNullable)[number]>; + export type ProductVariant = (NonNullable)[number]>['productVariant']>); + export type _Adjustments = NonNullable<(NonNullable)[number]>['adjustments']>)[number]>; + export type ShippingMethod = (NonNullable); + export type Customer = (NonNullable); + export type User = (NonNullable<(NonNullable)['user']>); + export type History = (NonNullable); + export type Items = NonNullable<(NonNullable<(NonNullable)['items']>)[number]>; } export namespace UpdatedOrder { - export type Fragment = UpdatedOrderFragment; - export type Lines = NonNullable[number]>; - export type ProductVariant = NonNullable< - NonNullable[number]>['productVariant'] - >; - export type Adjustments = NonNullable< - NonNullable[number]>['adjustments']>[number] - >; - export type _Adjustments = NonNullable[number]>; + export type Fragment = UpdatedOrderFragment; + export type Lines = NonNullable<(NonNullable)[number]>; + export type ProductVariant = (NonNullable)[number]>['productVariant']>); + export type Adjustments = NonNullable<(NonNullable)[number]>['adjustments']>)[number]>; + export type _Adjustments = NonNullable<(NonNullable)[number]>; } export namespace AddItemToOrder { - export type Variables = AddItemToOrderMutationVariables; - export type Mutation = AddItemToOrderMutation; - export type AddItemToOrder = NonNullable; - export type ErrorResultInlineFragment = DiscriminateUnion< - NonNullable, - { __typename?: 'ErrorResult' } - >; + export type Variables = AddItemToOrderMutationVariables; + export type Mutation = AddItemToOrderMutation; + export type AddItemToOrder = (NonNullable); + export type ErrorResultInlineFragment = (DiscriminateUnion<(NonNullable), { __typename?: 'ErrorResult' }>); } export namespace SearchProductsShop { - export type Variables = SearchProductsShopQueryVariables; - export type Query = SearchProductsShopQuery; - export type Search = NonNullable; - export type Items = NonNullable< - NonNullable['items']>[number] - >; - export type Price = NonNullable< - NonNullable['items']>[number]>['price'] - >; - export type SinglePriceInlineFragment = DiscriminateUnion< - NonNullable< - NonNullable['items']>[number]>['price'] - >, - { __typename?: 'SinglePrice' } - >; - export type PriceRangeInlineFragment = DiscriminateUnion< - NonNullable< - NonNullable['items']>[number]>['price'] - >, - { __typename?: 'PriceRange' } - >; + export type Variables = SearchProductsShopQueryVariables; + export type Query = SearchProductsShopQuery; + export type Search = (NonNullable); + export type Items = NonNullable<(NonNullable<(NonNullable)['items']>)[number]>; + export type Price = (NonNullable)['items']>)[number]>['price']>); + export type SinglePriceInlineFragment = (DiscriminateUnion<(NonNullable)['items']>)[number]>['price']>), { __typename?: 'SinglePrice' }>); + export type PriceRangeInlineFragment = (DiscriminateUnion<(NonNullable)['items']>)[number]>['price']>), { __typename?: 'PriceRange' }>); } export namespace Register { - export type Variables = RegisterMutationVariables; - export type Mutation = RegisterMutation; - export type RegisterCustomerAccount = NonNullable; - export type SuccessInlineFragment = DiscriminateUnion< - NonNullable, - { __typename?: 'Success' } - >; - export type ErrorResultInlineFragment = DiscriminateUnion< - NonNullable, - { __typename?: 'ErrorResult' } - >; + export type Variables = RegisterMutationVariables; + export type Mutation = RegisterMutation; + export type RegisterCustomerAccount = (NonNullable); + export type SuccessInlineFragment = (DiscriminateUnion<(NonNullable), { __typename?: 'Success' }>); + export type ErrorResultInlineFragment = (DiscriminateUnion<(NonNullable), { __typename?: 'ErrorResult' }>); } export namespace CurrentUserShop { - export type Fragment = CurrentUserShopFragment; - export type Channels = NonNullable[number]>; + export type Fragment = CurrentUserShopFragment; + export type Channels = NonNullable<(NonNullable)[number]>; } export namespace Verify { - export type Variables = VerifyMutationVariables; - export type Mutation = VerifyMutation; - export type VerifyCustomerAccount = NonNullable; - export type ErrorResultInlineFragment = DiscriminateUnion< - NonNullable, - { __typename?: 'ErrorResult' } - >; + export type Variables = VerifyMutationVariables; + export type Mutation = VerifyMutation; + export type VerifyCustomerAccount = (NonNullable); + export type ErrorResultInlineFragment = (DiscriminateUnion<(NonNullable), { __typename?: 'ErrorResult' }>); } export namespace RefreshToken { - export type Variables = RefreshTokenMutationVariables; - export type Mutation = RefreshTokenMutation; - export type RefreshCustomerVerification = NonNullable< - RefreshTokenMutation['refreshCustomerVerification'] - >; - export type SuccessInlineFragment = DiscriminateUnion< - NonNullable, - { __typename?: 'Success' } - >; - export type ErrorResultInlineFragment = DiscriminateUnion< - NonNullable, - { __typename?: 'ErrorResult' } - >; + export type Variables = RefreshTokenMutationVariables; + export type Mutation = RefreshTokenMutation; + export type RefreshCustomerVerification = (NonNullable); + export type SuccessInlineFragment = (DiscriminateUnion<(NonNullable), { __typename?: 'Success' }>); + export type ErrorResultInlineFragment = (DiscriminateUnion<(NonNullable), { __typename?: 'ErrorResult' }>); } export namespace RequestPasswordReset { - export type Variables = RequestPasswordResetMutationVariables; - export type Mutation = RequestPasswordResetMutation; - export type RequestPasswordReset = NonNullable; - export type SuccessInlineFragment = DiscriminateUnion< - NonNullable, - { __typename?: 'Success' } - >; - export type ErrorResultInlineFragment = DiscriminateUnion< - NonNullable, - { __typename?: 'ErrorResult' } - >; + export type Variables = RequestPasswordResetMutationVariables; + export type Mutation = RequestPasswordResetMutation; + export type RequestPasswordReset = (NonNullable); + export type SuccessInlineFragment = (DiscriminateUnion<(NonNullable), { __typename?: 'Success' }>); + export type ErrorResultInlineFragment = (DiscriminateUnion<(NonNullable), { __typename?: 'ErrorResult' }>); } export namespace ResetPassword { - export type Variables = ResetPasswordMutationVariables; - export type Mutation = ResetPasswordMutation; - export type ResetPassword = NonNullable; - export type ErrorResultInlineFragment = DiscriminateUnion< - NonNullable, - { __typename?: 'ErrorResult' } - >; + export type Variables = ResetPasswordMutationVariables; + export type Mutation = ResetPasswordMutation; + export type ResetPassword = (NonNullable); + export type ErrorResultInlineFragment = (DiscriminateUnion<(NonNullable), { __typename?: 'ErrorResult' }>); } export namespace RequestUpdateEmailAddress { - export type Variables = RequestUpdateEmailAddressMutationVariables; - export type Mutation = RequestUpdateEmailAddressMutation; - export type RequestUpdateCustomerEmailAddress = NonNullable< - RequestUpdateEmailAddressMutation['requestUpdateCustomerEmailAddress'] - >; - export type SuccessInlineFragment = DiscriminateUnion< - NonNullable, - { __typename?: 'Success' } - >; - export type ErrorResultInlineFragment = DiscriminateUnion< - NonNullable, - { __typename?: 'ErrorResult' } - >; + export type Variables = RequestUpdateEmailAddressMutationVariables; + export type Mutation = RequestUpdateEmailAddressMutation; + export type RequestUpdateCustomerEmailAddress = (NonNullable); + export type SuccessInlineFragment = (DiscriminateUnion<(NonNullable), { __typename?: 'Success' }>); + export type ErrorResultInlineFragment = (DiscriminateUnion<(NonNullable), { __typename?: 'ErrorResult' }>); } export namespace UpdateEmailAddress { - export type Variables = UpdateEmailAddressMutationVariables; - export type Mutation = UpdateEmailAddressMutation; - export type UpdateCustomerEmailAddress = NonNullable< - UpdateEmailAddressMutation['updateCustomerEmailAddress'] - >; - export type SuccessInlineFragment = DiscriminateUnion< - NonNullable, - { __typename?: 'Success' } - >; - export type ErrorResultInlineFragment = DiscriminateUnion< - NonNullable, - { __typename?: 'ErrorResult' } - >; + export type Variables = UpdateEmailAddressMutationVariables; + export type Mutation = UpdateEmailAddressMutation; + export type UpdateCustomerEmailAddress = (NonNullable); + export type SuccessInlineFragment = (DiscriminateUnion<(NonNullable), { __typename?: 'Success' }>); + export type ErrorResultInlineFragment = (DiscriminateUnion<(NonNullable), { __typename?: 'ErrorResult' }>); } export namespace GetActiveCustomer { - export type Variables = GetActiveCustomerQueryVariables; - export type Query = GetActiveCustomerQuery; - export type ActiveCustomer = NonNullable; + export type Variables = GetActiveCustomerQueryVariables; + export type Query = GetActiveCustomerQuery; + export type ActiveCustomer = (NonNullable); } export namespace CreateAddressShop { - export type Variables = CreateAddressShopMutationVariables; - export type Mutation = CreateAddressShopMutation; - export type CreateCustomerAddress = NonNullable; - export type Country = NonNullable< - NonNullable['country'] - >; + export type Variables = CreateAddressShopMutationVariables; + export type Mutation = CreateAddressShopMutation; + export type CreateCustomerAddress = (NonNullable); + export type Country = (NonNullable<(NonNullable)['country']>); } export namespace UpdateAddressShop { - export type Variables = UpdateAddressShopMutationVariables; - export type Mutation = UpdateAddressShopMutation; - export type UpdateCustomerAddress = NonNullable; - export type Country = NonNullable< - NonNullable['country'] - >; + export type Variables = UpdateAddressShopMutationVariables; + export type Mutation = UpdateAddressShopMutation; + export type UpdateCustomerAddress = (NonNullable); + export type Country = (NonNullable<(NonNullable)['country']>); } export namespace DeleteAddressShop { - export type Variables = DeleteAddressShopMutationVariables; - export type Mutation = DeleteAddressShopMutation; - export type DeleteCustomerAddress = NonNullable; + export type Variables = DeleteAddressShopMutationVariables; + export type Mutation = DeleteAddressShopMutation; + export type DeleteCustomerAddress = (NonNullable); } export namespace UpdateCustomer { - export type Variables = UpdateCustomerMutationVariables; - export type Mutation = UpdateCustomerMutation; - export type UpdateCustomer = NonNullable; + export type Variables = UpdateCustomerMutationVariables; + export type Mutation = UpdateCustomerMutation; + export type UpdateCustomer = (NonNullable); } export namespace UpdatePassword { - export type Variables = UpdatePasswordMutationVariables; - export type Mutation = UpdatePasswordMutation; - export type UpdateCustomerPassword = NonNullable; - export type SuccessInlineFragment = DiscriminateUnion< - NonNullable, - { __typename?: 'Success' } - >; - export type ErrorResultInlineFragment = DiscriminateUnion< - NonNullable, - { __typename?: 'ErrorResult' } - >; + export type Variables = UpdatePasswordMutationVariables; + export type Mutation = UpdatePasswordMutation; + export type UpdateCustomerPassword = (NonNullable); + export type SuccessInlineFragment = (DiscriminateUnion<(NonNullable), { __typename?: 'Success' }>); + export type ErrorResultInlineFragment = (DiscriminateUnion<(NonNullable), { __typename?: 'ErrorResult' }>); } export namespace GetActiveOrder { - export type Variables = GetActiveOrderQueryVariables; - export type Query = GetActiveOrderQuery; - export type ActiveOrder = NonNullable; + export type Variables = GetActiveOrderQueryVariables; + export type Query = GetActiveOrderQuery; + export type ActiveOrder = (NonNullable); } export namespace AdjustItemQuantity { - export type Variables = AdjustItemQuantityMutationVariables; - export type Mutation = AdjustItemQuantityMutation; - export type AdjustOrderLine = NonNullable; - export type ErrorResultInlineFragment = DiscriminateUnion< - NonNullable, - { __typename?: 'ErrorResult' } - >; + export type Variables = AdjustItemQuantityMutationVariables; + export type Mutation = AdjustItemQuantityMutation; + export type AdjustOrderLine = (NonNullable); + export type ErrorResultInlineFragment = (DiscriminateUnion<(NonNullable), { __typename?: 'ErrorResult' }>); } export namespace RemoveItemFromOrder { - export type Variables = RemoveItemFromOrderMutationVariables; - export type Mutation = RemoveItemFromOrderMutation; - export type RemoveOrderLine = NonNullable; - export type ErrorResultInlineFragment = DiscriminateUnion< - NonNullable, - { __typename?: 'ErrorResult' } - >; + export type Variables = RemoveItemFromOrderMutationVariables; + export type Mutation = RemoveItemFromOrderMutation; + export type RemoveOrderLine = (NonNullable); + export type ErrorResultInlineFragment = (DiscriminateUnion<(NonNullable), { __typename?: 'ErrorResult' }>); } export namespace GetShippingMethods { - export type Variables = GetShippingMethodsQueryVariables; - export type Query = GetShippingMethodsQuery; - export type EligibleShippingMethods = NonNullable< - NonNullable[number] - >; + export type Variables = GetShippingMethodsQueryVariables; + export type Query = GetShippingMethodsQuery; + export type EligibleShippingMethods = NonNullable<(NonNullable)[number]>; } export namespace SetShippingMethod { - export type Variables = SetShippingMethodMutationVariables; - export type Mutation = SetShippingMethodMutation; - export type SetOrderShippingMethod = NonNullable; - export type ErrorResultInlineFragment = DiscriminateUnion< - NonNullable, - { __typename?: 'ErrorResult' } - >; + export type Variables = SetShippingMethodMutationVariables; + export type Mutation = SetShippingMethodMutation; + export type SetOrderShippingMethod = (NonNullable); + export type ErrorResultInlineFragment = (DiscriminateUnion<(NonNullable), { __typename?: 'ErrorResult' }>); } export namespace ActiveOrderCustomer { - export type Fragment = ActiveOrderCustomerFragment; - export type Customer = NonNullable; - export type Lines = NonNullable[number]>; + export type Fragment = ActiveOrderCustomerFragment; + export type Customer = (NonNullable); + export type Lines = NonNullable<(NonNullable)[number]>; } export namespace SetCustomerForOrder { - export type Variables = SetCustomerForOrderMutationVariables; - export type Mutation = SetCustomerForOrderMutation; - export type SetCustomerForOrder = NonNullable; - export type ErrorResultInlineFragment = DiscriminateUnion< - NonNullable, - { __typename?: 'ErrorResult' } - >; + export type Variables = SetCustomerForOrderMutationVariables; + export type Mutation = SetCustomerForOrderMutation; + export type SetCustomerForOrder = (NonNullable); + export type ErrorResultInlineFragment = (DiscriminateUnion<(NonNullable), { __typename?: 'ErrorResult' }>); } export namespace GetOrderByCode { - export type Variables = GetOrderByCodeQueryVariables; - export type Query = GetOrderByCodeQuery; - export type OrderByCode = NonNullable; + export type Variables = GetOrderByCodeQueryVariables; + export type Query = GetOrderByCodeQuery; + export type OrderByCode = (NonNullable); } export namespace GetOrderPromotionsByCode { - export type Variables = GetOrderPromotionsByCodeQueryVariables; - export type Query = GetOrderPromotionsByCodeQuery; - export type OrderByCode = NonNullable; - export type Promotions = NonNullable< - NonNullable['promotions']>[number] - >; + export type Variables = GetOrderPromotionsByCodeQueryVariables; + export type Query = GetOrderPromotionsByCodeQuery; + export type OrderByCode = (NonNullable); + export type Promotions = NonNullable<(NonNullable<(NonNullable)['promotions']>)[number]>; } export namespace GetAvailableCountries { - export type Variables = GetAvailableCountriesQueryVariables; - export type Query = GetAvailableCountriesQuery; - export type AvailableCountries = NonNullable< - NonNullable[number] - >; + export type Variables = GetAvailableCountriesQueryVariables; + export type Query = GetAvailableCountriesQuery; + export type AvailableCountries = NonNullable<(NonNullable)[number]>; } export namespace TransitionToState { - export type Variables = TransitionToStateMutationVariables; - export type Mutation = TransitionToStateMutation; - export type TransitionOrderToState = NonNullable; - export type OrderStateTransitionErrorInlineFragment = DiscriminateUnion< - NonNullable, - { __typename?: 'OrderStateTransitionError' } - >; + export type Variables = TransitionToStateMutationVariables; + export type Mutation = TransitionToStateMutation; + export type TransitionOrderToState = (NonNullable); + export type OrderStateTransitionErrorInlineFragment = (DiscriminateUnion<(NonNullable), { __typename?: 'OrderStateTransitionError' }>); } export namespace SetShippingAddress { - export type Variables = SetShippingAddressMutationVariables; - export type Mutation = SetShippingAddressMutation; - export type SetOrderShippingAddress = NonNullable; - export type ShippingAddress = NonNullable< - NonNullable['shippingAddress'] - >; + export type Variables = SetShippingAddressMutationVariables; + export type Mutation = SetShippingAddressMutation; + export type SetOrderShippingAddress = (NonNullable); + export type ShippingAddress = (NonNullable<(NonNullable)['shippingAddress']>); } export namespace SetBillingAddress { - export type Variables = SetBillingAddressMutationVariables; - export type Mutation = SetBillingAddressMutation; - export type SetOrderBillingAddress = NonNullable; - export type BillingAddress = NonNullable< - NonNullable['billingAddress'] - >; + export type Variables = SetBillingAddressMutationVariables; + export type Mutation = SetBillingAddressMutation; + export type SetOrderBillingAddress = (NonNullable); + export type BillingAddress = (NonNullable<(NonNullable)['billingAddress']>); } export namespace TestOrderWithPayments { - export type Fragment = TestOrderWithPaymentsFragment; - export type Payments = NonNullable[number]>; + export type Fragment = TestOrderWithPaymentsFragment; + export type Payments = NonNullable<(NonNullable)[number]>; } export namespace GetActiveOrderWithPayments { - export type Variables = GetActiveOrderWithPaymentsQueryVariables; - export type Query = GetActiveOrderWithPaymentsQuery; - export type ActiveOrder = NonNullable; + export type Variables = GetActiveOrderWithPaymentsQueryVariables; + export type Query = GetActiveOrderWithPaymentsQuery; + export type ActiveOrder = (NonNullable); } export namespace AddPaymentToOrder { - export type Variables = AddPaymentToOrderMutationVariables; - export type Mutation = AddPaymentToOrderMutation; - export type AddPaymentToOrder = NonNullable; - export type ErrorResultInlineFragment = DiscriminateUnion< - NonNullable, - { __typename?: 'ErrorResult' } - >; - export type PaymentDeclinedErrorInlineFragment = DiscriminateUnion< - NonNullable, - { __typename?: 'PaymentDeclinedError' } - >; - export type PaymentFailedErrorInlineFragment = DiscriminateUnion< - NonNullable, - { __typename?: 'PaymentFailedError' } - >; + export type Variables = AddPaymentToOrderMutationVariables; + export type Mutation = AddPaymentToOrderMutation; + export type AddPaymentToOrder = (NonNullable); + export type ErrorResultInlineFragment = (DiscriminateUnion<(NonNullable), { __typename?: 'ErrorResult' }>); + export type PaymentDeclinedErrorInlineFragment = (DiscriminateUnion<(NonNullable), { __typename?: 'PaymentDeclinedError' }>); + export type PaymentFailedErrorInlineFragment = (DiscriminateUnion<(NonNullable), { __typename?: 'PaymentFailedError' }>); } export namespace GetActiveOrderPayments { - export type Variables = GetActiveOrderPaymentsQueryVariables; - export type Query = GetActiveOrderPaymentsQuery; - export type ActiveOrder = NonNullable; - export type Payments = NonNullable< - NonNullable['payments']>[number] - >; + export type Variables = GetActiveOrderPaymentsQueryVariables; + export type Query = GetActiveOrderPaymentsQuery; + export type ActiveOrder = (NonNullable); + export type Payments = NonNullable<(NonNullable<(NonNullable)['payments']>)[number]>; } export namespace GetOrderByCodeWithPayments { - export type Variables = GetOrderByCodeWithPaymentsQueryVariables; - export type Query = GetOrderByCodeWithPaymentsQuery; - export type OrderByCode = NonNullable; + export type Variables = GetOrderByCodeWithPaymentsQueryVariables; + export type Query = GetOrderByCodeWithPaymentsQuery; + export type OrderByCode = (NonNullable); } export namespace GetNextOrderStates { - export type Variables = GetNextOrderStatesQueryVariables; - export type Query = GetNextOrderStatesQuery; + export type Variables = GetNextOrderStatesQueryVariables; + export type Query = GetNextOrderStatesQuery; } export namespace GetCustomerAddresses { - export type Variables = GetCustomerAddressesQueryVariables; - export type Query = GetCustomerAddressesQuery; - export type ActiveOrder = NonNullable; - export type Customer = NonNullable['customer']>; - export type Addresses = NonNullable< - NonNullable< - NonNullable['customer']>['addresses'] - >[number] - >; + export type Variables = GetCustomerAddressesQueryVariables; + export type Query = GetCustomerAddressesQuery; + export type ActiveOrder = (NonNullable); + export type Customer = (NonNullable<(NonNullable)['customer']>); + export type Addresses = NonNullable<(NonNullable<(NonNullable<(NonNullable)['customer']>)['addresses']>)[number]>; } export namespace GetCustomerOrders { - export type Variables = GetCustomerOrdersQueryVariables; - export type Query = GetCustomerOrdersQuery; - export type ActiveOrder = NonNullable; - export type Customer = NonNullable['customer']>; - export type Orders = NonNullable< - NonNullable['customer']>['orders'] - >; - export type Items = NonNullable< - NonNullable< - NonNullable< - NonNullable['customer']>['orders'] - >['items'] - >[number] - >; + export type Variables = GetCustomerOrdersQueryVariables; + export type Query = GetCustomerOrdersQuery; + export type ActiveOrder = (NonNullable); + export type Customer = (NonNullable<(NonNullable)['customer']>); + export type Orders = (NonNullable<(NonNullable<(NonNullable)['customer']>)['orders']>); + export type Items = NonNullable<(NonNullable<(NonNullable<(NonNullable<(NonNullable)['customer']>)['orders']>)['items']>)[number]>; } export namespace ApplyCouponCode { - export type Variables = ApplyCouponCodeMutationVariables; - export type Mutation = ApplyCouponCodeMutation; - export type ApplyCouponCode = NonNullable; - export type ErrorResultInlineFragment = DiscriminateUnion< - NonNullable, - { __typename?: 'ErrorResult' } - >; + export type Variables = ApplyCouponCodeMutationVariables; + export type Mutation = ApplyCouponCodeMutation; + export type ApplyCouponCode = (NonNullable); + export type ErrorResultInlineFragment = (DiscriminateUnion<(NonNullable), { __typename?: 'ErrorResult' }>); } export namespace RemoveCouponCode { - export type Variables = RemoveCouponCodeMutationVariables; - export type Mutation = RemoveCouponCodeMutation; - export type RemoveCouponCode = NonNullable; + export type Variables = RemoveCouponCodeMutationVariables; + export type Mutation = RemoveCouponCodeMutation; + export type RemoveCouponCode = (NonNullable); } export namespace RemoveAllOrderLines { - export type Variables = RemoveAllOrderLinesMutationVariables; - export type Mutation = RemoveAllOrderLinesMutation; - export type RemoveAllOrderLines = NonNullable; - export type ErrorResultInlineFragment = DiscriminateUnion< - NonNullable, - { __typename?: 'ErrorResult' } - >; + export type Variables = RemoveAllOrderLinesMutationVariables; + export type Mutation = RemoveAllOrderLinesMutation; + export type RemoveAllOrderLines = (NonNullable); + export type ErrorResultInlineFragment = (DiscriminateUnion<(NonNullable), { __typename?: 'ErrorResult' }>); }