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 00988366e5..89459f2a61 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 @@ -85,6 +85,16 @@ export enum AdjustmentType { PROMOTION = 'PROMOTION' } +/** + * Returned by `verifyCustomerAccountAsAdmin` to expose the randomly generated password to the + * administrator. The cleartext password is included in the response only once and is not persisted + * anywhere else; the administrator is responsible for securely transmitting it to the customer. + */ +export type AdminGeneratedPassword = { + __typename?: 'AdminGeneratedPassword'; + password: Scalars['String']['output']; +}; + export type Administrator = Node & { __typename?: 'Administrator'; createdAt: Scalars['DateTime']['output']; @@ -1561,6 +1571,18 @@ export type CustomerOrdersArgs = { options?: InputMaybe; }; +/** + * Returned when an administrator action requires the Customer to be in a specific account state + * (e.g. trying to reset the password of a guest or registered customer, or trying to manually + * verify a customer that is already verified or has no User). + */ +export type CustomerAccountStateError = ErrorResult & { + __typename?: 'CustomerAccountStateError'; + accountState: Scalars['String']['output']; + errorCode: ErrorCode; + message: Scalars['String']['output']; +}; + export type CustomerFilterParameter = { _and?: InputMaybe>; _or?: InputMaybe>; @@ -1811,6 +1833,7 @@ export enum ErrorCode { COUPON_CODE_INVALID_ERROR = 'COUPON_CODE_INVALID_ERROR', COUPON_CODE_LIMIT_ERROR = 'COUPON_CODE_LIMIT_ERROR', CREATE_FULFILLMENT_ERROR = 'CREATE_FULFILLMENT_ERROR', + CUSTOMER_ACCOUNT_STATE_ERROR = 'CUSTOMER_ACCOUNT_STATE_ERROR', DUPLICATE_ENTITY_ERROR = 'DUPLICATE_ENTITY_ERROR', EMAIL_ADDRESS_CONFLICT_ERROR = 'EMAIL_ADDRESS_CONFLICT_ERROR', EMPTY_ORDER_LINE_SELECTION_ERROR = 'EMPTY_ORDER_LINE_SELECTION_ERROR', @@ -3151,6 +3174,13 @@ export type Mutation = { removeStockLocationsFromChannel: Array; requestCompleted: Scalars['Int']['output']; requestStarted: Scalars['Int']['output']; + /** + * Triggers the standard password-reset email flow for a verified Customer, on behalf of an + * administrator. Equivalent to the Customer calling `requestPasswordReset` from the Shop API: + * a reset token is issued and a `PasswordResetEvent` is published so the configured email + * handler can send the customer a reset link. + */ + resetCustomerPasswordAsAdmin: ResetCustomerPasswordAsAdminResult; /** * Replaces the old with a new API-Key. * This is a convenience method to invalidate an API-Key without @@ -3256,6 +3286,12 @@ export type Mutation = { updateUserChannels: UserStatus; /** Update an existing Zone */ updateZone: Zone; + /** + * Completes the email verification step of a registered Customer with a randomly generated + * password. Returns the generated password so the administrator can communicate it to the + * customer. Intended for situations where the customer never confirmed the verification email. + */ + verifyCustomerAccountAsAdmin: VerifyCustomerAccountAsAdminResult; }; @@ -3900,6 +3936,11 @@ export type MutationRemoveStockLocationsFromChannelArgs = { }; +export type MutationResetCustomerPasswordAsAdminArgs = { + customerId: Scalars['ID']['input']; +}; + + export type MutationRotateApiKeyArgs = { id: Scalars['ID']['input']; }; @@ -4213,6 +4254,11 @@ export type MutationUpdateZoneArgs = { input: UpdateZoneInput; }; + +export type MutationVerifyCustomerAccountAsAdminArgs = { + customerId: Scalars['ID']['input']; +}; + export type NativeAuthInput = { password: Scalars['String']['input']; username: Scalars['String']['input']; @@ -6130,6 +6176,8 @@ export type RemoveStockLocationsFromChannelInput = { stockLocationIds: Array; }; +export type ResetCustomerPasswordAsAdminResult = CustomerAccountStateError | Success; + export type Return = Node & StockMovement & { __typename?: 'Return'; createdAt: Scalars['DateTime']['output']; @@ -7343,6 +7391,8 @@ export type UserStatusInput = { username: Scalars['String']['input']; }; +export type VerifyCustomerAccountAsAdminResult = AdminGeneratedPassword | CustomerAccountStateError; + export type Zone = Node & { __typename?: 'Zone'; createdAt: Scalars['DateTime']['output']; @@ -9258,6 +9308,8 @@ type ErrorResult_CouponCodeLimitError_Fragment = { __typename?: 'CouponCodeLimit type ErrorResult_CreateFulfillmentError_Fragment = { __typename?: 'CreateFulfillmentError', errorCode: ErrorCode, message: string }; +type ErrorResult_CustomerAccountStateError_Fragment = { __typename?: 'CustomerAccountStateError', errorCode: ErrorCode, message: string }; + type ErrorResult_DuplicateEntityError_Fragment = { __typename?: 'DuplicateEntityError', errorCode: ErrorCode, message: string }; type ErrorResult_EmailAddressConflictError_Fragment = { __typename?: 'EmailAddressConflictError', errorCode: ErrorCode, message: string }; @@ -9343,6 +9395,7 @@ export type ErrorResultFragment = | ErrorResult_CouponCodeInvalidError_Fragment | ErrorResult_CouponCodeLimitError_Fragment | ErrorResult_CreateFulfillmentError_Fragment + | ErrorResult_CustomerAccountStateError_Fragment | ErrorResult_DuplicateEntityError_Fragment | ErrorResult_EmailAddressConflictError_Fragment | ErrorResult_EmptyOrderLineSelectionError_Fragment diff --git a/packages/admin-ui/src/lib/core/src/common/introspection-result.ts b/packages/admin-ui/src/lib/core/src/common/introspection-result.ts index f4d88238eb..ed2bbda840 100644 --- a/packages/admin-ui/src/lib/core/src/common/introspection-result.ts +++ b/packages/admin-ui/src/lib/core/src/common/introspection-result.ts @@ -1,279 +1,378 @@ /* eslint-disable */ -export interface PossibleTypesResultData { - possibleTypes: { - [key: string]: string[]; - }; -} -const result: PossibleTypesResultData = { - possibleTypes: { - AddFulfillmentToOrderResult: [ - 'CreateFulfillmentError', - 'EmptyOrderLineSelectionError', - 'Fulfillment', - 'FulfillmentStateTransitionError', - 'InsufficientStockOnHandError', - 'InvalidFulfillmentHandlerError', - 'ItemsAlreadyFulfilledError', - ], - AddManualPaymentToOrderResult: ['ManualPaymentStateError', 'Order'], - ApplyCouponCodeResult: [ - 'CouponCodeExpiredError', - 'CouponCodeInvalidError', - 'CouponCodeLimitError', - 'Order', - ], - AuthenticationResult: ['CurrentUser', 'InvalidCredentialsError'], - CancelOrderResult: [ - 'CancelActiveOrderError', - 'EmptyOrderLineSelectionError', - 'MultipleOrderError', - 'Order', - 'OrderStateTransitionError', - 'QuantityTooGreatError', - ], - CancelPaymentResult: ['CancelPaymentError', 'Payment', 'PaymentStateTransitionError'], - CreateAssetResult: ['Asset', 'MimeTypeError'], - CreateChannelResult: ['Channel', 'LanguageNotAvailableError'], - CreateCustomerResult: ['Customer', 'EmailAddressConflictError'], - CreatePromotionResult: ['MissingConditionsError', 'Promotion'], - CustomField: [ - 'BooleanCustomFieldConfig', - 'DateTimeCustomFieldConfig', - 'FloatCustomFieldConfig', - 'IntCustomFieldConfig', - 'LocaleStringCustomFieldConfig', - 'LocaleTextCustomFieldConfig', - 'RelationCustomFieldConfig', - 'StringCustomFieldConfig', - 'StructCustomFieldConfig', - 'TextCustomFieldConfig', - ], - CustomFieldConfig: [ - 'BooleanCustomFieldConfig', - 'DateTimeCustomFieldConfig', - 'FloatCustomFieldConfig', - 'IntCustomFieldConfig', - 'LocaleStringCustomFieldConfig', - 'LocaleTextCustomFieldConfig', - 'RelationCustomFieldConfig', - 'StringCustomFieldConfig', - 'StructCustomFieldConfig', - 'TextCustomFieldConfig', - ], - DuplicateEntityResult: ['DuplicateEntityError', 'DuplicateEntitySuccess'], - ErrorResult: [ - 'AlreadyRefundedError', - 'CancelActiveOrderError', - 'CancelPaymentError', - 'ChannelDefaultLanguageError', - 'CouponCodeExpiredError', - 'CouponCodeInvalidError', - 'CouponCodeLimitError', - 'CreateFulfillmentError', - 'DuplicateEntityError', - 'EmailAddressConflictError', - 'EmptyOrderLineSelectionError', - 'FacetInUseError', - 'FulfillmentStateTransitionError', - 'GuestCheckoutError', - 'IneligibleShippingMethodError', - 'InsufficientStockError', - 'InsufficientStockOnHandError', - 'InvalidCredentialsError', - 'InvalidFulfillmentHandlerError', - 'ItemsAlreadyFulfilledError', - 'LanguageNotAvailableError', - 'ManualPaymentStateError', - 'MimeTypeError', - 'MissingConditionsError', - 'MultipleOrderError', - 'NativeAuthStrategyError', - 'NegativeQuantityError', - 'NoActiveOrderError', - 'NoChangesSpecifiedError', - 'NothingToRefundError', - 'OrderInterceptorError', - 'OrderLimitError', - 'OrderModificationError', - 'OrderModificationStateError', - 'OrderStateTransitionError', - 'PaymentMethodMissingError', - 'PaymentOrderMismatchError', - 'PaymentStateTransitionError', - 'ProductOptionGroupInUseError', - 'ProductOptionInUseError', - 'QuantityTooGreatError', - 'RefundAmountError', - 'RefundOrderStateError', - 'RefundPaymentIdMissingError', - 'RefundStateTransitionError', - 'SettlePaymentError', - ], - ModifyOrderResult: [ - 'CouponCodeExpiredError', - 'CouponCodeInvalidError', - 'CouponCodeLimitError', - 'IneligibleShippingMethodError', - 'InsufficientStockError', - 'NegativeQuantityError', - 'NoChangesSpecifiedError', - 'Order', - 'OrderLimitError', - 'OrderModificationStateError', - 'PaymentMethodMissingError', - 'RefundPaymentIdMissingError', - ], - NativeAuthenticationResult: ['CurrentUser', 'InvalidCredentialsError', 'NativeAuthStrategyError'], - Node: [ - 'Address', - 'Administrator', - 'Allocation', - 'ApiKey', - 'ApiKeyTranslation', - 'Asset', - 'AuthenticationMethod', - 'Cancellation', - 'Channel', - 'Collection', - 'Country', - 'Customer', - 'CustomerGroup', - 'Facet', - 'FacetValue', - 'Fulfillment', - 'HistoryEntry', - 'Job', - 'Order', - 'OrderLine', - 'OrderModification', - 'Payment', - 'PaymentMethod', - 'Product', - 'ProductOption', - 'ProductOptionGroup', - 'ProductVariant', - 'Promotion', - 'Province', - 'Refund', - 'Release', - 'Return', - 'Role', - 'Sale', - 'Seller', - 'ShippingMethod', - 'StockAdjustment', - 'StockLevel', - 'StockLocation', - 'Surcharge', - 'Tag', - 'TaxCategory', - 'TaxRate', - 'User', - 'Zone', - ], - PaginatedList: [ - 'AdministratorList', - 'ApiKeyList', - 'AssetList', - 'ChannelList', - 'CollectionList', - 'CountryList', - 'CustomerGroupList', - 'CustomerList', - 'FacetList', - 'FacetValueList', - 'HistoryEntryList', - 'JobList', - 'OrderList', - 'PaymentMethodList', - 'ProductList', - 'ProductOptionGroupList', - 'ProductOptionList', - 'ProductVariantList', - 'PromotionList', - 'ProvinceList', - 'RoleList', - 'SellerList', - 'ShippingMethodList', - 'StockLocationList', - 'TagList', - 'TaxCategoryList', - 'TaxRateList', - 'ZoneList', - ], - RefundOrderResult: [ - 'AlreadyRefundedError', - 'MultipleOrderError', - 'NothingToRefundError', - 'OrderStateTransitionError', - 'PaymentOrderMismatchError', - 'QuantityTooGreatError', - 'Refund', - 'RefundAmountError', - 'RefundOrderStateError', - 'RefundStateTransitionError', - ], - Region: ['Country', 'Province'], - RemoveFacetFromChannelResult: ['Facet', 'FacetInUseError'], - RemoveOptionGroupFromProductResult: ['Product', 'ProductOptionInUseError'], - RemoveOrderItemsResult: ['Order', 'OrderInterceptorError', 'OrderModificationError'], - RemoveProductOptionGroupFromChannelResult: ['ProductOptionGroup', 'ProductOptionGroupInUseError'], - SearchResultPrice: ['PriceRange', 'SinglePrice'], - SetCustomerForDraftOrderResult: ['EmailAddressConflictError', 'Order'], - SetOrderShippingMethodResult: [ - 'IneligibleShippingMethodError', - 'NoActiveOrderError', - 'Order', - 'OrderModificationError', - ], - SettlePaymentResult: [ - 'OrderStateTransitionError', - 'Payment', - 'PaymentStateTransitionError', - 'SettlePaymentError', - ], - SettleRefundResult: ['Refund', 'RefundStateTransitionError'], - StockMovement: ['Allocation', 'Cancellation', 'Release', 'Return', 'Sale', 'StockAdjustment'], - StockMovementItem: ['Allocation', 'Cancellation', 'Release', 'Return', 'Sale', 'StockAdjustment'], - StructField: [ - 'BooleanStructFieldConfig', - 'DateTimeStructFieldConfig', - 'FloatStructFieldConfig', - 'IntStructFieldConfig', - 'StringStructFieldConfig', - 'TextStructFieldConfig', - ], - StructFieldConfig: [ - 'BooleanStructFieldConfig', - 'DateTimeStructFieldConfig', - 'FloatStructFieldConfig', - 'IntStructFieldConfig', - 'StringStructFieldConfig', - 'TextStructFieldConfig', - ], - TransitionFulfillmentToStateResult: ['Fulfillment', 'FulfillmentStateTransitionError'], - TransitionOrderToStateResult: ['Order', 'OrderStateTransitionError'], - TransitionPaymentToStateResult: ['Payment', 'PaymentStateTransitionError'], - UpdateChannelResult: ['Channel', 'LanguageNotAvailableError'], - UpdateCustomerResult: ['Customer', 'EmailAddressConflictError'], - UpdateGlobalSettingsResult: ['ChannelDefaultLanguageError', 'GlobalSettings'], - UpdateOrderItemErrorResult: [ - 'InsufficientStockError', - 'NegativeQuantityError', - 'OrderInterceptorError', - 'OrderLimitError', - 'OrderModificationError', - ], - UpdateOrderItemsResult: [ - 'InsufficientStockError', - 'NegativeQuantityError', - 'Order', - 'OrderInterceptorError', - 'OrderLimitError', - 'OrderModificationError', - ], - UpdatePromotionResult: ['MissingConditionsError', 'Promotion'], - }, + export interface PossibleTypesResultData { + possibleTypes: { + [key: string]: string[] + } + } + const result: PossibleTypesResultData = { + "possibleTypes": { + "AddFulfillmentToOrderResult": [ + "CreateFulfillmentError", + "EmptyOrderLineSelectionError", + "Fulfillment", + "FulfillmentStateTransitionError", + "InsufficientStockOnHandError", + "InvalidFulfillmentHandlerError", + "ItemsAlreadyFulfilledError" + ], + "AddManualPaymentToOrderResult": [ + "ManualPaymentStateError", + "Order" + ], + "ApplyCouponCodeResult": [ + "CouponCodeExpiredError", + "CouponCodeInvalidError", + "CouponCodeLimitError", + "Order" + ], + "AuthenticationResult": [ + "CurrentUser", + "InvalidCredentialsError" + ], + "CancelOrderResult": [ + "CancelActiveOrderError", + "EmptyOrderLineSelectionError", + "MultipleOrderError", + "Order", + "OrderStateTransitionError", + "QuantityTooGreatError" + ], + "CancelPaymentResult": [ + "CancelPaymentError", + "Payment", + "PaymentStateTransitionError" + ], + "CreateAssetResult": [ + "Asset", + "MimeTypeError" + ], + "CreateChannelResult": [ + "Channel", + "LanguageNotAvailableError" + ], + "CreateCustomerResult": [ + "Customer", + "EmailAddressConflictError" + ], + "CreatePromotionResult": [ + "MissingConditionsError", + "Promotion" + ], + "CustomField": [ + "BooleanCustomFieldConfig", + "DateTimeCustomFieldConfig", + "FloatCustomFieldConfig", + "IntCustomFieldConfig", + "LocaleStringCustomFieldConfig", + "LocaleTextCustomFieldConfig", + "RelationCustomFieldConfig", + "StringCustomFieldConfig", + "StructCustomFieldConfig", + "TextCustomFieldConfig" + ], + "CustomFieldConfig": [ + "BooleanCustomFieldConfig", + "DateTimeCustomFieldConfig", + "FloatCustomFieldConfig", + "IntCustomFieldConfig", + "LocaleStringCustomFieldConfig", + "LocaleTextCustomFieldConfig", + "RelationCustomFieldConfig", + "StringCustomFieldConfig", + "StructCustomFieldConfig", + "TextCustomFieldConfig" + ], + "DuplicateEntityResult": [ + "DuplicateEntityError", + "DuplicateEntitySuccess" + ], + "ErrorResult": [ + "AlreadyRefundedError", + "CancelActiveOrderError", + "CancelPaymentError", + "ChannelDefaultLanguageError", + "CouponCodeExpiredError", + "CouponCodeInvalidError", + "CouponCodeLimitError", + "CreateFulfillmentError", + "CustomerAccountStateError", + "DuplicateEntityError", + "EmailAddressConflictError", + "EmptyOrderLineSelectionError", + "FacetInUseError", + "FulfillmentStateTransitionError", + "GuestCheckoutError", + "IneligibleShippingMethodError", + "InsufficientStockError", + "InsufficientStockOnHandError", + "InvalidCredentialsError", + "InvalidFulfillmentHandlerError", + "ItemsAlreadyFulfilledError", + "LanguageNotAvailableError", + "ManualPaymentStateError", + "MimeTypeError", + "MissingConditionsError", + "MultipleOrderError", + "NativeAuthStrategyError", + "NegativeQuantityError", + "NoActiveOrderError", + "NoChangesSpecifiedError", + "NothingToRefundError", + "OrderInterceptorError", + "OrderLimitError", + "OrderModificationError", + "OrderModificationStateError", + "OrderStateTransitionError", + "PaymentMethodMissingError", + "PaymentOrderMismatchError", + "PaymentStateTransitionError", + "ProductOptionGroupInUseError", + "ProductOptionInUseError", + "QuantityTooGreatError", + "RefundAmountError", + "RefundOrderStateError", + "RefundPaymentIdMissingError", + "RefundStateTransitionError", + "SettlePaymentError" + ], + "ModifyOrderResult": [ + "CouponCodeExpiredError", + "CouponCodeInvalidError", + "CouponCodeLimitError", + "IneligibleShippingMethodError", + "InsufficientStockError", + "NegativeQuantityError", + "NoChangesSpecifiedError", + "Order", + "OrderLimitError", + "OrderModificationStateError", + "PaymentMethodMissingError", + "RefundPaymentIdMissingError" + ], + "NativeAuthenticationResult": [ + "CurrentUser", + "InvalidCredentialsError", + "NativeAuthStrategyError" + ], + "Node": [ + "Address", + "Administrator", + "Allocation", + "ApiKey", + "ApiKeyTranslation", + "Asset", + "AuthenticationMethod", + "Cancellation", + "Channel", + "Collection", + "Country", + "Customer", + "CustomerGroup", + "Facet", + "FacetValue", + "Fulfillment", + "HistoryEntry", + "Job", + "Order", + "OrderLine", + "OrderModification", + "Payment", + "PaymentMethod", + "Product", + "ProductOption", + "ProductOptionGroup", + "ProductVariant", + "Promotion", + "Province", + "Refund", + "Release", + "Return", + "Role", + "Sale", + "Seller", + "ShippingMethod", + "StockAdjustment", + "StockLevel", + "StockLocation", + "Surcharge", + "Tag", + "TaxCategory", + "TaxRate", + "User", + "Zone" + ], + "PaginatedList": [ + "AdministratorList", + "ApiKeyList", + "AssetList", + "ChannelList", + "CollectionList", + "CountryList", + "CustomerGroupList", + "CustomerList", + "FacetList", + "FacetValueList", + "HistoryEntryList", + "JobList", + "OrderList", + "PaymentMethodList", + "ProductList", + "ProductOptionGroupList", + "ProductOptionList", + "ProductVariantList", + "PromotionList", + "ProvinceList", + "RoleList", + "SellerList", + "ShippingMethodList", + "StockLocationList", + "TagList", + "TaxCategoryList", + "TaxRateList", + "ZoneList" + ], + "RefundOrderResult": [ + "AlreadyRefundedError", + "MultipleOrderError", + "NothingToRefundError", + "OrderStateTransitionError", + "PaymentOrderMismatchError", + "QuantityTooGreatError", + "Refund", + "RefundAmountError", + "RefundOrderStateError", + "RefundStateTransitionError" + ], + "Region": [ + "Country", + "Province" + ], + "RemoveFacetFromChannelResult": [ + "Facet", + "FacetInUseError" + ], + "RemoveOptionGroupFromProductResult": [ + "Product", + "ProductOptionInUseError" + ], + "RemoveOrderItemsResult": [ + "Order", + "OrderInterceptorError", + "OrderModificationError" + ], + "RemoveProductOptionGroupFromChannelResult": [ + "ProductOptionGroup", + "ProductOptionGroupInUseError" + ], + "ResetCustomerPasswordAsAdminResult": [ + "CustomerAccountStateError", + "Success" + ], + "SearchResultPrice": [ + "PriceRange", + "SinglePrice" + ], + "SetCustomerForDraftOrderResult": [ + "EmailAddressConflictError", + "Order" + ], + "SetOrderShippingMethodResult": [ + "IneligibleShippingMethodError", + "NoActiveOrderError", + "Order", + "OrderModificationError" + ], + "SettlePaymentResult": [ + "OrderStateTransitionError", + "Payment", + "PaymentStateTransitionError", + "SettlePaymentError" + ], + "SettleRefundResult": [ + "Refund", + "RefundStateTransitionError" + ], + "StockMovement": [ + "Allocation", + "Cancellation", + "Release", + "Return", + "Sale", + "StockAdjustment" + ], + "StockMovementItem": [ + "Allocation", + "Cancellation", + "Release", + "Return", + "Sale", + "StockAdjustment" + ], + "StructField": [ + "BooleanStructFieldConfig", + "DateTimeStructFieldConfig", + "FloatStructFieldConfig", + "IntStructFieldConfig", + "StringStructFieldConfig", + "TextStructFieldConfig" + ], + "StructFieldConfig": [ + "BooleanStructFieldConfig", + "DateTimeStructFieldConfig", + "FloatStructFieldConfig", + "IntStructFieldConfig", + "StringStructFieldConfig", + "TextStructFieldConfig" + ], + "TransitionFulfillmentToStateResult": [ + "Fulfillment", + "FulfillmentStateTransitionError" + ], + "TransitionOrderToStateResult": [ + "Order", + "OrderStateTransitionError" + ], + "TransitionPaymentToStateResult": [ + "Payment", + "PaymentStateTransitionError" + ], + "UpdateChannelResult": [ + "Channel", + "LanguageNotAvailableError" + ], + "UpdateCustomerResult": [ + "Customer", + "EmailAddressConflictError" + ], + "UpdateGlobalSettingsResult": [ + "ChannelDefaultLanguageError", + "GlobalSettings" + ], + "UpdateOrderItemErrorResult": [ + "InsufficientStockError", + "NegativeQuantityError", + "OrderInterceptorError", + "OrderLimitError", + "OrderModificationError" + ], + "UpdateOrderItemsResult": [ + "InsufficientStockError", + "NegativeQuantityError", + "Order", + "OrderInterceptorError", + "OrderLimitError", + "OrderModificationError" + ], + "UpdatePromotionResult": [ + "MissingConditionsError", + "Promotion" + ], + "VerifyCustomerAccountAsAdminResult": [ + "AdminGeneratedPassword", + "CustomerAccountStateError" + ] + } }; -export default result; + export default result; + \ No newline at end of file diff --git a/packages/asset-server-plugin/e2e/graphql/graphql-admin.ts b/packages/asset-server-plugin/e2e/graphql/graphql-admin.ts index 78c1c70b22..e8957ef5f8 100644 --- a/packages/asset-server-plugin/e2e/graphql/graphql-admin.ts +++ b/packages/asset-server-plugin/e2e/graphql/graphql-admin.ts @@ -1,5 +1,5 @@ -import { initGraphQLTada } from 'gql.tada'; import type { introspection } from './graphql-env-admin.d.ts'; +import { initGraphQLTada } from 'gql.tada'; export const graphql = initGraphQLTada<{ disableMasking: true; @@ -11,5 +11,5 @@ export const graphql = initGraphQLTada<{ }; }>(); -export { readFragment } from 'gql.tada'; export type { FragmentOf, ResultOf, VariablesOf } from 'gql.tada'; +export { readFragment } from 'gql.tada'; diff --git a/packages/asset-server-plugin/e2e/graphql/graphql-env-admin.d.ts b/packages/asset-server-plugin/e2e/graphql/graphql-env-admin.d.ts index d4365e8e50..ab1d9c48f7 100644 --- a/packages/asset-server-plugin/e2e/graphql/graphql-env-admin.d.ts +++ b/packages/asset-server-plugin/e2e/graphql/graphql-env-admin.d.ts @@ -12,6 +12,7 @@ export type introspection_types = { 'AdjustDraftOrderLineInput': { kind: 'INPUT_OBJECT'; name: 'AdjustDraftOrderLineInput'; isOneOf: false; inputFields: [{ name: 'orderLineId'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ID'; ofType: null; }; }; defaultValue: null }, { name: 'quantity'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Int'; ofType: null; }; }; defaultValue: null }]; }; 'Adjustment': { kind: 'OBJECT'; name: 'Adjustment'; fields: { 'adjustmentSource': { name: 'adjustmentSource'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'amount': { name: 'amount'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Money'; ofType: null; }; } }; 'data': { name: 'data'; type: { kind: 'SCALAR'; name: 'JSON'; ofType: null; } }; 'description': { name: 'description'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'type': { name: 'type'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'AdjustmentType'; ofType: null; }; } }; }; }; 'AdjustmentType': { name: 'AdjustmentType'; enumValues: 'PROMOTION' | 'DISTRIBUTED_ORDER_PROMOTION' | 'OTHER'; }; + 'AdminGeneratedPassword': { kind: 'OBJECT'; name: 'AdminGeneratedPassword'; fields: { 'password': { name: 'password'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; }; }; 'Administrator': { kind: 'OBJECT'; name: 'Administrator'; fields: { 'createdAt': { name: 'createdAt'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; 'customFields': { name: 'customFields'; type: { kind: 'SCALAR'; name: 'JSON'; ofType: null; } }; 'emailAddress': { name: 'emailAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'firstName': { name: 'firstName'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'id': { name: 'id'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ID'; ofType: null; }; } }; 'lastName': { name: 'lastName'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'updatedAt': { name: 'updatedAt'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; 'user': { name: 'user'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'User'; ofType: null; }; } }; }; }; 'AdministratorFilterParameter': { kind: 'INPUT_OBJECT'; name: 'AdministratorFilterParameter'; isOneOf: false; inputFields: [{ name: 'id'; type: { kind: 'INPUT_OBJECT'; name: 'IDOperators'; ofType: null; }; defaultValue: null }, { name: 'createdAt'; type: { kind: 'INPUT_OBJECT'; name: 'DateOperators'; ofType: null; }; defaultValue: null }, { name: 'updatedAt'; type: { kind: 'INPUT_OBJECT'; name: 'DateOperators'; ofType: null; }; defaultValue: null }, { name: 'firstName'; type: { kind: 'INPUT_OBJECT'; name: 'StringOperators'; ofType: null; }; defaultValue: null }, { name: 'lastName'; type: { kind: 'INPUT_OBJECT'; name: 'StringOperators'; ofType: null; }; defaultValue: null }, { name: 'emailAddress'; type: { kind: 'INPUT_OBJECT'; name: 'StringOperators'; ofType: null; }; defaultValue: null }, { name: '_and'; type: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'INPUT_OBJECT'; name: 'AdministratorFilterParameter'; ofType: null; }; }; }; defaultValue: null }, { name: '_or'; type: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'INPUT_OBJECT'; name: 'AdministratorFilterParameter'; ofType: null; }; }; }; defaultValue: null }]; }; 'AdministratorList': { kind: 'OBJECT'; name: 'AdministratorList'; fields: { 'items': { name: 'items'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Administrator'; ofType: null; }; }; }; } }; 'totalItems': { name: 'totalItems'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Int'; ofType: null; }; } }; }; }; @@ -136,6 +137,7 @@ export type introspection_types = { 'CustomFieldConfig': { kind: 'UNION'; name: 'CustomFieldConfig'; fields: {}; possibleTypes: 'BooleanCustomFieldConfig' | 'DateTimeCustomFieldConfig' | 'FloatCustomFieldConfig' | 'IntCustomFieldConfig' | 'LocaleStringCustomFieldConfig' | 'LocaleTextCustomFieldConfig' | 'RelationCustomFieldConfig' | 'StringCustomFieldConfig' | 'StructCustomFieldConfig' | 'TextCustomFieldConfig'; }; 'CustomFields': { kind: 'OBJECT'; name: 'CustomFields'; fields: { 'Address': { name: 'Address'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'Administrator': { name: 'Administrator'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'ApiKey': { name: 'ApiKey'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'Asset': { name: 'Asset'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'Channel': { name: 'Channel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'Collection': { name: 'Collection'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'Customer': { name: 'Customer'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'CustomerGroup': { name: 'CustomerGroup'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'Facet': { name: 'Facet'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'FacetValue': { name: 'FacetValue'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'Fulfillment': { name: 'Fulfillment'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'GlobalSettings': { name: 'GlobalSettings'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'HistoryEntry': { name: 'HistoryEntry'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'Order': { name: 'Order'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'OrderLine': { name: 'OrderLine'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'Payment': { name: 'Payment'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'PaymentMethod': { name: 'PaymentMethod'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'Product': { name: 'Product'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'ProductOption': { name: 'ProductOption'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'ProductOptionGroup': { name: 'ProductOptionGroup'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'ProductVariant': { name: 'ProductVariant'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'ProductVariantPrice': { name: 'ProductVariantPrice'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'Promotion': { name: 'Promotion'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'Refund': { name: 'Refund'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'Region': { name: 'Region'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'Seller': { name: 'Seller'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'Session': { name: 'Session'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'ShippingLine': { name: 'ShippingLine'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'ShippingMethod': { name: 'ShippingMethod'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'StockLevel': { name: 'StockLevel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'StockLocation': { name: 'StockLocation'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'StockMovement': { name: 'StockMovement'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'TaxCategory': { name: 'TaxCategory'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'TaxRate': { name: 'TaxRate'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'User': { name: 'User'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'Zone': { name: 'Zone'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; }; }; 'Customer': { kind: 'OBJECT'; name: 'Customer'; fields: { 'addresses': { name: 'addresses'; type: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Address'; ofType: null; }; }; } }; 'createdAt': { name: 'createdAt'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; 'customFields': { name: 'customFields'; type: { kind: 'SCALAR'; name: 'JSON'; ofType: null; } }; 'emailAddress': { name: 'emailAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'firstName': { name: 'firstName'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'groups': { name: 'groups'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'CustomerGroup'; ofType: null; }; }; }; } }; 'history': { name: 'history'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'HistoryEntryList'; ofType: null; }; } }; 'id': { name: 'id'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ID'; ofType: null; }; } }; 'lastName': { name: 'lastName'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'orders': { name: 'orders'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'OrderList'; ofType: null; }; } }; 'phoneNumber': { name: 'phoneNumber'; type: { kind: 'SCALAR'; name: 'String'; ofType: null; } }; 'title': { name: 'title'; type: { kind: 'SCALAR'; name: 'String'; ofType: null; } }; 'updatedAt': { name: 'updatedAt'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; 'user': { name: 'user'; type: { kind: 'OBJECT'; name: 'User'; ofType: null; } }; }; }; + 'CustomerAccountStateError': { kind: 'OBJECT'; name: 'CustomerAccountStateError'; fields: { 'accountState': { name: 'accountState'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'errorCode': { name: 'errorCode'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'ErrorCode'; ofType: null; }; } }; 'message': { name: 'message'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; }; }; 'CustomerFilterParameter': { kind: 'INPUT_OBJECT'; name: 'CustomerFilterParameter'; isOneOf: false; inputFields: [{ name: 'postalCode'; type: { kind: 'INPUT_OBJECT'; name: 'StringOperators'; ofType: null; }; defaultValue: null }, { name: 'id'; type: { kind: 'INPUT_OBJECT'; name: 'IDOperators'; ofType: null; }; defaultValue: null }, { name: 'createdAt'; type: { kind: 'INPUT_OBJECT'; name: 'DateOperators'; ofType: null; }; defaultValue: null }, { name: 'updatedAt'; type: { kind: 'INPUT_OBJECT'; name: 'DateOperators'; ofType: null; }; defaultValue: null }, { name: 'title'; type: { kind: 'INPUT_OBJECT'; name: 'StringOperators'; ofType: null; }; defaultValue: null }, { name: 'firstName'; type: { kind: 'INPUT_OBJECT'; name: 'StringOperators'; ofType: null; }; defaultValue: null }, { name: 'lastName'; type: { kind: 'INPUT_OBJECT'; name: 'StringOperators'; ofType: null; }; defaultValue: null }, { name: 'phoneNumber'; type: { kind: 'INPUT_OBJECT'; name: 'StringOperators'; ofType: null; }; defaultValue: null }, { name: 'emailAddress'; type: { kind: 'INPUT_OBJECT'; name: 'StringOperators'; ofType: null; }; defaultValue: null }, { name: '_and'; type: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'INPUT_OBJECT'; name: 'CustomerFilterParameter'; ofType: null; }; }; }; defaultValue: null }, { name: '_or'; type: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'INPUT_OBJECT'; name: 'CustomerFilterParameter'; ofType: null; }; }; }; defaultValue: null }]; }; 'CustomerGroup': { kind: 'OBJECT'; name: 'CustomerGroup'; fields: { 'createdAt': { name: 'createdAt'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; 'customFields': { name: 'customFields'; type: { kind: 'SCALAR'; name: 'JSON'; ofType: null; } }; 'customers': { name: 'customers'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'CustomerList'; ofType: null; }; } }; 'id': { name: 'id'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ID'; ofType: null; }; } }; 'name': { name: 'name'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'updatedAt': { name: 'updatedAt'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; }; }; 'CustomerGroupFilterParameter': { kind: 'INPUT_OBJECT'; name: 'CustomerGroupFilterParameter'; isOneOf: false; inputFields: [{ name: 'id'; type: { kind: 'INPUT_OBJECT'; name: 'IDOperators'; ofType: null; }; defaultValue: null }, { name: 'createdAt'; type: { kind: 'INPUT_OBJECT'; name: 'DateOperators'; ofType: null; }; defaultValue: null }, { name: 'updatedAt'; type: { kind: 'INPUT_OBJECT'; name: 'DateOperators'; ofType: null; }; defaultValue: null }, { name: 'name'; type: { kind: 'INPUT_OBJECT'; name: 'StringOperators'; ofType: null; }; defaultValue: null }, { name: '_and'; type: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'INPUT_OBJECT'; name: 'CustomerGroupFilterParameter'; ofType: null; }; }; }; defaultValue: null }, { name: '_or'; type: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'INPUT_OBJECT'; name: 'CustomerGroupFilterParameter'; ofType: null; }; }; }; defaultValue: null }]; }; @@ -165,8 +167,8 @@ export type introspection_types = { 'EmptyOrderLineSelectionError': { kind: 'OBJECT'; name: 'EmptyOrderLineSelectionError'; fields: { 'errorCode': { name: 'errorCode'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'ErrorCode'; ofType: null; }; } }; 'message': { name: 'message'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; }; }; 'EntityCustomFields': { kind: 'OBJECT'; name: 'EntityCustomFields'; fields: { 'customFields': { name: 'customFields'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'entityName': { name: 'entityName'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; }; }; 'EntityDuplicatorDefinition': { kind: 'OBJECT'; name: 'EntityDuplicatorDefinition'; fields: { 'args': { name: 'args'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ConfigArgDefinition'; ofType: null; }; }; }; } }; 'code': { name: 'code'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'description': { name: 'description'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'forEntities': { name: 'forEntities'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; }; }; } }; 'requiresPermission': { name: 'requiresPermission'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'Permission'; ofType: null; }; }; }; } }; }; }; - 'ErrorCode': { name: 'ErrorCode'; enumValues: 'UNKNOWN_ERROR' | 'MIME_TYPE_ERROR' | 'LANGUAGE_NOT_AVAILABLE_ERROR' | 'DUPLICATE_ENTITY_ERROR' | 'FACET_IN_USE_ERROR' | 'CHANNEL_DEFAULT_LANGUAGE_ERROR' | 'SETTLE_PAYMENT_ERROR' | 'CANCEL_PAYMENT_ERROR' | 'EMPTY_ORDER_LINE_SELECTION_ERROR' | 'ITEMS_ALREADY_FULFILLED_ERROR' | 'INVALID_FULFILLMENT_HANDLER_ERROR' | 'CREATE_FULFILLMENT_ERROR' | 'INSUFFICIENT_STOCK_ON_HAND_ERROR' | 'MULTIPLE_ORDER_ERROR' | 'CANCEL_ACTIVE_ORDER_ERROR' | 'PAYMENT_ORDER_MISMATCH_ERROR' | 'REFUND_ORDER_STATE_ERROR' | 'NOTHING_TO_REFUND_ERROR' | 'ALREADY_REFUNDED_ERROR' | 'QUANTITY_TOO_GREAT_ERROR' | 'REFUND_AMOUNT_ERROR' | 'REFUND_STATE_TRANSITION_ERROR' | 'PAYMENT_STATE_TRANSITION_ERROR' | 'FULFILLMENT_STATE_TRANSITION_ERROR' | 'ORDER_MODIFICATION_STATE_ERROR' | 'NO_CHANGES_SPECIFIED_ERROR' | 'PAYMENT_METHOD_MISSING_ERROR' | 'REFUND_PAYMENT_ID_MISSING_ERROR' | 'MANUAL_PAYMENT_STATE_ERROR' | 'PRODUCT_OPTION_GROUP_IN_USE_ERROR' | 'PRODUCT_OPTION_IN_USE_ERROR' | 'MISSING_CONDITIONS_ERROR' | 'NATIVE_AUTH_STRATEGY_ERROR' | 'INVALID_CREDENTIALS_ERROR' | 'ORDER_STATE_TRANSITION_ERROR' | 'EMAIL_ADDRESS_CONFLICT_ERROR' | 'GUEST_CHECKOUT_ERROR' | 'ORDER_LIMIT_ERROR' | 'NEGATIVE_QUANTITY_ERROR' | 'INSUFFICIENT_STOCK_ERROR' | 'COUPON_CODE_INVALID_ERROR' | 'COUPON_CODE_EXPIRED_ERROR' | 'COUPON_CODE_LIMIT_ERROR' | 'ORDER_MODIFICATION_ERROR' | 'INELIGIBLE_SHIPPING_METHOD_ERROR' | 'NO_ACTIVE_ORDER_ERROR' | 'ORDER_INTERCEPTOR_ERROR'; }; - 'ErrorResult': { kind: 'INTERFACE'; name: 'ErrorResult'; fields: { 'errorCode': { name: 'errorCode'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'ErrorCode'; ofType: null; }; } }; 'message': { name: 'message'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; }; possibleTypes: 'AlreadyRefundedError' | 'CancelActiveOrderError' | 'CancelPaymentError' | 'ChannelDefaultLanguageError' | 'CouponCodeExpiredError' | 'CouponCodeInvalidError' | 'CouponCodeLimitError' | 'CreateFulfillmentError' | 'DuplicateEntityError' | 'EmailAddressConflictError' | 'EmptyOrderLineSelectionError' | 'FacetInUseError' | 'FulfillmentStateTransitionError' | 'GuestCheckoutError' | 'IneligibleShippingMethodError' | 'InsufficientStockError' | 'InsufficientStockOnHandError' | 'InvalidCredentialsError' | 'InvalidFulfillmentHandlerError' | 'ItemsAlreadyFulfilledError' | 'LanguageNotAvailableError' | 'ManualPaymentStateError' | 'MimeTypeError' | 'MissingConditionsError' | 'MultipleOrderError' | 'NativeAuthStrategyError' | 'NegativeQuantityError' | 'NoActiveOrderError' | 'NoChangesSpecifiedError' | 'NothingToRefundError' | 'OrderInterceptorError' | 'OrderLimitError' | 'OrderModificationError' | 'OrderModificationStateError' | 'OrderStateTransitionError' | 'PaymentMethodMissingError' | 'PaymentOrderMismatchError' | 'PaymentStateTransitionError' | 'ProductOptionGroupInUseError' | 'ProductOptionInUseError' | 'QuantityTooGreatError' | 'RefundAmountError' | 'RefundOrderStateError' | 'RefundPaymentIdMissingError' | 'RefundStateTransitionError' | 'SettlePaymentError'; }; + 'ErrorCode': { name: 'ErrorCode'; enumValues: 'UNKNOWN_ERROR' | 'MIME_TYPE_ERROR' | 'LANGUAGE_NOT_AVAILABLE_ERROR' | 'CUSTOMER_ACCOUNT_STATE_ERROR' | 'DUPLICATE_ENTITY_ERROR' | 'FACET_IN_USE_ERROR' | 'CHANNEL_DEFAULT_LANGUAGE_ERROR' | 'SETTLE_PAYMENT_ERROR' | 'CANCEL_PAYMENT_ERROR' | 'EMPTY_ORDER_LINE_SELECTION_ERROR' | 'ITEMS_ALREADY_FULFILLED_ERROR' | 'INVALID_FULFILLMENT_HANDLER_ERROR' | 'CREATE_FULFILLMENT_ERROR' | 'INSUFFICIENT_STOCK_ON_HAND_ERROR' | 'MULTIPLE_ORDER_ERROR' | 'CANCEL_ACTIVE_ORDER_ERROR' | 'PAYMENT_ORDER_MISMATCH_ERROR' | 'REFUND_ORDER_STATE_ERROR' | 'NOTHING_TO_REFUND_ERROR' | 'ALREADY_REFUNDED_ERROR' | 'QUANTITY_TOO_GREAT_ERROR' | 'REFUND_AMOUNT_ERROR' | 'REFUND_STATE_TRANSITION_ERROR' | 'PAYMENT_STATE_TRANSITION_ERROR' | 'FULFILLMENT_STATE_TRANSITION_ERROR' | 'ORDER_MODIFICATION_STATE_ERROR' | 'NO_CHANGES_SPECIFIED_ERROR' | 'PAYMENT_METHOD_MISSING_ERROR' | 'REFUND_PAYMENT_ID_MISSING_ERROR' | 'MANUAL_PAYMENT_STATE_ERROR' | 'PRODUCT_OPTION_GROUP_IN_USE_ERROR' | 'PRODUCT_OPTION_IN_USE_ERROR' | 'MISSING_CONDITIONS_ERROR' | 'NATIVE_AUTH_STRATEGY_ERROR' | 'INVALID_CREDENTIALS_ERROR' | 'ORDER_STATE_TRANSITION_ERROR' | 'EMAIL_ADDRESS_CONFLICT_ERROR' | 'GUEST_CHECKOUT_ERROR' | 'ORDER_LIMIT_ERROR' | 'NEGATIVE_QUANTITY_ERROR' | 'INSUFFICIENT_STOCK_ERROR' | 'COUPON_CODE_INVALID_ERROR' | 'COUPON_CODE_EXPIRED_ERROR' | 'COUPON_CODE_LIMIT_ERROR' | 'ORDER_MODIFICATION_ERROR' | 'INELIGIBLE_SHIPPING_METHOD_ERROR' | 'NO_ACTIVE_ORDER_ERROR' | 'ORDER_INTERCEPTOR_ERROR'; }; + 'ErrorResult': { kind: 'INTERFACE'; name: 'ErrorResult'; fields: { 'errorCode': { name: 'errorCode'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'ErrorCode'; ofType: null; }; } }; 'message': { name: 'message'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; }; possibleTypes: 'AlreadyRefundedError' | 'CancelActiveOrderError' | 'CancelPaymentError' | 'ChannelDefaultLanguageError' | 'CouponCodeExpiredError' | 'CouponCodeInvalidError' | 'CouponCodeLimitError' | 'CreateFulfillmentError' | 'CustomerAccountStateError' | 'DuplicateEntityError' | 'EmailAddressConflictError' | 'EmptyOrderLineSelectionError' | 'FacetInUseError' | 'FulfillmentStateTransitionError' | 'GuestCheckoutError' | 'IneligibleShippingMethodError' | 'InsufficientStockError' | 'InsufficientStockOnHandError' | 'InvalidCredentialsError' | 'InvalidFulfillmentHandlerError' | 'ItemsAlreadyFulfilledError' | 'LanguageNotAvailableError' | 'ManualPaymentStateError' | 'MimeTypeError' | 'MissingConditionsError' | 'MultipleOrderError' | 'NativeAuthStrategyError' | 'NegativeQuantityError' | 'NoActiveOrderError' | 'NoChangesSpecifiedError' | 'NothingToRefundError' | 'OrderInterceptorError' | 'OrderLimitError' | 'OrderModificationError' | 'OrderModificationStateError' | 'OrderStateTransitionError' | 'PaymentMethodMissingError' | 'PaymentOrderMismatchError' | 'PaymentStateTransitionError' | 'ProductOptionGroupInUseError' | 'ProductOptionInUseError' | 'QuantityTooGreatError' | 'RefundAmountError' | 'RefundOrderStateError' | 'RefundPaymentIdMissingError' | 'RefundStateTransitionError' | 'SettlePaymentError'; }; 'Facet': { kind: 'OBJECT'; name: 'Facet'; fields: { 'code': { name: 'code'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'createdAt': { name: 'createdAt'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; 'customFields': { name: 'customFields'; type: { kind: 'SCALAR'; name: 'JSON'; ofType: null; } }; 'id': { name: 'id'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ID'; ofType: null; }; } }; 'isPrivate': { name: 'isPrivate'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Boolean'; ofType: null; }; } }; 'languageCode': { name: 'languageCode'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'LanguageCode'; ofType: null; }; } }; 'name': { name: 'name'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'translations': { name: 'translations'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'FacetTranslation'; ofType: null; }; }; }; } }; 'updatedAt': { name: 'updatedAt'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; 'valueList': { name: 'valueList'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'FacetValueList'; ofType: null; }; } }; 'values': { name: 'values'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'FacetValue'; ofType: null; }; }; }; } }; }; }; 'FacetFilterParameter': { kind: 'INPUT_OBJECT'; name: 'FacetFilterParameter'; isOneOf: false; inputFields: [{ name: 'isPrivate'; type: { kind: 'INPUT_OBJECT'; name: 'BooleanOperators'; ofType: null; }; defaultValue: null }, { name: 'id'; type: { kind: 'INPUT_OBJECT'; name: 'IDOperators'; ofType: null; }; defaultValue: null }, { name: 'createdAt'; type: { kind: 'INPUT_OBJECT'; name: 'DateOperators'; ofType: null; }; defaultValue: null }, { name: 'updatedAt'; type: { kind: 'INPUT_OBJECT'; name: 'DateOperators'; ofType: null; }; defaultValue: null }, { name: 'languageCode'; type: { kind: 'INPUT_OBJECT'; name: 'StringOperators'; ofType: null; }; defaultValue: null }, { name: 'name'; type: { kind: 'INPUT_OBJECT'; name: 'StringOperators'; ofType: null; }; defaultValue: null }, { name: 'code'; type: { kind: 'INPUT_OBJECT'; name: 'StringOperators'; ofType: null; }; defaultValue: null }, { name: '_and'; type: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'INPUT_OBJECT'; name: 'FacetFilterParameter'; ofType: null; }; }; }; defaultValue: null }, { name: '_or'; type: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'INPUT_OBJECT'; name: 'FacetFilterParameter'; ofType: null; }; }; }; defaultValue: null }]; }; 'FacetInUseError': { kind: 'OBJECT'; name: 'FacetInUseError'; fields: { 'errorCode': { name: 'errorCode'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'ErrorCode'; ofType: null; }; } }; 'facetCode': { name: 'facetCode'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'message': { name: 'message'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'productCount': { name: 'productCount'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Int'; ofType: null; }; } }; 'variantCount': { name: 'variantCount'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Int'; ofType: null; }; } }; }; }; @@ -243,7 +245,7 @@ export type introspection_types = { 'Money': unknown; 'MoveCollectionInput': { kind: 'INPUT_OBJECT'; name: 'MoveCollectionInput'; isOneOf: false; inputFields: [{ name: 'collectionId'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ID'; ofType: null; }; }; defaultValue: null }, { name: 'parentId'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ID'; ofType: null; }; }; defaultValue: null }, { name: 'index'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Int'; ofType: null; }; }; defaultValue: null }]; }; 'MultipleOrderError': { kind: 'OBJECT'; name: 'MultipleOrderError'; fields: { 'errorCode': { name: 'errorCode'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'ErrorCode'; ofType: null; }; } }; 'message': { name: 'message'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; }; }; - 'Mutation': { kind: 'OBJECT'; name: 'Mutation'; fields: { 'addCustomersToGroup': { name: 'addCustomersToGroup'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'CustomerGroup'; ofType: null; }; } }; 'addFulfillmentToOrder': { name: 'addFulfillmentToOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'AddFulfillmentToOrderResult'; ofType: null; }; } }; 'addItemToDraftOrder': { name: 'addItemToDraftOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'UpdateOrderItemsResult'; ofType: null; }; } }; 'addManualPaymentToOrder': { name: 'addManualPaymentToOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'AddManualPaymentToOrderResult'; ofType: null; }; } }; 'addMembersToZone': { name: 'addMembersToZone'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Zone'; ofType: null; }; } }; 'addNoteToCustomer': { name: 'addNoteToCustomer'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Customer'; ofType: null; }; } }; 'addNoteToOrder': { name: 'addNoteToOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Order'; ofType: null; }; } }; 'addOptionGroupToProduct': { name: 'addOptionGroupToProduct'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Product'; ofType: null; }; } }; 'adjustDraftOrderLine': { name: 'adjustDraftOrderLine'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'UpdateOrderItemsResult'; ofType: null; }; } }; 'applyCouponCodeToDraftOrder': { name: 'applyCouponCodeToDraftOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'ApplyCouponCodeResult'; ofType: null; }; } }; 'assignAssetsToChannel': { name: 'assignAssetsToChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Asset'; ofType: null; }; }; }; } }; 'assignCollectionsToChannel': { name: 'assignCollectionsToChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Collection'; ofType: null; }; }; }; } }; 'assignFacetsToChannel': { name: 'assignFacetsToChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Facet'; ofType: null; }; }; }; } }; 'assignPaymentMethodsToChannel': { name: 'assignPaymentMethodsToChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaymentMethod'; ofType: null; }; }; }; } }; 'assignProductOptionGroupsToChannel': { name: 'assignProductOptionGroupsToChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ProductOptionGroup'; ofType: null; }; }; }; } }; 'assignProductVariantsToChannel': { name: 'assignProductVariantsToChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ProductVariant'; ofType: null; }; }; }; } }; 'assignProductsToChannel': { name: 'assignProductsToChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Product'; ofType: null; }; }; }; } }; 'assignPromotionsToChannel': { name: 'assignPromotionsToChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Promotion'; ofType: null; }; }; }; } }; 'assignRoleToAdministrator': { name: 'assignRoleToAdministrator'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Administrator'; ofType: null; }; } }; 'assignShippingMethodsToChannel': { name: 'assignShippingMethodsToChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ShippingMethod'; ofType: null; }; }; }; } }; 'assignStockLocationsToChannel': { name: 'assignStockLocationsToChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'StockLocation'; ofType: null; }; }; }; } }; 'authenticate': { name: 'authenticate'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'AuthenticationResult'; ofType: null; }; } }; 'cancelJob': { name: 'cancelJob'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Job'; ofType: null; }; } }; 'cancelOrder': { name: 'cancelOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CancelOrderResult'; ofType: null; }; } }; 'cancelPayment': { name: 'cancelPayment'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CancelPaymentResult'; ofType: null; }; } }; 'createAdministrator': { name: 'createAdministrator'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Administrator'; ofType: null; }; } }; 'createApiKey': { name: 'createApiKey'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'CreateApiKeyResult'; ofType: null; }; } }; 'createAssets': { name: 'createAssets'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CreateAssetResult'; ofType: null; }; }; }; } }; 'createChannel': { name: 'createChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CreateChannelResult'; ofType: null; }; } }; 'createCollection': { name: 'createCollection'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Collection'; ofType: null; }; } }; 'createCountry': { name: 'createCountry'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Country'; ofType: null; }; } }; 'createCustomer': { name: 'createCustomer'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CreateCustomerResult'; ofType: null; }; } }; 'createCustomerAddress': { name: 'createCustomerAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Address'; ofType: null; }; } }; 'createCustomerGroup': { name: 'createCustomerGroup'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'CustomerGroup'; ofType: null; }; } }; 'createDraftOrder': { name: 'createDraftOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Order'; ofType: null; }; } }; 'createFacet': { name: 'createFacet'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Facet'; ofType: null; }; } }; 'createFacetValue': { name: 'createFacetValue'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'FacetValue'; ofType: null; }; } }; 'createFacetValues': { name: 'createFacetValues'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'FacetValue'; ofType: null; }; }; }; } }; 'createPaymentMethod': { name: 'createPaymentMethod'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaymentMethod'; ofType: null; }; } }; 'createProduct': { name: 'createProduct'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Product'; ofType: null; }; } }; 'createProductOption': { name: 'createProductOption'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ProductOption'; ofType: null; }; } }; 'createProductOptionGroup': { name: 'createProductOptionGroup'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ProductOptionGroup'; ofType: null; }; } }; 'createProductVariants': { name: 'createProductVariants'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'OBJECT'; name: 'ProductVariant'; ofType: null; }; }; } }; 'createPromotion': { name: 'createPromotion'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CreatePromotionResult'; ofType: null; }; } }; 'createProvince': { name: 'createProvince'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Province'; ofType: null; }; } }; 'createRole': { name: 'createRole'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Role'; ofType: null; }; } }; 'createSeller': { name: 'createSeller'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Seller'; ofType: null; }; } }; 'createShippingMethod': { name: 'createShippingMethod'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ShippingMethod'; ofType: null; }; } }; 'createStockLocation': { name: 'createStockLocation'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'StockLocation'; ofType: null; }; } }; 'createTag': { name: 'createTag'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Tag'; ofType: null; }; } }; 'createTaxCategory': { name: 'createTaxCategory'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'TaxCategory'; ofType: null; }; } }; 'createTaxRate': { name: 'createTaxRate'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'TaxRate'; ofType: null; }; } }; 'createZone': { name: 'createZone'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Zone'; ofType: null; }; } }; 'deleteAdministrator': { name: 'deleteAdministrator'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteAdministrators': { name: 'deleteAdministrators'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteApiKeys': { name: 'deleteApiKeys'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteAsset': { name: 'deleteAsset'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteAssets': { name: 'deleteAssets'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteChannel': { name: 'deleteChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteChannels': { name: 'deleteChannels'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteCollection': { name: 'deleteCollection'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteCollections': { name: 'deleteCollections'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteCountries': { name: 'deleteCountries'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteCountry': { name: 'deleteCountry'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteCustomer': { name: 'deleteCustomer'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteCustomerAddress': { name: 'deleteCustomerAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Success'; ofType: null; }; } }; 'deleteCustomerGroup': { name: 'deleteCustomerGroup'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteCustomerGroups': { name: 'deleteCustomerGroups'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteCustomerNote': { name: 'deleteCustomerNote'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteCustomers': { name: 'deleteCustomers'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteDraftOrder': { name: 'deleteDraftOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteFacet': { name: 'deleteFacet'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteFacetValues': { name: 'deleteFacetValues'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteFacets': { name: 'deleteFacets'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteOrderNote': { name: 'deleteOrderNote'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deletePaymentMethod': { name: 'deletePaymentMethod'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deletePaymentMethods': { name: 'deletePaymentMethods'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteProduct': { name: 'deleteProduct'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteProductOption': { name: 'deleteProductOption'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteProductOptionGroup': { name: 'deleteProductOptionGroup'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteProductOptionGroups': { name: 'deleteProductOptionGroups'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteProductVariant': { name: 'deleteProductVariant'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteProductVariants': { name: 'deleteProductVariants'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteProducts': { name: 'deleteProducts'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deletePromotion': { name: 'deletePromotion'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deletePromotions': { name: 'deletePromotions'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteProvince': { name: 'deleteProvince'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteRole': { name: 'deleteRole'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteRoles': { name: 'deleteRoles'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteSeller': { name: 'deleteSeller'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteSellers': { name: 'deleteSellers'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteShippingMethod': { name: 'deleteShippingMethod'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteShippingMethods': { name: 'deleteShippingMethods'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteStockLocation': { name: 'deleteStockLocation'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteStockLocations': { name: 'deleteStockLocations'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteTag': { name: 'deleteTag'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteTaxCategories': { name: 'deleteTaxCategories'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteTaxCategory': { name: 'deleteTaxCategory'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteTaxRate': { name: 'deleteTaxRate'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteTaxRates': { name: 'deleteTaxRates'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteZone': { name: 'deleteZone'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteZones': { name: 'deleteZones'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'duplicateEntity': { name: 'duplicateEntity'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'DuplicateEntityResult'; ofType: null; }; } }; 'flushBufferedJobs': { name: 'flushBufferedJobs'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Success'; ofType: null; }; } }; 'importProducts': { name: 'importProducts'; type: { kind: 'OBJECT'; name: 'ImportInfo'; ofType: null; } }; 'login': { name: 'login'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'NativeAuthenticationResult'; ofType: null; }; } }; 'logout': { name: 'logout'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Success'; ofType: null; }; } }; 'modifyOrder': { name: 'modifyOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'ModifyOrderResult'; ofType: null; }; } }; 'moveCollection': { name: 'moveCollection'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Collection'; ofType: null; }; } }; 'refundOrder': { name: 'refundOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'RefundOrderResult'; ofType: null; }; } }; 'reindex': { name: 'reindex'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Job'; ofType: null; }; } }; 'removeCollectionsFromChannel': { name: 'removeCollectionsFromChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Collection'; ofType: null; }; }; }; } }; 'removeCouponCodeFromDraftOrder': { name: 'removeCouponCodeFromDraftOrder'; type: { kind: 'OBJECT'; name: 'Order'; ofType: null; } }; 'removeCustomersFromGroup': { name: 'removeCustomersFromGroup'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'CustomerGroup'; ofType: null; }; } }; 'removeDraftOrderLine': { name: 'removeDraftOrderLine'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'RemoveOrderItemsResult'; ofType: null; }; } }; 'removeFacetsFromChannel': { name: 'removeFacetsFromChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'RemoveFacetFromChannelResult'; ofType: null; }; }; }; } }; 'removeMembersFromZone': { name: 'removeMembersFromZone'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Zone'; ofType: null; }; } }; 'removeOptionGroupFromProduct': { name: 'removeOptionGroupFromProduct'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'RemoveOptionGroupFromProductResult'; ofType: null; }; } }; 'removePaymentMethodsFromChannel': { name: 'removePaymentMethodsFromChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaymentMethod'; ofType: null; }; }; }; } }; 'removeProductOptionGroupsFromChannel': { name: 'removeProductOptionGroupsFromChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'RemoveProductOptionGroupFromChannelResult'; ofType: null; }; }; }; } }; 'removeProductVariantsFromChannel': { name: 'removeProductVariantsFromChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ProductVariant'; ofType: null; }; }; }; } }; 'removeProductsFromChannel': { name: 'removeProductsFromChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Product'; ofType: null; }; }; }; } }; 'removePromotionsFromChannel': { name: 'removePromotionsFromChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Promotion'; ofType: null; }; }; }; } }; 'removeSettledJobs': { name: 'removeSettledJobs'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Int'; ofType: null; }; } }; 'removeShippingMethodsFromChannel': { name: 'removeShippingMethodsFromChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ShippingMethod'; ofType: null; }; }; }; } }; 'removeStockLocationsFromChannel': { name: 'removeStockLocationsFromChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'StockLocation'; ofType: null; }; }; }; } }; 'rotateApiKey': { name: 'rotateApiKey'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'RotateApiKeyResult'; ofType: null; }; } }; 'runPendingSearchIndexUpdates': { name: 'runPendingSearchIndexUpdates'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Success'; ofType: null; }; } }; 'runScheduledTask': { name: 'runScheduledTask'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Success'; ofType: null; }; } }; 'setCustomerForDraftOrder': { name: 'setCustomerForDraftOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'SetCustomerForDraftOrderResult'; ofType: null; }; } }; 'setDraftOrderBillingAddress': { name: 'setDraftOrderBillingAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Order'; ofType: null; }; } }; 'setDraftOrderCustomFields': { name: 'setDraftOrderCustomFields'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Order'; ofType: null; }; } }; 'setDraftOrderShippingAddress': { name: 'setDraftOrderShippingAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Order'; ofType: null; }; } }; 'setDraftOrderShippingMethod': { name: 'setDraftOrderShippingMethod'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'SetOrderShippingMethodResult'; ofType: null; }; } }; 'setOrderCustomFields': { name: 'setOrderCustomFields'; type: { kind: 'OBJECT'; name: 'Order'; ofType: null; } }; 'setOrderCustomer': { name: 'setOrderCustomer'; type: { kind: 'OBJECT'; name: 'Order'; ofType: null; } }; 'setSettingsStoreValue': { name: 'setSettingsStoreValue'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'SetSettingsStoreValueResult'; ofType: null; }; } }; 'setSettingsStoreValues': { name: 'setSettingsStoreValues'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'SetSettingsStoreValueResult'; ofType: null; }; }; }; } }; 'settlePayment': { name: 'settlePayment'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'SettlePaymentResult'; ofType: null; }; } }; 'settleRefund': { name: 'settleRefund'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'SettleRefundResult'; ofType: null; }; } }; 'transitionFulfillmentToState': { name: 'transitionFulfillmentToState'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'TransitionFulfillmentToStateResult'; ofType: null; }; } }; 'transitionOrderToState': { name: 'transitionOrderToState'; type: { kind: 'UNION'; name: 'TransitionOrderToStateResult'; ofType: null; } }; 'transitionPaymentToState': { name: 'transitionPaymentToState'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'TransitionPaymentToStateResult'; ofType: null; }; } }; 'unsetDraftOrderBillingAddress': { name: 'unsetDraftOrderBillingAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Order'; ofType: null; }; } }; 'unsetDraftOrderShippingAddress': { name: 'unsetDraftOrderShippingAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Order'; ofType: null; }; } }; 'updateActiveAdministrator': { name: 'updateActiveAdministrator'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Administrator'; ofType: null; }; } }; 'updateAdministrator': { name: 'updateAdministrator'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Administrator'; ofType: null; }; } }; 'updateApiKey': { name: 'updateApiKey'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ApiKey'; ofType: null; }; } }; 'updateAsset': { name: 'updateAsset'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Asset'; ofType: null; }; } }; 'updateChannel': { name: 'updateChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'UpdateChannelResult'; ofType: null; }; } }; 'updateCollection': { name: 'updateCollection'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Collection'; ofType: null; }; } }; 'updateCountry': { name: 'updateCountry'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Country'; ofType: null; }; } }; 'updateCustomer': { name: 'updateCustomer'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'UpdateCustomerResult'; ofType: null; }; } }; 'updateCustomerAddress': { name: 'updateCustomerAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Address'; ofType: null; }; } }; 'updateCustomerGroup': { name: 'updateCustomerGroup'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'CustomerGroup'; ofType: null; }; } }; 'updateCustomerNote': { name: 'updateCustomerNote'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'HistoryEntry'; ofType: null; }; } }; 'updateFacet': { name: 'updateFacet'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Facet'; ofType: null; }; } }; 'updateFacetValue': { name: 'updateFacetValue'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'FacetValue'; ofType: null; }; } }; 'updateFacetValues': { name: 'updateFacetValues'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'FacetValue'; ofType: null; }; }; }; } }; 'updateGlobalSettings': { name: 'updateGlobalSettings'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'UpdateGlobalSettingsResult'; ofType: null; }; } }; 'updateOrderNote': { name: 'updateOrderNote'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'HistoryEntry'; ofType: null; }; } }; 'updatePaymentMethod': { name: 'updatePaymentMethod'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaymentMethod'; ofType: null; }; } }; 'updateProduct': { name: 'updateProduct'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Product'; ofType: null; }; } }; 'updateProductOption': { name: 'updateProductOption'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ProductOption'; ofType: null; }; } }; 'updateProductOptionGroup': { name: 'updateProductOptionGroup'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ProductOptionGroup'; ofType: null; }; } }; 'updateProductVariant': { name: 'updateProductVariant'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ProductVariant'; ofType: null; }; } }; 'updateProductVariants': { name: 'updateProductVariants'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'OBJECT'; name: 'ProductVariant'; ofType: null; }; }; } }; 'updateProducts': { name: 'updateProducts'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Product'; ofType: null; }; }; }; } }; 'updatePromotion': { name: 'updatePromotion'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'UpdatePromotionResult'; ofType: null; }; } }; 'updateProvince': { name: 'updateProvince'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Province'; ofType: null; }; } }; 'updateRole': { name: 'updateRole'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Role'; ofType: null; }; } }; 'updateScheduledTask': { name: 'updateScheduledTask'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ScheduledTask'; ofType: null; }; } }; 'updateSeller': { name: 'updateSeller'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Seller'; ofType: null; }; } }; 'updateShippingMethod': { name: 'updateShippingMethod'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ShippingMethod'; ofType: null; }; } }; 'updateStockLocation': { name: 'updateStockLocation'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'StockLocation'; ofType: null; }; } }; 'updateTag': { name: 'updateTag'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Tag'; ofType: null; }; } }; 'updateTaxCategory': { name: 'updateTaxCategory'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'TaxCategory'; ofType: null; }; } }; 'updateTaxRate': { name: 'updateTaxRate'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'TaxRate'; ofType: null; }; } }; 'updateZone': { name: 'updateZone'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Zone'; ofType: null; }; } }; }; }; + 'Mutation': { kind: 'OBJECT'; name: 'Mutation'; fields: { 'addCustomersToGroup': { name: 'addCustomersToGroup'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'CustomerGroup'; ofType: null; }; } }; 'addFulfillmentToOrder': { name: 'addFulfillmentToOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'AddFulfillmentToOrderResult'; ofType: null; }; } }; 'addItemToDraftOrder': { name: 'addItemToDraftOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'UpdateOrderItemsResult'; ofType: null; }; } }; 'addManualPaymentToOrder': { name: 'addManualPaymentToOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'AddManualPaymentToOrderResult'; ofType: null; }; } }; 'addMembersToZone': { name: 'addMembersToZone'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Zone'; ofType: null; }; } }; 'addNoteToCustomer': { name: 'addNoteToCustomer'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Customer'; ofType: null; }; } }; 'addNoteToOrder': { name: 'addNoteToOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Order'; ofType: null; }; } }; 'addOptionGroupToProduct': { name: 'addOptionGroupToProduct'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Product'; ofType: null; }; } }; 'adjustDraftOrderLine': { name: 'adjustDraftOrderLine'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'UpdateOrderItemsResult'; ofType: null; }; } }; 'applyCouponCodeToDraftOrder': { name: 'applyCouponCodeToDraftOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'ApplyCouponCodeResult'; ofType: null; }; } }; 'assignAssetsToChannel': { name: 'assignAssetsToChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Asset'; ofType: null; }; }; }; } }; 'assignCollectionsToChannel': { name: 'assignCollectionsToChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Collection'; ofType: null; }; }; }; } }; 'assignFacetsToChannel': { name: 'assignFacetsToChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Facet'; ofType: null; }; }; }; } }; 'assignPaymentMethodsToChannel': { name: 'assignPaymentMethodsToChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaymentMethod'; ofType: null; }; }; }; } }; 'assignProductOptionGroupsToChannel': { name: 'assignProductOptionGroupsToChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ProductOptionGroup'; ofType: null; }; }; }; } }; 'assignProductVariantsToChannel': { name: 'assignProductVariantsToChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ProductVariant'; ofType: null; }; }; }; } }; 'assignProductsToChannel': { name: 'assignProductsToChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Product'; ofType: null; }; }; }; } }; 'assignPromotionsToChannel': { name: 'assignPromotionsToChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Promotion'; ofType: null; }; }; }; } }; 'assignRoleToAdministrator': { name: 'assignRoleToAdministrator'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Administrator'; ofType: null; }; } }; 'assignShippingMethodsToChannel': { name: 'assignShippingMethodsToChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ShippingMethod'; ofType: null; }; }; }; } }; 'assignStockLocationsToChannel': { name: 'assignStockLocationsToChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'StockLocation'; ofType: null; }; }; }; } }; 'authenticate': { name: 'authenticate'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'AuthenticationResult'; ofType: null; }; } }; 'cancelJob': { name: 'cancelJob'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Job'; ofType: null; }; } }; 'cancelOrder': { name: 'cancelOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CancelOrderResult'; ofType: null; }; } }; 'cancelPayment': { name: 'cancelPayment'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CancelPaymentResult'; ofType: null; }; } }; 'createAdministrator': { name: 'createAdministrator'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Administrator'; ofType: null; }; } }; 'createApiKey': { name: 'createApiKey'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'CreateApiKeyResult'; ofType: null; }; } }; 'createAssets': { name: 'createAssets'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CreateAssetResult'; ofType: null; }; }; }; } }; 'createChannel': { name: 'createChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CreateChannelResult'; ofType: null; }; } }; 'createCollection': { name: 'createCollection'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Collection'; ofType: null; }; } }; 'createCountry': { name: 'createCountry'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Country'; ofType: null; }; } }; 'createCustomer': { name: 'createCustomer'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CreateCustomerResult'; ofType: null; }; } }; 'createCustomerAddress': { name: 'createCustomerAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Address'; ofType: null; }; } }; 'createCustomerGroup': { name: 'createCustomerGroup'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'CustomerGroup'; ofType: null; }; } }; 'createDraftOrder': { name: 'createDraftOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Order'; ofType: null; }; } }; 'createFacet': { name: 'createFacet'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Facet'; ofType: null; }; } }; 'createFacetValue': { name: 'createFacetValue'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'FacetValue'; ofType: null; }; } }; 'createFacetValues': { name: 'createFacetValues'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'FacetValue'; ofType: null; }; }; }; } }; 'createPaymentMethod': { name: 'createPaymentMethod'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaymentMethod'; ofType: null; }; } }; 'createProduct': { name: 'createProduct'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Product'; ofType: null; }; } }; 'createProductOption': { name: 'createProductOption'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ProductOption'; ofType: null; }; } }; 'createProductOptionGroup': { name: 'createProductOptionGroup'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ProductOptionGroup'; ofType: null; }; } }; 'createProductVariants': { name: 'createProductVariants'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'OBJECT'; name: 'ProductVariant'; ofType: null; }; }; } }; 'createPromotion': { name: 'createPromotion'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CreatePromotionResult'; ofType: null; }; } }; 'createProvince': { name: 'createProvince'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Province'; ofType: null; }; } }; 'createRole': { name: 'createRole'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Role'; ofType: null; }; } }; 'createSeller': { name: 'createSeller'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Seller'; ofType: null; }; } }; 'createShippingMethod': { name: 'createShippingMethod'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ShippingMethod'; ofType: null; }; } }; 'createStockLocation': { name: 'createStockLocation'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'StockLocation'; ofType: null; }; } }; 'createTag': { name: 'createTag'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Tag'; ofType: null; }; } }; 'createTaxCategory': { name: 'createTaxCategory'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'TaxCategory'; ofType: null; }; } }; 'createTaxRate': { name: 'createTaxRate'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'TaxRate'; ofType: null; }; } }; 'createZone': { name: 'createZone'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Zone'; ofType: null; }; } }; 'deleteAdministrator': { name: 'deleteAdministrator'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteAdministrators': { name: 'deleteAdministrators'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteApiKeys': { name: 'deleteApiKeys'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteAsset': { name: 'deleteAsset'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteAssets': { name: 'deleteAssets'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteChannel': { name: 'deleteChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteChannels': { name: 'deleteChannels'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteCollection': { name: 'deleteCollection'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteCollections': { name: 'deleteCollections'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteCountries': { name: 'deleteCountries'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteCountry': { name: 'deleteCountry'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteCustomer': { name: 'deleteCustomer'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteCustomerAddress': { name: 'deleteCustomerAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Success'; ofType: null; }; } }; 'deleteCustomerGroup': { name: 'deleteCustomerGroup'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteCustomerGroups': { name: 'deleteCustomerGroups'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteCustomerNote': { name: 'deleteCustomerNote'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteCustomers': { name: 'deleteCustomers'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteDraftOrder': { name: 'deleteDraftOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteFacet': { name: 'deleteFacet'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteFacetValues': { name: 'deleteFacetValues'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteFacets': { name: 'deleteFacets'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteOrderNote': { name: 'deleteOrderNote'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deletePaymentMethod': { name: 'deletePaymentMethod'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deletePaymentMethods': { name: 'deletePaymentMethods'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteProduct': { name: 'deleteProduct'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteProductOption': { name: 'deleteProductOption'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteProductOptionGroup': { name: 'deleteProductOptionGroup'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteProductOptionGroups': { name: 'deleteProductOptionGroups'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteProductVariant': { name: 'deleteProductVariant'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteProductVariants': { name: 'deleteProductVariants'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteProducts': { name: 'deleteProducts'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deletePromotion': { name: 'deletePromotion'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deletePromotions': { name: 'deletePromotions'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteProvince': { name: 'deleteProvince'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteRole': { name: 'deleteRole'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteRoles': { name: 'deleteRoles'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteSeller': { name: 'deleteSeller'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteSellers': { name: 'deleteSellers'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteShippingMethod': { name: 'deleteShippingMethod'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteShippingMethods': { name: 'deleteShippingMethods'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteStockLocation': { name: 'deleteStockLocation'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteStockLocations': { name: 'deleteStockLocations'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteTag': { name: 'deleteTag'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteTaxCategories': { name: 'deleteTaxCategories'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteTaxCategory': { name: 'deleteTaxCategory'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteTaxRate': { name: 'deleteTaxRate'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteTaxRates': { name: 'deleteTaxRates'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteZone': { name: 'deleteZone'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteZones': { name: 'deleteZones'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'duplicateEntity': { name: 'duplicateEntity'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'DuplicateEntityResult'; ofType: null; }; } }; 'flushBufferedJobs': { name: 'flushBufferedJobs'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Success'; ofType: null; }; } }; 'importProducts': { name: 'importProducts'; type: { kind: 'OBJECT'; name: 'ImportInfo'; ofType: null; } }; 'login': { name: 'login'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'NativeAuthenticationResult'; ofType: null; }; } }; 'logout': { name: 'logout'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Success'; ofType: null; }; } }; 'modifyOrder': { name: 'modifyOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'ModifyOrderResult'; ofType: null; }; } }; 'moveCollection': { name: 'moveCollection'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Collection'; ofType: null; }; } }; 'refundOrder': { name: 'refundOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'RefundOrderResult'; ofType: null; }; } }; 'reindex': { name: 'reindex'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Job'; ofType: null; }; } }; 'removeCollectionsFromChannel': { name: 'removeCollectionsFromChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Collection'; ofType: null; }; }; }; } }; 'removeCouponCodeFromDraftOrder': { name: 'removeCouponCodeFromDraftOrder'; type: { kind: 'OBJECT'; name: 'Order'; ofType: null; } }; 'removeCustomersFromGroup': { name: 'removeCustomersFromGroup'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'CustomerGroup'; ofType: null; }; } }; 'removeDraftOrderLine': { name: 'removeDraftOrderLine'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'RemoveOrderItemsResult'; ofType: null; }; } }; 'removeFacetsFromChannel': { name: 'removeFacetsFromChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'RemoveFacetFromChannelResult'; ofType: null; }; }; }; } }; 'removeMembersFromZone': { name: 'removeMembersFromZone'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Zone'; ofType: null; }; } }; 'removeOptionGroupFromProduct': { name: 'removeOptionGroupFromProduct'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'RemoveOptionGroupFromProductResult'; ofType: null; }; } }; 'removePaymentMethodsFromChannel': { name: 'removePaymentMethodsFromChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaymentMethod'; ofType: null; }; }; }; } }; 'removeProductOptionGroupsFromChannel': { name: 'removeProductOptionGroupsFromChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'RemoveProductOptionGroupFromChannelResult'; ofType: null; }; }; }; } }; 'removeProductVariantsFromChannel': { name: 'removeProductVariantsFromChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ProductVariant'; ofType: null; }; }; }; } }; 'removeProductsFromChannel': { name: 'removeProductsFromChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Product'; ofType: null; }; }; }; } }; 'removePromotionsFromChannel': { name: 'removePromotionsFromChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Promotion'; ofType: null; }; }; }; } }; 'removeSettledJobs': { name: 'removeSettledJobs'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Int'; ofType: null; }; } }; 'removeShippingMethodsFromChannel': { name: 'removeShippingMethodsFromChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ShippingMethod'; ofType: null; }; }; }; } }; 'removeStockLocationsFromChannel': { name: 'removeStockLocationsFromChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'StockLocation'; ofType: null; }; }; }; } }; 'resetCustomerPasswordAsAdmin': { name: 'resetCustomerPasswordAsAdmin'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'ResetCustomerPasswordAsAdminResult'; ofType: null; }; } }; 'rotateApiKey': { name: 'rotateApiKey'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'RotateApiKeyResult'; ofType: null; }; } }; 'runPendingSearchIndexUpdates': { name: 'runPendingSearchIndexUpdates'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Success'; ofType: null; }; } }; 'runScheduledTask': { name: 'runScheduledTask'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Success'; ofType: null; }; } }; 'setCustomerForDraftOrder': { name: 'setCustomerForDraftOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'SetCustomerForDraftOrderResult'; ofType: null; }; } }; 'setDraftOrderBillingAddress': { name: 'setDraftOrderBillingAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Order'; ofType: null; }; } }; 'setDraftOrderCustomFields': { name: 'setDraftOrderCustomFields'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Order'; ofType: null; }; } }; 'setDraftOrderShippingAddress': { name: 'setDraftOrderShippingAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Order'; ofType: null; }; } }; 'setDraftOrderShippingMethod': { name: 'setDraftOrderShippingMethod'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'SetOrderShippingMethodResult'; ofType: null; }; } }; 'setOrderCustomFields': { name: 'setOrderCustomFields'; type: { kind: 'OBJECT'; name: 'Order'; ofType: null; } }; 'setOrderCustomer': { name: 'setOrderCustomer'; type: { kind: 'OBJECT'; name: 'Order'; ofType: null; } }; 'setSettingsStoreValue': { name: 'setSettingsStoreValue'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'SetSettingsStoreValueResult'; ofType: null; }; } }; 'setSettingsStoreValues': { name: 'setSettingsStoreValues'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'SetSettingsStoreValueResult'; ofType: null; }; }; }; } }; 'settlePayment': { name: 'settlePayment'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'SettlePaymentResult'; ofType: null; }; } }; 'settleRefund': { name: 'settleRefund'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'SettleRefundResult'; ofType: null; }; } }; 'transitionFulfillmentToState': { name: 'transitionFulfillmentToState'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'TransitionFulfillmentToStateResult'; ofType: null; }; } }; 'transitionOrderToState': { name: 'transitionOrderToState'; type: { kind: 'UNION'; name: 'TransitionOrderToStateResult'; ofType: null; } }; 'transitionPaymentToState': { name: 'transitionPaymentToState'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'TransitionPaymentToStateResult'; ofType: null; }; } }; 'unsetDraftOrderBillingAddress': { name: 'unsetDraftOrderBillingAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Order'; ofType: null; }; } }; 'unsetDraftOrderShippingAddress': { name: 'unsetDraftOrderShippingAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Order'; ofType: null; }; } }; 'updateActiveAdministrator': { name: 'updateActiveAdministrator'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Administrator'; ofType: null; }; } }; 'updateAdministrator': { name: 'updateAdministrator'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Administrator'; ofType: null; }; } }; 'updateApiKey': { name: 'updateApiKey'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ApiKey'; ofType: null; }; } }; 'updateAsset': { name: 'updateAsset'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Asset'; ofType: null; }; } }; 'updateChannel': { name: 'updateChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'UpdateChannelResult'; ofType: null; }; } }; 'updateCollection': { name: 'updateCollection'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Collection'; ofType: null; }; } }; 'updateCountry': { name: 'updateCountry'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Country'; ofType: null; }; } }; 'updateCustomer': { name: 'updateCustomer'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'UpdateCustomerResult'; ofType: null; }; } }; 'updateCustomerAddress': { name: 'updateCustomerAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Address'; ofType: null; }; } }; 'updateCustomerGroup': { name: 'updateCustomerGroup'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'CustomerGroup'; ofType: null; }; } }; 'updateCustomerNote': { name: 'updateCustomerNote'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'HistoryEntry'; ofType: null; }; } }; 'updateFacet': { name: 'updateFacet'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Facet'; ofType: null; }; } }; 'updateFacetValue': { name: 'updateFacetValue'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'FacetValue'; ofType: null; }; } }; 'updateFacetValues': { name: 'updateFacetValues'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'FacetValue'; ofType: null; }; }; }; } }; 'updateGlobalSettings': { name: 'updateGlobalSettings'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'UpdateGlobalSettingsResult'; ofType: null; }; } }; 'updateOrderNote': { name: 'updateOrderNote'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'HistoryEntry'; ofType: null; }; } }; 'updatePaymentMethod': { name: 'updatePaymentMethod'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaymentMethod'; ofType: null; }; } }; 'updateProduct': { name: 'updateProduct'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Product'; ofType: null; }; } }; 'updateProductOption': { name: 'updateProductOption'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ProductOption'; ofType: null; }; } }; 'updateProductOptionGroup': { name: 'updateProductOptionGroup'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ProductOptionGroup'; ofType: null; }; } }; 'updateProductVariant': { name: 'updateProductVariant'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ProductVariant'; ofType: null; }; } }; 'updateProductVariants': { name: 'updateProductVariants'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'OBJECT'; name: 'ProductVariant'; ofType: null; }; }; } }; 'updateProducts': { name: 'updateProducts'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Product'; ofType: null; }; }; }; } }; 'updatePromotion': { name: 'updatePromotion'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'UpdatePromotionResult'; ofType: null; }; } }; 'updateProvince': { name: 'updateProvince'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Province'; ofType: null; }; } }; 'updateRole': { name: 'updateRole'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Role'; ofType: null; }; } }; 'updateScheduledTask': { name: 'updateScheduledTask'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ScheduledTask'; ofType: null; }; } }; 'updateSeller': { name: 'updateSeller'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Seller'; ofType: null; }; } }; 'updateShippingMethod': { name: 'updateShippingMethod'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ShippingMethod'; ofType: null; }; } }; 'updateStockLocation': { name: 'updateStockLocation'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'StockLocation'; ofType: null; }; } }; 'updateTag': { name: 'updateTag'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Tag'; ofType: null; }; } }; 'updateTaxCategory': { name: 'updateTaxCategory'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'TaxCategory'; ofType: null; }; } }; 'updateTaxRate': { name: 'updateTaxRate'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'TaxRate'; ofType: null; }; } }; 'updateZone': { name: 'updateZone'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Zone'; ofType: null; }; } }; 'verifyCustomerAccountAsAdmin': { name: 'verifyCustomerAccountAsAdmin'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'VerifyCustomerAccountAsAdminResult'; ofType: null; }; } }; }; }; 'NativeAuthInput': { kind: 'INPUT_OBJECT'; name: 'NativeAuthInput'; isOneOf: false; inputFields: [{ name: 'username'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; }; defaultValue: null }, { name: 'password'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; }; defaultValue: null }]; }; 'NativeAuthStrategyError': { kind: 'OBJECT'; name: 'NativeAuthStrategyError'; fields: { 'errorCode': { name: 'errorCode'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'ErrorCode'; ofType: null; }; } }; 'message': { name: 'message'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; }; }; 'NativeAuthenticationResult': { kind: 'UNION'; name: 'NativeAuthenticationResult'; fields: {}; possibleTypes: 'CurrentUser' | 'InvalidCredentialsError' | 'NativeAuthStrategyError'; }; @@ -361,6 +363,7 @@ export type introspection_types = { 'RemovePromotionsFromChannelInput': { kind: 'INPUT_OBJECT'; name: 'RemovePromotionsFromChannelInput'; isOneOf: false; inputFields: [{ name: 'promotionIds'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ID'; ofType: null; }; }; }; }; defaultValue: null }, { name: 'channelId'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ID'; ofType: null; }; }; defaultValue: null }]; }; 'RemoveShippingMethodsFromChannelInput': { kind: 'INPUT_OBJECT'; name: 'RemoveShippingMethodsFromChannelInput'; isOneOf: false; inputFields: [{ name: 'shippingMethodIds'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ID'; ofType: null; }; }; }; }; defaultValue: null }, { name: 'channelId'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ID'; ofType: null; }; }; defaultValue: null }]; }; 'RemoveStockLocationsFromChannelInput': { kind: 'INPUT_OBJECT'; name: 'RemoveStockLocationsFromChannelInput'; isOneOf: false; inputFields: [{ name: 'stockLocationIds'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ID'; ofType: null; }; }; }; }; defaultValue: null }, { name: 'channelId'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ID'; ofType: null; }; }; defaultValue: null }]; }; + 'ResetCustomerPasswordAsAdminResult': { kind: 'UNION'; name: 'ResetCustomerPasswordAsAdminResult'; fields: {}; possibleTypes: 'CustomerAccountStateError' | 'Success'; }; 'Return': { kind: 'OBJECT'; name: 'Return'; fields: { 'createdAt': { name: 'createdAt'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; 'customFields': { name: 'customFields'; type: { kind: 'SCALAR'; name: 'JSON'; ofType: null; } }; 'id': { name: 'id'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ID'; ofType: null; }; } }; 'productVariant': { name: 'productVariant'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ProductVariant'; ofType: null; }; } }; 'quantity': { name: 'quantity'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Int'; ofType: null; }; } }; 'type': { name: 'type'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'StockMovementType'; ofType: null; }; } }; 'updatedAt': { name: 'updatedAt'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; }; }; 'Role': { kind: 'OBJECT'; name: 'Role'; fields: { 'channels': { name: 'channels'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Channel'; ofType: null; }; }; }; } }; 'code': { name: 'code'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'createdAt': { name: 'createdAt'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; 'description': { name: 'description'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'id': { name: 'id'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ID'; ofType: null; }; } }; 'permissions': { name: 'permissions'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'Permission'; ofType: null; }; }; }; } }; 'updatedAt': { name: 'updatedAt'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; }; }; 'RoleFilterParameter': { kind: 'INPUT_OBJECT'; name: 'RoleFilterParameter'; isOneOf: false; inputFields: [{ name: 'id'; type: { kind: 'INPUT_OBJECT'; name: 'IDOperators'; ofType: null; }; defaultValue: null }, { name: 'createdAt'; type: { kind: 'INPUT_OBJECT'; name: 'DateOperators'; ofType: null; }; defaultValue: null }, { name: 'updatedAt'; type: { kind: 'INPUT_OBJECT'; name: 'DateOperators'; ofType: null; }; defaultValue: null }, { name: 'code'; type: { kind: 'INPUT_OBJECT'; name: 'StringOperators'; ofType: null; }; defaultValue: null }, { name: 'description'; type: { kind: 'INPUT_OBJECT'; name: 'StringOperators'; ofType: null; }; defaultValue: null }, { name: '_and'; type: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'INPUT_OBJECT'; name: 'RoleFilterParameter'; ofType: null; }; }; }; defaultValue: null }, { name: '_or'; type: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'INPUT_OBJECT'; name: 'RoleFilterParameter'; ofType: null; }; }; }; defaultValue: null }]; }; @@ -501,6 +504,7 @@ export type introspection_types = { 'UpdateZoneInput': { kind: 'INPUT_OBJECT'; name: 'UpdateZoneInput'; isOneOf: false; inputFields: [{ name: 'id'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ID'; ofType: null; }; }; defaultValue: null }, { name: 'name'; type: { kind: 'SCALAR'; name: 'String'; ofType: null; }; defaultValue: null }, { name: 'customFields'; type: { kind: 'SCALAR'; name: 'JSON'; ofType: null; }; defaultValue: null }]; }; 'Upload': unknown; 'User': { kind: 'OBJECT'; name: 'User'; fields: { 'authenticationMethods': { name: 'authenticationMethods'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'AuthenticationMethod'; ofType: null; }; }; }; } }; 'createdAt': { name: 'createdAt'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; 'customFields': { name: 'customFields'; type: { kind: 'SCALAR'; name: 'JSON'; ofType: null; } }; 'id': { name: 'id'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ID'; ofType: null; }; } }; 'identifier': { name: 'identifier'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'lastLogin': { name: 'lastLogin'; type: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; } }; 'roles': { name: 'roles'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Role'; ofType: null; }; }; }; } }; 'updatedAt': { name: 'updatedAt'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; 'verified': { name: 'verified'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Boolean'; ofType: null; }; } }; }; }; + 'VerifyCustomerAccountAsAdminResult': { kind: 'UNION'; name: 'VerifyCustomerAccountAsAdminResult'; fields: {}; possibleTypes: 'AdminGeneratedPassword' | 'CustomerAccountStateError'; }; 'Zone': { kind: 'OBJECT'; name: 'Zone'; fields: { 'createdAt': { name: 'createdAt'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; 'customFields': { name: 'customFields'; type: { kind: 'SCALAR'; name: 'JSON'; ofType: null; } }; 'id': { name: 'id'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ID'; ofType: null; }; } }; 'members': { name: 'members'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'INTERFACE'; name: 'Region'; ofType: null; }; }; }; } }; 'name': { name: 'name'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'updatedAt': { name: 'updatedAt'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; }; }; 'ZoneFilterParameter': { kind: 'INPUT_OBJECT'; name: 'ZoneFilterParameter'; isOneOf: false; inputFields: [{ name: 'id'; type: { kind: 'INPUT_OBJECT'; name: 'IDOperators'; ofType: null; }; defaultValue: null }, { name: 'createdAt'; type: { kind: 'INPUT_OBJECT'; name: 'DateOperators'; ofType: null; }; defaultValue: null }, { name: 'updatedAt'; type: { kind: 'INPUT_OBJECT'; name: 'DateOperators'; ofType: null; }; defaultValue: null }, { name: 'name'; type: { kind: 'INPUT_OBJECT'; name: 'StringOperators'; ofType: null; }; defaultValue: null }, { name: '_and'; type: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'INPUT_OBJECT'; name: 'ZoneFilterParameter'; ofType: null; }; }; }; defaultValue: null }, { name: '_or'; type: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'INPUT_OBJECT'; name: 'ZoneFilterParameter'; ofType: null; }; }; }; defaultValue: null }]; }; 'ZoneList': { kind: 'OBJECT'; name: 'ZoneList'; fields: { 'items': { name: 'items'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Zone'; ofType: null; }; }; }; } }; 'totalItems': { name: 'totalItems'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Int'; ofType: null; }; } }; }; }; @@ -517,17 +521,17 @@ export type introspection_types = { * instead save to a .ts instead of a .d.ts file. */ export type introspection = { - name: never; - query: 'Query'; - mutation: 'Mutation'; - subscription: never; - types: introspection_types; + name: never; + query: 'Query'; + mutation: 'Mutation'; + subscription: never; + types: introspection_types; }; -import 'gql.tada'; +import * as gqlTada from 'gql.tada'; declare module 'gql.tada' { - interface setupSchema { - introspection: introspection; - } -} + interface setupSchema { + introspection: introspection + } +} \ No newline at end of file diff --git a/packages/asset-server-plugin/e2e/graphql/graphql-env-shop.d.ts b/packages/asset-server-plugin/e2e/graphql/graphql-env-shop.d.ts index 8e694a90a9..0b225213f7 100644 --- a/packages/asset-server-plugin/e2e/graphql/graphql-env-shop.d.ts +++ b/packages/asset-server-plugin/e2e/graphql/graphql-env-shop.d.ts @@ -254,17 +254,17 @@ export type introspection_types = { * instead save to a .ts instead of a .d.ts file. */ export type introspection = { - name: never; - query: 'Query'; - mutation: 'Mutation'; - subscription: never; - types: introspection_types; + name: never; + query: 'Query'; + mutation: 'Mutation'; + subscription: never; + types: introspection_types; }; -import 'gql.tada'; +import * as gqlTada from 'gql.tada'; declare module 'gql.tada' { - interface setupSchema { - introspection: introspection; - } -} + interface setupSchema { + introspection: introspection + } +} \ No newline at end of file diff --git a/packages/asset-server-plugin/e2e/graphql/graphql-shop.ts b/packages/asset-server-plugin/e2e/graphql/graphql-shop.ts index 91c9f80d19..0e8843280f 100644 --- a/packages/asset-server-plugin/e2e/graphql/graphql-shop.ts +++ b/packages/asset-server-plugin/e2e/graphql/graphql-shop.ts @@ -1,5 +1,5 @@ -import { initGraphQLTada } from 'gql.tada'; import type { introspection } from './graphql-env-shop.d.ts'; +import { initGraphQLTada } from 'gql.tada'; export const graphql = initGraphQLTada<{ disableMasking: true; @@ -11,5 +11,5 @@ export const graphql = initGraphQLTada<{ }; }>(); -export { readFragment } from 'gql.tada'; export type { FragmentOf, ResultOf, VariablesOf } from 'gql.tada'; +export { readFragment } from 'gql.tada'; diff --git a/packages/common/src/generated-shop-types.ts b/packages/common/src/generated-shop-types.ts index 9ff6c9ad0a..61bf646fcf 100644 --- a/packages/common/src/generated-shop-types.ts +++ b/packages/common/src/generated-shop-types.ts @@ -5,268 +5,256 @@ export type Exact = { [K in keyof T]: T[K] export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; export type MakeEmpty = { [_ in K]?: never }; -export type Incremental = - | T - | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; +export type Incremental = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: { input: string | number; output: string | number }; - String: { input: string; output: string }; - Boolean: { input: boolean; output: boolean }; - Int: { input: number; output: number }; - Float: { input: number; output: number }; - DateTime: { input: any; output: any }; - JSON: { input: any; output: any }; - Money: { input: number; output: number }; - Upload: { input: any; output: any }; + ID: { input: string | number; output: string | number; } + String: { input: string; output: string; } + Boolean: { input: boolean; output: boolean; } + Int: { input: number; output: number; } + Float: { input: number; output: number; } + DateTime: { input: any; output: any; } + JSON: { input: any; output: any; } + Money: { input: number; output: number; } + Upload: { input: any; output: any; } }; export type ActiveOrderResult = NoActiveOrderError | Order; export type AddItemInput = { - productVariantId: Scalars['ID']['input']; - quantity: Scalars['Int']['input']; + productVariantId: Scalars['ID']['input']; + quantity: Scalars['Int']['input']; }; -export type AddPaymentToOrderResult = - | IneligiblePaymentMethodError - | NoActiveOrderError - | Order - | OrderPaymentStateError - | OrderStateTransitionError - | PaymentDeclinedError - | PaymentFailedError; +export type AddPaymentToOrderResult = IneligiblePaymentMethodError | NoActiveOrderError | Order | OrderPaymentStateError | OrderStateTransitionError | PaymentDeclinedError | PaymentFailedError; export type Address = Node & { - __typename?: 'Address'; - city?: Maybe; - company?: Maybe; - country: Country; - createdAt: Scalars['DateTime']['output']; - customFields?: Maybe; - defaultBillingAddress?: Maybe; - defaultShippingAddress?: Maybe; - fullName?: Maybe; - id: Scalars['ID']['output']; - phoneNumber?: Maybe; - postalCode?: Maybe; - province?: Maybe; - streetLine1: Scalars['String']['output']; - streetLine2?: Maybe; - updatedAt: Scalars['DateTime']['output']; + __typename?: 'Address'; + city?: Maybe; + company?: Maybe; + country: Country; + createdAt: Scalars['DateTime']['output']; + customFields?: Maybe; + defaultBillingAddress?: Maybe; + defaultShippingAddress?: Maybe; + fullName?: Maybe; + id: Scalars['ID']['output']; + phoneNumber?: Maybe; + postalCode?: Maybe; + province?: Maybe; + streetLine1: Scalars['String']['output']; + streetLine2?: Maybe; + updatedAt: Scalars['DateTime']['output']; }; export type Adjustment = { - __typename?: 'Adjustment'; - adjustmentSource: Scalars['String']['output']; - amount: Scalars['Money']['output']; - data?: Maybe; - description: Scalars['String']['output']; - type: AdjustmentType; + __typename?: 'Adjustment'; + adjustmentSource: Scalars['String']['output']; + amount: Scalars['Money']['output']; + data?: Maybe; + description: Scalars['String']['output']; + type: AdjustmentType; }; export enum AdjustmentType { - DISTRIBUTED_ORDER_PROMOTION = 'DISTRIBUTED_ORDER_PROMOTION', - OTHER = 'OTHER', - PROMOTION = 'PROMOTION', + DISTRIBUTED_ORDER_PROMOTION = 'DISTRIBUTED_ORDER_PROMOTION', + OTHER = 'OTHER', + PROMOTION = 'PROMOTION' } /** Returned when attempting to set the Customer for an Order when already logged in. */ export type AlreadyLoggedInError = ErrorResult & { - __typename?: 'AlreadyLoggedInError'; - errorCode: ErrorCode; - message: Scalars['String']['output']; + __typename?: 'AlreadyLoggedInError'; + errorCode: ErrorCode; + message: Scalars['String']['output']; }; -export type ApplyCouponCodeResult = - | CouponCodeExpiredError - | CouponCodeInvalidError - | CouponCodeLimitError - | Order; +export type ApplyCouponCodeResult = CouponCodeExpiredError | CouponCodeInvalidError | CouponCodeLimitError | Order; export type Asset = Node & { - __typename?: 'Asset'; - createdAt: Scalars['DateTime']['output']; - customFields?: Maybe; - fileSize: Scalars['Int']['output']; - focalPoint?: Maybe; - height: Scalars['Int']['output']; - id: Scalars['ID']['output']; - languageCode: LanguageCode; - mimeType: Scalars['String']['output']; - name: Scalars['String']['output']; - preview: Scalars['String']['output']; - source: Scalars['String']['output']; - tags: Array; - translations: Array; - type: AssetType; - updatedAt: Scalars['DateTime']['output']; - width: Scalars['Int']['output']; + __typename?: 'Asset'; + createdAt: Scalars['DateTime']['output']; + customFields?: Maybe; + fileSize: Scalars['Int']['output']; + focalPoint?: Maybe; + height: Scalars['Int']['output']; + id: Scalars['ID']['output']; + languageCode: LanguageCode; + mimeType: Scalars['String']['output']; + name: Scalars['String']['output']; + preview: Scalars['String']['output']; + source: Scalars['String']['output']; + tags: Array; + translations: Array; + type: AssetType; + updatedAt: Scalars['DateTime']['output']; + width: Scalars['Int']['output']; }; export type AssetList = PaginatedList & { - __typename?: 'AssetList'; - items: Array; - totalItems: Scalars['Int']['output']; + __typename?: 'AssetList'; + items: Array; + totalItems: Scalars['Int']['output']; }; export type AssetTranslation = { - __typename?: 'AssetTranslation'; - createdAt: Scalars['DateTime']['output']; - id: Scalars['ID']['output']; - languageCode: LanguageCode; - name: Scalars['String']['output']; - updatedAt: Scalars['DateTime']['output']; + __typename?: 'AssetTranslation'; + createdAt: Scalars['DateTime']['output']; + id: Scalars['ID']['output']; + languageCode: LanguageCode; + name: Scalars['String']['output']; + updatedAt: Scalars['DateTime']['output']; }; export enum AssetType { - BINARY = 'BINARY', - IMAGE = 'IMAGE', - VIDEO = 'VIDEO', + BINARY = 'BINARY', + IMAGE = 'IMAGE', + VIDEO = 'VIDEO' } export type AuthenticationInput = { - native?: InputMaybe; + native?: InputMaybe; }; export type AuthenticationMethod = Node & { - __typename?: 'AuthenticationMethod'; - createdAt: Scalars['DateTime']['output']; - id: Scalars['ID']['output']; - strategy: Scalars['String']['output']; - updatedAt: Scalars['DateTime']['output']; + __typename?: 'AuthenticationMethod'; + createdAt: Scalars['DateTime']['output']; + id: Scalars['ID']['output']; + strategy: Scalars['String']['output']; + updatedAt: Scalars['DateTime']['output']; }; export type AuthenticationResult = CurrentUser | InvalidCredentialsError | NotVerifiedError; export type BooleanCustomFieldConfig = CustomField & { - __typename?: 'BooleanCustomFieldConfig'; - deprecated?: Maybe; - deprecationReason?: Maybe; - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']['output']; - name: Scalars['String']['output']; - nullable?: Maybe; - readonly?: Maybe; - requiresPermission?: Maybe>; - type: Scalars['String']['output']; - ui?: Maybe; + __typename?: 'BooleanCustomFieldConfig'; + deprecated?: Maybe; + deprecationReason?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']['output']; + name: Scalars['String']['output']; + nullable?: Maybe; + readonly?: Maybe; + requiresPermission?: Maybe>; + type: Scalars['String']['output']; + ui?: Maybe; }; /** Operators for filtering on a list of Boolean fields */ export type BooleanListOperators = { - inList: Scalars['Boolean']['input']; + inList: Scalars['Boolean']['input']; }; /** Operators for filtering on a Boolean field */ export type BooleanOperators = { - eq?: InputMaybe; - isNull?: InputMaybe; + eq?: InputMaybe; + isNull?: InputMaybe; }; export type BooleanStructFieldConfig = StructField & { - __typename?: 'BooleanStructFieldConfig'; - description?: Maybe>; - label?: Maybe>; - list: Scalars['Boolean']['output']; - name: Scalars['String']['output']; - type: Scalars['String']['output']; - ui?: Maybe; + __typename?: 'BooleanStructFieldConfig'; + description?: Maybe>; + label?: Maybe>; + list: Scalars['Boolean']['output']; + name: Scalars['String']['output']; + type: Scalars['String']['output']; + ui?: Maybe; }; export type Channel = Node & { - __typename?: 'Channel'; - availableCurrencyCodes: Array; - availableLanguageCodes?: Maybe>; - code: Scalars['String']['output']; - createdAt: Scalars['DateTime']['output']; - /** @deprecated Use defaultCurrencyCode instead */ - currencyCode: CurrencyCode; - customFields?: Maybe; - defaultCurrencyCode: CurrencyCode; - defaultLanguageCode: LanguageCode; - defaultShippingZone?: Maybe; - defaultTaxZone?: Maybe; - id: Scalars['ID']['output']; - /** Not yet used - will be implemented in a future release. */ - outOfStockThreshold?: Maybe; - pricesIncludeTax: Scalars['Boolean']['output']; - seller?: Maybe; - token: Scalars['String']['output']; - /** Not yet used - will be implemented in a future release. */ - trackInventory?: Maybe; - updatedAt: Scalars['DateTime']['output']; + __typename?: 'Channel'; + availableCurrencyCodes: Array; + availableLanguageCodes?: Maybe>; + code: Scalars['String']['output']; + createdAt: Scalars['DateTime']['output']; + /** @deprecated Use defaultCurrencyCode instead */ + currencyCode: CurrencyCode; + customFields?: Maybe; + defaultCurrencyCode: CurrencyCode; + defaultLanguageCode: LanguageCode; + defaultShippingZone?: Maybe; + defaultTaxZone?: Maybe; + id: Scalars['ID']['output']; + /** Not yet used - will be implemented in a future release. */ + outOfStockThreshold?: Maybe; + pricesIncludeTax: Scalars['Boolean']['output']; + seller?: Maybe; + token: Scalars['String']['output']; + /** Not yet used - will be implemented in a future release. */ + trackInventory?: Maybe; + updatedAt: Scalars['DateTime']['output']; }; export type Collection = Node & { - __typename?: 'Collection'; - assets: Array; - breadcrumbs: Array; - children?: Maybe>; - createdAt: Scalars['DateTime']['output']; - customFields?: Maybe; - description: Scalars['String']['output']; - featuredAsset?: Maybe; - filters: Array; - id: Scalars['ID']['output']; - languageCode?: Maybe; - name: Scalars['String']['output']; - parent?: Maybe; - parentId: Scalars['ID']['output']; - position: Scalars['Int']['output']; - productVariantCount: Scalars['Int']['output']; - productVariants: ProductVariantList; - slug: Scalars['String']['output']; - translations: Array; - updatedAt: Scalars['DateTime']['output']; + __typename?: 'Collection'; + assets: Array; + breadcrumbs: Array; + children?: Maybe>; + createdAt: Scalars['DateTime']['output']; + customFields?: Maybe; + description: Scalars['String']['output']; + featuredAsset?: Maybe; + filters: Array; + id: Scalars['ID']['output']; + languageCode?: Maybe; + name: Scalars['String']['output']; + parent?: Maybe; + parentId: Scalars['ID']['output']; + position: Scalars['Int']['output']; + productVariantCount: Scalars['Int']['output']; + productVariants: ProductVariantList; + slug: Scalars['String']['output']; + translations: Array; + updatedAt: Scalars['DateTime']['output']; }; + export type CollectionProductVariantsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type CollectionBreadcrumb = { - __typename?: 'CollectionBreadcrumb'; - id: Scalars['ID']['output']; - name: Scalars['String']['output']; - slug: Scalars['String']['output']; + __typename?: 'CollectionBreadcrumb'; + id: Scalars['ID']['output']; + name: Scalars['String']['output']; + slug: Scalars['String']['output']; }; export type CollectionFilterParameter = { - _and?: InputMaybe>; - _or?: InputMaybe>; - createdAt?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - languageCode?: InputMaybe; - name?: InputMaybe; - parentId?: InputMaybe; - position?: InputMaybe; - productVariantCount?: InputMaybe; - slug?: InputMaybe; - updatedAt?: InputMaybe; + _and?: InputMaybe>; + _or?: InputMaybe>; + createdAt?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + languageCode?: InputMaybe; + name?: InputMaybe; + parentId?: InputMaybe; + position?: InputMaybe; + productVariantCount?: InputMaybe; + slug?: InputMaybe; + updatedAt?: InputMaybe; }; export type CollectionList = PaginatedList & { - __typename?: 'CollectionList'; - items: Array; - totalItems: Scalars['Int']['output']; + __typename?: 'CollectionList'; + items: Array; + totalItems: Scalars['Int']['output']; }; export type CollectionListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; - topLevelOnly?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; + topLevelOnly?: InputMaybe; }; /** @@ -274,80 +262,80 @@ export type CollectionListOptions = { * by the search, and in what quantity. */ export type CollectionResult = { - __typename?: 'CollectionResult'; - collection: Collection; - count: Scalars['Int']['output']; + __typename?: 'CollectionResult'; + collection: Collection; + count: Scalars['Int']['output']; }; export type CollectionSortParameter = { - createdAt?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - parentId?: InputMaybe; - position?: InputMaybe; - productVariantCount?: InputMaybe; - slug?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + parentId?: InputMaybe; + position?: InputMaybe; + productVariantCount?: InputMaybe; + slug?: InputMaybe; + updatedAt?: InputMaybe; }; export type CollectionTranslation = { - __typename?: 'CollectionTranslation'; - createdAt: Scalars['DateTime']['output']; - description: Scalars['String']['output']; - id: Scalars['ID']['output']; - languageCode: LanguageCode; - name: Scalars['String']['output']; - slug: Scalars['String']['output']; - updatedAt: Scalars['DateTime']['output']; + __typename?: 'CollectionTranslation'; + createdAt: Scalars['DateTime']['output']; + description: Scalars['String']['output']; + id: Scalars['ID']['output']; + languageCode: LanguageCode; + name: Scalars['String']['output']; + slug: Scalars['String']['output']; + updatedAt: Scalars['DateTime']['output']; }; export type ConfigArg = { - __typename?: 'ConfigArg'; - name: Scalars['String']['output']; - value: Scalars['String']['output']; + __typename?: 'ConfigArg'; + name: Scalars['String']['output']; + value: Scalars['String']['output']; }; export type ConfigArgDefinition = { - __typename?: 'ConfigArgDefinition'; - defaultValue?: Maybe; - description?: Maybe; - label?: Maybe; - list: Scalars['Boolean']['output']; - name: Scalars['String']['output']; - required: Scalars['Boolean']['output']; - type: Scalars['String']['output']; - ui?: Maybe; + __typename?: 'ConfigArgDefinition'; + defaultValue?: Maybe; + description?: Maybe; + label?: Maybe; + list: Scalars['Boolean']['output']; + name: Scalars['String']['output']; + required: Scalars['Boolean']['output']; + type: Scalars['String']['output']; + ui?: Maybe; }; export type ConfigArgInput = { - name: Scalars['String']['input']; - /** A JSON stringified representation of the actual value */ - value: Scalars['String']['input']; + name: Scalars['String']['input']; + /** A JSON stringified representation of the actual value */ + value: Scalars['String']['input']; }; export type ConfigurableOperation = { - __typename?: 'ConfigurableOperation'; - args: Array; - code: Scalars['String']['output']; + __typename?: 'ConfigurableOperation'; + args: Array; + code: Scalars['String']['output']; }; export type ConfigurableOperationDefinition = { - __typename?: 'ConfigurableOperationDefinition'; - args: Array; - code: Scalars['String']['output']; - description: Scalars['String']['output']; + __typename?: 'ConfigurableOperationDefinition'; + args: Array; + code: Scalars['String']['output']; + description: Scalars['String']['output']; }; export type ConfigurableOperationInput = { - arguments: Array; - code: Scalars['String']['input']; + arguments: Array; + code: Scalars['String']['input']; }; export type Coordinate = { - __typename?: 'Coordinate'; - x: Scalars['Float']['output']; - y: Scalars['Float']['output']; + __typename?: 'Coordinate'; + x: Scalars['Float']['output']; + y: Scalars['Float']['output']; }; /** @@ -356,52 +344,51 @@ export type Coordinate = { * The `code` field is typically a 2-character ISO code such as "GB", "US", "DE" etc. This code is used in certain inputs such as * `UpdateAddressInput` and `CreateAddressInput` to specify the country. */ -export type Country = Node & - Region & { - __typename?: 'Country'; - code: Scalars['String']['output']; - createdAt: Scalars['DateTime']['output']; - customFields?: Maybe; - enabled: Scalars['Boolean']['output']; - id: Scalars['ID']['output']; - languageCode: LanguageCode; - name: Scalars['String']['output']; - parent?: Maybe; - parentId?: Maybe; - translations: Array; - type: Scalars['String']['output']; - updatedAt: Scalars['DateTime']['output']; - }; +export type Country = Node & Region & { + __typename?: 'Country'; + code: Scalars['String']['output']; + createdAt: Scalars['DateTime']['output']; + customFields?: Maybe; + enabled: Scalars['Boolean']['output']; + id: Scalars['ID']['output']; + languageCode: LanguageCode; + name: Scalars['String']['output']; + parent?: Maybe; + parentId?: Maybe; + translations: Array; + type: Scalars['String']['output']; + updatedAt: Scalars['DateTime']['output']; +}; export type CountryList = PaginatedList & { - __typename?: 'CountryList'; - items: Array; - totalItems: Scalars['Int']['output']; + __typename?: 'CountryList'; + items: Array; + totalItems: Scalars['Int']['output']; }; /** Returned if the provided coupon code is invalid */ export type CouponCodeExpiredError = ErrorResult & { - __typename?: 'CouponCodeExpiredError'; - couponCode: Scalars['String']['output']; - errorCode: ErrorCode; - message: Scalars['String']['output']; + __typename?: 'CouponCodeExpiredError'; + couponCode: Scalars['String']['output']; + errorCode: ErrorCode; + message: Scalars['String']['output']; }; /** Returned if the provided coupon code is invalid */ export type CouponCodeInvalidError = ErrorResult & { - __typename?: 'CouponCodeInvalidError'; - couponCode: Scalars['String']['output']; - errorCode: ErrorCode; - message: Scalars['String']['output']; + __typename?: 'CouponCodeInvalidError'; + couponCode: Scalars['String']['output']; + errorCode: ErrorCode; + message: Scalars['String']['output']; }; /** Returned if the provided coupon code is invalid */ export type CouponCodeLimitError = ErrorResult & { - __typename?: 'CouponCodeLimitError'; - couponCode: Scalars['String']['output']; - errorCode: ErrorCode; - limit: Scalars['Int']['output']; - message: Scalars['String']['output']; + __typename?: 'CouponCodeLimitError'; + couponCode: Scalars['String']['output']; + errorCode: ErrorCode; + limit: Scalars['Int']['output']; + message: Scalars['String']['output']; }; /** @@ -412,27 +399,27 @@ export type CouponCodeLimitError = ErrorResult & { * If an invalid code is passed, the mutation will fail. */ export type CreateAddressInput = { - city?: InputMaybe; - company?: InputMaybe; - countryCode: Scalars['String']['input']; - customFields?: InputMaybe; - defaultBillingAddress?: InputMaybe; - defaultShippingAddress?: InputMaybe; - fullName?: InputMaybe; - phoneNumber?: InputMaybe; - postalCode?: InputMaybe; - province?: InputMaybe; - streetLine1: Scalars['String']['input']; - streetLine2?: InputMaybe; + city?: InputMaybe; + company?: InputMaybe; + countryCode: Scalars['String']['input']; + customFields?: InputMaybe; + defaultBillingAddress?: InputMaybe; + defaultShippingAddress?: InputMaybe; + fullName?: InputMaybe; + phoneNumber?: InputMaybe; + postalCode?: InputMaybe; + province?: InputMaybe; + streetLine1: Scalars['String']['input']; + streetLine2?: InputMaybe; }; export type CreateCustomerInput = { - customFields?: InputMaybe; - emailAddress: Scalars['String']['input']; - firstName: Scalars['String']['input']; - lastName: Scalars['String']['input']; - phoneNumber?: InputMaybe; - title?: InputMaybe; + customFields?: InputMaybe; + emailAddress: Scalars['String']['input']; + firstName: Scalars['String']['input']; + lastName: Scalars['String']['input']; + phoneNumber?: InputMaybe; + title?: InputMaybe; }; /** @@ -442,458 +429,450 @@ export type CreateCustomerInput = { * @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 CurrentUser = { - __typename?: 'CurrentUser'; - channels: Array; - id: Scalars['ID']['output']; - identifier: Scalars['String']['output']; + __typename?: 'CurrentUser'; + channels: Array; + id: Scalars['ID']['output']; + identifier: Scalars['String']['output']; }; export type CurrentUserChannel = { - __typename?: 'CurrentUserChannel'; - code: Scalars['String']['output']; - id: Scalars['ID']['output']; - permissions: Array; - token: Scalars['String']['output']; + __typename?: 'CurrentUserChannel'; + code: Scalars['String']['output']; + id: Scalars['ID']['output']; + permissions: Array; + token: Scalars['String']['output']; }; export type CustomField = { - deprecated?: Maybe; - deprecationReason?: Maybe; - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']['output']; - name: Scalars['String']['output']; - nullable?: Maybe; - readonly?: Maybe; - requiresPermission?: Maybe>; - type: Scalars['String']['output']; - ui?: Maybe; -}; - -export type CustomFieldConfig = - | BooleanCustomFieldConfig - | DateTimeCustomFieldConfig - | FloatCustomFieldConfig - | IntCustomFieldConfig - | LocaleStringCustomFieldConfig - | LocaleTextCustomFieldConfig - | RelationCustomFieldConfig - | StringCustomFieldConfig - | StructCustomFieldConfig - | TextCustomFieldConfig; + deprecated?: Maybe; + deprecationReason?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']['output']; + name: Scalars['String']['output']; + nullable?: Maybe; + readonly?: Maybe; + requiresPermission?: Maybe>; + type: Scalars['String']['output']; + ui?: Maybe; +}; + +export type CustomFieldConfig = BooleanCustomFieldConfig | DateTimeCustomFieldConfig | FloatCustomFieldConfig | IntCustomFieldConfig | LocaleStringCustomFieldConfig | LocaleTextCustomFieldConfig | RelationCustomFieldConfig | StringCustomFieldConfig | StructCustomFieldConfig | TextCustomFieldConfig; export type Customer = Node & { - __typename?: 'Customer'; - addresses?: Maybe>; - createdAt: Scalars['DateTime']['output']; - customFields?: Maybe; - emailAddress: Scalars['String']['output']; - firstName: Scalars['String']['output']; - id: Scalars['ID']['output']; - lastName: Scalars['String']['output']; - orders: OrderList; - phoneNumber?: Maybe; - title?: Maybe; - updatedAt: Scalars['DateTime']['output']; - user?: Maybe; + __typename?: 'Customer'; + addresses?: Maybe>; + createdAt: Scalars['DateTime']['output']; + customFields?: Maybe; + emailAddress: Scalars['String']['output']; + firstName: Scalars['String']['output']; + id: Scalars['ID']['output']; + lastName: Scalars['String']['output']; + orders: OrderList; + phoneNumber?: Maybe; + title?: Maybe; + updatedAt: Scalars['DateTime']['output']; + user?: Maybe; }; + export type CustomerOrdersArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type CustomerFilterParameter = { - _and?: InputMaybe>; - _or?: InputMaybe>; - createdAt?: InputMaybe; - emailAddress?: InputMaybe; - firstName?: InputMaybe; - id?: InputMaybe; - lastName?: InputMaybe; - phoneNumber?: InputMaybe; - title?: InputMaybe; - updatedAt?: InputMaybe; + _and?: InputMaybe>; + _or?: InputMaybe>; + createdAt?: InputMaybe; + emailAddress?: InputMaybe; + firstName?: InputMaybe; + id?: InputMaybe; + lastName?: InputMaybe; + phoneNumber?: InputMaybe; + title?: InputMaybe; + updatedAt?: InputMaybe; }; export type CustomerGroup = Node & { - __typename?: 'CustomerGroup'; - createdAt: Scalars['DateTime']['output']; - customFields?: Maybe; - customers: CustomerList; - id: Scalars['ID']['output']; - name: Scalars['String']['output']; - updatedAt: Scalars['DateTime']['output']; + __typename?: 'CustomerGroup'; + createdAt: Scalars['DateTime']['output']; + customFields?: Maybe; + customers: CustomerList; + id: Scalars['ID']['output']; + name: Scalars['String']['output']; + updatedAt: Scalars['DateTime']['output']; }; + export type CustomerGroupCustomersArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type CustomerList = PaginatedList & { - __typename?: 'CustomerList'; - items: Array; - totalItems: Scalars['Int']['output']; + __typename?: 'CustomerList'; + items: Array; + totalItems: Scalars['Int']['output']; }; export type CustomerListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type CustomerSortParameter = { - createdAt?: InputMaybe; - emailAddress?: InputMaybe; - firstName?: InputMaybe; - id?: InputMaybe; - lastName?: InputMaybe; - phoneNumber?: InputMaybe; - title?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + emailAddress?: InputMaybe; + firstName?: InputMaybe; + id?: InputMaybe; + lastName?: InputMaybe; + phoneNumber?: InputMaybe; + title?: InputMaybe; + updatedAt?: InputMaybe; }; /** Operators for filtering on a list of Date fields */ export type DateListOperators = { - inList: Scalars['DateTime']['input']; + inList: Scalars['DateTime']['input']; }; /** Operators for filtering on a DateTime field */ export type DateOperators = { - after?: InputMaybe; - before?: InputMaybe; - between?: InputMaybe; - eq?: InputMaybe; - isNull?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + between?: InputMaybe; + eq?: InputMaybe; + isNull?: InputMaybe; }; export type DateRange = { - end: Scalars['DateTime']['input']; - start: Scalars['DateTime']['input']; + end: Scalars['DateTime']['input']; + start: Scalars['DateTime']['input']; }; /** @@ -901,22 +880,22 @@ export type DateRange = { * See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local#Additional_attributes */ export type DateTimeCustomFieldConfig = CustomField & { - __typename?: 'DateTimeCustomFieldConfig'; - deprecated?: Maybe; - deprecationReason?: Maybe; - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']['output']; - max?: Maybe; - min?: Maybe; - name: Scalars['String']['output']; - nullable?: Maybe; - readonly?: Maybe; - requiresPermission?: Maybe>; - step?: Maybe; - type: Scalars['String']['output']; - ui?: Maybe; + __typename?: 'DateTimeCustomFieldConfig'; + deprecated?: Maybe; + deprecationReason?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']['output']; + max?: Maybe; + min?: Maybe; + name: Scalars['String']['output']; + nullable?: Maybe; + readonly?: Maybe; + requiresPermission?: Maybe>; + step?: Maybe; + type: Scalars['String']['output']; + ui?: Maybe; }; /** @@ -924,164 +903,165 @@ export type DateTimeCustomFieldConfig = CustomField & { * See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local#Additional_attributes */ export type DateTimeStructFieldConfig = StructField & { - __typename?: 'DateTimeStructFieldConfig'; - description?: Maybe>; - label?: Maybe>; - list: Scalars['Boolean']['output']; - max?: Maybe; - min?: Maybe; - name: Scalars['String']['output']; - step?: Maybe; - type: Scalars['String']['output']; - ui?: Maybe; + __typename?: 'DateTimeStructFieldConfig'; + description?: Maybe>; + label?: Maybe>; + list: Scalars['Boolean']['output']; + max?: Maybe; + min?: Maybe; + name: Scalars['String']['output']; + step?: Maybe; + type: Scalars['String']['output']; + ui?: Maybe; }; export type DeletionResponse = { - __typename?: 'DeletionResponse'; - message?: Maybe; - result: DeletionResult; + __typename?: 'DeletionResponse'; + message?: Maybe; + result: DeletionResult; }; 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 Discount = { - __typename?: 'Discount'; - adjustmentSource: Scalars['String']['output']; - amount: Scalars['Money']['output']; - amountWithTax: Scalars['Money']['output']; - description: Scalars['String']['output']; - type: AdjustmentType; + __typename?: 'Discount'; + adjustmentSource: Scalars['String']['output']; + amount: Scalars['Money']['output']; + amountWithTax: Scalars['Money']['output']; + description: Scalars['String']['output']; + type: AdjustmentType; }; /** Returned when attempting 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']['output']; + __typename?: 'EmailAddressConflictError'; + errorCode: ErrorCode; + message: Scalars['String']['output']; }; export enum ErrorCode { - ALREADY_LOGGED_IN_ERROR = 'ALREADY_LOGGED_IN_ERROR', - COUPON_CODE_EXPIRED_ERROR = 'COUPON_CODE_EXPIRED_ERROR', - COUPON_CODE_INVALID_ERROR = 'COUPON_CODE_INVALID_ERROR', - COUPON_CODE_LIMIT_ERROR = 'COUPON_CODE_LIMIT_ERROR', - EMAIL_ADDRESS_CONFLICT_ERROR = 'EMAIL_ADDRESS_CONFLICT_ERROR', - GUEST_CHECKOUT_ERROR = 'GUEST_CHECKOUT_ERROR', - IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR = 'IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR', - IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR = 'IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR', - INELIGIBLE_PAYMENT_METHOD_ERROR = 'INELIGIBLE_PAYMENT_METHOD_ERROR', - INELIGIBLE_SHIPPING_METHOD_ERROR = 'INELIGIBLE_SHIPPING_METHOD_ERROR', - INSUFFICIENT_STOCK_ERROR = 'INSUFFICIENT_STOCK_ERROR', - INVALID_CREDENTIALS_ERROR = 'INVALID_CREDENTIALS_ERROR', - MISSING_PASSWORD_ERROR = 'MISSING_PASSWORD_ERROR', - NATIVE_AUTH_STRATEGY_ERROR = 'NATIVE_AUTH_STRATEGY_ERROR', - NEGATIVE_QUANTITY_ERROR = 'NEGATIVE_QUANTITY_ERROR', - NOT_VERIFIED_ERROR = 'NOT_VERIFIED_ERROR', - NO_ACTIVE_ORDER_ERROR = 'NO_ACTIVE_ORDER_ERROR', - ORDER_INTERCEPTOR_ERROR = 'ORDER_INTERCEPTOR_ERROR', - ORDER_LIMIT_ERROR = 'ORDER_LIMIT_ERROR', - ORDER_MODIFICATION_ERROR = 'ORDER_MODIFICATION_ERROR', - ORDER_PAYMENT_STATE_ERROR = 'ORDER_PAYMENT_STATE_ERROR', - ORDER_STATE_TRANSITION_ERROR = 'ORDER_STATE_TRANSITION_ERROR', - PASSWORD_ALREADY_SET_ERROR = 'PASSWORD_ALREADY_SET_ERROR', - PASSWORD_RESET_TOKEN_EXPIRED_ERROR = 'PASSWORD_RESET_TOKEN_EXPIRED_ERROR', - PASSWORD_RESET_TOKEN_INVALID_ERROR = 'PASSWORD_RESET_TOKEN_INVALID_ERROR', - PASSWORD_VALIDATION_ERROR = 'PASSWORD_VALIDATION_ERROR', - PAYMENT_DECLINED_ERROR = 'PAYMENT_DECLINED_ERROR', - PAYMENT_FAILED_ERROR = 'PAYMENT_FAILED_ERROR', - UNKNOWN_ERROR = 'UNKNOWN_ERROR', - VERIFICATION_TOKEN_EXPIRED_ERROR = 'VERIFICATION_TOKEN_EXPIRED_ERROR', - VERIFICATION_TOKEN_INVALID_ERROR = 'VERIFICATION_TOKEN_INVALID_ERROR', + ALREADY_LOGGED_IN_ERROR = 'ALREADY_LOGGED_IN_ERROR', + COUPON_CODE_EXPIRED_ERROR = 'COUPON_CODE_EXPIRED_ERROR', + COUPON_CODE_INVALID_ERROR = 'COUPON_CODE_INVALID_ERROR', + COUPON_CODE_LIMIT_ERROR = 'COUPON_CODE_LIMIT_ERROR', + EMAIL_ADDRESS_CONFLICT_ERROR = 'EMAIL_ADDRESS_CONFLICT_ERROR', + GUEST_CHECKOUT_ERROR = 'GUEST_CHECKOUT_ERROR', + IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR = 'IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR', + IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR = 'IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR', + INELIGIBLE_PAYMENT_METHOD_ERROR = 'INELIGIBLE_PAYMENT_METHOD_ERROR', + INELIGIBLE_SHIPPING_METHOD_ERROR = 'INELIGIBLE_SHIPPING_METHOD_ERROR', + INSUFFICIENT_STOCK_ERROR = 'INSUFFICIENT_STOCK_ERROR', + INVALID_CREDENTIALS_ERROR = 'INVALID_CREDENTIALS_ERROR', + MISSING_PASSWORD_ERROR = 'MISSING_PASSWORD_ERROR', + NATIVE_AUTH_STRATEGY_ERROR = 'NATIVE_AUTH_STRATEGY_ERROR', + NEGATIVE_QUANTITY_ERROR = 'NEGATIVE_QUANTITY_ERROR', + NOT_VERIFIED_ERROR = 'NOT_VERIFIED_ERROR', + NO_ACTIVE_ORDER_ERROR = 'NO_ACTIVE_ORDER_ERROR', + ORDER_INTERCEPTOR_ERROR = 'ORDER_INTERCEPTOR_ERROR', + ORDER_LIMIT_ERROR = 'ORDER_LIMIT_ERROR', + ORDER_MODIFICATION_ERROR = 'ORDER_MODIFICATION_ERROR', + ORDER_PAYMENT_STATE_ERROR = 'ORDER_PAYMENT_STATE_ERROR', + ORDER_STATE_TRANSITION_ERROR = 'ORDER_STATE_TRANSITION_ERROR', + PASSWORD_ALREADY_SET_ERROR = 'PASSWORD_ALREADY_SET_ERROR', + PASSWORD_RESET_TOKEN_EXPIRED_ERROR = 'PASSWORD_RESET_TOKEN_EXPIRED_ERROR', + PASSWORD_RESET_TOKEN_INVALID_ERROR = 'PASSWORD_RESET_TOKEN_INVALID_ERROR', + PASSWORD_VALIDATION_ERROR = 'PASSWORD_VALIDATION_ERROR', + PAYMENT_DECLINED_ERROR = 'PAYMENT_DECLINED_ERROR', + PAYMENT_FAILED_ERROR = 'PAYMENT_FAILED_ERROR', + UNKNOWN_ERROR = 'UNKNOWN_ERROR', + VERIFICATION_TOKEN_EXPIRED_ERROR = 'VERIFICATION_TOKEN_EXPIRED_ERROR', + VERIFICATION_TOKEN_INVALID_ERROR = 'VERIFICATION_TOKEN_INVALID_ERROR' } export type ErrorResult = { - errorCode: ErrorCode; - message: Scalars['String']['output']; + errorCode: ErrorCode; + message: Scalars['String']['output']; }; export type Facet = Node & { - __typename?: 'Facet'; - code: Scalars['String']['output']; - createdAt: Scalars['DateTime']['output']; - customFields?: Maybe; - id: Scalars['ID']['output']; - languageCode: LanguageCode; - name: Scalars['String']['output']; - translations: Array; - updatedAt: Scalars['DateTime']['output']; - /** Returns a paginated, sortable, filterable list of the Facet's values. Added in v2.1.0. */ - valueList: FacetValueList; - values: Array; + __typename?: 'Facet'; + code: Scalars['String']['output']; + createdAt: Scalars['DateTime']['output']; + customFields?: Maybe; + id: Scalars['ID']['output']; + languageCode: LanguageCode; + name: Scalars['String']['output']; + translations: Array; + updatedAt: Scalars['DateTime']['output']; + /** Returns a paginated, sortable, filterable list of the Facet's values. Added in v2.1.0. */ + valueList: FacetValueList; + values: Array; }; + export type FacetValueListArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type FacetFilterParameter = { - _and?: InputMaybe>; - _or?: InputMaybe>; - code?: InputMaybe; - createdAt?: InputMaybe; - id?: InputMaybe; - languageCode?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + _and?: InputMaybe>; + _or?: InputMaybe>; + code?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + languageCode?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type FacetList = PaginatedList & { - __typename?: 'FacetList'; - items: Array; - totalItems: Scalars['Int']['output']; + __typename?: 'FacetList'; + items: Array; + totalItems: Scalars['Int']['output']; }; export type FacetListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type FacetSortParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type FacetTranslation = { - __typename?: 'FacetTranslation'; - createdAt: Scalars['DateTime']['output']; - id: Scalars['ID']['output']; - languageCode: LanguageCode; - name: Scalars['String']['output']; - updatedAt: Scalars['DateTime']['output']; + __typename?: 'FacetTranslation'; + createdAt: Scalars['DateTime']['output']; + id: Scalars['ID']['output']; + languageCode: LanguageCode; + name: Scalars['String']['output']; + updatedAt: Scalars['DateTime']['output']; }; export type FacetValue = Node & { - __typename?: 'FacetValue'; - code: Scalars['String']['output']; - createdAt: Scalars['DateTime']['output']; - customFields?: Maybe; - facet: Facet; - facetId: Scalars['ID']['output']; - id: Scalars['ID']['output']; - languageCode: LanguageCode; - name: Scalars['String']['output']; - translations: Array; - updatedAt: Scalars['DateTime']['output']; + __typename?: 'FacetValue'; + code: Scalars['String']['output']; + createdAt: Scalars['DateTime']['output']; + customFields?: Maybe; + facet: Facet; + facetId: Scalars['ID']['output']; + id: Scalars['ID']['output']; + languageCode: LanguageCode; + name: Scalars['String']['output']; + translations: Array; + updatedAt: Scalars['DateTime']['output']; }; /** @@ -1093,39 +1073,39 @@ export type FacetValue = Node & { * * ID=1 AND (ID=2 OR ID=3): `{ facetValueFilters: [{ and: 1 }, { or: [2,3] }] }` */ export type FacetValueFilterInput = { - and?: InputMaybe; - or?: InputMaybe>; + and?: InputMaybe; + or?: InputMaybe>; }; export type FacetValueFilterParameter = { - _and?: InputMaybe>; - _or?: InputMaybe>; - code?: InputMaybe; - createdAt?: InputMaybe; - facetId?: InputMaybe; - id?: InputMaybe; - languageCode?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + _and?: InputMaybe>; + _or?: InputMaybe>; + code?: InputMaybe; + createdAt?: InputMaybe; + facetId?: InputMaybe; + id?: InputMaybe; + languageCode?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type FacetValueList = PaginatedList & { - __typename?: 'FacetValueList'; - items: Array; - totalItems: Scalars['Int']['output']; + __typename?: 'FacetValueList'; + items: Array; + totalItems: Scalars['Int']['output']; }; export type FacetValueListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; /** @@ -1133,183 +1113,183 @@ export type FacetValueListOptions = { * by the search, and in what quantity. */ export type FacetValueResult = { - __typename?: 'FacetValueResult'; - count: Scalars['Int']['output']; - facetValue: FacetValue; + __typename?: 'FacetValueResult'; + count: Scalars['Int']['output']; + facetValue: FacetValue; }; export type FacetValueSortParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - facetId?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + facetId?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type FacetValueTranslation = { - __typename?: 'FacetValueTranslation'; - createdAt: Scalars['DateTime']['output']; - id: Scalars['ID']['output']; - languageCode: LanguageCode; - name: Scalars['String']['output']; - updatedAt: Scalars['DateTime']['output']; + __typename?: 'FacetValueTranslation'; + createdAt: Scalars['DateTime']['output']; + id: Scalars['ID']['output']; + languageCode: LanguageCode; + name: Scalars['String']['output']; + updatedAt: Scalars['DateTime']['output']; }; export type FloatCustomFieldConfig = CustomField & { - __typename?: 'FloatCustomFieldConfig'; - deprecated?: Maybe; - deprecationReason?: Maybe; - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']['output']; - max?: Maybe; - min?: Maybe; - name: Scalars['String']['output']; - nullable?: Maybe; - readonly?: Maybe; - requiresPermission?: Maybe>; - step?: Maybe; - type: Scalars['String']['output']; - ui?: Maybe; + __typename?: 'FloatCustomFieldConfig'; + deprecated?: Maybe; + deprecationReason?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']['output']; + max?: Maybe; + min?: Maybe; + name: Scalars['String']['output']; + nullable?: Maybe; + readonly?: Maybe; + requiresPermission?: Maybe>; + step?: Maybe; + type: Scalars['String']['output']; + ui?: Maybe; }; export type FloatStructFieldConfig = StructField & { - __typename?: 'FloatStructFieldConfig'; - description?: Maybe>; - label?: Maybe>; - list: Scalars['Boolean']['output']; - max?: Maybe; - min?: Maybe; - name: Scalars['String']['output']; - step?: Maybe; - type: Scalars['String']['output']; - ui?: Maybe; + __typename?: 'FloatStructFieldConfig'; + description?: Maybe>; + label?: Maybe>; + list: Scalars['Boolean']['output']; + max?: Maybe; + min?: Maybe; + name: Scalars['String']['output']; + step?: Maybe; + type: Scalars['String']['output']; + ui?: Maybe; }; export type Fulfillment = Node & { - __typename?: 'Fulfillment'; - createdAt: Scalars['DateTime']['output']; - customFields?: Maybe; - id: Scalars['ID']['output']; - lines: Array; - method: Scalars['String']['output']; - state: Scalars['String']['output']; - /** @deprecated Use the `lines` field instead */ - summary: Array; - trackingCode?: Maybe; - updatedAt: Scalars['DateTime']['output']; + __typename?: 'Fulfillment'; + createdAt: Scalars['DateTime']['output']; + customFields?: Maybe; + id: Scalars['ID']['output']; + lines: Array; + method: Scalars['String']['output']; + state: Scalars['String']['output']; + /** @deprecated Use the `lines` field instead */ + summary: Array; + trackingCode?: Maybe; + updatedAt: Scalars['DateTime']['output']; }; export type FulfillmentLine = { - __typename?: 'FulfillmentLine'; - fulfillment: Fulfillment; - fulfillmentId: Scalars['ID']['output']; - orderLine: OrderLine; - orderLineId: Scalars['ID']['output']; - quantity: Scalars['Int']['output']; + __typename?: 'FulfillmentLine'; + fulfillment: Fulfillment; + fulfillmentId: Scalars['ID']['output']; + orderLine: OrderLine; + orderLineId: Scalars['ID']['output']; + quantity: Scalars['Int']['output']; }; export enum GlobalFlag { - FALSE = 'FALSE', - INHERIT = 'INHERIT', - TRUE = 'TRUE', + FALSE = 'FALSE', + INHERIT = 'INHERIT', + TRUE = 'TRUE' } /** Returned when attempting to set the Customer on a guest checkout when the configured GuestCheckoutStrategy does not allow it. */ export type GuestCheckoutError = ErrorResult & { - __typename?: 'GuestCheckoutError'; - errorCode: ErrorCode; - errorDetail: Scalars['String']['output']; - message: Scalars['String']['output']; + __typename?: 'GuestCheckoutError'; + errorCode: ErrorCode; + errorDetail: Scalars['String']['output']; + message: Scalars['String']['output']; }; export type HistoryEntry = Node & { - __typename?: 'HistoryEntry'; - createdAt: Scalars['DateTime']['output']; - customFields?: Maybe; - data: Scalars['JSON']['output']; - id: Scalars['ID']['output']; - type: HistoryEntryType; - updatedAt: Scalars['DateTime']['output']; + __typename?: 'HistoryEntry'; + createdAt: Scalars['DateTime']['output']; + customFields?: Maybe; + data: Scalars['JSON']['output']; + id: Scalars['ID']['output']; + type: HistoryEntryType; + updatedAt: Scalars['DateTime']['output']; }; export type HistoryEntryFilterParameter = { - _and?: InputMaybe>; - _or?: InputMaybe>; - createdAt?: InputMaybe; - id?: InputMaybe; - type?: InputMaybe; - updatedAt?: InputMaybe; + _and?: InputMaybe>; + _or?: InputMaybe>; + createdAt?: InputMaybe; + id?: InputMaybe; + type?: InputMaybe; + updatedAt?: InputMaybe; }; export type HistoryEntryList = PaginatedList & { - __typename?: 'HistoryEntryList'; - items: Array; - totalItems: Scalars['Int']['output']; + __typename?: 'HistoryEntryList'; + items: Array; + totalItems: Scalars['Int']['output']; }; export type HistoryEntryListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type HistoryEntrySortParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + updatedAt?: InputMaybe; }; export enum HistoryEntryType { - CUSTOMER_ADDED_TO_GROUP = 'CUSTOMER_ADDED_TO_GROUP', - CUSTOMER_ADDRESS_CREATED = 'CUSTOMER_ADDRESS_CREATED', - CUSTOMER_ADDRESS_DELETED = 'CUSTOMER_ADDRESS_DELETED', - CUSTOMER_ADDRESS_UPDATED = 'CUSTOMER_ADDRESS_UPDATED', - CUSTOMER_DETAIL_UPDATED = 'CUSTOMER_DETAIL_UPDATED', - CUSTOMER_EMAIL_UPDATE_REQUESTED = 'CUSTOMER_EMAIL_UPDATE_REQUESTED', - CUSTOMER_EMAIL_UPDATE_VERIFIED = 'CUSTOMER_EMAIL_UPDATE_VERIFIED', - CUSTOMER_NOTE = 'CUSTOMER_NOTE', - CUSTOMER_PASSWORD_RESET_REQUESTED = 'CUSTOMER_PASSWORD_RESET_REQUESTED', - CUSTOMER_PASSWORD_RESET_VERIFIED = 'CUSTOMER_PASSWORD_RESET_VERIFIED', - CUSTOMER_PASSWORD_UPDATED = 'CUSTOMER_PASSWORD_UPDATED', - CUSTOMER_REGISTERED = 'CUSTOMER_REGISTERED', - CUSTOMER_REMOVED_FROM_GROUP = 'CUSTOMER_REMOVED_FROM_GROUP', - CUSTOMER_VERIFIED = 'CUSTOMER_VERIFIED', - ORDER_CANCELLATION = 'ORDER_CANCELLATION', - ORDER_COUPON_APPLIED = 'ORDER_COUPON_APPLIED', - ORDER_COUPON_REMOVED = 'ORDER_COUPON_REMOVED', - ORDER_CURRENCY_UPDATED = 'ORDER_CURRENCY_UPDATED', - ORDER_CUSTOMER_UPDATED = 'ORDER_CUSTOMER_UPDATED', - ORDER_FULFILLMENT = 'ORDER_FULFILLMENT', - ORDER_FULFILLMENT_TRANSITION = 'ORDER_FULFILLMENT_TRANSITION', - ORDER_MODIFIED = 'ORDER_MODIFIED', - ORDER_NOTE = 'ORDER_NOTE', - ORDER_PAYMENT_TRANSITION = 'ORDER_PAYMENT_TRANSITION', - ORDER_REFUND_TRANSITION = 'ORDER_REFUND_TRANSITION', - ORDER_STATE_TRANSITION = 'ORDER_STATE_TRANSITION', + CUSTOMER_ADDED_TO_GROUP = 'CUSTOMER_ADDED_TO_GROUP', + CUSTOMER_ADDRESS_CREATED = 'CUSTOMER_ADDRESS_CREATED', + CUSTOMER_ADDRESS_DELETED = 'CUSTOMER_ADDRESS_DELETED', + CUSTOMER_ADDRESS_UPDATED = 'CUSTOMER_ADDRESS_UPDATED', + CUSTOMER_DETAIL_UPDATED = 'CUSTOMER_DETAIL_UPDATED', + CUSTOMER_EMAIL_UPDATE_REQUESTED = 'CUSTOMER_EMAIL_UPDATE_REQUESTED', + CUSTOMER_EMAIL_UPDATE_VERIFIED = 'CUSTOMER_EMAIL_UPDATE_VERIFIED', + CUSTOMER_NOTE = 'CUSTOMER_NOTE', + CUSTOMER_PASSWORD_RESET_REQUESTED = 'CUSTOMER_PASSWORD_RESET_REQUESTED', + CUSTOMER_PASSWORD_RESET_VERIFIED = 'CUSTOMER_PASSWORD_RESET_VERIFIED', + CUSTOMER_PASSWORD_UPDATED = 'CUSTOMER_PASSWORD_UPDATED', + CUSTOMER_REGISTERED = 'CUSTOMER_REGISTERED', + CUSTOMER_REMOVED_FROM_GROUP = 'CUSTOMER_REMOVED_FROM_GROUP', + CUSTOMER_VERIFIED = 'CUSTOMER_VERIFIED', + ORDER_CANCELLATION = 'ORDER_CANCELLATION', + ORDER_COUPON_APPLIED = 'ORDER_COUPON_APPLIED', + ORDER_COUPON_REMOVED = 'ORDER_COUPON_REMOVED', + ORDER_CURRENCY_UPDATED = 'ORDER_CURRENCY_UPDATED', + ORDER_CUSTOMER_UPDATED = 'ORDER_CUSTOMER_UPDATED', + ORDER_FULFILLMENT = 'ORDER_FULFILLMENT', + ORDER_FULFILLMENT_TRANSITION = 'ORDER_FULFILLMENT_TRANSITION', + ORDER_MODIFIED = 'ORDER_MODIFIED', + ORDER_NOTE = 'ORDER_NOTE', + ORDER_PAYMENT_TRANSITION = 'ORDER_PAYMENT_TRANSITION', + ORDER_REFUND_TRANSITION = 'ORDER_REFUND_TRANSITION', + ORDER_STATE_TRANSITION = 'ORDER_STATE_TRANSITION' } /** Operators for filtering on a list of ID fields */ export type IdListOperators = { - inList: Scalars['ID']['input']; + inList: Scalars['ID']['input']; }; /** Operators for filtering on an ID field */ export type IdOperators = { - eq?: InputMaybe; - in?: InputMaybe>; - isNull?: InputMaybe; - notEq?: InputMaybe; - notIn?: InputMaybe>; + eq?: InputMaybe; + in?: InputMaybe>; + isNull?: InputMaybe; + notEq?: InputMaybe; + notIn?: InputMaybe>; }; /** @@ -1317,9 +1297,9 @@ export type IdOperators = { * expired according to the `verificationTokenDuration` setting in the AuthOptions. */ export type IdentifierChangeTokenExpiredError = ErrorResult & { - __typename?: 'IdentifierChangeTokenExpiredError'; - errorCode: ErrorCode; - message: Scalars['String']['output']; + __typename?: 'IdentifierChangeTokenExpiredError'; + errorCode: ErrorCode; + message: Scalars['String']['output']; }; /** @@ -1327,73 +1307,73 @@ export type IdentifierChangeTokenExpiredError = ErrorResult & { * invalid or does not match any expected tokens. */ export type IdentifierChangeTokenInvalidError = ErrorResult & { - __typename?: 'IdentifierChangeTokenInvalidError'; - errorCode: ErrorCode; - message: Scalars['String']['output']; + __typename?: 'IdentifierChangeTokenInvalidError'; + errorCode: ErrorCode; + message: Scalars['String']['output']; }; /** Returned when attempting to add a Payment using a PaymentMethod for which the Order is not eligible. */ export type IneligiblePaymentMethodError = ErrorResult & { - __typename?: 'IneligiblePaymentMethodError'; - eligibilityCheckerMessage?: Maybe; - errorCode: ErrorCode; - message: Scalars['String']['output']; + __typename?: 'IneligiblePaymentMethodError'; + eligibilityCheckerMessage?: Maybe; + errorCode: ErrorCode; + message: Scalars['String']['output']; }; /** Returned when attempting to set a ShippingMethod for which the Order is not eligible */ export type IneligibleShippingMethodError = ErrorResult & { - __typename?: 'IneligibleShippingMethodError'; - errorCode: ErrorCode; - message: Scalars['String']['output']; + __typename?: 'IneligibleShippingMethodError'; + errorCode: ErrorCode; + message: Scalars['String']['output']; }; /** Returned when attempting to add more items to the Order than are available */ export type InsufficientStockError = ErrorResult & { - __typename?: 'InsufficientStockError'; - errorCode: ErrorCode; - message: Scalars['String']['output']; - order: Order; - quantityAvailable: Scalars['Int']['output']; + __typename?: 'InsufficientStockError'; + errorCode: ErrorCode; + message: Scalars['String']['output']; + order: Order; + quantityAvailable: Scalars['Int']['output']; }; export type IntCustomFieldConfig = CustomField & { - __typename?: 'IntCustomFieldConfig'; - deprecated?: Maybe; - deprecationReason?: Maybe; - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']['output']; - max?: Maybe; - min?: Maybe; - name: Scalars['String']['output']; - nullable?: Maybe; - readonly?: Maybe; - requiresPermission?: Maybe>; - step?: Maybe; - type: Scalars['String']['output']; - ui?: Maybe; + __typename?: 'IntCustomFieldConfig'; + deprecated?: Maybe; + deprecationReason?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']['output']; + max?: Maybe; + min?: Maybe; + name: Scalars['String']['output']; + nullable?: Maybe; + readonly?: Maybe; + requiresPermission?: Maybe>; + step?: Maybe; + type: Scalars['String']['output']; + ui?: Maybe; }; export type IntStructFieldConfig = StructField & { - __typename?: 'IntStructFieldConfig'; - description?: Maybe>; - label?: Maybe>; - list: Scalars['Boolean']['output']; - max?: Maybe; - min?: Maybe; - name: Scalars['String']['output']; - step?: Maybe; - type: Scalars['String']['output']; - ui?: Maybe; + __typename?: 'IntStructFieldConfig'; + description?: Maybe>; + label?: Maybe>; + list: Scalars['Boolean']['output']; + max?: Maybe; + min?: Maybe; + name: Scalars['String']['output']; + step?: Maybe; + type: Scalars['String']['output']; + ui?: Maybe; }; /** Returned if the user authentication credentials are not valid */ export type InvalidCredentialsError = ErrorResult & { - __typename?: 'InvalidCredentialsError'; - authenticationError: Scalars['String']['output']; - errorCode: ErrorCode; - message: Scalars['String']['output']; + __typename?: 'InvalidCredentialsError'; + authenticationError: Scalars['String']['output']; + errorCode: ErrorCode; + message: Scalars['String']['output']; }; /** @@ -1406,624 +1386,648 @@ export type InvalidCredentialsError = ErrorResult & { * @docsCategory common */ export enum LanguageCode { - /** Afrikaans */ - af = 'af', - /** Akan */ - ak = 'ak', - /** Amharic */ - am = 'am', - /** Arabic */ - ar = 'ar', - /** Assamese */ - as = 'as', - /** Azerbaijani */ - az = 'az', - /** Belarusian */ - be = 'be', - /** Bulgarian */ - bg = 'bg', - /** Bambara */ - bm = 'bm', - /** Bangla */ - bn = 'bn', - /** Tibetan */ - bo = 'bo', - /** Breton */ - br = 'br', - /** Bosnian */ - bs = 'bs', - /** Catalan */ - ca = 'ca', - /** Chechen */ - ce = 'ce', - /** Corsican */ - co = 'co', - /** Czech */ - cs = 'cs', - /** Church Slavic */ - cu = 'cu', - /** Welsh */ - cy = 'cy', - /** Danish */ - da = 'da', - /** German */ - de = 'de', - /** Austrian German */ - de_AT = 'de_AT', - /** Swiss High German */ - de_CH = 'de_CH', - /** Dzongkha */ - dz = 'dz', - /** Ewe */ - ee = 'ee', - /** Greek */ - el = 'el', - /** 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', - /** Spanish */ - es = 'es', - /** European Spanish */ - es_ES = 'es_ES', - /** Mexican Spanish */ - es_MX = 'es_MX', - /** Estonian */ - et = 'et', - /** Basque */ - eu = 'eu', - /** Persian */ - fa = 'fa', - /** Dari */ - fa_AF = 'fa_AF', - /** Fulah */ - ff = 'ff', - /** Finnish */ - fi = 'fi', - /** Faroese */ - fo = 'fo', - /** French */ - fr = 'fr', - /** Canadian French */ - fr_CA = 'fr_CA', - /** Swiss French */ - fr_CH = 'fr_CH', - /** Western Frisian */ - fy = 'fy', - /** Irish */ - ga = 'ga', - /** Scottish Gaelic */ - gd = 'gd', - /** Galician */ - gl = 'gl', - /** Gujarati */ - gu = 'gu', - /** Manx */ - gv = 'gv', - /** Hausa */ - ha = 'ha', - /** Hebrew */ - he = 'he', - /** Hindi */ - hi = 'hi', - /** Croatian */ - hr = 'hr', - /** Haitian Creole */ - ht = 'ht', - /** Hungarian */ - hu = 'hu', - /** Armenian */ - hy = 'hy', - /** Interlingua */ - ia = 'ia', - /** Indonesian */ - id = 'id', - /** Igbo */ - ig = 'ig', - /** Sichuan Yi */ - ii = 'ii', - /** Icelandic */ - is = 'is', - /** Italian */ - it = 'it', - /** Japanese */ - ja = 'ja', - /** Javanese */ - jv = 'jv', - /** Georgian */ - ka = 'ka', - /** Kikuyu */ - ki = 'ki', - /** Kazakh */ - kk = 'kk', - /** Kalaallisut */ - kl = 'kl', - /** Khmer */ - km = 'km', - /** Kannada */ - kn = 'kn', - /** Korean */ - ko = 'ko', - /** Kashmiri */ - ks = 'ks', - /** Kurdish */ - ku = 'ku', - /** Cornish */ - kw = 'kw', - /** Kyrgyz */ - ky = 'ky', - /** Latin */ - la = 'la', - /** Luxembourgish */ - lb = 'lb', - /** Ganda */ - lg = 'lg', - /** Lingala */ - ln = 'ln', - /** Lao */ - lo = 'lo', - /** Lithuanian */ - lt = 'lt', - /** Luba-Katanga */ - lu = 'lu', - /** Latvian */ - lv = 'lv', - /** Malagasy */ - mg = 'mg', - /** Maori */ - mi = 'mi', - /** Macedonian */ - mk = 'mk', - /** Malayalam */ - ml = 'ml', - /** Mongolian */ - mn = 'mn', - /** Marathi */ - mr = 'mr', - /** Malay */ - ms = 'ms', - /** Maltese */ - mt = 'mt', - /** Burmese */ - my = 'my', - /** Norwegian Bokmål */ - nb = 'nb', - /** North Ndebele */ - nd = 'nd', - /** Nepali */ - ne = 'ne', - /** Dutch */ - nl = 'nl', - /** Flemish */ - nl_BE = 'nl_BE', - /** Norwegian Nynorsk */ - nn = 'nn', - /** Nyanja */ - ny = 'ny', - /** Oromo */ - om = 'om', - /** Odia */ - or = 'or', - /** Ossetic */ - os = 'os', - /** Punjabi */ - pa = 'pa', - /** Polish */ - pl = 'pl', - /** Pashto */ - ps = 'ps', - /** Portuguese */ - pt = 'pt', - /** Brazilian Portuguese */ - pt_BR = 'pt_BR', - /** European Portuguese */ - pt_PT = 'pt_PT', - /** Quechua */ - qu = 'qu', - /** Romansh */ - rm = 'rm', - /** Rundi */ - rn = 'rn', - /** Romanian */ - ro = 'ro', - /** Moldavian */ - ro_MD = 'ro_MD', - /** Russian */ - ru = 'ru', - /** Kinyarwanda */ - rw = 'rw', - /** Sanskrit */ - sa = 'sa', - /** Sindhi */ - sd = 'sd', - /** Northern Sami */ - se = 'se', - /** Sango */ - sg = 'sg', - /** Sinhala */ - si = 'si', - /** Slovak */ - sk = 'sk', - /** Slovenian */ - sl = 'sl', - /** Samoan */ - sm = 'sm', - /** Shona */ - sn = 'sn', - /** Somali */ - so = 'so', - /** Albanian */ - sq = 'sq', - /** Serbian */ - sr = 'sr', - /** Southern Sotho */ - st = 'st', - /** Sundanese */ - su = 'su', - /** Swedish */ - sv = 'sv', - /** Swahili */ - sw = 'sw', - /** Congo Swahili */ - sw_CD = 'sw_CD', - /** Tamil */ - ta = 'ta', - /** Telugu */ - te = 'te', - /** Tajik */ - tg = 'tg', - /** Thai */ - th = 'th', - /** Tigrinya */ - ti = 'ti', - /** Turkmen */ - tk = 'tk', - /** Tongan */ - to = 'to', - /** Turkish */ - tr = 'tr', - /** Tatar */ - tt = 'tt', - /** Uyghur */ - ug = 'ug', - /** Ukrainian */ - uk = 'uk', - /** Urdu */ - ur = 'ur', - /** Uzbek */ - uz = 'uz', - /** Vietnamese */ - vi = 'vi', - /** Volapük */ - vo = 'vo', - /** Wolof */ - wo = 'wo', - /** Xhosa */ - xh = 'xh', - /** Yiddish */ - yi = 'yi', - /** Yoruba */ - yo = 'yo', - /** Chinese */ - zh = 'zh', - /** Simplified Chinese */ - zh_Hans = 'zh_Hans', - /** Traditional Chinese */ - zh_Hant = 'zh_Hant', - /** Zulu */ - zu = 'zu', + /** Afrikaans */ + af = 'af', + /** Akan */ + ak = 'ak', + /** Amharic */ + am = 'am', + /** Arabic */ + ar = 'ar', + /** Assamese */ + as = 'as', + /** Azerbaijani */ + az = 'az', + /** Belarusian */ + be = 'be', + /** Bulgarian */ + bg = 'bg', + /** Bambara */ + bm = 'bm', + /** Bangla */ + bn = 'bn', + /** Tibetan */ + bo = 'bo', + /** Breton */ + br = 'br', + /** Bosnian */ + bs = 'bs', + /** Catalan */ + ca = 'ca', + /** Chechen */ + ce = 'ce', + /** Corsican */ + co = 'co', + /** Czech */ + cs = 'cs', + /** Church Slavic */ + cu = 'cu', + /** Welsh */ + cy = 'cy', + /** Danish */ + da = 'da', + /** German */ + de = 'de', + /** Austrian German */ + de_AT = 'de_AT', + /** Swiss High German */ + de_CH = 'de_CH', + /** Dzongkha */ + dz = 'dz', + /** Ewe */ + ee = 'ee', + /** Greek */ + el = 'el', + /** 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', + /** Spanish */ + es = 'es', + /** European Spanish */ + es_ES = 'es_ES', + /** Mexican Spanish */ + es_MX = 'es_MX', + /** Estonian */ + et = 'et', + /** Basque */ + eu = 'eu', + /** Persian */ + fa = 'fa', + /** Dari */ + fa_AF = 'fa_AF', + /** Fulah */ + ff = 'ff', + /** Finnish */ + fi = 'fi', + /** Faroese */ + fo = 'fo', + /** French */ + fr = 'fr', + /** Canadian French */ + fr_CA = 'fr_CA', + /** Swiss French */ + fr_CH = 'fr_CH', + /** Western Frisian */ + fy = 'fy', + /** Irish */ + ga = 'ga', + /** Scottish Gaelic */ + gd = 'gd', + /** Galician */ + gl = 'gl', + /** Gujarati */ + gu = 'gu', + /** Manx */ + gv = 'gv', + /** Hausa */ + ha = 'ha', + /** Hebrew */ + he = 'he', + /** Hindi */ + hi = 'hi', + /** Croatian */ + hr = 'hr', + /** Haitian Creole */ + ht = 'ht', + /** Hungarian */ + hu = 'hu', + /** Armenian */ + hy = 'hy', + /** Interlingua */ + ia = 'ia', + /** Indonesian */ + id = 'id', + /** Igbo */ + ig = 'ig', + /** Sichuan Yi */ + ii = 'ii', + /** Icelandic */ + is = 'is', + /** Italian */ + it = 'it', + /** Japanese */ + ja = 'ja', + /** Javanese */ + jv = 'jv', + /** Georgian */ + ka = 'ka', + /** Kikuyu */ + ki = 'ki', + /** Kazakh */ + kk = 'kk', + /** Kalaallisut */ + kl = 'kl', + /** Khmer */ + km = 'km', + /** Kannada */ + kn = 'kn', + /** Korean */ + ko = 'ko', + /** Kashmiri */ + ks = 'ks', + /** Kurdish */ + ku = 'ku', + /** Cornish */ + kw = 'kw', + /** Kyrgyz */ + ky = 'ky', + /** Latin */ + la = 'la', + /** Luxembourgish */ + lb = 'lb', + /** Ganda */ + lg = 'lg', + /** Lingala */ + ln = 'ln', + /** Lao */ + lo = 'lo', + /** Lithuanian */ + lt = 'lt', + /** Luba-Katanga */ + lu = 'lu', + /** Latvian */ + lv = 'lv', + /** Malagasy */ + mg = 'mg', + /** Maori */ + mi = 'mi', + /** Macedonian */ + mk = 'mk', + /** Malayalam */ + ml = 'ml', + /** Mongolian */ + mn = 'mn', + /** Marathi */ + mr = 'mr', + /** Malay */ + ms = 'ms', + /** Maltese */ + mt = 'mt', + /** Burmese */ + my = 'my', + /** Norwegian Bokmål */ + nb = 'nb', + /** North Ndebele */ + nd = 'nd', + /** Nepali */ + ne = 'ne', + /** Dutch */ + nl = 'nl', + /** Flemish */ + nl_BE = 'nl_BE', + /** Norwegian Nynorsk */ + nn = 'nn', + /** Nyanja */ + ny = 'ny', + /** Oromo */ + om = 'om', + /** Odia */ + or = 'or', + /** Ossetic */ + os = 'os', + /** Punjabi */ + pa = 'pa', + /** Polish */ + pl = 'pl', + /** Pashto */ + ps = 'ps', + /** Portuguese */ + pt = 'pt', + /** Brazilian Portuguese */ + pt_BR = 'pt_BR', + /** European Portuguese */ + pt_PT = 'pt_PT', + /** Quechua */ + qu = 'qu', + /** Romansh */ + rm = 'rm', + /** Rundi */ + rn = 'rn', + /** Romanian */ + ro = 'ro', + /** Moldavian */ + ro_MD = 'ro_MD', + /** Russian */ + ru = 'ru', + /** Kinyarwanda */ + rw = 'rw', + /** Sanskrit */ + sa = 'sa', + /** Sindhi */ + sd = 'sd', + /** Northern Sami */ + se = 'se', + /** Sango */ + sg = 'sg', + /** Sinhala */ + si = 'si', + /** Slovak */ + sk = 'sk', + /** Slovenian */ + sl = 'sl', + /** Samoan */ + sm = 'sm', + /** Shona */ + sn = 'sn', + /** Somali */ + so = 'so', + /** Albanian */ + sq = 'sq', + /** Serbian */ + sr = 'sr', + /** Southern Sotho */ + st = 'st', + /** Sundanese */ + su = 'su', + /** Swedish */ + sv = 'sv', + /** Swahili */ + sw = 'sw', + /** Congo Swahili */ + sw_CD = 'sw_CD', + /** Tamil */ + ta = 'ta', + /** Telugu */ + te = 'te', + /** Tajik */ + tg = 'tg', + /** Thai */ + th = 'th', + /** Tigrinya */ + ti = 'ti', + /** Turkmen */ + tk = 'tk', + /** Tongan */ + to = 'to', + /** Turkish */ + tr = 'tr', + /** Tatar */ + tt = 'tt', + /** Uyghur */ + ug = 'ug', + /** Ukrainian */ + uk = 'uk', + /** Urdu */ + ur = 'ur', + /** Uzbek */ + uz = 'uz', + /** Vietnamese */ + vi = 'vi', + /** Volapük */ + vo = 'vo', + /** Wolof */ + wo = 'wo', + /** Xhosa */ + xh = 'xh', + /** Yiddish */ + yi = 'yi', + /** Yoruba */ + yo = 'yo', + /** Chinese */ + zh = 'zh', + /** Simplified Chinese */ + zh_Hans = 'zh_Hans', + /** Traditional Chinese */ + zh_Hant = 'zh_Hant', + /** Zulu */ + zu = 'zu' } export type LocaleStringCustomFieldConfig = CustomField & { - __typename?: 'LocaleStringCustomFieldConfig'; - deprecated?: Maybe; - deprecationReason?: Maybe; - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - length?: Maybe; - list: Scalars['Boolean']['output']; - name: Scalars['String']['output']; - nullable?: Maybe; - pattern?: Maybe; - readonly?: Maybe; - requiresPermission?: Maybe>; - type: Scalars['String']['output']; - ui?: Maybe; + __typename?: 'LocaleStringCustomFieldConfig'; + deprecated?: Maybe; + deprecationReason?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + length?: Maybe; + list: Scalars['Boolean']['output']; + name: Scalars['String']['output']; + nullable?: Maybe; + pattern?: Maybe; + readonly?: Maybe; + requiresPermission?: Maybe>; + type: Scalars['String']['output']; + ui?: Maybe; }; export type LocaleTextCustomFieldConfig = CustomField & { - __typename?: 'LocaleTextCustomFieldConfig'; - deprecated?: Maybe; - deprecationReason?: Maybe; - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']['output']; - name: Scalars['String']['output']; - nullable?: Maybe; - readonly?: Maybe; - requiresPermission?: Maybe>; - type: Scalars['String']['output']; - ui?: Maybe; + __typename?: 'LocaleTextCustomFieldConfig'; + deprecated?: Maybe; + deprecationReason?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']['output']; + name: Scalars['String']['output']; + nullable?: Maybe; + readonly?: Maybe; + requiresPermission?: Maybe>; + type: Scalars['String']['output']; + ui?: Maybe; }; export type LocalizedString = { - __typename?: 'LocalizedString'; - languageCode: LanguageCode; - value: Scalars['String']['output']; + __typename?: 'LocalizedString'; + languageCode: LanguageCode; + value: Scalars['String']['output']; }; export enum LogicalOperator { - AND = 'AND', - OR = 'OR', + AND = 'AND', + OR = 'OR' } /** Returned when attempting 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']['output']; + __typename?: 'MissingPasswordError'; + errorCode: ErrorCode; + message: Scalars['String']['output']; }; 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; - /** Adds mutliple items to the Order. Returns a list of errors for each item that failed to add. It will still add successful items. */ - addItemsToOrder: UpdateMultipleOrderItemsResult; - /** Add a Payment to the Order */ - addPaymentToOrder: AddPaymentToOrderResult; - /** 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; - /** Authenticates the user using a named authentication strategy */ - authenticate: AuthenticationResult; - /** Create a new Customer Address */ - createCustomerAddress: Address; - /** Delete an existing Address */ - deleteCustomerAddress: Success; - /** - * Authenticates the user using the native authentication strategy. This mutation is an alias for authenticate({ native: { ... }}) - * - * The `rememberMe` option applies when using cookie-based sessions, and if `true` it will set the maxAge of the session cookie - * to 1 year. - */ - login: NativeAuthenticationResult; - /** End the current authenticated session */ - logout: Success; - /** Regenerate and send a verification token for a new Customer registration. Only applicable if `authOptions.requireVerification` is set to true. */ - refreshCustomerVerification: RefreshCustomerVerificationResult; - /** - * 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 chosen 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; - /** Remove all OrderLine from the Order */ - removeAllOrderLines: RemoveOrderItemsResult; - /** Removes the given coupon code from the active Order */ - removeCouponCode?: Maybe; - /** Remove an OrderLine from the Order */ - removeOrderLine: RemoveOrderItemsResult; - /** Requests a password reset email to be sent */ - requestPasswordReset?: Maybe; - /** - * 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; - /** Resets a Customer's password based on the provided token */ - resetPassword: ResetPasswordResult; - /** Sets the currency code for the active Order */ - setCurrencyCodeForOrder: UpdateOrderItemsResult; - /** Set the Customer for the Order. Required only if the Customer is not currently logged in */ - setCustomerForOrder: SetCustomerForOrderResult; - /** Sets the billing address for the active Order */ - setOrderBillingAddress: ActiveOrderResult; - /** Allows any custom fields to be set for the active Order */ - setOrderCustomFields: ActiveOrderResult; - /** Sets the shipping address for the active Order */ - setOrderShippingAddress: ActiveOrderResult; - /** - * Sets the shipping method by id, which can be obtained with the `eligibleShippingMethods` query. - * An Order can have multiple shipping methods, in which case you can pass an array of ids. In this case, - * you should configure a custom ShippingLineAssignmentStrategy in order to know which OrderLines each - * shipping method will apply to. - */ - setOrderShippingMethod: SetOrderShippingMethodResult; - /** Transitions an Order to a new state. Valid next states can be found by querying `nextOrderStates` */ - transitionOrderToState?: Maybe; - /** Unsets the billing address for the active Order. Available since version 3.1.0 */ - unsetOrderBillingAddress: ActiveOrderResult; - /** Unsets the shipping address for the active Order. Available since version 3.1.0 */ - unsetOrderShippingAddress: ActiveOrderResult; - /** Update an existing Customer */ - updateCustomer: Customer; - /** Update an existing Address */ - updateCustomerAddress: Address; - /** - * Confirm the update of the emailAddress with the provided token, which has been generated by the - * `requestUpdateCustomerEmailAddress` mutation. - */ - updateCustomerEmailAddress: UpdateCustomerEmailAddressResult; - /** Update the password of the active Customer */ - updateCustomerPassword: UpdateCustomerPasswordResult; - /** - * 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 password _must_ be - * provided here. - */ - verifyCustomerAccount: VerifyCustomerAccountResult; + __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; + /** Adds mutliple items to the Order. Returns a list of errors for each item that failed to add. It will still add successful items. */ + addItemsToOrder: UpdateMultipleOrderItemsResult; + /** Add a Payment to the Order */ + addPaymentToOrder: AddPaymentToOrderResult; + /** 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; + /** Authenticates the user using a named authentication strategy */ + authenticate: AuthenticationResult; + /** Create a new Customer Address */ + createCustomerAddress: Address; + /** Delete an existing Address */ + deleteCustomerAddress: Success; + /** + * Authenticates the user using the native authentication strategy. This mutation is an alias for authenticate({ native: { ... }}) + * + * The `rememberMe` option applies when using cookie-based sessions, and if `true` it will set the maxAge of the session cookie + * to 1 year. + */ + login: NativeAuthenticationResult; + /** End the current authenticated session */ + logout: Success; + /** Regenerate and send a verification token for a new Customer registration. Only applicable if `authOptions.requireVerification` is set to true. */ + refreshCustomerVerification: RefreshCustomerVerificationResult; + /** + * 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 chosen 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; + /** Remove all OrderLine from the Order */ + removeAllOrderLines: RemoveOrderItemsResult; + /** Removes the given coupon code from the active Order */ + removeCouponCode?: Maybe; + /** Remove an OrderLine from the Order */ + removeOrderLine: RemoveOrderItemsResult; + /** Requests a password reset email to be sent */ + requestPasswordReset?: Maybe; + /** + * 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; + /** Resets a Customer's password based on the provided token */ + resetPassword: ResetPasswordResult; + /** Sets the currency code for the active Order */ + setCurrencyCodeForOrder: UpdateOrderItemsResult; + /** Set the Customer for the Order. Required only if the Customer is not currently logged in */ + setCustomerForOrder: SetCustomerForOrderResult; + /** Sets the billing address for the active Order */ + setOrderBillingAddress: ActiveOrderResult; + /** Allows any custom fields to be set for the active Order */ + setOrderCustomFields: ActiveOrderResult; + /** Sets the shipping address for the active Order */ + setOrderShippingAddress: ActiveOrderResult; + /** + * Sets the shipping method by id, which can be obtained with the `eligibleShippingMethods` query. + * An Order can have multiple shipping methods, in which case you can pass an array of ids. In this case, + * you should configure a custom ShippingLineAssignmentStrategy in order to know which OrderLines each + * shipping method will apply to. + */ + setOrderShippingMethod: SetOrderShippingMethodResult; + /** Transitions an Order to a new state. Valid next states can be found by querying `nextOrderStates` */ + transitionOrderToState?: Maybe; + /** Unsets the billing address for the active Order. Available since version 3.1.0 */ + unsetOrderBillingAddress: ActiveOrderResult; + /** Unsets the shipping address for the active Order. Available since version 3.1.0 */ + unsetOrderShippingAddress: ActiveOrderResult; + /** Update an existing Customer */ + updateCustomer: Customer; + /** Update an existing Address */ + updateCustomerAddress: Address; + /** + * Confirm the update of the emailAddress with the provided token, which has been generated by the + * `requestUpdateCustomerEmailAddress` mutation. + */ + updateCustomerEmailAddress: UpdateCustomerEmailAddressResult; + /** Update the password of the active Customer */ + updateCustomerPassword: UpdateCustomerPasswordResult; + /** + * 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 password _must_ be + * provided here. + */ + verifyCustomerAccount: VerifyCustomerAccountResult; }; + export type MutationAddItemToOrderArgs = { - productVariantId: Scalars['ID']['input']; - quantity: Scalars['Int']['input']; + productVariantId: Scalars['ID']['input']; + quantity: Scalars['Int']['input']; }; + export type MutationAddItemsToOrderArgs = { - inputs: Array; + inputs: Array; }; + export type MutationAddPaymentToOrderArgs = { - input: PaymentInput; + input: PaymentInput; }; + export type MutationAdjustOrderLineArgs = { - orderLineId: Scalars['ID']['input']; - quantity: Scalars['Int']['input']; + orderLineId: Scalars['ID']['input']; + quantity: Scalars['Int']['input']; }; + export type MutationApplyCouponCodeArgs = { - couponCode: Scalars['String']['input']; + couponCode: Scalars['String']['input']; }; + export type MutationAuthenticateArgs = { - input: AuthenticationInput; - rememberMe?: InputMaybe; + input: AuthenticationInput; + rememberMe?: InputMaybe; }; + export type MutationCreateCustomerAddressArgs = { - input: CreateAddressInput; + input: CreateAddressInput; }; + export type MutationDeleteCustomerAddressArgs = { - id: Scalars['ID']['input']; + id: Scalars['ID']['input']; }; + export type MutationLoginArgs = { - password: Scalars['String']['input']; - rememberMe?: InputMaybe; - username: Scalars['String']['input']; + password: Scalars['String']['input']; + rememberMe?: InputMaybe; + username: Scalars['String']['input']; }; + export type MutationRefreshCustomerVerificationArgs = { - emailAddress: Scalars['String']['input']; + emailAddress: Scalars['String']['input']; }; + export type MutationRegisterCustomerAccountArgs = { - input: RegisterCustomerInput; + input: RegisterCustomerInput; }; + export type MutationRemoveCouponCodeArgs = { - couponCode: Scalars['String']['input']; + couponCode: Scalars['String']['input']; }; + export type MutationRemoveOrderLineArgs = { - orderLineId: Scalars['ID']['input']; + orderLineId: Scalars['ID']['input']; }; + export type MutationRequestPasswordResetArgs = { - emailAddress: Scalars['String']['input']; + emailAddress: Scalars['String']['input']; }; + export type MutationRequestUpdateCustomerEmailAddressArgs = { - newEmailAddress: Scalars['String']['input']; - password: Scalars['String']['input']; + newEmailAddress: Scalars['String']['input']; + password: Scalars['String']['input']; }; + export type MutationResetPasswordArgs = { - password: Scalars['String']['input']; - token: Scalars['String']['input']; + password: Scalars['String']['input']; + token: Scalars['String']['input']; }; + export type MutationSetCurrencyCodeForOrderArgs = { - currencyCode: CurrencyCode; + currencyCode: CurrencyCode; }; + export type MutationSetCustomerForOrderArgs = { - input: CreateCustomerInput; + input: CreateCustomerInput; }; + export type MutationSetOrderBillingAddressArgs = { - input: CreateAddressInput; + input: CreateAddressInput; }; + export type MutationSetOrderCustomFieldsArgs = { - input: UpdateOrderInput; + input: UpdateOrderInput; }; + export type MutationSetOrderShippingAddressArgs = { - input: CreateAddressInput; + input: CreateAddressInput; }; + export type MutationSetOrderShippingMethodArgs = { - shippingMethodId: Array; + shippingMethodId: Array; }; + export type MutationTransitionOrderToStateArgs = { - state: Scalars['String']['input']; + state: Scalars['String']['input']; }; + export type MutationUpdateCustomerArgs = { - input: UpdateCustomerInput; + input: UpdateCustomerInput; }; + export type MutationUpdateCustomerAddressArgs = { - input: UpdateAddressInput; + input: UpdateAddressInput; }; + export type MutationUpdateCustomerEmailAddressArgs = { - token: Scalars['String']['input']; + token: Scalars['String']['input']; }; + export type MutationUpdateCustomerPasswordArgs = { - currentPassword: Scalars['String']['input']; - newPassword: Scalars['String']['input']; + currentPassword: Scalars['String']['input']; + newPassword: Scalars['String']['input']; }; + export type MutationVerifyCustomerAccountArgs = { - password?: InputMaybe; - token: Scalars['String']['input']; + password?: InputMaybe; + token: Scalars['String']['input']; }; export type NativeAuthInput = { - password: Scalars['String']['input']; - username: Scalars['String']['input']; + password: Scalars['String']['input']; + username: Scalars['String']['input']; }; /** Returned 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']['output']; + __typename?: 'NativeAuthStrategyError'; + errorCode: ErrorCode; + message: Scalars['String']['output']; }; -export type NativeAuthenticationResult = - | CurrentUser - | InvalidCredentialsError - | NativeAuthStrategyError - | NotVerifiedError; +export type NativeAuthenticationResult = CurrentUser | InvalidCredentialsError | NativeAuthStrategyError | NotVerifiedError; /** Returned when attempting to set a negative OrderLine quantity. */ export type NegativeQuantityError = ErrorResult & { - __typename?: 'NegativeQuantityError'; - errorCode: ErrorCode; - message: Scalars['String']['output']; + __typename?: 'NegativeQuantityError'; + errorCode: ErrorCode; + message: Scalars['String']['output']; }; /** @@ -2031,13 +2035,13 @@ export type NegativeQuantityError = ErrorResult & { * current session. */ export type NoActiveOrderError = ErrorResult & { - __typename?: 'NoActiveOrderError'; - errorCode: ErrorCode; - message: Scalars['String']['output']; + __typename?: 'NoActiveOrderError'; + errorCode: ErrorCode; + message: Scalars['String']['output']; }; export type Node = { - id: Scalars['ID']['output']; + id: Scalars['ID']['output']; }; /** @@ -2045,267 +2049,268 @@ export type Node = { * and an unverified user attempts to authenticate. */ export type NotVerifiedError = ErrorResult & { - __typename?: 'NotVerifiedError'; - errorCode: ErrorCode; - message: Scalars['String']['output']; + __typename?: 'NotVerifiedError'; + errorCode: ErrorCode; + message: Scalars['String']['output']; }; /** Operators for filtering on a list of Number fields */ export type NumberListOperators = { - inList: Scalars['Float']['input']; + inList: Scalars['Float']['input']; }; /** Operators for filtering on a Int or Float field */ export type NumberOperators = { - between?: InputMaybe; - eq?: InputMaybe; - gt?: InputMaybe; - gte?: InputMaybe; - isNull?: InputMaybe; - lt?: InputMaybe; - lte?: InputMaybe; + between?: InputMaybe; + eq?: InputMaybe; + gt?: InputMaybe; + gte?: InputMaybe; + isNull?: InputMaybe; + lt?: InputMaybe; + lte?: InputMaybe; }; export type NumberRange = { - end: Scalars['Float']['input']; - start: Scalars['Float']['input']; + end: Scalars['Float']['input']; + start: Scalars['Float']['input']; }; export type Order = Node & { - __typename?: 'Order'; - /** An order is active as long as the payment process has not been completed */ - active: Scalars['Boolean']['output']; - billingAddress?: Maybe; - /** A unique code for the Order */ - code: Scalars['String']['output']; - /** An array of all coupon codes applied to the Order */ - couponCodes: Array; - createdAt: Scalars['DateTime']['output']; - currencyCode: CurrencyCode; - customFields?: Maybe; - customer?: Maybe; - discounts: Array; - fulfillments?: Maybe>; - history: HistoryEntryList; - id: Scalars['ID']['output']; - lines: Array; - /** - * The date & time that the Order was placed, i.e. the Customer - * completed the checkout and the Order is no longer "active" - */ - orderPlacedAt?: Maybe; - payments?: Maybe>; - /** Promotions applied to the order. Only gets populated after the payment process has completed. */ - promotions: Array; - shipping: Scalars['Money']['output']; - shippingAddress?: Maybe; - shippingLines: Array; - shippingWithTax: Scalars['Money']['output']; - state: Scalars['String']['output']; - /** - * The subTotal is the total of all OrderLines in the Order. This figure also includes any Order-level - * discounts which have been prorated (proportionally distributed) amongst the items of each OrderLine. - * To get a total of all OrderLines which does not account for prorated discounts, use the - * sum of `OrderLine.discountedLinePrice` values. - */ - subTotal: Scalars['Money']['output']; - /** Same as subTotal, but inclusive of tax */ - subTotalWithTax: Scalars['Money']['output']; - /** - * Surcharges are arbitrary modifications to the Order total which are neither - * ProductVariants nor discounts resulting from applied Promotions. For example, - * one-off discounts based on customer interaction, or surcharges based on payment - * methods. - */ - surcharges: Array; - /** A summary of the taxes being applied to this Order */ - taxSummary: Array; - /** Equal to subTotal plus shipping */ - total: Scalars['Money']['output']; - totalQuantity: Scalars['Int']['output']; - /** The final payable amount. Equal to subTotalWithTax plus shippingWithTax */ - totalWithTax: Scalars['Money']['output']; - type: OrderType; - updatedAt: Scalars['DateTime']['output']; + __typename?: 'Order'; + /** An order is active as long as the payment process has not been completed */ + active: Scalars['Boolean']['output']; + billingAddress?: Maybe; + /** A unique code for the Order */ + code: Scalars['String']['output']; + /** An array of all coupon codes applied to the Order */ + couponCodes: Array; + createdAt: Scalars['DateTime']['output']; + currencyCode: CurrencyCode; + customFields?: Maybe; + customer?: Maybe; + discounts: Array; + fulfillments?: Maybe>; + history: HistoryEntryList; + id: Scalars['ID']['output']; + lines: Array; + /** + * The date & time that the Order was placed, i.e. the Customer + * completed the checkout and the Order is no longer "active" + */ + orderPlacedAt?: Maybe; + payments?: Maybe>; + /** Promotions applied to the order. Only gets populated after the payment process has completed. */ + promotions: Array; + shipping: Scalars['Money']['output']; + shippingAddress?: Maybe; + shippingLines: Array; + shippingWithTax: Scalars['Money']['output']; + state: Scalars['String']['output']; + /** + * The subTotal is the total of all OrderLines in the Order. This figure also includes any Order-level + * discounts which have been prorated (proportionally distributed) amongst the items of each OrderLine. + * To get a total of all OrderLines which does not account for prorated discounts, use the + * sum of `OrderLine.discountedLinePrice` values. + */ + subTotal: Scalars['Money']['output']; + /** Same as subTotal, but inclusive of tax */ + subTotalWithTax: Scalars['Money']['output']; + /** + * Surcharges are arbitrary modifications to the Order total which are neither + * ProductVariants nor discounts resulting from applied Promotions. For example, + * one-off discounts based on customer interaction, or surcharges based on payment + * methods. + */ + surcharges: Array; + /** A summary of the taxes being applied to this Order */ + taxSummary: Array; + /** Equal to subTotal plus shipping */ + total: Scalars['Money']['output']; + totalQuantity: Scalars['Int']['output']; + /** The final payable amount. Equal to subTotalWithTax plus shippingWithTax */ + totalWithTax: Scalars['Money']['output']; + type: OrderType; + updatedAt: Scalars['DateTime']['output']; }; + export type OrderHistoryArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type OrderAddress = { - __typename?: 'OrderAddress'; - city?: Maybe; - company?: Maybe; - country?: Maybe; - countryCode?: Maybe; - customFields?: Maybe; - fullName?: Maybe; - phoneNumber?: Maybe; - postalCode?: Maybe; - province?: Maybe; - streetLine1?: Maybe; - streetLine2?: Maybe; + __typename?: 'OrderAddress'; + city?: Maybe; + company?: Maybe; + country?: Maybe; + countryCode?: Maybe; + customFields?: Maybe; + fullName?: Maybe; + phoneNumber?: Maybe; + postalCode?: Maybe; + province?: Maybe; + streetLine1?: Maybe; + streetLine2?: Maybe; }; export type OrderFilterParameter = { - _and?: InputMaybe>; - _or?: InputMaybe>; - active?: InputMaybe; - code?: InputMaybe; - createdAt?: InputMaybe; - currencyCode?: InputMaybe; - id?: InputMaybe; - orderPlacedAt?: InputMaybe; - shipping?: InputMaybe; - shippingWithTax?: InputMaybe; - state?: InputMaybe; - subTotal?: InputMaybe; - subTotalWithTax?: InputMaybe; - total?: InputMaybe; - totalQuantity?: InputMaybe; - totalWithTax?: InputMaybe; - type?: InputMaybe; - updatedAt?: InputMaybe; + _and?: InputMaybe>; + _or?: InputMaybe>; + active?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + currencyCode?: InputMaybe; + id?: InputMaybe; + orderPlacedAt?: InputMaybe; + shipping?: InputMaybe; + shippingWithTax?: InputMaybe; + state?: InputMaybe; + subTotal?: InputMaybe; + subTotalWithTax?: InputMaybe; + total?: InputMaybe; + totalQuantity?: InputMaybe; + totalWithTax?: InputMaybe; + type?: InputMaybe; + updatedAt?: InputMaybe; }; /** Returned when an order operation is rejected by an OrderInterceptor method. */ export type OrderInterceptorError = ErrorResult & { - __typename?: 'OrderInterceptorError'; - errorCode: ErrorCode; - interceptorError: Scalars['String']['output']; - message: Scalars['String']['output']; + __typename?: 'OrderInterceptorError'; + errorCode: ErrorCode; + interceptorError: Scalars['String']['output']; + message: Scalars['String']['output']; }; /** Returned when the maximum order size limit has been reached. */ export type OrderLimitError = ErrorResult & { - __typename?: 'OrderLimitError'; - errorCode: ErrorCode; - maxItems: Scalars['Int']['output']; - message: Scalars['String']['output']; + __typename?: 'OrderLimitError'; + errorCode: ErrorCode; + maxItems: Scalars['Int']['output']; + message: Scalars['String']['output']; }; export type OrderLine = Node & { - __typename?: 'OrderLine'; - createdAt: Scalars['DateTime']['output']; - customFields?: Maybe; - /** The price of the line including discounts, excluding tax */ - discountedLinePrice: Scalars['Money']['output']; - /** The price of the line including discounts and tax */ - discountedLinePriceWithTax: Scalars['Money']['output']; - /** - * The price of a single unit including discounts, excluding tax. - * - * If Order-level discounts have been applied, this will not be the - * actual taxable unit price (see `proratedUnitPrice`), but is generally the - * correct price to display to customers to avoid confusion - * about the internal handling of distributed Order-level discounts. - */ - discountedUnitPrice: Scalars['Money']['output']; - /** The price of a single unit including discounts and tax */ - discountedUnitPriceWithTax: Scalars['Money']['output']; - discounts: Array; - featuredAsset?: Maybe; - fulfillmentLines?: Maybe>; - id: Scalars['ID']['output']; - /** The total price of the line excluding tax and discounts. */ - linePrice: Scalars['Money']['output']; - /** The total price of the line including tax but excluding discounts. */ - linePriceWithTax: Scalars['Money']['output']; - /** The total tax on this line */ - lineTax: Scalars['Money']['output']; - order: Order; - /** The quantity at the time the Order was placed */ - orderPlacedQuantity: Scalars['Int']['output']; - productVariant: ProductVariant; - /** - * The actual line price, taking into account both item discounts _and_ prorated (proportionally-distributed) - * Order-level discounts. This value is the true economic value of the OrderLine, and is used in tax - * and refund calculations. - */ - proratedLinePrice: Scalars['Money']['output']; - /** The proratedLinePrice including tax */ - proratedLinePriceWithTax: Scalars['Money']['output']; - /** - * The actual unit price, taking into account both item discounts _and_ prorated (proportionally-distributed) - * Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax - * and refund calculations. - */ - proratedUnitPrice: Scalars['Money']['output']; - /** The proratedUnitPrice including tax */ - proratedUnitPriceWithTax: Scalars['Money']['output']; - /** The quantity of items purchased */ - quantity: Scalars['Int']['output']; - taxLines: Array; - taxRate: Scalars['Float']['output']; - /** The price of a single unit, excluding tax and discounts */ - unitPrice: Scalars['Money']['output']; - /** Non-zero if the unitPrice has changed since it was initially added to Order */ - unitPriceChangeSinceAdded: Scalars['Money']['output']; - /** The price of a single unit, including tax but excluding discounts */ - unitPriceWithTax: Scalars['Money']['output']; - /** Non-zero if the unitPriceWithTax has changed since it was initially added to Order */ - unitPriceWithTaxChangeSinceAdded: Scalars['Money']['output']; - updatedAt: Scalars['DateTime']['output']; + __typename?: 'OrderLine'; + createdAt: Scalars['DateTime']['output']; + customFields?: Maybe; + /** The price of the line including discounts, excluding tax */ + discountedLinePrice: Scalars['Money']['output']; + /** The price of the line including discounts and tax */ + discountedLinePriceWithTax: Scalars['Money']['output']; + /** + * The price of a single unit including discounts, excluding tax. + * + * If Order-level discounts have been applied, this will not be the + * actual taxable unit price (see `proratedUnitPrice`), but is generally the + * correct price to display to customers to avoid confusion + * about the internal handling of distributed Order-level discounts. + */ + discountedUnitPrice: Scalars['Money']['output']; + /** The price of a single unit including discounts and tax */ + discountedUnitPriceWithTax: Scalars['Money']['output']; + discounts: Array; + featuredAsset?: Maybe; + fulfillmentLines?: Maybe>; + id: Scalars['ID']['output']; + /** The total price of the line excluding tax and discounts. */ + linePrice: Scalars['Money']['output']; + /** The total price of the line including tax but excluding discounts. */ + linePriceWithTax: Scalars['Money']['output']; + /** The total tax on this line */ + lineTax: Scalars['Money']['output']; + order: Order; + /** The quantity at the time the Order was placed */ + orderPlacedQuantity: Scalars['Int']['output']; + productVariant: ProductVariant; + /** + * The actual line price, taking into account both item discounts _and_ prorated (proportionally-distributed) + * Order-level discounts. This value is the true economic value of the OrderLine, and is used in tax + * and refund calculations. + */ + proratedLinePrice: Scalars['Money']['output']; + /** The proratedLinePrice including tax */ + proratedLinePriceWithTax: Scalars['Money']['output']; + /** + * The actual unit price, taking into account both item discounts _and_ prorated (proportionally-distributed) + * Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax + * and refund calculations. + */ + proratedUnitPrice: Scalars['Money']['output']; + /** The proratedUnitPrice including tax */ + proratedUnitPriceWithTax: Scalars['Money']['output']; + /** The quantity of items purchased */ + quantity: Scalars['Int']['output']; + taxLines: Array; + taxRate: Scalars['Float']['output']; + /** The price of a single unit, excluding tax and discounts */ + unitPrice: Scalars['Money']['output']; + /** Non-zero if the unitPrice has changed since it was initially added to Order */ + unitPriceChangeSinceAdded: Scalars['Money']['output']; + /** The price of a single unit, including tax but excluding discounts */ + unitPriceWithTax: Scalars['Money']['output']; + /** Non-zero if the unitPriceWithTax has changed since it was initially added to Order */ + unitPriceWithTaxChangeSinceAdded: Scalars['Money']['output']; + updatedAt: Scalars['DateTime']['output']; }; export type OrderList = PaginatedList & { - __typename?: 'OrderList'; - items: Array; - totalItems: Scalars['Int']['output']; + __typename?: 'OrderList'; + items: Array; + totalItems: Scalars['Int']['output']; }; export type OrderListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; /** 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']['output']; + __typename?: 'OrderModificationError'; + errorCode: ErrorCode; + message: Scalars['String']['output']; }; /** 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']['output']; + __typename?: 'OrderPaymentStateError'; + errorCode: ErrorCode; + message: Scalars['String']['output']; }; export type OrderSortParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - id?: InputMaybe; - orderPlacedAt?: InputMaybe; - shipping?: InputMaybe; - shippingWithTax?: InputMaybe; - state?: InputMaybe; - subTotal?: InputMaybe; - subTotalWithTax?: InputMaybe; - total?: InputMaybe; - totalQuantity?: InputMaybe; - totalWithTax?: InputMaybe; - updatedAt?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + orderPlacedAt?: InputMaybe; + shipping?: InputMaybe; + shippingWithTax?: InputMaybe; + state?: InputMaybe; + subTotal?: InputMaybe; + subTotalWithTax?: InputMaybe; + total?: InputMaybe; + totalQuantity?: InputMaybe; + totalWithTax?: InputMaybe; + updatedAt?: InputMaybe; }; /** Returned if there is an error in transitioning the Order state */ export type OrderStateTransitionError = ErrorResult & { - __typename?: 'OrderStateTransitionError'; - errorCode: ErrorCode; - fromState: Scalars['String']['output']; - message: Scalars['String']['output']; - toState: Scalars['String']['output']; - transitionError: Scalars['String']['output']; + __typename?: 'OrderStateTransitionError'; + errorCode: ErrorCode; + fromState: Scalars['String']['output']; + message: Scalars['String']['output']; + toState: Scalars['String']['output']; + transitionError: Scalars['String']['output']; }; /** @@ -2313,33 +2318,33 @@ export type OrderStateTransitionError = ErrorResult & { * by taxRate. */ export type OrderTaxSummary = { - __typename?: 'OrderTaxSummary'; - /** A description of this tax */ - description: Scalars['String']['output']; - /** The total net price of OrderLines to which this taxRate applies */ - taxBase: Scalars['Money']['output']; - /** The taxRate as a percentage */ - taxRate: Scalars['Float']['output']; - /** The total tax being applied to the Order at this taxRate */ - taxTotal: Scalars['Money']['output']; + __typename?: 'OrderTaxSummary'; + /** A description of this tax */ + description: Scalars['String']['output']; + /** The total net price of OrderLines to which this taxRate applies */ + taxBase: Scalars['Money']['output']; + /** The taxRate as a percentage */ + taxRate: Scalars['Float']['output']; + /** The total tax being applied to the Order at this taxRate */ + taxTotal: Scalars['Money']['output']; }; export enum OrderType { - Aggregate = 'Aggregate', - Regular = 'Regular', - Seller = 'Seller', + Aggregate = 'Aggregate', + Regular = 'Regular', + Seller = 'Seller' } export type PaginatedList = { - items: Array; - totalItems: Scalars['Int']['output']; + items: Array; + totalItems: Scalars['Int']['output']; }; /** Returned when attempting 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']['output']; + __typename?: 'PasswordAlreadySetError'; + errorCode: ErrorCode; + message: Scalars['String']['output']; }; /** @@ -2347,9 +2352,9 @@ export type PasswordAlreadySetError = ErrorResult & { * expired according to the `verificationTokenDuration` setting in the AuthOptions. */ export type PasswordResetTokenExpiredError = ErrorResult & { - __typename?: 'PasswordResetTokenExpiredError'; - errorCode: ErrorCode; - message: Scalars['String']['output']; + __typename?: 'PasswordResetTokenExpiredError'; + errorCode: ErrorCode; + message: Scalars['String']['output']; }; /** @@ -2357,96 +2362,96 @@ export type PasswordResetTokenExpiredError = ErrorResult & { * invalid or does not match any expected tokens. */ export type PasswordResetTokenInvalidError = ErrorResult & { - __typename?: 'PasswordResetTokenInvalidError'; - errorCode: ErrorCode; - message: Scalars['String']['output']; + __typename?: 'PasswordResetTokenInvalidError'; + errorCode: ErrorCode; + message: Scalars['String']['output']; }; /** Returned when attempting to register or verify a customer account where the given password fails password validation. */ export type PasswordValidationError = ErrorResult & { - __typename?: 'PasswordValidationError'; - errorCode: ErrorCode; - message: Scalars['String']['output']; - validationErrorMessage: Scalars['String']['output']; + __typename?: 'PasswordValidationError'; + errorCode: ErrorCode; + message: Scalars['String']['output']; + validationErrorMessage: Scalars['String']['output']; }; export type Payment = Node & { - __typename?: 'Payment'; - amount: Scalars['Money']['output']; - createdAt: Scalars['DateTime']['output']; - customFields?: Maybe; - errorMessage?: Maybe; - id: Scalars['ID']['output']; - metadata?: Maybe; - method: Scalars['String']['output']; - refunds: Array; - state: Scalars['String']['output']; - transactionId?: Maybe; - updatedAt: Scalars['DateTime']['output']; + __typename?: 'Payment'; + amount: Scalars['Money']['output']; + createdAt: Scalars['DateTime']['output']; + customFields?: Maybe; + errorMessage?: Maybe; + id: Scalars['ID']['output']; + metadata?: Maybe; + method: Scalars['String']['output']; + refunds: Array; + state: Scalars['String']['output']; + transactionId?: Maybe; + updatedAt: Scalars['DateTime']['output']; }; /** Returned when a Payment is declined by the payment provider. */ export type PaymentDeclinedError = ErrorResult & { - __typename?: 'PaymentDeclinedError'; - errorCode: ErrorCode; - message: Scalars['String']['output']; - paymentErrorMessage: Scalars['String']['output']; + __typename?: 'PaymentDeclinedError'; + errorCode: ErrorCode; + message: Scalars['String']['output']; + paymentErrorMessage: Scalars['String']['output']; }; /** Returned when a Payment fails due to an error. */ export type PaymentFailedError = ErrorResult & { - __typename?: 'PaymentFailedError'; - errorCode: ErrorCode; - message: Scalars['String']['output']; - paymentErrorMessage: Scalars['String']['output']; + __typename?: 'PaymentFailedError'; + errorCode: ErrorCode; + message: Scalars['String']['output']; + paymentErrorMessage: Scalars['String']['output']; }; /** Passed as input to the `addPaymentToOrder` mutation. */ export type PaymentInput = { - /** - * 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']['input']; - /** This field should correspond to the `code` property of a PaymentMethod. */ - method: Scalars['String']['input']; + /** + * 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']['input']; + /** This field should correspond to the `code` property of a PaymentMethod. */ + method: Scalars['String']['input']; }; export type PaymentMethod = Node & { - __typename?: 'PaymentMethod'; - checker?: Maybe; - code: Scalars['String']['output']; - createdAt: Scalars['DateTime']['output']; - customFields?: Maybe; - description: Scalars['String']['output']; - enabled: Scalars['Boolean']['output']; - handler: ConfigurableOperation; - id: Scalars['ID']['output']; - name: Scalars['String']['output']; - translations: Array; - updatedAt: Scalars['DateTime']['output']; + __typename?: 'PaymentMethod'; + checker?: Maybe; + code: Scalars['String']['output']; + createdAt: Scalars['DateTime']['output']; + customFields?: Maybe; + description: Scalars['String']['output']; + enabled: Scalars['Boolean']['output']; + handler: ConfigurableOperation; + id: Scalars['ID']['output']; + name: Scalars['String']['output']; + translations: Array; + updatedAt: Scalars['DateTime']['output']; }; export type PaymentMethodQuote = { - __typename?: 'PaymentMethodQuote'; - code: Scalars['String']['output']; - customFields?: Maybe; - description: Scalars['String']['output']; - eligibilityMessage?: Maybe; - id: Scalars['ID']['output']; - isEligible: Scalars['Boolean']['output']; - name: Scalars['String']['output']; + __typename?: 'PaymentMethodQuote'; + code: Scalars['String']['output']; + customFields?: Maybe; + description: Scalars['String']['output']; + eligibilityMessage?: Maybe; + id: Scalars['ID']['output']; + isEligible: Scalars['Boolean']['output']; + name: Scalars['String']['output']; }; export type PaymentMethodTranslation = { - __typename?: 'PaymentMethodTranslation'; - createdAt: Scalars['DateTime']['output']; - description: Scalars['String']['output']; - id: Scalars['ID']['output']; - languageCode: LanguageCode; - name: Scalars['String']['output']; - updatedAt: Scalars['DateTime']['output']; + __typename?: 'PaymentMethodTranslation'; + createdAt: Scalars['DateTime']['output']; + description: Scalars['String']['output']; + id: Scalars['ID']['output']; + languageCode: LanguageCode; + name: Scalars['String']['output']; + updatedAt: Scalars['DateTime']['output']; }; /** @@ -2482,1045 +2487,1025 @@ export type PaymentMethodTranslation = { * @docsCategory common */ export enum Permission { - /** Authenticated means simply that the user is logged in */ - Authenticated = 'Authenticated', - /** Grants permission to create Administrator */ - CreateAdministrator = 'CreateAdministrator', - /** Grants permission to create ApiKey */ - CreateApiKey = 'CreateApiKey', - /** Grants permission to create Asset */ - CreateAsset = 'CreateAsset', - /** Grants permission to create Products, Facets, Assets, Collections */ - CreateCatalog = 'CreateCatalog', - /** Grants permission to create Channel */ - CreateChannel = 'CreateChannel', - /** Grants permission to create Collection */ - CreateCollection = 'CreateCollection', - /** Grants permission to create Country */ - CreateCountry = 'CreateCountry', - /** Grants permission to create Customer */ - CreateCustomer = 'CreateCustomer', - /** Grants permission to create CustomerGroup */ - CreateCustomerGroup = 'CreateCustomerGroup', - /** Grants permission to create Facet */ - CreateFacet = 'CreateFacet', - /** Grants permission to create Order */ - CreateOrder = 'CreateOrder', - /** Grants permission to create PaymentMethod */ - CreatePaymentMethod = 'CreatePaymentMethod', - /** Grants permission to create Product */ - CreateProduct = 'CreateProduct', - /** Grants permission to create Promotion */ - CreatePromotion = 'CreatePromotion', - /** Grants permission to create Seller */ - CreateSeller = 'CreateSeller', - /** Grants permission to create PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ - CreateSettings = 'CreateSettings', - /** Grants permission to create ShippingMethod */ - CreateShippingMethod = 'CreateShippingMethod', - /** Grants permission to create StockLocation */ - CreateStockLocation = 'CreateStockLocation', - /** Grants permission to create System */ - CreateSystem = 'CreateSystem', - /** Grants permission to create Tag */ - CreateTag = 'CreateTag', - /** Grants permission to create TaxCategory */ - CreateTaxCategory = 'CreateTaxCategory', - /** Grants permission to create TaxRate */ - CreateTaxRate = 'CreateTaxRate', - /** Grants permission to create Zone */ - CreateZone = 'CreateZone', - /** Grants permission to delete Administrator */ - DeleteAdministrator = 'DeleteAdministrator', - /** Grants permission to delete ApiKey */ - DeleteApiKey = 'DeleteApiKey', - /** Grants permission to delete Asset */ - DeleteAsset = 'DeleteAsset', - /** Grants permission to delete Products, Facets, Assets, Collections */ - DeleteCatalog = 'DeleteCatalog', - /** Grants permission to delete Channel */ - DeleteChannel = 'DeleteChannel', - /** Grants permission to delete Collection */ - DeleteCollection = 'DeleteCollection', - /** Grants permission to delete Country */ - DeleteCountry = 'DeleteCountry', - /** Grants permission to delete Customer */ - DeleteCustomer = 'DeleteCustomer', - /** Grants permission to delete CustomerGroup */ - DeleteCustomerGroup = 'DeleteCustomerGroup', - /** Grants permission to delete Facet */ - DeleteFacet = 'DeleteFacet', - /** Grants permission to delete Order */ - DeleteOrder = 'DeleteOrder', - /** Grants permission to delete PaymentMethod */ - DeletePaymentMethod = 'DeletePaymentMethod', - /** Grants permission to delete Product */ - DeleteProduct = 'DeleteProduct', - /** Grants permission to delete Promotion */ - DeletePromotion = 'DeletePromotion', - /** Grants permission to delete Seller */ - DeleteSeller = 'DeleteSeller', - /** Grants permission to delete PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ - DeleteSettings = 'DeleteSettings', - /** Grants permission to delete ShippingMethod */ - DeleteShippingMethod = 'DeleteShippingMethod', - /** Grants permission to delete StockLocation */ - DeleteStockLocation = 'DeleteStockLocation', - /** Grants permission to delete System */ - DeleteSystem = 'DeleteSystem', - /** Grants permission to delete Tag */ - DeleteTag = 'DeleteTag', - /** Grants permission to delete TaxCategory */ - DeleteTaxCategory = 'DeleteTaxCategory', - /** Grants permission to delete TaxRate */ - DeleteTaxRate = 'DeleteTaxRate', - /** Grants permission to delete Zone */ - DeleteZone = 'DeleteZone', - /** 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', - /** Grants permission to read Administrator */ - ReadAdministrator = 'ReadAdministrator', - /** Grants permission to read ApiKey */ - ReadApiKey = 'ReadApiKey', - /** Grants permission to read Asset */ - ReadAsset = 'ReadAsset', - /** Grants permission to read Products, Facets, Assets, Collections */ - ReadCatalog = 'ReadCatalog', - /** Grants permission to read Channel */ - ReadChannel = 'ReadChannel', - /** Grants permission to read Collection */ - ReadCollection = 'ReadCollection', - /** Grants permission to read Country */ - ReadCountry = 'ReadCountry', - /** Grants permission to read Customer */ - ReadCustomer = 'ReadCustomer', - /** Grants permission to read CustomerGroup */ - ReadCustomerGroup = 'ReadCustomerGroup', - /** Grants permission to read Facet */ - ReadFacet = 'ReadFacet', - /** Grants permission to read Order */ - ReadOrder = 'ReadOrder', - /** Grants permission to read PaymentMethod */ - ReadPaymentMethod = 'ReadPaymentMethod', - /** Grants permission to read Product */ - ReadProduct = 'ReadProduct', - /** Grants permission to read Promotion */ - ReadPromotion = 'ReadPromotion', - /** Grants permission to read Seller */ - ReadSeller = 'ReadSeller', - /** Grants permission to read PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ - ReadSettings = 'ReadSettings', - /** Grants permission to read ShippingMethod */ - ReadShippingMethod = 'ReadShippingMethod', - /** Grants permission to read StockLocation */ - ReadStockLocation = 'ReadStockLocation', - /** Grants permission to read System */ - ReadSystem = 'ReadSystem', - /** Grants permission to read Tag */ - ReadTag = 'ReadTag', - /** Grants permission to read TaxCategory */ - ReadTaxCategory = 'ReadTaxCategory', - /** Grants permission to read TaxRate */ - ReadTaxRate = 'ReadTaxRate', - /** Grants permission to read Zone */ - ReadZone = 'ReadZone', - /** SuperAdmin has unrestricted access to all operations */ - SuperAdmin = 'SuperAdmin', - /** Grants permission to update Administrator */ - UpdateAdministrator = 'UpdateAdministrator', - /** Grants permission to update ApiKey */ - UpdateApiKey = 'UpdateApiKey', - /** Grants permission to update Asset */ - UpdateAsset = 'UpdateAsset', - /** Grants permission to update Products, Facets, Assets, Collections */ - UpdateCatalog = 'UpdateCatalog', - /** Grants permission to update Channel */ - UpdateChannel = 'UpdateChannel', - /** Grants permission to update Collection */ - UpdateCollection = 'UpdateCollection', - /** Grants permission to update Country */ - UpdateCountry = 'UpdateCountry', - /** Grants permission to update Customer */ - UpdateCustomer = 'UpdateCustomer', - /** Grants permission to update CustomerGroup */ - UpdateCustomerGroup = 'UpdateCustomerGroup', - /** Grants permission to update Facet */ - UpdateFacet = 'UpdateFacet', - /** Grants permission to update GlobalSettings */ - UpdateGlobalSettings = 'UpdateGlobalSettings', - /** Grants permission to update Order */ - UpdateOrder = 'UpdateOrder', - /** Grants permission to update PaymentMethod */ - UpdatePaymentMethod = 'UpdatePaymentMethod', - /** Grants permission to update Product */ - UpdateProduct = 'UpdateProduct', - /** Grants permission to update Promotion */ - UpdatePromotion = 'UpdatePromotion', - /** Grants permission to update Seller */ - UpdateSeller = 'UpdateSeller', - /** Grants permission to update PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ - UpdateSettings = 'UpdateSettings', - /** Grants permission to update ShippingMethod */ - UpdateShippingMethod = 'UpdateShippingMethod', - /** Grants permission to update StockLocation */ - UpdateStockLocation = 'UpdateStockLocation', - /** Grants permission to update System */ - UpdateSystem = 'UpdateSystem', - /** Grants permission to update Tag */ - UpdateTag = 'UpdateTag', - /** Grants permission to update TaxCategory */ - UpdateTaxCategory = 'UpdateTaxCategory', - /** Grants permission to update TaxRate */ - UpdateTaxRate = 'UpdateTaxRate', - /** Grants permission to update Zone */ - UpdateZone = 'UpdateZone', + /** Authenticated means simply that the user is logged in */ + Authenticated = 'Authenticated', + /** Grants permission to create Administrator */ + CreateAdministrator = 'CreateAdministrator', + /** Grants permission to create ApiKey */ + CreateApiKey = 'CreateApiKey', + /** Grants permission to create Asset */ + CreateAsset = 'CreateAsset', + /** Grants permission to create Products, Facets, Assets, Collections */ + CreateCatalog = 'CreateCatalog', + /** Grants permission to create Channel */ + CreateChannel = 'CreateChannel', + /** Grants permission to create Collection */ + CreateCollection = 'CreateCollection', + /** Grants permission to create Country */ + CreateCountry = 'CreateCountry', + /** Grants permission to create Customer */ + CreateCustomer = 'CreateCustomer', + /** Grants permission to create CustomerGroup */ + CreateCustomerGroup = 'CreateCustomerGroup', + /** Grants permission to create Facet */ + CreateFacet = 'CreateFacet', + /** Grants permission to create Order */ + CreateOrder = 'CreateOrder', + /** Grants permission to create PaymentMethod */ + CreatePaymentMethod = 'CreatePaymentMethod', + /** Grants permission to create Product */ + CreateProduct = 'CreateProduct', + /** Grants permission to create Promotion */ + CreatePromotion = 'CreatePromotion', + /** Grants permission to create Seller */ + CreateSeller = 'CreateSeller', + /** Grants permission to create PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ + CreateSettings = 'CreateSettings', + /** Grants permission to create ShippingMethod */ + CreateShippingMethod = 'CreateShippingMethod', + /** Grants permission to create StockLocation */ + CreateStockLocation = 'CreateStockLocation', + /** Grants permission to create System */ + CreateSystem = 'CreateSystem', + /** Grants permission to create Tag */ + CreateTag = 'CreateTag', + /** Grants permission to create TaxCategory */ + CreateTaxCategory = 'CreateTaxCategory', + /** Grants permission to create TaxRate */ + CreateTaxRate = 'CreateTaxRate', + /** Grants permission to create Zone */ + CreateZone = 'CreateZone', + /** Grants permission to delete Administrator */ + DeleteAdministrator = 'DeleteAdministrator', + /** Grants permission to delete ApiKey */ + DeleteApiKey = 'DeleteApiKey', + /** Grants permission to delete Asset */ + DeleteAsset = 'DeleteAsset', + /** Grants permission to delete Products, Facets, Assets, Collections */ + DeleteCatalog = 'DeleteCatalog', + /** Grants permission to delete Channel */ + DeleteChannel = 'DeleteChannel', + /** Grants permission to delete Collection */ + DeleteCollection = 'DeleteCollection', + /** Grants permission to delete Country */ + DeleteCountry = 'DeleteCountry', + /** Grants permission to delete Customer */ + DeleteCustomer = 'DeleteCustomer', + /** Grants permission to delete CustomerGroup */ + DeleteCustomerGroup = 'DeleteCustomerGroup', + /** Grants permission to delete Facet */ + DeleteFacet = 'DeleteFacet', + /** Grants permission to delete Order */ + DeleteOrder = 'DeleteOrder', + /** Grants permission to delete PaymentMethod */ + DeletePaymentMethod = 'DeletePaymentMethod', + /** Grants permission to delete Product */ + DeleteProduct = 'DeleteProduct', + /** Grants permission to delete Promotion */ + DeletePromotion = 'DeletePromotion', + /** Grants permission to delete Seller */ + DeleteSeller = 'DeleteSeller', + /** Grants permission to delete PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ + DeleteSettings = 'DeleteSettings', + /** Grants permission to delete ShippingMethod */ + DeleteShippingMethod = 'DeleteShippingMethod', + /** Grants permission to delete StockLocation */ + DeleteStockLocation = 'DeleteStockLocation', + /** Grants permission to delete System */ + DeleteSystem = 'DeleteSystem', + /** Grants permission to delete Tag */ + DeleteTag = 'DeleteTag', + /** Grants permission to delete TaxCategory */ + DeleteTaxCategory = 'DeleteTaxCategory', + /** Grants permission to delete TaxRate */ + DeleteTaxRate = 'DeleteTaxRate', + /** Grants permission to delete Zone */ + DeleteZone = 'DeleteZone', + /** 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', + /** Grants permission to read Administrator */ + ReadAdministrator = 'ReadAdministrator', + /** Grants permission to read ApiKey */ + ReadApiKey = 'ReadApiKey', + /** Grants permission to read Asset */ + ReadAsset = 'ReadAsset', + /** Grants permission to read Products, Facets, Assets, Collections */ + ReadCatalog = 'ReadCatalog', + /** Grants permission to read Channel */ + ReadChannel = 'ReadChannel', + /** Grants permission to read Collection */ + ReadCollection = 'ReadCollection', + /** Grants permission to read Country */ + ReadCountry = 'ReadCountry', + /** Grants permission to read Customer */ + ReadCustomer = 'ReadCustomer', + /** Grants permission to read CustomerGroup */ + ReadCustomerGroup = 'ReadCustomerGroup', + /** Grants permission to read Facet */ + ReadFacet = 'ReadFacet', + /** Grants permission to read Order */ + ReadOrder = 'ReadOrder', + /** Grants permission to read PaymentMethod */ + ReadPaymentMethod = 'ReadPaymentMethod', + /** Grants permission to read Product */ + ReadProduct = 'ReadProduct', + /** Grants permission to read Promotion */ + ReadPromotion = 'ReadPromotion', + /** Grants permission to read Seller */ + ReadSeller = 'ReadSeller', + /** Grants permission to read PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ + ReadSettings = 'ReadSettings', + /** Grants permission to read ShippingMethod */ + ReadShippingMethod = 'ReadShippingMethod', + /** Grants permission to read StockLocation */ + ReadStockLocation = 'ReadStockLocation', + /** Grants permission to read System */ + ReadSystem = 'ReadSystem', + /** Grants permission to read Tag */ + ReadTag = 'ReadTag', + /** Grants permission to read TaxCategory */ + ReadTaxCategory = 'ReadTaxCategory', + /** Grants permission to read TaxRate */ + ReadTaxRate = 'ReadTaxRate', + /** Grants permission to read Zone */ + ReadZone = 'ReadZone', + /** SuperAdmin has unrestricted access to all operations */ + SuperAdmin = 'SuperAdmin', + /** Grants permission to update Administrator */ + UpdateAdministrator = 'UpdateAdministrator', + /** Grants permission to update ApiKey */ + UpdateApiKey = 'UpdateApiKey', + /** Grants permission to update Asset */ + UpdateAsset = 'UpdateAsset', + /** Grants permission to update Products, Facets, Assets, Collections */ + UpdateCatalog = 'UpdateCatalog', + /** Grants permission to update Channel */ + UpdateChannel = 'UpdateChannel', + /** Grants permission to update Collection */ + UpdateCollection = 'UpdateCollection', + /** Grants permission to update Country */ + UpdateCountry = 'UpdateCountry', + /** Grants permission to update Customer */ + UpdateCustomer = 'UpdateCustomer', + /** Grants permission to update CustomerGroup */ + UpdateCustomerGroup = 'UpdateCustomerGroup', + /** Grants permission to update Facet */ + UpdateFacet = 'UpdateFacet', + /** Grants permission to update GlobalSettings */ + UpdateGlobalSettings = 'UpdateGlobalSettings', + /** Grants permission to update Order */ + UpdateOrder = 'UpdateOrder', + /** Grants permission to update PaymentMethod */ + UpdatePaymentMethod = 'UpdatePaymentMethod', + /** Grants permission to update Product */ + UpdateProduct = 'UpdateProduct', + /** Grants permission to update Promotion */ + UpdatePromotion = 'UpdatePromotion', + /** Grants permission to update Seller */ + UpdateSeller = 'UpdateSeller', + /** Grants permission to update PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */ + UpdateSettings = 'UpdateSettings', + /** Grants permission to update ShippingMethod */ + UpdateShippingMethod = 'UpdateShippingMethod', + /** Grants permission to update StockLocation */ + UpdateStockLocation = 'UpdateStockLocation', + /** Grants permission to update System */ + UpdateSystem = 'UpdateSystem', + /** Grants permission to update Tag */ + UpdateTag = 'UpdateTag', + /** Grants permission to update TaxCategory */ + UpdateTaxCategory = 'UpdateTaxCategory', + /** Grants permission to update TaxRate */ + UpdateTaxRate = 'UpdateTaxRate', + /** Grants permission to update Zone */ + UpdateZone = 'UpdateZone' } /** The price range where the result has more than one price */ export type PriceRange = { - __typename?: 'PriceRange'; - max: Scalars['Money']['output']; - min: Scalars['Money']['output']; + __typename?: 'PriceRange'; + max: Scalars['Money']['output']; + min: Scalars['Money']['output']; }; export type Product = Node & { - __typename?: 'Product'; - assets: Array; - collections: Array; - createdAt: Scalars['DateTime']['output']; - customFields?: Maybe; - description: Scalars['String']['output']; - enabled: Scalars['Boolean']['output']; - facetValues: Array; - featuredAsset?: Maybe; - id: Scalars['ID']['output']; - languageCode: LanguageCode; - name: Scalars['String']['output']; - optionGroups: Array; - slug: Scalars['String']['output']; - translations: Array; - updatedAt: Scalars['DateTime']['output']; - /** Returns a paginated, sortable, filterable list of ProductVariants */ - variantList: ProductVariantList; - /** Returns all ProductVariants */ - variants: Array; + __typename?: 'Product'; + assets: Array; + collections: Array; + createdAt: Scalars['DateTime']['output']; + customFields?: Maybe; + description: Scalars['String']['output']; + enabled: Scalars['Boolean']['output']; + facetValues: Array; + featuredAsset?: Maybe; + id: Scalars['ID']['output']; + languageCode: LanguageCode; + name: Scalars['String']['output']; + optionGroups: Array; + slug: Scalars['String']['output']; + translations: Array; + updatedAt: Scalars['DateTime']['output']; + /** Returns a paginated, sortable, filterable list of ProductVariants */ + variantList: ProductVariantList; + /** Returns all ProductVariants */ + variants: Array; }; + export type ProductVariantListArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type ProductFilterParameter = { - _and?: InputMaybe>; - _or?: InputMaybe>; - createdAt?: InputMaybe; - description?: InputMaybe; - enabled?: InputMaybe; - id?: InputMaybe; - languageCode?: InputMaybe; - name?: InputMaybe; - slug?: InputMaybe; - updatedAt?: InputMaybe; + _and?: InputMaybe>; + _or?: InputMaybe>; + createdAt?: InputMaybe; + description?: InputMaybe; + enabled?: InputMaybe; + id?: InputMaybe; + languageCode?: InputMaybe; + name?: InputMaybe; + slug?: InputMaybe; + updatedAt?: InputMaybe; }; export type ProductList = PaginatedList & { - __typename?: 'ProductList'; - items: Array; - totalItems: Scalars['Int']['output']; + __typename?: 'ProductList'; + items: Array; + totalItems: Scalars['Int']['output']; }; export type ProductListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type ProductOption = Node & { - __typename?: 'ProductOption'; - code: Scalars['String']['output']; - createdAt: Scalars['DateTime']['output']; - customFields?: Maybe; - group: ProductOptionGroup; - groupId: Scalars['ID']['output']; - id: Scalars['ID']['output']; - languageCode: LanguageCode; - name: Scalars['String']['output']; - translations: Array; - updatedAt: Scalars['DateTime']['output']; + __typename?: 'ProductOption'; + code: Scalars['String']['output']; + createdAt: Scalars['DateTime']['output']; + customFields?: Maybe; + group: ProductOptionGroup; + groupId: Scalars['ID']['output']; + id: Scalars['ID']['output']; + languageCode: LanguageCode; + name: Scalars['String']['output']; + translations: Array; + updatedAt: Scalars['DateTime']['output']; }; export type ProductOptionGroup = Node & { - __typename?: 'ProductOptionGroup'; - code: Scalars['String']['output']; - createdAt: Scalars['DateTime']['output']; - customFields?: Maybe; - id: Scalars['ID']['output']; - languageCode: LanguageCode; - name: Scalars['String']['output']; - options: Array; - /** The number of products that use this option group */ - productCount: Scalars['Int']['output']; - translations: Array; - updatedAt: Scalars['DateTime']['output']; + __typename?: 'ProductOptionGroup'; + code: Scalars['String']['output']; + createdAt: Scalars['DateTime']['output']; + customFields?: Maybe; + id: Scalars['ID']['output']; + languageCode: LanguageCode; + name: Scalars['String']['output']; + options: Array; + /** The number of products that use this option group */ + productCount: Scalars['Int']['output']; + translations: Array; + updatedAt: Scalars['DateTime']['output']; }; export type ProductOptionGroupTranslation = { - __typename?: 'ProductOptionGroupTranslation'; - createdAt: Scalars['DateTime']['output']; - id: Scalars['ID']['output']; - languageCode: LanguageCode; - name: Scalars['String']['output']; - updatedAt: Scalars['DateTime']['output']; + __typename?: 'ProductOptionGroupTranslation'; + createdAt: Scalars['DateTime']['output']; + id: Scalars['ID']['output']; + languageCode: LanguageCode; + name: Scalars['String']['output']; + updatedAt: Scalars['DateTime']['output']; }; export type ProductOptionTranslation = { - __typename?: 'ProductOptionTranslation'; - createdAt: Scalars['DateTime']['output']; - id: Scalars['ID']['output']; - languageCode: LanguageCode; - name: Scalars['String']['output']; - updatedAt: Scalars['DateTime']['output']; + __typename?: 'ProductOptionTranslation'; + createdAt: Scalars['DateTime']['output']; + id: Scalars['ID']['output']; + languageCode: LanguageCode; + name: Scalars['String']['output']; + updatedAt: Scalars['DateTime']['output']; }; export type ProductSortParameter = { - createdAt?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - slug?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + slug?: InputMaybe; + updatedAt?: InputMaybe; }; export type ProductTranslation = { - __typename?: 'ProductTranslation'; - createdAt: Scalars['DateTime']['output']; - description: Scalars['String']['output']; - id: Scalars['ID']['output']; - languageCode: LanguageCode; - name: Scalars['String']['output']; - slug: Scalars['String']['output']; - updatedAt: Scalars['DateTime']['output']; + __typename?: 'ProductTranslation'; + createdAt: Scalars['DateTime']['output']; + description: Scalars['String']['output']; + id: Scalars['ID']['output']; + languageCode: LanguageCode; + name: Scalars['String']['output']; + slug: Scalars['String']['output']; + updatedAt: Scalars['DateTime']['output']; }; export type ProductVariant = Node & { - __typename?: 'ProductVariant'; - assets: Array; - createdAt: Scalars['DateTime']['output']; - currencyCode: CurrencyCode; - customFields?: Maybe; - facetValues: Array; - featuredAsset?: Maybe; - id: Scalars['ID']['output']; - languageCode: LanguageCode; - name: Scalars['String']['output']; - options: Array; - price: Scalars['Money']['output']; - priceWithTax: Scalars['Money']['output']; - product: Product; - productId: Scalars['ID']['output']; - sku: Scalars['String']['output']; - stockLevel: Scalars['String']['output']; - taxCategory: TaxCategory; - taxRateApplied: TaxRate; - translations: Array; - updatedAt: Scalars['DateTime']['output']; + __typename?: 'ProductVariant'; + assets: Array; + createdAt: Scalars['DateTime']['output']; + currencyCode: CurrencyCode; + customFields?: Maybe; + facetValues: Array; + featuredAsset?: Maybe; + id: Scalars['ID']['output']; + languageCode: LanguageCode; + name: Scalars['String']['output']; + options: Array; + price: Scalars['Money']['output']; + priceWithTax: Scalars['Money']['output']; + product: Product; + productId: Scalars['ID']['output']; + sku: Scalars['String']['output']; + stockLevel: Scalars['String']['output']; + taxCategory: TaxCategory; + taxRateApplied: TaxRate; + translations: Array; + updatedAt: Scalars['DateTime']['output']; }; export type ProductVariantFilterParameter = { - _and?: InputMaybe>; - _or?: InputMaybe>; - createdAt?: InputMaybe; - currencyCode?: InputMaybe; - id?: InputMaybe; - languageCode?: InputMaybe; - name?: InputMaybe; - price?: InputMaybe; - priceWithTax?: InputMaybe; - productId?: InputMaybe; - sku?: InputMaybe; - stockLevel?: InputMaybe; - updatedAt?: InputMaybe; + _and?: InputMaybe>; + _or?: InputMaybe>; + createdAt?: InputMaybe; + currencyCode?: InputMaybe; + id?: InputMaybe; + languageCode?: InputMaybe; + name?: InputMaybe; + price?: InputMaybe; + priceWithTax?: InputMaybe; + productId?: InputMaybe; + sku?: InputMaybe; + stockLevel?: InputMaybe; + updatedAt?: InputMaybe; }; export type ProductVariantList = PaginatedList & { - __typename?: 'ProductVariantList'; - items: Array; - totalItems: Scalars['Int']['output']; + __typename?: 'ProductVariantList'; + items: Array; + totalItems: Scalars['Int']['output']; }; export type ProductVariantListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type ProductVariantSortParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - price?: InputMaybe; - priceWithTax?: InputMaybe; - productId?: InputMaybe; - sku?: InputMaybe; - stockLevel?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + price?: InputMaybe; + priceWithTax?: InputMaybe; + productId?: InputMaybe; + sku?: InputMaybe; + stockLevel?: InputMaybe; + updatedAt?: InputMaybe; }; export type ProductVariantTranslation = { - __typename?: 'ProductVariantTranslation'; - createdAt: Scalars['DateTime']['output']; - id: Scalars['ID']['output']; - languageCode: LanguageCode; - name: Scalars['String']['output']; - updatedAt: Scalars['DateTime']['output']; + __typename?: 'ProductVariantTranslation'; + createdAt: Scalars['DateTime']['output']; + id: Scalars['ID']['output']; + languageCode: LanguageCode; + name: Scalars['String']['output']; + updatedAt: Scalars['DateTime']['output']; }; export type Promotion = Node & { - __typename?: 'Promotion'; - actions: Array; - conditions: Array; - couponCode?: Maybe; - createdAt: Scalars['DateTime']['output']; - customFields?: Maybe; - description: Scalars['String']['output']; - enabled: Scalars['Boolean']['output']; - endsAt?: Maybe; - id: Scalars['ID']['output']; - name: Scalars['String']['output']; - perCustomerUsageLimit?: Maybe; - startsAt?: Maybe; - translations: Array; - updatedAt: Scalars['DateTime']['output']; - usageLimit?: Maybe; + __typename?: 'Promotion'; + actions: Array; + conditions: Array; + couponCode?: Maybe; + createdAt: Scalars['DateTime']['output']; + customFields?: Maybe; + description: Scalars['String']['output']; + enabled: Scalars['Boolean']['output']; + endsAt?: Maybe; + id: Scalars['ID']['output']; + name: Scalars['String']['output']; + perCustomerUsageLimit?: Maybe; + startsAt?: Maybe; + translations: Array; + updatedAt: Scalars['DateTime']['output']; + usageLimit?: Maybe; }; export type PromotionList = PaginatedList & { - __typename?: 'PromotionList'; - items: Array; - totalItems: Scalars['Int']['output']; + __typename?: 'PromotionList'; + items: Array; + totalItems: Scalars['Int']['output']; }; export type PromotionTranslation = { - __typename?: 'PromotionTranslation'; - createdAt: Scalars['DateTime']['output']; - description: Scalars['String']['output']; - id: Scalars['ID']['output']; - languageCode: LanguageCode; - name: Scalars['String']['output']; - updatedAt: Scalars['DateTime']['output']; -}; - -export type Province = Node & - Region & { - __typename?: 'Province'; - code: Scalars['String']['output']; - createdAt: Scalars['DateTime']['output']; - customFields?: Maybe; - enabled: Scalars['Boolean']['output']; - id: Scalars['ID']['output']; - languageCode: LanguageCode; - name: Scalars['String']['output']; - parent?: Maybe; - parentId?: Maybe; - translations: Array; - type: Scalars['String']['output']; - updatedAt: Scalars['DateTime']['output']; - }; + __typename?: 'PromotionTranslation'; + createdAt: Scalars['DateTime']['output']; + description: Scalars['String']['output']; + id: Scalars['ID']['output']; + languageCode: LanguageCode; + name: Scalars['String']['output']; + updatedAt: Scalars['DateTime']['output']; +}; + +export type Province = Node & Region & { + __typename?: 'Province'; + code: Scalars['String']['output']; + createdAt: Scalars['DateTime']['output']; + customFields?: Maybe; + enabled: Scalars['Boolean']['output']; + id: Scalars['ID']['output']; + languageCode: LanguageCode; + name: Scalars['String']['output']; + parent?: Maybe; + parentId?: Maybe; + translations: Array; + type: Scalars['String']['output']; + updatedAt: Scalars['DateTime']['output']; +}; export type ProvinceList = PaginatedList & { - __typename?: 'ProvinceList'; - items: Array; - totalItems: Scalars['Int']['output']; + __typename?: 'ProvinceList'; + items: Array; + totalItems: Scalars['Int']['output']; }; export type PublicPaymentMethod = { - __typename?: 'PublicPaymentMethod'; - code: Scalars['String']['output']; - customFields?: Maybe; - description?: Maybe; - id: Scalars['ID']['output']; - name: Scalars['String']['output']; - translations: Array; + __typename?: 'PublicPaymentMethod'; + code: Scalars['String']['output']; + customFields?: Maybe; + description?: Maybe; + id: Scalars['ID']['output']; + name: Scalars['String']['output']; + translations: Array; }; export type PublicShippingMethod = { - __typename?: 'PublicShippingMethod'; - code: Scalars['String']['output']; - customFields?: Maybe; - description?: Maybe; - id: Scalars['ID']['output']; - name: Scalars['String']['output']; - translations: Array; + __typename?: 'PublicShippingMethod'; + code: Scalars['String']['output']; + customFields?: Maybe; + description?: Maybe; + id: Scalars['ID']['output']; + name: Scalars['String']['output']; + translations: Array; }; 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 `PaymentAuthorized` or `PaymentSettled`, then that Order is no longer considered "active" and this - * query will once again return `null`. - */ - activeOrder?: Maybe; - /** Get active payment methods */ - activePaymentMethods: Array>; - /** Get active shipping methods */ - activeShippingMethods: Array>; - /** An array of supported Countries */ - availableCountries: Array; - /** Returns a Collection either by its id or slug. If neither 'id' nor 'slug' is specified, an error will result. */ - collection?: Maybe; - /** A list of Collections available to the shop */ - collections: CollectionList; - /** Returns a list of payment methods and their eligibility based on the current active Order */ - eligiblePaymentMethods: Array; - /** Returns a list of eligible shipping methods based on the current active Order */ - eligibleShippingMethods: Array; - /** Returns a Facet by its id */ - facet?: Maybe; - /** A list of Facets available to the shop */ - facets: FacetList; - /** 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 specified, 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 `PaymentAuthorized` or `PaymentSettled`, then that Order is no longer considered "active" and this + * query will once again return `null`. + */ + activeOrder?: Maybe; + /** Get active payment methods */ + activePaymentMethods: Array>; + /** Get active shipping methods */ + activeShippingMethods: Array>; + /** An array of supported Countries */ + availableCountries: Array; + /** Returns a Collection either by its id or slug. If neither 'id' nor 'slug' is specified, an error will result. */ + collection?: Maybe; + /** A list of Collections available to the shop */ + collections: CollectionList; + /** Returns a list of payment methods and their eligibility based on the current active Order */ + eligiblePaymentMethods: Array; + /** Returns a list of eligible shipping methods based on the current active Order */ + eligibleShippingMethods: Array; + /** Returns a Facet by its id */ + facet?: Maybe; + /** A list of Facets available to the shop */ + facets: FacetList; + /** 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 specified, 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 QueryCollectionArgs = { - id?: InputMaybe; - slug?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; }; + export type QueryCollectionsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryFacetArgs = { - id: Scalars['ID']['input']; + id: Scalars['ID']['input']; }; + export type QueryFacetsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryOrderArgs = { - id: Scalars['ID']['input']; + id: Scalars['ID']['input']; }; + export type QueryOrderByCodeArgs = { - code: Scalars['String']['input']; + code: Scalars['String']['input']; }; + export type QueryProductArgs = { - id?: InputMaybe; - slug?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; }; + export type QueryProductsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QuerySearchArgs = { - input: SearchInput; + input: SearchInput; }; export type RefreshCustomerVerificationResult = NativeAuthStrategyError | Success; export type Refund = Node & { - __typename?: 'Refund'; - adjustment: Scalars['Money']['output']; - createdAt: Scalars['DateTime']['output']; - customFields?: Maybe; - id: Scalars['ID']['output']; - items: Scalars['Money']['output']; - lines: Array; - metadata?: Maybe; - method?: Maybe; - paymentId: Scalars['ID']['output']; - reason?: Maybe; - shipping: Scalars['Money']['output']; - state: Scalars['String']['output']; - total: Scalars['Money']['output']; - transactionId?: Maybe; - updatedAt: Scalars['DateTime']['output']; + __typename?: 'Refund'; + adjustment: Scalars['Money']['output']; + createdAt: Scalars['DateTime']['output']; + customFields?: Maybe; + id: Scalars['ID']['output']; + items: Scalars['Money']['output']; + lines: Array; + metadata?: Maybe; + method?: Maybe; + paymentId: Scalars['ID']['output']; + reason?: Maybe; + shipping: Scalars['Money']['output']; + state: Scalars['String']['output']; + total: Scalars['Money']['output']; + transactionId?: Maybe; + updatedAt: Scalars['DateTime']['output']; }; export type RefundLine = { - __typename?: 'RefundLine'; - orderLine: OrderLine; - orderLineId: Scalars['ID']['output']; - quantity: Scalars['Int']['output']; - refund: Refund; - refundId: Scalars['ID']['output']; + __typename?: 'RefundLine'; + orderLine: OrderLine; + orderLineId: Scalars['ID']['output']; + quantity: Scalars['Int']['output']; + refund: Refund; + refundId: Scalars['ID']['output']; }; export type Region = { - code: Scalars['String']['output']; - createdAt: Scalars['DateTime']['output']; - enabled: Scalars['Boolean']['output']; - id: Scalars['ID']['output']; - languageCode: LanguageCode; - name: Scalars['String']['output']; - parent?: Maybe; - parentId?: Maybe; - translations: Array; - type: Scalars['String']['output']; - updatedAt: Scalars['DateTime']['output']; + code: Scalars['String']['output']; + createdAt: Scalars['DateTime']['output']; + enabled: Scalars['Boolean']['output']; + id: Scalars['ID']['output']; + languageCode: LanguageCode; + name: Scalars['String']['output']; + parent?: Maybe; + parentId?: Maybe; + translations: Array; + type: Scalars['String']['output']; + updatedAt: Scalars['DateTime']['output']; }; export type RegionTranslation = { - __typename?: 'RegionTranslation'; - createdAt: Scalars['DateTime']['output']; - id: Scalars['ID']['output']; - languageCode: LanguageCode; - name: Scalars['String']['output']; - updatedAt: Scalars['DateTime']['output']; + __typename?: 'RegionTranslation'; + createdAt: Scalars['DateTime']['output']; + id: Scalars['ID']['output']; + languageCode: LanguageCode; + name: Scalars['String']['output']; + updatedAt: Scalars['DateTime']['output']; }; -export type RegisterCustomerAccountResult = - | MissingPasswordError - | NativeAuthStrategyError - | PasswordValidationError - | Success; +export type RegisterCustomerAccountResult = MissingPasswordError | NativeAuthStrategyError | PasswordValidationError | Success; export type RegisterCustomerInput = { - emailAddress: Scalars['String']['input']; - firstName?: InputMaybe; - lastName?: InputMaybe; - password?: InputMaybe; - phoneNumber?: InputMaybe; - title?: InputMaybe; + emailAddress: Scalars['String']['input']; + firstName?: InputMaybe; + lastName?: InputMaybe; + password?: InputMaybe; + phoneNumber?: InputMaybe; + title?: InputMaybe; }; export type RelationCustomFieldConfig = CustomField & { - __typename?: 'RelationCustomFieldConfig'; - deprecated?: Maybe; - deprecationReason?: Maybe; - description?: Maybe>; - entity: Scalars['String']['output']; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']['output']; - name: Scalars['String']['output']; - nullable?: Maybe; - readonly?: Maybe; - requiresPermission?: Maybe>; - scalarFields: Array; - type: Scalars['String']['output']; - ui?: Maybe; + __typename?: 'RelationCustomFieldConfig'; + deprecated?: Maybe; + deprecationReason?: Maybe; + description?: Maybe>; + entity: Scalars['String']['output']; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']['output']; + name: Scalars['String']['output']; + nullable?: Maybe; + readonly?: Maybe; + requiresPermission?: Maybe>; + scalarFields: Array; + type: Scalars['String']['output']; + ui?: Maybe; }; export type RemoveOrderItemsResult = Order | OrderInterceptorError | OrderModificationError; export type RequestPasswordResetResult = NativeAuthStrategyError | Success; -export type RequestUpdateCustomerEmailAddressResult = - | EmailAddressConflictError - | InvalidCredentialsError - | NativeAuthStrategyError - | Success; +export type RequestUpdateCustomerEmailAddressResult = EmailAddressConflictError | InvalidCredentialsError | NativeAuthStrategyError | Success; -export type ResetPasswordResult = - | CurrentUser - | NativeAuthStrategyError - | NotVerifiedError - | PasswordResetTokenExpiredError - | PasswordResetTokenInvalidError - | PasswordValidationError; +export type ResetPasswordResult = CurrentUser | NativeAuthStrategyError | NotVerifiedError | PasswordResetTokenExpiredError | PasswordResetTokenInvalidError | PasswordValidationError; export type Role = Node & { - __typename?: 'Role'; - channels: Array; - code: Scalars['String']['output']; - createdAt: Scalars['DateTime']['output']; - description: Scalars['String']['output']; - id: Scalars['ID']['output']; - permissions: Array; - updatedAt: Scalars['DateTime']['output']; + __typename?: 'Role'; + channels: Array; + code: Scalars['String']['output']; + createdAt: Scalars['DateTime']['output']; + description: Scalars['String']['output']; + id: Scalars['ID']['output']; + permissions: Array; + updatedAt: Scalars['DateTime']['output']; }; export type RoleList = PaginatedList & { - __typename?: 'RoleList'; - items: Array; - totalItems: Scalars['Int']['output']; + __typename?: 'RoleList'; + items: Array; + totalItems: Scalars['Int']['output']; }; export type SearchInput = { - collectionId?: InputMaybe; - collectionIds?: InputMaybe>; - collectionSlug?: InputMaybe; - collectionSlugs?: InputMaybe>; - facetValueFilters?: InputMaybe>; - /** @deprecated Use `facetValueFilters` instead */ - facetValueIds?: InputMaybe>; - /** @deprecated Use `facetValueFilters` instead */ - facetValueOperator?: InputMaybe; - groupByProduct?: InputMaybe; - skip?: InputMaybe; - sort?: InputMaybe; - take?: InputMaybe; - term?: InputMaybe; + collectionId?: InputMaybe; + collectionIds?: InputMaybe>; + collectionSlug?: InputMaybe; + collectionSlugs?: InputMaybe>; + facetValueFilters?: InputMaybe>; + /** @deprecated Use `facetValueFilters` instead */ + facetValueIds?: InputMaybe>; + /** @deprecated Use `facetValueFilters` instead */ + facetValueOperator?: InputMaybe; + groupByProduct?: InputMaybe; + skip?: InputMaybe; + sort?: InputMaybe; + take?: InputMaybe; + term?: InputMaybe; }; export type SearchReindexResponse = { - __typename?: 'SearchReindexResponse'; - success: Scalars['Boolean']['output']; + __typename?: 'SearchReindexResponse'; + success: Scalars['Boolean']['output']; }; export type SearchResponse = { - __typename?: 'SearchResponse'; - collections: Array; - facetValues: Array; - items: Array; - totalItems: Scalars['Int']['output']; + __typename?: 'SearchResponse'; + collections: Array; + facetValues: Array; + items: Array; + totalItems: Scalars['Int']['output']; }; export type SearchResult = { - __typename?: 'SearchResult'; - /** An array of ids of the Collections in which this result appears */ - collectionIds: Array; - currencyCode: CurrencyCode; - description: Scalars['String']['output']; - facetIds: Array; - facetValueIds: Array; - price: SearchResultPrice; - priceWithTax: SearchResultPrice; - productAsset?: Maybe; - productId: Scalars['ID']['output']; - productName: Scalars['String']['output']; - productVariantAsset?: Maybe; - productVariantId: Scalars['ID']['output']; - productVariantName: Scalars['String']['output']; - /** A relevance score for the result. Differs between database implementations */ - score: Scalars['Float']['output']; - sku: Scalars['String']['output']; - slug: Scalars['String']['output']; + __typename?: 'SearchResult'; + /** An array of ids of the Collections in which this result appears */ + collectionIds: Array; + currencyCode: CurrencyCode; + description: Scalars['String']['output']; + facetIds: Array; + facetValueIds: Array; + price: SearchResultPrice; + priceWithTax: SearchResultPrice; + productAsset?: Maybe; + productId: Scalars['ID']['output']; + productName: Scalars['String']['output']; + productVariantAsset?: Maybe; + productVariantId: Scalars['ID']['output']; + productVariantName: Scalars['String']['output']; + /** A relevance score for the result. Differs between database implementations */ + score: Scalars['Float']['output']; + sku: Scalars['String']['output']; + slug: Scalars['String']['output']; }; export type SearchResultAsset = { - __typename?: 'SearchResultAsset'; - focalPoint?: Maybe; - id: Scalars['ID']['output']; - preview: Scalars['String']['output']; + __typename?: 'SearchResultAsset'; + focalPoint?: Maybe; + id: Scalars['ID']['output']; + preview: Scalars['String']['output']; }; /** The price of a search result product, either as a range or as a single price */ export type SearchResultPrice = PriceRange | SinglePrice; export type SearchResultSortParameter = { - name?: InputMaybe; - price?: InputMaybe; + name?: InputMaybe; + price?: InputMaybe; }; export type Seller = Node & { - __typename?: 'Seller'; - createdAt: Scalars['DateTime']['output']; - customFields?: Maybe; - id: Scalars['ID']['output']; - name: Scalars['String']['output']; - updatedAt: Scalars['DateTime']['output']; -}; - -export type SetCustomerForOrderResult = - | AlreadyLoggedInError - | EmailAddressConflictError - | GuestCheckoutError - | NoActiveOrderError - | Order; - -export type SetOrderShippingMethodResult = - | IneligibleShippingMethodError - | NoActiveOrderError - | Order - | OrderModificationError; + __typename?: 'Seller'; + createdAt: Scalars['DateTime']['output']; + customFields?: Maybe; + id: Scalars['ID']['output']; + name: Scalars['String']['output']; + updatedAt: Scalars['DateTime']['output']; +}; + +export type SetCustomerForOrderResult = AlreadyLoggedInError | EmailAddressConflictError | GuestCheckoutError | NoActiveOrderError | Order; + +export type SetOrderShippingMethodResult = IneligibleShippingMethodError | NoActiveOrderError | Order | OrderModificationError; export type ShippingLine = { - __typename?: 'ShippingLine'; - customFields?: Maybe; - discountedPrice: Scalars['Money']['output']; - discountedPriceWithTax: Scalars['Money']['output']; - discounts: Array; - id: Scalars['ID']['output']; - price: Scalars['Money']['output']; - priceWithTax: Scalars['Money']['output']; - shippingMethod: ShippingMethod; + __typename?: 'ShippingLine'; + customFields?: Maybe; + discountedPrice: Scalars['Money']['output']; + discountedPriceWithTax: Scalars['Money']['output']; + discounts: Array; + id: Scalars['ID']['output']; + price: Scalars['Money']['output']; + priceWithTax: Scalars['Money']['output']; + shippingMethod: ShippingMethod; }; export type ShippingMethod = Node & { - __typename?: 'ShippingMethod'; - calculator: ConfigurableOperation; - checker: ConfigurableOperation; - code: Scalars['String']['output']; - createdAt: Scalars['DateTime']['output']; - customFields?: Maybe; - description: Scalars['String']['output']; - fulfillmentHandlerCode: Scalars['String']['output']; - id: Scalars['ID']['output']; - languageCode: LanguageCode; - name: Scalars['String']['output']; - translations: Array; - updatedAt: Scalars['DateTime']['output']; + __typename?: 'ShippingMethod'; + calculator: ConfigurableOperation; + checker: ConfigurableOperation; + code: Scalars['String']['output']; + createdAt: Scalars['DateTime']['output']; + customFields?: Maybe; + description: Scalars['String']['output']; + fulfillmentHandlerCode: Scalars['String']['output']; + id: Scalars['ID']['output']; + languageCode: LanguageCode; + name: Scalars['String']['output']; + translations: Array; + updatedAt: Scalars['DateTime']['output']; }; export type ShippingMethodList = PaginatedList & { - __typename?: 'ShippingMethodList'; - items: Array; - totalItems: Scalars['Int']['output']; + __typename?: 'ShippingMethodList'; + items: Array; + totalItems: Scalars['Int']['output']; }; export type ShippingMethodQuote = { - __typename?: 'ShippingMethodQuote'; - code: Scalars['String']['output']; - customFields?: Maybe; - description: Scalars['String']['output']; - id: Scalars['ID']['output']; - /** Any optional metadata returned by the ShippingCalculator in the ShippingCalculationResult */ - metadata?: Maybe; - name: Scalars['String']['output']; - price: Scalars['Money']['output']; - priceWithTax: Scalars['Money']['output']; + __typename?: 'ShippingMethodQuote'; + code: Scalars['String']['output']; + customFields?: Maybe; + description: Scalars['String']['output']; + id: Scalars['ID']['output']; + /** Any optional metadata returned by the ShippingCalculator in the ShippingCalculationResult */ + metadata?: Maybe; + name: Scalars['String']['output']; + price: Scalars['Money']['output']; + priceWithTax: Scalars['Money']['output']; }; export type ShippingMethodTranslation = { - __typename?: 'ShippingMethodTranslation'; - createdAt: Scalars['DateTime']['output']; - description: Scalars['String']['output']; - id: Scalars['ID']['output']; - languageCode: LanguageCode; - name: Scalars['String']['output']; - updatedAt: Scalars['DateTime']['output']; + __typename?: 'ShippingMethodTranslation'; + createdAt: Scalars['DateTime']['output']; + description: Scalars['String']['output']; + id: Scalars['ID']['output']; + languageCode: LanguageCode; + name: Scalars['String']['output']; + updatedAt: Scalars['DateTime']['output']; }; /** The price value where the result has a single price */ export type SinglePrice = { - __typename?: 'SinglePrice'; - value: Scalars['Money']['output']; + __typename?: 'SinglePrice'; + value: Scalars['Money']['output']; }; export enum SortOrder { - ASC = 'ASC', - DESC = 'DESC', + ASC = 'ASC', + DESC = 'DESC' } export type StringCustomFieldConfig = CustomField & { - __typename?: 'StringCustomFieldConfig'; - deprecated?: Maybe; - deprecationReason?: Maybe; - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - length?: Maybe; - list: Scalars['Boolean']['output']; - name: Scalars['String']['output']; - nullable?: Maybe; - options?: Maybe>; - pattern?: Maybe; - readonly?: Maybe; - requiresPermission?: Maybe>; - type: Scalars['String']['output']; - ui?: Maybe; + __typename?: 'StringCustomFieldConfig'; + deprecated?: Maybe; + deprecationReason?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + length?: Maybe; + list: Scalars['Boolean']['output']; + name: Scalars['String']['output']; + nullable?: Maybe; + options?: Maybe>; + pattern?: Maybe; + readonly?: Maybe; + requiresPermission?: Maybe>; + type: Scalars['String']['output']; + ui?: Maybe; }; export type StringFieldOption = { - __typename?: 'StringFieldOption'; - label?: Maybe>; - value: Scalars['String']['output']; + __typename?: 'StringFieldOption'; + label?: Maybe>; + value: Scalars['String']['output']; }; /** Operators for filtering on a list of String fields */ export type StringListOperators = { - inList: Scalars['String']['input']; + inList: Scalars['String']['input']; }; /** Operators for filtering on a String field */ export type StringOperators = { - contains?: InputMaybe; - eq?: InputMaybe; - in?: InputMaybe>; - isNull?: InputMaybe; - notContains?: InputMaybe; - notEq?: InputMaybe; - notIn?: InputMaybe>; - regex?: InputMaybe; + contains?: InputMaybe; + eq?: InputMaybe; + in?: InputMaybe>; + isNull?: InputMaybe; + notContains?: InputMaybe; + notEq?: InputMaybe; + notIn?: InputMaybe>; + regex?: InputMaybe; }; export type StringStructFieldConfig = StructField & { - __typename?: 'StringStructFieldConfig'; - description?: Maybe>; - label?: Maybe>; - length?: Maybe; - list: Scalars['Boolean']['output']; - name: Scalars['String']['output']; - options?: Maybe>; - pattern?: Maybe; - type: Scalars['String']['output']; - ui?: Maybe; + __typename?: 'StringStructFieldConfig'; + description?: Maybe>; + label?: Maybe>; + length?: Maybe; + list: Scalars['Boolean']['output']; + name: Scalars['String']['output']; + options?: Maybe>; + pattern?: Maybe; + type: Scalars['String']['output']; + ui?: Maybe; }; export type StructCustomFieldConfig = CustomField & { - __typename?: 'StructCustomFieldConfig'; - deprecated?: Maybe; - deprecationReason?: Maybe; - description?: Maybe>; - fields: Array; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']['output']; - name: Scalars['String']['output']; - nullable?: Maybe; - readonly?: Maybe; - requiresPermission?: Maybe>; - type: Scalars['String']['output']; - ui?: Maybe; + __typename?: 'StructCustomFieldConfig'; + deprecated?: Maybe; + deprecationReason?: Maybe; + description?: Maybe>; + fields: Array; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']['output']; + name: Scalars['String']['output']; + nullable?: Maybe; + readonly?: Maybe; + requiresPermission?: Maybe>; + type: Scalars['String']['output']; + ui?: Maybe; }; export type StructField = { - description?: Maybe>; - label?: Maybe>; - list?: Maybe; - name: Scalars['String']['output']; - type: Scalars['String']['output']; - ui?: Maybe; -}; - -export type StructFieldConfig = - | BooleanStructFieldConfig - | DateTimeStructFieldConfig - | FloatStructFieldConfig - | IntStructFieldConfig - | StringStructFieldConfig - | TextStructFieldConfig; + description?: Maybe>; + label?: Maybe>; + list?: Maybe; + name: Scalars['String']['output']; + type: Scalars['String']['output']; + ui?: Maybe; +}; + +export type StructFieldConfig = BooleanStructFieldConfig | DateTimeStructFieldConfig | FloatStructFieldConfig | IntStructFieldConfig | StringStructFieldConfig | TextStructFieldConfig; /** Indicates that an operation succeeded, where we do not want to return any more specific information. */ export type Success = { - __typename?: 'Success'; - success: Scalars['Boolean']['output']; + __typename?: 'Success'; + success: Scalars['Boolean']['output']; }; export type Surcharge = Node & { - __typename?: 'Surcharge'; - createdAt: Scalars['DateTime']['output']; - description: Scalars['String']['output']; - id: Scalars['ID']['output']; - price: Scalars['Money']['output']; - priceWithTax: Scalars['Money']['output']; - sku?: Maybe; - taxLines: Array; - taxRate: Scalars['Float']['output']; - updatedAt: Scalars['DateTime']['output']; + __typename?: 'Surcharge'; + createdAt: Scalars['DateTime']['output']; + description: Scalars['String']['output']; + id: Scalars['ID']['output']; + price: Scalars['Money']['output']; + priceWithTax: Scalars['Money']['output']; + sku?: Maybe; + taxLines: Array; + taxRate: Scalars['Float']['output']; + updatedAt: Scalars['DateTime']['output']; }; export type Tag = Node & { - __typename?: 'Tag'; - createdAt: Scalars['DateTime']['output']; - id: Scalars['ID']['output']; - updatedAt: Scalars['DateTime']['output']; - value: Scalars['String']['output']; + __typename?: 'Tag'; + createdAt: Scalars['DateTime']['output']; + id: Scalars['ID']['output']; + updatedAt: Scalars['DateTime']['output']; + value: Scalars['String']['output']; }; export type TagList = PaginatedList & { - __typename?: 'TagList'; - items: Array; - totalItems: Scalars['Int']['output']; + __typename?: 'TagList'; + items: Array; + totalItems: Scalars['Int']['output']; }; export type TaxCategory = Node & { - __typename?: 'TaxCategory'; - createdAt: Scalars['DateTime']['output']; - customFields?: Maybe; - id: Scalars['ID']['output']; - isDefault: Scalars['Boolean']['output']; - name: Scalars['String']['output']; - updatedAt: Scalars['DateTime']['output']; + __typename?: 'TaxCategory'; + createdAt: Scalars['DateTime']['output']; + customFields?: Maybe; + id: Scalars['ID']['output']; + isDefault: Scalars['Boolean']['output']; + name: Scalars['String']['output']; + updatedAt: Scalars['DateTime']['output']; }; export type TaxLine = { - __typename?: 'TaxLine'; - description: Scalars['String']['output']; - taxRate: Scalars['Float']['output']; + __typename?: 'TaxLine'; + description: Scalars['String']['output']; + taxRate: Scalars['Float']['output']; }; export type TaxRate = Node & { - __typename?: 'TaxRate'; - category: TaxCategory; - createdAt: Scalars['DateTime']['output']; - customFields?: Maybe; - customerGroup?: Maybe; - enabled: Scalars['Boolean']['output']; - id: Scalars['ID']['output']; - name: Scalars['String']['output']; - updatedAt: Scalars['DateTime']['output']; - value: Scalars['Float']['output']; - zone: Zone; + __typename?: 'TaxRate'; + category: TaxCategory; + createdAt: Scalars['DateTime']['output']; + customFields?: Maybe; + customerGroup?: Maybe; + enabled: Scalars['Boolean']['output']; + id: Scalars['ID']['output']; + name: Scalars['String']['output']; + updatedAt: Scalars['DateTime']['output']; + value: Scalars['Float']['output']; + zone: Zone; }; export type TaxRateList = PaginatedList & { - __typename?: 'TaxRateList'; - items: Array; - totalItems: Scalars['Int']['output']; + __typename?: 'TaxRateList'; + items: Array; + totalItems: Scalars['Int']['output']; }; export type TextCustomFieldConfig = CustomField & { - __typename?: 'TextCustomFieldConfig'; - deprecated?: Maybe; - deprecationReason?: Maybe; - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']['output']; - name: Scalars['String']['output']; - nullable?: Maybe; - readonly?: Maybe; - requiresPermission?: Maybe>; - type: Scalars['String']['output']; - ui?: Maybe; + __typename?: 'TextCustomFieldConfig'; + deprecated?: Maybe; + deprecationReason?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']['output']; + name: Scalars['String']['output']; + nullable?: Maybe; + readonly?: Maybe; + requiresPermission?: Maybe>; + type: Scalars['String']['output']; + ui?: Maybe; }; export type TextStructFieldConfig = StructField & { - __typename?: 'TextStructFieldConfig'; - description?: Maybe>; - label?: Maybe>; - list: Scalars['Boolean']['output']; - name: Scalars['String']['output']; - type: Scalars['String']['output']; - ui?: Maybe; + __typename?: 'TextStructFieldConfig'; + description?: Maybe>; + label?: Maybe>; + list: Scalars['Boolean']['output']; + name: Scalars['String']['output']; + type: Scalars['String']['output']; + ui?: Maybe; }; export type TransitionOrderToStateResult = Order | OrderStateTransitionError; @@ -3533,82 +3518,63 @@ export type TransitionOrderToStateResult = Order | OrderStateTransitionError; * If an invalid code is passed, the mutation will fail. */ export type UpdateAddressInput = { - city?: InputMaybe; - company?: InputMaybe; - countryCode?: InputMaybe; - customFields?: InputMaybe; - defaultBillingAddress?: InputMaybe; - defaultShippingAddress?: InputMaybe; - fullName?: InputMaybe; - id: Scalars['ID']['input']; - phoneNumber?: InputMaybe; - postalCode?: InputMaybe; - province?: InputMaybe; - streetLine1?: InputMaybe; - streetLine2?: InputMaybe; -}; - -export type UpdateCustomerEmailAddressResult = - | IdentifierChangeTokenExpiredError - | IdentifierChangeTokenInvalidError - | NativeAuthStrategyError - | Success; + city?: InputMaybe; + company?: InputMaybe; + countryCode?: InputMaybe; + customFields?: InputMaybe; + defaultBillingAddress?: InputMaybe; + defaultShippingAddress?: InputMaybe; + fullName?: InputMaybe; + id: Scalars['ID']['input']; + phoneNumber?: InputMaybe; + postalCode?: InputMaybe; + province?: InputMaybe; + streetLine1?: InputMaybe; + streetLine2?: InputMaybe; +}; + +export type UpdateCustomerEmailAddressResult = IdentifierChangeTokenExpiredError | IdentifierChangeTokenInvalidError | NativeAuthStrategyError | Success; export type UpdateCustomerInput = { - customFields?: InputMaybe; - firstName?: InputMaybe; - lastName?: InputMaybe; - phoneNumber?: InputMaybe; - title?: InputMaybe; + customFields?: InputMaybe; + firstName?: InputMaybe; + lastName?: InputMaybe; + phoneNumber?: InputMaybe; + title?: InputMaybe; }; -export type UpdateCustomerPasswordResult = - | InvalidCredentialsError - | NativeAuthStrategyError - | PasswordValidationError - | Success; +export type UpdateCustomerPasswordResult = InvalidCredentialsError | NativeAuthStrategyError | PasswordValidationError | Success; /** * Returned when multiple items are added to an Order. * The errorResults array contains the errors that occurred for each item, if any. */ export type UpdateMultipleOrderItemsResult = { - __typename?: 'UpdateMultipleOrderItemsResult'; - errorResults: Array; - order: Order; + __typename?: 'UpdateMultipleOrderItemsResult'; + errorResults: Array; + order: Order; }; export type UpdateOrderInput = { - customFields?: InputMaybe; + customFields?: InputMaybe; }; /** Union type of all possible errors that can occur when adding or removing items from an Order. */ -export type UpdateOrderItemErrorResult = - | InsufficientStockError - | NegativeQuantityError - | OrderInterceptorError - | OrderLimitError - | OrderModificationError; - -export type UpdateOrderItemsResult = - | InsufficientStockError - | NegativeQuantityError - | Order - | OrderInterceptorError - | OrderLimitError - | OrderModificationError; +export type UpdateOrderItemErrorResult = InsufficientStockError | NegativeQuantityError | OrderInterceptorError | OrderLimitError | OrderModificationError; + +export type UpdateOrderItemsResult = InsufficientStockError | NegativeQuantityError | Order | OrderInterceptorError | OrderLimitError | OrderModificationError; export type User = Node & { - __typename?: 'User'; - authenticationMethods: Array; - createdAt: Scalars['DateTime']['output']; - customFields?: Maybe; - id: Scalars['ID']['output']; - identifier: Scalars['String']['output']; - lastLogin?: Maybe; - roles: Array; - updatedAt: Scalars['DateTime']['output']; - verified: Scalars['Boolean']['output']; + __typename?: 'User'; + authenticationMethods: Array; + createdAt: Scalars['DateTime']['output']; + customFields?: Maybe; + id: Scalars['ID']['output']; + identifier: Scalars['String']['output']; + lastLogin?: Maybe; + roles: Array; + updatedAt: Scalars['DateTime']['output']; + verified: Scalars['Boolean']['output']; }; /** @@ -3616,9 +3582,9 @@ export type User = Node & { * expired according to the `verificationTokenDuration` setting in the AuthOptions. */ export type VerificationTokenExpiredError = ErrorResult & { - __typename?: 'VerificationTokenExpiredError'; - errorCode: ErrorCode; - message: Scalars['String']['output']; + __typename?: 'VerificationTokenExpiredError'; + errorCode: ErrorCode; + message: Scalars['String']['output']; }; /** @@ -3626,26 +3592,19 @@ export type VerificationTokenExpiredError = ErrorResult & { * invalid or does not match any expected tokens. */ export type VerificationTokenInvalidError = ErrorResult & { - __typename?: 'VerificationTokenInvalidError'; - errorCode: ErrorCode; - message: Scalars['String']['output']; + __typename?: 'VerificationTokenInvalidError'; + errorCode: ErrorCode; + message: Scalars['String']['output']; }; -export type VerifyCustomerAccountResult = - | CurrentUser - | MissingPasswordError - | NativeAuthStrategyError - | PasswordAlreadySetError - | PasswordValidationError - | VerificationTokenExpiredError - | VerificationTokenInvalidError; +export type VerifyCustomerAccountResult = CurrentUser | MissingPasswordError | NativeAuthStrategyError | PasswordAlreadySetError | PasswordValidationError | VerificationTokenExpiredError | VerificationTokenInvalidError; export type Zone = Node & { - __typename?: 'Zone'; - createdAt: Scalars['DateTime']['output']; - customFields?: Maybe; - id: Scalars['ID']['output']; - members: Array; - name: Scalars['String']['output']; - updatedAt: Scalars['DateTime']['output']; + __typename?: 'Zone'; + createdAt: Scalars['DateTime']['output']; + customFields?: Maybe; + id: Scalars['ID']['output']; + members: Array; + name: Scalars['String']['output']; + updatedAt: Scalars['DateTime']['output']; }; diff --git a/packages/common/src/generated-types.ts b/packages/common/src/generated-types.ts index ba05d13405..1c240139f7 100644 --- a/packages/common/src/generated-types.ts +++ b/packages/common/src/generated-types.ts @@ -84,6 +84,16 @@ export enum AdjustmentType { PROMOTION = 'PROMOTION' } +/** + * Returned by `verifyCustomerAccountAsAdmin` to expose the randomly generated password to the + * administrator. The cleartext password is included in the response only once and is not persisted + * anywhere else; the administrator is responsible for securely transmitting it to the customer. + */ +export type AdminGeneratedPassword = { + __typename?: 'AdminGeneratedPassword'; + password: Scalars['String']['output']; +}; + export type Administrator = Node & { __typename?: 'Administrator'; createdAt: Scalars['DateTime']['output']; @@ -1553,6 +1563,18 @@ export type CustomerOrdersArgs = { options?: InputMaybe; }; +/** + * Returned when an administrator action requires the Customer to be in a specific account state + * (e.g. trying to reset the password of a guest or registered customer, or trying to manually + * verify a customer that is already verified or has no User). + */ +export type CustomerAccountStateError = ErrorResult & { + __typename?: 'CustomerAccountStateError'; + accountState: Scalars['String']['output']; + errorCode: ErrorCode; + message: Scalars['String']['output']; +}; + export type CustomerFilterParameter = { _and?: InputMaybe>; _or?: InputMaybe>; @@ -1803,6 +1825,7 @@ export enum ErrorCode { COUPON_CODE_INVALID_ERROR = 'COUPON_CODE_INVALID_ERROR', COUPON_CODE_LIMIT_ERROR = 'COUPON_CODE_LIMIT_ERROR', CREATE_FULFILLMENT_ERROR = 'CREATE_FULFILLMENT_ERROR', + CUSTOMER_ACCOUNT_STATE_ERROR = 'CUSTOMER_ACCOUNT_STATE_ERROR', DUPLICATE_ENTITY_ERROR = 'DUPLICATE_ENTITY_ERROR', EMAIL_ADDRESS_CONFLICT_ERROR = 'EMAIL_ADDRESS_CONFLICT_ERROR', EMPTY_ORDER_LINE_SELECTION_ERROR = 'EMPTY_ORDER_LINE_SELECTION_ERROR', @@ -3141,6 +3164,13 @@ export type Mutation = { removeShippingMethodsFromChannel: Array; /** Removes StockLocations from the specified Channel */ removeStockLocationsFromChannel: Array; + /** + * Triggers the standard password-reset email flow for a verified Customer, on behalf of an + * administrator. Equivalent to the Customer calling `requestPasswordReset` from the Shop API: + * a reset token is issued and a `PasswordResetEvent` is published so the configured email + * handler can send the customer a reset link. + */ + resetCustomerPasswordAsAdmin: ResetCustomerPasswordAsAdminResult; /** * Replaces the old with a new API-Key. * This is a convenience method to invalidate an API-Key without @@ -3236,6 +3266,12 @@ export type Mutation = { updateTaxRate: TaxRate; /** Update an existing Zone */ updateZone: Zone; + /** + * Completes the email verification step of a registered Customer with a randomly generated + * password. Returns the generated password so the administrator can communicate it to the + * customer. Intended for situations where the customer never confirmed the verification email. + */ + verifyCustomerAccountAsAdmin: VerifyCustomerAccountAsAdminResult; }; @@ -3880,6 +3916,11 @@ export type MutationRemoveStockLocationsFromChannelArgs = { }; +export type MutationResetCustomerPasswordAsAdminArgs = { + customerId: Scalars['ID']['input']; +}; + + export type MutationRotateApiKeyArgs = { id: Scalars['ID']['input']; }; @@ -4148,6 +4189,11 @@ export type MutationUpdateZoneArgs = { input: UpdateZoneInput; }; + +export type MutationVerifyCustomerAccountAsAdminArgs = { + customerId: Scalars['ID']['input']; +}; + export type NativeAuthInput = { password: Scalars['String']['input']; username: Scalars['String']['input']; @@ -6056,6 +6102,8 @@ export type RemoveStockLocationsFromChannelInput = { stockLocationIds: Array; }; +export type ResetCustomerPasswordAsAdminResult = CustomerAccountStateError | Success; + export type Return = Node & StockMovement & { __typename?: 'Return'; createdAt: Scalars['DateTime']['output']; @@ -7240,6 +7288,8 @@ export type User = Node & { verified: Scalars['Boolean']['output']; }; +export type VerifyCustomerAccountAsAdminResult = AdminGeneratedPassword | CustomerAccountStateError; + export type Zone = Node & { __typename?: 'Zone'; createdAt: Scalars['DateTime']['output']; diff --git a/packages/core/e2e/customer.e2e-spec.ts b/packages/core/e2e/customer.e2e-spec.ts index 9b55c5c20c..8ac19d4fea 100644 --- a/packages/core/e2e/customer.e2e-spec.ts +++ b/packages/core/e2e/customer.e2e-spec.ts @@ -1,7 +1,7 @@ import { DeletionResult, ErrorCode, HistoryEntryType } from '@vendure/common/lib/generated-types'; import { omit } from '@vendure/common/lib/omit'; import { pick } from '@vendure/common/lib/pick'; -import { AccountRegistrationEvent, EventBus } from '@vendure/core'; +import { AccountVerifiedEvent, AccountRegistrationEvent, EventBus, PasswordResetEvent } from '@vendure/core'; import { createErrorResultGuard, createTestEnvironment, ErrorResultGuard } from '@vendure/testing'; import path from 'path'; import { afterAll, beforeAll, describe, expect, it, vi } from 'vitest'; @@ -9,6 +9,10 @@ import { afterAll, beforeAll, describe, expect, it, vi } from 'vitest'; import { initialData } from '../../../e2e-common/e2e-initial-data'; import { TEST_SETUP_TIMEOUT_MS, testConfig } from '../../../e2e-common/test-config'; +import { + resetCustomerPasswordAsAdminDocument, + verifyCustomerAccountAsAdminDocument, +} from './graphql/admin-definitions'; import { customerFragment } from './graphql/fragments-admin'; import { FragmentOf, ResultOf } from './graphql/graphql-admin'; import { FragmentOf as FragmentOfShop } from './graphql/graphql-shop'; @@ -681,4 +685,220 @@ describe('Customer resolver', () => { expect(after?.history.totalItems).toBe(historyCount - 1); }); }); + + describe('verifyCustomerAccountAsAdmin', () => { + let unverifiedCustomerId: string; + let unverifiedCustomerEmail: string; + let guestCustomerId: string; + + beforeAll(async () => { + unverifiedCustomerEmail = 'unverified-admin-verify@test.com'; + const { createCustomer } = await adminClient.query(createCustomerDocument, { + input: { + emailAddress: unverifiedCustomerEmail, + firstName: 'Unverified', + lastName: 'Customer', + }, + }); + customerErrorGuard.assertSuccess(createCustomer); + unverifiedCustomerId = createCustomer.id; + + await shopClient.asAnonymousUser(); + await shopClient.query(addItemToOrderDocument, { + productVariantId: 'T_1', + quantity: 1, + }); + const { setCustomerForOrder } = await shopClient.query(setCustomerDocument, { + input: { + firstName: 'Guest', + lastName: 'AdminVerify', + emailAddress: 'guest-admin-verify@test.com', + }, + }); + setCustomerForOrderGuard.assertSuccess(setCustomerForOrder); + guestCustomerId = setCustomerForOrder.customer!.id; + }); + + it('returns CustomerAccountStateError when customer is a guest', async () => { + const { verifyCustomerAccountAsAdmin } = await adminClient.query( + verifyCustomerAccountAsAdminDocument, + { customerId: guestCustomerId }, + ); + + expect(verifyCustomerAccountAsAdmin.__typename).toBe('CustomerAccountStateError'); + if (verifyCustomerAccountAsAdmin.__typename === 'CustomerAccountStateError') { + expect(verifyCustomerAccountAsAdmin.accountState).toBe('guest'); + } + }); + + it('verifies an unverified Customer and returns a generated password', async () => { + const sendEmailFn = vi.fn(); + let resolveFn: () => void; + const subscription = server.app + .get(EventBus) + .ofType(AccountVerifiedEvent) + .subscribe(event => { + sendEmailFn(event); + resolveFn?.(); + }); + const eventReceived = new Promise(resolve => { + resolveFn = resolve; + }); + + const { verifyCustomerAccountAsAdmin } = await adminClient.query( + verifyCustomerAccountAsAdminDocument, + { customerId: unverifiedCustomerId }, + ); + + expect(verifyCustomerAccountAsAdmin.__typename).toBe('AdminGeneratedPassword'); + if (verifyCustomerAccountAsAdmin.__typename !== 'AdminGeneratedPassword') { + subscription.unsubscribe(); + throw new Error('expected AdminGeneratedPassword'); + } + const generatedPassword = verifyCustomerAccountAsAdmin.password; + expect(generatedPassword).toMatch(/^.{16}$/); + + await eventReceived; + expect(sendEmailFn).toHaveBeenCalledTimes(1); + expect(sendEmailFn.mock.calls[0][0] instanceof AccountVerifiedEvent).toBe(true); + subscription.unsubscribe(); + + const { customer } = await adminClient.query(getCustomerWithUserDocument, { + id: unverifiedCustomerId, + }); + expect(customer?.user?.verified).toBe(true); + + const { customer: customerHistory } = await adminClient.query(getCustomerHistoryDocument, { + id: unverifiedCustomerId, + options: { + filter: { + type: { eq: HistoryEntryType.CUSTOMER_VERIFIED }, + }, + }, + }); + customerHistoryGuard.assertSuccess(customerHistory); + expect(customerHistory.history.items.length).toBe(1); + expect(customerHistory.history.items[0].type).toBe(HistoryEntryType.CUSTOMER_VERIFIED); + + await shopClient.asUserWithCredentials(unverifiedCustomerEmail, generatedPassword); + const { me } = await shopClient.query(MeDocument); + expect(me?.identifier).toBe(unverifiedCustomerEmail); + }); + + it('returns CustomerAccountStateError when customer is already verified', async () => { + const { verifyCustomerAccountAsAdmin } = await adminClient.query( + verifyCustomerAccountAsAdminDocument, + { customerId: unverifiedCustomerId }, + ); + + expect(verifyCustomerAccountAsAdmin.__typename).toBe('CustomerAccountStateError'); + if (verifyCustomerAccountAsAdmin.__typename === 'CustomerAccountStateError') { + expect(verifyCustomerAccountAsAdmin.accountState).toBe('verified'); + } + }); + }); + + describe('resetCustomerPasswordAsAdmin', () => { + let unverifiedCustomerId: string; + let guestCustomerId: string; + let verifiedCustomerId: string; + let verifiedCustomerEmail: string; + + beforeAll(async () => { + const { createCustomer: unverified } = await adminClient.query(createCustomerDocument, { + input: { + emailAddress: 'unverified-admin-reset@test.com', + firstName: 'Unverified', + lastName: 'Customer', + }, + }); + customerErrorGuard.assertSuccess(unverified); + unverifiedCustomerId = unverified.id; + + verifiedCustomerEmail = 'verified-admin-reset@test.com'; + const { createCustomer: verified } = await adminClient.query(createCustomerDocument, { + input: { + emailAddress: verifiedCustomerEmail, + firstName: 'Verified', + lastName: 'Customer', + }, + password: 'test', + }); + customerErrorGuard.assertSuccess(verified); + verifiedCustomerId = verified.id; + + await shopClient.asAnonymousUser(); + await shopClient.query(addItemToOrderDocument, { + productVariantId: 'T_1', + quantity: 1, + }); + const { setCustomerForOrder } = await shopClient.query(setCustomerDocument, { + input: { + firstName: 'Guest', + lastName: 'AdminReset', + emailAddress: 'guest-admin-reset@test.com', + }, + }); + setCustomerForOrderGuard.assertSuccess(setCustomerForOrder); + guestCustomerId = setCustomerForOrder.customer!.id; + }); + + it('returns CustomerAccountStateError when customer is a guest', async () => { + const { resetCustomerPasswordAsAdmin } = await adminClient.query( + resetCustomerPasswordAsAdminDocument, + { customerId: guestCustomerId }, + ); + + expect(resetCustomerPasswordAsAdmin.__typename).toBe('CustomerAccountStateError'); + if (resetCustomerPasswordAsAdmin.__typename === 'CustomerAccountStateError') { + expect(resetCustomerPasswordAsAdmin.accountState).toBe('guest'); + } + }); + + it('returns CustomerAccountStateError when customer is unverified', async () => { + const { resetCustomerPasswordAsAdmin } = await adminClient.query( + resetCustomerPasswordAsAdminDocument, + { customerId: unverifiedCustomerId }, + ); + + expect(resetCustomerPasswordAsAdmin.__typename).toBe('CustomerAccountStateError'); + if (resetCustomerPasswordAsAdmin.__typename === 'CustomerAccountStateError') { + expect(resetCustomerPasswordAsAdmin.accountState).toBe('registered'); + } + }); + + it('triggers a PasswordResetEvent for a verified customer', async () => { + const sendEmailFn = vi.fn(); + let resolveFn: () => void; + const subscription = server.app + .get(EventBus) + .ofType(PasswordResetEvent) + .subscribe(passwordResetEvent => { + sendEmailFn(passwordResetEvent); + resolveFn?.(); + }); + const eventReceived = new Promise(resolve => { + resolveFn = resolve; + }); + + const { resetCustomerPasswordAsAdmin } = await adminClient.query( + resetCustomerPasswordAsAdminDocument, + { customerId: verifiedCustomerId }, + ); + + expect(resetCustomerPasswordAsAdmin.__typename).toBe('Success'); + if (resetCustomerPasswordAsAdmin.__typename === 'Success') { + expect(resetCustomerPasswordAsAdmin.success).toBe(true); + } + + await eventReceived; + expect(sendEmailFn).toHaveBeenCalledTimes(1); + const event = sendEmailFn.mock.calls[0][0] as PasswordResetEvent; + expect(event instanceof PasswordResetEvent).toBe(true); + expect(event.user.identifier).toBe(verifiedCustomerEmail); + expect(event.user.getNativeAuthenticationMethod().passwordResetToken).toBeTruthy(); + + subscription.unsubscribe(); + }); + }); }); diff --git a/packages/core/e2e/graphql/admin-definitions.ts b/packages/core/e2e/graphql/admin-definitions.ts index fa8613783e..c67e91c8fe 100644 --- a/packages/core/e2e/graphql/admin-definitions.ts +++ b/packages/core/e2e/graphql/admin-definitions.ts @@ -494,3 +494,35 @@ export const testRemoveStockLocationsFromChannelDocument = graphql(` } } `); + +export const verifyCustomerAccountAsAdminDocument = graphql(` + mutation VerifyCustomerAccountAsAdmin($customerId: ID!) { + verifyCustomerAccountAsAdmin(customerId: $customerId) { + __typename + ... on AdminGeneratedPassword { + password + } + ... on CustomerAccountStateError { + errorCode + message + accountState + } + } + } +`); + +export const resetCustomerPasswordAsAdminDocument = graphql(` + mutation ResetCustomerPasswordAsAdmin($customerId: ID!) { + resetCustomerPasswordAsAdmin(customerId: $customerId) { + __typename + ... on Success { + success + } + ... on CustomerAccountStateError { + errorCode + message + accountState + } + } + } +`); diff --git a/packages/core/e2e/graphql/graphql-admin.ts b/packages/core/e2e/graphql/graphql-admin.ts index 78c1c70b22..e8957ef5f8 100644 --- a/packages/core/e2e/graphql/graphql-admin.ts +++ b/packages/core/e2e/graphql/graphql-admin.ts @@ -1,5 +1,5 @@ -import { initGraphQLTada } from 'gql.tada'; import type { introspection } from './graphql-env-admin.d.ts'; +import { initGraphQLTada } from 'gql.tada'; export const graphql = initGraphQLTada<{ disableMasking: true; @@ -11,5 +11,5 @@ export const graphql = initGraphQLTada<{ }; }>(); -export { readFragment } from 'gql.tada'; export type { FragmentOf, ResultOf, VariablesOf } from 'gql.tada'; +export { readFragment } from 'gql.tada'; diff --git a/packages/core/e2e/graphql/graphql-env-admin.d.ts b/packages/core/e2e/graphql/graphql-env-admin.d.ts index d4365e8e50..ab1d9c48f7 100644 --- a/packages/core/e2e/graphql/graphql-env-admin.d.ts +++ b/packages/core/e2e/graphql/graphql-env-admin.d.ts @@ -12,6 +12,7 @@ export type introspection_types = { 'AdjustDraftOrderLineInput': { kind: 'INPUT_OBJECT'; name: 'AdjustDraftOrderLineInput'; isOneOf: false; inputFields: [{ name: 'orderLineId'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ID'; ofType: null; }; }; defaultValue: null }, { name: 'quantity'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Int'; ofType: null; }; }; defaultValue: null }]; }; 'Adjustment': { kind: 'OBJECT'; name: 'Adjustment'; fields: { 'adjustmentSource': { name: 'adjustmentSource'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'amount': { name: 'amount'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Money'; ofType: null; }; } }; 'data': { name: 'data'; type: { kind: 'SCALAR'; name: 'JSON'; ofType: null; } }; 'description': { name: 'description'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'type': { name: 'type'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'AdjustmentType'; ofType: null; }; } }; }; }; 'AdjustmentType': { name: 'AdjustmentType'; enumValues: 'PROMOTION' | 'DISTRIBUTED_ORDER_PROMOTION' | 'OTHER'; }; + 'AdminGeneratedPassword': { kind: 'OBJECT'; name: 'AdminGeneratedPassword'; fields: { 'password': { name: 'password'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; }; }; 'Administrator': { kind: 'OBJECT'; name: 'Administrator'; fields: { 'createdAt': { name: 'createdAt'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; 'customFields': { name: 'customFields'; type: { kind: 'SCALAR'; name: 'JSON'; ofType: null; } }; 'emailAddress': { name: 'emailAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'firstName': { name: 'firstName'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'id': { name: 'id'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ID'; ofType: null; }; } }; 'lastName': { name: 'lastName'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'updatedAt': { name: 'updatedAt'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; 'user': { name: 'user'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'User'; ofType: null; }; } }; }; }; 'AdministratorFilterParameter': { kind: 'INPUT_OBJECT'; name: 'AdministratorFilterParameter'; isOneOf: false; inputFields: [{ name: 'id'; type: { kind: 'INPUT_OBJECT'; name: 'IDOperators'; ofType: null; }; defaultValue: null }, { name: 'createdAt'; type: { kind: 'INPUT_OBJECT'; name: 'DateOperators'; ofType: null; }; defaultValue: null }, { name: 'updatedAt'; type: { kind: 'INPUT_OBJECT'; name: 'DateOperators'; ofType: null; }; defaultValue: null }, { name: 'firstName'; type: { kind: 'INPUT_OBJECT'; name: 'StringOperators'; ofType: null; }; defaultValue: null }, { name: 'lastName'; type: { kind: 'INPUT_OBJECT'; name: 'StringOperators'; ofType: null; }; defaultValue: null }, { name: 'emailAddress'; type: { kind: 'INPUT_OBJECT'; name: 'StringOperators'; ofType: null; }; defaultValue: null }, { name: '_and'; type: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'INPUT_OBJECT'; name: 'AdministratorFilterParameter'; ofType: null; }; }; }; defaultValue: null }, { name: '_or'; type: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'INPUT_OBJECT'; name: 'AdministratorFilterParameter'; ofType: null; }; }; }; defaultValue: null }]; }; 'AdministratorList': { kind: 'OBJECT'; name: 'AdministratorList'; fields: { 'items': { name: 'items'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Administrator'; ofType: null; }; }; }; } }; 'totalItems': { name: 'totalItems'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Int'; ofType: null; }; } }; }; }; @@ -136,6 +137,7 @@ export type introspection_types = { 'CustomFieldConfig': { kind: 'UNION'; name: 'CustomFieldConfig'; fields: {}; possibleTypes: 'BooleanCustomFieldConfig' | 'DateTimeCustomFieldConfig' | 'FloatCustomFieldConfig' | 'IntCustomFieldConfig' | 'LocaleStringCustomFieldConfig' | 'LocaleTextCustomFieldConfig' | 'RelationCustomFieldConfig' | 'StringCustomFieldConfig' | 'StructCustomFieldConfig' | 'TextCustomFieldConfig'; }; 'CustomFields': { kind: 'OBJECT'; name: 'CustomFields'; fields: { 'Address': { name: 'Address'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'Administrator': { name: 'Administrator'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'ApiKey': { name: 'ApiKey'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'Asset': { name: 'Asset'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'Channel': { name: 'Channel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'Collection': { name: 'Collection'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'Customer': { name: 'Customer'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'CustomerGroup': { name: 'CustomerGroup'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'Facet': { name: 'Facet'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'FacetValue': { name: 'FacetValue'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'Fulfillment': { name: 'Fulfillment'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'GlobalSettings': { name: 'GlobalSettings'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'HistoryEntry': { name: 'HistoryEntry'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'Order': { name: 'Order'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'OrderLine': { name: 'OrderLine'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'Payment': { name: 'Payment'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'PaymentMethod': { name: 'PaymentMethod'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'Product': { name: 'Product'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'ProductOption': { name: 'ProductOption'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'ProductOptionGroup': { name: 'ProductOptionGroup'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'ProductVariant': { name: 'ProductVariant'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'ProductVariantPrice': { name: 'ProductVariantPrice'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'Promotion': { name: 'Promotion'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'Refund': { name: 'Refund'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'Region': { name: 'Region'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'Seller': { name: 'Seller'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'Session': { name: 'Session'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'ShippingLine': { name: 'ShippingLine'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'ShippingMethod': { name: 'ShippingMethod'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'StockLevel': { name: 'StockLevel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'StockLocation': { name: 'StockLocation'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'StockMovement': { name: 'StockMovement'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'TaxCategory': { name: 'TaxCategory'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'TaxRate': { name: 'TaxRate'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'User': { name: 'User'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'Zone': { name: 'Zone'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; }; }; 'Customer': { kind: 'OBJECT'; name: 'Customer'; fields: { 'addresses': { name: 'addresses'; type: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Address'; ofType: null; }; }; } }; 'createdAt': { name: 'createdAt'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; 'customFields': { name: 'customFields'; type: { kind: 'SCALAR'; name: 'JSON'; ofType: null; } }; 'emailAddress': { name: 'emailAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'firstName': { name: 'firstName'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'groups': { name: 'groups'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'CustomerGroup'; ofType: null; }; }; }; } }; 'history': { name: 'history'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'HistoryEntryList'; ofType: null; }; } }; 'id': { name: 'id'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ID'; ofType: null; }; } }; 'lastName': { name: 'lastName'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'orders': { name: 'orders'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'OrderList'; ofType: null; }; } }; 'phoneNumber': { name: 'phoneNumber'; type: { kind: 'SCALAR'; name: 'String'; ofType: null; } }; 'title': { name: 'title'; type: { kind: 'SCALAR'; name: 'String'; ofType: null; } }; 'updatedAt': { name: 'updatedAt'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; 'user': { name: 'user'; type: { kind: 'OBJECT'; name: 'User'; ofType: null; } }; }; }; + 'CustomerAccountStateError': { kind: 'OBJECT'; name: 'CustomerAccountStateError'; fields: { 'accountState': { name: 'accountState'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'errorCode': { name: 'errorCode'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'ErrorCode'; ofType: null; }; } }; 'message': { name: 'message'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; }; }; 'CustomerFilterParameter': { kind: 'INPUT_OBJECT'; name: 'CustomerFilterParameter'; isOneOf: false; inputFields: [{ name: 'postalCode'; type: { kind: 'INPUT_OBJECT'; name: 'StringOperators'; ofType: null; }; defaultValue: null }, { name: 'id'; type: { kind: 'INPUT_OBJECT'; name: 'IDOperators'; ofType: null; }; defaultValue: null }, { name: 'createdAt'; type: { kind: 'INPUT_OBJECT'; name: 'DateOperators'; ofType: null; }; defaultValue: null }, { name: 'updatedAt'; type: { kind: 'INPUT_OBJECT'; name: 'DateOperators'; ofType: null; }; defaultValue: null }, { name: 'title'; type: { kind: 'INPUT_OBJECT'; name: 'StringOperators'; ofType: null; }; defaultValue: null }, { name: 'firstName'; type: { kind: 'INPUT_OBJECT'; name: 'StringOperators'; ofType: null; }; defaultValue: null }, { name: 'lastName'; type: { kind: 'INPUT_OBJECT'; name: 'StringOperators'; ofType: null; }; defaultValue: null }, { name: 'phoneNumber'; type: { kind: 'INPUT_OBJECT'; name: 'StringOperators'; ofType: null; }; defaultValue: null }, { name: 'emailAddress'; type: { kind: 'INPUT_OBJECT'; name: 'StringOperators'; ofType: null; }; defaultValue: null }, { name: '_and'; type: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'INPUT_OBJECT'; name: 'CustomerFilterParameter'; ofType: null; }; }; }; defaultValue: null }, { name: '_or'; type: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'INPUT_OBJECT'; name: 'CustomerFilterParameter'; ofType: null; }; }; }; defaultValue: null }]; }; 'CustomerGroup': { kind: 'OBJECT'; name: 'CustomerGroup'; fields: { 'createdAt': { name: 'createdAt'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; 'customFields': { name: 'customFields'; type: { kind: 'SCALAR'; name: 'JSON'; ofType: null; } }; 'customers': { name: 'customers'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'CustomerList'; ofType: null; }; } }; 'id': { name: 'id'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ID'; ofType: null; }; } }; 'name': { name: 'name'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'updatedAt': { name: 'updatedAt'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; }; }; 'CustomerGroupFilterParameter': { kind: 'INPUT_OBJECT'; name: 'CustomerGroupFilterParameter'; isOneOf: false; inputFields: [{ name: 'id'; type: { kind: 'INPUT_OBJECT'; name: 'IDOperators'; ofType: null; }; defaultValue: null }, { name: 'createdAt'; type: { kind: 'INPUT_OBJECT'; name: 'DateOperators'; ofType: null; }; defaultValue: null }, { name: 'updatedAt'; type: { kind: 'INPUT_OBJECT'; name: 'DateOperators'; ofType: null; }; defaultValue: null }, { name: 'name'; type: { kind: 'INPUT_OBJECT'; name: 'StringOperators'; ofType: null; }; defaultValue: null }, { name: '_and'; type: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'INPUT_OBJECT'; name: 'CustomerGroupFilterParameter'; ofType: null; }; }; }; defaultValue: null }, { name: '_or'; type: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'INPUT_OBJECT'; name: 'CustomerGroupFilterParameter'; ofType: null; }; }; }; defaultValue: null }]; }; @@ -165,8 +167,8 @@ export type introspection_types = { 'EmptyOrderLineSelectionError': { kind: 'OBJECT'; name: 'EmptyOrderLineSelectionError'; fields: { 'errorCode': { name: 'errorCode'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'ErrorCode'; ofType: null; }; } }; 'message': { name: 'message'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; }; }; 'EntityCustomFields': { kind: 'OBJECT'; name: 'EntityCustomFields'; fields: { 'customFields': { name: 'customFields'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CustomFieldConfig'; ofType: null; }; }; }; } }; 'entityName': { name: 'entityName'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; }; }; 'EntityDuplicatorDefinition': { kind: 'OBJECT'; name: 'EntityDuplicatorDefinition'; fields: { 'args': { name: 'args'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ConfigArgDefinition'; ofType: null; }; }; }; } }; 'code': { name: 'code'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'description': { name: 'description'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'forEntities': { name: 'forEntities'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; }; }; } }; 'requiresPermission': { name: 'requiresPermission'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'Permission'; ofType: null; }; }; }; } }; }; }; - 'ErrorCode': { name: 'ErrorCode'; enumValues: 'UNKNOWN_ERROR' | 'MIME_TYPE_ERROR' | 'LANGUAGE_NOT_AVAILABLE_ERROR' | 'DUPLICATE_ENTITY_ERROR' | 'FACET_IN_USE_ERROR' | 'CHANNEL_DEFAULT_LANGUAGE_ERROR' | 'SETTLE_PAYMENT_ERROR' | 'CANCEL_PAYMENT_ERROR' | 'EMPTY_ORDER_LINE_SELECTION_ERROR' | 'ITEMS_ALREADY_FULFILLED_ERROR' | 'INVALID_FULFILLMENT_HANDLER_ERROR' | 'CREATE_FULFILLMENT_ERROR' | 'INSUFFICIENT_STOCK_ON_HAND_ERROR' | 'MULTIPLE_ORDER_ERROR' | 'CANCEL_ACTIVE_ORDER_ERROR' | 'PAYMENT_ORDER_MISMATCH_ERROR' | 'REFUND_ORDER_STATE_ERROR' | 'NOTHING_TO_REFUND_ERROR' | 'ALREADY_REFUNDED_ERROR' | 'QUANTITY_TOO_GREAT_ERROR' | 'REFUND_AMOUNT_ERROR' | 'REFUND_STATE_TRANSITION_ERROR' | 'PAYMENT_STATE_TRANSITION_ERROR' | 'FULFILLMENT_STATE_TRANSITION_ERROR' | 'ORDER_MODIFICATION_STATE_ERROR' | 'NO_CHANGES_SPECIFIED_ERROR' | 'PAYMENT_METHOD_MISSING_ERROR' | 'REFUND_PAYMENT_ID_MISSING_ERROR' | 'MANUAL_PAYMENT_STATE_ERROR' | 'PRODUCT_OPTION_GROUP_IN_USE_ERROR' | 'PRODUCT_OPTION_IN_USE_ERROR' | 'MISSING_CONDITIONS_ERROR' | 'NATIVE_AUTH_STRATEGY_ERROR' | 'INVALID_CREDENTIALS_ERROR' | 'ORDER_STATE_TRANSITION_ERROR' | 'EMAIL_ADDRESS_CONFLICT_ERROR' | 'GUEST_CHECKOUT_ERROR' | 'ORDER_LIMIT_ERROR' | 'NEGATIVE_QUANTITY_ERROR' | 'INSUFFICIENT_STOCK_ERROR' | 'COUPON_CODE_INVALID_ERROR' | 'COUPON_CODE_EXPIRED_ERROR' | 'COUPON_CODE_LIMIT_ERROR' | 'ORDER_MODIFICATION_ERROR' | 'INELIGIBLE_SHIPPING_METHOD_ERROR' | 'NO_ACTIVE_ORDER_ERROR' | 'ORDER_INTERCEPTOR_ERROR'; }; - 'ErrorResult': { kind: 'INTERFACE'; name: 'ErrorResult'; fields: { 'errorCode': { name: 'errorCode'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'ErrorCode'; ofType: null; }; } }; 'message': { name: 'message'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; }; possibleTypes: 'AlreadyRefundedError' | 'CancelActiveOrderError' | 'CancelPaymentError' | 'ChannelDefaultLanguageError' | 'CouponCodeExpiredError' | 'CouponCodeInvalidError' | 'CouponCodeLimitError' | 'CreateFulfillmentError' | 'DuplicateEntityError' | 'EmailAddressConflictError' | 'EmptyOrderLineSelectionError' | 'FacetInUseError' | 'FulfillmentStateTransitionError' | 'GuestCheckoutError' | 'IneligibleShippingMethodError' | 'InsufficientStockError' | 'InsufficientStockOnHandError' | 'InvalidCredentialsError' | 'InvalidFulfillmentHandlerError' | 'ItemsAlreadyFulfilledError' | 'LanguageNotAvailableError' | 'ManualPaymentStateError' | 'MimeTypeError' | 'MissingConditionsError' | 'MultipleOrderError' | 'NativeAuthStrategyError' | 'NegativeQuantityError' | 'NoActiveOrderError' | 'NoChangesSpecifiedError' | 'NothingToRefundError' | 'OrderInterceptorError' | 'OrderLimitError' | 'OrderModificationError' | 'OrderModificationStateError' | 'OrderStateTransitionError' | 'PaymentMethodMissingError' | 'PaymentOrderMismatchError' | 'PaymentStateTransitionError' | 'ProductOptionGroupInUseError' | 'ProductOptionInUseError' | 'QuantityTooGreatError' | 'RefundAmountError' | 'RefundOrderStateError' | 'RefundPaymentIdMissingError' | 'RefundStateTransitionError' | 'SettlePaymentError'; }; + 'ErrorCode': { name: 'ErrorCode'; enumValues: 'UNKNOWN_ERROR' | 'MIME_TYPE_ERROR' | 'LANGUAGE_NOT_AVAILABLE_ERROR' | 'CUSTOMER_ACCOUNT_STATE_ERROR' | 'DUPLICATE_ENTITY_ERROR' | 'FACET_IN_USE_ERROR' | 'CHANNEL_DEFAULT_LANGUAGE_ERROR' | 'SETTLE_PAYMENT_ERROR' | 'CANCEL_PAYMENT_ERROR' | 'EMPTY_ORDER_LINE_SELECTION_ERROR' | 'ITEMS_ALREADY_FULFILLED_ERROR' | 'INVALID_FULFILLMENT_HANDLER_ERROR' | 'CREATE_FULFILLMENT_ERROR' | 'INSUFFICIENT_STOCK_ON_HAND_ERROR' | 'MULTIPLE_ORDER_ERROR' | 'CANCEL_ACTIVE_ORDER_ERROR' | 'PAYMENT_ORDER_MISMATCH_ERROR' | 'REFUND_ORDER_STATE_ERROR' | 'NOTHING_TO_REFUND_ERROR' | 'ALREADY_REFUNDED_ERROR' | 'QUANTITY_TOO_GREAT_ERROR' | 'REFUND_AMOUNT_ERROR' | 'REFUND_STATE_TRANSITION_ERROR' | 'PAYMENT_STATE_TRANSITION_ERROR' | 'FULFILLMENT_STATE_TRANSITION_ERROR' | 'ORDER_MODIFICATION_STATE_ERROR' | 'NO_CHANGES_SPECIFIED_ERROR' | 'PAYMENT_METHOD_MISSING_ERROR' | 'REFUND_PAYMENT_ID_MISSING_ERROR' | 'MANUAL_PAYMENT_STATE_ERROR' | 'PRODUCT_OPTION_GROUP_IN_USE_ERROR' | 'PRODUCT_OPTION_IN_USE_ERROR' | 'MISSING_CONDITIONS_ERROR' | 'NATIVE_AUTH_STRATEGY_ERROR' | 'INVALID_CREDENTIALS_ERROR' | 'ORDER_STATE_TRANSITION_ERROR' | 'EMAIL_ADDRESS_CONFLICT_ERROR' | 'GUEST_CHECKOUT_ERROR' | 'ORDER_LIMIT_ERROR' | 'NEGATIVE_QUANTITY_ERROR' | 'INSUFFICIENT_STOCK_ERROR' | 'COUPON_CODE_INVALID_ERROR' | 'COUPON_CODE_EXPIRED_ERROR' | 'COUPON_CODE_LIMIT_ERROR' | 'ORDER_MODIFICATION_ERROR' | 'INELIGIBLE_SHIPPING_METHOD_ERROR' | 'NO_ACTIVE_ORDER_ERROR' | 'ORDER_INTERCEPTOR_ERROR'; }; + 'ErrorResult': { kind: 'INTERFACE'; name: 'ErrorResult'; fields: { 'errorCode': { name: 'errorCode'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'ErrorCode'; ofType: null; }; } }; 'message': { name: 'message'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; }; possibleTypes: 'AlreadyRefundedError' | 'CancelActiveOrderError' | 'CancelPaymentError' | 'ChannelDefaultLanguageError' | 'CouponCodeExpiredError' | 'CouponCodeInvalidError' | 'CouponCodeLimitError' | 'CreateFulfillmentError' | 'CustomerAccountStateError' | 'DuplicateEntityError' | 'EmailAddressConflictError' | 'EmptyOrderLineSelectionError' | 'FacetInUseError' | 'FulfillmentStateTransitionError' | 'GuestCheckoutError' | 'IneligibleShippingMethodError' | 'InsufficientStockError' | 'InsufficientStockOnHandError' | 'InvalidCredentialsError' | 'InvalidFulfillmentHandlerError' | 'ItemsAlreadyFulfilledError' | 'LanguageNotAvailableError' | 'ManualPaymentStateError' | 'MimeTypeError' | 'MissingConditionsError' | 'MultipleOrderError' | 'NativeAuthStrategyError' | 'NegativeQuantityError' | 'NoActiveOrderError' | 'NoChangesSpecifiedError' | 'NothingToRefundError' | 'OrderInterceptorError' | 'OrderLimitError' | 'OrderModificationError' | 'OrderModificationStateError' | 'OrderStateTransitionError' | 'PaymentMethodMissingError' | 'PaymentOrderMismatchError' | 'PaymentStateTransitionError' | 'ProductOptionGroupInUseError' | 'ProductOptionInUseError' | 'QuantityTooGreatError' | 'RefundAmountError' | 'RefundOrderStateError' | 'RefundPaymentIdMissingError' | 'RefundStateTransitionError' | 'SettlePaymentError'; }; 'Facet': { kind: 'OBJECT'; name: 'Facet'; fields: { 'code': { name: 'code'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'createdAt': { name: 'createdAt'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; 'customFields': { name: 'customFields'; type: { kind: 'SCALAR'; name: 'JSON'; ofType: null; } }; 'id': { name: 'id'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ID'; ofType: null; }; } }; 'isPrivate': { name: 'isPrivate'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Boolean'; ofType: null; }; } }; 'languageCode': { name: 'languageCode'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'LanguageCode'; ofType: null; }; } }; 'name': { name: 'name'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'translations': { name: 'translations'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'FacetTranslation'; ofType: null; }; }; }; } }; 'updatedAt': { name: 'updatedAt'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; 'valueList': { name: 'valueList'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'FacetValueList'; ofType: null; }; } }; 'values': { name: 'values'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'FacetValue'; ofType: null; }; }; }; } }; }; }; 'FacetFilterParameter': { kind: 'INPUT_OBJECT'; name: 'FacetFilterParameter'; isOneOf: false; inputFields: [{ name: 'isPrivate'; type: { kind: 'INPUT_OBJECT'; name: 'BooleanOperators'; ofType: null; }; defaultValue: null }, { name: 'id'; type: { kind: 'INPUT_OBJECT'; name: 'IDOperators'; ofType: null; }; defaultValue: null }, { name: 'createdAt'; type: { kind: 'INPUT_OBJECT'; name: 'DateOperators'; ofType: null; }; defaultValue: null }, { name: 'updatedAt'; type: { kind: 'INPUT_OBJECT'; name: 'DateOperators'; ofType: null; }; defaultValue: null }, { name: 'languageCode'; type: { kind: 'INPUT_OBJECT'; name: 'StringOperators'; ofType: null; }; defaultValue: null }, { name: 'name'; type: { kind: 'INPUT_OBJECT'; name: 'StringOperators'; ofType: null; }; defaultValue: null }, { name: 'code'; type: { kind: 'INPUT_OBJECT'; name: 'StringOperators'; ofType: null; }; defaultValue: null }, { name: '_and'; type: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'INPUT_OBJECT'; name: 'FacetFilterParameter'; ofType: null; }; }; }; defaultValue: null }, { name: '_or'; type: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'INPUT_OBJECT'; name: 'FacetFilterParameter'; ofType: null; }; }; }; defaultValue: null }]; }; 'FacetInUseError': { kind: 'OBJECT'; name: 'FacetInUseError'; fields: { 'errorCode': { name: 'errorCode'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'ErrorCode'; ofType: null; }; } }; 'facetCode': { name: 'facetCode'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'message': { name: 'message'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'productCount': { name: 'productCount'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Int'; ofType: null; }; } }; 'variantCount': { name: 'variantCount'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Int'; ofType: null; }; } }; }; }; @@ -243,7 +245,7 @@ export type introspection_types = { 'Money': unknown; 'MoveCollectionInput': { kind: 'INPUT_OBJECT'; name: 'MoveCollectionInput'; isOneOf: false; inputFields: [{ name: 'collectionId'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ID'; ofType: null; }; }; defaultValue: null }, { name: 'parentId'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ID'; ofType: null; }; }; defaultValue: null }, { name: 'index'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Int'; ofType: null; }; }; defaultValue: null }]; }; 'MultipleOrderError': { kind: 'OBJECT'; name: 'MultipleOrderError'; fields: { 'errorCode': { name: 'errorCode'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'ErrorCode'; ofType: null; }; } }; 'message': { name: 'message'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; }; }; - 'Mutation': { kind: 'OBJECT'; name: 'Mutation'; fields: { 'addCustomersToGroup': { name: 'addCustomersToGroup'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'CustomerGroup'; ofType: null; }; } }; 'addFulfillmentToOrder': { name: 'addFulfillmentToOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'AddFulfillmentToOrderResult'; ofType: null; }; } }; 'addItemToDraftOrder': { name: 'addItemToDraftOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'UpdateOrderItemsResult'; ofType: null; }; } }; 'addManualPaymentToOrder': { name: 'addManualPaymentToOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'AddManualPaymentToOrderResult'; ofType: null; }; } }; 'addMembersToZone': { name: 'addMembersToZone'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Zone'; ofType: null; }; } }; 'addNoteToCustomer': { name: 'addNoteToCustomer'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Customer'; ofType: null; }; } }; 'addNoteToOrder': { name: 'addNoteToOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Order'; ofType: null; }; } }; 'addOptionGroupToProduct': { name: 'addOptionGroupToProduct'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Product'; ofType: null; }; } }; 'adjustDraftOrderLine': { name: 'adjustDraftOrderLine'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'UpdateOrderItemsResult'; ofType: null; }; } }; 'applyCouponCodeToDraftOrder': { name: 'applyCouponCodeToDraftOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'ApplyCouponCodeResult'; ofType: null; }; } }; 'assignAssetsToChannel': { name: 'assignAssetsToChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Asset'; ofType: null; }; }; }; } }; 'assignCollectionsToChannel': { name: 'assignCollectionsToChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Collection'; ofType: null; }; }; }; } }; 'assignFacetsToChannel': { name: 'assignFacetsToChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Facet'; ofType: null; }; }; }; } }; 'assignPaymentMethodsToChannel': { name: 'assignPaymentMethodsToChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaymentMethod'; ofType: null; }; }; }; } }; 'assignProductOptionGroupsToChannel': { name: 'assignProductOptionGroupsToChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ProductOptionGroup'; ofType: null; }; }; }; } }; 'assignProductVariantsToChannel': { name: 'assignProductVariantsToChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ProductVariant'; ofType: null; }; }; }; } }; 'assignProductsToChannel': { name: 'assignProductsToChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Product'; ofType: null; }; }; }; } }; 'assignPromotionsToChannel': { name: 'assignPromotionsToChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Promotion'; ofType: null; }; }; }; } }; 'assignRoleToAdministrator': { name: 'assignRoleToAdministrator'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Administrator'; ofType: null; }; } }; 'assignShippingMethodsToChannel': { name: 'assignShippingMethodsToChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ShippingMethod'; ofType: null; }; }; }; } }; 'assignStockLocationsToChannel': { name: 'assignStockLocationsToChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'StockLocation'; ofType: null; }; }; }; } }; 'authenticate': { name: 'authenticate'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'AuthenticationResult'; ofType: null; }; } }; 'cancelJob': { name: 'cancelJob'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Job'; ofType: null; }; } }; 'cancelOrder': { name: 'cancelOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CancelOrderResult'; ofType: null; }; } }; 'cancelPayment': { name: 'cancelPayment'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CancelPaymentResult'; ofType: null; }; } }; 'createAdministrator': { name: 'createAdministrator'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Administrator'; ofType: null; }; } }; 'createApiKey': { name: 'createApiKey'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'CreateApiKeyResult'; ofType: null; }; } }; 'createAssets': { name: 'createAssets'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CreateAssetResult'; ofType: null; }; }; }; } }; 'createChannel': { name: 'createChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CreateChannelResult'; ofType: null; }; } }; 'createCollection': { name: 'createCollection'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Collection'; ofType: null; }; } }; 'createCountry': { name: 'createCountry'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Country'; ofType: null; }; } }; 'createCustomer': { name: 'createCustomer'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CreateCustomerResult'; ofType: null; }; } }; 'createCustomerAddress': { name: 'createCustomerAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Address'; ofType: null; }; } }; 'createCustomerGroup': { name: 'createCustomerGroup'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'CustomerGroup'; ofType: null; }; } }; 'createDraftOrder': { name: 'createDraftOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Order'; ofType: null; }; } }; 'createFacet': { name: 'createFacet'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Facet'; ofType: null; }; } }; 'createFacetValue': { name: 'createFacetValue'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'FacetValue'; ofType: null; }; } }; 'createFacetValues': { name: 'createFacetValues'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'FacetValue'; ofType: null; }; }; }; } }; 'createPaymentMethod': { name: 'createPaymentMethod'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaymentMethod'; ofType: null; }; } }; 'createProduct': { name: 'createProduct'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Product'; ofType: null; }; } }; 'createProductOption': { name: 'createProductOption'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ProductOption'; ofType: null; }; } }; 'createProductOptionGroup': { name: 'createProductOptionGroup'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ProductOptionGroup'; ofType: null; }; } }; 'createProductVariants': { name: 'createProductVariants'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'OBJECT'; name: 'ProductVariant'; ofType: null; }; }; } }; 'createPromotion': { name: 'createPromotion'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CreatePromotionResult'; ofType: null; }; } }; 'createProvince': { name: 'createProvince'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Province'; ofType: null; }; } }; 'createRole': { name: 'createRole'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Role'; ofType: null; }; } }; 'createSeller': { name: 'createSeller'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Seller'; ofType: null; }; } }; 'createShippingMethod': { name: 'createShippingMethod'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ShippingMethod'; ofType: null; }; } }; 'createStockLocation': { name: 'createStockLocation'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'StockLocation'; ofType: null; }; } }; 'createTag': { name: 'createTag'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Tag'; ofType: null; }; } }; 'createTaxCategory': { name: 'createTaxCategory'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'TaxCategory'; ofType: null; }; } }; 'createTaxRate': { name: 'createTaxRate'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'TaxRate'; ofType: null; }; } }; 'createZone': { name: 'createZone'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Zone'; ofType: null; }; } }; 'deleteAdministrator': { name: 'deleteAdministrator'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteAdministrators': { name: 'deleteAdministrators'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteApiKeys': { name: 'deleteApiKeys'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteAsset': { name: 'deleteAsset'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteAssets': { name: 'deleteAssets'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteChannel': { name: 'deleteChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteChannels': { name: 'deleteChannels'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteCollection': { name: 'deleteCollection'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteCollections': { name: 'deleteCollections'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteCountries': { name: 'deleteCountries'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteCountry': { name: 'deleteCountry'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteCustomer': { name: 'deleteCustomer'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteCustomerAddress': { name: 'deleteCustomerAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Success'; ofType: null; }; } }; 'deleteCustomerGroup': { name: 'deleteCustomerGroup'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteCustomerGroups': { name: 'deleteCustomerGroups'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteCustomerNote': { name: 'deleteCustomerNote'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteCustomers': { name: 'deleteCustomers'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteDraftOrder': { name: 'deleteDraftOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteFacet': { name: 'deleteFacet'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteFacetValues': { name: 'deleteFacetValues'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteFacets': { name: 'deleteFacets'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteOrderNote': { name: 'deleteOrderNote'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deletePaymentMethod': { name: 'deletePaymentMethod'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deletePaymentMethods': { name: 'deletePaymentMethods'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteProduct': { name: 'deleteProduct'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteProductOption': { name: 'deleteProductOption'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteProductOptionGroup': { name: 'deleteProductOptionGroup'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteProductOptionGroups': { name: 'deleteProductOptionGroups'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteProductVariant': { name: 'deleteProductVariant'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteProductVariants': { name: 'deleteProductVariants'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteProducts': { name: 'deleteProducts'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deletePromotion': { name: 'deletePromotion'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deletePromotions': { name: 'deletePromotions'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteProvince': { name: 'deleteProvince'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteRole': { name: 'deleteRole'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteRoles': { name: 'deleteRoles'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteSeller': { name: 'deleteSeller'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteSellers': { name: 'deleteSellers'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteShippingMethod': { name: 'deleteShippingMethod'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteShippingMethods': { name: 'deleteShippingMethods'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteStockLocation': { name: 'deleteStockLocation'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteStockLocations': { name: 'deleteStockLocations'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteTag': { name: 'deleteTag'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteTaxCategories': { name: 'deleteTaxCategories'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteTaxCategory': { name: 'deleteTaxCategory'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteTaxRate': { name: 'deleteTaxRate'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteTaxRates': { name: 'deleteTaxRates'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteZone': { name: 'deleteZone'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteZones': { name: 'deleteZones'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'duplicateEntity': { name: 'duplicateEntity'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'DuplicateEntityResult'; ofType: null; }; } }; 'flushBufferedJobs': { name: 'flushBufferedJobs'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Success'; ofType: null; }; } }; 'importProducts': { name: 'importProducts'; type: { kind: 'OBJECT'; name: 'ImportInfo'; ofType: null; } }; 'login': { name: 'login'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'NativeAuthenticationResult'; ofType: null; }; } }; 'logout': { name: 'logout'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Success'; ofType: null; }; } }; 'modifyOrder': { name: 'modifyOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'ModifyOrderResult'; ofType: null; }; } }; 'moveCollection': { name: 'moveCollection'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Collection'; ofType: null; }; } }; 'refundOrder': { name: 'refundOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'RefundOrderResult'; ofType: null; }; } }; 'reindex': { name: 'reindex'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Job'; ofType: null; }; } }; 'removeCollectionsFromChannel': { name: 'removeCollectionsFromChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Collection'; ofType: null; }; }; }; } }; 'removeCouponCodeFromDraftOrder': { name: 'removeCouponCodeFromDraftOrder'; type: { kind: 'OBJECT'; name: 'Order'; ofType: null; } }; 'removeCustomersFromGroup': { name: 'removeCustomersFromGroup'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'CustomerGroup'; ofType: null; }; } }; 'removeDraftOrderLine': { name: 'removeDraftOrderLine'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'RemoveOrderItemsResult'; ofType: null; }; } }; 'removeFacetsFromChannel': { name: 'removeFacetsFromChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'RemoveFacetFromChannelResult'; ofType: null; }; }; }; } }; 'removeMembersFromZone': { name: 'removeMembersFromZone'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Zone'; ofType: null; }; } }; 'removeOptionGroupFromProduct': { name: 'removeOptionGroupFromProduct'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'RemoveOptionGroupFromProductResult'; ofType: null; }; } }; 'removePaymentMethodsFromChannel': { name: 'removePaymentMethodsFromChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaymentMethod'; ofType: null; }; }; }; } }; 'removeProductOptionGroupsFromChannel': { name: 'removeProductOptionGroupsFromChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'RemoveProductOptionGroupFromChannelResult'; ofType: null; }; }; }; } }; 'removeProductVariantsFromChannel': { name: 'removeProductVariantsFromChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ProductVariant'; ofType: null; }; }; }; } }; 'removeProductsFromChannel': { name: 'removeProductsFromChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Product'; ofType: null; }; }; }; } }; 'removePromotionsFromChannel': { name: 'removePromotionsFromChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Promotion'; ofType: null; }; }; }; } }; 'removeSettledJobs': { name: 'removeSettledJobs'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Int'; ofType: null; }; } }; 'removeShippingMethodsFromChannel': { name: 'removeShippingMethodsFromChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ShippingMethod'; ofType: null; }; }; }; } }; 'removeStockLocationsFromChannel': { name: 'removeStockLocationsFromChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'StockLocation'; ofType: null; }; }; }; } }; 'rotateApiKey': { name: 'rotateApiKey'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'RotateApiKeyResult'; ofType: null; }; } }; 'runPendingSearchIndexUpdates': { name: 'runPendingSearchIndexUpdates'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Success'; ofType: null; }; } }; 'runScheduledTask': { name: 'runScheduledTask'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Success'; ofType: null; }; } }; 'setCustomerForDraftOrder': { name: 'setCustomerForDraftOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'SetCustomerForDraftOrderResult'; ofType: null; }; } }; 'setDraftOrderBillingAddress': { name: 'setDraftOrderBillingAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Order'; ofType: null; }; } }; 'setDraftOrderCustomFields': { name: 'setDraftOrderCustomFields'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Order'; ofType: null; }; } }; 'setDraftOrderShippingAddress': { name: 'setDraftOrderShippingAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Order'; ofType: null; }; } }; 'setDraftOrderShippingMethod': { name: 'setDraftOrderShippingMethod'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'SetOrderShippingMethodResult'; ofType: null; }; } }; 'setOrderCustomFields': { name: 'setOrderCustomFields'; type: { kind: 'OBJECT'; name: 'Order'; ofType: null; } }; 'setOrderCustomer': { name: 'setOrderCustomer'; type: { kind: 'OBJECT'; name: 'Order'; ofType: null; } }; 'setSettingsStoreValue': { name: 'setSettingsStoreValue'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'SetSettingsStoreValueResult'; ofType: null; }; } }; 'setSettingsStoreValues': { name: 'setSettingsStoreValues'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'SetSettingsStoreValueResult'; ofType: null; }; }; }; } }; 'settlePayment': { name: 'settlePayment'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'SettlePaymentResult'; ofType: null; }; } }; 'settleRefund': { name: 'settleRefund'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'SettleRefundResult'; ofType: null; }; } }; 'transitionFulfillmentToState': { name: 'transitionFulfillmentToState'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'TransitionFulfillmentToStateResult'; ofType: null; }; } }; 'transitionOrderToState': { name: 'transitionOrderToState'; type: { kind: 'UNION'; name: 'TransitionOrderToStateResult'; ofType: null; } }; 'transitionPaymentToState': { name: 'transitionPaymentToState'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'TransitionPaymentToStateResult'; ofType: null; }; } }; 'unsetDraftOrderBillingAddress': { name: 'unsetDraftOrderBillingAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Order'; ofType: null; }; } }; 'unsetDraftOrderShippingAddress': { name: 'unsetDraftOrderShippingAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Order'; ofType: null; }; } }; 'updateActiveAdministrator': { name: 'updateActiveAdministrator'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Administrator'; ofType: null; }; } }; 'updateAdministrator': { name: 'updateAdministrator'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Administrator'; ofType: null; }; } }; 'updateApiKey': { name: 'updateApiKey'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ApiKey'; ofType: null; }; } }; 'updateAsset': { name: 'updateAsset'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Asset'; ofType: null; }; } }; 'updateChannel': { name: 'updateChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'UpdateChannelResult'; ofType: null; }; } }; 'updateCollection': { name: 'updateCollection'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Collection'; ofType: null; }; } }; 'updateCountry': { name: 'updateCountry'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Country'; ofType: null; }; } }; 'updateCustomer': { name: 'updateCustomer'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'UpdateCustomerResult'; ofType: null; }; } }; 'updateCustomerAddress': { name: 'updateCustomerAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Address'; ofType: null; }; } }; 'updateCustomerGroup': { name: 'updateCustomerGroup'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'CustomerGroup'; ofType: null; }; } }; 'updateCustomerNote': { name: 'updateCustomerNote'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'HistoryEntry'; ofType: null; }; } }; 'updateFacet': { name: 'updateFacet'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Facet'; ofType: null; }; } }; 'updateFacetValue': { name: 'updateFacetValue'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'FacetValue'; ofType: null; }; } }; 'updateFacetValues': { name: 'updateFacetValues'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'FacetValue'; ofType: null; }; }; }; } }; 'updateGlobalSettings': { name: 'updateGlobalSettings'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'UpdateGlobalSettingsResult'; ofType: null; }; } }; 'updateOrderNote': { name: 'updateOrderNote'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'HistoryEntry'; ofType: null; }; } }; 'updatePaymentMethod': { name: 'updatePaymentMethod'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaymentMethod'; ofType: null; }; } }; 'updateProduct': { name: 'updateProduct'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Product'; ofType: null; }; } }; 'updateProductOption': { name: 'updateProductOption'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ProductOption'; ofType: null; }; } }; 'updateProductOptionGroup': { name: 'updateProductOptionGroup'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ProductOptionGroup'; ofType: null; }; } }; 'updateProductVariant': { name: 'updateProductVariant'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ProductVariant'; ofType: null; }; } }; 'updateProductVariants': { name: 'updateProductVariants'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'OBJECT'; name: 'ProductVariant'; ofType: null; }; }; } }; 'updateProducts': { name: 'updateProducts'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Product'; ofType: null; }; }; }; } }; 'updatePromotion': { name: 'updatePromotion'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'UpdatePromotionResult'; ofType: null; }; } }; 'updateProvince': { name: 'updateProvince'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Province'; ofType: null; }; } }; 'updateRole': { name: 'updateRole'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Role'; ofType: null; }; } }; 'updateScheduledTask': { name: 'updateScheduledTask'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ScheduledTask'; ofType: null; }; } }; 'updateSeller': { name: 'updateSeller'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Seller'; ofType: null; }; } }; 'updateShippingMethod': { name: 'updateShippingMethod'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ShippingMethod'; ofType: null; }; } }; 'updateStockLocation': { name: 'updateStockLocation'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'StockLocation'; ofType: null; }; } }; 'updateTag': { name: 'updateTag'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Tag'; ofType: null; }; } }; 'updateTaxCategory': { name: 'updateTaxCategory'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'TaxCategory'; ofType: null; }; } }; 'updateTaxRate': { name: 'updateTaxRate'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'TaxRate'; ofType: null; }; } }; 'updateZone': { name: 'updateZone'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Zone'; ofType: null; }; } }; }; }; + 'Mutation': { kind: 'OBJECT'; name: 'Mutation'; fields: { 'addCustomersToGroup': { name: 'addCustomersToGroup'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'CustomerGroup'; ofType: null; }; } }; 'addFulfillmentToOrder': { name: 'addFulfillmentToOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'AddFulfillmentToOrderResult'; ofType: null; }; } }; 'addItemToDraftOrder': { name: 'addItemToDraftOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'UpdateOrderItemsResult'; ofType: null; }; } }; 'addManualPaymentToOrder': { name: 'addManualPaymentToOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'AddManualPaymentToOrderResult'; ofType: null; }; } }; 'addMembersToZone': { name: 'addMembersToZone'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Zone'; ofType: null; }; } }; 'addNoteToCustomer': { name: 'addNoteToCustomer'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Customer'; ofType: null; }; } }; 'addNoteToOrder': { name: 'addNoteToOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Order'; ofType: null; }; } }; 'addOptionGroupToProduct': { name: 'addOptionGroupToProduct'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Product'; ofType: null; }; } }; 'adjustDraftOrderLine': { name: 'adjustDraftOrderLine'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'UpdateOrderItemsResult'; ofType: null; }; } }; 'applyCouponCodeToDraftOrder': { name: 'applyCouponCodeToDraftOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'ApplyCouponCodeResult'; ofType: null; }; } }; 'assignAssetsToChannel': { name: 'assignAssetsToChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Asset'; ofType: null; }; }; }; } }; 'assignCollectionsToChannel': { name: 'assignCollectionsToChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Collection'; ofType: null; }; }; }; } }; 'assignFacetsToChannel': { name: 'assignFacetsToChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Facet'; ofType: null; }; }; }; } }; 'assignPaymentMethodsToChannel': { name: 'assignPaymentMethodsToChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaymentMethod'; ofType: null; }; }; }; } }; 'assignProductOptionGroupsToChannel': { name: 'assignProductOptionGroupsToChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ProductOptionGroup'; ofType: null; }; }; }; } }; 'assignProductVariantsToChannel': { name: 'assignProductVariantsToChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ProductVariant'; ofType: null; }; }; }; } }; 'assignProductsToChannel': { name: 'assignProductsToChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Product'; ofType: null; }; }; }; } }; 'assignPromotionsToChannel': { name: 'assignPromotionsToChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Promotion'; ofType: null; }; }; }; } }; 'assignRoleToAdministrator': { name: 'assignRoleToAdministrator'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Administrator'; ofType: null; }; } }; 'assignShippingMethodsToChannel': { name: 'assignShippingMethodsToChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ShippingMethod'; ofType: null; }; }; }; } }; 'assignStockLocationsToChannel': { name: 'assignStockLocationsToChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'StockLocation'; ofType: null; }; }; }; } }; 'authenticate': { name: 'authenticate'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'AuthenticationResult'; ofType: null; }; } }; 'cancelJob': { name: 'cancelJob'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Job'; ofType: null; }; } }; 'cancelOrder': { name: 'cancelOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CancelOrderResult'; ofType: null; }; } }; 'cancelPayment': { name: 'cancelPayment'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CancelPaymentResult'; ofType: null; }; } }; 'createAdministrator': { name: 'createAdministrator'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Administrator'; ofType: null; }; } }; 'createApiKey': { name: 'createApiKey'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'CreateApiKeyResult'; ofType: null; }; } }; 'createAssets': { name: 'createAssets'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CreateAssetResult'; ofType: null; }; }; }; } }; 'createChannel': { name: 'createChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CreateChannelResult'; ofType: null; }; } }; 'createCollection': { name: 'createCollection'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Collection'; ofType: null; }; } }; 'createCountry': { name: 'createCountry'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Country'; ofType: null; }; } }; 'createCustomer': { name: 'createCustomer'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CreateCustomerResult'; ofType: null; }; } }; 'createCustomerAddress': { name: 'createCustomerAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Address'; ofType: null; }; } }; 'createCustomerGroup': { name: 'createCustomerGroup'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'CustomerGroup'; ofType: null; }; } }; 'createDraftOrder': { name: 'createDraftOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Order'; ofType: null; }; } }; 'createFacet': { name: 'createFacet'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Facet'; ofType: null; }; } }; 'createFacetValue': { name: 'createFacetValue'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'FacetValue'; ofType: null; }; } }; 'createFacetValues': { name: 'createFacetValues'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'FacetValue'; ofType: null; }; }; }; } }; 'createPaymentMethod': { name: 'createPaymentMethod'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaymentMethod'; ofType: null; }; } }; 'createProduct': { name: 'createProduct'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Product'; ofType: null; }; } }; 'createProductOption': { name: 'createProductOption'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ProductOption'; ofType: null; }; } }; 'createProductOptionGroup': { name: 'createProductOptionGroup'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ProductOptionGroup'; ofType: null; }; } }; 'createProductVariants': { name: 'createProductVariants'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'OBJECT'; name: 'ProductVariant'; ofType: null; }; }; } }; 'createPromotion': { name: 'createPromotion'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'CreatePromotionResult'; ofType: null; }; } }; 'createProvince': { name: 'createProvince'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Province'; ofType: null; }; } }; 'createRole': { name: 'createRole'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Role'; ofType: null; }; } }; 'createSeller': { name: 'createSeller'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Seller'; ofType: null; }; } }; 'createShippingMethod': { name: 'createShippingMethod'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ShippingMethod'; ofType: null; }; } }; 'createStockLocation': { name: 'createStockLocation'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'StockLocation'; ofType: null; }; } }; 'createTag': { name: 'createTag'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Tag'; ofType: null; }; } }; 'createTaxCategory': { name: 'createTaxCategory'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'TaxCategory'; ofType: null; }; } }; 'createTaxRate': { name: 'createTaxRate'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'TaxRate'; ofType: null; }; } }; 'createZone': { name: 'createZone'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Zone'; ofType: null; }; } }; 'deleteAdministrator': { name: 'deleteAdministrator'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteAdministrators': { name: 'deleteAdministrators'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteApiKeys': { name: 'deleteApiKeys'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteAsset': { name: 'deleteAsset'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteAssets': { name: 'deleteAssets'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteChannel': { name: 'deleteChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteChannels': { name: 'deleteChannels'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteCollection': { name: 'deleteCollection'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteCollections': { name: 'deleteCollections'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteCountries': { name: 'deleteCountries'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteCountry': { name: 'deleteCountry'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteCustomer': { name: 'deleteCustomer'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteCustomerAddress': { name: 'deleteCustomerAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Success'; ofType: null; }; } }; 'deleteCustomerGroup': { name: 'deleteCustomerGroup'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteCustomerGroups': { name: 'deleteCustomerGroups'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteCustomerNote': { name: 'deleteCustomerNote'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteCustomers': { name: 'deleteCustomers'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteDraftOrder': { name: 'deleteDraftOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteFacet': { name: 'deleteFacet'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteFacetValues': { name: 'deleteFacetValues'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteFacets': { name: 'deleteFacets'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteOrderNote': { name: 'deleteOrderNote'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deletePaymentMethod': { name: 'deletePaymentMethod'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deletePaymentMethods': { name: 'deletePaymentMethods'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteProduct': { name: 'deleteProduct'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteProductOption': { name: 'deleteProductOption'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteProductOptionGroup': { name: 'deleteProductOptionGroup'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteProductOptionGroups': { name: 'deleteProductOptionGroups'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteProductVariant': { name: 'deleteProductVariant'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteProductVariants': { name: 'deleteProductVariants'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteProducts': { name: 'deleteProducts'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deletePromotion': { name: 'deletePromotion'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deletePromotions': { name: 'deletePromotions'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteProvince': { name: 'deleteProvince'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteRole': { name: 'deleteRole'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteRoles': { name: 'deleteRoles'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteSeller': { name: 'deleteSeller'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteSellers': { name: 'deleteSellers'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteShippingMethod': { name: 'deleteShippingMethod'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteShippingMethods': { name: 'deleteShippingMethods'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteStockLocation': { name: 'deleteStockLocation'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteStockLocations': { name: 'deleteStockLocations'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteTag': { name: 'deleteTag'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteTaxCategories': { name: 'deleteTaxCategories'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteTaxCategory': { name: 'deleteTaxCategory'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteTaxRate': { name: 'deleteTaxRate'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteTaxRates': { name: 'deleteTaxRates'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'deleteZone': { name: 'deleteZone'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; } }; 'deleteZones': { name: 'deleteZones'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'DeletionResponse'; ofType: null; }; }; }; } }; 'duplicateEntity': { name: 'duplicateEntity'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'DuplicateEntityResult'; ofType: null; }; } }; 'flushBufferedJobs': { name: 'flushBufferedJobs'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Success'; ofType: null; }; } }; 'importProducts': { name: 'importProducts'; type: { kind: 'OBJECT'; name: 'ImportInfo'; ofType: null; } }; 'login': { name: 'login'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'NativeAuthenticationResult'; ofType: null; }; } }; 'logout': { name: 'logout'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Success'; ofType: null; }; } }; 'modifyOrder': { name: 'modifyOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'ModifyOrderResult'; ofType: null; }; } }; 'moveCollection': { name: 'moveCollection'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Collection'; ofType: null; }; } }; 'refundOrder': { name: 'refundOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'RefundOrderResult'; ofType: null; }; } }; 'reindex': { name: 'reindex'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Job'; ofType: null; }; } }; 'removeCollectionsFromChannel': { name: 'removeCollectionsFromChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Collection'; ofType: null; }; }; }; } }; 'removeCouponCodeFromDraftOrder': { name: 'removeCouponCodeFromDraftOrder'; type: { kind: 'OBJECT'; name: 'Order'; ofType: null; } }; 'removeCustomersFromGroup': { name: 'removeCustomersFromGroup'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'CustomerGroup'; ofType: null; }; } }; 'removeDraftOrderLine': { name: 'removeDraftOrderLine'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'RemoveOrderItemsResult'; ofType: null; }; } }; 'removeFacetsFromChannel': { name: 'removeFacetsFromChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'RemoveFacetFromChannelResult'; ofType: null; }; }; }; } }; 'removeMembersFromZone': { name: 'removeMembersFromZone'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Zone'; ofType: null; }; } }; 'removeOptionGroupFromProduct': { name: 'removeOptionGroupFromProduct'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'RemoveOptionGroupFromProductResult'; ofType: null; }; } }; 'removePaymentMethodsFromChannel': { name: 'removePaymentMethodsFromChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaymentMethod'; ofType: null; }; }; }; } }; 'removeProductOptionGroupsFromChannel': { name: 'removeProductOptionGroupsFromChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'RemoveProductOptionGroupFromChannelResult'; ofType: null; }; }; }; } }; 'removeProductVariantsFromChannel': { name: 'removeProductVariantsFromChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ProductVariant'; ofType: null; }; }; }; } }; 'removeProductsFromChannel': { name: 'removeProductsFromChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Product'; ofType: null; }; }; }; } }; 'removePromotionsFromChannel': { name: 'removePromotionsFromChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Promotion'; ofType: null; }; }; }; } }; 'removeSettledJobs': { name: 'removeSettledJobs'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Int'; ofType: null; }; } }; 'removeShippingMethodsFromChannel': { name: 'removeShippingMethodsFromChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ShippingMethod'; ofType: null; }; }; }; } }; 'removeStockLocationsFromChannel': { name: 'removeStockLocationsFromChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'StockLocation'; ofType: null; }; }; }; } }; 'resetCustomerPasswordAsAdmin': { name: 'resetCustomerPasswordAsAdmin'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'ResetCustomerPasswordAsAdminResult'; ofType: null; }; } }; 'rotateApiKey': { name: 'rotateApiKey'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'RotateApiKeyResult'; ofType: null; }; } }; 'runPendingSearchIndexUpdates': { name: 'runPendingSearchIndexUpdates'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Success'; ofType: null; }; } }; 'runScheduledTask': { name: 'runScheduledTask'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Success'; ofType: null; }; } }; 'setCustomerForDraftOrder': { name: 'setCustomerForDraftOrder'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'SetCustomerForDraftOrderResult'; ofType: null; }; } }; 'setDraftOrderBillingAddress': { name: 'setDraftOrderBillingAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Order'; ofType: null; }; } }; 'setDraftOrderCustomFields': { name: 'setDraftOrderCustomFields'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Order'; ofType: null; }; } }; 'setDraftOrderShippingAddress': { name: 'setDraftOrderShippingAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Order'; ofType: null; }; } }; 'setDraftOrderShippingMethod': { name: 'setDraftOrderShippingMethod'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'SetOrderShippingMethodResult'; ofType: null; }; } }; 'setOrderCustomFields': { name: 'setOrderCustomFields'; type: { kind: 'OBJECT'; name: 'Order'; ofType: null; } }; 'setOrderCustomer': { name: 'setOrderCustomer'; type: { kind: 'OBJECT'; name: 'Order'; ofType: null; } }; 'setSettingsStoreValue': { name: 'setSettingsStoreValue'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'SetSettingsStoreValueResult'; ofType: null; }; } }; 'setSettingsStoreValues': { name: 'setSettingsStoreValues'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'SetSettingsStoreValueResult'; ofType: null; }; }; }; } }; 'settlePayment': { name: 'settlePayment'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'SettlePaymentResult'; ofType: null; }; } }; 'settleRefund': { name: 'settleRefund'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'SettleRefundResult'; ofType: null; }; } }; 'transitionFulfillmentToState': { name: 'transitionFulfillmentToState'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'TransitionFulfillmentToStateResult'; ofType: null; }; } }; 'transitionOrderToState': { name: 'transitionOrderToState'; type: { kind: 'UNION'; name: 'TransitionOrderToStateResult'; ofType: null; } }; 'transitionPaymentToState': { name: 'transitionPaymentToState'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'TransitionPaymentToStateResult'; ofType: null; }; } }; 'unsetDraftOrderBillingAddress': { name: 'unsetDraftOrderBillingAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Order'; ofType: null; }; } }; 'unsetDraftOrderShippingAddress': { name: 'unsetDraftOrderShippingAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Order'; ofType: null; }; } }; 'updateActiveAdministrator': { name: 'updateActiveAdministrator'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Administrator'; ofType: null; }; } }; 'updateAdministrator': { name: 'updateAdministrator'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Administrator'; ofType: null; }; } }; 'updateApiKey': { name: 'updateApiKey'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ApiKey'; ofType: null; }; } }; 'updateAsset': { name: 'updateAsset'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Asset'; ofType: null; }; } }; 'updateChannel': { name: 'updateChannel'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'UpdateChannelResult'; ofType: null; }; } }; 'updateCollection': { name: 'updateCollection'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Collection'; ofType: null; }; } }; 'updateCountry': { name: 'updateCountry'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Country'; ofType: null; }; } }; 'updateCustomer': { name: 'updateCustomer'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'UpdateCustomerResult'; ofType: null; }; } }; 'updateCustomerAddress': { name: 'updateCustomerAddress'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Address'; ofType: null; }; } }; 'updateCustomerGroup': { name: 'updateCustomerGroup'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'CustomerGroup'; ofType: null; }; } }; 'updateCustomerNote': { name: 'updateCustomerNote'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'HistoryEntry'; ofType: null; }; } }; 'updateFacet': { name: 'updateFacet'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Facet'; ofType: null; }; } }; 'updateFacetValue': { name: 'updateFacetValue'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'FacetValue'; ofType: null; }; } }; 'updateFacetValues': { name: 'updateFacetValues'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'FacetValue'; ofType: null; }; }; }; } }; 'updateGlobalSettings': { name: 'updateGlobalSettings'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'UpdateGlobalSettingsResult'; ofType: null; }; } }; 'updateOrderNote': { name: 'updateOrderNote'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'HistoryEntry'; ofType: null; }; } }; 'updatePaymentMethod': { name: 'updatePaymentMethod'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'PaymentMethod'; ofType: null; }; } }; 'updateProduct': { name: 'updateProduct'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Product'; ofType: null; }; } }; 'updateProductOption': { name: 'updateProductOption'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ProductOption'; ofType: null; }; } }; 'updateProductOptionGroup': { name: 'updateProductOptionGroup'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ProductOptionGroup'; ofType: null; }; } }; 'updateProductVariant': { name: 'updateProductVariant'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ProductVariant'; ofType: null; }; } }; 'updateProductVariants': { name: 'updateProductVariants'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'OBJECT'; name: 'ProductVariant'; ofType: null; }; }; } }; 'updateProducts': { name: 'updateProducts'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Product'; ofType: null; }; }; }; } }; 'updatePromotion': { name: 'updatePromotion'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'UpdatePromotionResult'; ofType: null; }; } }; 'updateProvince': { name: 'updateProvince'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Province'; ofType: null; }; } }; 'updateRole': { name: 'updateRole'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Role'; ofType: null; }; } }; 'updateScheduledTask': { name: 'updateScheduledTask'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ScheduledTask'; ofType: null; }; } }; 'updateSeller': { name: 'updateSeller'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Seller'; ofType: null; }; } }; 'updateShippingMethod': { name: 'updateShippingMethod'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ShippingMethod'; ofType: null; }; } }; 'updateStockLocation': { name: 'updateStockLocation'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'StockLocation'; ofType: null; }; } }; 'updateTag': { name: 'updateTag'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Tag'; ofType: null; }; } }; 'updateTaxCategory': { name: 'updateTaxCategory'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'TaxCategory'; ofType: null; }; } }; 'updateTaxRate': { name: 'updateTaxRate'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'TaxRate'; ofType: null; }; } }; 'updateZone': { name: 'updateZone'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Zone'; ofType: null; }; } }; 'verifyCustomerAccountAsAdmin': { name: 'verifyCustomerAccountAsAdmin'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'UNION'; name: 'VerifyCustomerAccountAsAdminResult'; ofType: null; }; } }; }; }; 'NativeAuthInput': { kind: 'INPUT_OBJECT'; name: 'NativeAuthInput'; isOneOf: false; inputFields: [{ name: 'username'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; }; defaultValue: null }, { name: 'password'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; }; defaultValue: null }]; }; 'NativeAuthStrategyError': { kind: 'OBJECT'; name: 'NativeAuthStrategyError'; fields: { 'errorCode': { name: 'errorCode'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'ErrorCode'; ofType: null; }; } }; 'message': { name: 'message'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; }; }; 'NativeAuthenticationResult': { kind: 'UNION'; name: 'NativeAuthenticationResult'; fields: {}; possibleTypes: 'CurrentUser' | 'InvalidCredentialsError' | 'NativeAuthStrategyError'; }; @@ -361,6 +363,7 @@ export type introspection_types = { 'RemovePromotionsFromChannelInput': { kind: 'INPUT_OBJECT'; name: 'RemovePromotionsFromChannelInput'; isOneOf: false; inputFields: [{ name: 'promotionIds'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ID'; ofType: null; }; }; }; }; defaultValue: null }, { name: 'channelId'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ID'; ofType: null; }; }; defaultValue: null }]; }; 'RemoveShippingMethodsFromChannelInput': { kind: 'INPUT_OBJECT'; name: 'RemoveShippingMethodsFromChannelInput'; isOneOf: false; inputFields: [{ name: 'shippingMethodIds'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ID'; ofType: null; }; }; }; }; defaultValue: null }, { name: 'channelId'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ID'; ofType: null; }; }; defaultValue: null }]; }; 'RemoveStockLocationsFromChannelInput': { kind: 'INPUT_OBJECT'; name: 'RemoveStockLocationsFromChannelInput'; isOneOf: false; inputFields: [{ name: 'stockLocationIds'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ID'; ofType: null; }; }; }; }; defaultValue: null }, { name: 'channelId'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ID'; ofType: null; }; }; defaultValue: null }]; }; + 'ResetCustomerPasswordAsAdminResult': { kind: 'UNION'; name: 'ResetCustomerPasswordAsAdminResult'; fields: {}; possibleTypes: 'CustomerAccountStateError' | 'Success'; }; 'Return': { kind: 'OBJECT'; name: 'Return'; fields: { 'createdAt': { name: 'createdAt'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; 'customFields': { name: 'customFields'; type: { kind: 'SCALAR'; name: 'JSON'; ofType: null; } }; 'id': { name: 'id'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ID'; ofType: null; }; } }; 'productVariant': { name: 'productVariant'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'ProductVariant'; ofType: null; }; } }; 'quantity': { name: 'quantity'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Int'; ofType: null; }; } }; 'type': { name: 'type'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'StockMovementType'; ofType: null; }; } }; 'updatedAt': { name: 'updatedAt'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; }; }; 'Role': { kind: 'OBJECT'; name: 'Role'; fields: { 'channels': { name: 'channels'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Channel'; ofType: null; }; }; }; } }; 'code': { name: 'code'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'createdAt': { name: 'createdAt'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; 'description': { name: 'description'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'id': { name: 'id'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ID'; ofType: null; }; } }; 'permissions': { name: 'permissions'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'ENUM'; name: 'Permission'; ofType: null; }; }; }; } }; 'updatedAt': { name: 'updatedAt'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; }; }; 'RoleFilterParameter': { kind: 'INPUT_OBJECT'; name: 'RoleFilterParameter'; isOneOf: false; inputFields: [{ name: 'id'; type: { kind: 'INPUT_OBJECT'; name: 'IDOperators'; ofType: null; }; defaultValue: null }, { name: 'createdAt'; type: { kind: 'INPUT_OBJECT'; name: 'DateOperators'; ofType: null; }; defaultValue: null }, { name: 'updatedAt'; type: { kind: 'INPUT_OBJECT'; name: 'DateOperators'; ofType: null; }; defaultValue: null }, { name: 'code'; type: { kind: 'INPUT_OBJECT'; name: 'StringOperators'; ofType: null; }; defaultValue: null }, { name: 'description'; type: { kind: 'INPUT_OBJECT'; name: 'StringOperators'; ofType: null; }; defaultValue: null }, { name: '_and'; type: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'INPUT_OBJECT'; name: 'RoleFilterParameter'; ofType: null; }; }; }; defaultValue: null }, { name: '_or'; type: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'INPUT_OBJECT'; name: 'RoleFilterParameter'; ofType: null; }; }; }; defaultValue: null }]; }; @@ -501,6 +504,7 @@ export type introspection_types = { 'UpdateZoneInput': { kind: 'INPUT_OBJECT'; name: 'UpdateZoneInput'; isOneOf: false; inputFields: [{ name: 'id'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ID'; ofType: null; }; }; defaultValue: null }, { name: 'name'; type: { kind: 'SCALAR'; name: 'String'; ofType: null; }; defaultValue: null }, { name: 'customFields'; type: { kind: 'SCALAR'; name: 'JSON'; ofType: null; }; defaultValue: null }]; }; 'Upload': unknown; 'User': { kind: 'OBJECT'; name: 'User'; fields: { 'authenticationMethods': { name: 'authenticationMethods'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'AuthenticationMethod'; ofType: null; }; }; }; } }; 'createdAt': { name: 'createdAt'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; 'customFields': { name: 'customFields'; type: { kind: 'SCALAR'; name: 'JSON'; ofType: null; } }; 'id': { name: 'id'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ID'; ofType: null; }; } }; 'identifier': { name: 'identifier'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'lastLogin': { name: 'lastLogin'; type: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; } }; 'roles': { name: 'roles'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Role'; ofType: null; }; }; }; } }; 'updatedAt': { name: 'updatedAt'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; 'verified': { name: 'verified'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Boolean'; ofType: null; }; } }; }; }; + 'VerifyCustomerAccountAsAdminResult': { kind: 'UNION'; name: 'VerifyCustomerAccountAsAdminResult'; fields: {}; possibleTypes: 'AdminGeneratedPassword' | 'CustomerAccountStateError'; }; 'Zone': { kind: 'OBJECT'; name: 'Zone'; fields: { 'createdAt': { name: 'createdAt'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; 'customFields': { name: 'customFields'; type: { kind: 'SCALAR'; name: 'JSON'; ofType: null; } }; 'id': { name: 'id'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'ID'; ofType: null; }; } }; 'members': { name: 'members'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'INTERFACE'; name: 'Region'; ofType: null; }; }; }; } }; 'name': { name: 'name'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'String'; ofType: null; }; } }; 'updatedAt': { name: 'updatedAt'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'DateTime'; ofType: null; }; } }; }; }; 'ZoneFilterParameter': { kind: 'INPUT_OBJECT'; name: 'ZoneFilterParameter'; isOneOf: false; inputFields: [{ name: 'id'; type: { kind: 'INPUT_OBJECT'; name: 'IDOperators'; ofType: null; }; defaultValue: null }, { name: 'createdAt'; type: { kind: 'INPUT_OBJECT'; name: 'DateOperators'; ofType: null; }; defaultValue: null }, { name: 'updatedAt'; type: { kind: 'INPUT_OBJECT'; name: 'DateOperators'; ofType: null; }; defaultValue: null }, { name: 'name'; type: { kind: 'INPUT_OBJECT'; name: 'StringOperators'; ofType: null; }; defaultValue: null }, { name: '_and'; type: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'INPUT_OBJECT'; name: 'ZoneFilterParameter'; ofType: null; }; }; }; defaultValue: null }, { name: '_or'; type: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'INPUT_OBJECT'; name: 'ZoneFilterParameter'; ofType: null; }; }; }; defaultValue: null }]; }; 'ZoneList': { kind: 'OBJECT'; name: 'ZoneList'; fields: { 'items': { name: 'items'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'LIST'; name: never; ofType: { kind: 'NON_NULL'; name: never; ofType: { kind: 'OBJECT'; name: 'Zone'; ofType: null; }; }; }; } }; 'totalItems': { name: 'totalItems'; type: { kind: 'NON_NULL'; name: never; ofType: { kind: 'SCALAR'; name: 'Int'; ofType: null; }; } }; }; }; @@ -517,17 +521,17 @@ export type introspection_types = { * instead save to a .ts instead of a .d.ts file. */ export type introspection = { - name: never; - query: 'Query'; - mutation: 'Mutation'; - subscription: never; - types: introspection_types; + name: never; + query: 'Query'; + mutation: 'Mutation'; + subscription: never; + types: introspection_types; }; -import 'gql.tada'; +import * as gqlTada from 'gql.tada'; declare module 'gql.tada' { - interface setupSchema { - introspection: introspection; - } -} + interface setupSchema { + introspection: introspection + } +} \ No newline at end of file diff --git a/packages/core/e2e/graphql/graphql-env-shop.d.ts b/packages/core/e2e/graphql/graphql-env-shop.d.ts index 8e694a90a9..0b225213f7 100644 --- a/packages/core/e2e/graphql/graphql-env-shop.d.ts +++ b/packages/core/e2e/graphql/graphql-env-shop.d.ts @@ -254,17 +254,17 @@ export type introspection_types = { * instead save to a .ts instead of a .d.ts file. */ export type introspection = { - name: never; - query: 'Query'; - mutation: 'Mutation'; - subscription: never; - types: introspection_types; + name: never; + query: 'Query'; + mutation: 'Mutation'; + subscription: never; + types: introspection_types; }; -import 'gql.tada'; +import * as gqlTada from 'gql.tada'; declare module 'gql.tada' { - interface setupSchema { - introspection: introspection; - } -} + interface setupSchema { + introspection: introspection + } +} \ No newline at end of file diff --git a/packages/core/e2e/graphql/graphql-shop.ts b/packages/core/e2e/graphql/graphql-shop.ts index 91c9f80d19..0e8843280f 100644 --- a/packages/core/e2e/graphql/graphql-shop.ts +++ b/packages/core/e2e/graphql/graphql-shop.ts @@ -1,5 +1,5 @@ -import { initGraphQLTada } from 'gql.tada'; import type { introspection } from './graphql-env-shop.d.ts'; +import { initGraphQLTada } from 'gql.tada'; export const graphql = initGraphQLTada<{ disableMasking: true; @@ -11,5 +11,5 @@ export const graphql = initGraphQLTada<{ }; }>(); -export { readFragment } from 'gql.tada'; export type { FragmentOf, ResultOf, VariablesOf } from 'gql.tada'; +export { readFragment } from 'gql.tada'; diff --git a/packages/core/src/api/resolvers/admin/customer.resolver.ts b/packages/core/src/api/resolvers/admin/customer.resolver.ts index 66b2f28d00..bb551939c5 100644 --- a/packages/core/src/api/resolvers/admin/customer.resolver.ts +++ b/packages/core/src/api/resolvers/admin/customer.resolver.ts @@ -9,14 +9,18 @@ import { MutationDeleteCustomerArgs, MutationDeleteCustomerNoteArgs, MutationDeleteCustomersArgs, + MutationResetCustomerPasswordAsAdminArgs, MutationUpdateCustomerAddressArgs, MutationUpdateCustomerArgs, MutationUpdateCustomerNoteArgs, + MutationVerifyCustomerAccountAsAdminArgs, Permission, QueryCustomerArgs, QueryCustomersArgs, + ResetCustomerPasswordAsAdminResult, Success, UpdateCustomerResult, + VerifyCustomerAccountAsAdminResult, } from '@vendure/common/lib/generated-types'; import { PaginatedList } from '@vendure/common/lib/shared-types'; @@ -163,4 +167,24 @@ export class CustomerResolver { async deleteCustomerNote(@Ctx() ctx: RequestContext, @Args() args: MutationDeleteCustomerNoteArgs) { return this.customerService.deleteCustomerNote(ctx, args.id); } + + @Transaction() + @Mutation() + @Allow(Permission.UpdateCustomer) + async verifyCustomerAccountAsAdmin( + @Ctx() ctx: RequestContext, + @Args() args: MutationVerifyCustomerAccountAsAdminArgs, + ): Promise { + return this.customerService.verifyCustomerAccountAsAdmin(ctx, args.customerId); + } + + @Transaction() + @Mutation() + @Allow(Permission.UpdateCustomer) + async resetCustomerPasswordAsAdmin( + @Ctx() ctx: RequestContext, + @Args() args: MutationResetCustomerPasswordAsAdminArgs, + ): Promise { + return this.customerService.resetCustomerPasswordAsAdmin(ctx, args.customerId); + } } diff --git a/packages/core/src/api/schema/admin-api/customer.api.graphql b/packages/core/src/api/schema/admin-api/customer.api.graphql index be869e57d2..88299add75 100644 --- a/packages/core/src/api/schema/admin-api/customer.api.graphql +++ b/packages/core/src/api/schema/admin-api/customer.api.graphql @@ -28,6 +28,21 @@ type Mutation { addNoteToCustomer(input: AddNoteToCustomerInput!): Customer! updateCustomerNote(input: UpdateCustomerNoteInput!): HistoryEntry! deleteCustomerNote(id: ID!): DeletionResponse! + + """ + Completes the email verification step of a registered Customer with a randomly generated + password. Returns the generated password so the administrator can communicate it to the + customer. Intended for situations where the customer never confirmed the verification email. + """ + verifyCustomerAccountAsAdmin(customerId: ID!): VerifyCustomerAccountAsAdminResult! + + """ + Triggers the standard password-reset email flow for a verified Customer, on behalf of an + administrator. Equivalent to the Customer calling `requestPasswordReset` from the Shop API: + a reset token is issued and a `PasswordResetEvent` is published so the configured email + handler can send the customer a reset link. + """ + resetCustomerPasswordAsAdmin(customerId: ID!): ResetCustomerPasswordAsAdminResult! } input UpdateCustomerInput { @@ -46,7 +61,6 @@ input CustomerFilterParameter { # generated by generateListOptions function input CustomerListOptions - input AddNoteToCustomerInput { id: ID! note: String! @@ -61,3 +75,25 @@ input UpdateCustomerNoteInput { union CreateCustomerResult = Customer | EmailAddressConflictError union UpdateCustomerResult = Customer | EmailAddressConflictError +""" +Returned by `verifyCustomerAccountAsAdmin` to expose the randomly generated password to the +administrator. The cleartext password is included in the response only once and is not persisted +anywhere else; the administrator is responsible for securely transmitting it to the customer. +""" +type AdminGeneratedPassword { + password: String! +} + +""" +Returned when an administrator action requires the Customer to be in a specific account state +(e.g. trying to reset the password of a guest or registered customer, or trying to manually +verify a customer that is already verified or has no User). +""" +type CustomerAccountStateError implements ErrorResult { + errorCode: ErrorCode! + message: String! + accountState: String! +} + +union VerifyCustomerAccountAsAdminResult = AdminGeneratedPassword | CustomerAccountStateError +union ResetCustomerPasswordAsAdminResult = Success | CustomerAccountStateError diff --git a/packages/core/src/common/error/generated-graphql-admin-errors.ts b/packages/core/src/common/error/generated-graphql-admin-errors.ts index 8ba3fd1eb6..ff75157b7a 100644 --- a/packages/core/src/common/error/generated-graphql-admin-errors.ts +++ b/packages/core/src/common/error/generated-graphql-admin-errors.ts @@ -127,6 +127,19 @@ export class CreateFulfillmentError extends ErrorResult { } } +export class CustomerAccountStateError extends ErrorResult { + readonly __typename = 'CustomerAccountStateError'; + readonly errorCode = 'CUSTOMER_ACCOUNT_STATE_ERROR' as any; + readonly message = 'CUSTOMER_ACCOUNT_STATE_ERROR'; + readonly accountState: Scalars['String']; + constructor( + input: { accountState: Scalars['String'] } + ) { + super(); + this.accountState = input.accountState + } +} + export class DuplicateEntityError extends ErrorResult { readonly __typename = 'DuplicateEntityError'; readonly errorCode = 'DUPLICATE_ENTITY_ERROR' as any; @@ -618,7 +631,7 @@ export class SettlePaymentError extends ErrorResult { } -const errorTypeNames = new Set(['AlreadyRefundedError', 'CancelActiveOrderError', 'CancelPaymentError', 'ChannelDefaultLanguageError', 'CouponCodeExpiredError', 'CouponCodeInvalidError', 'CouponCodeLimitError', 'CreateFulfillmentError', 'DuplicateEntityError', 'EmailAddressConflictError', 'EmptyOrderLineSelectionError', 'FacetInUseError', 'FulfillmentStateTransitionError', 'GuestCheckoutError', 'IneligibleShippingMethodError', 'InsufficientStockError', 'InsufficientStockOnHandError', 'InvalidCredentialsError', 'InvalidFulfillmentHandlerError', 'ItemsAlreadyFulfilledError', 'LanguageNotAvailableError', 'ManualPaymentStateError', 'MimeTypeError', 'MissingConditionsError', 'MultipleOrderError', 'NativeAuthStrategyError', 'NegativeQuantityError', 'NoActiveOrderError', 'NoChangesSpecifiedError', 'NothingToRefundError', 'OrderInterceptorError', 'OrderLimitError', 'OrderModificationError', 'OrderModificationStateError', 'OrderStateTransitionError', 'PaymentMethodMissingError', 'PaymentOrderMismatchError', 'PaymentStateTransitionError', 'ProductOptionGroupInUseError', 'ProductOptionInUseError', 'QuantityTooGreatError', 'RefundAmountError', 'RefundOrderStateError', 'RefundPaymentIdMissingError', 'RefundStateTransitionError', 'SettlePaymentError']); +const errorTypeNames = new Set(['AlreadyRefundedError', 'CancelActiveOrderError', 'CancelPaymentError', 'ChannelDefaultLanguageError', 'CouponCodeExpiredError', 'CouponCodeInvalidError', 'CouponCodeLimitError', 'CreateFulfillmentError', 'CustomerAccountStateError', 'DuplicateEntityError', 'EmailAddressConflictError', 'EmptyOrderLineSelectionError', 'FacetInUseError', 'FulfillmentStateTransitionError', 'GuestCheckoutError', 'IneligibleShippingMethodError', 'InsufficientStockError', 'InsufficientStockOnHandError', 'InvalidCredentialsError', 'InvalidFulfillmentHandlerError', 'ItemsAlreadyFulfilledError', 'LanguageNotAvailableError', 'ManualPaymentStateError', 'MimeTypeError', 'MissingConditionsError', 'MultipleOrderError', 'NativeAuthStrategyError', 'NegativeQuantityError', 'NoActiveOrderError', 'NoChangesSpecifiedError', 'NothingToRefundError', 'OrderInterceptorError', 'OrderLimitError', 'OrderModificationError', 'OrderModificationStateError', 'OrderStateTransitionError', 'PaymentMethodMissingError', 'PaymentOrderMismatchError', 'PaymentStateTransitionError', 'ProductOptionGroupInUseError', 'ProductOptionInUseError', 'QuantityTooGreatError', 'RefundAmountError', 'RefundOrderStateError', 'RefundPaymentIdMissingError', 'RefundStateTransitionError', 'SettlePaymentError']); function isGraphQLError(input: any): input is import('@vendure/common/lib/generated-types').ErrorResult { return input instanceof ErrorResult || errorTypeNames.has(input.__typename); } @@ -719,6 +732,11 @@ export const adminErrorOperationTypeResolvers = { return isGraphQLError(value) ? (value as any).__typename : 'ProductOptionGroup'; }, }, + ResetCustomerPasswordAsAdminResult: { + __resolveType(value: any) { + return isGraphQLError(value) ? (value as any).__typename : 'Success'; + }, + }, SetCustomerForDraftOrderResult: { __resolveType(value: any) { return isGraphQLError(value) ? (value as any).__typename : 'Order'; @@ -774,4 +792,9 @@ export const adminErrorOperationTypeResolvers = { return isGraphQLError(value) ? (value as any).__typename : 'Promotion'; }, }, + VerifyCustomerAccountAsAdminResult: { + __resolveType(value: any) { + return isGraphQLError(value) ? (value as any).__typename : 'AdminGeneratedPassword'; + }, + }, }; \ No newline at end of file diff --git a/packages/core/src/service/services/customer.service.ts b/packages/core/src/service/services/customer.service.ts index 462f03500c..6461bc98d3 100644 --- a/packages/core/src/service/services/customer.service.ts +++ b/packages/core/src/service/services/customer.service.ts @@ -21,13 +21,17 @@ import { UpdateCustomerResult, } from '@vendure/common/lib/generated-types'; import { ID, PaginatedList } from '@vendure/common/lib/shared-types'; +import { randomInt } from 'crypto'; import { IsNull } from 'typeorm'; import { RequestContext } from '../../api/common/request-context'; import { RelationPaths } from '../../api/decorators/relations.decorator'; import { ErrorResultUnion, isGraphQlErrorResult } from '../../common/error/error-result'; import { EntityNotFoundError, InternalServerError } from '../../common/error/errors'; -import { EmailAddressConflictError as EmailAddressConflictAdminError } from '../../common/error/generated-graphql-admin-errors'; +import { + CustomerAccountStateError, + EmailAddressConflictError as EmailAddressConflictAdminError, +} from '../../common/error/generated-graphql-admin-errors'; import { EmailAddressConflictError, IdentifierChangeTokenExpiredError, @@ -62,6 +66,7 @@ import { PasswordResetEvent } from '../../event-bus/events/password-reset-event' import { PasswordResetVerifiedEvent } from '../../event-bus/events/password-reset-verified-event'; import { CustomFieldRelationService } from '../helpers/custom-field-relation/custom-field-relation.service'; import { ListQueryBuilder } from '../helpers/list-query-builder/list-query-builder'; +import { RequestContextService } from '../helpers/request-context/request-context.service'; import { TranslatorService } from '../helpers/translator/translator.service'; import { addressToLine } from '../helpers/utils/address-to-line'; import { patchEntity } from '../helpers/utils/patch-entity'; @@ -90,6 +95,7 @@ export class CustomerService { private historyService: HistoryService, private channelService: ChannelService, private customFieldRelationService: CustomFieldRelationService, + private requestContextService: RequestContextService, private translator: TranslatorService, ) {} @@ -563,6 +569,103 @@ export class CustomerService { return result; } + /** + * @description + * Administrator-driven counterpart to the storefront `requestPasswordReset` mutation: for a + * verified Customer, issues a password-reset token and publishes a {@link PasswordResetEvent} + * so the configured email handler can send the customer a reset link. No password is generated + * or returned — the customer chooses their new password through the standard reset flow. + */ + async resetCustomerPasswordAsAdmin( + ctx: RequestContext, + customerId: ID, + ): Promise<{ success: boolean } | CustomerAccountStateError> { + const customer = await this.findOne(ctx, customerId, ['user']); + if (!customer) { + throw new EntityNotFoundError('Customer', customerId); + } + if (!customer.user) { + return new CustomerAccountStateError({ accountState: 'guest' }); + } + if (!customer.user.verified) { + return new CustomerAccountStateError({ accountState: 'registered' }); + } + + const customerShopCtx = await this.requestContextService.create( + { + apiType: 'shop', + channelOrToken: ctx.channel, + req: ctx.req, + user: customer.user + } + ) + await this.requestPasswordReset(customerShopCtx, customer.emailAddress); + return { success: true }; + } + + /** + * @description + * Administrator-driven action which completes the email-verification step for a registered + * Customer (one whose User has been created but never verified) with a randomly generated + * password, bypassing the verification-token flow. The cleartext password is returned in the + * result so the administrator can communicate it to the customer; it is not persisted + * anywhere else. + */ + async verifyCustomerAccountAsAdmin( + ctx: RequestContext, + customerId: ID, + ): Promise<{ password: string } | CustomerAccountStateError> { + const customer = await this.findOne(ctx, customerId, ['user']); + if (!customer) { + throw new EntityNotFoundError('Customer', customerId); + } + if (!customer.user) { + return new CustomerAccountStateError({ accountState: 'guest' }); + } + if (customer.user.verified) { + return new CustomerAccountStateError({ accountState: 'verified' }); + } + const password = this.generateRandomPassword(); + const user = await this.userService.resetPasswordAsAdmin(ctx, customer.user.id, password); + if (isGraphQlErrorResult(user)) { + throw new InternalServerError( + 'The randomly generated password failed validation by the configured ' + + 'PasswordValidationStrategy. Adjust the strategy or override ' + + 'CustomerService.generateRandomPassword.', + ); + } + await this.historyService.createHistoryEntryForCustomer({ + customerId: customer.id, + ctx, + type: HistoryEntryType.CUSTOMER_VERIFIED, + data: { strategy: NATIVE_AUTH_STRATEGY_NAME }, + }); + await this.eventBus.publish(new AccountVerifiedEvent(ctx, customer)); + return { password }; + } + + /** + * Generates a 16-character password containing at least one lowercase, uppercase, digit and + * symbol so that it comfortably passes the default `PasswordValidationStrategy`. + */ + private generateRandomPassword(): string { + const lower = 'abcdefghijklmnopqrstuvwxyz'; + const upper = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; + const digits = '0123456789'; + const symbols = '!@#$%^&*()-_=+'; + const all = lower + upper + digits + symbols; + const pickRandom = (chars: string) => chars[randomInt(0, chars.length - 1)]; + const required = [pickRandom(lower), pickRandom(upper), pickRandom(digits), pickRandom(symbols)]; + const remaining = Array.from({ length: 12 }, () => pickRandom(all)); + const combined = [...required, ...remaining]; + // Fisher-Yates shuffle so that the required characters aren't always at the start. + for (let i = combined.length - 1; i > 0; i--) { + const j = randomInt(0, i); + [combined[i], combined[j]] = [combined[j], combined[i]]; + } + return combined.join(''); + } + /** * @description * Publishes a {@link IdentifierChangeRequestEvent} for the given User. This event contains a token diff --git a/packages/core/src/service/services/user.service.ts b/packages/core/src/service/services/user.service.ts index 1f7c3da685..01de12dcee 100644 --- a/packages/core/src/service/services/user.service.ts +++ b/packages/core/src/service/services/user.service.ts @@ -434,6 +434,36 @@ export class UserService { return { user, oldIdentifier }; } + /** + * @description + * Directly resets the password on a User's {@link NativeAuthenticationMethod} without requiring + * a password-reset token. Intended for administrator-driven flows. If the User is unverified, + * it will also be marked as verified (mirroring the behaviour of `resetPasswordByToken`). + */ + async resetPasswordAsAdmin( + ctx: RequestContext, + userId: ID, + newPassword: string, + ): Promise { + const passwordValidationResult = await this.validatePassword(ctx, newPassword); + if (passwordValidationResult !== true) { + return passwordValidationResult; + } + const user = await this.getUserByIdWithPasswordHash(ctx, userId); + if (!user) { + throw new EntityNotFoundError('User', userId); + } + const nativeAuthMethod = user.getNativeAuthenticationMethod(); + nativeAuthMethod.passwordHash = await this.passwordCipher.hash(newPassword); + nativeAuthMethod.passwordResetToken = null; + if (user.verified === false) { + nativeAuthMethod.verificationToken = null; + user.verified = true; + } + await this.connection.getRepository(ctx, NativeAuthenticationMethod).save(nativeAuthMethod); + return this.connection.getRepository(ctx, User).save(user); + } + /** * @description * Updates the password for a User with the {@link NativeAuthenticationMethod}. @@ -444,13 +474,7 @@ export class UserService { currentPassword: string, newPassword: string, ): Promise { - const user = await this.connection - .getRepository(ctx, User) - .createQueryBuilder('user') - .leftJoinAndSelect('user.authenticationMethods', 'authenticationMethods') - .addSelect('authenticationMethods.passwordHash') - .where('user.id = :id', { id: userId }) - .getOne(); + const user = await this.getUserByIdWithPasswordHash(ctx, userId); if (!user) { throw new EntityNotFoundError('User', userId); } @@ -471,6 +495,25 @@ export class UserService { return true; } + /** + * Internal helper that loads a User by id along with its authentication methods and the + * (normally `select: false`) `passwordHash` column. Used by every flow that needs to inspect + * or rewrite the User's native authentication credentials. + */ + private async getUserByIdWithPasswordHash( + ctx: RequestContext, + userId: ID, + ): Promise { + const user = await this.connection + .getRepository(ctx, User) + .createQueryBuilder('user') + .leftJoinAndSelect('user.authenticationMethods', 'authenticationMethods') + .addSelect('authenticationMethods.passwordHash') + .where('user.id = :id', { id: userId }) + .getOne(); + return user ?? undefined; + } + private async validatePassword( ctx: RequestContext, password: string, diff --git a/packages/dashboard/src/app/routes/_authenticated/_customers/components/customer-credential-action-button.tsx b/packages/dashboard/src/app/routes/_authenticated/_customers/components/customer-credential-action-button.tsx new file mode 100644 index 0000000000..53737c4b2c --- /dev/null +++ b/packages/dashboard/src/app/routes/_authenticated/_customers/components/customer-credential-action-button.tsx @@ -0,0 +1,190 @@ +import { CopyableText } from '@/vdb/components/shared/copyable-text.js'; +import { + AlertDialog, + AlertDialogAction, + AlertDialogCancel, + AlertDialogContent, + AlertDialogDescription, + AlertDialogFooter, + AlertDialogHeader, + AlertDialogTitle, +} from '@/vdb/components/ui/alert-dialog.js'; +import { Button } from '@/vdb/components/ui/button.js'; +import { + Dialog, + DialogContent, + DialogDescription, + DialogHeader, + DialogTitle, +} from '@/vdb/components/ui/dialog.js'; +import { api } from '@/vdb/graphql/api.js'; +import { Trans, useLingui } from '@lingui/react/macro'; +import { useMutation } from '@tanstack/react-query'; +import { KeyRound, ShieldCheck } from 'lucide-react'; +import { useState, type ReactNode } from 'react'; +import { toast } from 'sonner'; +import { + resetCustomerPasswordAsAdminDocument, + verifyCustomerAccountAsAdminDocument, +} from '../customers.graphql.js'; + +export type CustomerCredentialAction = 'reset' | 'verify'; + +interface CustomerCredentialActionButtonProps { + customerId: string; + action: CustomerCredentialAction; +} + +interface ActionCopy { + button: ReactNode; + icon: typeof KeyRound; + confirmTitle: ReactNode; + confirmDescription: ReactNode; + confirmAction: ReactNode; + resultTitle: ReactNode; + resultDescription: ReactNode; + errorToast: string; + successToast: string; +} + +export function CustomerCredentialActionButton({ + customerId, + action, +}: Readonly) { + const { t } = useLingui(); + const [confirmOpen, setConfirmOpen] = useState(false); + const [generatedPassword, setGeneratedPassword] = useState(null); + + const copy: ActionCopy = + action === 'reset' + ? { + button: Reset password, + icon: KeyRound, + confirmTitle: Send password reset email?, + confirmDescription: ( + + The customer will receive an email containing a link to set a new password. + Their existing password remains valid until they complete the reset flow. + + ), + confirmAction: Send reset email, + resultTitle: null, + resultDescription: null, + errorToast: t`Failed to send password reset email`, + successToast: t`Password reset email sent to the customer`, + } + : { + button: Verify account, + icon: ShieldCheck, + confirmTitle: Verify customer account?, + confirmDescription: ( + + This marks the account as verified and sets a new random password, bypassing + the email verification flow. The password will be displayed once — the + customer will not receive any notification. + + ), + confirmAction: Verify account, + resultTitle: Account verified, + resultDescription: ( + + The account is now verified. Copy the generated password now — it will not be + shown again. + + ), + errorToast: t`Failed to verify account`, + successToast: '', + }; + + const handleError = (message?: string) => + toast.error(copy.errorToast, message ? { description: message } : undefined); + + const { mutate: runReset, isPending: resetPending } = useMutation({ + mutationFn: (vars: { customerId: string }) => + api.mutate(resetCustomerPasswordAsAdminDocument, vars), + onSuccess: data => { + const result = data.resetCustomerPasswordAsAdmin; + if (result.__typename === 'Success') { + toast.success(copy.successToast); + } else { + handleError(result.message); + } + }, + onError: err => handleError(err instanceof Error ? err.message : undefined), + }); + + const { mutate: runVerify, isPending: verifyPending } = useMutation({ + mutationFn: (vars: { customerId: string }) => + api.mutate(verifyCustomerAccountAsAdminDocument, vars), + onSuccess: data => { + const result = data.verifyCustomerAccountAsAdmin; + if (result.__typename === 'AdminGeneratedPassword') { + setGeneratedPassword(result.password); + } else { + handleError(result.message); + } + }, + onError: err => handleError(err instanceof Error ? err.message : undefined), + }); + + const isPending = action === 'reset' ? resetPending : verifyPending; + const runMutation = () => + action === 'reset' ? runReset({ customerId }) : runVerify({ customerId }); + const Icon = copy.icon; + + return ( + <> + + + + + {copy.confirmTitle} + {copy.confirmDescription} + + + setConfirmOpen(false)}> + Cancel + + { + setConfirmOpen(false); + runMutation(); + }} + > + {copy.confirmAction} + + + + + { + if (!open) setGeneratedPassword(null); + }} + > + + + {copy.resultTitle} + {copy.resultDescription} + + {generatedPassword && ( + + + {generatedPassword} + + + )} + + + + ); +} diff --git a/packages/dashboard/src/app/routes/_authenticated/_customers/customers.graphql.ts b/packages/dashboard/src/app/routes/_authenticated/_customers/customers.graphql.ts index f5e5b623e5..17dc8d1572 100644 --- a/packages/dashboard/src/app/routes/_authenticated/_customers/customers.graphql.ts +++ b/packages/dashboard/src/app/routes/_authenticated/_customers/customers.graphql.ts @@ -217,3 +217,33 @@ export const deleteCustomersDocument = graphql(` } } `); + +export const verifyCustomerAccountAsAdminDocument = graphql(` + mutation VerifyCustomerAccountAsAdmin($customerId: ID!) { + verifyCustomerAccountAsAdmin(customerId: $customerId) { + __typename + ... on AdminGeneratedPassword { + password + } + ... on ErrorResult { + errorCode + message + } + } + } +`); + +export const resetCustomerPasswordAsAdminDocument = graphql(` + mutation ResetCustomerPasswordAsAdmin($customerId: ID!) { + resetCustomerPasswordAsAdmin(customerId: $customerId) { + __typename + ... on Success { + success + } + ... on ErrorResult { + errorCode + message + } + } + } +`); diff --git a/packages/dashboard/src/app/routes/_authenticated/_customers/customers_.$id.tsx b/packages/dashboard/src/app/routes/_authenticated/_customers/customers_.$id.tsx index cef9c14680..e16fba4289 100644 --- a/packages/dashboard/src/app/routes/_authenticated/_customers/customers_.$id.tsx +++ b/packages/dashboard/src/app/routes/_authenticated/_customers/customers_.$id.tsx @@ -35,6 +35,7 @@ import { useState } from 'react'; import { toast } from 'sonner'; import { CustomerAddressCard } from './components/customer-address-card.js'; import { CustomerAddressForm } from './components/customer-address-form.js'; +import { CustomerCredentialActionButton } from './components/customer-credential-action-button.js'; import { CustomerHistoryContainer } from './components/customer-history/customer-history-container.js'; import { CustomerOrderTable } from './components/customer-order-table.js'; import { CustomerStatusBadge } from './components/customer-status-badge.js'; @@ -151,6 +152,22 @@ function CustomerDetailPage() { {creatingNewEntity ? New customer : customerName} + {entity?.user?.verified && ( + + + + )} + {entity?.user && !entity.user.verified && ( + + + + )}