@vendure/common 2.0.0-next.1 → 2.0.0-next.12

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.
@@ -1,4 +1,5 @@
1
1
  export declare type Maybe<T> = T;
2
+ export declare type InputMaybe<T> = T;
2
3
  export declare type Exact<T extends {
3
4
  [key: string]: unknown;
4
5
  }> = {
@@ -24,37 +25,37 @@ export declare type Scalars = {
24
25
  /** The `Upload` scalar type represents a file upload. */
25
26
  Upload: any;
26
27
  };
27
- export declare type ActiveOrderResult = Order | NoActiveOrderError;
28
- export declare type AddPaymentToOrderResult = Order | OrderPaymentStateError | IneligiblePaymentMethodError | PaymentFailedError | PaymentDeclinedError | OrderStateTransitionError | NoActiveOrderError;
28
+ export declare type ActiveOrderResult = NoActiveOrderError | Order;
29
+ export declare type AddPaymentToOrderResult = IneligiblePaymentMethodError | NoActiveOrderError | Order | OrderPaymentStateError | OrderStateTransitionError | PaymentDeclinedError | PaymentFailedError;
29
30
  export declare type Address = Node & {
30
31
  __typename?: 'Address';
31
- id: Scalars['ID'];
32
+ city?: Maybe<Scalars['String']>;
33
+ company?: Maybe<Scalars['String']>;
34
+ country: Country;
32
35
  createdAt: Scalars['DateTime'];
33
- updatedAt: Scalars['DateTime'];
36
+ customFields?: Maybe<Scalars['JSON']>;
37
+ defaultBillingAddress?: Maybe<Scalars['Boolean']>;
38
+ defaultShippingAddress?: Maybe<Scalars['Boolean']>;
34
39
  fullName?: Maybe<Scalars['String']>;
35
- company?: Maybe<Scalars['String']>;
40
+ id: Scalars['ID'];
41
+ phoneNumber?: Maybe<Scalars['String']>;
42
+ postalCode?: Maybe<Scalars['String']>;
43
+ province?: Maybe<Scalars['String']>;
36
44
  streetLine1: Scalars['String'];
37
45
  streetLine2?: Maybe<Scalars['String']>;
38
- city?: Maybe<Scalars['String']>;
39
- province?: Maybe<Scalars['String']>;
40
- postalCode?: Maybe<Scalars['String']>;
41
- country: Country;
42
- phoneNumber?: Maybe<Scalars['String']>;
43
- defaultShippingAddress?: Maybe<Scalars['Boolean']>;
44
- defaultBillingAddress?: Maybe<Scalars['Boolean']>;
45
- customFields?: Maybe<Scalars['JSON']>;
46
+ updatedAt: Scalars['DateTime'];
46
47
  };
47
48
  export declare type Adjustment = {
48
49
  __typename?: 'Adjustment';
49
50
  adjustmentSource: Scalars['String'];
50
- type: AdjustmentType;
51
- description: Scalars['String'];
52
51
  amount: Scalars['Int'];
52
+ description: Scalars['String'];
53
+ type: AdjustmentType;
53
54
  };
54
55
  export declare enum AdjustmentType {
55
- PROMOTION = "PROMOTION",
56
56
  DISTRIBUTED_ORDER_PROMOTION = "DISTRIBUTED_ORDER_PROMOTION",
57
- OTHER = "OTHER"
57
+ OTHER = "OTHER",
58
+ PROMOTION = "PROMOTION"
58
59
  }
59
60
  /** Returned when attempting to set the Customer for an Order when already logged in. */
60
61
  export declare type AlreadyLoggedInError = ErrorResult & {
@@ -62,22 +63,22 @@ export declare type AlreadyLoggedInError = ErrorResult & {
62
63
  errorCode: ErrorCode;
63
64
  message: Scalars['String'];
64
65
  };
65
- export declare type ApplyCouponCodeResult = Order | CouponCodeExpiredError | CouponCodeInvalidError | CouponCodeLimitError;
66
+ export declare type ApplyCouponCodeResult = CouponCodeExpiredError | CouponCodeInvalidError | CouponCodeLimitError | Order;
66
67
  export declare type Asset = Node & {
67
68
  __typename?: 'Asset';
68
- id: Scalars['ID'];
69
69
  createdAt: Scalars['DateTime'];
70
- updatedAt: Scalars['DateTime'];
71
- name: Scalars['String'];
72
- type: AssetType;
70
+ customFields?: Maybe<Scalars['JSON']>;
73
71
  fileSize: Scalars['Int'];
74
- mimeType: Scalars['String'];
75
- width: Scalars['Int'];
72
+ focalPoint?: Maybe<Coordinate>;
76
73
  height: Scalars['Int'];
77
- source: Scalars['String'];
74
+ id: Scalars['ID'];
75
+ mimeType: Scalars['String'];
76
+ name: Scalars['String'];
78
77
  preview: Scalars['String'];
79
- focalPoint?: Maybe<Coordinate>;
80
- customFields?: Maybe<Scalars['JSON']>;
78
+ source: Scalars['String'];
79
+ type: AssetType;
80
+ updatedAt: Scalars['DateTime'];
81
+ width: Scalars['Int'];
81
82
  };
82
83
  export declare type AssetList = PaginatedList & {
83
84
  __typename?: 'AssetList';
@@ -85,31 +86,31 @@ export declare type AssetList = PaginatedList & {
85
86
  totalItems: Scalars['Int'];
86
87
  };
87
88
  export declare enum AssetType {
89
+ BINARY = "BINARY",
88
90
  IMAGE = "IMAGE",
89
- VIDEO = "VIDEO",
90
- BINARY = "BINARY"
91
+ VIDEO = "VIDEO"
91
92
  }
92
93
  export declare type AuthenticationInput = {
93
- native?: Maybe<NativeAuthInput>;
94
+ native?: InputMaybe<NativeAuthInput>;
94
95
  };
95
96
  export declare type AuthenticationMethod = Node & {
96
97
  __typename?: 'AuthenticationMethod';
97
- id: Scalars['ID'];
98
98
  createdAt: Scalars['DateTime'];
99
- updatedAt: Scalars['DateTime'];
99
+ id: Scalars['ID'];
100
100
  strategy: Scalars['String'];
101
+ updatedAt: Scalars['DateTime'];
101
102
  };
102
103
  export declare type AuthenticationResult = CurrentUser | InvalidCredentialsError | NotVerifiedError;
103
104
  export declare type BooleanCustomFieldConfig = CustomField & {
104
105
  __typename?: 'BooleanCustomFieldConfig';
105
- name: Scalars['String'];
106
- type: Scalars['String'];
107
- list: Scalars['Boolean'];
108
- label?: Maybe<Array<LocalizedString>>;
109
106
  description?: Maybe<Array<LocalizedString>>;
110
- readonly?: Maybe<Scalars['Boolean']>;
111
107
  internal?: Maybe<Scalars['Boolean']>;
108
+ label?: Maybe<Array<LocalizedString>>;
109
+ list: Scalars['Boolean'];
110
+ name: Scalars['String'];
112
111
  nullable?: Maybe<Scalars['Boolean']>;
112
+ readonly?: Maybe<Scalars['Boolean']>;
113
+ type: Scalars['String'];
113
114
  ui?: Maybe<Scalars['JSON']>;
114
115
  };
115
116
  /** Operators for filtering on a list of Boolean fields */
@@ -118,44 +119,44 @@ export declare type BooleanListOperators = {
118
119
  };
119
120
  /** Operators for filtering on a Boolean field */
120
121
  export declare type BooleanOperators = {
121
- eq?: Maybe<Scalars['Boolean']>;
122
+ eq?: InputMaybe<Scalars['Boolean']>;
122
123
  };
123
124
  export declare type Channel = Node & {
124
125
  __typename?: 'Channel';
125
- id: Scalars['ID'];
126
- createdAt: Scalars['DateTime'];
127
- updatedAt: Scalars['DateTime'];
128
126
  code: Scalars['String'];
129
- token: Scalars['String'];
130
- defaultTaxZone?: Maybe<Zone>;
131
- defaultShippingZone?: Maybe<Zone>;
132
- defaultLanguageCode: LanguageCode;
127
+ createdAt: Scalars['DateTime'];
133
128
  currencyCode: CurrencyCode;
134
- pricesIncludeTax: Scalars['Boolean'];
135
129
  customFields?: Maybe<Scalars['JSON']>;
130
+ defaultLanguageCode: LanguageCode;
131
+ defaultShippingZone?: Maybe<Zone>;
132
+ defaultTaxZone?: Maybe<Zone>;
133
+ id: Scalars['ID'];
134
+ pricesIncludeTax: Scalars['Boolean'];
135
+ token: Scalars['String'];
136
+ updatedAt: Scalars['DateTime'];
136
137
  };
137
138
  export declare type Collection = Node & {
138
139
  __typename?: 'Collection';
139
- id: Scalars['ID'];
140
- createdAt: Scalars['DateTime'];
141
- updatedAt: Scalars['DateTime'];
142
- languageCode?: Maybe<LanguageCode>;
143
- name: Scalars['String'];
144
- slug: Scalars['String'];
140
+ assets: Array<Asset>;
145
141
  breadcrumbs: Array<CollectionBreadcrumb>;
146
- position: Scalars['Int'];
142
+ children?: Maybe<Array<Collection>>;
143
+ createdAt: Scalars['DateTime'];
144
+ customFields?: Maybe<Scalars['JSON']>;
147
145
  description: Scalars['String'];
148
146
  featuredAsset?: Maybe<Asset>;
149
- assets: Array<Asset>;
150
- parent?: Maybe<Collection>;
151
- children?: Maybe<Array<Collection>>;
152
147
  filters: Array<ConfigurableOperation>;
153
- translations: Array<CollectionTranslation>;
148
+ id: Scalars['ID'];
149
+ languageCode?: Maybe<LanguageCode>;
150
+ name: Scalars['String'];
151
+ parent?: Maybe<Collection>;
152
+ position: Scalars['Int'];
154
153
  productVariants: ProductVariantList;
155
- customFields?: Maybe<Scalars['JSON']>;
154
+ slug: Scalars['String'];
155
+ translations: Array<CollectionTranslation>;
156
+ updatedAt: Scalars['DateTime'];
156
157
  };
157
158
  export declare type CollectionProductVariantsArgs = {
158
- options?: Maybe<ProductVariantListOptions>;
159
+ options?: InputMaybe<ProductVariantListOptions>;
159
160
  };
160
161
  export declare type CollectionBreadcrumb = {
161
162
  __typename?: 'CollectionBreadcrumb';
@@ -164,14 +165,14 @@ export declare type CollectionBreadcrumb = {
164
165
  slug: Scalars['String'];
165
166
  };
166
167
  export declare type CollectionFilterParameter = {
167
- id?: Maybe<IdOperators>;
168
- createdAt?: Maybe<DateOperators>;
169
- updatedAt?: Maybe<DateOperators>;
170
- languageCode?: Maybe<StringOperators>;
171
- name?: Maybe<StringOperators>;
172
- slug?: Maybe<StringOperators>;
173
- position?: Maybe<NumberOperators>;
174
- description?: Maybe<StringOperators>;
168
+ createdAt?: InputMaybe<DateOperators>;
169
+ description?: InputMaybe<StringOperators>;
170
+ id?: InputMaybe<IdOperators>;
171
+ languageCode?: InputMaybe<StringOperators>;
172
+ name?: InputMaybe<StringOperators>;
173
+ position?: InputMaybe<NumberOperators>;
174
+ slug?: InputMaybe<StringOperators>;
175
+ updatedAt?: InputMaybe<DateOperators>;
175
176
  };
176
177
  export declare type CollectionList = PaginatedList & {
177
178
  __typename?: 'CollectionList';
@@ -179,16 +180,16 @@ export declare type CollectionList = PaginatedList & {
179
180
  totalItems: Scalars['Int'];
180
181
  };
181
182
  export declare type CollectionListOptions = {
182
- /** Skips the first n results, for use in pagination */
183
- skip?: Maybe<Scalars['Int']>;
184
- /** Takes n results, for use in pagination */
185
- take?: Maybe<Scalars['Int']>;
186
- /** Specifies which properties to sort the results by */
187
- sort?: Maybe<CollectionSortParameter>;
188
183
  /** Allows the results to be filtered */
189
- filter?: Maybe<CollectionFilterParameter>;
184
+ filter?: InputMaybe<CollectionFilterParameter>;
190
185
  /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */
191
- filterOperator?: Maybe<LogicalOperator>;
186
+ filterOperator?: InputMaybe<LogicalOperator>;
187
+ /** Skips the first n results, for use in pagination */
188
+ skip?: InputMaybe<Scalars['Int']>;
189
+ /** Specifies which properties to sort the results by */
190
+ sort?: InputMaybe<CollectionSortParameter>;
191
+ /** Takes n results, for use in pagination */
192
+ take?: InputMaybe<Scalars['Int']>;
192
193
  };
193
194
  /**
194
195
  * Which Collections are present in the products returned
@@ -200,23 +201,23 @@ export declare type CollectionResult = {
200
201
  count: Scalars['Int'];
201
202
  };
202
203
  export declare type CollectionSortParameter = {
203
- id?: Maybe<SortOrder>;
204
- createdAt?: Maybe<SortOrder>;
205
- updatedAt?: Maybe<SortOrder>;
206
- name?: Maybe<SortOrder>;
207
- slug?: Maybe<SortOrder>;
208
- position?: Maybe<SortOrder>;
209
- description?: Maybe<SortOrder>;
204
+ createdAt?: InputMaybe<SortOrder>;
205
+ description?: InputMaybe<SortOrder>;
206
+ id?: InputMaybe<SortOrder>;
207
+ name?: InputMaybe<SortOrder>;
208
+ position?: InputMaybe<SortOrder>;
209
+ slug?: InputMaybe<SortOrder>;
210
+ updatedAt?: InputMaybe<SortOrder>;
210
211
  };
211
212
  export declare type CollectionTranslation = {
212
213
  __typename?: 'CollectionTranslation';
213
- id: Scalars['ID'];
214
214
  createdAt: Scalars['DateTime'];
215
- updatedAt: Scalars['DateTime'];
215
+ description: Scalars['String'];
216
+ id: Scalars['ID'];
216
217
  languageCode: LanguageCode;
217
218
  name: Scalars['String'];
218
219
  slug: Scalars['String'];
219
- description: Scalars['String'];
220
+ updatedAt: Scalars['DateTime'];
220
221
  };
221
222
  export declare type ConfigArg = {
222
223
  __typename?: 'ConfigArg';
@@ -225,13 +226,13 @@ export declare type ConfigArg = {
225
226
  };
226
227
  export declare type ConfigArgDefinition = {
227
228
  __typename?: 'ConfigArgDefinition';
228
- name: Scalars['String'];
229
- type: Scalars['String'];
230
- list: Scalars['Boolean'];
231
- required: Scalars['Boolean'];
232
229
  defaultValue?: Maybe<Scalars['JSON']>;
233
- label?: Maybe<Scalars['String']>;
234
230
  description?: Maybe<Scalars['String']>;
231
+ label?: Maybe<Scalars['String']>;
232
+ list: Scalars['Boolean'];
233
+ name: Scalars['String'];
234
+ required: Scalars['Boolean'];
235
+ type: Scalars['String'];
235
236
  ui?: Maybe<Scalars['JSON']>;
236
237
  };
237
238
  export declare type ConfigArgInput = {
@@ -241,18 +242,18 @@ export declare type ConfigArgInput = {
241
242
  };
242
243
  export declare type ConfigurableOperation = {
243
244
  __typename?: 'ConfigurableOperation';
244
- code: Scalars['String'];
245
245
  args: Array<ConfigArg>;
246
+ code: Scalars['String'];
246
247
  };
247
248
  export declare type ConfigurableOperationDefinition = {
248
249
  __typename?: 'ConfigurableOperationDefinition';
249
- code: Scalars['String'];
250
250
  args: Array<ConfigArgDefinition>;
251
+ code: Scalars['String'];
251
252
  description: Scalars['String'];
252
253
  };
253
254
  export declare type ConfigurableOperationInput = {
254
- code: Scalars['String'];
255
255
  arguments: Array<ConfigArgInput>;
256
+ code: Scalars['String'];
256
257
  };
257
258
  export declare type Coordinate = {
258
259
  __typename?: 'Coordinate';
@@ -261,15 +262,15 @@ export declare type Coordinate = {
261
262
  };
262
263
  export declare type Country = Node & {
263
264
  __typename?: 'Country';
264
- id: Scalars['ID'];
265
+ code: Scalars['String'];
265
266
  createdAt: Scalars['DateTime'];
266
- updatedAt: Scalars['DateTime'];
267
+ customFields?: Maybe<Scalars['JSON']>;
268
+ enabled: Scalars['Boolean'];
269
+ id: Scalars['ID'];
267
270
  languageCode: LanguageCode;
268
- code: Scalars['String'];
269
271
  name: Scalars['String'];
270
- enabled: Scalars['Boolean'];
271
272
  translations: Array<CountryTranslation>;
272
- customFields?: Maybe<Scalars['JSON']>;
273
+ updatedAt: Scalars['DateTime'];
273
274
  };
274
275
  export declare type CountryList = PaginatedList & {
275
276
  __typename?: 'CountryList';
@@ -278,55 +279,55 @@ export declare type CountryList = PaginatedList & {
278
279
  };
279
280
  export declare type CountryTranslation = {
280
281
  __typename?: 'CountryTranslation';
281
- id: Scalars['ID'];
282
282
  createdAt: Scalars['DateTime'];
283
- updatedAt: Scalars['DateTime'];
283
+ id: Scalars['ID'];
284
284
  languageCode: LanguageCode;
285
285
  name: Scalars['String'];
286
+ updatedAt: Scalars['DateTime'];
286
287
  };
287
288
  /** Returned if the provided coupon code is invalid */
288
289
  export declare type CouponCodeExpiredError = ErrorResult & {
289
290
  __typename?: 'CouponCodeExpiredError';
291
+ couponCode: Scalars['String'];
290
292
  errorCode: ErrorCode;
291
293
  message: Scalars['String'];
292
- couponCode: Scalars['String'];
293
294
  };
294
295
  /** Returned if the provided coupon code is invalid */
295
296
  export declare type CouponCodeInvalidError = ErrorResult & {
296
297
  __typename?: 'CouponCodeInvalidError';
298
+ couponCode: Scalars['String'];
297
299
  errorCode: ErrorCode;
298
300
  message: Scalars['String'];
299
- couponCode: Scalars['String'];
300
301
  };
301
302
  /** Returned if the provided coupon code is invalid */
302
303
  export declare type CouponCodeLimitError = ErrorResult & {
303
304
  __typename?: 'CouponCodeLimitError';
304
- errorCode: ErrorCode;
305
- message: Scalars['String'];
306
305
  couponCode: Scalars['String'];
306
+ errorCode: ErrorCode;
307
307
  limit: Scalars['Int'];
308
+ message: Scalars['String'];
308
309
  };
309
310
  export declare type CreateAddressInput = {
310
- fullName?: Maybe<Scalars['String']>;
311
- company?: Maybe<Scalars['String']>;
312
- streetLine1: Scalars['String'];
313
- streetLine2?: Maybe<Scalars['String']>;
314
- city?: Maybe<Scalars['String']>;
315
- province?: Maybe<Scalars['String']>;
316
- postalCode?: Maybe<Scalars['String']>;
311
+ city?: InputMaybe<Scalars['String']>;
312
+ company?: InputMaybe<Scalars['String']>;
317
313
  countryCode: Scalars['String'];
318
- phoneNumber?: Maybe<Scalars['String']>;
319
- defaultShippingAddress?: Maybe<Scalars['Boolean']>;
320
- defaultBillingAddress?: Maybe<Scalars['Boolean']>;
321
- customFields?: Maybe<Scalars['JSON']>;
314
+ customFields?: InputMaybe<Scalars['JSON']>;
315
+ defaultBillingAddress?: InputMaybe<Scalars['Boolean']>;
316
+ defaultShippingAddress?: InputMaybe<Scalars['Boolean']>;
317
+ fullName?: InputMaybe<Scalars['String']>;
318
+ phoneNumber?: InputMaybe<Scalars['String']>;
319
+ postalCode?: InputMaybe<Scalars['String']>;
320
+ province?: InputMaybe<Scalars['String']>;
321
+ streetLine1: Scalars['String'];
322
+ streetLine2?: InputMaybe<Scalars['String']>;
322
323
  };
323
324
  export declare type CreateCustomerInput = {
324
- title?: Maybe<Scalars['String']>;
325
+ customFields?: InputMaybe<Scalars['JSON']>;
326
+ emailAddress: Scalars['String'];
325
327
  firstName: Scalars['String'];
326
328
  lastName: Scalars['String'];
327
- phoneNumber?: Maybe<Scalars['String']>;
328
- emailAddress: Scalars['String'];
329
- customFields?: Maybe<Scalars['JSON']>;
329
+ phoneNumber?: InputMaybe<Scalars['String']>;
330
+ title?: InputMaybe<Scalars['String']>;
330
331
  };
331
332
  /**
332
333
  * @description
@@ -652,68 +653,68 @@ export declare enum CurrencyCode {
652
653
  }
653
654
  export declare type CurrentUser = {
654
655
  __typename?: 'CurrentUser';
656
+ channels: Array<CurrentUserChannel>;
655
657
  id: Scalars['ID'];
656
658
  identifier: Scalars['String'];
657
- channels: Array<CurrentUserChannel>;
658
659
  };
659
660
  export declare type CurrentUserChannel = {
660
661
  __typename?: 'CurrentUserChannel';
661
- id: Scalars['ID'];
662
- token: Scalars['String'];
663
662
  code: Scalars['String'];
663
+ id: Scalars['ID'];
664
664
  permissions: Array<Permission>;
665
+ token: Scalars['String'];
665
666
  };
666
667
  export declare type CustomField = {
667
- name: Scalars['String'];
668
- type: Scalars['String'];
669
- list: Scalars['Boolean'];
670
- label?: Maybe<Array<LocalizedString>>;
671
668
  description?: Maybe<Array<LocalizedString>>;
672
- readonly?: Maybe<Scalars['Boolean']>;
673
669
  internal?: Maybe<Scalars['Boolean']>;
670
+ label?: Maybe<Array<LocalizedString>>;
671
+ list: Scalars['Boolean'];
672
+ name: Scalars['String'];
674
673
  nullable?: Maybe<Scalars['Boolean']>;
674
+ readonly?: Maybe<Scalars['Boolean']>;
675
+ type: Scalars['String'];
675
676
  ui?: Maybe<Scalars['JSON']>;
676
677
  };
677
- export declare type CustomFieldConfig = StringCustomFieldConfig | LocaleStringCustomFieldConfig | IntCustomFieldConfig | FloatCustomFieldConfig | BooleanCustomFieldConfig | DateTimeCustomFieldConfig | RelationCustomFieldConfig | TextCustomFieldConfig;
678
+ export declare type CustomFieldConfig = BooleanCustomFieldConfig | DateTimeCustomFieldConfig | FloatCustomFieldConfig | IntCustomFieldConfig | LocaleStringCustomFieldConfig | RelationCustomFieldConfig | StringCustomFieldConfig | TextCustomFieldConfig;
678
679
  export declare type Customer = Node & {
679
680
  __typename?: 'Customer';
680
- id: Scalars['ID'];
681
+ addresses?: Maybe<Array<Address>>;
681
682
  createdAt: Scalars['DateTime'];
682
- updatedAt: Scalars['DateTime'];
683
- title?: Maybe<Scalars['String']>;
683
+ customFields?: Maybe<Scalars['JSON']>;
684
+ emailAddress: Scalars['String'];
684
685
  firstName: Scalars['String'];
686
+ id: Scalars['ID'];
685
687
  lastName: Scalars['String'];
686
- phoneNumber?: Maybe<Scalars['String']>;
687
- emailAddress: Scalars['String'];
688
- addresses?: Maybe<Array<Address>>;
689
688
  orders: OrderList;
689
+ phoneNumber?: Maybe<Scalars['String']>;
690
+ title?: Maybe<Scalars['String']>;
691
+ updatedAt: Scalars['DateTime'];
690
692
  user?: Maybe<User>;
691
- customFields?: Maybe<Scalars['JSON']>;
692
693
  };
693
694
  export declare type CustomerOrdersArgs = {
694
- options?: Maybe<OrderListOptions>;
695
+ options?: InputMaybe<OrderListOptions>;
695
696
  };
696
697
  export declare type CustomerFilterParameter = {
697
- id?: Maybe<IdOperators>;
698
- createdAt?: Maybe<DateOperators>;
699
- updatedAt?: Maybe<DateOperators>;
700
- title?: Maybe<StringOperators>;
701
- firstName?: Maybe<StringOperators>;
702
- lastName?: Maybe<StringOperators>;
703
- phoneNumber?: Maybe<StringOperators>;
704
- emailAddress?: Maybe<StringOperators>;
698
+ createdAt?: InputMaybe<DateOperators>;
699
+ emailAddress?: InputMaybe<StringOperators>;
700
+ firstName?: InputMaybe<StringOperators>;
701
+ id?: InputMaybe<IdOperators>;
702
+ lastName?: InputMaybe<StringOperators>;
703
+ phoneNumber?: InputMaybe<StringOperators>;
704
+ title?: InputMaybe<StringOperators>;
705
+ updatedAt?: InputMaybe<DateOperators>;
705
706
  };
706
707
  export declare type CustomerGroup = Node & {
707
708
  __typename?: 'CustomerGroup';
708
- id: Scalars['ID'];
709
709
  createdAt: Scalars['DateTime'];
710
- updatedAt: Scalars['DateTime'];
711
- name: Scalars['String'];
712
- customers: CustomerList;
713
710
  customFields?: Maybe<Scalars['JSON']>;
711
+ customers: CustomerList;
712
+ id: Scalars['ID'];
713
+ name: Scalars['String'];
714
+ updatedAt: Scalars['DateTime'];
714
715
  };
715
716
  export declare type CustomerGroupCustomersArgs = {
716
- options?: Maybe<CustomerListOptions>;
717
+ options?: InputMaybe<CustomerListOptions>;
717
718
  };
718
719
  export declare type CustomerList = PaginatedList & {
719
720
  __typename?: 'CustomerList';
@@ -721,26 +722,26 @@ export declare type CustomerList = PaginatedList & {
721
722
  totalItems: Scalars['Int'];
722
723
  };
723
724
  export declare type CustomerListOptions = {
724
- /** Skips the first n results, for use in pagination */
725
- skip?: Maybe<Scalars['Int']>;
726
- /** Takes n results, for use in pagination */
727
- take?: Maybe<Scalars['Int']>;
728
- /** Specifies which properties to sort the results by */
729
- sort?: Maybe<CustomerSortParameter>;
730
725
  /** Allows the results to be filtered */
731
- filter?: Maybe<CustomerFilterParameter>;
726
+ filter?: InputMaybe<CustomerFilterParameter>;
732
727
  /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */
733
- filterOperator?: Maybe<LogicalOperator>;
728
+ filterOperator?: InputMaybe<LogicalOperator>;
729
+ /** Skips the first n results, for use in pagination */
730
+ skip?: InputMaybe<Scalars['Int']>;
731
+ /** Specifies which properties to sort the results by */
732
+ sort?: InputMaybe<CustomerSortParameter>;
733
+ /** Takes n results, for use in pagination */
734
+ take?: InputMaybe<Scalars['Int']>;
734
735
  };
735
736
  export declare type CustomerSortParameter = {
736
- id?: Maybe<SortOrder>;
737
- createdAt?: Maybe<SortOrder>;
738
- updatedAt?: Maybe<SortOrder>;
739
- title?: Maybe<SortOrder>;
740
- firstName?: Maybe<SortOrder>;
741
- lastName?: Maybe<SortOrder>;
742
- phoneNumber?: Maybe<SortOrder>;
743
- emailAddress?: Maybe<SortOrder>;
737
+ createdAt?: InputMaybe<SortOrder>;
738
+ emailAddress?: InputMaybe<SortOrder>;
739
+ firstName?: InputMaybe<SortOrder>;
740
+ id?: InputMaybe<SortOrder>;
741
+ lastName?: InputMaybe<SortOrder>;
742
+ phoneNumber?: InputMaybe<SortOrder>;
743
+ title?: InputMaybe<SortOrder>;
744
+ updatedAt?: InputMaybe<SortOrder>;
744
745
  };
745
746
  /** Operators for filtering on a list of Date fields */
746
747
  export declare type DateListOperators = {
@@ -748,14 +749,14 @@ export declare type DateListOperators = {
748
749
  };
749
750
  /** Operators for filtering on a DateTime field */
750
751
  export declare type DateOperators = {
751
- eq?: Maybe<Scalars['DateTime']>;
752
- before?: Maybe<Scalars['DateTime']>;
753
- after?: Maybe<Scalars['DateTime']>;
754
- between?: Maybe<DateRange>;
752
+ after?: InputMaybe<Scalars['DateTime']>;
753
+ before?: InputMaybe<Scalars['DateTime']>;
754
+ between?: InputMaybe<DateRange>;
755
+ eq?: InputMaybe<Scalars['DateTime']>;
755
756
  };
756
757
  export declare type DateRange = {
757
- start: Scalars['DateTime'];
758
758
  end: Scalars['DateTime'];
759
+ start: Scalars['DateTime'];
759
760
  };
760
761
  /**
761
762
  * Expects the same validation formats as the `<input type="datetime-local">` HTML element.
@@ -763,23 +764,23 @@ export declare type DateRange = {
763
764
  */
764
765
  export declare type DateTimeCustomFieldConfig = CustomField & {
765
766
  __typename?: 'DateTimeCustomFieldConfig';
766
- name: Scalars['String'];
767
- type: Scalars['String'];
768
- list: Scalars['Boolean'];
769
- label?: Maybe<Array<LocalizedString>>;
770
767
  description?: Maybe<Array<LocalizedString>>;
771
- readonly?: Maybe<Scalars['Boolean']>;
772
768
  internal?: Maybe<Scalars['Boolean']>;
773
- nullable?: Maybe<Scalars['Boolean']>;
774
- min?: Maybe<Scalars['String']>;
769
+ label?: Maybe<Array<LocalizedString>>;
770
+ list: Scalars['Boolean'];
775
771
  max?: Maybe<Scalars['String']>;
772
+ min?: Maybe<Scalars['String']>;
773
+ name: Scalars['String'];
774
+ nullable?: Maybe<Scalars['Boolean']>;
775
+ readonly?: Maybe<Scalars['Boolean']>;
776
776
  step?: Maybe<Scalars['Int']>;
777
+ type: Scalars['String'];
777
778
  ui?: Maybe<Scalars['JSON']>;
778
779
  };
779
780
  export declare type DeletionResponse = {
780
781
  __typename?: 'DeletionResponse';
781
- result: DeletionResult;
782
782
  message?: Maybe<Scalars['String']>;
783
+ result: DeletionResult;
783
784
  };
784
785
  export declare enum DeletionResult {
785
786
  /** The entity was successfully deleted */
@@ -790,10 +791,10 @@ export declare enum DeletionResult {
790
791
  export declare type Discount = {
791
792
  __typename?: 'Discount';
792
793
  adjustmentSource: Scalars['String'];
793
- type: AdjustmentType;
794
- description: Scalars['String'];
795
794
  amount: Scalars['Int'];
796
795
  amountWithTax: Scalars['Int'];
796
+ description: Scalars['String'];
797
+ type: AdjustmentType;
797
798
  };
798
799
  /** Returned when attempting to create a Customer with an email address already registered to an existing User. */
799
800
  export declare type EmailAddressConflictError = ErrorResult & {
@@ -802,35 +803,35 @@ export declare type EmailAddressConflictError = ErrorResult & {
802
803
  message: Scalars['String'];
803
804
  };
804
805
  export declare enum ErrorCode {
805
- UNKNOWN_ERROR = "UNKNOWN_ERROR",
806
- NATIVE_AUTH_STRATEGY_ERROR = "NATIVE_AUTH_STRATEGY_ERROR",
807
- INVALID_CREDENTIALS_ERROR = "INVALID_CREDENTIALS_ERROR",
808
- ORDER_STATE_TRANSITION_ERROR = "ORDER_STATE_TRANSITION_ERROR",
806
+ ALREADY_LOGGED_IN_ERROR = "ALREADY_LOGGED_IN_ERROR",
807
+ COUPON_CODE_EXPIRED_ERROR = "COUPON_CODE_EXPIRED_ERROR",
808
+ COUPON_CODE_INVALID_ERROR = "COUPON_CODE_INVALID_ERROR",
809
+ COUPON_CODE_LIMIT_ERROR = "COUPON_CODE_LIMIT_ERROR",
809
810
  EMAIL_ADDRESS_CONFLICT_ERROR = "EMAIL_ADDRESS_CONFLICT_ERROR",
810
- ORDER_LIMIT_ERROR = "ORDER_LIMIT_ERROR",
811
- NEGATIVE_QUANTITY_ERROR = "NEGATIVE_QUANTITY_ERROR",
811
+ IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR = "IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR",
812
+ IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR = "IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR",
813
+ INELIGIBLE_PAYMENT_METHOD_ERROR = "INELIGIBLE_PAYMENT_METHOD_ERROR",
814
+ INELIGIBLE_SHIPPING_METHOD_ERROR = "INELIGIBLE_SHIPPING_METHOD_ERROR",
812
815
  INSUFFICIENT_STOCK_ERROR = "INSUFFICIENT_STOCK_ERROR",
816
+ INVALID_CREDENTIALS_ERROR = "INVALID_CREDENTIALS_ERROR",
817
+ MISSING_PASSWORD_ERROR = "MISSING_PASSWORD_ERROR",
818
+ NATIVE_AUTH_STRATEGY_ERROR = "NATIVE_AUTH_STRATEGY_ERROR",
819
+ NEGATIVE_QUANTITY_ERROR = "NEGATIVE_QUANTITY_ERROR",
820
+ NOT_VERIFIED_ERROR = "NOT_VERIFIED_ERROR",
821
+ NO_ACTIVE_ORDER_ERROR = "NO_ACTIVE_ORDER_ERROR",
822
+ ORDER_LIMIT_ERROR = "ORDER_LIMIT_ERROR",
813
823
  ORDER_MODIFICATION_ERROR = "ORDER_MODIFICATION_ERROR",
814
- INELIGIBLE_SHIPPING_METHOD_ERROR = "INELIGIBLE_SHIPPING_METHOD_ERROR",
815
824
  ORDER_PAYMENT_STATE_ERROR = "ORDER_PAYMENT_STATE_ERROR",
816
- INELIGIBLE_PAYMENT_METHOD_ERROR = "INELIGIBLE_PAYMENT_METHOD_ERROR",
817
- PAYMENT_FAILED_ERROR = "PAYMENT_FAILED_ERROR",
818
- PAYMENT_DECLINED_ERROR = "PAYMENT_DECLINED_ERROR",
819
- COUPON_CODE_INVALID_ERROR = "COUPON_CODE_INVALID_ERROR",
820
- COUPON_CODE_EXPIRED_ERROR = "COUPON_CODE_EXPIRED_ERROR",
821
- COUPON_CODE_LIMIT_ERROR = "COUPON_CODE_LIMIT_ERROR",
822
- ALREADY_LOGGED_IN_ERROR = "ALREADY_LOGGED_IN_ERROR",
823
- MISSING_PASSWORD_ERROR = "MISSING_PASSWORD_ERROR",
824
- PASSWORD_VALIDATION_ERROR = "PASSWORD_VALIDATION_ERROR",
825
+ ORDER_STATE_TRANSITION_ERROR = "ORDER_STATE_TRANSITION_ERROR",
825
826
  PASSWORD_ALREADY_SET_ERROR = "PASSWORD_ALREADY_SET_ERROR",
826
- VERIFICATION_TOKEN_INVALID_ERROR = "VERIFICATION_TOKEN_INVALID_ERROR",
827
- VERIFICATION_TOKEN_EXPIRED_ERROR = "VERIFICATION_TOKEN_EXPIRED_ERROR",
828
- IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR = "IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR",
829
- IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR = "IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR",
830
- PASSWORD_RESET_TOKEN_INVALID_ERROR = "PASSWORD_RESET_TOKEN_INVALID_ERROR",
831
827
  PASSWORD_RESET_TOKEN_EXPIRED_ERROR = "PASSWORD_RESET_TOKEN_EXPIRED_ERROR",
832
- NOT_VERIFIED_ERROR = "NOT_VERIFIED_ERROR",
833
- NO_ACTIVE_ORDER_ERROR = "NO_ACTIVE_ORDER_ERROR"
828
+ PASSWORD_RESET_TOKEN_INVALID_ERROR = "PASSWORD_RESET_TOKEN_INVALID_ERROR",
829
+ PASSWORD_VALIDATION_ERROR = "PASSWORD_VALIDATION_ERROR",
830
+ PAYMENT_DECLINED_ERROR = "PAYMENT_DECLINED_ERROR",
831
+ PAYMENT_FAILED_ERROR = "PAYMENT_FAILED_ERROR",
832
+ UNKNOWN_ERROR = "UNKNOWN_ERROR",
833
+ VERIFICATION_TOKEN_EXPIRED_ERROR = "VERIFICATION_TOKEN_EXPIRED_ERROR",
834
+ VERIFICATION_TOKEN_INVALID_ERROR = "VERIFICATION_TOKEN_INVALID_ERROR"
834
835
  }
835
836
  export declare type ErrorResult = {
836
837
  errorCode: ErrorCode;
@@ -838,23 +839,23 @@ export declare type ErrorResult = {
838
839
  };
839
840
  export declare type Facet = Node & {
840
841
  __typename?: 'Facet';
841
- id: Scalars['ID'];
842
+ code: Scalars['String'];
842
843
  createdAt: Scalars['DateTime'];
843
- updatedAt: Scalars['DateTime'];
844
+ customFields?: Maybe<Scalars['JSON']>;
845
+ id: Scalars['ID'];
844
846
  languageCode: LanguageCode;
845
847
  name: Scalars['String'];
846
- code: Scalars['String'];
847
- values: Array<FacetValue>;
848
848
  translations: Array<FacetTranslation>;
849
- customFields?: Maybe<Scalars['JSON']>;
849
+ updatedAt: Scalars['DateTime'];
850
+ values: Array<FacetValue>;
850
851
  };
851
852
  export declare type FacetFilterParameter = {
852
- id?: Maybe<IdOperators>;
853
- createdAt?: Maybe<DateOperators>;
854
- updatedAt?: Maybe<DateOperators>;
855
- languageCode?: Maybe<StringOperators>;
856
- name?: Maybe<StringOperators>;
857
- code?: Maybe<StringOperators>;
853
+ code?: InputMaybe<StringOperators>;
854
+ createdAt?: InputMaybe<DateOperators>;
855
+ id?: InputMaybe<IdOperators>;
856
+ languageCode?: InputMaybe<StringOperators>;
857
+ name?: InputMaybe<StringOperators>;
858
+ updatedAt?: InputMaybe<DateOperators>;
858
859
  };
859
860
  export declare type FacetList = PaginatedList & {
860
861
  __typename?: 'FacetList';
@@ -862,43 +863,43 @@ export declare type FacetList = PaginatedList & {
862
863
  totalItems: Scalars['Int'];
863
864
  };
864
865
  export declare type FacetListOptions = {
865
- /** Skips the first n results, for use in pagination */
866
- skip?: Maybe<Scalars['Int']>;
867
- /** Takes n results, for use in pagination */
868
- take?: Maybe<Scalars['Int']>;
869
- /** Specifies which properties to sort the results by */
870
- sort?: Maybe<FacetSortParameter>;
871
866
  /** Allows the results to be filtered */
872
- filter?: Maybe<FacetFilterParameter>;
867
+ filter?: InputMaybe<FacetFilterParameter>;
873
868
  /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */
874
- filterOperator?: Maybe<LogicalOperator>;
869
+ filterOperator?: InputMaybe<LogicalOperator>;
870
+ /** Skips the first n results, for use in pagination */
871
+ skip?: InputMaybe<Scalars['Int']>;
872
+ /** Specifies which properties to sort the results by */
873
+ sort?: InputMaybe<FacetSortParameter>;
874
+ /** Takes n results, for use in pagination */
875
+ take?: InputMaybe<Scalars['Int']>;
875
876
  };
876
877
  export declare type FacetSortParameter = {
877
- id?: Maybe<SortOrder>;
878
- createdAt?: Maybe<SortOrder>;
879
- updatedAt?: Maybe<SortOrder>;
880
- name?: Maybe<SortOrder>;
881
- code?: Maybe<SortOrder>;
878
+ code?: InputMaybe<SortOrder>;
879
+ createdAt?: InputMaybe<SortOrder>;
880
+ id?: InputMaybe<SortOrder>;
881
+ name?: InputMaybe<SortOrder>;
882
+ updatedAt?: InputMaybe<SortOrder>;
882
883
  };
883
884
  export declare type FacetTranslation = {
884
885
  __typename?: 'FacetTranslation';
885
- id: Scalars['ID'];
886
886
  createdAt: Scalars['DateTime'];
887
- updatedAt: Scalars['DateTime'];
887
+ id: Scalars['ID'];
888
888
  languageCode: LanguageCode;
889
889
  name: Scalars['String'];
890
+ updatedAt: Scalars['DateTime'];
890
891
  };
891
892
  export declare type FacetValue = Node & {
892
893
  __typename?: 'FacetValue';
893
- id: Scalars['ID'];
894
+ code: Scalars['String'];
894
895
  createdAt: Scalars['DateTime'];
895
- updatedAt: Scalars['DateTime'];
896
- languageCode: LanguageCode;
896
+ customFields?: Maybe<Scalars['JSON']>;
897
897
  facet: Facet;
898
+ id: Scalars['ID'];
899
+ languageCode: LanguageCode;
898
900
  name: Scalars['String'];
899
- code: Scalars['String'];
900
901
  translations: Array<FacetValueTranslation>;
901
- customFields?: Maybe<Scalars['JSON']>;
902
+ updatedAt: Scalars['DateTime'];
902
903
  };
903
904
  /**
904
905
  * Used to construct boolean expressions for filtering search results
@@ -909,8 +910,8 @@ export declare type FacetValue = Node & {
909
910
  * * ID=1 AND (ID=2 OR ID=3): `{ facetValueFilters: [{ and: 1 }, { or: [2,3] }] }`
910
911
  */
911
912
  export declare type FacetValueFilterInput = {
912
- and?: Maybe<Scalars['ID']>;
913
- or?: Maybe<Array<Scalars['ID']>>;
913
+ and?: InputMaybe<Scalars['ID']>;
914
+ or?: InputMaybe<Array<Scalars['ID']>>;
914
915
  };
915
916
  /**
916
917
  * Which FacetValues are present in the products returned
@@ -918,61 +919,67 @@ export declare type FacetValueFilterInput = {
918
919
  */
919
920
  export declare type FacetValueResult = {
920
921
  __typename?: 'FacetValueResult';
921
- facetValue: FacetValue;
922
922
  count: Scalars['Int'];
923
+ facetValue: FacetValue;
923
924
  };
924
925
  export declare type FacetValueTranslation = {
925
926
  __typename?: 'FacetValueTranslation';
926
- id: Scalars['ID'];
927
927
  createdAt: Scalars['DateTime'];
928
- updatedAt: Scalars['DateTime'];
928
+ id: Scalars['ID'];
929
929
  languageCode: LanguageCode;
930
930
  name: Scalars['String'];
931
+ updatedAt: Scalars['DateTime'];
931
932
  };
932
933
  export declare type FloatCustomFieldConfig = CustomField & {
933
934
  __typename?: 'FloatCustomFieldConfig';
934
- name: Scalars['String'];
935
- type: Scalars['String'];
936
- list: Scalars['Boolean'];
937
- label?: Maybe<Array<LocalizedString>>;
938
935
  description?: Maybe<Array<LocalizedString>>;
939
- readonly?: Maybe<Scalars['Boolean']>;
940
936
  internal?: Maybe<Scalars['Boolean']>;
941
- nullable?: Maybe<Scalars['Boolean']>;
942
- min?: Maybe<Scalars['Float']>;
937
+ label?: Maybe<Array<LocalizedString>>;
938
+ list: Scalars['Boolean'];
943
939
  max?: Maybe<Scalars['Float']>;
940
+ min?: Maybe<Scalars['Float']>;
941
+ name: Scalars['String'];
942
+ nullable?: Maybe<Scalars['Boolean']>;
943
+ readonly?: Maybe<Scalars['Boolean']>;
944
944
  step?: Maybe<Scalars['Float']>;
945
+ type: Scalars['String'];
945
946
  ui?: Maybe<Scalars['JSON']>;
946
947
  };
947
948
  export declare type Fulfillment = Node & {
948
949
  __typename?: 'Fulfillment';
949
- id: Scalars['ID'];
950
950
  createdAt: Scalars['DateTime'];
951
- updatedAt: Scalars['DateTime'];
951
+ customFields?: Maybe<Scalars['JSON']>;
952
+ id: Scalars['ID'];
953
+ method: Scalars['String'];
952
954
  orderItems: Array<OrderItem>;
953
955
  state: Scalars['String'];
954
- method: Scalars['String'];
956
+ summary: Array<FulfillmentLineSummary>;
955
957
  trackingCode?: Maybe<Scalars['String']>;
956
- customFields?: Maybe<Scalars['JSON']>;
958
+ updatedAt: Scalars['DateTime'];
959
+ };
960
+ export declare type FulfillmentLineSummary = {
961
+ __typename?: 'FulfillmentLineSummary';
962
+ orderLine: OrderLine;
963
+ quantity: Scalars['Int'];
957
964
  };
958
965
  export declare enum GlobalFlag {
959
- TRUE = "TRUE",
960
966
  FALSE = "FALSE",
961
- INHERIT = "INHERIT"
967
+ INHERIT = "INHERIT",
968
+ TRUE = "TRUE"
962
969
  }
963
970
  export declare type HistoryEntry = Node & {
964
971
  __typename?: 'HistoryEntry';
965
- id: Scalars['ID'];
966
972
  createdAt: Scalars['DateTime'];
967
- updatedAt: Scalars['DateTime'];
968
- type: HistoryEntryType;
969
973
  data: Scalars['JSON'];
974
+ id: Scalars['ID'];
975
+ type: HistoryEntryType;
976
+ updatedAt: Scalars['DateTime'];
970
977
  };
971
978
  export declare type HistoryEntryFilterParameter = {
972
- id?: Maybe<IdOperators>;
973
- createdAt?: Maybe<DateOperators>;
974
- updatedAt?: Maybe<DateOperators>;
975
- type?: Maybe<StringOperators>;
979
+ createdAt?: InputMaybe<DateOperators>;
980
+ id?: InputMaybe<IdOperators>;
981
+ type?: InputMaybe<StringOperators>;
982
+ updatedAt?: InputMaybe<DateOperators>;
976
983
  };
977
984
  export declare type HistoryEntryList = PaginatedList & {
978
985
  __typename?: 'HistoryEntryList';
@@ -980,47 +987,47 @@ export declare type HistoryEntryList = PaginatedList & {
980
987
  totalItems: Scalars['Int'];
981
988
  };
982
989
  export declare type HistoryEntryListOptions = {
983
- /** Skips the first n results, for use in pagination */
984
- skip?: Maybe<Scalars['Int']>;
985
- /** Takes n results, for use in pagination */
986
- take?: Maybe<Scalars['Int']>;
987
- /** Specifies which properties to sort the results by */
988
- sort?: Maybe<HistoryEntrySortParameter>;
989
990
  /** Allows the results to be filtered */
990
- filter?: Maybe<HistoryEntryFilterParameter>;
991
+ filter?: InputMaybe<HistoryEntryFilterParameter>;
991
992
  /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */
992
- filterOperator?: Maybe<LogicalOperator>;
993
+ filterOperator?: InputMaybe<LogicalOperator>;
994
+ /** Skips the first n results, for use in pagination */
995
+ skip?: InputMaybe<Scalars['Int']>;
996
+ /** Specifies which properties to sort the results by */
997
+ sort?: InputMaybe<HistoryEntrySortParameter>;
998
+ /** Takes n results, for use in pagination */
999
+ take?: InputMaybe<Scalars['Int']>;
993
1000
  };
994
1001
  export declare type HistoryEntrySortParameter = {
995
- id?: Maybe<SortOrder>;
996
- createdAt?: Maybe<SortOrder>;
997
- updatedAt?: Maybe<SortOrder>;
1002
+ createdAt?: InputMaybe<SortOrder>;
1003
+ id?: InputMaybe<SortOrder>;
1004
+ updatedAt?: InputMaybe<SortOrder>;
998
1005
  };
999
1006
  export declare enum HistoryEntryType {
1000
- CUSTOMER_REGISTERED = "CUSTOMER_REGISTERED",
1001
- CUSTOMER_VERIFIED = "CUSTOMER_VERIFIED",
1002
- CUSTOMER_DETAIL_UPDATED = "CUSTOMER_DETAIL_UPDATED",
1003
1007
  CUSTOMER_ADDED_TO_GROUP = "CUSTOMER_ADDED_TO_GROUP",
1004
- CUSTOMER_REMOVED_FROM_GROUP = "CUSTOMER_REMOVED_FROM_GROUP",
1005
1008
  CUSTOMER_ADDRESS_CREATED = "CUSTOMER_ADDRESS_CREATED",
1006
- CUSTOMER_ADDRESS_UPDATED = "CUSTOMER_ADDRESS_UPDATED",
1007
1009
  CUSTOMER_ADDRESS_DELETED = "CUSTOMER_ADDRESS_DELETED",
1008
- CUSTOMER_PASSWORD_UPDATED = "CUSTOMER_PASSWORD_UPDATED",
1009
- CUSTOMER_PASSWORD_RESET_REQUESTED = "CUSTOMER_PASSWORD_RESET_REQUESTED",
1010
- CUSTOMER_PASSWORD_RESET_VERIFIED = "CUSTOMER_PASSWORD_RESET_VERIFIED",
1010
+ CUSTOMER_ADDRESS_UPDATED = "CUSTOMER_ADDRESS_UPDATED",
1011
+ CUSTOMER_DETAIL_UPDATED = "CUSTOMER_DETAIL_UPDATED",
1011
1012
  CUSTOMER_EMAIL_UPDATE_REQUESTED = "CUSTOMER_EMAIL_UPDATE_REQUESTED",
1012
1013
  CUSTOMER_EMAIL_UPDATE_VERIFIED = "CUSTOMER_EMAIL_UPDATE_VERIFIED",
1013
1014
  CUSTOMER_NOTE = "CUSTOMER_NOTE",
1014
- ORDER_STATE_TRANSITION = "ORDER_STATE_TRANSITION",
1015
- ORDER_PAYMENT_TRANSITION = "ORDER_PAYMENT_TRANSITION",
1016
- ORDER_FULFILLMENT = "ORDER_FULFILLMENT",
1015
+ CUSTOMER_PASSWORD_RESET_REQUESTED = "CUSTOMER_PASSWORD_RESET_REQUESTED",
1016
+ CUSTOMER_PASSWORD_RESET_VERIFIED = "CUSTOMER_PASSWORD_RESET_VERIFIED",
1017
+ CUSTOMER_PASSWORD_UPDATED = "CUSTOMER_PASSWORD_UPDATED",
1018
+ CUSTOMER_REGISTERED = "CUSTOMER_REGISTERED",
1019
+ CUSTOMER_REMOVED_FROM_GROUP = "CUSTOMER_REMOVED_FROM_GROUP",
1020
+ CUSTOMER_VERIFIED = "CUSTOMER_VERIFIED",
1017
1021
  ORDER_CANCELLATION = "ORDER_CANCELLATION",
1018
- ORDER_REFUND_TRANSITION = "ORDER_REFUND_TRANSITION",
1019
- ORDER_FULFILLMENT_TRANSITION = "ORDER_FULFILLMENT_TRANSITION",
1020
- ORDER_NOTE = "ORDER_NOTE",
1021
1022
  ORDER_COUPON_APPLIED = "ORDER_COUPON_APPLIED",
1022
1023
  ORDER_COUPON_REMOVED = "ORDER_COUPON_REMOVED",
1023
- ORDER_MODIFIED = "ORDER_MODIFIED"
1024
+ ORDER_FULFILLMENT = "ORDER_FULFILLMENT",
1025
+ ORDER_FULFILLMENT_TRANSITION = "ORDER_FULFILLMENT_TRANSITION",
1026
+ ORDER_MODIFIED = "ORDER_MODIFIED",
1027
+ ORDER_NOTE = "ORDER_NOTE",
1028
+ ORDER_PAYMENT_TRANSITION = "ORDER_PAYMENT_TRANSITION",
1029
+ ORDER_REFUND_TRANSITION = "ORDER_REFUND_TRANSITION",
1030
+ ORDER_STATE_TRANSITION = "ORDER_STATE_TRANSITION"
1024
1031
  }
1025
1032
  /** Operators for filtering on a list of ID fields */
1026
1033
  export declare type IdListOperators = {
@@ -1028,10 +1035,10 @@ export declare type IdListOperators = {
1028
1035
  };
1029
1036
  /** Operators for filtering on an ID field */
1030
1037
  export declare type IdOperators = {
1031
- eq?: Maybe<Scalars['String']>;
1032
- notEq?: Maybe<Scalars['String']>;
1033
- in?: Maybe<Array<Scalars['String']>>;
1034
- notIn?: Maybe<Array<Scalars['String']>>;
1038
+ eq?: InputMaybe<Scalars['String']>;
1039
+ in?: InputMaybe<Array<Scalars['String']>>;
1040
+ notEq?: InputMaybe<Scalars['String']>;
1041
+ notIn?: InputMaybe<Array<Scalars['String']>>;
1035
1042
  };
1036
1043
  /**
1037
1044
  * Returned if the token used to change a Customer's email address is valid, but has
@@ -1054,9 +1061,9 @@ export declare type IdentifierChangeTokenInvalidError = ErrorResult & {
1054
1061
  /** Returned when attempting to add a Payment using a PaymentMethod for which the Order is not eligible. */
1055
1062
  export declare type IneligiblePaymentMethodError = ErrorResult & {
1056
1063
  __typename?: 'IneligiblePaymentMethodError';
1064
+ eligibilityCheckerMessage?: Maybe<Scalars['String']>;
1057
1065
  errorCode: ErrorCode;
1058
1066
  message: Scalars['String'];
1059
- eligibilityCheckerMessage?: Maybe<Scalars['String']>;
1060
1067
  };
1061
1068
  /** Returned when attempting to set a ShippingMethod for which the Order is not eligible */
1062
1069
  export declare type IneligibleShippingMethodError = ErrorResult & {
@@ -1069,30 +1076,30 @@ export declare type InsufficientStockError = ErrorResult & {
1069
1076
  __typename?: 'InsufficientStockError';
1070
1077
  errorCode: ErrorCode;
1071
1078
  message: Scalars['String'];
1072
- quantityAvailable: Scalars['Int'];
1073
1079
  order: Order;
1080
+ quantityAvailable: Scalars['Int'];
1074
1081
  };
1075
1082
  export declare type IntCustomFieldConfig = CustomField & {
1076
1083
  __typename?: 'IntCustomFieldConfig';
1077
- name: Scalars['String'];
1078
- type: Scalars['String'];
1079
- list: Scalars['Boolean'];
1080
- label?: Maybe<Array<LocalizedString>>;
1081
1084
  description?: Maybe<Array<LocalizedString>>;
1082
- readonly?: Maybe<Scalars['Boolean']>;
1083
1085
  internal?: Maybe<Scalars['Boolean']>;
1084
- nullable?: Maybe<Scalars['Boolean']>;
1085
- min?: Maybe<Scalars['Int']>;
1086
+ label?: Maybe<Array<LocalizedString>>;
1087
+ list: Scalars['Boolean'];
1086
1088
  max?: Maybe<Scalars['Int']>;
1089
+ min?: Maybe<Scalars['Int']>;
1090
+ name: Scalars['String'];
1091
+ nullable?: Maybe<Scalars['Boolean']>;
1092
+ readonly?: Maybe<Scalars['Boolean']>;
1087
1093
  step?: Maybe<Scalars['Int']>;
1094
+ type: Scalars['String'];
1088
1095
  ui?: Maybe<Scalars['JSON']>;
1089
1096
  };
1090
1097
  /** Returned if the user authentication credentials are not valid */
1091
1098
  export declare type InvalidCredentialsError = ErrorResult & {
1092
1099
  __typename?: 'InvalidCredentialsError';
1100
+ authenticationError: Scalars['String'];
1093
1101
  errorCode: ErrorCode;
1094
1102
  message: Scalars['String'];
1095
- authenticationError: Scalars['String'];
1096
1103
  };
1097
1104
  /**
1098
1105
  * @description
@@ -1108,62 +1115,54 @@ export declare enum LanguageCode {
1108
1115
  af = "af",
1109
1116
  /** Akan */
1110
1117
  ak = "ak",
1111
- /** Albanian */
1112
- sq = "sq",
1113
1118
  /** Amharic */
1114
1119
  am = "am",
1115
1120
  /** Arabic */
1116
1121
  ar = "ar",
1117
- /** Armenian */
1118
- hy = "hy",
1119
1122
  /** Assamese */
1120
1123
  as = "as",
1121
1124
  /** Azerbaijani */
1122
1125
  az = "az",
1126
+ /** Belarusian */
1127
+ be = "be",
1128
+ /** Bulgarian */
1129
+ bg = "bg",
1123
1130
  /** Bambara */
1124
1131
  bm = "bm",
1125
1132
  /** Bangla */
1126
1133
  bn = "bn",
1127
- /** Basque */
1128
- eu = "eu",
1129
- /** Belarusian */
1130
- be = "be",
1131
- /** Bosnian */
1132
- bs = "bs",
1134
+ /** Tibetan */
1135
+ bo = "bo",
1133
1136
  /** Breton */
1134
1137
  br = "br",
1135
- /** Bulgarian */
1136
- bg = "bg",
1137
- /** Burmese */
1138
- my = "my",
1138
+ /** Bosnian */
1139
+ bs = "bs",
1139
1140
  /** Catalan */
1140
1141
  ca = "ca",
1141
1142
  /** Chechen */
1142
1143
  ce = "ce",
1143
- /** Chinese */
1144
- zh = "zh",
1145
- /** Simplified Chinese */
1146
- zh_Hans = "zh_Hans",
1147
- /** Traditional Chinese */
1148
- zh_Hant = "zh_Hant",
1149
- /** Church Slavic */
1150
- cu = "cu",
1151
- /** Cornish */
1152
- kw = "kw",
1153
1144
  /** Corsican */
1154
1145
  co = "co",
1155
- /** Croatian */
1156
- hr = "hr",
1157
1146
  /** Czech */
1158
1147
  cs = "cs",
1148
+ /** Church Slavic */
1149
+ cu = "cu",
1150
+ /** Welsh */
1151
+ cy = "cy",
1159
1152
  /** Danish */
1160
1153
  da = "da",
1161
- /** Dutch */
1162
- nl = "nl",
1163
- /** Flemish */
1164
- nl_BE = "nl_BE",
1154
+ /** German */
1155
+ de = "de",
1156
+ /** Austrian German */
1157
+ de_AT = "de_AT",
1158
+ /** Swiss High German */
1159
+ de_CH = "de_CH",
1165
1160
  /** Dzongkha */
1166
1161
  dz = "dz",
1162
+ /** Ewe */
1163
+ ee = "ee",
1164
+ /** Greek */
1165
+ el = "el",
1167
1166
  /** English */
1168
1167
  en = "en",
1169
1168
  /** Australian English */
@@ -1176,238 +1175,240 @@ export declare enum LanguageCode {
1176
1175
  en_US = "en_US",
1177
1176
  /** Esperanto */
1178
1177
  eo = "eo",
1178
+ /** Spanish */
1179
+ es = "es",
1180
+ /** European Spanish */
1181
+ es_ES = "es_ES",
1182
+ /** Mexican Spanish */
1183
+ es_MX = "es_MX",
1179
1184
  /** Estonian */
1180
1185
  et = "et",
1181
- /** Ewe */
1182
- ee = "ee",
1183
- /** Faroese */
1184
- fo = "fo",
1186
+ /** Basque */
1187
+ eu = "eu",
1188
+ /** Persian */
1189
+ fa = "fa",
1190
+ /** Dari */
1191
+ fa_AF = "fa_AF",
1192
+ /** Fulah */
1193
+ ff = "ff",
1185
1194
  /** Finnish */
1186
1195
  fi = "fi",
1196
+ /** Faroese */
1197
+ fo = "fo",
1187
1198
  /** French */
1188
1199
  fr = "fr",
1189
1200
  /** Canadian French */
1190
1201
  fr_CA = "fr_CA",
1191
1202
  /** Swiss French */
1192
1203
  fr_CH = "fr_CH",
1193
- /** Fulah */
1194
- ff = "ff",
1204
+ /** Western Frisian */
1205
+ fy = "fy",
1206
+ /** Irish */
1207
+ ga = "ga",
1208
+ /** Scottish Gaelic */
1209
+ gd = "gd",
1195
1210
  /** Galician */
1196
1211
  gl = "gl",
1197
- /** Ganda */
1198
- lg = "lg",
1199
- /** Georgian */
1200
- ka = "ka",
1201
- /** German */
1202
- de = "de",
1203
- /** Austrian German */
1204
- de_AT = "de_AT",
1205
- /** Swiss High German */
1206
- de_CH = "de_CH",
1207
- /** Greek */
1208
- el = "el",
1209
1212
  /** Gujarati */
1210
1213
  gu = "gu",
1211
- /** Haitian Creole */
1212
- ht = "ht",
1214
+ /** Manx */
1215
+ gv = "gv",
1213
1216
  /** Hausa */
1214
1217
  ha = "ha",
1215
1218
  /** Hebrew */
1216
1219
  he = "he",
1217
1220
  /** Hindi */
1218
1221
  hi = "hi",
1222
+ /** Croatian */
1223
+ hr = "hr",
1224
+ /** Haitian Creole */
1225
+ ht = "ht",
1219
1226
  /** Hungarian */
1220
1227
  hu = "hu",
1221
- /** Icelandic */
1222
- is = "is",
1223
- /** Igbo */
1224
- ig = "ig",
1225
- /** Indonesian */
1226
- id = "id",
1228
+ /** Armenian */
1229
+ hy = "hy",
1227
1230
  /** Interlingua */
1228
1231
  ia = "ia",
1229
- /** Irish */
1230
- ga = "ga",
1232
+ /** Indonesian */
1233
+ id = "id",
1234
+ /** Igbo */
1235
+ ig = "ig",
1236
+ /** Sichuan Yi */
1237
+ ii = "ii",
1238
+ /** Icelandic */
1239
+ is = "is",
1231
1240
  /** Italian */
1232
1241
  it = "it",
1233
1242
  /** Japanese */
1234
1243
  ja = "ja",
1235
1244
  /** Javanese */
1236
1245
  jv = "jv",
1237
- /** Kalaallisut */
1238
- kl = "kl",
1239
- /** Kannada */
1240
- kn = "kn",
1241
- /** Kashmiri */
1242
- ks = "ks",
1246
+ /** Georgian */
1247
+ ka = "ka",
1248
+ /** Kikuyu */
1249
+ ki = "ki",
1243
1250
  /** Kazakh */
1244
1251
  kk = "kk",
1252
+ /** Kalaallisut */
1253
+ kl = "kl",
1245
1254
  /** Khmer */
1246
1255
  km = "km",
1247
- /** Kikuyu */
1248
- ki = "ki",
1249
- /** Kinyarwanda */
1250
- rw = "rw",
1256
+ /** Kannada */
1257
+ kn = "kn",
1251
1258
  /** Korean */
1252
1259
  ko = "ko",
1260
+ /** Kashmiri */
1261
+ ks = "ks",
1253
1262
  /** Kurdish */
1254
1263
  ku = "ku",
1264
+ /** Cornish */
1265
+ kw = "kw",
1255
1266
  /** Kyrgyz */
1256
1267
  ky = "ky",
1257
- /** Lao */
1258
- lo = "lo",
1259
1268
  /** Latin */
1260
1269
  la = "la",
1261
- /** Latvian */
1262
- lv = "lv",
1270
+ /** Luxembourgish */
1271
+ lb = "lb",
1272
+ /** Ganda */
1273
+ lg = "lg",
1263
1274
  /** Lingala */
1264
1275
  ln = "ln",
1276
+ /** Lao */
1277
+ lo = "lo",
1265
1278
  /** Lithuanian */
1266
1279
  lt = "lt",
1267
1280
  /** Luba-Katanga */
1268
1281
  lu = "lu",
1269
- /** Luxembourgish */
1270
- lb = "lb",
1271
- /** Macedonian */
1272
- mk = "mk",
1282
+ /** Latvian */
1283
+ lv = "lv",
1273
1284
  /** Malagasy */
1274
1285
  mg = "mg",
1275
- /** Malay */
1276
- ms = "ms",
1277
- /** Malayalam */
1278
- ml = "ml",
1279
- /** Maltese */
1280
- mt = "mt",
1281
- /** Manx */
1282
- gv = "gv",
1283
1286
  /** Maori */
1284
1287
  mi = "mi",
1285
- /** Marathi */
1286
- mr = "mr",
1288
+ /** Macedonian */
1289
+ mk = "mk",
1290
+ /** Malayalam */
1291
+ ml = "ml",
1287
1292
  /** Mongolian */
1288
1293
  mn = "mn",
1289
- /** Nepali */
1290
- ne = "ne",
1291
- /** North Ndebele */
1292
- nd = "nd",
1293
- /** Northern Sami */
1294
- se = "se",
1294
+ /** Marathi */
1295
+ mr = "mr",
1296
+ /** Malay */
1297
+ ms = "ms",
1298
+ /** Maltese */
1299
+ mt = "mt",
1300
+ /** Burmese */
1301
+ my = "my",
1295
1302
  /** Norwegian Bokmål */
1296
1303
  nb = "nb",
1304
+ /** North Ndebele */
1305
+ nd = "nd",
1306
+ /** Nepali */
1307
+ ne = "ne",
1308
+ /** Dutch */
1309
+ nl = "nl",
1310
+ /** Flemish */
1311
+ nl_BE = "nl_BE",
1297
1312
  /** Norwegian Nynorsk */
1298
1313
  nn = "nn",
1299
1314
  /** Nyanja */
1300
1315
  ny = "ny",
1301
- /** Odia */
1302
- or = "or",
1303
1316
  /** Oromo */
1304
1317
  om = "om",
1318
+ /** Odia */
1319
+ or = "or",
1305
1320
  /** Ossetic */
1306
1321
  os = "os",
1307
- /** Pashto */
1308
- ps = "ps",
1309
- /** Persian */
1310
- fa = "fa",
1311
- /** Dari */
1312
- fa_AF = "fa_AF",
1322
+ /** Punjabi */
1323
+ pa = "pa",
1313
1324
  /** Polish */
1314
1325
  pl = "pl",
1326
+ /** Pashto */
1327
+ ps = "ps",
1315
1328
  /** Portuguese */
1316
1329
  pt = "pt",
1317
1330
  /** Brazilian Portuguese */
1318
1331
  pt_BR = "pt_BR",
1319
1332
  /** European Portuguese */
1320
1333
  pt_PT = "pt_PT",
1321
- /** Punjabi */
1322
- pa = "pa",
1323
1334
  /** Quechua */
1324
1335
  qu = "qu",
1325
- /** Romanian */
1326
- ro = "ro",
1327
- /** Moldavian */
1328
- ro_MD = "ro_MD",
1329
1336
  /** Romansh */
1330
1337
  rm = "rm",
1331
1338
  /** Rundi */
1332
1339
  rn = "rn",
1340
+ /** Romanian */
1341
+ ro = "ro",
1342
+ /** Moldavian */
1343
+ ro_MD = "ro_MD",
1333
1344
  /** Russian */
1334
1345
  ru = "ru",
1335
- /** Samoan */
1336
- sm = "sm",
1337
- /** Sango */
1338
- sg = "sg",
1346
+ /** Kinyarwanda */
1347
+ rw = "rw",
1339
1348
  /** Sanskrit */
1340
1349
  sa = "sa",
1341
- /** Scottish Gaelic */
1342
- gd = "gd",
1343
- /** Serbian */
1344
- sr = "sr",
1345
- /** Shona */
1346
- sn = "sn",
1347
- /** Sichuan Yi */
1348
- ii = "ii",
1349
1350
  /** Sindhi */
1350
1351
  sd = "sd",
1352
+ /** Northern Sami */
1353
+ se = "se",
1354
+ /** Sango */
1355
+ sg = "sg",
1351
1356
  /** Sinhala */
1352
1357
  si = "si",
1353
1358
  /** Slovak */
1354
1359
  sk = "sk",
1355
1360
  /** Slovenian */
1356
1361
  sl = "sl",
1362
+ /** Samoan */
1363
+ sm = "sm",
1364
+ /** Shona */
1365
+ sn = "sn",
1357
1366
  /** Somali */
1358
1367
  so = "so",
1368
+ /** Albanian */
1369
+ sq = "sq",
1370
+ /** Serbian */
1371
+ sr = "sr",
1359
1372
  /** Southern Sotho */
1360
1373
  st = "st",
1361
- /** Spanish */
1362
- es = "es",
1363
- /** European Spanish */
1364
- es_ES = "es_ES",
1365
- /** Mexican Spanish */
1366
- es_MX = "es_MX",
1367
1374
  /** Sundanese */
1368
1375
  su = "su",
1376
+ /** Swedish */
1377
+ sv = "sv",
1369
1378
  /** Swahili */
1370
1379
  sw = "sw",
1371
1380
  /** Congo Swahili */
1372
1381
  sw_CD = "sw_CD",
1373
- /** Swedish */
1374
- sv = "sv",
1375
- /** Tajik */
1376
- tg = "tg",
1377
1382
  /** Tamil */
1378
1383
  ta = "ta",
1379
- /** Tatar */
1380
- tt = "tt",
1381
1384
  /** Telugu */
1382
1385
  te = "te",
1386
+ /** Tajik */
1387
+ tg = "tg",
1383
1388
  /** Thai */
1384
1389
  th = "th",
1385
- /** Tibetan */
1386
- bo = "bo",
1387
1390
  /** Tigrinya */
1388
1391
  ti = "ti",
1392
+ /** Turkmen */
1393
+ tk = "tk",
1389
1394
  /** Tongan */
1390
1395
  to = "to",
1391
1396
  /** Turkish */
1392
1397
  tr = "tr",
1393
- /** Turkmen */
1394
- tk = "tk",
1398
+ /** Tatar */
1399
+ tt = "tt",
1400
+ /** Uyghur */
1401
+ ug = "ug",
1395
1402
  /** Ukrainian */
1396
1403
  uk = "uk",
1397
1404
  /** Urdu */
1398
1405
  ur = "ur",
1399
- /** Uyghur */
1400
- ug = "ug",
1401
1406
  /** Uzbek */
1402
1407
  uz = "uz",
1403
1408
  /** Vietnamese */
1404
1409
  vi = "vi",
1405
1410
  /** Volapük */
1406
1411
  vo = "vo",
1407
- /** Welsh */
1408
- cy = "cy",
1409
- /** Western Frisian */
1410
- fy = "fy",
1411
1412
  /** Wolof */
1412
1413
  wo = "wo",
1413
1414
  /** Xhosa */
@@ -1416,21 +1417,27 @@ export declare enum LanguageCode {
1416
1417
  yi = "yi",
1417
1418
  /** Yoruba */
1418
1419
  yo = "yo",
1420
+ /** Chinese */
1421
+ zh = "zh",
1422
+ /** Simplified Chinese */
1423
+ zh_Hans = "zh_Hans",
1424
+ /** Traditional Chinese */
1425
+ zh_Hant = "zh_Hant",
1419
1426
  /** Zulu */
1420
1427
  zu = "zu"
1421
1428
  }
1422
1429
  export declare type LocaleStringCustomFieldConfig = CustomField & {
1423
1430
  __typename?: 'LocaleStringCustomFieldConfig';
1424
- name: Scalars['String'];
1425
- type: Scalars['String'];
1426
- list: Scalars['Boolean'];
1427
- length?: Maybe<Scalars['Int']>;
1428
- label?: Maybe<Array<LocalizedString>>;
1429
1431
  description?: Maybe<Array<LocalizedString>>;
1430
- readonly?: Maybe<Scalars['Boolean']>;
1431
1432
  internal?: Maybe<Scalars['Boolean']>;
1433
+ label?: Maybe<Array<LocalizedString>>;
1434
+ length?: Maybe<Scalars['Int']>;
1435
+ list: Scalars['Boolean'];
1436
+ name: Scalars['String'];
1432
1437
  nullable?: Maybe<Scalars['Boolean']>;
1433
1438
  pattern?: Maybe<Scalars['String']>;
1439
+ readonly?: Maybe<Scalars['Boolean']>;
1440
+ type: Scalars['String'];
1434
1441
  ui?: Maybe<Scalars['JSON']>;
1435
1442
  };
1436
1443
  export declare type LocalizedString = {
@@ -1452,36 +1459,24 @@ export declare type Mutation = {
1452
1459
  __typename?: 'Mutation';
1453
1460
  /** Adds an item to the order. If custom fields are defined on the OrderLine entity, a third argument 'customFields' will be available. */
1454
1461
  addItemToOrder: UpdateOrderItemsResult;
1455
- /** Remove an OrderLine from the Order */
1456
- removeOrderLine: RemoveOrderItemsResult;
1457
- /** Remove all OrderLine from the Order */
1458
- removeAllOrderLines: RemoveOrderItemsResult;
1462
+ /** Add a Payment to the Order */
1463
+ addPaymentToOrder: AddPaymentToOrderResult;
1459
1464
  /** Adjusts an OrderLine. If custom fields are defined on the OrderLine entity, a third argument 'customFields' of type `OrderLineCustomFieldsInput` will be available. */
1460
1465
  adjustOrderLine: UpdateOrderItemsResult;
1461
1466
  /** Applies the given coupon code to the active Order */
1462
1467
  applyCouponCode: ApplyCouponCodeResult;
1463
- /** Removes the given coupon code from the active Order */
1464
- removeCouponCode?: Maybe<Order>;
1465
- /** Transitions an Order to a new state. Valid next states can be found by querying `nextOrderStates` */
1466
- transitionOrderToState?: Maybe<TransitionOrderToStateResult>;
1467
- /** Sets the shipping address for this order */
1468
- setOrderShippingAddress: ActiveOrderResult;
1469
- /** Sets the billing address for this order */
1470
- setOrderBillingAddress: ActiveOrderResult;
1471
- /** Allows any custom fields to be set for the active order */
1472
- setOrderCustomFields: ActiveOrderResult;
1473
- /** Sets the shipping method by id, which can be obtained with the `eligibleShippingMethods` query */
1474
- setOrderShippingMethod: SetOrderShippingMethodResult;
1475
- /** Add a Payment to the Order */
1476
- addPaymentToOrder: AddPaymentToOrderResult;
1477
- /** Set the Customer for the Order. Required only if the Customer is not currently logged in */
1478
- setCustomerForOrder: SetCustomerForOrderResult;
1479
- /** Authenticates the user using the native authentication strategy. This mutation is an alias for `authenticate({ native: { ... }})` */
1480
- login: NativeAuthenticationResult;
1481
1468
  /** Authenticates the user using a named authentication strategy */
1482
1469
  authenticate: AuthenticationResult;
1470
+ /** Create a new Customer Address */
1471
+ createCustomerAddress: Address;
1472
+ /** Delete an existing Address */
1473
+ deleteCustomerAddress: Success;
1474
+ /** Authenticates the user using the native authentication strategy. This mutation is an alias for `authenticate({ native: { ... }})` */
1475
+ login: NativeAuthenticationResult;
1483
1476
  /** End the current authenticated session */
1484
1477
  logout: Success;
1478
+ /** Regenerate and send a verification token for a new Customer registration. Only applicable if `authOptions.requireVerification` is set to true. */
1479
+ refreshCustomerVerification: RefreshCustomerVerificationResult;
1485
1480
  /**
1486
1481
  * Register a Customer account with the given credentials. There are three possible registration flows:
1487
1482
  *
@@ -1499,25 +1494,14 @@ export declare type Mutation = {
1499
1494
  * 3. The Customer _must_ be registered _with_ a password. No further action is needed - the Customer is able to authenticate immediately.
1500
1495
  */
1501
1496
  registerCustomerAccount: RegisterCustomerAccountResult;
1502
- /** Regenerate and send a verification token for a new Customer registration. Only applicable if `authOptions.requireVerification` is set to true. */
1503
- refreshCustomerVerification: RefreshCustomerVerificationResult;
1504
- /** Update an existing Customer */
1505
- updateCustomer: Customer;
1506
- /** Create a new Customer Address */
1507
- createCustomerAddress: Address;
1508
- /** Update an existing Address */
1509
- updateCustomerAddress: Address;
1510
- /** Delete an existing Address */
1511
- deleteCustomerAddress: Success;
1512
- /**
1513
- * Verify a Customer email address with the token sent to that address. Only applicable if `authOptions.requireVerification` is set to true.
1514
- *
1515
- * If the Customer was not registered with a password in the `registerCustomerAccount` mutation, the password _must_ be
1516
- * provided here.
1517
- */
1518
- verifyCustomerAccount: VerifyCustomerAccountResult;
1519
- /** Update the password of the active Customer */
1520
- updateCustomerPassword: UpdateCustomerPasswordResult;
1497
+ /** Remove all OrderLine from the Order */
1498
+ removeAllOrderLines: RemoveOrderItemsResult;
1499
+ /** Removes the given coupon code from the active Order */
1500
+ removeCouponCode?: Maybe<Order>;
1501
+ /** Remove an OrderLine from the Order */
1502
+ removeOrderLine: RemoveOrderItemsResult;
1503
+ /** Requests a password reset email to be sent */
1504
+ requestPasswordReset?: Maybe<RequestPasswordResetResult>;
1521
1505
  /**
1522
1506
  * Request to update the emailAddress of the active Customer. If `authOptions.requireVerification` is enabled
1523
1507
  * (as is the default), then the `identifierChangeToken` will be assigned to the current User and
@@ -1525,22 +1509,45 @@ export declare type Mutation = {
1525
1509
  * that verification token to the Customer, which is then used to verify the change of email address.
1526
1510
  */
1527
1511
  requestUpdateCustomerEmailAddress: RequestUpdateCustomerEmailAddressResult;
1512
+ /** Resets a Customer's password based on the provided token */
1513
+ resetPassword: ResetPasswordResult;
1514
+ /** Set the Customer for the Order. Required only if the Customer is not currently logged in */
1515
+ setCustomerForOrder: SetCustomerForOrderResult;
1516
+ /** Sets the billing address for this order */
1517
+ setOrderBillingAddress: ActiveOrderResult;
1518
+ /** Allows any custom fields to be set for the active order */
1519
+ setOrderCustomFields: ActiveOrderResult;
1520
+ /** Sets the shipping address for this order */
1521
+ setOrderShippingAddress: ActiveOrderResult;
1522
+ /** Sets the shipping method by id, which can be obtained with the `eligibleShippingMethods` query */
1523
+ setOrderShippingMethod: SetOrderShippingMethodResult;
1524
+ /** Transitions an Order to a new state. Valid next states can be found by querying `nextOrderStates` */
1525
+ transitionOrderToState?: Maybe<TransitionOrderToStateResult>;
1526
+ /** Update an existing Customer */
1527
+ updateCustomer: Customer;
1528
+ /** Update an existing Address */
1529
+ updateCustomerAddress: Address;
1528
1530
  /**
1529
1531
  * Confirm the update of the emailAddress with the provided token, which has been generated by the
1530
1532
  * `requestUpdateCustomerEmailAddress` mutation.
1531
1533
  */
1532
1534
  updateCustomerEmailAddress: UpdateCustomerEmailAddressResult;
1533
- /** Requests a password reset email to be sent */
1534
- requestPasswordReset?: Maybe<RequestPasswordResetResult>;
1535
- /** Resets a Customer's password based on the provided token */
1536
- resetPassword: ResetPasswordResult;
1537
- };
1538
- export declare type MutationAddItemToOrderArgs = {
1539
- productVariantId: Scalars['ID'];
1540
- quantity: Scalars['Int'];
1535
+ /** Update the password of the active Customer */
1536
+ updateCustomerPassword: UpdateCustomerPasswordResult;
1537
+ /**
1538
+ * Verify a Customer email address with the token sent to that address. Only applicable if `authOptions.requireVerification` is set to true.
1539
+ *
1540
+ * If the Customer was not registered with a password in the `registerCustomerAccount` mutation, the password _must_ be
1541
+ * provided here.
1542
+ */
1543
+ verifyCustomerAccount: VerifyCustomerAccountResult;
1541
1544
  };
1542
- export declare type MutationRemoveOrderLineArgs = {
1543
- orderLineId: Scalars['ID'];
1545
+ export declare type MutationAddItemToOrderArgs = {
1546
+ productVariantId: Scalars['ID'];
1547
+ quantity: Scalars['Int'];
1548
+ };
1549
+ export declare type MutationAddPaymentToOrderArgs = {
1550
+ input: PaymentInput;
1544
1551
  };
1545
1552
  export declare type MutationAdjustOrderLineArgs = {
1546
1553
  orderLineId: Scalars['ID'];
@@ -1549,14 +1556,46 @@ export declare type MutationAdjustOrderLineArgs = {
1549
1556
  export declare type MutationApplyCouponCodeArgs = {
1550
1557
  couponCode: Scalars['String'];
1551
1558
  };
1559
+ export declare type MutationAuthenticateArgs = {
1560
+ input: AuthenticationInput;
1561
+ rememberMe?: InputMaybe<Scalars['Boolean']>;
1562
+ };
1563
+ export declare type MutationCreateCustomerAddressArgs = {
1564
+ input: CreateAddressInput;
1565
+ };
1566
+ export declare type MutationDeleteCustomerAddressArgs = {
1567
+ id: Scalars['ID'];
1568
+ };
1569
+ export declare type MutationLoginArgs = {
1570
+ password: Scalars['String'];
1571
+ rememberMe?: InputMaybe<Scalars['Boolean']>;
1572
+ username: Scalars['String'];
1573
+ };
1574
+ export declare type MutationRefreshCustomerVerificationArgs = {
1575
+ emailAddress: Scalars['String'];
1576
+ };
1577
+ export declare type MutationRegisterCustomerAccountArgs = {
1578
+ input: RegisterCustomerInput;
1579
+ };
1552
1580
  export declare type MutationRemoveCouponCodeArgs = {
1553
1581
  couponCode: Scalars['String'];
1554
1582
  };
1555
- export declare type MutationTransitionOrderToStateArgs = {
1556
- state: Scalars['String'];
1583
+ export declare type MutationRemoveOrderLineArgs = {
1584
+ orderLineId: Scalars['ID'];
1557
1585
  };
1558
- export declare type MutationSetOrderShippingAddressArgs = {
1559
- input: CreateAddressInput;
1586
+ export declare type MutationRequestPasswordResetArgs = {
1587
+ emailAddress: Scalars['String'];
1588
+ };
1589
+ export declare type MutationRequestUpdateCustomerEmailAddressArgs = {
1590
+ newEmailAddress: Scalars['String'];
1591
+ password: Scalars['String'];
1592
+ };
1593
+ export declare type MutationResetPasswordArgs = {
1594
+ password: Scalars['String'];
1595
+ token: Scalars['String'];
1596
+ };
1597
+ export declare type MutationSetCustomerForOrderArgs = {
1598
+ input: CreateCustomerInput;
1560
1599
  };
1561
1600
  export declare type MutationSetOrderBillingAddressArgs = {
1562
1601
  input: CreateAddressInput;
@@ -1564,67 +1603,35 @@ export declare type MutationSetOrderBillingAddressArgs = {
1564
1603
  export declare type MutationSetOrderCustomFieldsArgs = {
1565
1604
  input: UpdateOrderInput;
1566
1605
  };
1606
+ export declare type MutationSetOrderShippingAddressArgs = {
1607
+ input: CreateAddressInput;
1608
+ };
1567
1609
  export declare type MutationSetOrderShippingMethodArgs = {
1568
1610
  shippingMethodId: Scalars['ID'];
1569
1611
  };
1570
- export declare type MutationAddPaymentToOrderArgs = {
1571
- input: PaymentInput;
1572
- };
1573
- export declare type MutationSetCustomerForOrderArgs = {
1574
- input: CreateCustomerInput;
1575
- };
1576
- export declare type MutationLoginArgs = {
1577
- username: Scalars['String'];
1578
- password: Scalars['String'];
1579
- rememberMe?: Maybe<Scalars['Boolean']>;
1580
- };
1581
- export declare type MutationAuthenticateArgs = {
1582
- input: AuthenticationInput;
1583
- rememberMe?: Maybe<Scalars['Boolean']>;
1584
- };
1585
- export declare type MutationRegisterCustomerAccountArgs = {
1586
- input: RegisterCustomerInput;
1587
- };
1588
- export declare type MutationRefreshCustomerVerificationArgs = {
1589
- emailAddress: Scalars['String'];
1612
+ export declare type MutationTransitionOrderToStateArgs = {
1613
+ state: Scalars['String'];
1590
1614
  };
1591
1615
  export declare type MutationUpdateCustomerArgs = {
1592
1616
  input: UpdateCustomerInput;
1593
1617
  };
1594
- export declare type MutationCreateCustomerAddressArgs = {
1595
- input: CreateAddressInput;
1596
- };
1597
1618
  export declare type MutationUpdateCustomerAddressArgs = {
1598
1619
  input: UpdateAddressInput;
1599
1620
  };
1600
- export declare type MutationDeleteCustomerAddressArgs = {
1601
- id: Scalars['ID'];
1602
- };
1603
- export declare type MutationVerifyCustomerAccountArgs = {
1621
+ export declare type MutationUpdateCustomerEmailAddressArgs = {
1604
1622
  token: Scalars['String'];
1605
- password?: Maybe<Scalars['String']>;
1606
1623
  };
1607
1624
  export declare type MutationUpdateCustomerPasswordArgs = {
1608
1625
  currentPassword: Scalars['String'];
1609
1626
  newPassword: Scalars['String'];
1610
1627
  };
1611
- export declare type MutationRequestUpdateCustomerEmailAddressArgs = {
1612
- password: Scalars['String'];
1613
- newEmailAddress: Scalars['String'];
1614
- };
1615
- export declare type MutationUpdateCustomerEmailAddressArgs = {
1616
- token: Scalars['String'];
1617
- };
1618
- export declare type MutationRequestPasswordResetArgs = {
1619
- emailAddress: Scalars['String'];
1620
- };
1621
- export declare type MutationResetPasswordArgs = {
1628
+ export declare type MutationVerifyCustomerAccountArgs = {
1629
+ password?: InputMaybe<Scalars['String']>;
1622
1630
  token: Scalars['String'];
1623
- password: Scalars['String'];
1624
1631
  };
1625
1632
  export declare type NativeAuthInput = {
1626
- username: Scalars['String'];
1627
1633
  password: Scalars['String'];
1634
+ username: Scalars['String'];
1628
1635
  };
1629
1636
  /** Returned when attempting an operation that relies on the NativeAuthStrategy, if that strategy is not configured. */
1630
1637
  export declare type NativeAuthStrategyError = ErrorResult & {
@@ -1632,7 +1639,7 @@ export declare type NativeAuthStrategyError = ErrorResult & {
1632
1639
  errorCode: ErrorCode;
1633
1640
  message: Scalars['String'];
1634
1641
  };
1635
- export declare type NativeAuthenticationResult = CurrentUser | InvalidCredentialsError | NotVerifiedError | NativeAuthStrategyError;
1642
+ export declare type NativeAuthenticationResult = CurrentUser | InvalidCredentialsError | NativeAuthStrategyError | NotVerifiedError;
1636
1643
  /** Returned when attempting to set a negative OrderLine quantity. */
1637
1644
  export declare type NegativeQuantityError = ErrorResult & {
1638
1645
  __typename?: 'NegativeQuantityError';
@@ -1666,51 +1673,48 @@ export declare type NumberListOperators = {
1666
1673
  };
1667
1674
  /** Operators for filtering on a Int or Float field */
1668
1675
  export declare type NumberOperators = {
1669
- eq?: Maybe<Scalars['Float']>;
1670
- lt?: Maybe<Scalars['Float']>;
1671
- lte?: Maybe<Scalars['Float']>;
1672
- gt?: Maybe<Scalars['Float']>;
1673
- gte?: Maybe<Scalars['Float']>;
1674
- between?: Maybe<NumberRange>;
1676
+ between?: InputMaybe<NumberRange>;
1677
+ eq?: InputMaybe<Scalars['Float']>;
1678
+ gt?: InputMaybe<Scalars['Float']>;
1679
+ gte?: InputMaybe<Scalars['Float']>;
1680
+ lt?: InputMaybe<Scalars['Float']>;
1681
+ lte?: InputMaybe<Scalars['Float']>;
1675
1682
  };
1676
1683
  export declare type NumberRange = {
1677
- start: Scalars['Float'];
1678
1684
  end: Scalars['Float'];
1685
+ start: Scalars['Float'];
1679
1686
  };
1680
1687
  export declare type Order = Node & {
1681
1688
  __typename?: 'Order';
1682
- id: Scalars['ID'];
1683
- createdAt: Scalars['DateTime'];
1684
- updatedAt: Scalars['DateTime'];
1685
- /**
1686
- * The date & time that the Order was placed, i.e. the Customer
1687
- * completed the checkout and the Order is no longer "active"
1688
- */
1689
- orderPlacedAt?: Maybe<Scalars['DateTime']>;
1690
- /** A unique code for the Order */
1691
- code: Scalars['String'];
1692
- state: Scalars['String'];
1693
1689
  /** An order is active as long as the payment process has not been completed */
1694
1690
  active: Scalars['Boolean'];
1695
- customer?: Maybe<Customer>;
1696
- shippingAddress?: Maybe<OrderAddress>;
1697
1691
  billingAddress?: Maybe<OrderAddress>;
1692
+ /** A unique code for the Order */
1693
+ code: Scalars['String'];
1694
+ /** An array of all coupon codes applied to the Order */
1695
+ couponCodes: Array<Scalars['String']>;
1696
+ createdAt: Scalars['DateTime'];
1697
+ currencyCode: CurrencyCode;
1698
+ customFields?: Maybe<Scalars['JSON']>;
1699
+ customer?: Maybe<Customer>;
1700
+ discounts: Array<Discount>;
1701
+ fulfillments?: Maybe<Array<Fulfillment>>;
1702
+ history: HistoryEntryList;
1703
+ id: Scalars['ID'];
1698
1704
  lines: Array<OrderLine>;
1699
1705
  /**
1700
- * Surcharges are arbitrary modifications to the Order total which are neither
1701
- * ProductVariants nor discounts resulting from applied Promotions. For example,
1702
- * one-off discounts based on customer interaction, or surcharges based on payment
1703
- * methods.
1706
+ * The date & time that the Order was placed, i.e. the Customer
1707
+ * completed the checkout and the Order is no longer "active"
1704
1708
  */
1705
- surcharges: Array<Surcharge>;
1706
- discounts: Array<Discount>;
1707
- /** An array of all coupon codes applied to the Order */
1708
- couponCodes: Array<Scalars['String']>;
1709
+ orderPlacedAt?: Maybe<Scalars['DateTime']>;
1710
+ payments?: Maybe<Array<Payment>>;
1709
1711
  /** Promotions applied to the order. Only gets populated after the payment process has completed. */
1710
1712
  promotions: Array<Promotion>;
1711
- payments?: Maybe<Array<Payment>>;
1712
- fulfillments?: Maybe<Array<Fulfillment>>;
1713
- totalQuantity: Scalars['Int'];
1713
+ shipping: Scalars['Int'];
1714
+ shippingAddress?: Maybe<OrderAddress>;
1715
+ shippingLines: Array<ShippingLine>;
1716
+ shippingWithTax: Scalars['Int'];
1717
+ state: Scalars['String'];
1714
1718
  /**
1715
1719
  * The subTotal is the total of all OrderLines in the Order. This figure also includes any Order-level
1716
1720
  * discounts which have been prorated (proportionally distributed) amongst the OrderItems.
@@ -1720,63 +1724,61 @@ export declare type Order = Node & {
1720
1724
  subTotal: Scalars['Int'];
1721
1725
  /** Same as subTotal, but inclusive of tax */
1722
1726
  subTotalWithTax: Scalars['Int'];
1723
- currencyCode: CurrencyCode;
1724
- shippingLines: Array<ShippingLine>;
1725
- shipping: Scalars['Int'];
1726
- shippingWithTax: Scalars['Int'];
1727
+ /**
1728
+ * Surcharges are arbitrary modifications to the Order total which are neither
1729
+ * ProductVariants nor discounts resulting from applied Promotions. For example,
1730
+ * one-off discounts based on customer interaction, or surcharges based on payment
1731
+ * methods.
1732
+ */
1733
+ surcharges: Array<Surcharge>;
1734
+ /** A summary of the taxes being applied to this Order */
1735
+ taxSummary: Array<OrderTaxSummary>;
1727
1736
  /** Equal to subTotal plus shipping */
1728
1737
  total: Scalars['Int'];
1738
+ totalQuantity: Scalars['Int'];
1729
1739
  /** The final payable amount. Equal to subTotalWithTax plus shippingWithTax */
1730
1740
  totalWithTax: Scalars['Int'];
1731
- /** A summary of the taxes being applied to this Order */
1732
- taxSummary: Array<OrderTaxSummary>;
1733
- history: HistoryEntryList;
1734
- customFields?: Maybe<Scalars['JSON']>;
1741
+ updatedAt: Scalars['DateTime'];
1735
1742
  };
1736
1743
  export declare type OrderHistoryArgs = {
1737
- options?: Maybe<HistoryEntryListOptions>;
1744
+ options?: InputMaybe<HistoryEntryListOptions>;
1738
1745
  };
1739
1746
  export declare type OrderAddress = {
1740
1747
  __typename?: 'OrderAddress';
1741
- fullName?: Maybe<Scalars['String']>;
1742
- company?: Maybe<Scalars['String']>;
1743
- streetLine1?: Maybe<Scalars['String']>;
1744
- streetLine2?: Maybe<Scalars['String']>;
1745
1748
  city?: Maybe<Scalars['String']>;
1746
- province?: Maybe<Scalars['String']>;
1747
- postalCode?: Maybe<Scalars['String']>;
1749
+ company?: Maybe<Scalars['String']>;
1748
1750
  country?: Maybe<Scalars['String']>;
1749
1751
  countryCode?: Maybe<Scalars['String']>;
1750
- phoneNumber?: Maybe<Scalars['String']>;
1751
1752
  customFields?: Maybe<Scalars['JSON']>;
1753
+ fullName?: Maybe<Scalars['String']>;
1754
+ phoneNumber?: Maybe<Scalars['String']>;
1755
+ postalCode?: Maybe<Scalars['String']>;
1756
+ province?: Maybe<Scalars['String']>;
1757
+ streetLine1?: Maybe<Scalars['String']>;
1758
+ streetLine2?: Maybe<Scalars['String']>;
1752
1759
  };
1753
1760
  export declare type OrderFilterParameter = {
1754
- id?: Maybe<IdOperators>;
1755
- createdAt?: Maybe<DateOperators>;
1756
- updatedAt?: Maybe<DateOperators>;
1757
- orderPlacedAt?: Maybe<DateOperators>;
1758
- code?: Maybe<StringOperators>;
1759
- state?: Maybe<StringOperators>;
1760
- active?: Maybe<BooleanOperators>;
1761
- totalQuantity?: Maybe<NumberOperators>;
1762
- subTotal?: Maybe<NumberOperators>;
1763
- subTotalWithTax?: Maybe<NumberOperators>;
1764
- currencyCode?: Maybe<StringOperators>;
1765
- shipping?: Maybe<NumberOperators>;
1766
- shippingWithTax?: Maybe<NumberOperators>;
1767
- total?: Maybe<NumberOperators>;
1768
- totalWithTax?: Maybe<NumberOperators>;
1761
+ active?: InputMaybe<BooleanOperators>;
1762
+ code?: InputMaybe<StringOperators>;
1763
+ createdAt?: InputMaybe<DateOperators>;
1764
+ currencyCode?: InputMaybe<StringOperators>;
1765
+ id?: InputMaybe<IdOperators>;
1766
+ orderPlacedAt?: InputMaybe<DateOperators>;
1767
+ shipping?: InputMaybe<NumberOperators>;
1768
+ shippingWithTax?: InputMaybe<NumberOperators>;
1769
+ state?: InputMaybe<StringOperators>;
1770
+ subTotal?: InputMaybe<NumberOperators>;
1771
+ subTotalWithTax?: InputMaybe<NumberOperators>;
1772
+ total?: InputMaybe<NumberOperators>;
1773
+ totalQuantity?: InputMaybe<NumberOperators>;
1774
+ totalWithTax?: InputMaybe<NumberOperators>;
1775
+ updatedAt?: InputMaybe<DateOperators>;
1769
1776
  };
1770
1777
  export declare type OrderItem = Node & {
1771
1778
  __typename?: 'OrderItem';
1772
- id: Scalars['ID'];
1773
- createdAt: Scalars['DateTime'];
1774
- updatedAt: Scalars['DateTime'];
1779
+ adjustments: Array<Adjustment>;
1775
1780
  cancelled: Scalars['Boolean'];
1776
- /** The price of a single unit, excluding tax and discounts */
1777
- unitPrice: Scalars['Int'];
1778
- /** The price of a single unit, including tax but excluding discounts */
1779
- unitPriceWithTax: Scalars['Int'];
1781
+ createdAt: Scalars['DateTime'];
1780
1782
  /**
1781
1783
  * The price of a single unit including discounts, excluding tax.
1782
1784
  *
@@ -1788,6 +1790,8 @@ export declare type OrderItem = Node & {
1788
1790
  discountedUnitPrice: Scalars['Int'];
1789
1791
  /** The price of a single unit including discounts and tax */
1790
1792
  discountedUnitPriceWithTax: Scalars['Int'];
1793
+ fulfillment?: Maybe<Fulfillment>;
1794
+ id: Scalars['ID'];
1791
1795
  /**
1792
1796
  * The actual unit price, taking into account both item discounts _and_ prorated (proportionally-distributed)
1793
1797
  * Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax
@@ -1796,35 +1800,31 @@ export declare type OrderItem = Node & {
1796
1800
  proratedUnitPrice: Scalars['Int'];
1797
1801
  /** The proratedUnitPrice including tax */
1798
1802
  proratedUnitPriceWithTax: Scalars['Int'];
1799
- unitTax: Scalars['Int'];
1800
- taxRate: Scalars['Float'];
1801
- adjustments: Array<Adjustment>;
1802
- taxLines: Array<TaxLine>;
1803
- fulfillment?: Maybe<Fulfillment>;
1804
1803
  refundId?: Maybe<Scalars['ID']>;
1804
+ taxLines: Array<TaxLine>;
1805
+ taxRate: Scalars['Float'];
1806
+ /** The price of a single unit, excluding tax and discounts */
1807
+ unitPrice: Scalars['Int'];
1808
+ /** The price of a single unit, including tax but excluding discounts */
1809
+ unitPriceWithTax: Scalars['Int'];
1810
+ unitTax: Scalars['Int'];
1811
+ updatedAt: Scalars['DateTime'];
1805
1812
  };
1806
1813
  /** Returned when the maximum order size limit has been reached. */
1807
1814
  export declare type OrderLimitError = ErrorResult & {
1808
1815
  __typename?: 'OrderLimitError';
1809
1816
  errorCode: ErrorCode;
1810
- message: Scalars['String'];
1811
1817
  maxItems: Scalars['Int'];
1818
+ message: Scalars['String'];
1812
1819
  };
1813
1820
  export declare type OrderLine = Node & {
1814
1821
  __typename?: 'OrderLine';
1815
- id: Scalars['ID'];
1816
1822
  createdAt: Scalars['DateTime'];
1817
- updatedAt: Scalars['DateTime'];
1818
- productVariant: ProductVariant;
1819
- featuredAsset?: Maybe<Asset>;
1820
- /** The price of a single unit, excluding tax and discounts */
1821
- unitPrice: Scalars['Int'];
1822
- /** The price of a single unit, including tax but excluding discounts */
1823
- unitPriceWithTax: Scalars['Int'];
1824
- /** Non-zero if the unitPrice has changed since it was initially added to Order */
1825
- unitPriceChangeSinceAdded: Scalars['Int'];
1826
- /** Non-zero if the unitPriceWithTax has changed since it was initially added to Order */
1827
- unitPriceWithTaxChangeSinceAdded: Scalars['Int'];
1823
+ customFields?: Maybe<Scalars['JSON']>;
1824
+ /** The price of the line including discounts, excluding tax */
1825
+ discountedLinePrice: Scalars['Int'];
1826
+ /** The price of the line including discounts and tax */
1827
+ discountedLinePriceWithTax: Scalars['Int'];
1828
1828
  /**
1829
1829
  * The price of a single unit including discounts, excluding tax.
1830
1830
  *
@@ -1836,25 +1836,19 @@ export declare type OrderLine = Node & {
1836
1836
  discountedUnitPrice: Scalars['Int'];
1837
1837
  /** The price of a single unit including discounts and tax */
1838
1838
  discountedUnitPriceWithTax: Scalars['Int'];
1839
- /**
1840
- * The actual unit price, taking into account both item discounts _and_ prorated (proportionally-distributed)
1841
- * Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax
1842
- * and refund calculations.
1843
- */
1844
- proratedUnitPrice: Scalars['Int'];
1845
- /** The proratedUnitPrice including tax */
1846
- proratedUnitPriceWithTax: Scalars['Int'];
1847
- quantity: Scalars['Int'];
1839
+ discounts: Array<Discount>;
1840
+ featuredAsset?: Maybe<Asset>;
1841
+ fulfillments?: Maybe<Array<Fulfillment>>;
1842
+ id: Scalars['ID'];
1848
1843
  items: Array<OrderItem>;
1849
- taxRate: Scalars['Float'];
1850
1844
  /** The total price of the line excluding tax and discounts. */
1851
1845
  linePrice: Scalars['Int'];
1852
1846
  /** The total price of the line including tax but excluding discounts. */
1853
1847
  linePriceWithTax: Scalars['Int'];
1854
- /** The price of the line including discounts, excluding tax */
1855
- discountedLinePrice: Scalars['Int'];
1856
- /** The price of the line including discounts and tax */
1857
- discountedLinePriceWithTax: Scalars['Int'];
1848
+ /** The total tax on this line */
1849
+ lineTax: Scalars['Int'];
1850
+ order: Order;
1851
+ productVariant: ProductVariant;
1858
1852
  /**
1859
1853
  * The actual line price, taking into account both item discounts _and_ prorated (proportionally-distributed)
1860
1854
  * Order-level discounts. This value is the true economic value of the OrderLine, and is used in tax
@@ -1863,29 +1857,43 @@ export declare type OrderLine = Node & {
1863
1857
  proratedLinePrice: Scalars['Int'];
1864
1858
  /** The proratedLinePrice including tax */
1865
1859
  proratedLinePriceWithTax: Scalars['Int'];
1866
- /** The total tax on this line */
1867
- lineTax: Scalars['Int'];
1868
- discounts: Array<Discount>;
1869
- taxLines: Array<TaxLine>;
1870
- order: Order;
1871
- customFields?: Maybe<Scalars['JSON']>;
1872
- };
1873
- export declare type OrderList = PaginatedList & {
1874
- __typename?: 'OrderList';
1875
- items: Array<Order>;
1860
+ /**
1861
+ * The actual unit price, taking into account both item discounts _and_ prorated (proportionally-distributed)
1862
+ * Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax
1863
+ * and refund calculations.
1864
+ */
1865
+ proratedUnitPrice: Scalars['Int'];
1866
+ /** The proratedUnitPrice including tax */
1867
+ proratedUnitPriceWithTax: Scalars['Int'];
1868
+ quantity: Scalars['Int'];
1869
+ taxLines: Array<TaxLine>;
1870
+ taxRate: Scalars['Float'];
1871
+ /** The price of a single unit, excluding tax and discounts */
1872
+ unitPrice: Scalars['Int'];
1873
+ /** Non-zero if the unitPrice has changed since it was initially added to Order */
1874
+ unitPriceChangeSinceAdded: Scalars['Int'];
1875
+ /** The price of a single unit, including tax but excluding discounts */
1876
+ unitPriceWithTax: Scalars['Int'];
1877
+ /** Non-zero if the unitPriceWithTax has changed since it was initially added to Order */
1878
+ unitPriceWithTaxChangeSinceAdded: Scalars['Int'];
1879
+ updatedAt: Scalars['DateTime'];
1880
+ };
1881
+ export declare type OrderList = PaginatedList & {
1882
+ __typename?: 'OrderList';
1883
+ items: Array<Order>;
1876
1884
  totalItems: Scalars['Int'];
1877
1885
  };
1878
1886
  export declare type OrderListOptions = {
1879
- /** Skips the first n results, for use in pagination */
1880
- skip?: Maybe<Scalars['Int']>;
1881
- /** Takes n results, for use in pagination */
1882
- take?: Maybe<Scalars['Int']>;
1883
- /** Specifies which properties to sort the results by */
1884
- sort?: Maybe<OrderSortParameter>;
1885
1887
  /** Allows the results to be filtered */
1886
- filter?: Maybe<OrderFilterParameter>;
1888
+ filter?: InputMaybe<OrderFilterParameter>;
1887
1889
  /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */
1888
- filterOperator?: Maybe<LogicalOperator>;
1890
+ filterOperator?: InputMaybe<LogicalOperator>;
1891
+ /** Skips the first n results, for use in pagination */
1892
+ skip?: InputMaybe<Scalars['Int']>;
1893
+ /** Specifies which properties to sort the results by */
1894
+ sort?: InputMaybe<OrderSortParameter>;
1895
+ /** Takes n results, for use in pagination */
1896
+ take?: InputMaybe<Scalars['Int']>;
1889
1897
  };
1890
1898
  /** Returned when attempting to modify the contents of an Order that is not in the `AddingItems` state. */
1891
1899
  export declare type OrderModificationError = ErrorResult & {
@@ -1900,28 +1908,28 @@ export declare type OrderPaymentStateError = ErrorResult & {
1900
1908
  message: Scalars['String'];
1901
1909
  };
1902
1910
  export declare type OrderSortParameter = {
1903
- id?: Maybe<SortOrder>;
1904
- createdAt?: Maybe<SortOrder>;
1905
- updatedAt?: Maybe<SortOrder>;
1906
- orderPlacedAt?: Maybe<SortOrder>;
1907
- code?: Maybe<SortOrder>;
1908
- state?: Maybe<SortOrder>;
1909
- totalQuantity?: Maybe<SortOrder>;
1910
- subTotal?: Maybe<SortOrder>;
1911
- subTotalWithTax?: Maybe<SortOrder>;
1912
- shipping?: Maybe<SortOrder>;
1913
- shippingWithTax?: Maybe<SortOrder>;
1914
- total?: Maybe<SortOrder>;
1915
- totalWithTax?: Maybe<SortOrder>;
1911
+ code?: InputMaybe<SortOrder>;
1912
+ createdAt?: InputMaybe<SortOrder>;
1913
+ id?: InputMaybe<SortOrder>;
1914
+ orderPlacedAt?: InputMaybe<SortOrder>;
1915
+ shipping?: InputMaybe<SortOrder>;
1916
+ shippingWithTax?: InputMaybe<SortOrder>;
1917
+ state?: InputMaybe<SortOrder>;
1918
+ subTotal?: InputMaybe<SortOrder>;
1919
+ subTotalWithTax?: InputMaybe<SortOrder>;
1920
+ total?: InputMaybe<SortOrder>;
1921
+ totalQuantity?: InputMaybe<SortOrder>;
1922
+ totalWithTax?: InputMaybe<SortOrder>;
1923
+ updatedAt?: InputMaybe<SortOrder>;
1916
1924
  };
1917
1925
  /** Returned if there is an error in transitioning the Order state */
1918
1926
  export declare type OrderStateTransitionError = ErrorResult & {
1919
1927
  __typename?: 'OrderStateTransitionError';
1920
1928
  errorCode: ErrorCode;
1921
- message: Scalars['String'];
1922
- transitionError: Scalars['String'];
1923
1929
  fromState: Scalars['String'];
1930
+ message: Scalars['String'];
1924
1931
  toState: Scalars['String'];
1932
+ transitionError: Scalars['String'];
1925
1933
  };
1926
1934
  /**
1927
1935
  * A summary of the taxes being applied to this order, grouped
@@ -1931,10 +1939,10 @@ export declare type OrderTaxSummary = {
1931
1939
  __typename?: 'OrderTaxSummary';
1932
1940
  /** A description of this tax */
1933
1941
  description: Scalars['String'];
1934
- /** The taxRate as a percentage */
1935
- taxRate: Scalars['Float'];
1936
1942
  /** The total net price or OrderItems to which this taxRate applies */
1937
1943
  taxBase: Scalars['Int'];
1944
+ /** The taxRate as a percentage */
1945
+ taxRate: Scalars['Float'];
1938
1946
  /** The total tax being applied to the Order at this taxRate */
1939
1947
  taxTotal: Scalars['Int'];
1940
1948
  };
@@ -1975,16 +1983,16 @@ export declare type PasswordValidationError = ErrorResult & {
1975
1983
  };
1976
1984
  export declare type Payment = Node & {
1977
1985
  __typename?: 'Payment';
1978
- id: Scalars['ID'];
1986
+ amount: Scalars['Int'];
1979
1987
  createdAt: Scalars['DateTime'];
1980
- updatedAt: Scalars['DateTime'];
1988
+ errorMessage?: Maybe<Scalars['String']>;
1989
+ id: Scalars['ID'];
1990
+ metadata?: Maybe<Scalars['JSON']>;
1981
1991
  method: Scalars['String'];
1982
- amount: Scalars['Int'];
1992
+ refunds: Array<Refund>;
1983
1993
  state: Scalars['String'];
1984
1994
  transactionId?: Maybe<Scalars['String']>;
1985
- errorMessage?: Maybe<Scalars['String']>;
1986
- refunds: Array<Refund>;
1987
- metadata?: Maybe<Scalars['JSON']>;
1995
+ updatedAt: Scalars['DateTime'];
1988
1996
  };
1989
1997
  /** Returned when a Payment is declined by the payment provider. */
1990
1998
  export declare type PaymentDeclinedError = ErrorResult & {
@@ -2002,255 +2010,280 @@ export declare type PaymentFailedError = ErrorResult & {
2002
2010
  };
2003
2011
  /** Passed as input to the `addPaymentToOrder` mutation. */
2004
2012
  export declare type PaymentInput = {
2005
- /** This field should correspond to the `code` property of a PaymentMethod. */
2006
- method: Scalars['String'];
2007
2013
  /**
2008
2014
  * This field should contain arbitrary data passed to the specified PaymentMethodHandler's `createPayment()` method
2009
2015
  * as the "metadata" argument. For example, it could contain an ID for the payment and other
2010
2016
  * data generated by the payment provider.
2011
2017
  */
2012
2018
  metadata: Scalars['JSON'];
2019
+ /** This field should correspond to the `code` property of a PaymentMethod. */
2020
+ method: Scalars['String'];
2013
2021
  };
2014
2022
  export declare type PaymentMethod = Node & {
2015
2023
  __typename?: 'PaymentMethod';
2016
- id: Scalars['ID'];
2017
- createdAt: Scalars['DateTime'];
2018
- updatedAt: Scalars['DateTime'];
2019
- name: Scalars['String'];
2024
+ checker?: Maybe<ConfigurableOperation>;
2020
2025
  code: Scalars['String'];
2026
+ createdAt: Scalars['DateTime'];
2027
+ customFields?: Maybe<Scalars['JSON']>;
2021
2028
  description: Scalars['String'];
2022
2029
  enabled: Scalars['Boolean'];
2023
- checker?: Maybe<ConfigurableOperation>;
2024
2030
  handler: ConfigurableOperation;
2025
- customFields?: Maybe<Scalars['JSON']>;
2031
+ id: Scalars['ID'];
2032
+ name: Scalars['String'];
2033
+ updatedAt: Scalars['DateTime'];
2026
2034
  };
2027
2035
  export declare type PaymentMethodQuote = {
2028
2036
  __typename?: 'PaymentMethodQuote';
2029
- id: Scalars['ID'];
2030
2037
  code: Scalars['String'];
2031
- name: Scalars['String'];
2038
+ customFields?: Maybe<Scalars['JSON']>;
2032
2039
  description: Scalars['String'];
2033
- isEligible: Scalars['Boolean'];
2034
2040
  eligibilityMessage?: Maybe<Scalars['String']>;
2035
- customFields?: Maybe<Scalars['JSON']>;
2041
+ id: Scalars['ID'];
2042
+ isEligible: Scalars['Boolean'];
2043
+ name: Scalars['String'];
2036
2044
  };
2037
2045
  /**
2038
2046
  * @description
2039
2047
  * Permissions for administrators and customers. Used to control access to
2040
2048
  * GraphQL resolvers via the {@link Allow} decorator.
2041
2049
  *
2050
+ * ## Understanding Permission.Owner
2051
+ *
2052
+ * `Permission.Owner` is a special permission which is used in some of the Vendure resolvers to indicate that that resolver should only
2053
+ * be accessible to the "owner" of that resource.
2054
+ *
2055
+ * For example, the Shop API `activeCustomer` query resolver should only return the Customer object for the "owner" of that Customer, i.e.
2056
+ * based on the activeUserId of the current session. As a result, the resolver code looks like this:
2057
+ *
2058
+ * @example
2059
+ * ```TypeScript
2060
+ * \@Query()
2061
+ * \@Allow(Permission.Owner)
2062
+ * async activeCustomer(\@Ctx() ctx: RequestContext): Promise<Customer | undefined> {
2063
+ * const userId = ctx.activeUserId;
2064
+ * if (userId) {
2065
+ * return this.customerService.findOneByUserId(ctx, userId);
2066
+ * }
2067
+ * }
2068
+ * ```
2069
+ *
2070
+ * Here we can see that the "ownership" must be enforced by custom logic inside the resolver. Since "ownership" cannot be defined generally
2071
+ * nor statically encoded at build-time, any resolvers using `Permission.Owner` **must** include logic to enforce that only the owner
2072
+ * of the resource has access. If not, then it is the equivalent of using `Permission.Public`.
2073
+ *
2074
+ *
2042
2075
  * @docsCategory common
2043
2076
  */
2044
2077
  export declare enum Permission {
2045
2078
  /** Authenticated means simply that the user is logged in */
2046
2079
  Authenticated = "Authenticated",
2047
- /** SuperAdmin has unrestricted access to all operations */
2048
- SuperAdmin = "SuperAdmin",
2049
- /** Owner means the user owns this entity, e.g. a Customer's own Order */
2050
- Owner = "Owner",
2051
- /** Public means any unauthenticated user may perform the operation */
2052
- Public = "Public",
2053
- /** Grants permission to update GlobalSettings */
2054
- UpdateGlobalSettings = "UpdateGlobalSettings",
2080
+ /** Grants permission to create Administrator */
2081
+ CreateAdministrator = "CreateAdministrator",
2082
+ /** Grants permission to create Asset */
2083
+ CreateAsset = "CreateAsset",
2055
2084
  /** Grants permission to create Products, Facets, Assets, Collections */
2056
2085
  CreateCatalog = "CreateCatalog",
2057
- /** Grants permission to read Products, Facets, Assets, Collections */
2058
- ReadCatalog = "ReadCatalog",
2059
- /** Grants permission to update Products, Facets, Assets, Collections */
2060
- UpdateCatalog = "UpdateCatalog",
2061
- /** Grants permission to delete Products, Facets, Assets, Collections */
2062
- DeleteCatalog = "DeleteCatalog",
2086
+ /** Grants permission to create Channel */
2087
+ CreateChannel = "CreateChannel",
2088
+ /** Grants permission to create Collection */
2089
+ CreateCollection = "CreateCollection",
2090
+ /** Grants permission to create Country */
2091
+ CreateCountry = "CreateCountry",
2092
+ /** Grants permission to create Customer */
2093
+ CreateCustomer = "CreateCustomer",
2094
+ /** Grants permission to create CustomerGroup */
2095
+ CreateCustomerGroup = "CreateCustomerGroup",
2096
+ /** Grants permission to create Facet */
2097
+ CreateFacet = "CreateFacet",
2098
+ /** Grants permission to create Order */
2099
+ CreateOrder = "CreateOrder",
2100
+ /** Grants permission to create PaymentMethod */
2101
+ CreatePaymentMethod = "CreatePaymentMethod",
2102
+ /** Grants permission to create Product */
2103
+ CreateProduct = "CreateProduct",
2104
+ /** Grants permission to create Promotion */
2105
+ CreatePromotion = "CreatePromotion",
2063
2106
  /** Grants permission to create PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */
2064
2107
  CreateSettings = "CreateSettings",
2065
- /** Grants permission to read PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */
2066
- ReadSettings = "ReadSettings",
2067
- /** Grants permission to update PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */
2068
- UpdateSettings = "UpdateSettings",
2069
- /** Grants permission to delete PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */
2070
- DeleteSettings = "DeleteSettings",
2071
- /** Grants permission to create Administrator */
2072
- CreateAdministrator = "CreateAdministrator",
2073
- /** Grants permission to read Administrator */
2074
- ReadAdministrator = "ReadAdministrator",
2075
- /** Grants permission to update Administrator */
2076
- UpdateAdministrator = "UpdateAdministrator",
2108
+ /** Grants permission to create ShippingMethod */
2109
+ CreateShippingMethod = "CreateShippingMethod",
2110
+ /** Grants permission to create System */
2111
+ CreateSystem = "CreateSystem",
2112
+ /** Grants permission to create Tag */
2113
+ CreateTag = "CreateTag",
2114
+ /** Grants permission to create TaxCategory */
2115
+ CreateTaxCategory = "CreateTaxCategory",
2116
+ /** Grants permission to create TaxRate */
2117
+ CreateTaxRate = "CreateTaxRate",
2118
+ /** Grants permission to create Zone */
2119
+ CreateZone = "CreateZone",
2077
2120
  /** Grants permission to delete Administrator */
2078
2121
  DeleteAdministrator = "DeleteAdministrator",
2079
- /** Grants permission to create Asset */
2080
- CreateAsset = "CreateAsset",
2081
- /** Grants permission to read Asset */
2082
- ReadAsset = "ReadAsset",
2083
- /** Grants permission to update Asset */
2084
- UpdateAsset = "UpdateAsset",
2085
2122
  /** Grants permission to delete Asset */
2086
2123
  DeleteAsset = "DeleteAsset",
2087
- /** Grants permission to create Channel */
2088
- CreateChannel = "CreateChannel",
2089
- /** Grants permission to read Channel */
2090
- ReadChannel = "ReadChannel",
2091
- /** Grants permission to update Channel */
2092
- UpdateChannel = "UpdateChannel",
2124
+ /** Grants permission to delete Products, Facets, Assets, Collections */
2125
+ DeleteCatalog = "DeleteCatalog",
2093
2126
  /** Grants permission to delete Channel */
2094
2127
  DeleteChannel = "DeleteChannel",
2095
- /** Grants permission to create Collection */
2096
- CreateCollection = "CreateCollection",
2097
- /** Grants permission to read Collection */
2098
- ReadCollection = "ReadCollection",
2099
- /** Grants permission to update Collection */
2100
- UpdateCollection = "UpdateCollection",
2101
2128
  /** Grants permission to delete Collection */
2102
2129
  DeleteCollection = "DeleteCollection",
2103
- /** Grants permission to create Country */
2104
- CreateCountry = "CreateCountry",
2105
- /** Grants permission to read Country */
2106
- ReadCountry = "ReadCountry",
2107
- /** Grants permission to update Country */
2108
- UpdateCountry = "UpdateCountry",
2109
2130
  /** Grants permission to delete Country */
2110
2131
  DeleteCountry = "DeleteCountry",
2111
- /** Grants permission to create Customer */
2112
- CreateCustomer = "CreateCustomer",
2113
- /** Grants permission to read Customer */
2114
- ReadCustomer = "ReadCustomer",
2115
- /** Grants permission to update Customer */
2116
- UpdateCustomer = "UpdateCustomer",
2117
2132
  /** Grants permission to delete Customer */
2118
2133
  DeleteCustomer = "DeleteCustomer",
2119
- /** Grants permission to create CustomerGroup */
2120
- CreateCustomerGroup = "CreateCustomerGroup",
2121
- /** Grants permission to read CustomerGroup */
2122
- ReadCustomerGroup = "ReadCustomerGroup",
2123
- /** Grants permission to update CustomerGroup */
2124
- UpdateCustomerGroup = "UpdateCustomerGroup",
2125
2134
  /** Grants permission to delete CustomerGroup */
2126
2135
  DeleteCustomerGroup = "DeleteCustomerGroup",
2127
- /** Grants permission to create Facet */
2128
- CreateFacet = "CreateFacet",
2129
- /** Grants permission to read Facet */
2130
- ReadFacet = "ReadFacet",
2131
- /** Grants permission to update Facet */
2132
- UpdateFacet = "UpdateFacet",
2133
2136
  /** Grants permission to delete Facet */
2134
2137
  DeleteFacet = "DeleteFacet",
2135
- /** Grants permission to create Order */
2136
- CreateOrder = "CreateOrder",
2137
- /** Grants permission to read Order */
2138
- ReadOrder = "ReadOrder",
2139
- /** Grants permission to update Order */
2140
- UpdateOrder = "UpdateOrder",
2141
2138
  /** Grants permission to delete Order */
2142
2139
  DeleteOrder = "DeleteOrder",
2143
- /** Grants permission to create PaymentMethod */
2144
- CreatePaymentMethod = "CreatePaymentMethod",
2145
- /** Grants permission to read PaymentMethod */
2146
- ReadPaymentMethod = "ReadPaymentMethod",
2147
- /** Grants permission to update PaymentMethod */
2148
- UpdatePaymentMethod = "UpdatePaymentMethod",
2149
2140
  /** Grants permission to delete PaymentMethod */
2150
2141
  DeletePaymentMethod = "DeletePaymentMethod",
2151
- /** Grants permission to create Product */
2152
- CreateProduct = "CreateProduct",
2153
- /** Grants permission to read Product */
2154
- ReadProduct = "ReadProduct",
2155
- /** Grants permission to update Product */
2156
- UpdateProduct = "UpdateProduct",
2157
2142
  /** Grants permission to delete Product */
2158
2143
  DeleteProduct = "DeleteProduct",
2159
- /** Grants permission to create Promotion */
2160
- CreatePromotion = "CreatePromotion",
2161
- /** Grants permission to read Promotion */
2162
- ReadPromotion = "ReadPromotion",
2163
- /** Grants permission to update Promotion */
2164
- UpdatePromotion = "UpdatePromotion",
2165
2144
  /** Grants permission to delete Promotion */
2166
2145
  DeletePromotion = "DeletePromotion",
2167
- /** Grants permission to create ShippingMethod */
2168
- CreateShippingMethod = "CreateShippingMethod",
2169
- /** Grants permission to read ShippingMethod */
2170
- ReadShippingMethod = "ReadShippingMethod",
2171
- /** Grants permission to update ShippingMethod */
2172
- UpdateShippingMethod = "UpdateShippingMethod",
2146
+ /** Grants permission to delete PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */
2147
+ DeleteSettings = "DeleteSettings",
2173
2148
  /** Grants permission to delete ShippingMethod */
2174
2149
  DeleteShippingMethod = "DeleteShippingMethod",
2175
- /** Grants permission to create Tag */
2176
- CreateTag = "CreateTag",
2177
- /** Grants permission to read Tag */
2178
- ReadTag = "ReadTag",
2179
- /** Grants permission to update Tag */
2180
- UpdateTag = "UpdateTag",
2150
+ /** Grants permission to delete System */
2151
+ DeleteSystem = "DeleteSystem",
2181
2152
  /** Grants permission to delete Tag */
2182
2153
  DeleteTag = "DeleteTag",
2183
- /** Grants permission to create TaxCategory */
2184
- CreateTaxCategory = "CreateTaxCategory",
2185
- /** Grants permission to read TaxCategory */
2186
- ReadTaxCategory = "ReadTaxCategory",
2187
- /** Grants permission to update TaxCategory */
2188
- UpdateTaxCategory = "UpdateTaxCategory",
2189
2154
  /** Grants permission to delete TaxCategory */
2190
2155
  DeleteTaxCategory = "DeleteTaxCategory",
2191
- /** Grants permission to create TaxRate */
2192
- CreateTaxRate = "CreateTaxRate",
2193
- /** Grants permission to read TaxRate */
2194
- ReadTaxRate = "ReadTaxRate",
2195
- /** Grants permission to update TaxRate */
2196
- UpdateTaxRate = "UpdateTaxRate",
2197
2156
  /** Grants permission to delete TaxRate */
2198
2157
  DeleteTaxRate = "DeleteTaxRate",
2199
- /** Grants permission to create System */
2200
- CreateSystem = "CreateSystem",
2158
+ /** Grants permission to delete Zone */
2159
+ DeleteZone = "DeleteZone",
2160
+ /** Owner means the user owns this entity, e.g. a Customer's own Order */
2161
+ Owner = "Owner",
2162
+ /** Public means any unauthenticated user may perform the operation */
2163
+ Public = "Public",
2164
+ /** Grants permission to read Administrator */
2165
+ ReadAdministrator = "ReadAdministrator",
2166
+ /** Grants permission to read Asset */
2167
+ ReadAsset = "ReadAsset",
2168
+ /** Grants permission to read Products, Facets, Assets, Collections */
2169
+ ReadCatalog = "ReadCatalog",
2170
+ /** Grants permission to read Channel */
2171
+ ReadChannel = "ReadChannel",
2172
+ /** Grants permission to read Collection */
2173
+ ReadCollection = "ReadCollection",
2174
+ /** Grants permission to read Country */
2175
+ ReadCountry = "ReadCountry",
2176
+ /** Grants permission to read Customer */
2177
+ ReadCustomer = "ReadCustomer",
2178
+ /** Grants permission to read CustomerGroup */
2179
+ ReadCustomerGroup = "ReadCustomerGroup",
2180
+ /** Grants permission to read Facet */
2181
+ ReadFacet = "ReadFacet",
2182
+ /** Grants permission to read Order */
2183
+ ReadOrder = "ReadOrder",
2184
+ /** Grants permission to read PaymentMethod */
2185
+ ReadPaymentMethod = "ReadPaymentMethod",
2186
+ /** Grants permission to read Product */
2187
+ ReadProduct = "ReadProduct",
2188
+ /** Grants permission to read Promotion */
2189
+ ReadPromotion = "ReadPromotion",
2190
+ /** Grants permission to read PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */
2191
+ ReadSettings = "ReadSettings",
2192
+ /** Grants permission to read ShippingMethod */
2193
+ ReadShippingMethod = "ReadShippingMethod",
2201
2194
  /** Grants permission to read System */
2202
2195
  ReadSystem = "ReadSystem",
2203
- /** Grants permission to update System */
2204
- UpdateSystem = "UpdateSystem",
2205
- /** Grants permission to delete System */
2206
- DeleteSystem = "DeleteSystem",
2207
- /** Grants permission to create Zone */
2208
- CreateZone = "CreateZone",
2196
+ /** Grants permission to read Tag */
2197
+ ReadTag = "ReadTag",
2198
+ /** Grants permission to read TaxCategory */
2199
+ ReadTaxCategory = "ReadTaxCategory",
2200
+ /** Grants permission to read TaxRate */
2201
+ ReadTaxRate = "ReadTaxRate",
2209
2202
  /** Grants permission to read Zone */
2210
2203
  ReadZone = "ReadZone",
2204
+ /** SuperAdmin has unrestricted access to all operations */
2205
+ SuperAdmin = "SuperAdmin",
2206
+ /** Grants permission to update Administrator */
2207
+ UpdateAdministrator = "UpdateAdministrator",
2208
+ /** Grants permission to update Asset */
2209
+ UpdateAsset = "UpdateAsset",
2210
+ /** Grants permission to update Products, Facets, Assets, Collections */
2211
+ UpdateCatalog = "UpdateCatalog",
2212
+ /** Grants permission to update Channel */
2213
+ UpdateChannel = "UpdateChannel",
2214
+ /** Grants permission to update Collection */
2215
+ UpdateCollection = "UpdateCollection",
2216
+ /** Grants permission to update Country */
2217
+ UpdateCountry = "UpdateCountry",
2218
+ /** Grants permission to update Customer */
2219
+ UpdateCustomer = "UpdateCustomer",
2220
+ /** Grants permission to update CustomerGroup */
2221
+ UpdateCustomerGroup = "UpdateCustomerGroup",
2222
+ /** Grants permission to update Facet */
2223
+ UpdateFacet = "UpdateFacet",
2224
+ /** Grants permission to update GlobalSettings */
2225
+ UpdateGlobalSettings = "UpdateGlobalSettings",
2226
+ /** Grants permission to update Order */
2227
+ UpdateOrder = "UpdateOrder",
2228
+ /** Grants permission to update PaymentMethod */
2229
+ UpdatePaymentMethod = "UpdatePaymentMethod",
2230
+ /** Grants permission to update Product */
2231
+ UpdateProduct = "UpdateProduct",
2232
+ /** Grants permission to update Promotion */
2233
+ UpdatePromotion = "UpdatePromotion",
2234
+ /** Grants permission to update PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */
2235
+ UpdateSettings = "UpdateSettings",
2236
+ /** Grants permission to update ShippingMethod */
2237
+ UpdateShippingMethod = "UpdateShippingMethod",
2238
+ /** Grants permission to update System */
2239
+ UpdateSystem = "UpdateSystem",
2240
+ /** Grants permission to update Tag */
2241
+ UpdateTag = "UpdateTag",
2242
+ /** Grants permission to update TaxCategory */
2243
+ UpdateTaxCategory = "UpdateTaxCategory",
2244
+ /** Grants permission to update TaxRate */
2245
+ UpdateTaxRate = "UpdateTaxRate",
2211
2246
  /** Grants permission to update Zone */
2212
- UpdateZone = "UpdateZone",
2213
- /** Grants permission to delete Zone */
2214
- DeleteZone = "DeleteZone"
2247
+ UpdateZone = "UpdateZone"
2215
2248
  }
2216
2249
  /** The price range where the result has more than one price */
2217
2250
  export declare type PriceRange = {
2218
2251
  __typename?: 'PriceRange';
2219
- min: Scalars['Int'];
2220
2252
  max: Scalars['Int'];
2253
+ min: Scalars['Int'];
2221
2254
  };
2222
2255
  export declare type Product = Node & {
2223
2256
  __typename?: 'Product';
2224
- id: Scalars['ID'];
2257
+ assets: Array<Asset>;
2258
+ collections: Array<Collection>;
2225
2259
  createdAt: Scalars['DateTime'];
2226
- updatedAt: Scalars['DateTime'];
2260
+ customFields?: Maybe<Scalars['JSON']>;
2261
+ description: Scalars['String'];
2262
+ facetValues: Array<FacetValue>;
2263
+ featuredAsset?: Maybe<Asset>;
2264
+ id: Scalars['ID'];
2227
2265
  languageCode: LanguageCode;
2228
2266
  name: Scalars['String'];
2267
+ optionGroups: Array<ProductOptionGroup>;
2229
2268
  slug: Scalars['String'];
2230
- description: Scalars['String'];
2231
- featuredAsset?: Maybe<Asset>;
2232
- assets: Array<Asset>;
2233
- /** Returns all ProductVariants */
2234
- variants: Array<ProductVariant>;
2269
+ translations: Array<ProductTranslation>;
2270
+ updatedAt: Scalars['DateTime'];
2235
2271
  /** Returns a paginated, sortable, filterable list of ProductVariants */
2236
2272
  variantList: ProductVariantList;
2237
- optionGroups: Array<ProductOptionGroup>;
2238
- facetValues: Array<FacetValue>;
2239
- translations: Array<ProductTranslation>;
2240
- collections: Array<Collection>;
2241
- customFields?: Maybe<Scalars['JSON']>;
2273
+ /** Returns all ProductVariants */
2274
+ variants: Array<ProductVariant>;
2242
2275
  };
2243
2276
  export declare type ProductVariantListArgs = {
2244
- options?: Maybe<ProductVariantListOptions>;
2277
+ options?: InputMaybe<ProductVariantListOptions>;
2245
2278
  };
2246
2279
  export declare type ProductFilterParameter = {
2247
- id?: Maybe<IdOperators>;
2248
- createdAt?: Maybe<DateOperators>;
2249
- updatedAt?: Maybe<DateOperators>;
2250
- languageCode?: Maybe<StringOperators>;
2251
- name?: Maybe<StringOperators>;
2252
- slug?: Maybe<StringOperators>;
2253
- description?: Maybe<StringOperators>;
2280
+ createdAt?: InputMaybe<DateOperators>;
2281
+ description?: InputMaybe<StringOperators>;
2282
+ id?: InputMaybe<IdOperators>;
2283
+ languageCode?: InputMaybe<StringOperators>;
2284
+ name?: InputMaybe<StringOperators>;
2285
+ slug?: InputMaybe<StringOperators>;
2286
+ updatedAt?: InputMaybe<DateOperators>;
2254
2287
  };
2255
2288
  export declare type ProductList = PaginatedList & {
2256
2289
  __typename?: 'ProductList';
@@ -2258,111 +2291,111 @@ export declare type ProductList = PaginatedList & {
2258
2291
  totalItems: Scalars['Int'];
2259
2292
  };
2260
2293
  export declare type ProductListOptions = {
2261
- /** Skips the first n results, for use in pagination */
2262
- skip?: Maybe<Scalars['Int']>;
2263
- /** Takes n results, for use in pagination */
2264
- take?: Maybe<Scalars['Int']>;
2265
- /** Specifies which properties to sort the results by */
2266
- sort?: Maybe<ProductSortParameter>;
2267
2294
  /** Allows the results to be filtered */
2268
- filter?: Maybe<ProductFilterParameter>;
2295
+ filter?: InputMaybe<ProductFilterParameter>;
2269
2296
  /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */
2270
- filterOperator?: Maybe<LogicalOperator>;
2297
+ filterOperator?: InputMaybe<LogicalOperator>;
2298
+ /** Skips the first n results, for use in pagination */
2299
+ skip?: InputMaybe<Scalars['Int']>;
2300
+ /** Specifies which properties to sort the results by */
2301
+ sort?: InputMaybe<ProductSortParameter>;
2302
+ /** Takes n results, for use in pagination */
2303
+ take?: InputMaybe<Scalars['Int']>;
2271
2304
  };
2272
2305
  export declare type ProductOption = Node & {
2273
2306
  __typename?: 'ProductOption';
2274
- id: Scalars['ID'];
2307
+ code: Scalars['String'];
2275
2308
  createdAt: Scalars['DateTime'];
2276
- updatedAt: Scalars['DateTime'];
2309
+ customFields?: Maybe<Scalars['JSON']>;
2310
+ group: ProductOptionGroup;
2311
+ groupId: Scalars['ID'];
2312
+ id: Scalars['ID'];
2277
2313
  languageCode: LanguageCode;
2278
- code: Scalars['String'];
2279
2314
  name: Scalars['String'];
2280
- groupId: Scalars['ID'];
2281
- group: ProductOptionGroup;
2282
2315
  translations: Array<ProductOptionTranslation>;
2283
- customFields?: Maybe<Scalars['JSON']>;
2316
+ updatedAt: Scalars['DateTime'];
2284
2317
  };
2285
2318
  export declare type ProductOptionGroup = Node & {
2286
2319
  __typename?: 'ProductOptionGroup';
2287
- id: Scalars['ID'];
2320
+ code: Scalars['String'];
2288
2321
  createdAt: Scalars['DateTime'];
2289
- updatedAt: Scalars['DateTime'];
2322
+ customFields?: Maybe<Scalars['JSON']>;
2323
+ id: Scalars['ID'];
2290
2324
  languageCode: LanguageCode;
2291
- code: Scalars['String'];
2292
2325
  name: Scalars['String'];
2293
2326
  options: Array<ProductOption>;
2294
2327
  translations: Array<ProductOptionGroupTranslation>;
2295
- customFields?: Maybe<Scalars['JSON']>;
2328
+ updatedAt: Scalars['DateTime'];
2296
2329
  };
2297
2330
  export declare type ProductOptionGroupTranslation = {
2298
2331
  __typename?: 'ProductOptionGroupTranslation';
2299
- id: Scalars['ID'];
2300
2332
  createdAt: Scalars['DateTime'];
2301
- updatedAt: Scalars['DateTime'];
2333
+ id: Scalars['ID'];
2302
2334
  languageCode: LanguageCode;
2303
2335
  name: Scalars['String'];
2336
+ updatedAt: Scalars['DateTime'];
2304
2337
  };
2305
2338
  export declare type ProductOptionTranslation = {
2306
2339
  __typename?: 'ProductOptionTranslation';
2307
- id: Scalars['ID'];
2308
2340
  createdAt: Scalars['DateTime'];
2309
- updatedAt: Scalars['DateTime'];
2341
+ id: Scalars['ID'];
2310
2342
  languageCode: LanguageCode;
2311
2343
  name: Scalars['String'];
2344
+ updatedAt: Scalars['DateTime'];
2312
2345
  };
2313
2346
  export declare type ProductSortParameter = {
2314
- id?: Maybe<SortOrder>;
2315
- createdAt?: Maybe<SortOrder>;
2316
- updatedAt?: Maybe<SortOrder>;
2317
- name?: Maybe<SortOrder>;
2318
- slug?: Maybe<SortOrder>;
2319
- description?: Maybe<SortOrder>;
2347
+ createdAt?: InputMaybe<SortOrder>;
2348
+ description?: InputMaybe<SortOrder>;
2349
+ id?: InputMaybe<SortOrder>;
2350
+ name?: InputMaybe<SortOrder>;
2351
+ slug?: InputMaybe<SortOrder>;
2352
+ updatedAt?: InputMaybe<SortOrder>;
2320
2353
  };
2321
2354
  export declare type ProductTranslation = {
2322
2355
  __typename?: 'ProductTranslation';
2323
- id: Scalars['ID'];
2324
2356
  createdAt: Scalars['DateTime'];
2325
- updatedAt: Scalars['DateTime'];
2357
+ description: Scalars['String'];
2358
+ id: Scalars['ID'];
2326
2359
  languageCode: LanguageCode;
2327
2360
  name: Scalars['String'];
2328
2361
  slug: Scalars['String'];
2329
- description: Scalars['String'];
2362
+ updatedAt: Scalars['DateTime'];
2330
2363
  };
2331
2364
  export declare type ProductVariant = Node & {
2332
2365
  __typename?: 'ProductVariant';
2333
- id: Scalars['ID'];
2334
- product: Product;
2335
- productId: Scalars['ID'];
2366
+ assets: Array<Asset>;
2336
2367
  createdAt: Scalars['DateTime'];
2337
- updatedAt: Scalars['DateTime'];
2368
+ currencyCode: CurrencyCode;
2369
+ customFields?: Maybe<Scalars['JSON']>;
2370
+ facetValues: Array<FacetValue>;
2371
+ featuredAsset?: Maybe<Asset>;
2372
+ id: Scalars['ID'];
2338
2373
  languageCode: LanguageCode;
2339
- sku: Scalars['String'];
2340
2374
  name: Scalars['String'];
2341
- featuredAsset?: Maybe<Asset>;
2342
- assets: Array<Asset>;
2375
+ options: Array<ProductOption>;
2343
2376
  price: Scalars['Int'];
2344
- currencyCode: CurrencyCode;
2345
2377
  priceWithTax: Scalars['Int'];
2378
+ product: Product;
2379
+ productId: Scalars['ID'];
2380
+ sku: Scalars['String'];
2346
2381
  stockLevel: Scalars['String'];
2347
- taxRateApplied: TaxRate;
2348
2382
  taxCategory: TaxCategory;
2349
- options: Array<ProductOption>;
2350
- facetValues: Array<FacetValue>;
2383
+ taxRateApplied: TaxRate;
2351
2384
  translations: Array<ProductVariantTranslation>;
2352
- customFields?: Maybe<Scalars['JSON']>;
2385
+ updatedAt: Scalars['DateTime'];
2353
2386
  };
2354
2387
  export declare type ProductVariantFilterParameter = {
2355
- id?: Maybe<IdOperators>;
2356
- productId?: Maybe<IdOperators>;
2357
- createdAt?: Maybe<DateOperators>;
2358
- updatedAt?: Maybe<DateOperators>;
2359
- languageCode?: Maybe<StringOperators>;
2360
- sku?: Maybe<StringOperators>;
2361
- name?: Maybe<StringOperators>;
2362
- price?: Maybe<NumberOperators>;
2363
- currencyCode?: Maybe<StringOperators>;
2364
- priceWithTax?: Maybe<NumberOperators>;
2365
- stockLevel?: Maybe<StringOperators>;
2388
+ createdAt?: InputMaybe<DateOperators>;
2389
+ currencyCode?: InputMaybe<StringOperators>;
2390
+ id?: InputMaybe<IdOperators>;
2391
+ languageCode?: InputMaybe<StringOperators>;
2392
+ name?: InputMaybe<StringOperators>;
2393
+ price?: InputMaybe<NumberOperators>;
2394
+ priceWithTax?: InputMaybe<NumberOperators>;
2395
+ productId?: InputMaybe<IdOperators>;
2396
+ sku?: InputMaybe<StringOperators>;
2397
+ stockLevel?: InputMaybe<StringOperators>;
2398
+ updatedAt?: InputMaybe<DateOperators>;
2366
2399
  };
2367
2400
  export declare type ProductVariantList = PaginatedList & {
2368
2401
  __typename?: 'ProductVariantList';
@@ -2370,50 +2403,50 @@ export declare type ProductVariantList = PaginatedList & {
2370
2403
  totalItems: Scalars['Int'];
2371
2404
  };
2372
2405
  export declare type ProductVariantListOptions = {
2373
- /** Skips the first n results, for use in pagination */
2374
- skip?: Maybe<Scalars['Int']>;
2375
- /** Takes n results, for use in pagination */
2376
- take?: Maybe<Scalars['Int']>;
2377
- /** Specifies which properties to sort the results by */
2378
- sort?: Maybe<ProductVariantSortParameter>;
2379
2406
  /** Allows the results to be filtered */
2380
- filter?: Maybe<ProductVariantFilterParameter>;
2407
+ filter?: InputMaybe<ProductVariantFilterParameter>;
2381
2408
  /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */
2382
- filterOperator?: Maybe<LogicalOperator>;
2409
+ filterOperator?: InputMaybe<LogicalOperator>;
2410
+ /** Skips the first n results, for use in pagination */
2411
+ skip?: InputMaybe<Scalars['Int']>;
2412
+ /** Specifies which properties to sort the results by */
2413
+ sort?: InputMaybe<ProductVariantSortParameter>;
2414
+ /** Takes n results, for use in pagination */
2415
+ take?: InputMaybe<Scalars['Int']>;
2383
2416
  };
2384
2417
  export declare type ProductVariantSortParameter = {
2385
- id?: Maybe<SortOrder>;
2386
- productId?: Maybe<SortOrder>;
2387
- createdAt?: Maybe<SortOrder>;
2388
- updatedAt?: Maybe<SortOrder>;
2389
- sku?: Maybe<SortOrder>;
2390
- name?: Maybe<SortOrder>;
2391
- price?: Maybe<SortOrder>;
2392
- priceWithTax?: Maybe<SortOrder>;
2393
- stockLevel?: Maybe<SortOrder>;
2418
+ createdAt?: InputMaybe<SortOrder>;
2419
+ id?: InputMaybe<SortOrder>;
2420
+ name?: InputMaybe<SortOrder>;
2421
+ price?: InputMaybe<SortOrder>;
2422
+ priceWithTax?: InputMaybe<SortOrder>;
2423
+ productId?: InputMaybe<SortOrder>;
2424
+ sku?: InputMaybe<SortOrder>;
2425
+ stockLevel?: InputMaybe<SortOrder>;
2426
+ updatedAt?: InputMaybe<SortOrder>;
2394
2427
  };
2395
2428
  export declare type ProductVariantTranslation = {
2396
2429
  __typename?: 'ProductVariantTranslation';
2397
- id: Scalars['ID'];
2398
2430
  createdAt: Scalars['DateTime'];
2399
- updatedAt: Scalars['DateTime'];
2431
+ id: Scalars['ID'];
2400
2432
  languageCode: LanguageCode;
2401
2433
  name: Scalars['String'];
2434
+ updatedAt: Scalars['DateTime'];
2402
2435
  };
2403
2436
  export declare type Promotion = Node & {
2404
2437
  __typename?: 'Promotion';
2405
- id: Scalars['ID'];
2438
+ actions: Array<ConfigurableOperation>;
2439
+ conditions: Array<ConfigurableOperation>;
2440
+ couponCode?: Maybe<Scalars['String']>;
2406
2441
  createdAt: Scalars['DateTime'];
2407
- updatedAt: Scalars['DateTime'];
2408
- startsAt?: Maybe<Scalars['DateTime']>;
2442
+ customFields?: Maybe<Scalars['JSON']>;
2443
+ enabled: Scalars['Boolean'];
2409
2444
  endsAt?: Maybe<Scalars['DateTime']>;
2410
- couponCode?: Maybe<Scalars['String']>;
2411
- perCustomerUsageLimit?: Maybe<Scalars['Int']>;
2445
+ id: Scalars['ID'];
2412
2446
  name: Scalars['String'];
2413
- enabled: Scalars['Boolean'];
2414
- conditions: Array<ConfigurableOperation>;
2415
- actions: Array<ConfigurableOperation>;
2416
- customFields?: Maybe<Scalars['JSON']>;
2447
+ perCustomerUsageLimit?: Maybe<Scalars['Int']>;
2448
+ startsAt?: Maybe<Scalars['DateTime']>;
2449
+ updatedAt: Scalars['DateTime'];
2417
2450
  };
2418
2451
  export declare type PromotionList = PaginatedList & {
2419
2452
  __typename?: 'PromotionList';
@@ -2434,18 +2467,18 @@ export declare type Query = {
2434
2467
  activeOrder?: Maybe<Order>;
2435
2468
  /** An array of supported Countries */
2436
2469
  availableCountries: Array<Country>;
2437
- /** A list of Collections available to the shop */
2438
- collections: CollectionList;
2439
2470
  /** Returns a Collection either by its id or slug. If neither 'id' nor 'slug' is specified, an error will result. */
2440
2471
  collection?: Maybe<Collection>;
2441
- /** Returns a list of eligible shipping methods based on the current active Order */
2442
- eligibleShippingMethods: Array<ShippingMethodQuote>;
2472
+ /** A list of Collections available to the shop */
2473
+ collections: CollectionList;
2443
2474
  /** Returns a list of payment methods and their eligibility based on the current active Order */
2444
2475
  eligiblePaymentMethods: Array<PaymentMethodQuote>;
2445
- /** A list of Facets available to the shop */
2446
- facets: FacetList;
2476
+ /** Returns a list of eligible shipping methods based on the current active Order */
2477
+ eligibleShippingMethods: Array<ShippingMethodQuote>;
2447
2478
  /** Returns a Facet by its id */
2448
2479
  facet?: Maybe<Facet>;
2480
+ /** A list of Facets available to the shop */
2481
+ facets: FacetList;
2449
2482
  /** Returns information about the current authenticated User */
2450
2483
  me?: Maybe<CurrentUser>;
2451
2484
  /** Returns the possible next states that the activeOrder can transition to */
@@ -2469,19 +2502,19 @@ export declare type Query = {
2469
2502
  /** Search Products based on the criteria set by the `SearchInput` */
2470
2503
  search: SearchResponse;
2471
2504
  };
2472
- export declare type QueryCollectionsArgs = {
2473
- options?: Maybe<CollectionListOptions>;
2474
- };
2475
2505
  export declare type QueryCollectionArgs = {
2476
- id?: Maybe<Scalars['ID']>;
2477
- slug?: Maybe<Scalars['String']>;
2506
+ id?: InputMaybe<Scalars['ID']>;
2507
+ slug?: InputMaybe<Scalars['String']>;
2478
2508
  };
2479
- export declare type QueryFacetsArgs = {
2480
- options?: Maybe<FacetListOptions>;
2509
+ export declare type QueryCollectionsArgs = {
2510
+ options?: InputMaybe<CollectionListOptions>;
2481
2511
  };
2482
2512
  export declare type QueryFacetArgs = {
2483
2513
  id: Scalars['ID'];
2484
2514
  };
2515
+ export declare type QueryFacetsArgs = {
2516
+ options?: InputMaybe<FacetListOptions>;
2517
+ };
2485
2518
  export declare type QueryOrderArgs = {
2486
2519
  id: Scalars['ID'];
2487
2520
  };
@@ -2489,69 +2522,69 @@ export declare type QueryOrderByCodeArgs = {
2489
2522
  code: Scalars['String'];
2490
2523
  };
2491
2524
  export declare type QueryProductArgs = {
2492
- id?: Maybe<Scalars['ID']>;
2493
- slug?: Maybe<Scalars['String']>;
2525
+ id?: InputMaybe<Scalars['ID']>;
2526
+ slug?: InputMaybe<Scalars['String']>;
2494
2527
  };
2495
2528
  export declare type QueryProductsArgs = {
2496
- options?: Maybe<ProductListOptions>;
2529
+ options?: InputMaybe<ProductListOptions>;
2497
2530
  };
2498
2531
  export declare type QuerySearchArgs = {
2499
2532
  input: SearchInput;
2500
2533
  };
2501
- export declare type RefreshCustomerVerificationResult = Success | NativeAuthStrategyError;
2534
+ export declare type RefreshCustomerVerificationResult = NativeAuthStrategyError | Success;
2502
2535
  export declare type Refund = Node & {
2503
2536
  __typename?: 'Refund';
2504
- id: Scalars['ID'];
2537
+ adjustment: Scalars['Int'];
2505
2538
  createdAt: Scalars['DateTime'];
2506
- updatedAt: Scalars['DateTime'];
2539
+ id: Scalars['ID'];
2507
2540
  items: Scalars['Int'];
2508
- shipping: Scalars['Int'];
2509
- adjustment: Scalars['Int'];
2510
- total: Scalars['Int'];
2541
+ metadata?: Maybe<Scalars['JSON']>;
2511
2542
  method?: Maybe<Scalars['String']>;
2512
- state: Scalars['String'];
2513
- transactionId?: Maybe<Scalars['String']>;
2514
- reason?: Maybe<Scalars['String']>;
2515
2543
  orderItems: Array<OrderItem>;
2516
2544
  paymentId: Scalars['ID'];
2517
- metadata?: Maybe<Scalars['JSON']>;
2545
+ reason?: Maybe<Scalars['String']>;
2546
+ shipping: Scalars['Int'];
2547
+ state: Scalars['String'];
2548
+ total: Scalars['Int'];
2549
+ transactionId?: Maybe<Scalars['String']>;
2550
+ updatedAt: Scalars['DateTime'];
2518
2551
  };
2519
- export declare type RegisterCustomerAccountResult = Success | MissingPasswordError | PasswordValidationError | NativeAuthStrategyError;
2552
+ export declare type RegisterCustomerAccountResult = MissingPasswordError | NativeAuthStrategyError | PasswordValidationError | Success;
2520
2553
  export declare type RegisterCustomerInput = {
2521
2554
  emailAddress: Scalars['String'];
2522
- title?: Maybe<Scalars['String']>;
2523
- firstName?: Maybe<Scalars['String']>;
2524
- lastName?: Maybe<Scalars['String']>;
2525
- phoneNumber?: Maybe<Scalars['String']>;
2526
- password?: Maybe<Scalars['String']>;
2555
+ firstName?: InputMaybe<Scalars['String']>;
2556
+ lastName?: InputMaybe<Scalars['String']>;
2557
+ password?: InputMaybe<Scalars['String']>;
2558
+ phoneNumber?: InputMaybe<Scalars['String']>;
2559
+ title?: InputMaybe<Scalars['String']>;
2527
2560
  };
2528
2561
  export declare type RelationCustomFieldConfig = CustomField & {
2529
2562
  __typename?: 'RelationCustomFieldConfig';
2530
- name: Scalars['String'];
2531
- type: Scalars['String'];
2532
- list: Scalars['Boolean'];
2533
- label?: Maybe<Array<LocalizedString>>;
2534
2563
  description?: Maybe<Array<LocalizedString>>;
2535
- readonly?: Maybe<Scalars['Boolean']>;
2564
+ entity: Scalars['String'];
2536
2565
  internal?: Maybe<Scalars['Boolean']>;
2566
+ label?: Maybe<Array<LocalizedString>>;
2567
+ list: Scalars['Boolean'];
2568
+ name: Scalars['String'];
2537
2569
  nullable?: Maybe<Scalars['Boolean']>;
2538
- entity: Scalars['String'];
2570
+ readonly?: Maybe<Scalars['Boolean']>;
2539
2571
  scalarFields: Array<Scalars['String']>;
2572
+ type: Scalars['String'];
2540
2573
  ui?: Maybe<Scalars['JSON']>;
2541
2574
  };
2542
2575
  export declare type RemoveOrderItemsResult = Order | OrderModificationError;
2543
- export declare type RequestPasswordResetResult = Success | NativeAuthStrategyError;
2544
- export declare type RequestUpdateCustomerEmailAddressResult = Success | InvalidCredentialsError | EmailAddressConflictError | NativeAuthStrategyError;
2545
- export declare type ResetPasswordResult = CurrentUser | PasswordResetTokenInvalidError | PasswordResetTokenExpiredError | PasswordValidationError | NativeAuthStrategyError | NotVerifiedError;
2576
+ export declare type RequestPasswordResetResult = NativeAuthStrategyError | Success;
2577
+ export declare type RequestUpdateCustomerEmailAddressResult = EmailAddressConflictError | InvalidCredentialsError | NativeAuthStrategyError | Success;
2578
+ export declare type ResetPasswordResult = CurrentUser | NativeAuthStrategyError | NotVerifiedError | PasswordResetTokenExpiredError | PasswordResetTokenInvalidError | PasswordValidationError;
2546
2579
  export declare type Role = Node & {
2547
2580
  __typename?: 'Role';
2548
- id: Scalars['ID'];
2549
- createdAt: Scalars['DateTime'];
2550
- updatedAt: Scalars['DateTime'];
2581
+ channels: Array<Channel>;
2551
2582
  code: Scalars['String'];
2583
+ createdAt: Scalars['DateTime'];
2552
2584
  description: Scalars['String'];
2585
+ id: Scalars['ID'];
2553
2586
  permissions: Array<Permission>;
2554
- channels: Array<Channel>;
2587
+ updatedAt: Scalars['DateTime'];
2555
2588
  };
2556
2589
  export declare type RoleList = PaginatedList & {
2557
2590
  __typename?: 'RoleList';
@@ -2559,16 +2592,16 @@ export declare type RoleList = PaginatedList & {
2559
2592
  totalItems: Scalars['Int'];
2560
2593
  };
2561
2594
  export declare type SearchInput = {
2562
- term?: Maybe<Scalars['String']>;
2563
- facetValueIds?: Maybe<Array<Scalars['ID']>>;
2564
- facetValueOperator?: Maybe<LogicalOperator>;
2565
- facetValueFilters?: Maybe<Array<FacetValueFilterInput>>;
2566
- collectionId?: Maybe<Scalars['ID']>;
2567
- collectionSlug?: Maybe<Scalars['String']>;
2568
- groupByProduct?: Maybe<Scalars['Boolean']>;
2569
- take?: Maybe<Scalars['Int']>;
2570
- skip?: Maybe<Scalars['Int']>;
2571
- sort?: Maybe<SearchResultSortParameter>;
2595
+ collectionId?: InputMaybe<Scalars['ID']>;
2596
+ collectionSlug?: InputMaybe<Scalars['String']>;
2597
+ facetValueFilters?: InputMaybe<Array<FacetValueFilterInput>>;
2598
+ facetValueIds?: InputMaybe<Array<Scalars['ID']>>;
2599
+ facetValueOperator?: InputMaybe<LogicalOperator>;
2600
+ groupByProduct?: InputMaybe<Scalars['Boolean']>;
2601
+ skip?: InputMaybe<Scalars['Int']>;
2602
+ sort?: InputMaybe<SearchResultSortParameter>;
2603
+ take?: InputMaybe<Scalars['Int']>;
2604
+ term?: InputMaybe<Scalars['String']>;
2572
2605
  };
2573
2606
  export declare type SearchReindexResponse = {
2574
2607
  __typename?: 'SearchReindexResponse';
@@ -2576,68 +2609,69 @@ export declare type SearchReindexResponse = {
2576
2609
  };
2577
2610
  export declare type SearchResponse = {
2578
2611
  __typename?: 'SearchResponse';
2612
+ collections: Array<CollectionResult>;
2613
+ facetValues: Array<FacetValueResult>;
2579
2614
  items: Array<SearchResult>;
2580
2615
  totalItems: Scalars['Int'];
2581
- facetValues: Array<FacetValueResult>;
2582
- collections: Array<CollectionResult>;
2583
2616
  };
2584
2617
  export declare type SearchResult = {
2585
2618
  __typename?: 'SearchResult';
2586
- sku: Scalars['String'];
2587
- slug: Scalars['String'];
2588
- productId: Scalars['ID'];
2589
- productName: Scalars['String'];
2590
- productAsset?: Maybe<SearchResultAsset>;
2591
- productVariantId: Scalars['ID'];
2592
- productVariantName: Scalars['String'];
2593
- productVariantAsset?: Maybe<SearchResultAsset>;
2594
- price: SearchResultPrice;
2595
- priceWithTax: SearchResultPrice;
2619
+ /** An array of ids of the Collections in which this result appears */
2620
+ collectionIds: Array<Scalars['ID']>;
2596
2621
  currencyCode: CurrencyCode;
2597
2622
  description: Scalars['String'];
2598
2623
  facetIds: Array<Scalars['ID']>;
2599
2624
  facetValueIds: Array<Scalars['ID']>;
2600
- /** An array of ids of the Collections in which this result appears */
2601
- collectionIds: Array<Scalars['ID']>;
2625
+ price: SearchResultPrice;
2626
+ priceWithTax: SearchResultPrice;
2627
+ productAsset?: Maybe<SearchResultAsset>;
2628
+ productId: Scalars['ID'];
2629
+ productName: Scalars['String'];
2630
+ productVariantAsset?: Maybe<SearchResultAsset>;
2631
+ productVariantId: Scalars['ID'];
2632
+ productVariantName: Scalars['String'];
2602
2633
  /** A relevance score for the result. Differs between database implementations */
2603
2634
  score: Scalars['Float'];
2635
+ sku: Scalars['String'];
2636
+ slug: Scalars['String'];
2604
2637
  };
2605
2638
  export declare type SearchResultAsset = {
2606
2639
  __typename?: 'SearchResultAsset';
2640
+ focalPoint?: Maybe<Coordinate>;
2607
2641
  id: Scalars['ID'];
2608
2642
  preview: Scalars['String'];
2609
- focalPoint?: Maybe<Coordinate>;
2610
2643
  };
2611
2644
  /** The price of a search result product, either as a range or as a single price */
2612
2645
  export declare type SearchResultPrice = PriceRange | SinglePrice;
2613
2646
  export declare type SearchResultSortParameter = {
2614
- name?: Maybe<SortOrder>;
2615
- price?: Maybe<SortOrder>;
2647
+ name?: InputMaybe<SortOrder>;
2648
+ price?: InputMaybe<SortOrder>;
2616
2649
  };
2617
- export declare type SetCustomerForOrderResult = Order | AlreadyLoggedInError | EmailAddressConflictError | NoActiveOrderError;
2618
- export declare type SetOrderShippingMethodResult = Order | OrderModificationError | IneligibleShippingMethodError | NoActiveOrderError;
2650
+ export declare type SetCustomerForOrderResult = AlreadyLoggedInError | EmailAddressConflictError | NoActiveOrderError | Order;
2651
+ export declare type SetOrderShippingMethodResult = IneligibleShippingMethodError | NoActiveOrderError | Order | OrderModificationError;
2619
2652
  export declare type ShippingLine = {
2620
2653
  __typename?: 'ShippingLine';
2621
- shippingMethod: ShippingMethod;
2622
- price: Scalars['Int'];
2623
- priceWithTax: Scalars['Int'];
2624
2654
  discountedPrice: Scalars['Int'];
2625
2655
  discountedPriceWithTax: Scalars['Int'];
2626
2656
  discounts: Array<Discount>;
2657
+ price: Scalars['Int'];
2658
+ priceWithTax: Scalars['Int'];
2659
+ shippingMethod: ShippingMethod;
2627
2660
  };
2628
2661
  export declare type ShippingMethod = Node & {
2629
2662
  __typename?: 'ShippingMethod';
2630
- id: Scalars['ID'];
2631
- createdAt: Scalars['DateTime'];
2632
- updatedAt: Scalars['DateTime'];
2663
+ calculator: ConfigurableOperation;
2664
+ checker: ConfigurableOperation;
2633
2665
  code: Scalars['String'];
2634
- name: Scalars['String'];
2666
+ createdAt: Scalars['DateTime'];
2667
+ customFields?: Maybe<Scalars['JSON']>;
2635
2668
  description: Scalars['String'];
2636
2669
  fulfillmentHandlerCode: Scalars['String'];
2637
- checker: ConfigurableOperation;
2638
- calculator: ConfigurableOperation;
2670
+ id: Scalars['ID'];
2671
+ languageCode: LanguageCode;
2672
+ name: Scalars['String'];
2639
2673
  translations: Array<ShippingMethodTranslation>;
2640
- customFields?: Maybe<Scalars['JSON']>;
2674
+ updatedAt: Scalars['DateTime'];
2641
2675
  };
2642
2676
  export declare type ShippingMethodList = PaginatedList & {
2643
2677
  __typename?: 'ShippingMethodList';
@@ -2646,24 +2680,24 @@ export declare type ShippingMethodList = PaginatedList & {
2646
2680
  };
2647
2681
  export declare type ShippingMethodQuote = {
2648
2682
  __typename?: 'ShippingMethodQuote';
2649
- id: Scalars['ID'];
2650
- price: Scalars['Int'];
2651
- priceWithTax: Scalars['Int'];
2652
2683
  code: Scalars['String'];
2653
- name: Scalars['String'];
2684
+ customFields?: Maybe<Scalars['JSON']>;
2654
2685
  description: Scalars['String'];
2686
+ id: Scalars['ID'];
2655
2687
  /** Any optional metadata returned by the ShippingCalculator in the ShippingCalculationResult */
2656
2688
  metadata?: Maybe<Scalars['JSON']>;
2657
- customFields?: Maybe<Scalars['JSON']>;
2689
+ name: Scalars['String'];
2690
+ price: Scalars['Int'];
2691
+ priceWithTax: Scalars['Int'];
2658
2692
  };
2659
2693
  export declare type ShippingMethodTranslation = {
2660
2694
  __typename?: 'ShippingMethodTranslation';
2661
- id: Scalars['ID'];
2662
2695
  createdAt: Scalars['DateTime'];
2663
- updatedAt: Scalars['DateTime'];
2696
+ description: Scalars['String'];
2697
+ id: Scalars['ID'];
2664
2698
  languageCode: LanguageCode;
2665
2699
  name: Scalars['String'];
2666
- description: Scalars['String'];
2700
+ updatedAt: Scalars['DateTime'];
2667
2701
  };
2668
2702
  /** The price value where the result has a single price */
2669
2703
  export declare type SinglePrice = {
@@ -2676,23 +2710,23 @@ export declare enum SortOrder {
2676
2710
  }
2677
2711
  export declare type StringCustomFieldConfig = CustomField & {
2678
2712
  __typename?: 'StringCustomFieldConfig';
2679
- name: Scalars['String'];
2680
- type: Scalars['String'];
2681
- list: Scalars['Boolean'];
2682
- length?: Maybe<Scalars['Int']>;
2683
- label?: Maybe<Array<LocalizedString>>;
2684
2713
  description?: Maybe<Array<LocalizedString>>;
2685
- readonly?: Maybe<Scalars['Boolean']>;
2686
2714
  internal?: Maybe<Scalars['Boolean']>;
2715
+ label?: Maybe<Array<LocalizedString>>;
2716
+ length?: Maybe<Scalars['Int']>;
2717
+ list: Scalars['Boolean'];
2718
+ name: Scalars['String'];
2687
2719
  nullable?: Maybe<Scalars['Boolean']>;
2688
- pattern?: Maybe<Scalars['String']>;
2689
2720
  options?: Maybe<Array<StringFieldOption>>;
2721
+ pattern?: Maybe<Scalars['String']>;
2722
+ readonly?: Maybe<Scalars['Boolean']>;
2723
+ type: Scalars['String'];
2690
2724
  ui?: Maybe<Scalars['JSON']>;
2691
2725
  };
2692
2726
  export declare type StringFieldOption = {
2693
2727
  __typename?: 'StringFieldOption';
2694
- value: Scalars['String'];
2695
2728
  label?: Maybe<Array<LocalizedString>>;
2729
+ value: Scalars['String'];
2696
2730
  };
2697
2731
  /** Operators for filtering on a list of String fields */
2698
2732
  export declare type StringListOperators = {
@@ -2700,13 +2734,13 @@ export declare type StringListOperators = {
2700
2734
  };
2701
2735
  /** Operators for filtering on a String field */
2702
2736
  export declare type StringOperators = {
2703
- eq?: Maybe<Scalars['String']>;
2704
- notEq?: Maybe<Scalars['String']>;
2705
- contains?: Maybe<Scalars['String']>;
2706
- notContains?: Maybe<Scalars['String']>;
2707
- in?: Maybe<Array<Scalars['String']>>;
2708
- notIn?: Maybe<Array<Scalars['String']>>;
2709
- regex?: Maybe<Scalars['String']>;
2737
+ contains?: InputMaybe<Scalars['String']>;
2738
+ eq?: InputMaybe<Scalars['String']>;
2739
+ in?: InputMaybe<Array<Scalars['String']>>;
2740
+ notContains?: InputMaybe<Scalars['String']>;
2741
+ notEq?: InputMaybe<Scalars['String']>;
2742
+ notIn?: InputMaybe<Array<Scalars['String']>>;
2743
+ regex?: InputMaybe<Scalars['String']>;
2710
2744
  };
2711
2745
  /** Indicates that an operation succeeded, where we do not want to return any more specific information. */
2712
2746
  export declare type Success = {
@@ -2715,20 +2749,20 @@ export declare type Success = {
2715
2749
  };
2716
2750
  export declare type Surcharge = Node & {
2717
2751
  __typename?: 'Surcharge';
2718
- id: Scalars['ID'];
2719
2752
  createdAt: Scalars['DateTime'];
2720
- updatedAt: Scalars['DateTime'];
2721
2753
  description: Scalars['String'];
2722
- sku?: Maybe<Scalars['String']>;
2723
- taxLines: Array<TaxLine>;
2754
+ id: Scalars['ID'];
2724
2755
  price: Scalars['Int'];
2725
2756
  priceWithTax: Scalars['Int'];
2757
+ sku?: Maybe<Scalars['String']>;
2758
+ taxLines: Array<TaxLine>;
2726
2759
  taxRate: Scalars['Float'];
2760
+ updatedAt: Scalars['DateTime'];
2727
2761
  };
2728
2762
  export declare type Tag = Node & {
2729
2763
  __typename?: 'Tag';
2730
- id: Scalars['ID'];
2731
2764
  createdAt: Scalars['DateTime'];
2765
+ id: Scalars['ID'];
2732
2766
  updatedAt: Scalars['DateTime'];
2733
2767
  value: Scalars['String'];
2734
2768
  };
@@ -2739,12 +2773,12 @@ export declare type TagList = PaginatedList & {
2739
2773
  };
2740
2774
  export declare type TaxCategory = Node & {
2741
2775
  __typename?: 'TaxCategory';
2742
- id: Scalars['ID'];
2743
2776
  createdAt: Scalars['DateTime'];
2744
- updatedAt: Scalars['DateTime'];
2745
- name: Scalars['String'];
2746
- isDefault: Scalars['Boolean'];
2747
2777
  customFields?: Maybe<Scalars['JSON']>;
2778
+ id: Scalars['ID'];
2779
+ isDefault: Scalars['Boolean'];
2780
+ name: Scalars['String'];
2781
+ updatedAt: Scalars['DateTime'];
2748
2782
  };
2749
2783
  export declare type TaxLine = {
2750
2784
  __typename?: 'TaxLine';
@@ -2753,16 +2787,16 @@ export declare type TaxLine = {
2753
2787
  };
2754
2788
  export declare type TaxRate = Node & {
2755
2789
  __typename?: 'TaxRate';
2756
- id: Scalars['ID'];
2790
+ category: TaxCategory;
2757
2791
  createdAt: Scalars['DateTime'];
2758
- updatedAt: Scalars['DateTime'];
2759
- name: Scalars['String'];
2792
+ customFields?: Maybe<Scalars['JSON']>;
2793
+ customerGroup?: Maybe<CustomerGroup>;
2760
2794
  enabled: Scalars['Boolean'];
2795
+ id: Scalars['ID'];
2796
+ name: Scalars['String'];
2797
+ updatedAt: Scalars['DateTime'];
2761
2798
  value: Scalars['Float'];
2762
- category: TaxCategory;
2763
2799
  zone: Zone;
2764
- customerGroup?: Maybe<CustomerGroup>;
2765
- customFields?: Maybe<Scalars['JSON']>;
2766
2800
  };
2767
2801
  export declare type TaxRateList = PaginatedList & {
2768
2802
  __typename?: 'TaxRateList';
@@ -2771,56 +2805,56 @@ export declare type TaxRateList = PaginatedList & {
2771
2805
  };
2772
2806
  export declare type TextCustomFieldConfig = CustomField & {
2773
2807
  __typename?: 'TextCustomFieldConfig';
2774
- name: Scalars['String'];
2775
- type: Scalars['String'];
2776
- list: Scalars['Boolean'];
2777
- label?: Maybe<Array<LocalizedString>>;
2778
2808
  description?: Maybe<Array<LocalizedString>>;
2779
- readonly?: Maybe<Scalars['Boolean']>;
2780
2809
  internal?: Maybe<Scalars['Boolean']>;
2810
+ label?: Maybe<Array<LocalizedString>>;
2811
+ list: Scalars['Boolean'];
2812
+ name: Scalars['String'];
2781
2813
  nullable?: Maybe<Scalars['Boolean']>;
2814
+ readonly?: Maybe<Scalars['Boolean']>;
2815
+ type: Scalars['String'];
2782
2816
  ui?: Maybe<Scalars['JSON']>;
2783
2817
  };
2784
2818
  export declare type TransitionOrderToStateResult = Order | OrderStateTransitionError;
2785
2819
  export declare type UpdateAddressInput = {
2820
+ city?: InputMaybe<Scalars['String']>;
2821
+ company?: InputMaybe<Scalars['String']>;
2822
+ countryCode?: InputMaybe<Scalars['String']>;
2823
+ customFields?: InputMaybe<Scalars['JSON']>;
2824
+ defaultBillingAddress?: InputMaybe<Scalars['Boolean']>;
2825
+ defaultShippingAddress?: InputMaybe<Scalars['Boolean']>;
2826
+ fullName?: InputMaybe<Scalars['String']>;
2786
2827
  id: Scalars['ID'];
2787
- fullName?: Maybe<Scalars['String']>;
2788
- company?: Maybe<Scalars['String']>;
2789
- streetLine1?: Maybe<Scalars['String']>;
2790
- streetLine2?: Maybe<Scalars['String']>;
2791
- city?: Maybe<Scalars['String']>;
2792
- province?: Maybe<Scalars['String']>;
2793
- postalCode?: Maybe<Scalars['String']>;
2794
- countryCode?: Maybe<Scalars['String']>;
2795
- phoneNumber?: Maybe<Scalars['String']>;
2796
- defaultShippingAddress?: Maybe<Scalars['Boolean']>;
2797
- defaultBillingAddress?: Maybe<Scalars['Boolean']>;
2798
- customFields?: Maybe<Scalars['JSON']>;
2828
+ phoneNumber?: InputMaybe<Scalars['String']>;
2829
+ postalCode?: InputMaybe<Scalars['String']>;
2830
+ province?: InputMaybe<Scalars['String']>;
2831
+ streetLine1?: InputMaybe<Scalars['String']>;
2832
+ streetLine2?: InputMaybe<Scalars['String']>;
2799
2833
  };
2800
- export declare type UpdateCustomerEmailAddressResult = Success | IdentifierChangeTokenInvalidError | IdentifierChangeTokenExpiredError | NativeAuthStrategyError;
2834
+ export declare type UpdateCustomerEmailAddressResult = IdentifierChangeTokenExpiredError | IdentifierChangeTokenInvalidError | NativeAuthStrategyError | Success;
2801
2835
  export declare type UpdateCustomerInput = {
2802
- title?: Maybe<Scalars['String']>;
2803
- firstName?: Maybe<Scalars['String']>;
2804
- lastName?: Maybe<Scalars['String']>;
2805
- phoneNumber?: Maybe<Scalars['String']>;
2806
- customFields?: Maybe<Scalars['JSON']>;
2836
+ customFields?: InputMaybe<Scalars['JSON']>;
2837
+ firstName?: InputMaybe<Scalars['String']>;
2838
+ lastName?: InputMaybe<Scalars['String']>;
2839
+ phoneNumber?: InputMaybe<Scalars['String']>;
2840
+ title?: InputMaybe<Scalars['String']>;
2807
2841
  };
2808
- export declare type UpdateCustomerPasswordResult = Success | InvalidCredentialsError | PasswordValidationError | NativeAuthStrategyError;
2842
+ export declare type UpdateCustomerPasswordResult = InvalidCredentialsError | NativeAuthStrategyError | PasswordValidationError | Success;
2809
2843
  export declare type UpdateOrderInput = {
2810
- customFields?: Maybe<Scalars['JSON']>;
2844
+ customFields?: InputMaybe<Scalars['JSON']>;
2811
2845
  };
2812
- export declare type UpdateOrderItemsResult = Order | OrderModificationError | OrderLimitError | NegativeQuantityError | InsufficientStockError;
2846
+ export declare type UpdateOrderItemsResult = InsufficientStockError | NegativeQuantityError | Order | OrderLimitError | OrderModificationError;
2813
2847
  export declare type User = Node & {
2814
2848
  __typename?: 'User';
2815
- id: Scalars['ID'];
2849
+ authenticationMethods: Array<AuthenticationMethod>;
2816
2850
  createdAt: Scalars['DateTime'];
2817
- updatedAt: Scalars['DateTime'];
2851
+ customFields?: Maybe<Scalars['JSON']>;
2852
+ id: Scalars['ID'];
2818
2853
  identifier: Scalars['String'];
2819
- verified: Scalars['Boolean'];
2820
- roles: Array<Role>;
2821
2854
  lastLogin?: Maybe<Scalars['DateTime']>;
2822
- authenticationMethods: Array<AuthenticationMethod>;
2823
- customFields?: Maybe<Scalars['JSON']>;
2855
+ roles: Array<Role>;
2856
+ updatedAt: Scalars['DateTime'];
2857
+ verified: Scalars['Boolean'];
2824
2858
  };
2825
2859
  /**
2826
2860
  * Returned if the verification token (used to verify a Customer's email address) is valid, but has
@@ -2840,13 +2874,13 @@ export declare type VerificationTokenInvalidError = ErrorResult & {
2840
2874
  errorCode: ErrorCode;
2841
2875
  message: Scalars['String'];
2842
2876
  };
2843
- export declare type VerifyCustomerAccountResult = CurrentUser | VerificationTokenInvalidError | VerificationTokenExpiredError | MissingPasswordError | PasswordValidationError | PasswordAlreadySetError | NativeAuthStrategyError;
2877
+ export declare type VerifyCustomerAccountResult = CurrentUser | MissingPasswordError | NativeAuthStrategyError | PasswordAlreadySetError | PasswordValidationError | VerificationTokenExpiredError | VerificationTokenInvalidError;
2844
2878
  export declare type Zone = Node & {
2845
2879
  __typename?: 'Zone';
2846
- id: Scalars['ID'];
2847
2880
  createdAt: Scalars['DateTime'];
2848
- updatedAt: Scalars['DateTime'];
2849
- name: Scalars['String'];
2850
- members: Array<Country>;
2851
2881
  customFields?: Maybe<Scalars['JSON']>;
2882
+ id: Scalars['ID'];
2883
+ members: Array<Country>;
2884
+ name: Scalars['String'];
2885
+ updatedAt: Scalars['DateTime'];
2852
2886
  };