@vendure/admin-ui 3.1.0-next.3 → 3.1.0-next.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/catalog/components/collection-detail/collection-detail.component.d.ts +1 -1
  2. package/catalog/components/facet-detail/facet-detail.component.d.ts +1 -1
  3. package/catalog/components/product-detail/product-detail.component.d.ts +1 -1
  4. package/core/common/generated-types.d.ts +1188 -139
  5. package/core/common/utilities/custom-field-default-value.d.ts +1 -1
  6. package/core/common/version.d.ts +1 -1
  7. package/core/data/definitions/order-definitions.d.ts +2 -0
  8. package/core/data/definitions/settings-definitions.d.ts +1 -0
  9. package/core/data/providers/order-data.service.d.ts +2 -0
  10. package/core/public_api.d.ts +1 -0
  11. package/core/shared/components/data-table-filter-presets/data-table-filter-presets.component.d.ts +1 -0
  12. package/core/shared/components/facet-value-chip/facet-value-chip.component.d.ts +4 -2
  13. package/core/shared/components/product-variant-selector/product-variant-selector.component.d.ts +1 -1
  14. package/core/shared/dynamic-form-inputs/default-form-inputs.d.ts +2 -1
  15. package/core/shared/dynamic-form-inputs/struct-form-input/struct-form-input.component.d.ts +34 -0
  16. package/core/shared/shared.module.d.ts +12 -11
  17. package/customer/components/customer-detail/customer-detail.component.d.ts +1 -1
  18. package/customer/components/customer-group-detail/customer-group-detail.component.d.ts +1 -1
  19. package/esm2022/catalog/components/collection-data-table/collection-data-table.component.mjs +1 -1
  20. package/esm2022/catalog/components/collection-list/collection-list.component.mjs +1 -1
  21. package/esm2022/catalog/components/facet-list/facet-list.component.mjs +11 -11
  22. package/esm2022/catalog/components/move-collections-dialog/move-collections-dialog.component.mjs +1 -1
  23. package/esm2022/catalog/components/product-list/product-list.component.mjs +1 -1
  24. package/esm2022/catalog/components/product-variant-quick-jump/product-variant-quick-jump.component.mjs +2 -2
  25. package/esm2022/core/common/base-list.component.mjs +1 -1
  26. package/esm2022/core/common/generated-types.mjs +17 -13
  27. package/esm2022/core/common/introspection-result.mjs +22 -1
  28. package/esm2022/core/common/utilities/custom-field-default-value.mjs +3 -1
  29. package/esm2022/core/common/version.mjs +2 -2
  30. package/esm2022/core/data/data.module.mjs +1 -1
  31. package/esm2022/core/data/definitions/facet-definitions.mjs +2 -1
  32. package/esm2022/core/data/definitions/order-definitions.mjs +17 -1
  33. package/esm2022/core/data/definitions/settings-definitions.mjs +52 -1
  34. package/esm2022/core/data/providers/base-data.service.mjs +1 -1
  35. package/esm2022/core/data/providers/collection-data.service.mjs +1 -1
  36. package/esm2022/core/data/providers/data.service.mjs +1 -1
  37. package/esm2022/core/data/providers/order-data.service.mjs +8 -2
  38. package/esm2022/core/data/providers/product-data.service.mjs +1 -1
  39. package/esm2022/core/data/query-result.mjs +5 -3
  40. package/esm2022/core/data/utils/add-custom-fields.mjs +12 -1
  41. package/esm2022/core/providers/data-table/data-table-config.service.mjs +1 -1
  42. package/esm2022/core/providers/data-table/data-table-filter-collection.mjs +3 -2
  43. package/esm2022/core/providers/data-table/data-table-sort-collection.mjs +2 -1
  44. package/esm2022/core/public_api.mjs +2 -1
  45. package/esm2022/core/shared/components/card/card.component.mjs +1 -1
  46. package/esm2022/core/shared/components/currency-code-selector/currency-code-selector.component.mjs +1 -1
  47. package/esm2022/core/shared/components/data-table-2/data-table-custom-field-column.component.mjs +3 -3
  48. package/esm2022/core/shared/components/data-table-2/data-table2.component.mjs +1 -1
  49. package/esm2022/core/shared/components/data-table-filter-presets/data-table-filter-presets.component.mjs +23 -3
  50. package/esm2022/core/shared/components/data-table-filter-presets/filter-preset.service.mjs +1 -1
  51. package/esm2022/core/shared/components/dropdown/dropdown-trigger.directive.mjs +1 -1
  52. package/esm2022/core/shared/components/facet-value-chip/facet-value-chip.component.mjs +8 -3
  53. package/esm2022/core/shared/components/help-tooltip/help-tooltip.component.mjs +1 -1
  54. package/esm2022/core/shared/components/language-code-selector/language-code-selector.component.mjs +1 -1
  55. package/esm2022/core/shared/components/product-multi-selector-dialog/product-multi-selector-dialog.component.mjs +2 -2
  56. package/esm2022/core/shared/components/product-variant-selector/product-variant-selector.component.mjs +2 -2
  57. package/esm2022/core/shared/components/tabbed-custom-fields/tabbed-custom-fields.component.mjs +2 -1
  58. package/esm2022/core/shared/directives/disabled.directive.mjs +1 -1
  59. package/esm2022/core/shared/dynamic-form-inputs/default-form-inputs.mjs +3 -1
  60. package/esm2022/core/shared/dynamic-form-inputs/dynamic-form-input/dynamic-form-input.component.mjs +9 -1
  61. package/esm2022/core/shared/dynamic-form-inputs/struct-form-input/struct-form-input.component.mjs +52 -0
  62. package/esm2022/core/shared/pipes/locale-base.pipe.mjs +1 -1
  63. package/esm2022/core/shared/pipes/state-i18n-token.pipe.mjs +1 -1
  64. package/esm2022/core/shared/shared.module.mjs +7 -3
  65. package/esm2022/customer/components/customer-group-list/customer-group-list.component.mjs +11 -11
  66. package/esm2022/customer/components/customer-list/customer-list.component.mjs +24 -24
  67. package/esm2022/dashboard/widgets/test-widget/test-widget.component.mjs +1 -1
  68. package/esm2022/marketing/components/promotion-list/promotion-list.component.mjs +11 -11
  69. package/esm2022/order/components/draft-order-detail/draft-order-detail.component.mjs +34 -3
  70. package/esm2022/order/components/order-data-table/order-data-table.component.mjs +1 -1
  71. package/esm2022/order/components/order-list/order-list.component.mjs +1 -1
  72. package/esm2022/order/components/order-payment-card/order-payment-card.component.mjs +1 -1
  73. package/esm2022/order/components/order-state-select-dialog/order-state-select-dialog.component.mjs +1 -1
  74. package/esm2022/order/components/refund-order-dialog/refund-order-dialog.component.mjs +3 -3
  75. package/esm2022/order/order.routes.mjs +1 -2
  76. package/esm2022/settings/components/add-country-to-zone-dialog/add-country-to-zone-dialog.component.mjs +3 -3
  77. package/esm2022/settings/components/administrator-list/administrator-list.component.mjs +30 -30
  78. package/esm2022/settings/components/channel-list/channel-list.component.mjs +11 -11
  79. package/esm2022/settings/components/country-list/country-list.component.mjs +19 -19
  80. package/esm2022/settings/components/payment-method-list/payment-method-list.component.mjs +19 -19
  81. package/esm2022/settings/components/role-list/role-list.component.mjs +11 -11
  82. package/esm2022/settings/components/seller-list/seller-list.component.mjs +16 -16
  83. package/esm2022/settings/components/shipping-method-list/shipping-method-list.component.mjs +19 -19
  84. package/esm2022/settings/components/stock-location-list/stock-location-list.component.mjs +17 -17
  85. package/esm2022/settings/components/tax-category-list/tax-category-list.component.mjs +11 -11
  86. package/esm2022/settings/components/tax-rate-list/tax-rate-list.component.mjs +11 -11
  87. package/esm2022/settings/components/zone-list/zone-list.component.mjs +16 -16
  88. package/esm2022/system/components/job-state-label/job-state-label.component.mjs +1 -1
  89. package/fesm2022/vendure-admin-ui-catalog.mjs +11 -11
  90. package/fesm2022/vendure-admin-ui-catalog.mjs.map +1 -1
  91. package/fesm2022/vendure-admin-ui-core.mjs +221 -28
  92. package/fesm2022/vendure-admin-ui-core.mjs.map +1 -1
  93. package/fesm2022/vendure-admin-ui-customer.mjs +33 -33
  94. package/fesm2022/vendure-admin-ui-customer.mjs.map +1 -1
  95. package/fesm2022/vendure-admin-ui-dashboard.mjs.map +1 -1
  96. package/fesm2022/vendure-admin-ui-marketing.mjs +10 -10
  97. package/fesm2022/vendure-admin-ui-marketing.mjs.map +1 -1
  98. package/fesm2022/vendure-admin-ui-order.mjs +34 -4
  99. package/fesm2022/vendure-admin-ui-order.mjs.map +1 -1
  100. package/fesm2022/vendure-admin-ui-settings.mjs +171 -171
  101. package/fesm2022/vendure-admin-ui-settings.mjs.map +1 -1
  102. package/fesm2022/vendure-admin-ui-system.mjs.map +1 -1
  103. package/marketing/components/promotion-detail/promotion-detail.component.d.ts +1 -1
  104. package/order/components/draft-order-detail/draft-order-detail.component.d.ts +1 -0
  105. package/order/components/order-detail/order-detail.component.d.ts +1 -1
  106. package/package.json +14 -14
  107. package/settings/components/admin-detail/admin-detail.component.d.ts +1 -1
  108. package/settings/components/channel-detail/channel-detail.component.d.ts +1 -1
  109. package/settings/components/country-detail/country-detail.component.d.ts +1 -1
  110. package/settings/components/global-settings/global-settings.component.d.ts +1 -1
  111. package/settings/components/payment-method-detail/payment-method-detail.component.d.ts +1 -1
  112. package/settings/components/profile/profile.component.d.ts +1 -1
  113. package/settings/components/seller-detail/seller-detail.component.d.ts +1 -1
  114. package/settings/components/shipping-method-detail/shipping-method-detail.component.d.ts +1 -1
  115. package/settings/components/stock-location-detail/stock-location-detail.component.d.ts +1 -1
  116. package/settings/components/tax-category-detail/tax-category-detail.component.d.ts +1 -1
  117. package/settings/components/tax-rate-detail/tax-rate-detail.component.d.ts +1 -1
  118. package/settings/components/zone-detail/zone-detail.component.d.ts +1 -1
  119. package/static/i18n-messages/sv.json +12 -12
@@ -181,6 +181,7 @@ export type AdministratorSortParameter = {
181
181
  export type Allocation = Node & StockMovement & {
182
182
  __typename?: 'Allocation';
183
183
  createdAt: Scalars['DateTime']['output'];
184
+ customFields?: Maybe<Scalars['JSON']['output']>;
184
185
  id: Scalars['ID']['output'];
185
186
  orderLine: OrderLine;
186
187
  productVariant: ProductVariant;
@@ -335,6 +336,15 @@ export type BooleanOperators = {
335
336
  eq?: InputMaybe<Scalars['Boolean']['input']>;
336
337
  isNull?: InputMaybe<Scalars['Boolean']['input']>;
337
338
  };
339
+ export type BooleanStructFieldConfig = StructField & {
340
+ __typename?: 'BooleanStructFieldConfig';
341
+ description?: Maybe<Array<LocalizedString>>;
342
+ label?: Maybe<Array<LocalizedString>>;
343
+ list: Scalars['Boolean']['output'];
344
+ name: Scalars['String']['output'];
345
+ type: Scalars['String']['output'];
346
+ ui?: Maybe<Scalars['JSON']['output']>;
347
+ };
338
348
  /** Returned if an attempting to cancel lines from an Order which is still active */
339
349
  export type CancelActiveOrderError = ErrorResult & {
340
350
  __typename?: 'CancelActiveOrderError';
@@ -363,6 +373,7 @@ export type CancelPaymentResult = CancelPaymentError | Payment | PaymentStateTra
363
373
  export type Cancellation = Node & StockMovement & {
364
374
  __typename?: 'Cancellation';
365
375
  createdAt: Scalars['DateTime']['output'];
376
+ customFields?: Maybe<Scalars['JSON']['output']>;
366
377
  id: Scalars['ID']['output'];
367
378
  orderLine: OrderLine;
368
379
  productVariant: ProductVariant;
@@ -1256,10 +1267,10 @@ export type CustomField = {
1256
1267
  type: Scalars['String']['output'];
1257
1268
  ui?: Maybe<Scalars['JSON']['output']>;
1258
1269
  };
1259
- export type CustomFieldConfig = BooleanCustomFieldConfig | DateTimeCustomFieldConfig | FloatCustomFieldConfig | IntCustomFieldConfig | LocaleStringCustomFieldConfig | LocaleTextCustomFieldConfig | RelationCustomFieldConfig | StringCustomFieldConfig | TextCustomFieldConfig;
1270
+ export type CustomFieldConfig = BooleanCustomFieldConfig | DateTimeCustomFieldConfig | FloatCustomFieldConfig | IntCustomFieldConfig | LocaleStringCustomFieldConfig | LocaleTextCustomFieldConfig | RelationCustomFieldConfig | StringCustomFieldConfig | StructCustomFieldConfig | TextCustomFieldConfig;
1260
1271
  /**
1261
1272
  * This type is deprecated in v2.2 in favor of the EntityCustomFields type,
1262
- * which allows custom fields to be defined on user-supplies entities.
1273
+ * which allows custom fields to be defined on user-supplied entities.
1263
1274
  */
1264
1275
  export type CustomFields = {
1265
1276
  __typename?: 'CustomFields';
@@ -1274,8 +1285,10 @@ export type CustomFields = {
1274
1285
  FacetValue: Array<CustomFieldConfig>;
1275
1286
  Fulfillment: Array<CustomFieldConfig>;
1276
1287
  GlobalSettings: Array<CustomFieldConfig>;
1288
+ HistoryEntry: Array<CustomFieldConfig>;
1277
1289
  Order: Array<CustomFieldConfig>;
1278
1290
  OrderLine: Array<CustomFieldConfig>;
1291
+ Payment: Array<CustomFieldConfig>;
1279
1292
  PaymentMethod: Array<CustomFieldConfig>;
1280
1293
  Product: Array<CustomFieldConfig>;
1281
1294
  ProductOption: Array<CustomFieldConfig>;
@@ -1283,10 +1296,15 @@ export type CustomFields = {
1283
1296
  ProductVariant: Array<CustomFieldConfig>;
1284
1297
  ProductVariantPrice: Array<CustomFieldConfig>;
1285
1298
  Promotion: Array<CustomFieldConfig>;
1299
+ Refund: Array<CustomFieldConfig>;
1286
1300
  Region: Array<CustomFieldConfig>;
1287
1301
  Seller: Array<CustomFieldConfig>;
1302
+ Session: Array<CustomFieldConfig>;
1303
+ ShippingLine: Array<CustomFieldConfig>;
1288
1304
  ShippingMethod: Array<CustomFieldConfig>;
1305
+ StockLevel: Array<CustomFieldConfig>;
1289
1306
  StockLocation: Array<CustomFieldConfig>;
1307
+ StockMovement: Array<CustomFieldConfig>;
1290
1308
  TaxCategory: Array<CustomFieldConfig>;
1291
1309
  TaxRate: Array<CustomFieldConfig>;
1292
1310
  User: Array<CustomFieldConfig>;
@@ -1434,6 +1452,22 @@ export type DateTimeCustomFieldConfig = CustomField & {
1434
1452
  type: Scalars['String']['output'];
1435
1453
  ui?: Maybe<Scalars['JSON']['output']>;
1436
1454
  };
1455
+ /**
1456
+ * Expects the same validation formats as the `<input type="datetime-local">` HTML element.
1457
+ * See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local#Additional_attributes
1458
+ */
1459
+ export type DateTimeStructFieldConfig = StructField & {
1460
+ __typename?: 'DateTimeStructFieldConfig';
1461
+ description?: Maybe<Array<LocalizedString>>;
1462
+ label?: Maybe<Array<LocalizedString>>;
1463
+ list: Scalars['Boolean']['output'];
1464
+ max?: Maybe<Scalars['String']['output']>;
1465
+ min?: Maybe<Scalars['String']['output']>;
1466
+ name: Scalars['String']['output'];
1467
+ step?: Maybe<Scalars['Int']['output']>;
1468
+ type: Scalars['String']['output'];
1469
+ ui?: Maybe<Scalars['JSON']['output']>;
1470
+ };
1437
1471
  export type DeleteAssetInput = {
1438
1472
  assetId: Scalars['ID']['input'];
1439
1473
  deleteFromAllChannels?: InputMaybe<Scalars['Boolean']['input']>;
@@ -1539,6 +1573,7 @@ export declare enum ErrorCode {
1539
1573
  NOTHING_TO_REFUND_ERROR = "NOTHING_TO_REFUND_ERROR",
1540
1574
  NO_ACTIVE_ORDER_ERROR = "NO_ACTIVE_ORDER_ERROR",
1541
1575
  NO_CHANGES_SPECIFIED_ERROR = "NO_CHANGES_SPECIFIED_ERROR",
1576
+ ORDER_INTERCEPTOR_ERROR = "ORDER_INTERCEPTOR_ERROR",
1542
1577
  ORDER_LIMIT_ERROR = "ORDER_LIMIT_ERROR",
1543
1578
  ORDER_MODIFICATION_ERROR = "ORDER_MODIFICATION_ERROR",
1544
1579
  ORDER_MODIFICATION_STATE_ERROR = "ORDER_MODIFICATION_STATE_ERROR",
@@ -1734,6 +1769,18 @@ export type FloatCustomFieldConfig = CustomField & {
1734
1769
  type: Scalars['String']['output'];
1735
1770
  ui?: Maybe<Scalars['JSON']['output']>;
1736
1771
  };
1772
+ export type FloatStructFieldConfig = StructField & {
1773
+ __typename?: 'FloatStructFieldConfig';
1774
+ description?: Maybe<Array<LocalizedString>>;
1775
+ label?: Maybe<Array<LocalizedString>>;
1776
+ list: Scalars['Boolean']['output'];
1777
+ max?: Maybe<Scalars['Float']['output']>;
1778
+ min?: Maybe<Scalars['Float']['output']>;
1779
+ name: Scalars['String']['output'];
1780
+ step?: Maybe<Scalars['Float']['output']>;
1781
+ type: Scalars['String']['output'];
1782
+ ui?: Maybe<Scalars['JSON']['output']>;
1783
+ };
1737
1784
  export type FulfillOrderInput = {
1738
1785
  handler: ConfigurableOperationInput;
1739
1786
  lines: Array<OrderLineInput>;
@@ -1796,6 +1843,7 @@ export type HistoryEntry = Node & {
1796
1843
  __typename?: 'HistoryEntry';
1797
1844
  administrator?: Maybe<Administrator>;
1798
1845
  createdAt: Scalars['DateTime']['output'];
1846
+ customFields?: Maybe<Scalars['JSON']['output']>;
1799
1847
  data: Scalars['JSON']['output'];
1800
1848
  id: Scalars['ID']['output'];
1801
1849
  isPublic: Scalars['Boolean']['output'];
@@ -1920,6 +1968,18 @@ export type IntCustomFieldConfig = CustomField & {
1920
1968
  type: Scalars['String']['output'];
1921
1969
  ui?: Maybe<Scalars['JSON']['output']>;
1922
1970
  };
1971
+ export type IntStructFieldConfig = StructField & {
1972
+ __typename?: 'IntStructFieldConfig';
1973
+ description?: Maybe<Array<LocalizedString>>;
1974
+ label?: Maybe<Array<LocalizedString>>;
1975
+ list: Scalars['Boolean']['output'];
1976
+ max?: Maybe<Scalars['Int']['output']>;
1977
+ min?: Maybe<Scalars['Int']['output']>;
1978
+ name: Scalars['String']['output'];
1979
+ step?: Maybe<Scalars['Int']['output']>;
1980
+ type: Scalars['String']['output'];
1981
+ ui?: Maybe<Scalars['JSON']['output']>;
1982
+ };
1923
1983
  /** Returned if the user authentication credentials are not valid */
1924
1984
  export type InvalidCredentialsError = ErrorResult & {
1925
1985
  __typename?: 'InvalidCredentialsError';
@@ -2755,6 +2815,10 @@ export type Mutation = {
2755
2815
  transitionFulfillmentToState: TransitionFulfillmentToStateResult;
2756
2816
  transitionOrderToState?: Maybe<TransitionOrderToStateResult>;
2757
2817
  transitionPaymentToState: TransitionPaymentToStateResult;
2818
+ /** Unsets the billing address for a draft Order */
2819
+ unsetDraftOrderBillingAddress: Order;
2820
+ /** Unsets the shipping address for a draft Order */
2821
+ unsetDraftOrderShippingAddress: Order;
2758
2822
  /** Update the active (currently logged-in) Administrator */
2759
2823
  updateActiveAdministrator: Administrator;
2760
2824
  /** Update an existing Administrator */
@@ -3253,6 +3317,12 @@ export type MutationTransitionPaymentToStateArgs = {
3253
3317
  id: Scalars['ID']['input'];
3254
3318
  state: Scalars['String']['input'];
3255
3319
  };
3320
+ export type MutationUnsetDraftOrderBillingAddressArgs = {
3321
+ orderId: Scalars['ID']['input'];
3322
+ };
3323
+ export type MutationUnsetDraftOrderShippingAddressArgs = {
3324
+ orderId: Scalars['ID']['input'];
3325
+ };
3256
3326
  export type MutationUpdateActiveAdministratorArgs = {
3257
3327
  input: UpdateActiveAdministratorInput;
3258
3328
  };
@@ -3512,6 +3582,13 @@ export type OrderFilterParameter = {
3512
3582
  type?: InputMaybe<StringOperators>;
3513
3583
  updatedAt?: InputMaybe<DateOperators>;
3514
3584
  };
3585
+ /** Returned when an order operation is rejected by an OrderInterceptor method. */
3586
+ export type OrderInterceptorError = ErrorResult & {
3587
+ __typename?: 'OrderInterceptorError';
3588
+ errorCode: ErrorCode;
3589
+ interceptorError: Scalars['String']['output'];
3590
+ message: Scalars['String']['output'];
3591
+ };
3515
3592
  /** Returned when the maximum order size limit has been reached. */
3516
3593
  export type OrderLimitError = ErrorResult & {
3517
3594
  __typename?: 'OrderLimitError';
@@ -3696,6 +3773,7 @@ export type Payment = Node & {
3696
3773
  __typename?: 'Payment';
3697
3774
  amount: Scalars['Money']['output'];
3698
3775
  createdAt: Scalars['DateTime']['output'];
3776
+ customFields?: Maybe<Scalars['JSON']['output']>;
3699
3777
  errorMessage?: Maybe<Scalars['String']['output']>;
3700
3778
  id: Scalars['ID']['output'];
3701
3779
  metadata?: Maybe<Scalars['JSON']['output']>;
@@ -4719,6 +4797,7 @@ export type Refund = Node & {
4719
4797
  __typename?: 'Refund';
4720
4798
  adjustment: Scalars['Money']['output'];
4721
4799
  createdAt: Scalars['DateTime']['output'];
4800
+ customFields?: Maybe<Scalars['JSON']['output']>;
4722
4801
  id: Scalars['ID']['output'];
4723
4802
  items: Scalars['Money']['output'];
4724
4803
  lines: Array<RefundLine>;
@@ -4748,18 +4827,19 @@ export type RefundLine = {
4748
4827
  refundId: Scalars['ID']['output'];
4749
4828
  };
4750
4829
  export type RefundOrderInput = {
4751
- adjustment: Scalars['Money']['input'];
4830
+ /** @deprecated Use the `amount` field instead */
4831
+ adjustment?: InputMaybe<Scalars['Money']['input']>;
4752
4832
  /**
4753
- * If an amount is specified, this value will be used to create a Refund rather than calculating the
4754
- * amount automatically. This was added in v2.2 and will be the preferred way to specify the refund
4755
- * amount in the future. The `lines`, `shipping` and `adjustment` fields will likely be removed in a future
4756
- * version.
4833
+ * The amount to be refunded to this particular payment. This was introduced in v2.2.0 as the preferred way to specify the refund amount.
4834
+ * Can be as much as the total amount of the payment minus the sum of all previous refunds.
4757
4835
  */
4758
4836
  amount?: InputMaybe<Scalars['Money']['input']>;
4759
- lines: Array<OrderLineInput>;
4837
+ /** @deprecated Use the `amount` field instead */
4838
+ lines?: InputMaybe<Array<OrderLineInput>>;
4760
4839
  paymentId: Scalars['ID']['input'];
4761
4840
  reason?: InputMaybe<Scalars['String']['input']>;
4762
- shipping: Scalars['Money']['input'];
4841
+ /** @deprecated Use the `amount` field instead */
4842
+ shipping?: InputMaybe<Scalars['Money']['input']>;
4763
4843
  };
4764
4844
  export type RefundOrderResult = AlreadyRefundedError | MultipleOrderError | NothingToRefundError | OrderStateTransitionError | PaymentOrderMismatchError | QuantityTooGreatError | Refund | RefundAmountError | RefundOrderStateError | RefundStateTransitionError;
4765
4845
  /** Returned if an attempting to refund an Order which is not in the expected state */
@@ -4826,6 +4906,7 @@ export type RelationCustomFieldConfig = CustomField & {
4826
4906
  export type Release = Node & StockMovement & {
4827
4907
  __typename?: 'Release';
4828
4908
  createdAt: Scalars['DateTime']['output'];
4909
+ customFields?: Maybe<Scalars['JSON']['output']>;
4829
4910
  id: Scalars['ID']['output'];
4830
4911
  productVariant: ProductVariant;
4831
4912
  quantity: Scalars['Int']['output'];
@@ -4843,7 +4924,7 @@ export type RemoveFacetsFromChannelInput = {
4843
4924
  force?: InputMaybe<Scalars['Boolean']['input']>;
4844
4925
  };
4845
4926
  export type RemoveOptionGroupFromProductResult = Product | ProductOptionInUseError;
4846
- export type RemoveOrderItemsResult = Order | OrderModificationError;
4927
+ export type RemoveOrderItemsResult = Order | OrderInterceptorError | OrderModificationError;
4847
4928
  export type RemovePaymentMethodsFromChannelInput = {
4848
4929
  channelId: Scalars['ID']['input'];
4849
4930
  paymentMethodIds: Array<Scalars['ID']['input']>;
@@ -4871,6 +4952,7 @@ export type RemoveStockLocationsFromChannelInput = {
4871
4952
  export type Return = Node & StockMovement & {
4872
4953
  __typename?: 'Return';
4873
4954
  createdAt: Scalars['DateTime']['output'];
4955
+ customFields?: Maybe<Scalars['JSON']['output']>;
4874
4956
  id: Scalars['ID']['output'];
4875
4957
  productVariant: ProductVariant;
4876
4958
  quantity: Scalars['Int']['output'];
@@ -4923,6 +5005,7 @@ export type RoleSortParameter = {
4923
5005
  export type Sale = Node & StockMovement & {
4924
5006
  __typename?: 'Sale';
4925
5007
  createdAt: Scalars['DateTime']['output'];
5008
+ customFields?: Maybe<Scalars['JSON']['output']>;
4926
5009
  id: Scalars['ID']['output'];
4927
5010
  productVariant: ProductVariant;
4928
5011
  quantity: Scalars['Int']['output'];
@@ -5064,6 +5147,7 @@ export type SettleRefundInput = {
5064
5147
  export type SettleRefundResult = Refund | RefundStateTransitionError;
5065
5148
  export type ShippingLine = {
5066
5149
  __typename?: 'ShippingLine';
5150
+ customFields?: Maybe<Scalars['JSON']['output']>;
5067
5151
  discountedPrice: Scalars['Money']['output'];
5068
5152
  discountedPriceWithTax: Scalars['Money']['output'];
5069
5153
  discounts: Array<Discount>;
@@ -5165,6 +5249,7 @@ export declare enum SortOrder {
5165
5249
  export type StockAdjustment = Node & StockMovement & {
5166
5250
  __typename?: 'StockAdjustment';
5167
5251
  createdAt: Scalars['DateTime']['output'];
5252
+ customFields?: Maybe<Scalars['JSON']['output']>;
5168
5253
  id: Scalars['ID']['output'];
5169
5254
  productVariant: ProductVariant;
5170
5255
  quantity: Scalars['Int']['output'];
@@ -5174,6 +5259,7 @@ export type StockAdjustment = Node & StockMovement & {
5174
5259
  export type StockLevel = Node & {
5175
5260
  __typename?: 'StockLevel';
5176
5261
  createdAt: Scalars['DateTime']['output'];
5262
+ customFields?: Maybe<Scalars['JSON']['output']>;
5177
5263
  id: Scalars['ID']['output'];
5178
5264
  stockAllocated: Scalars['Int']['output'];
5179
5265
  stockLocation: StockLocation;
@@ -5290,6 +5376,41 @@ export type StringOperators = {
5290
5376
  notIn?: InputMaybe<Array<Scalars['String']['input']>>;
5291
5377
  regex?: InputMaybe<Scalars['String']['input']>;
5292
5378
  };
5379
+ export type StringStructFieldConfig = StructField & {
5380
+ __typename?: 'StringStructFieldConfig';
5381
+ description?: Maybe<Array<LocalizedString>>;
5382
+ label?: Maybe<Array<LocalizedString>>;
5383
+ length?: Maybe<Scalars['Int']['output']>;
5384
+ list: Scalars['Boolean']['output'];
5385
+ name: Scalars['String']['output'];
5386
+ options?: Maybe<Array<StringFieldOption>>;
5387
+ pattern?: Maybe<Scalars['String']['output']>;
5388
+ type: Scalars['String']['output'];
5389
+ ui?: Maybe<Scalars['JSON']['output']>;
5390
+ };
5391
+ export type StructCustomFieldConfig = CustomField & {
5392
+ __typename?: 'StructCustomFieldConfig';
5393
+ description?: Maybe<Array<LocalizedString>>;
5394
+ fields: Array<StructFieldConfig>;
5395
+ internal?: Maybe<Scalars['Boolean']['output']>;
5396
+ label?: Maybe<Array<LocalizedString>>;
5397
+ list: Scalars['Boolean']['output'];
5398
+ name: Scalars['String']['output'];
5399
+ nullable?: Maybe<Scalars['Boolean']['output']>;
5400
+ readonly?: Maybe<Scalars['Boolean']['output']>;
5401
+ requiresPermission?: Maybe<Array<Permission>>;
5402
+ type: Scalars['String']['output'];
5403
+ ui?: Maybe<Scalars['JSON']['output']>;
5404
+ };
5405
+ export type StructField = {
5406
+ description?: Maybe<Array<LocalizedString>>;
5407
+ label?: Maybe<Array<LocalizedString>>;
5408
+ list?: Maybe<Scalars['Boolean']['output']>;
5409
+ name: Scalars['String']['output'];
5410
+ type: Scalars['String']['output'];
5411
+ ui?: Maybe<Scalars['JSON']['output']>;
5412
+ };
5413
+ export type StructFieldConfig = BooleanStructFieldConfig | DateTimeStructFieldConfig | FloatStructFieldConfig | IntStructFieldConfig | StringStructFieldConfig | TextStructFieldConfig;
5293
5414
  /** Indicates that an operation succeeded, where we do not want to return any more specific information. */
5294
5415
  export type Success = {
5295
5416
  __typename?: 'Success';
@@ -5484,6 +5605,15 @@ export type TextCustomFieldConfig = CustomField & {
5484
5605
  type: Scalars['String']['output'];
5485
5606
  ui?: Maybe<Scalars['JSON']['output']>;
5486
5607
  };
5608
+ export type TextStructFieldConfig = StructField & {
5609
+ __typename?: 'TextStructFieldConfig';
5610
+ description?: Maybe<Array<LocalizedString>>;
5611
+ label?: Maybe<Array<LocalizedString>>;
5612
+ list: Scalars['Boolean']['output'];
5613
+ name: Scalars['String']['output'];
5614
+ type: Scalars['String']['output'];
5615
+ ui?: Maybe<Scalars['JSON']['output']>;
5616
+ };
5487
5617
  export type TransitionFulfillmentToStateResult = Fulfillment | FulfillmentStateTransitionError;
5488
5618
  export type TransitionOrderToStateResult = Order | OrderStateTransitionError;
5489
5619
  export type TransitionPaymentToStateResult = Payment | PaymentStateTransitionError;
@@ -5640,7 +5770,7 @@ export type UpdateOrderInput = {
5640
5770
  customFields?: InputMaybe<Scalars['JSON']['input']>;
5641
5771
  id: Scalars['ID']['input'];
5642
5772
  };
5643
- export type UpdateOrderItemsResult = InsufficientStockError | NegativeQuantityError | Order | OrderLimitError | OrderModificationError;
5773
+ export type UpdateOrderItemsResult = InsufficientStockError | NegativeQuantityError | Order | OrderInterceptorError | OrderLimitError | OrderModificationError;
5644
5774
  export type UpdateOrderNoteInput = {
5645
5775
  isPublic?: InputMaybe<Scalars['Boolean']['input']>;
5646
5776
  note?: InputMaybe<Scalars['String']['input']>;
@@ -6082,6 +6212,7 @@ export type GetFacetDetailQuery = {
6082
6212
  createdAt: any;
6083
6213
  updatedAt: any;
6084
6214
  name: string;
6215
+ code: string;
6085
6216
  };
6086
6217
  }>;
6087
6218
  };
@@ -6133,6 +6264,7 @@ export type GetFacetListQuery = {
6133
6264
  createdAt: any;
6134
6265
  updatedAt: any;
6135
6266
  name: string;
6267
+ code: string;
6136
6268
  };
6137
6269
  }>;
6138
6270
  };
@@ -8517,6 +8649,7 @@ export type FacetValueFragment = {
8517
8649
  createdAt: any;
8518
8650
  updatedAt: any;
8519
8651
  name: string;
8652
+ code: string;
8520
8653
  };
8521
8654
  };
8522
8655
  export type FacetWithValuesFragment = {
@@ -8554,6 +8687,7 @@ export type FacetWithValuesFragment = {
8554
8687
  createdAt: any;
8555
8688
  updatedAt: any;
8556
8689
  name: string;
8690
+ code: string;
8557
8691
  };
8558
8692
  }>;
8559
8693
  };
@@ -8595,6 +8729,7 @@ export type FacetWithValueListFragment = {
8595
8729
  createdAt: any;
8596
8730
  updatedAt: any;
8597
8731
  name: string;
8732
+ code: string;
8598
8733
  };
8599
8734
  }>;
8600
8735
  };
@@ -8638,6 +8773,7 @@ export type CreateFacetMutation = {
8638
8773
  createdAt: any;
8639
8774
  updatedAt: any;
8640
8775
  name: string;
8776
+ code: string;
8641
8777
  };
8642
8778
  }>;
8643
8779
  };
@@ -8681,6 +8817,7 @@ export type UpdateFacetMutation = {
8681
8817
  createdAt: any;
8682
8818
  updatedAt: any;
8683
8819
  name: string;
8820
+ code: string;
8684
8821
  };
8685
8822
  }>;
8686
8823
  };
@@ -8731,6 +8868,7 @@ export type CreateFacetValuesMutation = {
8731
8868
  createdAt: any;
8732
8869
  updatedAt: any;
8733
8870
  name: string;
8871
+ code: string;
8734
8872
  };
8735
8873
  }>;
8736
8874
  };
@@ -8758,6 +8896,7 @@ export type UpdateFacetValuesMutation = {
8758
8896
  createdAt: any;
8759
8897
  updatedAt: any;
8760
8898
  name: string;
8899
+ code: string;
8761
8900
  };
8762
8901
  }>;
8763
8902
  };
@@ -8799,6 +8938,7 @@ export type GetFacetValueListQuery = {
8799
8938
  createdAt: any;
8800
8939
  updatedAt: any;
8801
8940
  name: string;
8941
+ code: string;
8802
8942
  };
8803
8943
  }>;
8804
8944
  };
@@ -11044,6 +11184,10 @@ export type AddItemToDraftOrderMutation = {
11044
11184
  id: string;
11045
11185
  }> | null;
11046
11186
  }>;
11187
+ } | {
11188
+ __typename?: 'OrderInterceptorError';
11189
+ errorCode: ErrorCode;
11190
+ message: string;
11047
11191
  } | {
11048
11192
  __typename?: 'OrderLimitError';
11049
11193
  errorCode: ErrorCode;
@@ -11290,6 +11434,10 @@ export type AdjustDraftOrderLineMutation = {
11290
11434
  id: string;
11291
11435
  }> | null;
11292
11436
  }>;
11437
+ } | {
11438
+ __typename?: 'OrderInterceptorError';
11439
+ errorCode: ErrorCode;
11440
+ message: string;
11293
11441
  } | {
11294
11442
  __typename?: 'OrderLimitError';
11295
11443
  errorCode: ErrorCode;
@@ -11528,6 +11676,10 @@ export type RemoveDraftOrderLineMutation = {
11528
11676
  id: string;
11529
11677
  }> | null;
11530
11678
  }>;
11679
+ } | {
11680
+ __typename?: 'OrderInterceptorError';
11681
+ errorCode: ErrorCode;
11682
+ message: string;
11531
11683
  } | {
11532
11684
  __typename?: 'OrderModificationError';
11533
11685
  errorCode: ErrorCode;
@@ -12229,24 +12381,11 @@ export type SetDraftOrderBillingAddressMutation = {
12229
12381
  }>;
12230
12382
  };
12231
12383
  };
12232
- export type ApplyCouponCodeToDraftOrderMutationVariables = Exact<{
12384
+ export type UnsetDraftOrderShippingAddressMutationVariables = Exact<{
12233
12385
  orderId: Scalars['ID']['input'];
12234
- couponCode: Scalars['String']['input'];
12235
12386
  }>;
12236
- export type ApplyCouponCodeToDraftOrderMutation = {
12237
- applyCouponCodeToDraftOrder: {
12238
- __typename?: 'CouponCodeExpiredError';
12239
- errorCode: ErrorCode;
12240
- message: string;
12241
- } | {
12242
- __typename?: 'CouponCodeInvalidError';
12243
- errorCode: ErrorCode;
12244
- message: string;
12245
- } | {
12246
- __typename?: 'CouponCodeLimitError';
12247
- errorCode: ErrorCode;
12248
- message: string;
12249
- } | {
12387
+ export type UnsetDraftOrderShippingAddressMutation = {
12388
+ unsetDraftOrderShippingAddress: {
12250
12389
  __typename?: 'Order';
12251
12390
  id: string;
12252
12391
  createdAt: any;
@@ -12471,12 +12610,11 @@ export type ApplyCouponCodeToDraftOrderMutation = {
12471
12610
  }>;
12472
12611
  };
12473
12612
  };
12474
- export type RemoveCouponCodeFromDraftOrderMutationVariables = Exact<{
12613
+ export type UnsetDraftOrderBillingAddressMutationVariables = Exact<{
12475
12614
  orderId: Scalars['ID']['input'];
12476
- couponCode: Scalars['String']['input'];
12477
12615
  }>;
12478
- export type RemoveCouponCodeFromDraftOrderMutation = {
12479
- removeCouponCodeFromDraftOrder?: {
12616
+ export type UnsetDraftOrderBillingAddressMutation = {
12617
+ unsetDraftOrderBillingAddress: {
12480
12618
  __typename?: 'Order';
12481
12619
  id: string;
12482
12620
  createdAt: any;
@@ -12699,34 +12837,23 @@ export type RemoveCouponCodeFromDraftOrderMutation = {
12699
12837
  id: string;
12700
12838
  }> | null;
12701
12839
  }>;
12702
- } | null;
12703
- };
12704
- export type DraftOrderEligibleShippingMethodsQueryVariables = Exact<{
12705
- orderId: Scalars['ID']['input'];
12706
- }>;
12707
- export type DraftOrderEligibleShippingMethodsQuery = {
12708
- eligibleShippingMethodsForDraftOrder: Array<{
12709
- __typename?: 'ShippingMethodQuote';
12710
- id: string;
12711
- name: string;
12712
- code: string;
12713
- description: string;
12714
- price: number;
12715
- priceWithTax: number;
12716
- metadata?: any | null;
12717
- }>;
12840
+ };
12718
12841
  };
12719
- export type SetDraftOrderShippingMethodMutationVariables = Exact<{
12842
+ export type ApplyCouponCodeToDraftOrderMutationVariables = Exact<{
12720
12843
  orderId: Scalars['ID']['input'];
12721
- shippingMethodId: Scalars['ID']['input'];
12844
+ couponCode: Scalars['String']['input'];
12722
12845
  }>;
12723
- export type SetDraftOrderShippingMethodMutation = {
12724
- setDraftOrderShippingMethod: {
12725
- __typename?: 'IneligibleShippingMethodError';
12846
+ export type ApplyCouponCodeToDraftOrderMutation = {
12847
+ applyCouponCodeToDraftOrder: {
12848
+ __typename?: 'CouponCodeExpiredError';
12726
12849
  errorCode: ErrorCode;
12727
12850
  message: string;
12728
12851
  } | {
12729
- __typename?: 'NoActiveOrderError';
12852
+ __typename?: 'CouponCodeInvalidError';
12853
+ errorCode: ErrorCode;
12854
+ message: string;
12855
+ } | {
12856
+ __typename?: 'CouponCodeLimitError';
12730
12857
  errorCode: ErrorCode;
12731
12858
  message: string;
12732
12859
  } | {
@@ -12952,92 +13079,575 @@ export type SetDraftOrderShippingMethodMutation = {
12952
13079
  id: string;
12953
13080
  }> | null;
12954
13081
  }>;
12955
- } | {
12956
- __typename?: 'OrderModificationError';
12957
- errorCode: ErrorCode;
12958
- message: string;
12959
13082
  };
12960
13083
  };
12961
- export type AssetFragment = {
12962
- __typename?: 'Asset';
12963
- id: string;
12964
- createdAt: any;
12965
- updatedAt: any;
12966
- name: string;
12967
- fileSize: number;
12968
- mimeType: string;
12969
- type: AssetType;
12970
- preview: string;
12971
- source: string;
12972
- width: number;
12973
- height: number;
12974
- focalPoint?: {
12975
- __typename?: 'Coordinate';
12976
- x: number;
12977
- y: number;
12978
- } | null;
12979
- };
12980
- export type TagFragment = {
12981
- __typename?: 'Tag';
12982
- id: string;
12983
- value: string;
12984
- };
12985
- export type ProductOptionGroupFragment = {
12986
- __typename?: 'ProductOptionGroup';
12987
- id: string;
12988
- createdAt: any;
12989
- updatedAt: any;
12990
- code: string;
12991
- languageCode: LanguageCode;
12992
- name: string;
12993
- translations: Array<{
12994
- __typename?: 'ProductOptionGroupTranslation';
12995
- id: string;
12996
- languageCode: LanguageCode;
12997
- name: string;
12998
- }>;
12999
- };
13000
- export type ProductOptionFragment = {
13001
- __typename?: 'ProductOption';
13002
- id: string;
13003
- createdAt: any;
13004
- updatedAt: any;
13005
- code: string;
13006
- languageCode: LanguageCode;
13007
- name: string;
13008
- groupId: string;
13009
- translations: Array<{
13010
- __typename?: 'ProductOptionTranslation';
13011
- id: string;
13012
- languageCode: LanguageCode;
13013
- name: string;
13014
- }>;
13015
- };
13016
- export type ProductVariantFragment = {
13017
- __typename?: 'ProductVariant';
13018
- id: string;
13019
- createdAt: any;
13020
- updatedAt: any;
13021
- enabled: boolean;
13022
- languageCode: LanguageCode;
13023
- name: string;
13024
- price: number;
13025
- currencyCode: CurrencyCode;
13026
- priceWithTax: number;
13027
- stockOnHand: number;
13028
- stockAllocated: number;
13029
- trackInventory: GlobalFlag;
13030
- outOfStockThreshold: number;
13031
- useGlobalOutOfStockThreshold: boolean;
13032
- sku: string;
13033
- taxRateApplied: {
13034
- __typename?: 'TaxRate';
13084
+ export type RemoveCouponCodeFromDraftOrderMutationVariables = Exact<{
13085
+ orderId: Scalars['ID']['input'];
13086
+ couponCode: Scalars['String']['input'];
13087
+ }>;
13088
+ export type RemoveCouponCodeFromDraftOrderMutation = {
13089
+ removeCouponCodeFromDraftOrder?: {
13090
+ __typename?: 'Order';
13035
13091
  id: string;
13036
- name: string;
13037
- value: number;
13038
- };
13039
- taxCategory: {
13040
- __typename?: 'TaxCategory';
13092
+ createdAt: any;
13093
+ updatedAt: any;
13094
+ type: OrderType;
13095
+ code: string;
13096
+ state: string;
13097
+ nextStates: Array<string>;
13098
+ active: boolean;
13099
+ couponCodes: Array<string>;
13100
+ subTotal: number;
13101
+ subTotalWithTax: number;
13102
+ total: number;
13103
+ totalWithTax: number;
13104
+ currencyCode: CurrencyCode;
13105
+ shipping: number;
13106
+ shippingWithTax: number;
13107
+ aggregateOrder?: {
13108
+ __typename?: 'Order';
13109
+ id: string;
13110
+ code: string;
13111
+ } | null;
13112
+ sellerOrders?: Array<{
13113
+ __typename?: 'Order';
13114
+ id: string;
13115
+ code: string;
13116
+ channels: Array<{
13117
+ __typename?: 'Channel';
13118
+ id: string;
13119
+ code: string;
13120
+ }>;
13121
+ }> | null;
13122
+ customer?: {
13123
+ __typename?: 'Customer';
13124
+ id: string;
13125
+ firstName: string;
13126
+ lastName: string;
13127
+ } | null;
13128
+ lines: Array<{
13129
+ __typename?: 'OrderLine';
13130
+ id: string;
13131
+ createdAt: any;
13132
+ updatedAt: any;
13133
+ unitPrice: number;
13134
+ unitPriceWithTax: number;
13135
+ proratedUnitPrice: number;
13136
+ proratedUnitPriceWithTax: number;
13137
+ quantity: number;
13138
+ orderPlacedQuantity: number;
13139
+ linePrice: number;
13140
+ lineTax: number;
13141
+ linePriceWithTax: number;
13142
+ discountedLinePrice: number;
13143
+ discountedLinePriceWithTax: number;
13144
+ featuredAsset?: {
13145
+ __typename?: 'Asset';
13146
+ preview: string;
13147
+ } | null;
13148
+ productVariant: {
13149
+ __typename?: 'ProductVariant';
13150
+ id: string;
13151
+ name: string;
13152
+ sku: string;
13153
+ trackInventory: GlobalFlag;
13154
+ stockOnHand: number;
13155
+ };
13156
+ discounts: Array<{
13157
+ __typename?: 'Discount';
13158
+ adjustmentSource: string;
13159
+ amount: number;
13160
+ amountWithTax: number;
13161
+ description: string;
13162
+ type: AdjustmentType;
13163
+ }>;
13164
+ fulfillmentLines?: Array<{
13165
+ __typename?: 'FulfillmentLine';
13166
+ fulfillmentId: string;
13167
+ quantity: number;
13168
+ }> | null;
13169
+ }>;
13170
+ surcharges: Array<{
13171
+ __typename?: 'Surcharge';
13172
+ id: string;
13173
+ sku?: string | null;
13174
+ description: string;
13175
+ price: number;
13176
+ priceWithTax: number;
13177
+ taxRate: number;
13178
+ }>;
13179
+ discounts: Array<{
13180
+ __typename?: 'Discount';
13181
+ adjustmentSource: string;
13182
+ amount: number;
13183
+ amountWithTax: number;
13184
+ description: string;
13185
+ type: AdjustmentType;
13186
+ }>;
13187
+ promotions: Array<{
13188
+ __typename?: 'Promotion';
13189
+ id: string;
13190
+ couponCode?: string | null;
13191
+ }>;
13192
+ shippingLines: Array<{
13193
+ __typename?: 'ShippingLine';
13194
+ id: string;
13195
+ discountedPriceWithTax: number;
13196
+ shippingMethod: {
13197
+ __typename?: 'ShippingMethod';
13198
+ id: string;
13199
+ code: string;
13200
+ name: string;
13201
+ fulfillmentHandlerCode: string;
13202
+ description: string;
13203
+ };
13204
+ }>;
13205
+ taxSummary: Array<{
13206
+ __typename?: 'OrderTaxSummary';
13207
+ description: string;
13208
+ taxBase: number;
13209
+ taxRate: number;
13210
+ taxTotal: number;
13211
+ }>;
13212
+ shippingAddress?: {
13213
+ __typename?: 'OrderAddress';
13214
+ fullName?: string | null;
13215
+ company?: string | null;
13216
+ streetLine1?: string | null;
13217
+ streetLine2?: string | null;
13218
+ city?: string | null;
13219
+ province?: string | null;
13220
+ postalCode?: string | null;
13221
+ country?: string | null;
13222
+ countryCode?: string | null;
13223
+ phoneNumber?: string | null;
13224
+ } | null;
13225
+ billingAddress?: {
13226
+ __typename?: 'OrderAddress';
13227
+ fullName?: string | null;
13228
+ company?: string | null;
13229
+ streetLine1?: string | null;
13230
+ streetLine2?: string | null;
13231
+ city?: string | null;
13232
+ province?: string | null;
13233
+ postalCode?: string | null;
13234
+ country?: string | null;
13235
+ countryCode?: string | null;
13236
+ phoneNumber?: string | null;
13237
+ } | null;
13238
+ payments?: Array<{
13239
+ __typename?: 'Payment';
13240
+ id: string;
13241
+ createdAt: any;
13242
+ transactionId?: string | null;
13243
+ amount: number;
13244
+ method: string;
13245
+ state: string;
13246
+ nextStates: Array<string>;
13247
+ errorMessage?: string | null;
13248
+ metadata?: any | null;
13249
+ refunds: Array<{
13250
+ __typename?: 'Refund';
13251
+ id: string;
13252
+ createdAt: any;
13253
+ state: string;
13254
+ items: number;
13255
+ adjustment: number;
13256
+ total: number;
13257
+ paymentId: string;
13258
+ reason?: string | null;
13259
+ transactionId?: string | null;
13260
+ method?: string | null;
13261
+ metadata?: any | null;
13262
+ lines: Array<{
13263
+ __typename?: 'RefundLine';
13264
+ orderLineId: string;
13265
+ quantity: number;
13266
+ }>;
13267
+ }>;
13268
+ }> | null;
13269
+ fulfillments?: Array<{
13270
+ __typename?: 'Fulfillment';
13271
+ id: string;
13272
+ state: string;
13273
+ nextStates: Array<string>;
13274
+ createdAt: any;
13275
+ updatedAt: any;
13276
+ method: string;
13277
+ trackingCode?: string | null;
13278
+ lines: Array<{
13279
+ __typename?: 'FulfillmentLine';
13280
+ orderLineId: string;
13281
+ quantity: number;
13282
+ }>;
13283
+ }> | null;
13284
+ modifications: Array<{
13285
+ __typename?: 'OrderModification';
13286
+ id: string;
13287
+ createdAt: any;
13288
+ isSettled: boolean;
13289
+ priceChange: number;
13290
+ note: string;
13291
+ payment?: {
13292
+ __typename?: 'Payment';
13293
+ id: string;
13294
+ amount: number;
13295
+ } | null;
13296
+ lines: Array<{
13297
+ __typename?: 'OrderModificationLine';
13298
+ orderLineId: string;
13299
+ quantity: number;
13300
+ }>;
13301
+ refund?: {
13302
+ __typename?: 'Refund';
13303
+ id: string;
13304
+ paymentId: string;
13305
+ total: number;
13306
+ } | null;
13307
+ surcharges?: Array<{
13308
+ __typename?: 'Surcharge';
13309
+ id: string;
13310
+ }> | null;
13311
+ }>;
13312
+ } | null;
13313
+ };
13314
+ export type DraftOrderEligibleShippingMethodsQueryVariables = Exact<{
13315
+ orderId: Scalars['ID']['input'];
13316
+ }>;
13317
+ export type DraftOrderEligibleShippingMethodsQuery = {
13318
+ eligibleShippingMethodsForDraftOrder: Array<{
13319
+ __typename?: 'ShippingMethodQuote';
13320
+ id: string;
13321
+ name: string;
13322
+ code: string;
13323
+ description: string;
13324
+ price: number;
13325
+ priceWithTax: number;
13326
+ metadata?: any | null;
13327
+ }>;
13328
+ };
13329
+ export type SetDraftOrderShippingMethodMutationVariables = Exact<{
13330
+ orderId: Scalars['ID']['input'];
13331
+ shippingMethodId: Scalars['ID']['input'];
13332
+ }>;
13333
+ export type SetDraftOrderShippingMethodMutation = {
13334
+ setDraftOrderShippingMethod: {
13335
+ __typename?: 'IneligibleShippingMethodError';
13336
+ errorCode: ErrorCode;
13337
+ message: string;
13338
+ } | {
13339
+ __typename?: 'NoActiveOrderError';
13340
+ errorCode: ErrorCode;
13341
+ message: string;
13342
+ } | {
13343
+ __typename?: 'Order';
13344
+ id: string;
13345
+ createdAt: any;
13346
+ updatedAt: any;
13347
+ type: OrderType;
13348
+ code: string;
13349
+ state: string;
13350
+ nextStates: Array<string>;
13351
+ active: boolean;
13352
+ couponCodes: Array<string>;
13353
+ subTotal: number;
13354
+ subTotalWithTax: number;
13355
+ total: number;
13356
+ totalWithTax: number;
13357
+ currencyCode: CurrencyCode;
13358
+ shipping: number;
13359
+ shippingWithTax: number;
13360
+ aggregateOrder?: {
13361
+ __typename?: 'Order';
13362
+ id: string;
13363
+ code: string;
13364
+ } | null;
13365
+ sellerOrders?: Array<{
13366
+ __typename?: 'Order';
13367
+ id: string;
13368
+ code: string;
13369
+ channels: Array<{
13370
+ __typename?: 'Channel';
13371
+ id: string;
13372
+ code: string;
13373
+ }>;
13374
+ }> | null;
13375
+ customer?: {
13376
+ __typename?: 'Customer';
13377
+ id: string;
13378
+ firstName: string;
13379
+ lastName: string;
13380
+ } | null;
13381
+ lines: Array<{
13382
+ __typename?: 'OrderLine';
13383
+ id: string;
13384
+ createdAt: any;
13385
+ updatedAt: any;
13386
+ unitPrice: number;
13387
+ unitPriceWithTax: number;
13388
+ proratedUnitPrice: number;
13389
+ proratedUnitPriceWithTax: number;
13390
+ quantity: number;
13391
+ orderPlacedQuantity: number;
13392
+ linePrice: number;
13393
+ lineTax: number;
13394
+ linePriceWithTax: number;
13395
+ discountedLinePrice: number;
13396
+ discountedLinePriceWithTax: number;
13397
+ featuredAsset?: {
13398
+ __typename?: 'Asset';
13399
+ preview: string;
13400
+ } | null;
13401
+ productVariant: {
13402
+ __typename?: 'ProductVariant';
13403
+ id: string;
13404
+ name: string;
13405
+ sku: string;
13406
+ trackInventory: GlobalFlag;
13407
+ stockOnHand: number;
13408
+ };
13409
+ discounts: Array<{
13410
+ __typename?: 'Discount';
13411
+ adjustmentSource: string;
13412
+ amount: number;
13413
+ amountWithTax: number;
13414
+ description: string;
13415
+ type: AdjustmentType;
13416
+ }>;
13417
+ fulfillmentLines?: Array<{
13418
+ __typename?: 'FulfillmentLine';
13419
+ fulfillmentId: string;
13420
+ quantity: number;
13421
+ }> | null;
13422
+ }>;
13423
+ surcharges: Array<{
13424
+ __typename?: 'Surcharge';
13425
+ id: string;
13426
+ sku?: string | null;
13427
+ description: string;
13428
+ price: number;
13429
+ priceWithTax: number;
13430
+ taxRate: number;
13431
+ }>;
13432
+ discounts: Array<{
13433
+ __typename?: 'Discount';
13434
+ adjustmentSource: string;
13435
+ amount: number;
13436
+ amountWithTax: number;
13437
+ description: string;
13438
+ type: AdjustmentType;
13439
+ }>;
13440
+ promotions: Array<{
13441
+ __typename?: 'Promotion';
13442
+ id: string;
13443
+ couponCode?: string | null;
13444
+ }>;
13445
+ shippingLines: Array<{
13446
+ __typename?: 'ShippingLine';
13447
+ id: string;
13448
+ discountedPriceWithTax: number;
13449
+ shippingMethod: {
13450
+ __typename?: 'ShippingMethod';
13451
+ id: string;
13452
+ code: string;
13453
+ name: string;
13454
+ fulfillmentHandlerCode: string;
13455
+ description: string;
13456
+ };
13457
+ }>;
13458
+ taxSummary: Array<{
13459
+ __typename?: 'OrderTaxSummary';
13460
+ description: string;
13461
+ taxBase: number;
13462
+ taxRate: number;
13463
+ taxTotal: number;
13464
+ }>;
13465
+ shippingAddress?: {
13466
+ __typename?: 'OrderAddress';
13467
+ fullName?: string | null;
13468
+ company?: string | null;
13469
+ streetLine1?: string | null;
13470
+ streetLine2?: string | null;
13471
+ city?: string | null;
13472
+ province?: string | null;
13473
+ postalCode?: string | null;
13474
+ country?: string | null;
13475
+ countryCode?: string | null;
13476
+ phoneNumber?: string | null;
13477
+ } | null;
13478
+ billingAddress?: {
13479
+ __typename?: 'OrderAddress';
13480
+ fullName?: string | null;
13481
+ company?: string | null;
13482
+ streetLine1?: string | null;
13483
+ streetLine2?: string | null;
13484
+ city?: string | null;
13485
+ province?: string | null;
13486
+ postalCode?: string | null;
13487
+ country?: string | null;
13488
+ countryCode?: string | null;
13489
+ phoneNumber?: string | null;
13490
+ } | null;
13491
+ payments?: Array<{
13492
+ __typename?: 'Payment';
13493
+ id: string;
13494
+ createdAt: any;
13495
+ transactionId?: string | null;
13496
+ amount: number;
13497
+ method: string;
13498
+ state: string;
13499
+ nextStates: Array<string>;
13500
+ errorMessage?: string | null;
13501
+ metadata?: any | null;
13502
+ refunds: Array<{
13503
+ __typename?: 'Refund';
13504
+ id: string;
13505
+ createdAt: any;
13506
+ state: string;
13507
+ items: number;
13508
+ adjustment: number;
13509
+ total: number;
13510
+ paymentId: string;
13511
+ reason?: string | null;
13512
+ transactionId?: string | null;
13513
+ method?: string | null;
13514
+ metadata?: any | null;
13515
+ lines: Array<{
13516
+ __typename?: 'RefundLine';
13517
+ orderLineId: string;
13518
+ quantity: number;
13519
+ }>;
13520
+ }>;
13521
+ }> | null;
13522
+ fulfillments?: Array<{
13523
+ __typename?: 'Fulfillment';
13524
+ id: string;
13525
+ state: string;
13526
+ nextStates: Array<string>;
13527
+ createdAt: any;
13528
+ updatedAt: any;
13529
+ method: string;
13530
+ trackingCode?: string | null;
13531
+ lines: Array<{
13532
+ __typename?: 'FulfillmentLine';
13533
+ orderLineId: string;
13534
+ quantity: number;
13535
+ }>;
13536
+ }> | null;
13537
+ modifications: Array<{
13538
+ __typename?: 'OrderModification';
13539
+ id: string;
13540
+ createdAt: any;
13541
+ isSettled: boolean;
13542
+ priceChange: number;
13543
+ note: string;
13544
+ payment?: {
13545
+ __typename?: 'Payment';
13546
+ id: string;
13547
+ amount: number;
13548
+ } | null;
13549
+ lines: Array<{
13550
+ __typename?: 'OrderModificationLine';
13551
+ orderLineId: string;
13552
+ quantity: number;
13553
+ }>;
13554
+ refund?: {
13555
+ __typename?: 'Refund';
13556
+ id: string;
13557
+ paymentId: string;
13558
+ total: number;
13559
+ } | null;
13560
+ surcharges?: Array<{
13561
+ __typename?: 'Surcharge';
13562
+ id: string;
13563
+ }> | null;
13564
+ }>;
13565
+ } | {
13566
+ __typename?: 'OrderModificationError';
13567
+ errorCode: ErrorCode;
13568
+ message: string;
13569
+ };
13570
+ };
13571
+ export type AssetFragment = {
13572
+ __typename?: 'Asset';
13573
+ id: string;
13574
+ createdAt: any;
13575
+ updatedAt: any;
13576
+ name: string;
13577
+ fileSize: number;
13578
+ mimeType: string;
13579
+ type: AssetType;
13580
+ preview: string;
13581
+ source: string;
13582
+ width: number;
13583
+ height: number;
13584
+ focalPoint?: {
13585
+ __typename?: 'Coordinate';
13586
+ x: number;
13587
+ y: number;
13588
+ } | null;
13589
+ };
13590
+ export type TagFragment = {
13591
+ __typename?: 'Tag';
13592
+ id: string;
13593
+ value: string;
13594
+ };
13595
+ export type ProductOptionGroupFragment = {
13596
+ __typename?: 'ProductOptionGroup';
13597
+ id: string;
13598
+ createdAt: any;
13599
+ updatedAt: any;
13600
+ code: string;
13601
+ languageCode: LanguageCode;
13602
+ name: string;
13603
+ translations: Array<{
13604
+ __typename?: 'ProductOptionGroupTranslation';
13605
+ id: string;
13606
+ languageCode: LanguageCode;
13607
+ name: string;
13608
+ }>;
13609
+ };
13610
+ export type ProductOptionFragment = {
13611
+ __typename?: 'ProductOption';
13612
+ id: string;
13613
+ createdAt: any;
13614
+ updatedAt: any;
13615
+ code: string;
13616
+ languageCode: LanguageCode;
13617
+ name: string;
13618
+ groupId: string;
13619
+ translations: Array<{
13620
+ __typename?: 'ProductOptionTranslation';
13621
+ id: string;
13622
+ languageCode: LanguageCode;
13623
+ name: string;
13624
+ }>;
13625
+ };
13626
+ export type ProductVariantFragment = {
13627
+ __typename?: 'ProductVariant';
13628
+ id: string;
13629
+ createdAt: any;
13630
+ updatedAt: any;
13631
+ enabled: boolean;
13632
+ languageCode: LanguageCode;
13633
+ name: string;
13634
+ price: number;
13635
+ currencyCode: CurrencyCode;
13636
+ priceWithTax: number;
13637
+ stockOnHand: number;
13638
+ stockAllocated: number;
13639
+ trackInventory: GlobalFlag;
13640
+ outOfStockThreshold: number;
13641
+ useGlobalOutOfStockThreshold: boolean;
13642
+ sku: string;
13643
+ taxRateApplied: {
13644
+ __typename?: 'TaxRate';
13645
+ id: string;
13646
+ name: string;
13647
+ value: number;
13648
+ };
13649
+ taxCategory: {
13650
+ __typename?: 'TaxCategory';
13041
13651
  id: string;
13042
13652
  name: string;
13043
13653
  };
@@ -16403,6 +17013,26 @@ type CustomFieldConfig_StringCustomFieldConfig_Fragment = {
16403
17013
  value: string;
16404
17014
  }> | null;
16405
17015
  };
17016
+ type CustomFieldConfig_StructCustomFieldConfig_Fragment = {
17017
+ __typename?: 'StructCustomFieldConfig';
17018
+ name: string;
17019
+ type: string;
17020
+ list: boolean;
17021
+ readonly?: boolean | null;
17022
+ nullable?: boolean | null;
17023
+ requiresPermission?: Array<Permission> | null;
17024
+ ui?: any | null;
17025
+ description?: Array<{
17026
+ __typename?: 'LocalizedString';
17027
+ languageCode: LanguageCode;
17028
+ value: string;
17029
+ }> | null;
17030
+ label?: Array<{
17031
+ __typename?: 'LocalizedString';
17032
+ languageCode: LanguageCode;
17033
+ value: string;
17034
+ }> | null;
17035
+ };
16406
17036
  type CustomFieldConfig_TextCustomFieldConfig_Fragment = {
16407
17037
  __typename?: 'TextCustomFieldConfig';
16408
17038
  name: string;
@@ -16423,7 +17053,7 @@ type CustomFieldConfig_TextCustomFieldConfig_Fragment = {
16423
17053
  value: string;
16424
17054
  }> | null;
16425
17055
  };
16426
- export type CustomFieldConfigFragment = CustomFieldConfig_BooleanCustomFieldConfig_Fragment | CustomFieldConfig_DateTimeCustomFieldConfig_Fragment | CustomFieldConfig_FloatCustomFieldConfig_Fragment | CustomFieldConfig_IntCustomFieldConfig_Fragment | CustomFieldConfig_LocaleStringCustomFieldConfig_Fragment | CustomFieldConfig_LocaleTextCustomFieldConfig_Fragment | CustomFieldConfig_RelationCustomFieldConfig_Fragment | CustomFieldConfig_StringCustomFieldConfig_Fragment | CustomFieldConfig_TextCustomFieldConfig_Fragment;
17056
+ export type CustomFieldConfigFragment = CustomFieldConfig_BooleanCustomFieldConfig_Fragment | CustomFieldConfig_DateTimeCustomFieldConfig_Fragment | CustomFieldConfig_FloatCustomFieldConfig_Fragment | CustomFieldConfig_IntCustomFieldConfig_Fragment | CustomFieldConfig_LocaleStringCustomFieldConfig_Fragment | CustomFieldConfig_LocaleTextCustomFieldConfig_Fragment | CustomFieldConfig_RelationCustomFieldConfig_Fragment | CustomFieldConfig_StringCustomFieldConfig_Fragment | CustomFieldConfig_StructCustomFieldConfig_Fragment | CustomFieldConfig_TextCustomFieldConfig_Fragment;
16427
17057
  export type StringCustomFieldFragment = {
16428
17058
  __typename?: 'StringCustomFieldConfig';
16429
17059
  pattern?: string | null;
@@ -16626,6 +17256,142 @@ export type RelationCustomFieldFragment = {
16626
17256
  value: string;
16627
17257
  }> | null;
16628
17258
  };
17259
+ export type StructCustomFieldFragment = {
17260
+ __typename?: 'StructCustomFieldConfig';
17261
+ name: string;
17262
+ type: string;
17263
+ list: boolean;
17264
+ readonly?: boolean | null;
17265
+ nullable?: boolean | null;
17266
+ requiresPermission?: Array<Permission> | null;
17267
+ ui?: any | null;
17268
+ fields: Array<{
17269
+ __typename?: 'BooleanStructFieldConfig';
17270
+ name: string;
17271
+ type: string;
17272
+ list: boolean;
17273
+ ui?: any | null;
17274
+ description?: Array<{
17275
+ __typename?: 'LocalizedString';
17276
+ languageCode: LanguageCode;
17277
+ value: string;
17278
+ }> | null;
17279
+ label?: Array<{
17280
+ __typename?: 'LocalizedString';
17281
+ languageCode: LanguageCode;
17282
+ value: string;
17283
+ }> | null;
17284
+ } | {
17285
+ __typename?: 'DateTimeStructFieldConfig';
17286
+ name: string;
17287
+ type: string;
17288
+ list: boolean;
17289
+ ui?: any | null;
17290
+ datetimeMin?: string | null;
17291
+ datetimeMax?: string | null;
17292
+ datetimeStep?: number | null;
17293
+ description?: Array<{
17294
+ __typename?: 'LocalizedString';
17295
+ languageCode: LanguageCode;
17296
+ value: string;
17297
+ }> | null;
17298
+ label?: Array<{
17299
+ __typename?: 'LocalizedString';
17300
+ languageCode: LanguageCode;
17301
+ value: string;
17302
+ }> | null;
17303
+ } | {
17304
+ __typename?: 'FloatStructFieldConfig';
17305
+ name: string;
17306
+ type: string;
17307
+ list: boolean;
17308
+ ui?: any | null;
17309
+ floatMin?: number | null;
17310
+ floatMax?: number | null;
17311
+ floatStep?: number | null;
17312
+ description?: Array<{
17313
+ __typename?: 'LocalizedString';
17314
+ languageCode: LanguageCode;
17315
+ value: string;
17316
+ }> | null;
17317
+ label?: Array<{
17318
+ __typename?: 'LocalizedString';
17319
+ languageCode: LanguageCode;
17320
+ value: string;
17321
+ }> | null;
17322
+ } | {
17323
+ __typename?: 'IntStructFieldConfig';
17324
+ name: string;
17325
+ type: string;
17326
+ list: boolean;
17327
+ ui?: any | null;
17328
+ intMin?: number | null;
17329
+ intMax?: number | null;
17330
+ intStep?: number | null;
17331
+ description?: Array<{
17332
+ __typename?: 'LocalizedString';
17333
+ languageCode: LanguageCode;
17334
+ value: string;
17335
+ }> | null;
17336
+ label?: Array<{
17337
+ __typename?: 'LocalizedString';
17338
+ languageCode: LanguageCode;
17339
+ value: string;
17340
+ }> | null;
17341
+ } | {
17342
+ __typename?: 'StringStructFieldConfig';
17343
+ name: string;
17344
+ type: string;
17345
+ list: boolean;
17346
+ ui?: any | null;
17347
+ pattern?: string | null;
17348
+ description?: Array<{
17349
+ __typename?: 'LocalizedString';
17350
+ languageCode: LanguageCode;
17351
+ value: string;
17352
+ }> | null;
17353
+ label?: Array<{
17354
+ __typename?: 'LocalizedString';
17355
+ languageCode: LanguageCode;
17356
+ value: string;
17357
+ }> | null;
17358
+ options?: Array<{
17359
+ __typename?: 'StringFieldOption';
17360
+ value: string;
17361
+ label?: Array<{
17362
+ __typename?: 'LocalizedString';
17363
+ languageCode: LanguageCode;
17364
+ value: string;
17365
+ }> | null;
17366
+ }> | null;
17367
+ } | {
17368
+ __typename?: 'TextStructFieldConfig';
17369
+ name: string;
17370
+ type: string;
17371
+ list: boolean;
17372
+ ui?: any | null;
17373
+ description?: Array<{
17374
+ __typename?: 'LocalizedString';
17375
+ languageCode: LanguageCode;
17376
+ value: string;
17377
+ }> | null;
17378
+ label?: Array<{
17379
+ __typename?: 'LocalizedString';
17380
+ languageCode: LanguageCode;
17381
+ value: string;
17382
+ }> | null;
17383
+ }>;
17384
+ description?: Array<{
17385
+ __typename?: 'LocalizedString';
17386
+ languageCode: LanguageCode;
17387
+ value: string;
17388
+ }> | null;
17389
+ label?: Array<{
17390
+ __typename?: 'LocalizedString';
17391
+ languageCode: LanguageCode;
17392
+ value: string;
17393
+ }> | null;
17394
+ };
16629
17395
  type CustomFields_BooleanCustomFieldConfig_Fragment = {
16630
17396
  __typename?: 'BooleanCustomFieldConfig';
16631
17397
  name: string;
@@ -16808,6 +17574,142 @@ type CustomFields_StringCustomFieldConfig_Fragment = {
16808
17574
  value: string;
16809
17575
  }> | null;
16810
17576
  };
17577
+ type CustomFields_StructCustomFieldConfig_Fragment = {
17578
+ __typename?: 'StructCustomFieldConfig';
17579
+ name: string;
17580
+ type: string;
17581
+ list: boolean;
17582
+ readonly?: boolean | null;
17583
+ nullable?: boolean | null;
17584
+ requiresPermission?: Array<Permission> | null;
17585
+ ui?: any | null;
17586
+ fields: Array<{
17587
+ __typename?: 'BooleanStructFieldConfig';
17588
+ name: string;
17589
+ type: string;
17590
+ list: boolean;
17591
+ ui?: any | null;
17592
+ description?: Array<{
17593
+ __typename?: 'LocalizedString';
17594
+ languageCode: LanguageCode;
17595
+ value: string;
17596
+ }> | null;
17597
+ label?: Array<{
17598
+ __typename?: 'LocalizedString';
17599
+ languageCode: LanguageCode;
17600
+ value: string;
17601
+ }> | null;
17602
+ } | {
17603
+ __typename?: 'DateTimeStructFieldConfig';
17604
+ name: string;
17605
+ type: string;
17606
+ list: boolean;
17607
+ ui?: any | null;
17608
+ datetimeMin?: string | null;
17609
+ datetimeMax?: string | null;
17610
+ datetimeStep?: number | null;
17611
+ description?: Array<{
17612
+ __typename?: 'LocalizedString';
17613
+ languageCode: LanguageCode;
17614
+ value: string;
17615
+ }> | null;
17616
+ label?: Array<{
17617
+ __typename?: 'LocalizedString';
17618
+ languageCode: LanguageCode;
17619
+ value: string;
17620
+ }> | null;
17621
+ } | {
17622
+ __typename?: 'FloatStructFieldConfig';
17623
+ name: string;
17624
+ type: string;
17625
+ list: boolean;
17626
+ ui?: any | null;
17627
+ floatMin?: number | null;
17628
+ floatMax?: number | null;
17629
+ floatStep?: number | null;
17630
+ description?: Array<{
17631
+ __typename?: 'LocalizedString';
17632
+ languageCode: LanguageCode;
17633
+ value: string;
17634
+ }> | null;
17635
+ label?: Array<{
17636
+ __typename?: 'LocalizedString';
17637
+ languageCode: LanguageCode;
17638
+ value: string;
17639
+ }> | null;
17640
+ } | {
17641
+ __typename?: 'IntStructFieldConfig';
17642
+ name: string;
17643
+ type: string;
17644
+ list: boolean;
17645
+ ui?: any | null;
17646
+ intMin?: number | null;
17647
+ intMax?: number | null;
17648
+ intStep?: number | null;
17649
+ description?: Array<{
17650
+ __typename?: 'LocalizedString';
17651
+ languageCode: LanguageCode;
17652
+ value: string;
17653
+ }> | null;
17654
+ label?: Array<{
17655
+ __typename?: 'LocalizedString';
17656
+ languageCode: LanguageCode;
17657
+ value: string;
17658
+ }> | null;
17659
+ } | {
17660
+ __typename?: 'StringStructFieldConfig';
17661
+ name: string;
17662
+ type: string;
17663
+ list: boolean;
17664
+ ui?: any | null;
17665
+ pattern?: string | null;
17666
+ description?: Array<{
17667
+ __typename?: 'LocalizedString';
17668
+ languageCode: LanguageCode;
17669
+ value: string;
17670
+ }> | null;
17671
+ label?: Array<{
17672
+ __typename?: 'LocalizedString';
17673
+ languageCode: LanguageCode;
17674
+ value: string;
17675
+ }> | null;
17676
+ options?: Array<{
17677
+ __typename?: 'StringFieldOption';
17678
+ value: string;
17679
+ label?: Array<{
17680
+ __typename?: 'LocalizedString';
17681
+ languageCode: LanguageCode;
17682
+ value: string;
17683
+ }> | null;
17684
+ }> | null;
17685
+ } | {
17686
+ __typename?: 'TextStructFieldConfig';
17687
+ name: string;
17688
+ type: string;
17689
+ list: boolean;
17690
+ ui?: any | null;
17691
+ description?: Array<{
17692
+ __typename?: 'LocalizedString';
17693
+ languageCode: LanguageCode;
17694
+ value: string;
17695
+ }> | null;
17696
+ label?: Array<{
17697
+ __typename?: 'LocalizedString';
17698
+ languageCode: LanguageCode;
17699
+ value: string;
17700
+ }> | null;
17701
+ }>;
17702
+ description?: Array<{
17703
+ __typename?: 'LocalizedString';
17704
+ languageCode: LanguageCode;
17705
+ value: string;
17706
+ }> | null;
17707
+ label?: Array<{
17708
+ __typename?: 'LocalizedString';
17709
+ languageCode: LanguageCode;
17710
+ value: string;
17711
+ }> | null;
17712
+ };
16811
17713
  type CustomFields_TextCustomFieldConfig_Fragment = {
16812
17714
  __typename?: 'TextCustomFieldConfig';
16813
17715
  name: string;
@@ -16828,7 +17730,7 @@ type CustomFields_TextCustomFieldConfig_Fragment = {
16828
17730
  value: string;
16829
17731
  }> | null;
16830
17732
  };
16831
- export type CustomFieldsFragment = CustomFields_BooleanCustomFieldConfig_Fragment | CustomFields_DateTimeCustomFieldConfig_Fragment | CustomFields_FloatCustomFieldConfig_Fragment | CustomFields_IntCustomFieldConfig_Fragment | CustomFields_LocaleStringCustomFieldConfig_Fragment | CustomFields_LocaleTextCustomFieldConfig_Fragment | CustomFields_RelationCustomFieldConfig_Fragment | CustomFields_StringCustomFieldConfig_Fragment | CustomFields_TextCustomFieldConfig_Fragment;
17733
+ export type CustomFieldsFragment = CustomFields_BooleanCustomFieldConfig_Fragment | CustomFields_DateTimeCustomFieldConfig_Fragment | CustomFields_FloatCustomFieldConfig_Fragment | CustomFields_IntCustomFieldConfig_Fragment | CustomFields_LocaleStringCustomFieldConfig_Fragment | CustomFields_LocaleTextCustomFieldConfig_Fragment | CustomFields_RelationCustomFieldConfig_Fragment | CustomFields_StringCustomFieldConfig_Fragment | CustomFields_StructCustomFieldConfig_Fragment | CustomFields_TextCustomFieldConfig_Fragment;
16832
17734
  export type GetServerConfigQueryVariables = Exact<{
16833
17735
  [key: string]: never;
16834
17736
  }>;
@@ -17028,6 +17930,141 @@ export type GetServerConfigQuery = {
17028
17930
  languageCode: LanguageCode;
17029
17931
  value: string;
17030
17932
  }> | null;
17933
+ } | {
17934
+ __typename?: 'StructCustomFieldConfig';
17935
+ name: string;
17936
+ type: string;
17937
+ list: boolean;
17938
+ readonly?: boolean | null;
17939
+ nullable?: boolean | null;
17940
+ requiresPermission?: Array<Permission> | null;
17941
+ ui?: any | null;
17942
+ fields: Array<{
17943
+ __typename?: 'BooleanStructFieldConfig';
17944
+ name: string;
17945
+ type: string;
17946
+ list: boolean;
17947
+ ui?: any | null;
17948
+ description?: Array<{
17949
+ __typename?: 'LocalizedString';
17950
+ languageCode: LanguageCode;
17951
+ value: string;
17952
+ }> | null;
17953
+ label?: Array<{
17954
+ __typename?: 'LocalizedString';
17955
+ languageCode: LanguageCode;
17956
+ value: string;
17957
+ }> | null;
17958
+ } | {
17959
+ __typename?: 'DateTimeStructFieldConfig';
17960
+ name: string;
17961
+ type: string;
17962
+ list: boolean;
17963
+ ui?: any | null;
17964
+ datetimeMin?: string | null;
17965
+ datetimeMax?: string | null;
17966
+ datetimeStep?: number | null;
17967
+ description?: Array<{
17968
+ __typename?: 'LocalizedString';
17969
+ languageCode: LanguageCode;
17970
+ value: string;
17971
+ }> | null;
17972
+ label?: Array<{
17973
+ __typename?: 'LocalizedString';
17974
+ languageCode: LanguageCode;
17975
+ value: string;
17976
+ }> | null;
17977
+ } | {
17978
+ __typename?: 'FloatStructFieldConfig';
17979
+ name: string;
17980
+ type: string;
17981
+ list: boolean;
17982
+ ui?: any | null;
17983
+ floatMin?: number | null;
17984
+ floatMax?: number | null;
17985
+ floatStep?: number | null;
17986
+ description?: Array<{
17987
+ __typename?: 'LocalizedString';
17988
+ languageCode: LanguageCode;
17989
+ value: string;
17990
+ }> | null;
17991
+ label?: Array<{
17992
+ __typename?: 'LocalizedString';
17993
+ languageCode: LanguageCode;
17994
+ value: string;
17995
+ }> | null;
17996
+ } | {
17997
+ __typename?: 'IntStructFieldConfig';
17998
+ name: string;
17999
+ type: string;
18000
+ list: boolean;
18001
+ ui?: any | null;
18002
+ intMin?: number | null;
18003
+ intMax?: number | null;
18004
+ intStep?: number | null;
18005
+ description?: Array<{
18006
+ __typename?: 'LocalizedString';
18007
+ languageCode: LanguageCode;
18008
+ value: string;
18009
+ }> | null;
18010
+ label?: Array<{
18011
+ __typename?: 'LocalizedString';
18012
+ languageCode: LanguageCode;
18013
+ value: string;
18014
+ }> | null;
18015
+ } | {
18016
+ __typename?: 'StringStructFieldConfig';
18017
+ name: string;
18018
+ type: string;
18019
+ list: boolean;
18020
+ ui?: any | null;
18021
+ pattern?: string | null;
18022
+ description?: Array<{
18023
+ __typename?: 'LocalizedString';
18024
+ languageCode: LanguageCode;
18025
+ value: string;
18026
+ }> | null;
18027
+ label?: Array<{
18028
+ __typename?: 'LocalizedString';
18029
+ languageCode: LanguageCode;
18030
+ value: string;
18031
+ }> | null;
18032
+ options?: Array<{
18033
+ __typename?: 'StringFieldOption';
18034
+ value: string;
18035
+ label?: Array<{
18036
+ __typename?: 'LocalizedString';
18037
+ languageCode: LanguageCode;
18038
+ value: string;
18039
+ }> | null;
18040
+ }> | null;
18041
+ } | {
18042
+ __typename?: 'TextStructFieldConfig';
18043
+ name: string;
18044
+ type: string;
18045
+ list: boolean;
18046
+ ui?: any | null;
18047
+ description?: Array<{
18048
+ __typename?: 'LocalizedString';
18049
+ languageCode: LanguageCode;
18050
+ value: string;
18051
+ }> | null;
18052
+ label?: Array<{
18053
+ __typename?: 'LocalizedString';
18054
+ languageCode: LanguageCode;
18055
+ value: string;
18056
+ }> | null;
18057
+ }>;
18058
+ description?: Array<{
18059
+ __typename?: 'LocalizedString';
18060
+ languageCode: LanguageCode;
18061
+ value: string;
18062
+ }> | null;
18063
+ label?: Array<{
18064
+ __typename?: 'LocalizedString';
18065
+ languageCode: LanguageCode;
18066
+ value: string;
18067
+ }> | null;
17031
18068
  } | {
17032
18069
  __typename?: 'TextCustomFieldConfig';
17033
18070
  name: string;
@@ -17383,6 +18420,11 @@ type ErrorResult_NothingToRefundError_Fragment = {
17383
18420
  errorCode: ErrorCode;
17384
18421
  message: string;
17385
18422
  };
18423
+ type ErrorResult_OrderInterceptorError_Fragment = {
18424
+ __typename?: 'OrderInterceptorError';
18425
+ errorCode: ErrorCode;
18426
+ message: string;
18427
+ };
17386
18428
  type ErrorResult_OrderLimitError_Fragment = {
17387
18429
  __typename?: 'OrderLimitError';
17388
18430
  errorCode: ErrorCode;
@@ -17453,7 +18495,7 @@ type ErrorResult_SettlePaymentError_Fragment = {
17453
18495
  errorCode: ErrorCode;
17454
18496
  message: string;
17455
18497
  };
17456
- export type ErrorResultFragment = ErrorResult_AlreadyRefundedError_Fragment | ErrorResult_CancelActiveOrderError_Fragment | ErrorResult_CancelPaymentError_Fragment | ErrorResult_ChannelDefaultLanguageError_Fragment | ErrorResult_CouponCodeExpiredError_Fragment | ErrorResult_CouponCodeInvalidError_Fragment | ErrorResult_CouponCodeLimitError_Fragment | ErrorResult_CreateFulfillmentError_Fragment | ErrorResult_DuplicateEntityError_Fragment | ErrorResult_EmailAddressConflictError_Fragment | ErrorResult_EmptyOrderLineSelectionError_Fragment | ErrorResult_FacetInUseError_Fragment | ErrorResult_FulfillmentStateTransitionError_Fragment | ErrorResult_GuestCheckoutError_Fragment | ErrorResult_IneligibleShippingMethodError_Fragment | ErrorResult_InsufficientStockError_Fragment | ErrorResult_InsufficientStockOnHandError_Fragment | ErrorResult_InvalidCredentialsError_Fragment | ErrorResult_InvalidFulfillmentHandlerError_Fragment | ErrorResult_ItemsAlreadyFulfilledError_Fragment | ErrorResult_LanguageNotAvailableError_Fragment | ErrorResult_ManualPaymentStateError_Fragment | ErrorResult_MimeTypeError_Fragment | ErrorResult_MissingConditionsError_Fragment | ErrorResult_MultipleOrderError_Fragment | ErrorResult_NativeAuthStrategyError_Fragment | ErrorResult_NegativeQuantityError_Fragment | ErrorResult_NoActiveOrderError_Fragment | ErrorResult_NoChangesSpecifiedError_Fragment | ErrorResult_NothingToRefundError_Fragment | ErrorResult_OrderLimitError_Fragment | ErrorResult_OrderModificationError_Fragment | ErrorResult_OrderModificationStateError_Fragment | ErrorResult_OrderStateTransitionError_Fragment | ErrorResult_PaymentMethodMissingError_Fragment | ErrorResult_PaymentOrderMismatchError_Fragment | ErrorResult_PaymentStateTransitionError_Fragment | ErrorResult_ProductOptionInUseError_Fragment | ErrorResult_QuantityTooGreatError_Fragment | ErrorResult_RefundAmountError_Fragment | ErrorResult_RefundOrderStateError_Fragment | ErrorResult_RefundPaymentIdMissingError_Fragment | ErrorResult_RefundStateTransitionError_Fragment | ErrorResult_SettlePaymentError_Fragment;
18498
+ export type ErrorResultFragment = ErrorResult_AlreadyRefundedError_Fragment | ErrorResult_CancelActiveOrderError_Fragment | ErrorResult_CancelPaymentError_Fragment | ErrorResult_ChannelDefaultLanguageError_Fragment | ErrorResult_CouponCodeExpiredError_Fragment | ErrorResult_CouponCodeInvalidError_Fragment | ErrorResult_CouponCodeLimitError_Fragment | ErrorResult_CreateFulfillmentError_Fragment | ErrorResult_DuplicateEntityError_Fragment | ErrorResult_EmailAddressConflictError_Fragment | ErrorResult_EmptyOrderLineSelectionError_Fragment | ErrorResult_FacetInUseError_Fragment | ErrorResult_FulfillmentStateTransitionError_Fragment | ErrorResult_GuestCheckoutError_Fragment | ErrorResult_IneligibleShippingMethodError_Fragment | ErrorResult_InsufficientStockError_Fragment | ErrorResult_InsufficientStockOnHandError_Fragment | ErrorResult_InvalidCredentialsError_Fragment | ErrorResult_InvalidFulfillmentHandlerError_Fragment | ErrorResult_ItemsAlreadyFulfilledError_Fragment | ErrorResult_LanguageNotAvailableError_Fragment | ErrorResult_ManualPaymentStateError_Fragment | ErrorResult_MimeTypeError_Fragment | ErrorResult_MissingConditionsError_Fragment | ErrorResult_MultipleOrderError_Fragment | ErrorResult_NativeAuthStrategyError_Fragment | ErrorResult_NegativeQuantityError_Fragment | ErrorResult_NoActiveOrderError_Fragment | ErrorResult_NoChangesSpecifiedError_Fragment | ErrorResult_NothingToRefundError_Fragment | ErrorResult_OrderInterceptorError_Fragment | ErrorResult_OrderLimitError_Fragment | ErrorResult_OrderModificationError_Fragment | ErrorResult_OrderModificationStateError_Fragment | ErrorResult_OrderStateTransitionError_Fragment | ErrorResult_PaymentMethodMissingError_Fragment | ErrorResult_PaymentOrderMismatchError_Fragment | ErrorResult_PaymentStateTransitionError_Fragment | ErrorResult_ProductOptionInUseError_Fragment | ErrorResult_QuantityTooGreatError_Fragment | ErrorResult_RefundAmountError_Fragment | ErrorResult_RefundOrderStateError_Fragment | ErrorResult_RefundPaymentIdMissingError_Fragment | ErrorResult_RefundStateTransitionError_Fragment | ErrorResult_SettlePaymentError_Fragment;
17457
18499
  export type ShippingMethodFragment = {
17458
18500
  __typename?: 'ShippingMethod';
17459
18501
  id: string;
@@ -19353,6 +20395,7 @@ export declare const IntCustomFieldFragmentDoc: DocumentNode<IntCustomFieldFragm
19353
20395
  export declare const FloatCustomFieldFragmentDoc: DocumentNode<FloatCustomFieldFragment, unknown>;
19354
20396
  export declare const DateTimeCustomFieldFragmentDoc: DocumentNode<DateTimeCustomFieldFragment, unknown>;
19355
20397
  export declare const RelationCustomFieldFragmentDoc: DocumentNode<RelationCustomFieldFragment, unknown>;
20398
+ export declare const StructCustomFieldFragmentDoc: DocumentNode<StructCustomFieldFragment, unknown>;
19356
20399
  export declare const CustomFieldsFragmentDoc: DocumentNode<CustomFieldsFragment, unknown>;
19357
20400
  export declare const JobInfoFragmentDoc: DocumentNode<JobInfoFragment, unknown>;
19358
20401
  export declare const ConfigurableOperationDefFragmentDoc: DocumentNode<ConfigurableOperationDefFragment, unknown>;
@@ -19736,6 +20779,12 @@ export declare const SetDraftOrderBillingAddressDocument: DocumentNode<SetDraftO
19736
20779
  orderId: Scalars['ID']['input'];
19737
20780
  input: CreateAddressInput;
19738
20781
  }>>;
20782
+ export declare const UnsetDraftOrderShippingAddressDocument: DocumentNode<UnsetDraftOrderShippingAddressMutation, Exact<{
20783
+ orderId: Scalars['ID']['input'];
20784
+ }>>;
20785
+ export declare const UnsetDraftOrderBillingAddressDocument: DocumentNode<UnsetDraftOrderBillingAddressMutation, Exact<{
20786
+ orderId: Scalars['ID']['input'];
20787
+ }>>;
19739
20788
  export declare const ApplyCouponCodeToDraftOrderDocument: DocumentNode<ApplyCouponCodeToDraftOrderMutation, Exact<{
19740
20789
  orderId: Scalars['ID']['input'];
19741
20790
  couponCode: Scalars['String']['input'];