@vendure/common 2.0.0-next.8 → 2.0.0
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.
- package/lib/extension-host-types.d.ts +3 -3
- package/lib/generated-shop-types.d.ts +454 -336
- package/lib/generated-shop-types.js +25 -2
- package/lib/generated-shop-types.js.map +1 -1
- package/lib/generated-types.d.ts +1547 -639
- package/lib/generated-types.js +40 -2
- package/lib/generated-types.js.map +1 -1
- package/lib/omit.d.ts +1 -1
- package/lib/omit.js.map +1 -1
- package/lib/shared-constants.d.ts +1 -1
- package/lib/shared-types.d.ts +42 -31
- package/lib/shared-utils.d.ts +4 -3
- package/lib/shared-utils.js +5 -3
- package/lib/shared-utils.js.map +1 -1
- package/lib/unique.d.ts +6 -0
- package/lib/unique.js +6 -0
- package/lib/unique.js.map +1 -1
- package/package.json +24 -24
|
@@ -1,33 +1,31 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
export type Maybe<T> = T;
|
|
2
|
+
export type InputMaybe<T> = T;
|
|
3
|
+
export type Exact<T extends {
|
|
4
4
|
[key: string]: unknown;
|
|
5
5
|
}> = {
|
|
6
6
|
[K in keyof T]: T[K];
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
|
|
9
9
|
[SubKey in K]?: Maybe<T[SubKey]>;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
11
|
+
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
|
|
12
12
|
[SubKey in K]: Maybe<T[SubKey]>;
|
|
13
13
|
};
|
|
14
14
|
/** All built-in and custom scalars, mapped to their actual values */
|
|
15
|
-
export
|
|
15
|
+
export type Scalars = {
|
|
16
16
|
ID: string | number;
|
|
17
17
|
String: string;
|
|
18
18
|
Boolean: boolean;
|
|
19
19
|
Int: number;
|
|
20
20
|
Float: number;
|
|
21
|
-
/** A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar. */
|
|
22
21
|
DateTime: any;
|
|
23
|
-
/** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */
|
|
24
22
|
JSON: any;
|
|
25
|
-
|
|
23
|
+
Money: number;
|
|
26
24
|
Upload: any;
|
|
27
25
|
};
|
|
28
|
-
export
|
|
29
|
-
export
|
|
30
|
-
export
|
|
26
|
+
export type ActiveOrderResult = NoActiveOrderError | Order;
|
|
27
|
+
export type AddPaymentToOrderResult = IneligiblePaymentMethodError | NoActiveOrderError | Order | OrderPaymentStateError | OrderStateTransitionError | PaymentDeclinedError | PaymentFailedError;
|
|
28
|
+
export type Address = Node & {
|
|
31
29
|
__typename?: 'Address';
|
|
32
30
|
city?: Maybe<Scalars['String']>;
|
|
33
31
|
company?: Maybe<Scalars['String']>;
|
|
@@ -45,10 +43,11 @@ export declare type Address = Node & {
|
|
|
45
43
|
streetLine2?: Maybe<Scalars['String']>;
|
|
46
44
|
updatedAt: Scalars['DateTime'];
|
|
47
45
|
};
|
|
48
|
-
export
|
|
46
|
+
export type Adjustment = {
|
|
49
47
|
__typename?: 'Adjustment';
|
|
50
48
|
adjustmentSource: Scalars['String'];
|
|
51
|
-
amount: Scalars['
|
|
49
|
+
amount: Scalars['Money'];
|
|
50
|
+
data?: Maybe<Scalars['JSON']>;
|
|
52
51
|
description: Scalars['String'];
|
|
53
52
|
type: AdjustmentType;
|
|
54
53
|
};
|
|
@@ -58,13 +57,13 @@ export declare enum AdjustmentType {
|
|
|
58
57
|
PROMOTION = "PROMOTION"
|
|
59
58
|
}
|
|
60
59
|
/** Returned when attempting to set the Customer for an Order when already logged in. */
|
|
61
|
-
export
|
|
60
|
+
export type AlreadyLoggedInError = ErrorResult & {
|
|
62
61
|
__typename?: 'AlreadyLoggedInError';
|
|
63
62
|
errorCode: ErrorCode;
|
|
64
63
|
message: Scalars['String'];
|
|
65
64
|
};
|
|
66
|
-
export
|
|
67
|
-
export
|
|
65
|
+
export type ApplyCouponCodeResult = CouponCodeExpiredError | CouponCodeInvalidError | CouponCodeLimitError | Order;
|
|
66
|
+
export type Asset = Node & {
|
|
68
67
|
__typename?: 'Asset';
|
|
69
68
|
createdAt: Scalars['DateTime'];
|
|
70
69
|
customFields?: Maybe<Scalars['JSON']>;
|
|
@@ -76,11 +75,12 @@ export declare type Asset = Node & {
|
|
|
76
75
|
name: Scalars['String'];
|
|
77
76
|
preview: Scalars['String'];
|
|
78
77
|
source: Scalars['String'];
|
|
78
|
+
tags: Array<Tag>;
|
|
79
79
|
type: AssetType;
|
|
80
80
|
updatedAt: Scalars['DateTime'];
|
|
81
81
|
width: Scalars['Int'];
|
|
82
82
|
};
|
|
83
|
-
export
|
|
83
|
+
export type AssetList = PaginatedList & {
|
|
84
84
|
__typename?: 'AssetList';
|
|
85
85
|
items: Array<Asset>;
|
|
86
86
|
totalItems: Scalars['Int'];
|
|
@@ -90,18 +90,18 @@ export declare enum AssetType {
|
|
|
90
90
|
IMAGE = "IMAGE",
|
|
91
91
|
VIDEO = "VIDEO"
|
|
92
92
|
}
|
|
93
|
-
export
|
|
93
|
+
export type AuthenticationInput = {
|
|
94
94
|
native?: InputMaybe<NativeAuthInput>;
|
|
95
95
|
};
|
|
96
|
-
export
|
|
96
|
+
export type AuthenticationMethod = Node & {
|
|
97
97
|
__typename?: 'AuthenticationMethod';
|
|
98
98
|
createdAt: Scalars['DateTime'];
|
|
99
99
|
id: Scalars['ID'];
|
|
100
100
|
strategy: Scalars['String'];
|
|
101
101
|
updatedAt: Scalars['DateTime'];
|
|
102
102
|
};
|
|
103
|
-
export
|
|
104
|
-
export
|
|
103
|
+
export type AuthenticationResult = CurrentUser | InvalidCredentialsError | NotVerifiedError;
|
|
104
|
+
export type BooleanCustomFieldConfig = CustomField & {
|
|
105
105
|
__typename?: 'BooleanCustomFieldConfig';
|
|
106
106
|
description?: Maybe<Array<LocalizedString>>;
|
|
107
107
|
internal?: Maybe<Scalars['Boolean']>;
|
|
@@ -114,28 +114,38 @@ export declare type BooleanCustomFieldConfig = CustomField & {
|
|
|
114
114
|
ui?: Maybe<Scalars['JSON']>;
|
|
115
115
|
};
|
|
116
116
|
/** Operators for filtering on a list of Boolean fields */
|
|
117
|
-
export
|
|
117
|
+
export type BooleanListOperators = {
|
|
118
118
|
inList: Scalars['Boolean'];
|
|
119
119
|
};
|
|
120
120
|
/** Operators for filtering on a Boolean field */
|
|
121
|
-
export
|
|
121
|
+
export type BooleanOperators = {
|
|
122
122
|
eq?: InputMaybe<Scalars['Boolean']>;
|
|
123
|
+
isNull?: InputMaybe<Scalars['Boolean']>;
|
|
123
124
|
};
|
|
124
|
-
export
|
|
125
|
+
export type Channel = Node & {
|
|
125
126
|
__typename?: 'Channel';
|
|
127
|
+
availableCurrencyCodes: Array<CurrencyCode>;
|
|
128
|
+
availableLanguageCodes?: Maybe<Array<LanguageCode>>;
|
|
126
129
|
code: Scalars['String'];
|
|
127
130
|
createdAt: Scalars['DateTime'];
|
|
131
|
+
/** @deprecated Use defaultCurrencyCode instead */
|
|
128
132
|
currencyCode: CurrencyCode;
|
|
129
133
|
customFields?: Maybe<Scalars['JSON']>;
|
|
134
|
+
defaultCurrencyCode: CurrencyCode;
|
|
130
135
|
defaultLanguageCode: LanguageCode;
|
|
131
136
|
defaultShippingZone?: Maybe<Zone>;
|
|
132
137
|
defaultTaxZone?: Maybe<Zone>;
|
|
133
138
|
id: Scalars['ID'];
|
|
139
|
+
/** Not yet used - will be implemented in a future release. */
|
|
140
|
+
outOfStockThreshold?: Maybe<Scalars['Int']>;
|
|
134
141
|
pricesIncludeTax: Scalars['Boolean'];
|
|
142
|
+
seller?: Maybe<Seller>;
|
|
135
143
|
token: Scalars['String'];
|
|
144
|
+
/** Not yet used - will be implemented in a future release. */
|
|
145
|
+
trackInventory?: Maybe<Scalars['Boolean']>;
|
|
136
146
|
updatedAt: Scalars['DateTime'];
|
|
137
147
|
};
|
|
138
|
-
export
|
|
148
|
+
export type Collection = Node & {
|
|
139
149
|
__typename?: 'Collection';
|
|
140
150
|
assets: Array<Asset>;
|
|
141
151
|
breadcrumbs: Array<CollectionBreadcrumb>;
|
|
@@ -149,37 +159,39 @@ export declare type Collection = Node & {
|
|
|
149
159
|
languageCode?: Maybe<LanguageCode>;
|
|
150
160
|
name: Scalars['String'];
|
|
151
161
|
parent?: Maybe<Collection>;
|
|
162
|
+
parentId: Scalars['ID'];
|
|
152
163
|
position: Scalars['Int'];
|
|
153
164
|
productVariants: ProductVariantList;
|
|
154
165
|
slug: Scalars['String'];
|
|
155
166
|
translations: Array<CollectionTranslation>;
|
|
156
167
|
updatedAt: Scalars['DateTime'];
|
|
157
168
|
};
|
|
158
|
-
export
|
|
169
|
+
export type CollectionProductVariantsArgs = {
|
|
159
170
|
options?: InputMaybe<ProductVariantListOptions>;
|
|
160
171
|
};
|
|
161
|
-
export
|
|
172
|
+
export type CollectionBreadcrumb = {
|
|
162
173
|
__typename?: 'CollectionBreadcrumb';
|
|
163
174
|
id: Scalars['ID'];
|
|
164
175
|
name: Scalars['String'];
|
|
165
176
|
slug: Scalars['String'];
|
|
166
177
|
};
|
|
167
|
-
export
|
|
178
|
+
export type CollectionFilterParameter = {
|
|
168
179
|
createdAt?: InputMaybe<DateOperators>;
|
|
169
180
|
description?: InputMaybe<StringOperators>;
|
|
170
181
|
id?: InputMaybe<IdOperators>;
|
|
171
182
|
languageCode?: InputMaybe<StringOperators>;
|
|
172
183
|
name?: InputMaybe<StringOperators>;
|
|
184
|
+
parentId?: InputMaybe<IdOperators>;
|
|
173
185
|
position?: InputMaybe<NumberOperators>;
|
|
174
186
|
slug?: InputMaybe<StringOperators>;
|
|
175
187
|
updatedAt?: InputMaybe<DateOperators>;
|
|
176
188
|
};
|
|
177
|
-
export
|
|
189
|
+
export type CollectionList = PaginatedList & {
|
|
178
190
|
__typename?: 'CollectionList';
|
|
179
191
|
items: Array<Collection>;
|
|
180
192
|
totalItems: Scalars['Int'];
|
|
181
193
|
};
|
|
182
|
-
export
|
|
194
|
+
export type CollectionListOptions = {
|
|
183
195
|
/** Allows the results to be filtered */
|
|
184
196
|
filter?: InputMaybe<CollectionFilterParameter>;
|
|
185
197
|
/** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */
|
|
@@ -195,21 +207,22 @@ export declare type CollectionListOptions = {
|
|
|
195
207
|
* Which Collections are present in the products returned
|
|
196
208
|
* by the search, and in what quantity.
|
|
197
209
|
*/
|
|
198
|
-
export
|
|
210
|
+
export type CollectionResult = {
|
|
199
211
|
__typename?: 'CollectionResult';
|
|
200
212
|
collection: Collection;
|
|
201
213
|
count: Scalars['Int'];
|
|
202
214
|
};
|
|
203
|
-
export
|
|
215
|
+
export type CollectionSortParameter = {
|
|
204
216
|
createdAt?: InputMaybe<SortOrder>;
|
|
205
217
|
description?: InputMaybe<SortOrder>;
|
|
206
218
|
id?: InputMaybe<SortOrder>;
|
|
207
219
|
name?: InputMaybe<SortOrder>;
|
|
220
|
+
parentId?: InputMaybe<SortOrder>;
|
|
208
221
|
position?: InputMaybe<SortOrder>;
|
|
209
222
|
slug?: InputMaybe<SortOrder>;
|
|
210
223
|
updatedAt?: InputMaybe<SortOrder>;
|
|
211
224
|
};
|
|
212
|
-
export
|
|
225
|
+
export type CollectionTranslation = {
|
|
213
226
|
__typename?: 'CollectionTranslation';
|
|
214
227
|
createdAt: Scalars['DateTime'];
|
|
215
228
|
description: Scalars['String'];
|
|
@@ -219,12 +232,12 @@ export declare type CollectionTranslation = {
|
|
|
219
232
|
slug: Scalars['String'];
|
|
220
233
|
updatedAt: Scalars['DateTime'];
|
|
221
234
|
};
|
|
222
|
-
export
|
|
235
|
+
export type ConfigArg = {
|
|
223
236
|
__typename?: 'ConfigArg';
|
|
224
237
|
name: Scalars['String'];
|
|
225
238
|
value: Scalars['String'];
|
|
226
239
|
};
|
|
227
|
-
export
|
|
240
|
+
export type ConfigArgDefinition = {
|
|
228
241
|
__typename?: 'ConfigArgDefinition';
|
|
229
242
|
defaultValue?: Maybe<Scalars['JSON']>;
|
|
230
243
|
description?: Maybe<Scalars['String']>;
|
|
@@ -235,32 +248,32 @@ export declare type ConfigArgDefinition = {
|
|
|
235
248
|
type: Scalars['String'];
|
|
236
249
|
ui?: Maybe<Scalars['JSON']>;
|
|
237
250
|
};
|
|
238
|
-
export
|
|
251
|
+
export type ConfigArgInput = {
|
|
239
252
|
name: Scalars['String'];
|
|
240
253
|
/** A JSON stringified representation of the actual value */
|
|
241
254
|
value: Scalars['String'];
|
|
242
255
|
};
|
|
243
|
-
export
|
|
256
|
+
export type ConfigurableOperation = {
|
|
244
257
|
__typename?: 'ConfigurableOperation';
|
|
245
258
|
args: Array<ConfigArg>;
|
|
246
259
|
code: Scalars['String'];
|
|
247
260
|
};
|
|
248
|
-
export
|
|
261
|
+
export type ConfigurableOperationDefinition = {
|
|
249
262
|
__typename?: 'ConfigurableOperationDefinition';
|
|
250
263
|
args: Array<ConfigArgDefinition>;
|
|
251
264
|
code: Scalars['String'];
|
|
252
265
|
description: Scalars['String'];
|
|
253
266
|
};
|
|
254
|
-
export
|
|
267
|
+
export type ConfigurableOperationInput = {
|
|
255
268
|
arguments: Array<ConfigArgInput>;
|
|
256
269
|
code: Scalars['String'];
|
|
257
270
|
};
|
|
258
|
-
export
|
|
271
|
+
export type Coordinate = {
|
|
259
272
|
__typename?: 'Coordinate';
|
|
260
273
|
x: Scalars['Float'];
|
|
261
274
|
y: Scalars['Float'];
|
|
262
275
|
};
|
|
263
|
-
export
|
|
276
|
+
export type Country = Node & Region & {
|
|
264
277
|
__typename?: 'Country';
|
|
265
278
|
code: Scalars['String'];
|
|
266
279
|
createdAt: Scalars['DateTime'];
|
|
@@ -269,45 +282,40 @@ export declare type Country = Node & {
|
|
|
269
282
|
id: Scalars['ID'];
|
|
270
283
|
languageCode: LanguageCode;
|
|
271
284
|
name: Scalars['String'];
|
|
272
|
-
|
|
285
|
+
parent?: Maybe<Region>;
|
|
286
|
+
parentId?: Maybe<Scalars['ID']>;
|
|
287
|
+
translations: Array<RegionTranslation>;
|
|
288
|
+
type: Scalars['String'];
|
|
273
289
|
updatedAt: Scalars['DateTime'];
|
|
274
290
|
};
|
|
275
|
-
export
|
|
291
|
+
export type CountryList = PaginatedList & {
|
|
276
292
|
__typename?: 'CountryList';
|
|
277
293
|
items: Array<Country>;
|
|
278
294
|
totalItems: Scalars['Int'];
|
|
279
295
|
};
|
|
280
|
-
export declare type CountryTranslation = {
|
|
281
|
-
__typename?: 'CountryTranslation';
|
|
282
|
-
createdAt: Scalars['DateTime'];
|
|
283
|
-
id: Scalars['ID'];
|
|
284
|
-
languageCode: LanguageCode;
|
|
285
|
-
name: Scalars['String'];
|
|
286
|
-
updatedAt: Scalars['DateTime'];
|
|
287
|
-
};
|
|
288
296
|
/** Returned if the provided coupon code is invalid */
|
|
289
|
-
export
|
|
297
|
+
export type CouponCodeExpiredError = ErrorResult & {
|
|
290
298
|
__typename?: 'CouponCodeExpiredError';
|
|
291
299
|
couponCode: Scalars['String'];
|
|
292
300
|
errorCode: ErrorCode;
|
|
293
301
|
message: Scalars['String'];
|
|
294
302
|
};
|
|
295
303
|
/** Returned if the provided coupon code is invalid */
|
|
296
|
-
export
|
|
304
|
+
export type CouponCodeInvalidError = ErrorResult & {
|
|
297
305
|
__typename?: 'CouponCodeInvalidError';
|
|
298
306
|
couponCode: Scalars['String'];
|
|
299
307
|
errorCode: ErrorCode;
|
|
300
308
|
message: Scalars['String'];
|
|
301
309
|
};
|
|
302
310
|
/** Returned if the provided coupon code is invalid */
|
|
303
|
-
export
|
|
311
|
+
export type CouponCodeLimitError = ErrorResult & {
|
|
304
312
|
__typename?: 'CouponCodeLimitError';
|
|
305
313
|
couponCode: Scalars['String'];
|
|
306
314
|
errorCode: ErrorCode;
|
|
307
315
|
limit: Scalars['Int'];
|
|
308
316
|
message: Scalars['String'];
|
|
309
317
|
};
|
|
310
|
-
export
|
|
318
|
+
export type CreateAddressInput = {
|
|
311
319
|
city?: InputMaybe<Scalars['String']>;
|
|
312
320
|
company?: InputMaybe<Scalars['String']>;
|
|
313
321
|
countryCode: Scalars['String'];
|
|
@@ -321,7 +329,7 @@ export declare type CreateAddressInput = {
|
|
|
321
329
|
streetLine1: Scalars['String'];
|
|
322
330
|
streetLine2?: InputMaybe<Scalars['String']>;
|
|
323
331
|
};
|
|
324
|
-
export
|
|
332
|
+
export type CreateCustomerInput = {
|
|
325
333
|
customFields?: InputMaybe<Scalars['JSON']>;
|
|
326
334
|
emailAddress: Scalars['String'];
|
|
327
335
|
firstName: Scalars['String'];
|
|
@@ -651,20 +659,20 @@ export declare enum CurrencyCode {
|
|
|
651
659
|
/** Zimbabwean dollar */
|
|
652
660
|
ZWL = "ZWL"
|
|
653
661
|
}
|
|
654
|
-
export
|
|
662
|
+
export type CurrentUser = {
|
|
655
663
|
__typename?: 'CurrentUser';
|
|
656
664
|
channels: Array<CurrentUserChannel>;
|
|
657
665
|
id: Scalars['ID'];
|
|
658
666
|
identifier: Scalars['String'];
|
|
659
667
|
};
|
|
660
|
-
export
|
|
668
|
+
export type CurrentUserChannel = {
|
|
661
669
|
__typename?: 'CurrentUserChannel';
|
|
662
670
|
code: Scalars['String'];
|
|
663
671
|
id: Scalars['ID'];
|
|
664
672
|
permissions: Array<Permission>;
|
|
665
673
|
token: Scalars['String'];
|
|
666
674
|
};
|
|
667
|
-
export
|
|
675
|
+
export type CustomField = {
|
|
668
676
|
description?: Maybe<Array<LocalizedString>>;
|
|
669
677
|
internal?: Maybe<Scalars['Boolean']>;
|
|
670
678
|
label?: Maybe<Array<LocalizedString>>;
|
|
@@ -675,8 +683,8 @@ export declare type CustomField = {
|
|
|
675
683
|
type: Scalars['String'];
|
|
676
684
|
ui?: Maybe<Scalars['JSON']>;
|
|
677
685
|
};
|
|
678
|
-
export
|
|
679
|
-
export
|
|
686
|
+
export type CustomFieldConfig = BooleanCustomFieldConfig | DateTimeCustomFieldConfig | FloatCustomFieldConfig | IntCustomFieldConfig | LocaleStringCustomFieldConfig | LocaleTextCustomFieldConfig | RelationCustomFieldConfig | StringCustomFieldConfig | TextCustomFieldConfig;
|
|
687
|
+
export type Customer = Node & {
|
|
680
688
|
__typename?: 'Customer';
|
|
681
689
|
addresses?: Maybe<Array<Address>>;
|
|
682
690
|
createdAt: Scalars['DateTime'];
|
|
@@ -691,10 +699,10 @@ export declare type Customer = Node & {
|
|
|
691
699
|
updatedAt: Scalars['DateTime'];
|
|
692
700
|
user?: Maybe<User>;
|
|
693
701
|
};
|
|
694
|
-
export
|
|
702
|
+
export type CustomerOrdersArgs = {
|
|
695
703
|
options?: InputMaybe<OrderListOptions>;
|
|
696
704
|
};
|
|
697
|
-
export
|
|
705
|
+
export type CustomerFilterParameter = {
|
|
698
706
|
createdAt?: InputMaybe<DateOperators>;
|
|
699
707
|
emailAddress?: InputMaybe<StringOperators>;
|
|
700
708
|
firstName?: InputMaybe<StringOperators>;
|
|
@@ -704,7 +712,7 @@ export declare type CustomerFilterParameter = {
|
|
|
704
712
|
title?: InputMaybe<StringOperators>;
|
|
705
713
|
updatedAt?: InputMaybe<DateOperators>;
|
|
706
714
|
};
|
|
707
|
-
export
|
|
715
|
+
export type CustomerGroup = Node & {
|
|
708
716
|
__typename?: 'CustomerGroup';
|
|
709
717
|
createdAt: Scalars['DateTime'];
|
|
710
718
|
customFields?: Maybe<Scalars['JSON']>;
|
|
@@ -713,15 +721,15 @@ export declare type CustomerGroup = Node & {
|
|
|
713
721
|
name: Scalars['String'];
|
|
714
722
|
updatedAt: Scalars['DateTime'];
|
|
715
723
|
};
|
|
716
|
-
export
|
|
724
|
+
export type CustomerGroupCustomersArgs = {
|
|
717
725
|
options?: InputMaybe<CustomerListOptions>;
|
|
718
726
|
};
|
|
719
|
-
export
|
|
727
|
+
export type CustomerList = PaginatedList & {
|
|
720
728
|
__typename?: 'CustomerList';
|
|
721
729
|
items: Array<Customer>;
|
|
722
730
|
totalItems: Scalars['Int'];
|
|
723
731
|
};
|
|
724
|
-
export
|
|
732
|
+
export type CustomerListOptions = {
|
|
725
733
|
/** Allows the results to be filtered */
|
|
726
734
|
filter?: InputMaybe<CustomerFilterParameter>;
|
|
727
735
|
/** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */
|
|
@@ -733,7 +741,7 @@ export declare type CustomerListOptions = {
|
|
|
733
741
|
/** Takes n results, for use in pagination */
|
|
734
742
|
take?: InputMaybe<Scalars['Int']>;
|
|
735
743
|
};
|
|
736
|
-
export
|
|
744
|
+
export type CustomerSortParameter = {
|
|
737
745
|
createdAt?: InputMaybe<SortOrder>;
|
|
738
746
|
emailAddress?: InputMaybe<SortOrder>;
|
|
739
747
|
firstName?: InputMaybe<SortOrder>;
|
|
@@ -744,17 +752,18 @@ export declare type CustomerSortParameter = {
|
|
|
744
752
|
updatedAt?: InputMaybe<SortOrder>;
|
|
745
753
|
};
|
|
746
754
|
/** Operators for filtering on a list of Date fields */
|
|
747
|
-
export
|
|
755
|
+
export type DateListOperators = {
|
|
748
756
|
inList: Scalars['DateTime'];
|
|
749
757
|
};
|
|
750
758
|
/** Operators for filtering on a DateTime field */
|
|
751
|
-
export
|
|
759
|
+
export type DateOperators = {
|
|
752
760
|
after?: InputMaybe<Scalars['DateTime']>;
|
|
753
761
|
before?: InputMaybe<Scalars['DateTime']>;
|
|
754
762
|
between?: InputMaybe<DateRange>;
|
|
755
763
|
eq?: InputMaybe<Scalars['DateTime']>;
|
|
764
|
+
isNull?: InputMaybe<Scalars['Boolean']>;
|
|
756
765
|
};
|
|
757
|
-
export
|
|
766
|
+
export type DateRange = {
|
|
758
767
|
end: Scalars['DateTime'];
|
|
759
768
|
start: Scalars['DateTime'];
|
|
760
769
|
};
|
|
@@ -762,7 +771,7 @@ export declare type DateRange = {
|
|
|
762
771
|
* Expects the same validation formats as the `<input type="datetime-local">` HTML element.
|
|
763
772
|
* See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local#Additional_attributes
|
|
764
773
|
*/
|
|
765
|
-
export
|
|
774
|
+
export type DateTimeCustomFieldConfig = CustomField & {
|
|
766
775
|
__typename?: 'DateTimeCustomFieldConfig';
|
|
767
776
|
description?: Maybe<Array<LocalizedString>>;
|
|
768
777
|
internal?: Maybe<Scalars['Boolean']>;
|
|
@@ -777,7 +786,7 @@ export declare type DateTimeCustomFieldConfig = CustomField & {
|
|
|
777
786
|
type: Scalars['String'];
|
|
778
787
|
ui?: Maybe<Scalars['JSON']>;
|
|
779
788
|
};
|
|
780
|
-
export
|
|
789
|
+
export type DeletionResponse = {
|
|
781
790
|
__typename?: 'DeletionResponse';
|
|
782
791
|
message?: Maybe<Scalars['String']>;
|
|
783
792
|
result: DeletionResult;
|
|
@@ -788,16 +797,16 @@ export declare enum DeletionResult {
|
|
|
788
797
|
/** Deletion did not take place, reason given in message */
|
|
789
798
|
NOT_DELETED = "NOT_DELETED"
|
|
790
799
|
}
|
|
791
|
-
export
|
|
800
|
+
export type Discount = {
|
|
792
801
|
__typename?: 'Discount';
|
|
793
802
|
adjustmentSource: Scalars['String'];
|
|
794
|
-
amount: Scalars['
|
|
795
|
-
amountWithTax: Scalars['
|
|
803
|
+
amount: Scalars['Money'];
|
|
804
|
+
amountWithTax: Scalars['Money'];
|
|
796
805
|
description: Scalars['String'];
|
|
797
806
|
type: AdjustmentType;
|
|
798
807
|
};
|
|
799
808
|
/** Returned when attempting to create a Customer with an email address already registered to an existing User. */
|
|
800
|
-
export
|
|
809
|
+
export type EmailAddressConflictError = ErrorResult & {
|
|
801
810
|
__typename?: 'EmailAddressConflictError';
|
|
802
811
|
errorCode: ErrorCode;
|
|
803
812
|
message: Scalars['String'];
|
|
@@ -808,6 +817,7 @@ export declare enum ErrorCode {
|
|
|
808
817
|
COUPON_CODE_INVALID_ERROR = "COUPON_CODE_INVALID_ERROR",
|
|
809
818
|
COUPON_CODE_LIMIT_ERROR = "COUPON_CODE_LIMIT_ERROR",
|
|
810
819
|
EMAIL_ADDRESS_CONFLICT_ERROR = "EMAIL_ADDRESS_CONFLICT_ERROR",
|
|
820
|
+
GUEST_CHECKOUT_ERROR = "GUEST_CHECKOUT_ERROR",
|
|
811
821
|
IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR = "IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR",
|
|
812
822
|
IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR = "IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR",
|
|
813
823
|
INELIGIBLE_PAYMENT_METHOD_ERROR = "INELIGIBLE_PAYMENT_METHOD_ERROR",
|
|
@@ -833,11 +843,11 @@ export declare enum ErrorCode {
|
|
|
833
843
|
VERIFICATION_TOKEN_EXPIRED_ERROR = "VERIFICATION_TOKEN_EXPIRED_ERROR",
|
|
834
844
|
VERIFICATION_TOKEN_INVALID_ERROR = "VERIFICATION_TOKEN_INVALID_ERROR"
|
|
835
845
|
}
|
|
836
|
-
export
|
|
846
|
+
export type ErrorResult = {
|
|
837
847
|
errorCode: ErrorCode;
|
|
838
848
|
message: Scalars['String'];
|
|
839
849
|
};
|
|
840
|
-
export
|
|
850
|
+
export type Facet = Node & {
|
|
841
851
|
__typename?: 'Facet';
|
|
842
852
|
code: Scalars['String'];
|
|
843
853
|
createdAt: Scalars['DateTime'];
|
|
@@ -849,7 +859,7 @@ export declare type Facet = Node & {
|
|
|
849
859
|
updatedAt: Scalars['DateTime'];
|
|
850
860
|
values: Array<FacetValue>;
|
|
851
861
|
};
|
|
852
|
-
export
|
|
862
|
+
export type FacetFilterParameter = {
|
|
853
863
|
code?: InputMaybe<StringOperators>;
|
|
854
864
|
createdAt?: InputMaybe<DateOperators>;
|
|
855
865
|
id?: InputMaybe<IdOperators>;
|
|
@@ -857,12 +867,12 @@ export declare type FacetFilterParameter = {
|
|
|
857
867
|
name?: InputMaybe<StringOperators>;
|
|
858
868
|
updatedAt?: InputMaybe<DateOperators>;
|
|
859
869
|
};
|
|
860
|
-
export
|
|
870
|
+
export type FacetList = PaginatedList & {
|
|
861
871
|
__typename?: 'FacetList';
|
|
862
872
|
items: Array<Facet>;
|
|
863
873
|
totalItems: Scalars['Int'];
|
|
864
874
|
};
|
|
865
|
-
export
|
|
875
|
+
export type FacetListOptions = {
|
|
866
876
|
/** Allows the results to be filtered */
|
|
867
877
|
filter?: InputMaybe<FacetFilterParameter>;
|
|
868
878
|
/** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */
|
|
@@ -874,14 +884,14 @@ export declare type FacetListOptions = {
|
|
|
874
884
|
/** Takes n results, for use in pagination */
|
|
875
885
|
take?: InputMaybe<Scalars['Int']>;
|
|
876
886
|
};
|
|
877
|
-
export
|
|
887
|
+
export type FacetSortParameter = {
|
|
878
888
|
code?: InputMaybe<SortOrder>;
|
|
879
889
|
createdAt?: InputMaybe<SortOrder>;
|
|
880
890
|
id?: InputMaybe<SortOrder>;
|
|
881
891
|
name?: InputMaybe<SortOrder>;
|
|
882
892
|
updatedAt?: InputMaybe<SortOrder>;
|
|
883
893
|
};
|
|
884
|
-
export
|
|
894
|
+
export type FacetTranslation = {
|
|
885
895
|
__typename?: 'FacetTranslation';
|
|
886
896
|
createdAt: Scalars['DateTime'];
|
|
887
897
|
id: Scalars['ID'];
|
|
@@ -889,7 +899,7 @@ export declare type FacetTranslation = {
|
|
|
889
899
|
name: Scalars['String'];
|
|
890
900
|
updatedAt: Scalars['DateTime'];
|
|
891
901
|
};
|
|
892
|
-
export
|
|
902
|
+
export type FacetValue = Node & {
|
|
893
903
|
__typename?: 'FacetValue';
|
|
894
904
|
code: Scalars['String'];
|
|
895
905
|
createdAt: Scalars['DateTime'];
|
|
@@ -909,7 +919,7 @@ export declare type FacetValue = Node & {
|
|
|
909
919
|
* * ID=1 AND ID=2: `{ facetValueFilters: [{ and: 1 }, { and: 2 }] }`
|
|
910
920
|
* * ID=1 AND (ID=2 OR ID=3): `{ facetValueFilters: [{ and: 1 }, { or: [2,3] }] }`
|
|
911
921
|
*/
|
|
912
|
-
export
|
|
922
|
+
export type FacetValueFilterInput = {
|
|
913
923
|
and?: InputMaybe<Scalars['ID']>;
|
|
914
924
|
or?: InputMaybe<Array<Scalars['ID']>>;
|
|
915
925
|
};
|
|
@@ -917,12 +927,12 @@ export declare type FacetValueFilterInput = {
|
|
|
917
927
|
* Which FacetValues are present in the products returned
|
|
918
928
|
* by the search, and in what quantity.
|
|
919
929
|
*/
|
|
920
|
-
export
|
|
930
|
+
export type FacetValueResult = {
|
|
921
931
|
__typename?: 'FacetValueResult';
|
|
922
932
|
count: Scalars['Int'];
|
|
923
933
|
facetValue: FacetValue;
|
|
924
934
|
};
|
|
925
|
-
export
|
|
935
|
+
export type FacetValueTranslation = {
|
|
926
936
|
__typename?: 'FacetValueTranslation';
|
|
927
937
|
createdAt: Scalars['DateTime'];
|
|
928
938
|
id: Scalars['ID'];
|
|
@@ -930,7 +940,7 @@ export declare type FacetValueTranslation = {
|
|
|
930
940
|
name: Scalars['String'];
|
|
931
941
|
updatedAt: Scalars['DateTime'];
|
|
932
942
|
};
|
|
933
|
-
export
|
|
943
|
+
export type FloatCustomFieldConfig = CustomField & {
|
|
934
944
|
__typename?: 'FloatCustomFieldConfig';
|
|
935
945
|
description?: Maybe<Array<LocalizedString>>;
|
|
936
946
|
internal?: Maybe<Scalars['Boolean']>;
|
|
@@ -945,23 +955,40 @@ export declare type FloatCustomFieldConfig = CustomField & {
|
|
|
945
955
|
type: Scalars['String'];
|
|
946
956
|
ui?: Maybe<Scalars['JSON']>;
|
|
947
957
|
};
|
|
948
|
-
export
|
|
958
|
+
export type Fulfillment = Node & {
|
|
949
959
|
__typename?: 'Fulfillment';
|
|
950
960
|
createdAt: Scalars['DateTime'];
|
|
951
961
|
customFields?: Maybe<Scalars['JSON']>;
|
|
952
962
|
id: Scalars['ID'];
|
|
963
|
+
lines: Array<FulfillmentLine>;
|
|
953
964
|
method: Scalars['String'];
|
|
954
|
-
orderItems: Array<OrderItem>;
|
|
955
965
|
state: Scalars['String'];
|
|
966
|
+
/** @deprecated Use the `lines` field instead */
|
|
967
|
+
summary: Array<FulfillmentLine>;
|
|
956
968
|
trackingCode?: Maybe<Scalars['String']>;
|
|
957
969
|
updatedAt: Scalars['DateTime'];
|
|
958
970
|
};
|
|
971
|
+
export type FulfillmentLine = {
|
|
972
|
+
__typename?: 'FulfillmentLine';
|
|
973
|
+
fulfillment: Fulfillment;
|
|
974
|
+
fulfillmentId: Scalars['ID'];
|
|
975
|
+
orderLine: OrderLine;
|
|
976
|
+
orderLineId: Scalars['ID'];
|
|
977
|
+
quantity: Scalars['Int'];
|
|
978
|
+
};
|
|
959
979
|
export declare enum GlobalFlag {
|
|
960
980
|
FALSE = "FALSE",
|
|
961
981
|
INHERIT = "INHERIT",
|
|
962
982
|
TRUE = "TRUE"
|
|
963
983
|
}
|
|
964
|
-
|
|
984
|
+
/** Returned when attempting to set the Customer on a guest checkout when the configured GuestCheckoutStrategy does not allow it. */
|
|
985
|
+
export type GuestCheckoutError = ErrorResult & {
|
|
986
|
+
__typename?: 'GuestCheckoutError';
|
|
987
|
+
errorCode: ErrorCode;
|
|
988
|
+
errorDetail: Scalars['String'];
|
|
989
|
+
message: Scalars['String'];
|
|
990
|
+
};
|
|
991
|
+
export type HistoryEntry = Node & {
|
|
965
992
|
__typename?: 'HistoryEntry';
|
|
966
993
|
createdAt: Scalars['DateTime'];
|
|
967
994
|
data: Scalars['JSON'];
|
|
@@ -969,18 +996,18 @@ export declare type HistoryEntry = Node & {
|
|
|
969
996
|
type: HistoryEntryType;
|
|
970
997
|
updatedAt: Scalars['DateTime'];
|
|
971
998
|
};
|
|
972
|
-
export
|
|
999
|
+
export type HistoryEntryFilterParameter = {
|
|
973
1000
|
createdAt?: InputMaybe<DateOperators>;
|
|
974
1001
|
id?: InputMaybe<IdOperators>;
|
|
975
1002
|
type?: InputMaybe<StringOperators>;
|
|
976
1003
|
updatedAt?: InputMaybe<DateOperators>;
|
|
977
1004
|
};
|
|
978
|
-
export
|
|
1005
|
+
export type HistoryEntryList = PaginatedList & {
|
|
979
1006
|
__typename?: 'HistoryEntryList';
|
|
980
1007
|
items: Array<HistoryEntry>;
|
|
981
1008
|
totalItems: Scalars['Int'];
|
|
982
1009
|
};
|
|
983
|
-
export
|
|
1010
|
+
export type HistoryEntryListOptions = {
|
|
984
1011
|
/** Allows the results to be filtered */
|
|
985
1012
|
filter?: InputMaybe<HistoryEntryFilterParameter>;
|
|
986
1013
|
/** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */
|
|
@@ -992,7 +1019,7 @@ export declare type HistoryEntryListOptions = {
|
|
|
992
1019
|
/** Takes n results, for use in pagination */
|
|
993
1020
|
take?: InputMaybe<Scalars['Int']>;
|
|
994
1021
|
};
|
|
995
|
-
export
|
|
1022
|
+
export type HistoryEntrySortParameter = {
|
|
996
1023
|
createdAt?: InputMaybe<SortOrder>;
|
|
997
1024
|
id?: InputMaybe<SortOrder>;
|
|
998
1025
|
updatedAt?: InputMaybe<SortOrder>;
|
|
@@ -1024,13 +1051,14 @@ export declare enum HistoryEntryType {
|
|
|
1024
1051
|
ORDER_STATE_TRANSITION = "ORDER_STATE_TRANSITION"
|
|
1025
1052
|
}
|
|
1026
1053
|
/** Operators for filtering on a list of ID fields */
|
|
1027
|
-
export
|
|
1054
|
+
export type IdListOperators = {
|
|
1028
1055
|
inList: Scalars['ID'];
|
|
1029
1056
|
};
|
|
1030
1057
|
/** Operators for filtering on an ID field */
|
|
1031
|
-
export
|
|
1058
|
+
export type IdOperators = {
|
|
1032
1059
|
eq?: InputMaybe<Scalars['String']>;
|
|
1033
1060
|
in?: InputMaybe<Array<Scalars['String']>>;
|
|
1061
|
+
isNull?: InputMaybe<Scalars['Boolean']>;
|
|
1034
1062
|
notEq?: InputMaybe<Scalars['String']>;
|
|
1035
1063
|
notIn?: InputMaybe<Array<Scalars['String']>>;
|
|
1036
1064
|
};
|
|
@@ -1038,7 +1066,7 @@ export declare type IdOperators = {
|
|
|
1038
1066
|
* Returned if the token used to change a Customer's email address is valid, but has
|
|
1039
1067
|
* expired according to the `verificationTokenDuration` setting in the AuthOptions.
|
|
1040
1068
|
*/
|
|
1041
|
-
export
|
|
1069
|
+
export type IdentifierChangeTokenExpiredError = ErrorResult & {
|
|
1042
1070
|
__typename?: 'IdentifierChangeTokenExpiredError';
|
|
1043
1071
|
errorCode: ErrorCode;
|
|
1044
1072
|
message: Scalars['String'];
|
|
@@ -1047,33 +1075,33 @@ export declare type IdentifierChangeTokenExpiredError = ErrorResult & {
|
|
|
1047
1075
|
* Returned if the token used to change a Customer's email address is either
|
|
1048
1076
|
* invalid or does not match any expected tokens.
|
|
1049
1077
|
*/
|
|
1050
|
-
export
|
|
1078
|
+
export type IdentifierChangeTokenInvalidError = ErrorResult & {
|
|
1051
1079
|
__typename?: 'IdentifierChangeTokenInvalidError';
|
|
1052
1080
|
errorCode: ErrorCode;
|
|
1053
1081
|
message: Scalars['String'];
|
|
1054
1082
|
};
|
|
1055
1083
|
/** Returned when attempting to add a Payment using a PaymentMethod for which the Order is not eligible. */
|
|
1056
|
-
export
|
|
1084
|
+
export type IneligiblePaymentMethodError = ErrorResult & {
|
|
1057
1085
|
__typename?: 'IneligiblePaymentMethodError';
|
|
1058
1086
|
eligibilityCheckerMessage?: Maybe<Scalars['String']>;
|
|
1059
1087
|
errorCode: ErrorCode;
|
|
1060
1088
|
message: Scalars['String'];
|
|
1061
1089
|
};
|
|
1062
1090
|
/** Returned when attempting to set a ShippingMethod for which the Order is not eligible */
|
|
1063
|
-
export
|
|
1091
|
+
export type IneligibleShippingMethodError = ErrorResult & {
|
|
1064
1092
|
__typename?: 'IneligibleShippingMethodError';
|
|
1065
1093
|
errorCode: ErrorCode;
|
|
1066
1094
|
message: Scalars['String'];
|
|
1067
1095
|
};
|
|
1068
1096
|
/** Returned when attempting to add more items to the Order than are available */
|
|
1069
|
-
export
|
|
1097
|
+
export type InsufficientStockError = ErrorResult & {
|
|
1070
1098
|
__typename?: 'InsufficientStockError';
|
|
1071
1099
|
errorCode: ErrorCode;
|
|
1072
1100
|
message: Scalars['String'];
|
|
1073
1101
|
order: Order;
|
|
1074
1102
|
quantityAvailable: Scalars['Int'];
|
|
1075
1103
|
};
|
|
1076
|
-
export
|
|
1104
|
+
export type IntCustomFieldConfig = CustomField & {
|
|
1077
1105
|
__typename?: 'IntCustomFieldConfig';
|
|
1078
1106
|
description?: Maybe<Array<LocalizedString>>;
|
|
1079
1107
|
internal?: Maybe<Scalars['Boolean']>;
|
|
@@ -1089,7 +1117,7 @@ export declare type IntCustomFieldConfig = CustomField & {
|
|
|
1089
1117
|
ui?: Maybe<Scalars['JSON']>;
|
|
1090
1118
|
};
|
|
1091
1119
|
/** Returned if the user authentication credentials are not valid */
|
|
1092
|
-
export
|
|
1120
|
+
export type InvalidCredentialsError = ErrorResult & {
|
|
1093
1121
|
__typename?: 'InvalidCredentialsError';
|
|
1094
1122
|
authenticationError: Scalars['String'];
|
|
1095
1123
|
errorCode: ErrorCode;
|
|
@@ -1420,7 +1448,7 @@ export declare enum LanguageCode {
|
|
|
1420
1448
|
/** Zulu */
|
|
1421
1449
|
zu = "zu"
|
|
1422
1450
|
}
|
|
1423
|
-
export
|
|
1451
|
+
export type LocaleStringCustomFieldConfig = CustomField & {
|
|
1424
1452
|
__typename?: 'LocaleStringCustomFieldConfig';
|
|
1425
1453
|
description?: Maybe<Array<LocalizedString>>;
|
|
1426
1454
|
internal?: Maybe<Scalars['Boolean']>;
|
|
@@ -1434,7 +1462,19 @@ export declare type LocaleStringCustomFieldConfig = CustomField & {
|
|
|
1434
1462
|
type: Scalars['String'];
|
|
1435
1463
|
ui?: Maybe<Scalars['JSON']>;
|
|
1436
1464
|
};
|
|
1437
|
-
export
|
|
1465
|
+
export type LocaleTextCustomFieldConfig = CustomField & {
|
|
1466
|
+
__typename?: 'LocaleTextCustomFieldConfig';
|
|
1467
|
+
description?: Maybe<Array<LocalizedString>>;
|
|
1468
|
+
internal?: Maybe<Scalars['Boolean']>;
|
|
1469
|
+
label?: Maybe<Array<LocalizedString>>;
|
|
1470
|
+
list: Scalars['Boolean'];
|
|
1471
|
+
name: Scalars['String'];
|
|
1472
|
+
nullable?: Maybe<Scalars['Boolean']>;
|
|
1473
|
+
readonly?: Maybe<Scalars['Boolean']>;
|
|
1474
|
+
type: Scalars['String'];
|
|
1475
|
+
ui?: Maybe<Scalars['JSON']>;
|
|
1476
|
+
};
|
|
1477
|
+
export type LocalizedString = {
|
|
1438
1478
|
__typename?: 'LocalizedString';
|
|
1439
1479
|
languageCode: LanguageCode;
|
|
1440
1480
|
value: Scalars['String'];
|
|
@@ -1444,12 +1484,12 @@ export declare enum LogicalOperator {
|
|
|
1444
1484
|
OR = "OR"
|
|
1445
1485
|
}
|
|
1446
1486
|
/** Returned when attempting to register or verify a customer account without a password, when one is required. */
|
|
1447
|
-
export
|
|
1487
|
+
export type MissingPasswordError = ErrorResult & {
|
|
1448
1488
|
__typename?: 'MissingPasswordError';
|
|
1449
1489
|
errorCode: ErrorCode;
|
|
1450
1490
|
message: Scalars['String'];
|
|
1451
1491
|
};
|
|
1452
|
-
export
|
|
1492
|
+
export type Mutation = {
|
|
1453
1493
|
__typename?: 'Mutation';
|
|
1454
1494
|
/** Adds an item to the order. If custom fields are defined on the OrderLine entity, a third argument 'customFields' will be available. */
|
|
1455
1495
|
addItemToOrder: UpdateOrderItemsResult;
|
|
@@ -1513,7 +1553,12 @@ export declare type Mutation = {
|
|
|
1513
1553
|
setOrderCustomFields: ActiveOrderResult;
|
|
1514
1554
|
/** Sets the shipping address for this order */
|
|
1515
1555
|
setOrderShippingAddress: ActiveOrderResult;
|
|
1516
|
-
/**
|
|
1556
|
+
/**
|
|
1557
|
+
* Sets the shipping method by id, which can be obtained with the `eligibleShippingMethods` query.
|
|
1558
|
+
* An Order can have multiple shipping methods, in which case you can pass an array of ids. In this case,
|
|
1559
|
+
* you should configure a custom ShippingLineAssignmentStrategy in order to know which OrderLines each
|
|
1560
|
+
* shipping method will apply to.
|
|
1561
|
+
*/
|
|
1517
1562
|
setOrderShippingMethod: SetOrderShippingMethodResult;
|
|
1518
1563
|
/** Transitions an Order to a new state. Valid next states can be found by querying `nextOrderStates` */
|
|
1519
1564
|
transitionOrderToState?: Maybe<TransitionOrderToStateResult>;
|
|
@@ -1536,106 +1581,106 @@ export declare type Mutation = {
|
|
|
1536
1581
|
*/
|
|
1537
1582
|
verifyCustomerAccount: VerifyCustomerAccountResult;
|
|
1538
1583
|
};
|
|
1539
|
-
export
|
|
1584
|
+
export type MutationAddItemToOrderArgs = {
|
|
1540
1585
|
productVariantId: Scalars['ID'];
|
|
1541
1586
|
quantity: Scalars['Int'];
|
|
1542
1587
|
};
|
|
1543
|
-
export
|
|
1588
|
+
export type MutationAddPaymentToOrderArgs = {
|
|
1544
1589
|
input: PaymentInput;
|
|
1545
1590
|
};
|
|
1546
|
-
export
|
|
1591
|
+
export type MutationAdjustOrderLineArgs = {
|
|
1547
1592
|
orderLineId: Scalars['ID'];
|
|
1548
1593
|
quantity: Scalars['Int'];
|
|
1549
1594
|
};
|
|
1550
|
-
export
|
|
1595
|
+
export type MutationApplyCouponCodeArgs = {
|
|
1551
1596
|
couponCode: Scalars['String'];
|
|
1552
1597
|
};
|
|
1553
|
-
export
|
|
1598
|
+
export type MutationAuthenticateArgs = {
|
|
1554
1599
|
input: AuthenticationInput;
|
|
1555
1600
|
rememberMe?: InputMaybe<Scalars['Boolean']>;
|
|
1556
1601
|
};
|
|
1557
|
-
export
|
|
1602
|
+
export type MutationCreateCustomerAddressArgs = {
|
|
1558
1603
|
input: CreateAddressInput;
|
|
1559
1604
|
};
|
|
1560
|
-
export
|
|
1605
|
+
export type MutationDeleteCustomerAddressArgs = {
|
|
1561
1606
|
id: Scalars['ID'];
|
|
1562
1607
|
};
|
|
1563
|
-
export
|
|
1608
|
+
export type MutationLoginArgs = {
|
|
1564
1609
|
password: Scalars['String'];
|
|
1565
1610
|
rememberMe?: InputMaybe<Scalars['Boolean']>;
|
|
1566
1611
|
username: Scalars['String'];
|
|
1567
1612
|
};
|
|
1568
|
-
export
|
|
1613
|
+
export type MutationRefreshCustomerVerificationArgs = {
|
|
1569
1614
|
emailAddress: Scalars['String'];
|
|
1570
1615
|
};
|
|
1571
|
-
export
|
|
1616
|
+
export type MutationRegisterCustomerAccountArgs = {
|
|
1572
1617
|
input: RegisterCustomerInput;
|
|
1573
1618
|
};
|
|
1574
|
-
export
|
|
1619
|
+
export type MutationRemoveCouponCodeArgs = {
|
|
1575
1620
|
couponCode: Scalars['String'];
|
|
1576
1621
|
};
|
|
1577
|
-
export
|
|
1622
|
+
export type MutationRemoveOrderLineArgs = {
|
|
1578
1623
|
orderLineId: Scalars['ID'];
|
|
1579
1624
|
};
|
|
1580
|
-
export
|
|
1625
|
+
export type MutationRequestPasswordResetArgs = {
|
|
1581
1626
|
emailAddress: Scalars['String'];
|
|
1582
1627
|
};
|
|
1583
|
-
export
|
|
1628
|
+
export type MutationRequestUpdateCustomerEmailAddressArgs = {
|
|
1584
1629
|
newEmailAddress: Scalars['String'];
|
|
1585
1630
|
password: Scalars['String'];
|
|
1586
1631
|
};
|
|
1587
|
-
export
|
|
1632
|
+
export type MutationResetPasswordArgs = {
|
|
1588
1633
|
password: Scalars['String'];
|
|
1589
1634
|
token: Scalars['String'];
|
|
1590
1635
|
};
|
|
1591
|
-
export
|
|
1636
|
+
export type MutationSetCustomerForOrderArgs = {
|
|
1592
1637
|
input: CreateCustomerInput;
|
|
1593
1638
|
};
|
|
1594
|
-
export
|
|
1639
|
+
export type MutationSetOrderBillingAddressArgs = {
|
|
1595
1640
|
input: CreateAddressInput;
|
|
1596
1641
|
};
|
|
1597
|
-
export
|
|
1642
|
+
export type MutationSetOrderCustomFieldsArgs = {
|
|
1598
1643
|
input: UpdateOrderInput;
|
|
1599
1644
|
};
|
|
1600
|
-
export
|
|
1645
|
+
export type MutationSetOrderShippingAddressArgs = {
|
|
1601
1646
|
input: CreateAddressInput;
|
|
1602
1647
|
};
|
|
1603
|
-
export
|
|
1604
|
-
shippingMethodId: Scalars['ID']
|
|
1648
|
+
export type MutationSetOrderShippingMethodArgs = {
|
|
1649
|
+
shippingMethodId: Array<Scalars['ID']>;
|
|
1605
1650
|
};
|
|
1606
|
-
export
|
|
1651
|
+
export type MutationTransitionOrderToStateArgs = {
|
|
1607
1652
|
state: Scalars['String'];
|
|
1608
1653
|
};
|
|
1609
|
-
export
|
|
1654
|
+
export type MutationUpdateCustomerArgs = {
|
|
1610
1655
|
input: UpdateCustomerInput;
|
|
1611
1656
|
};
|
|
1612
|
-
export
|
|
1657
|
+
export type MutationUpdateCustomerAddressArgs = {
|
|
1613
1658
|
input: UpdateAddressInput;
|
|
1614
1659
|
};
|
|
1615
|
-
export
|
|
1660
|
+
export type MutationUpdateCustomerEmailAddressArgs = {
|
|
1616
1661
|
token: Scalars['String'];
|
|
1617
1662
|
};
|
|
1618
|
-
export
|
|
1663
|
+
export type MutationUpdateCustomerPasswordArgs = {
|
|
1619
1664
|
currentPassword: Scalars['String'];
|
|
1620
1665
|
newPassword: Scalars['String'];
|
|
1621
1666
|
};
|
|
1622
|
-
export
|
|
1667
|
+
export type MutationVerifyCustomerAccountArgs = {
|
|
1623
1668
|
password?: InputMaybe<Scalars['String']>;
|
|
1624
1669
|
token: Scalars['String'];
|
|
1625
1670
|
};
|
|
1626
|
-
export
|
|
1671
|
+
export type NativeAuthInput = {
|
|
1627
1672
|
password: Scalars['String'];
|
|
1628
1673
|
username: Scalars['String'];
|
|
1629
1674
|
};
|
|
1630
1675
|
/** Returned when attempting an operation that relies on the NativeAuthStrategy, if that strategy is not configured. */
|
|
1631
|
-
export
|
|
1676
|
+
export type NativeAuthStrategyError = ErrorResult & {
|
|
1632
1677
|
__typename?: 'NativeAuthStrategyError';
|
|
1633
1678
|
errorCode: ErrorCode;
|
|
1634
1679
|
message: Scalars['String'];
|
|
1635
1680
|
};
|
|
1636
|
-
export
|
|
1681
|
+
export type NativeAuthenticationResult = CurrentUser | InvalidCredentialsError | NativeAuthStrategyError | NotVerifiedError;
|
|
1637
1682
|
/** Returned when attempting to set a negative OrderLine quantity. */
|
|
1638
|
-
export
|
|
1683
|
+
export type NegativeQuantityError = ErrorResult & {
|
|
1639
1684
|
__typename?: 'NegativeQuantityError';
|
|
1640
1685
|
errorCode: ErrorCode;
|
|
1641
1686
|
message: Scalars['String'];
|
|
@@ -1644,41 +1689,42 @@ export declare type NegativeQuantityError = ErrorResult & {
|
|
|
1644
1689
|
* Returned when invoking a mutation which depends on there being an active Order on the
|
|
1645
1690
|
* current session.
|
|
1646
1691
|
*/
|
|
1647
|
-
export
|
|
1692
|
+
export type NoActiveOrderError = ErrorResult & {
|
|
1648
1693
|
__typename?: 'NoActiveOrderError';
|
|
1649
1694
|
errorCode: ErrorCode;
|
|
1650
1695
|
message: Scalars['String'];
|
|
1651
1696
|
};
|
|
1652
|
-
export
|
|
1697
|
+
export type Node = {
|
|
1653
1698
|
id: Scalars['ID'];
|
|
1654
1699
|
};
|
|
1655
1700
|
/**
|
|
1656
1701
|
* Returned if `authOptions.requireVerification` is set to `true` (which is the default)
|
|
1657
1702
|
* and an unverified user attempts to authenticate.
|
|
1658
1703
|
*/
|
|
1659
|
-
export
|
|
1704
|
+
export type NotVerifiedError = ErrorResult & {
|
|
1660
1705
|
__typename?: 'NotVerifiedError';
|
|
1661
1706
|
errorCode: ErrorCode;
|
|
1662
1707
|
message: Scalars['String'];
|
|
1663
1708
|
};
|
|
1664
1709
|
/** Operators for filtering on a list of Number fields */
|
|
1665
|
-
export
|
|
1710
|
+
export type NumberListOperators = {
|
|
1666
1711
|
inList: Scalars['Float'];
|
|
1667
1712
|
};
|
|
1668
1713
|
/** Operators for filtering on a Int or Float field */
|
|
1669
|
-
export
|
|
1714
|
+
export type NumberOperators = {
|
|
1670
1715
|
between?: InputMaybe<NumberRange>;
|
|
1671
1716
|
eq?: InputMaybe<Scalars['Float']>;
|
|
1672
1717
|
gt?: InputMaybe<Scalars['Float']>;
|
|
1673
1718
|
gte?: InputMaybe<Scalars['Float']>;
|
|
1719
|
+
isNull?: InputMaybe<Scalars['Boolean']>;
|
|
1674
1720
|
lt?: InputMaybe<Scalars['Float']>;
|
|
1675
1721
|
lte?: InputMaybe<Scalars['Float']>;
|
|
1676
1722
|
};
|
|
1677
|
-
export
|
|
1723
|
+
export type NumberRange = {
|
|
1678
1724
|
end: Scalars['Float'];
|
|
1679
1725
|
start: Scalars['Float'];
|
|
1680
1726
|
};
|
|
1681
|
-
export
|
|
1727
|
+
export type Order = Node & {
|
|
1682
1728
|
__typename?: 'Order';
|
|
1683
1729
|
/** An order is active as long as the payment process has not been completed */
|
|
1684
1730
|
active: Scalars['Boolean'];
|
|
@@ -1704,20 +1750,20 @@ export declare type Order = Node & {
|
|
|
1704
1750
|
payments?: Maybe<Array<Payment>>;
|
|
1705
1751
|
/** Promotions applied to the order. Only gets populated after the payment process has completed. */
|
|
1706
1752
|
promotions: Array<Promotion>;
|
|
1707
|
-
shipping: Scalars['
|
|
1753
|
+
shipping: Scalars['Money'];
|
|
1708
1754
|
shippingAddress?: Maybe<OrderAddress>;
|
|
1709
1755
|
shippingLines: Array<ShippingLine>;
|
|
1710
|
-
shippingWithTax: Scalars['
|
|
1756
|
+
shippingWithTax: Scalars['Money'];
|
|
1711
1757
|
state: Scalars['String'];
|
|
1712
1758
|
/**
|
|
1713
1759
|
* The subTotal is the total of all OrderLines in the Order. This figure also includes any Order-level
|
|
1714
|
-
* discounts which have been prorated (proportionally distributed) amongst the
|
|
1760
|
+
* discounts which have been prorated (proportionally distributed) amongst the items of each OrderLine.
|
|
1715
1761
|
* To get a total of all OrderLines which does not account for prorated discounts, use the
|
|
1716
1762
|
* sum of `OrderLine.discountedLinePrice` values.
|
|
1717
1763
|
*/
|
|
1718
|
-
subTotal: Scalars['
|
|
1764
|
+
subTotal: Scalars['Money'];
|
|
1719
1765
|
/** Same as subTotal, but inclusive of tax */
|
|
1720
|
-
subTotalWithTax: Scalars['
|
|
1766
|
+
subTotalWithTax: Scalars['Money'];
|
|
1721
1767
|
/**
|
|
1722
1768
|
* Surcharges are arbitrary modifications to the Order total which are neither
|
|
1723
1769
|
* ProductVariants nor discounts resulting from applied Promotions. For example,
|
|
@@ -1728,16 +1774,17 @@ export declare type Order = Node & {
|
|
|
1728
1774
|
/** A summary of the taxes being applied to this Order */
|
|
1729
1775
|
taxSummary: Array<OrderTaxSummary>;
|
|
1730
1776
|
/** Equal to subTotal plus shipping */
|
|
1731
|
-
total: Scalars['
|
|
1777
|
+
total: Scalars['Money'];
|
|
1732
1778
|
totalQuantity: Scalars['Int'];
|
|
1733
1779
|
/** The final payable amount. Equal to subTotalWithTax plus shippingWithTax */
|
|
1734
|
-
totalWithTax: Scalars['
|
|
1780
|
+
totalWithTax: Scalars['Money'];
|
|
1781
|
+
type: OrderType;
|
|
1735
1782
|
updatedAt: Scalars['DateTime'];
|
|
1736
1783
|
};
|
|
1737
|
-
export
|
|
1784
|
+
export type OrderHistoryArgs = {
|
|
1738
1785
|
options?: InputMaybe<HistoryEntryListOptions>;
|
|
1739
1786
|
};
|
|
1740
|
-
export
|
|
1787
|
+
export type OrderAddress = {
|
|
1741
1788
|
__typename?: 'OrderAddress';
|
|
1742
1789
|
city?: Maybe<Scalars['String']>;
|
|
1743
1790
|
company?: Maybe<Scalars['String']>;
|
|
@@ -1751,7 +1798,7 @@ export declare type OrderAddress = {
|
|
|
1751
1798
|
streetLine1?: Maybe<Scalars['String']>;
|
|
1752
1799
|
streetLine2?: Maybe<Scalars['String']>;
|
|
1753
1800
|
};
|
|
1754
|
-
export
|
|
1801
|
+
export type OrderFilterParameter = {
|
|
1755
1802
|
active?: InputMaybe<BooleanOperators>;
|
|
1756
1803
|
code?: InputMaybe<StringOperators>;
|
|
1757
1804
|
createdAt?: InputMaybe<DateOperators>;
|
|
@@ -1766,59 +1813,24 @@ export declare type OrderFilterParameter = {
|
|
|
1766
1813
|
total?: InputMaybe<NumberOperators>;
|
|
1767
1814
|
totalQuantity?: InputMaybe<NumberOperators>;
|
|
1768
1815
|
totalWithTax?: InputMaybe<NumberOperators>;
|
|
1816
|
+
type?: InputMaybe<StringOperators>;
|
|
1769
1817
|
updatedAt?: InputMaybe<DateOperators>;
|
|
1770
1818
|
};
|
|
1771
|
-
export declare type OrderItem = Node & {
|
|
1772
|
-
__typename?: 'OrderItem';
|
|
1773
|
-
adjustments: Array<Adjustment>;
|
|
1774
|
-
cancelled: Scalars['Boolean'];
|
|
1775
|
-
createdAt: Scalars['DateTime'];
|
|
1776
|
-
/**
|
|
1777
|
-
* The price of a single unit including discounts, excluding tax.
|
|
1778
|
-
*
|
|
1779
|
-
* If Order-level discounts have been applied, this will not be the
|
|
1780
|
-
* actual taxable unit price (see `proratedUnitPrice`), but is generally the
|
|
1781
|
-
* correct price to display to customers to avoid confusion
|
|
1782
|
-
* about the internal handling of distributed Order-level discounts.
|
|
1783
|
-
*/
|
|
1784
|
-
discountedUnitPrice: Scalars['Int'];
|
|
1785
|
-
/** The price of a single unit including discounts and tax */
|
|
1786
|
-
discountedUnitPriceWithTax: Scalars['Int'];
|
|
1787
|
-
fulfillment?: Maybe<Fulfillment>;
|
|
1788
|
-
id: Scalars['ID'];
|
|
1789
|
-
/**
|
|
1790
|
-
* The actual unit price, taking into account both item discounts _and_ prorated (proportionally-distributed)
|
|
1791
|
-
* Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax
|
|
1792
|
-
* and refund calculations.
|
|
1793
|
-
*/
|
|
1794
|
-
proratedUnitPrice: Scalars['Int'];
|
|
1795
|
-
/** The proratedUnitPrice including tax */
|
|
1796
|
-
proratedUnitPriceWithTax: Scalars['Int'];
|
|
1797
|
-
refundId?: Maybe<Scalars['ID']>;
|
|
1798
|
-
taxLines: Array<TaxLine>;
|
|
1799
|
-
taxRate: Scalars['Float'];
|
|
1800
|
-
/** The price of a single unit, excluding tax and discounts */
|
|
1801
|
-
unitPrice: Scalars['Int'];
|
|
1802
|
-
/** The price of a single unit, including tax but excluding discounts */
|
|
1803
|
-
unitPriceWithTax: Scalars['Int'];
|
|
1804
|
-
unitTax: Scalars['Int'];
|
|
1805
|
-
updatedAt: Scalars['DateTime'];
|
|
1806
|
-
};
|
|
1807
1819
|
/** Returned when the maximum order size limit has been reached. */
|
|
1808
|
-
export
|
|
1820
|
+
export type OrderLimitError = ErrorResult & {
|
|
1809
1821
|
__typename?: 'OrderLimitError';
|
|
1810
1822
|
errorCode: ErrorCode;
|
|
1811
1823
|
maxItems: Scalars['Int'];
|
|
1812
1824
|
message: Scalars['String'];
|
|
1813
1825
|
};
|
|
1814
|
-
export
|
|
1826
|
+
export type OrderLine = Node & {
|
|
1815
1827
|
__typename?: 'OrderLine';
|
|
1816
1828
|
createdAt: Scalars['DateTime'];
|
|
1817
1829
|
customFields?: Maybe<Scalars['JSON']>;
|
|
1818
1830
|
/** The price of the line including discounts, excluding tax */
|
|
1819
|
-
discountedLinePrice: Scalars['
|
|
1831
|
+
discountedLinePrice: Scalars['Money'];
|
|
1820
1832
|
/** The price of the line including discounts and tax */
|
|
1821
|
-
discountedLinePriceWithTax: Scalars['
|
|
1833
|
+
discountedLinePriceWithTax: Scalars['Money'];
|
|
1822
1834
|
/**
|
|
1823
1835
|
* The price of a single unit including discounts, excluding tax.
|
|
1824
1836
|
*
|
|
@@ -1827,56 +1839,58 @@ export declare type OrderLine = Node & {
|
|
|
1827
1839
|
* correct price to display to customers to avoid confusion
|
|
1828
1840
|
* about the internal handling of distributed Order-level discounts.
|
|
1829
1841
|
*/
|
|
1830
|
-
discountedUnitPrice: Scalars['
|
|
1842
|
+
discountedUnitPrice: Scalars['Money'];
|
|
1831
1843
|
/** The price of a single unit including discounts and tax */
|
|
1832
|
-
discountedUnitPriceWithTax: Scalars['
|
|
1844
|
+
discountedUnitPriceWithTax: Scalars['Money'];
|
|
1833
1845
|
discounts: Array<Discount>;
|
|
1834
1846
|
featuredAsset?: Maybe<Asset>;
|
|
1847
|
+
fulfillmentLines?: Maybe<Array<FulfillmentLine>>;
|
|
1835
1848
|
id: Scalars['ID'];
|
|
1836
|
-
items: Array<OrderItem>;
|
|
1837
1849
|
/** The total price of the line excluding tax and discounts. */
|
|
1838
|
-
linePrice: Scalars['
|
|
1850
|
+
linePrice: Scalars['Money'];
|
|
1839
1851
|
/** The total price of the line including tax but excluding discounts. */
|
|
1840
|
-
linePriceWithTax: Scalars['
|
|
1852
|
+
linePriceWithTax: Scalars['Money'];
|
|
1841
1853
|
/** The total tax on this line */
|
|
1842
|
-
lineTax: Scalars['
|
|
1854
|
+
lineTax: Scalars['Money'];
|
|
1843
1855
|
order: Order;
|
|
1856
|
+
/** The quantity at the time the Order was placed */
|
|
1857
|
+
orderPlacedQuantity: Scalars['Int'];
|
|
1844
1858
|
productVariant: ProductVariant;
|
|
1845
1859
|
/**
|
|
1846
1860
|
* The actual line price, taking into account both item discounts _and_ prorated (proportionally-distributed)
|
|
1847
1861
|
* Order-level discounts. This value is the true economic value of the OrderLine, and is used in tax
|
|
1848
1862
|
* and refund calculations.
|
|
1849
1863
|
*/
|
|
1850
|
-
proratedLinePrice: Scalars['
|
|
1864
|
+
proratedLinePrice: Scalars['Money'];
|
|
1851
1865
|
/** The proratedLinePrice including tax */
|
|
1852
|
-
proratedLinePriceWithTax: Scalars['
|
|
1866
|
+
proratedLinePriceWithTax: Scalars['Money'];
|
|
1853
1867
|
/**
|
|
1854
1868
|
* The actual unit price, taking into account both item discounts _and_ prorated (proportionally-distributed)
|
|
1855
1869
|
* Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax
|
|
1856
1870
|
* and refund calculations.
|
|
1857
1871
|
*/
|
|
1858
|
-
proratedUnitPrice: Scalars['
|
|
1872
|
+
proratedUnitPrice: Scalars['Money'];
|
|
1859
1873
|
/** The proratedUnitPrice including tax */
|
|
1860
|
-
proratedUnitPriceWithTax: Scalars['
|
|
1874
|
+
proratedUnitPriceWithTax: Scalars['Money'];
|
|
1861
1875
|
quantity: Scalars['Int'];
|
|
1862
1876
|
taxLines: Array<TaxLine>;
|
|
1863
1877
|
taxRate: Scalars['Float'];
|
|
1864
1878
|
/** The price of a single unit, excluding tax and discounts */
|
|
1865
|
-
unitPrice: Scalars['
|
|
1879
|
+
unitPrice: Scalars['Money'];
|
|
1866
1880
|
/** Non-zero if the unitPrice has changed since it was initially added to Order */
|
|
1867
|
-
unitPriceChangeSinceAdded: Scalars['
|
|
1881
|
+
unitPriceChangeSinceAdded: Scalars['Money'];
|
|
1868
1882
|
/** The price of a single unit, including tax but excluding discounts */
|
|
1869
|
-
unitPriceWithTax: Scalars['
|
|
1883
|
+
unitPriceWithTax: Scalars['Money'];
|
|
1870
1884
|
/** Non-zero if the unitPriceWithTax has changed since it was initially added to Order */
|
|
1871
|
-
unitPriceWithTaxChangeSinceAdded: Scalars['
|
|
1885
|
+
unitPriceWithTaxChangeSinceAdded: Scalars['Money'];
|
|
1872
1886
|
updatedAt: Scalars['DateTime'];
|
|
1873
1887
|
};
|
|
1874
|
-
export
|
|
1888
|
+
export type OrderList = PaginatedList & {
|
|
1875
1889
|
__typename?: 'OrderList';
|
|
1876
1890
|
items: Array<Order>;
|
|
1877
1891
|
totalItems: Scalars['Int'];
|
|
1878
1892
|
};
|
|
1879
|
-
export
|
|
1893
|
+
export type OrderListOptions = {
|
|
1880
1894
|
/** Allows the results to be filtered */
|
|
1881
1895
|
filter?: InputMaybe<OrderFilterParameter>;
|
|
1882
1896
|
/** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */
|
|
@@ -1889,18 +1903,18 @@ export declare type OrderListOptions = {
|
|
|
1889
1903
|
take?: InputMaybe<Scalars['Int']>;
|
|
1890
1904
|
};
|
|
1891
1905
|
/** Returned when attempting to modify the contents of an Order that is not in the `AddingItems` state. */
|
|
1892
|
-
export
|
|
1906
|
+
export type OrderModificationError = ErrorResult & {
|
|
1893
1907
|
__typename?: 'OrderModificationError';
|
|
1894
1908
|
errorCode: ErrorCode;
|
|
1895
1909
|
message: Scalars['String'];
|
|
1896
1910
|
};
|
|
1897
1911
|
/** Returned when attempting to add a Payment to an Order that is not in the `ArrangingPayment` state. */
|
|
1898
|
-
export
|
|
1912
|
+
export type OrderPaymentStateError = ErrorResult & {
|
|
1899
1913
|
__typename?: 'OrderPaymentStateError';
|
|
1900
1914
|
errorCode: ErrorCode;
|
|
1901
1915
|
message: Scalars['String'];
|
|
1902
1916
|
};
|
|
1903
|
-
export
|
|
1917
|
+
export type OrderSortParameter = {
|
|
1904
1918
|
code?: InputMaybe<SortOrder>;
|
|
1905
1919
|
createdAt?: InputMaybe<SortOrder>;
|
|
1906
1920
|
id?: InputMaybe<SortOrder>;
|
|
@@ -1916,7 +1930,7 @@ export declare type OrderSortParameter = {
|
|
|
1916
1930
|
updatedAt?: InputMaybe<SortOrder>;
|
|
1917
1931
|
};
|
|
1918
1932
|
/** Returned if there is an error in transitioning the Order state */
|
|
1919
|
-
export
|
|
1933
|
+
export type OrderStateTransitionError = ErrorResult & {
|
|
1920
1934
|
__typename?: 'OrderStateTransitionError';
|
|
1921
1935
|
errorCode: ErrorCode;
|
|
1922
1936
|
fromState: Scalars['String'];
|
|
@@ -1928,23 +1942,28 @@ export declare type OrderStateTransitionError = ErrorResult & {
|
|
|
1928
1942
|
* A summary of the taxes being applied to this order, grouped
|
|
1929
1943
|
* by taxRate.
|
|
1930
1944
|
*/
|
|
1931
|
-
export
|
|
1945
|
+
export type OrderTaxSummary = {
|
|
1932
1946
|
__typename?: 'OrderTaxSummary';
|
|
1933
1947
|
/** A description of this tax */
|
|
1934
1948
|
description: Scalars['String'];
|
|
1935
|
-
/** The total net price
|
|
1936
|
-
taxBase: Scalars['
|
|
1949
|
+
/** The total net price of OrderLines to which this taxRate applies */
|
|
1950
|
+
taxBase: Scalars['Money'];
|
|
1937
1951
|
/** The taxRate as a percentage */
|
|
1938
1952
|
taxRate: Scalars['Float'];
|
|
1939
1953
|
/** The total tax being applied to the Order at this taxRate */
|
|
1940
|
-
taxTotal: Scalars['
|
|
1954
|
+
taxTotal: Scalars['Money'];
|
|
1941
1955
|
};
|
|
1942
|
-
export declare
|
|
1956
|
+
export declare enum OrderType {
|
|
1957
|
+
Aggregate = "Aggregate",
|
|
1958
|
+
Regular = "Regular",
|
|
1959
|
+
Seller = "Seller"
|
|
1960
|
+
}
|
|
1961
|
+
export type PaginatedList = {
|
|
1943
1962
|
items: Array<Node>;
|
|
1944
1963
|
totalItems: Scalars['Int'];
|
|
1945
1964
|
};
|
|
1946
1965
|
/** Returned when attempting to verify a customer account with a password, when a password has already been set. */
|
|
1947
|
-
export
|
|
1966
|
+
export type PasswordAlreadySetError = ErrorResult & {
|
|
1948
1967
|
__typename?: 'PasswordAlreadySetError';
|
|
1949
1968
|
errorCode: ErrorCode;
|
|
1950
1969
|
message: Scalars['String'];
|
|
@@ -1953,7 +1972,7 @@ export declare type PasswordAlreadySetError = ErrorResult & {
|
|
|
1953
1972
|
* Returned if the token used to reset a Customer's password is valid, but has
|
|
1954
1973
|
* expired according to the `verificationTokenDuration` setting in the AuthOptions.
|
|
1955
1974
|
*/
|
|
1956
|
-
export
|
|
1975
|
+
export type PasswordResetTokenExpiredError = ErrorResult & {
|
|
1957
1976
|
__typename?: 'PasswordResetTokenExpiredError';
|
|
1958
1977
|
errorCode: ErrorCode;
|
|
1959
1978
|
message: Scalars['String'];
|
|
@@ -1962,21 +1981,21 @@ export declare type PasswordResetTokenExpiredError = ErrorResult & {
|
|
|
1962
1981
|
* Returned if the token used to reset a Customer's password is either
|
|
1963
1982
|
* invalid or does not match any expected tokens.
|
|
1964
1983
|
*/
|
|
1965
|
-
export
|
|
1984
|
+
export type PasswordResetTokenInvalidError = ErrorResult & {
|
|
1966
1985
|
__typename?: 'PasswordResetTokenInvalidError';
|
|
1967
1986
|
errorCode: ErrorCode;
|
|
1968
1987
|
message: Scalars['String'];
|
|
1969
1988
|
};
|
|
1970
1989
|
/** Returned when attempting to register or verify a customer account where the given password fails password validation. */
|
|
1971
|
-
export
|
|
1990
|
+
export type PasswordValidationError = ErrorResult & {
|
|
1972
1991
|
__typename?: 'PasswordValidationError';
|
|
1973
1992
|
errorCode: ErrorCode;
|
|
1974
1993
|
message: Scalars['String'];
|
|
1975
1994
|
validationErrorMessage: Scalars['String'];
|
|
1976
1995
|
};
|
|
1977
|
-
export
|
|
1996
|
+
export type Payment = Node & {
|
|
1978
1997
|
__typename?: 'Payment';
|
|
1979
|
-
amount: Scalars['
|
|
1998
|
+
amount: Scalars['Money'];
|
|
1980
1999
|
createdAt: Scalars['DateTime'];
|
|
1981
2000
|
errorMessage?: Maybe<Scalars['String']>;
|
|
1982
2001
|
id: Scalars['ID'];
|
|
@@ -1988,21 +2007,21 @@ export declare type Payment = Node & {
|
|
|
1988
2007
|
updatedAt: Scalars['DateTime'];
|
|
1989
2008
|
};
|
|
1990
2009
|
/** Returned when a Payment is declined by the payment provider. */
|
|
1991
|
-
export
|
|
2010
|
+
export type PaymentDeclinedError = ErrorResult & {
|
|
1992
2011
|
__typename?: 'PaymentDeclinedError';
|
|
1993
2012
|
errorCode: ErrorCode;
|
|
1994
2013
|
message: Scalars['String'];
|
|
1995
2014
|
paymentErrorMessage: Scalars['String'];
|
|
1996
2015
|
};
|
|
1997
2016
|
/** Returned when a Payment fails due to an error. */
|
|
1998
|
-
export
|
|
2017
|
+
export type PaymentFailedError = ErrorResult & {
|
|
1999
2018
|
__typename?: 'PaymentFailedError';
|
|
2000
2019
|
errorCode: ErrorCode;
|
|
2001
2020
|
message: Scalars['String'];
|
|
2002
2021
|
paymentErrorMessage: Scalars['String'];
|
|
2003
2022
|
};
|
|
2004
2023
|
/** Passed as input to the `addPaymentToOrder` mutation. */
|
|
2005
|
-
export
|
|
2024
|
+
export type PaymentInput = {
|
|
2006
2025
|
/**
|
|
2007
2026
|
* This field should contain arbitrary data passed to the specified PaymentMethodHandler's `createPayment()` method
|
|
2008
2027
|
* as the "metadata" argument. For example, it could contain an ID for the payment and other
|
|
@@ -2012,7 +2031,7 @@ export declare type PaymentInput = {
|
|
|
2012
2031
|
/** This field should correspond to the `code` property of a PaymentMethod. */
|
|
2013
2032
|
method: Scalars['String'];
|
|
2014
2033
|
};
|
|
2015
|
-
export
|
|
2034
|
+
export type PaymentMethod = Node & {
|
|
2016
2035
|
__typename?: 'PaymentMethod';
|
|
2017
2036
|
checker?: Maybe<ConfigurableOperation>;
|
|
2018
2037
|
code: Scalars['String'];
|
|
@@ -2023,9 +2042,10 @@ export declare type PaymentMethod = Node & {
|
|
|
2023
2042
|
handler: ConfigurableOperation;
|
|
2024
2043
|
id: Scalars['ID'];
|
|
2025
2044
|
name: Scalars['String'];
|
|
2045
|
+
translations: Array<PaymentMethodTranslation>;
|
|
2026
2046
|
updatedAt: Scalars['DateTime'];
|
|
2027
2047
|
};
|
|
2028
|
-
export
|
|
2048
|
+
export type PaymentMethodQuote = {
|
|
2029
2049
|
__typename?: 'PaymentMethodQuote';
|
|
2030
2050
|
code: Scalars['String'];
|
|
2031
2051
|
customFields?: Maybe<Scalars['JSON']>;
|
|
@@ -2035,6 +2055,15 @@ export declare type PaymentMethodQuote = {
|
|
|
2035
2055
|
isEligible: Scalars['Boolean'];
|
|
2036
2056
|
name: Scalars['String'];
|
|
2037
2057
|
};
|
|
2058
|
+
export type PaymentMethodTranslation = {
|
|
2059
|
+
__typename?: 'PaymentMethodTranslation';
|
|
2060
|
+
createdAt: Scalars['DateTime'];
|
|
2061
|
+
description: Scalars['String'];
|
|
2062
|
+
id: Scalars['ID'];
|
|
2063
|
+
languageCode: LanguageCode;
|
|
2064
|
+
name: Scalars['String'];
|
|
2065
|
+
updatedAt: Scalars['DateTime'];
|
|
2066
|
+
};
|
|
2038
2067
|
/**
|
|
2039
2068
|
* @description
|
|
2040
2069
|
* Permissions for administrators and customers. Used to control access to
|
|
@@ -2042,7 +2071,7 @@ export declare type PaymentMethodQuote = {
|
|
|
2042
2071
|
*
|
|
2043
2072
|
* ## Understanding Permission.Owner
|
|
2044
2073
|
*
|
|
2045
|
-
* `Permission.Owner` is a special permission which is used in some
|
|
2074
|
+
* `Permission.Owner` is a special permission which is used in some Vendure resolvers to indicate that that resolver should only
|
|
2046
2075
|
* be accessible to the "owner" of that resource.
|
|
2047
2076
|
*
|
|
2048
2077
|
* For example, the Shop API `activeCustomer` query resolver should only return the Customer object for the "owner" of that Customer, i.e.
|
|
@@ -2096,10 +2125,14 @@ export declare enum Permission {
|
|
|
2096
2125
|
CreateProduct = "CreateProduct",
|
|
2097
2126
|
/** Grants permission to create Promotion */
|
|
2098
2127
|
CreatePromotion = "CreatePromotion",
|
|
2128
|
+
/** Grants permission to create Seller */
|
|
2129
|
+
CreateSeller = "CreateSeller",
|
|
2099
2130
|
/** Grants permission to create PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */
|
|
2100
2131
|
CreateSettings = "CreateSettings",
|
|
2101
2132
|
/** Grants permission to create ShippingMethod */
|
|
2102
2133
|
CreateShippingMethod = "CreateShippingMethod",
|
|
2134
|
+
/** Grants permission to create StockLocation */
|
|
2135
|
+
CreateStockLocation = "CreateStockLocation",
|
|
2103
2136
|
/** Grants permission to create System */
|
|
2104
2137
|
CreateSystem = "CreateSystem",
|
|
2105
2138
|
/** Grants permission to create Tag */
|
|
@@ -2136,10 +2169,14 @@ export declare enum Permission {
|
|
|
2136
2169
|
DeleteProduct = "DeleteProduct",
|
|
2137
2170
|
/** Grants permission to delete Promotion */
|
|
2138
2171
|
DeletePromotion = "DeletePromotion",
|
|
2172
|
+
/** Grants permission to delete Seller */
|
|
2173
|
+
DeleteSeller = "DeleteSeller",
|
|
2139
2174
|
/** Grants permission to delete PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */
|
|
2140
2175
|
DeleteSettings = "DeleteSettings",
|
|
2141
2176
|
/** Grants permission to delete ShippingMethod */
|
|
2142
2177
|
DeleteShippingMethod = "DeleteShippingMethod",
|
|
2178
|
+
/** Grants permission to delete StockLocation */
|
|
2179
|
+
DeleteStockLocation = "DeleteStockLocation",
|
|
2143
2180
|
/** Grants permission to delete System */
|
|
2144
2181
|
DeleteSystem = "DeleteSystem",
|
|
2145
2182
|
/** Grants permission to delete Tag */
|
|
@@ -2180,10 +2217,14 @@ export declare enum Permission {
|
|
|
2180
2217
|
ReadProduct = "ReadProduct",
|
|
2181
2218
|
/** Grants permission to read Promotion */
|
|
2182
2219
|
ReadPromotion = "ReadPromotion",
|
|
2220
|
+
/** Grants permission to read Seller */
|
|
2221
|
+
ReadSeller = "ReadSeller",
|
|
2183
2222
|
/** Grants permission to read PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */
|
|
2184
2223
|
ReadSettings = "ReadSettings",
|
|
2185
2224
|
/** Grants permission to read ShippingMethod */
|
|
2186
2225
|
ReadShippingMethod = "ReadShippingMethod",
|
|
2226
|
+
/** Grants permission to read StockLocation */
|
|
2227
|
+
ReadStockLocation = "ReadStockLocation",
|
|
2187
2228
|
/** Grants permission to read System */
|
|
2188
2229
|
ReadSystem = "ReadSystem",
|
|
2189
2230
|
/** Grants permission to read Tag */
|
|
@@ -2224,10 +2265,14 @@ export declare enum Permission {
|
|
|
2224
2265
|
UpdateProduct = "UpdateProduct",
|
|
2225
2266
|
/** Grants permission to update Promotion */
|
|
2226
2267
|
UpdatePromotion = "UpdatePromotion",
|
|
2268
|
+
/** Grants permission to update Seller */
|
|
2269
|
+
UpdateSeller = "UpdateSeller",
|
|
2227
2270
|
/** Grants permission to update PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */
|
|
2228
2271
|
UpdateSettings = "UpdateSettings",
|
|
2229
2272
|
/** Grants permission to update ShippingMethod */
|
|
2230
2273
|
UpdateShippingMethod = "UpdateShippingMethod",
|
|
2274
|
+
/** Grants permission to update StockLocation */
|
|
2275
|
+
UpdateStockLocation = "UpdateStockLocation",
|
|
2231
2276
|
/** Grants permission to update System */
|
|
2232
2277
|
UpdateSystem = "UpdateSystem",
|
|
2233
2278
|
/** Grants permission to update Tag */
|
|
@@ -2240,12 +2285,12 @@ export declare enum Permission {
|
|
|
2240
2285
|
UpdateZone = "UpdateZone"
|
|
2241
2286
|
}
|
|
2242
2287
|
/** The price range where the result has more than one price */
|
|
2243
|
-
export
|
|
2288
|
+
export type PriceRange = {
|
|
2244
2289
|
__typename?: 'PriceRange';
|
|
2245
|
-
max: Scalars['
|
|
2246
|
-
min: Scalars['
|
|
2290
|
+
max: Scalars['Money'];
|
|
2291
|
+
min: Scalars['Money'];
|
|
2247
2292
|
};
|
|
2248
|
-
export
|
|
2293
|
+
export type Product = Node & {
|
|
2249
2294
|
__typename?: 'Product';
|
|
2250
2295
|
assets: Array<Asset>;
|
|
2251
2296
|
collections: Array<Collection>;
|
|
@@ -2266,10 +2311,10 @@ export declare type Product = Node & {
|
|
|
2266
2311
|
/** Returns all ProductVariants */
|
|
2267
2312
|
variants: Array<ProductVariant>;
|
|
2268
2313
|
};
|
|
2269
|
-
export
|
|
2314
|
+
export type ProductVariantListArgs = {
|
|
2270
2315
|
options?: InputMaybe<ProductVariantListOptions>;
|
|
2271
2316
|
};
|
|
2272
|
-
export
|
|
2317
|
+
export type ProductFilterParameter = {
|
|
2273
2318
|
createdAt?: InputMaybe<DateOperators>;
|
|
2274
2319
|
description?: InputMaybe<StringOperators>;
|
|
2275
2320
|
id?: InputMaybe<IdOperators>;
|
|
@@ -2278,12 +2323,12 @@ export declare type ProductFilterParameter = {
|
|
|
2278
2323
|
slug?: InputMaybe<StringOperators>;
|
|
2279
2324
|
updatedAt?: InputMaybe<DateOperators>;
|
|
2280
2325
|
};
|
|
2281
|
-
export
|
|
2326
|
+
export type ProductList = PaginatedList & {
|
|
2282
2327
|
__typename?: 'ProductList';
|
|
2283
2328
|
items: Array<Product>;
|
|
2284
2329
|
totalItems: Scalars['Int'];
|
|
2285
2330
|
};
|
|
2286
|
-
export
|
|
2331
|
+
export type ProductListOptions = {
|
|
2287
2332
|
/** Allows the results to be filtered */
|
|
2288
2333
|
filter?: InputMaybe<ProductFilterParameter>;
|
|
2289
2334
|
/** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */
|
|
@@ -2295,7 +2340,7 @@ export declare type ProductListOptions = {
|
|
|
2295
2340
|
/** Takes n results, for use in pagination */
|
|
2296
2341
|
take?: InputMaybe<Scalars['Int']>;
|
|
2297
2342
|
};
|
|
2298
|
-
export
|
|
2343
|
+
export type ProductOption = Node & {
|
|
2299
2344
|
__typename?: 'ProductOption';
|
|
2300
2345
|
code: Scalars['String'];
|
|
2301
2346
|
createdAt: Scalars['DateTime'];
|
|
@@ -2308,7 +2353,7 @@ export declare type ProductOption = Node & {
|
|
|
2308
2353
|
translations: Array<ProductOptionTranslation>;
|
|
2309
2354
|
updatedAt: Scalars['DateTime'];
|
|
2310
2355
|
};
|
|
2311
|
-
export
|
|
2356
|
+
export type ProductOptionGroup = Node & {
|
|
2312
2357
|
__typename?: 'ProductOptionGroup';
|
|
2313
2358
|
code: Scalars['String'];
|
|
2314
2359
|
createdAt: Scalars['DateTime'];
|
|
@@ -2320,7 +2365,7 @@ export declare type ProductOptionGroup = Node & {
|
|
|
2320
2365
|
translations: Array<ProductOptionGroupTranslation>;
|
|
2321
2366
|
updatedAt: Scalars['DateTime'];
|
|
2322
2367
|
};
|
|
2323
|
-
export
|
|
2368
|
+
export type ProductOptionGroupTranslation = {
|
|
2324
2369
|
__typename?: 'ProductOptionGroupTranslation';
|
|
2325
2370
|
createdAt: Scalars['DateTime'];
|
|
2326
2371
|
id: Scalars['ID'];
|
|
@@ -2328,7 +2373,7 @@ export declare type ProductOptionGroupTranslation = {
|
|
|
2328
2373
|
name: Scalars['String'];
|
|
2329
2374
|
updatedAt: Scalars['DateTime'];
|
|
2330
2375
|
};
|
|
2331
|
-
export
|
|
2376
|
+
export type ProductOptionTranslation = {
|
|
2332
2377
|
__typename?: 'ProductOptionTranslation';
|
|
2333
2378
|
createdAt: Scalars['DateTime'];
|
|
2334
2379
|
id: Scalars['ID'];
|
|
@@ -2336,7 +2381,7 @@ export declare type ProductOptionTranslation = {
|
|
|
2336
2381
|
name: Scalars['String'];
|
|
2337
2382
|
updatedAt: Scalars['DateTime'];
|
|
2338
2383
|
};
|
|
2339
|
-
export
|
|
2384
|
+
export type ProductSortParameter = {
|
|
2340
2385
|
createdAt?: InputMaybe<SortOrder>;
|
|
2341
2386
|
description?: InputMaybe<SortOrder>;
|
|
2342
2387
|
id?: InputMaybe<SortOrder>;
|
|
@@ -2344,7 +2389,7 @@ export declare type ProductSortParameter = {
|
|
|
2344
2389
|
slug?: InputMaybe<SortOrder>;
|
|
2345
2390
|
updatedAt?: InputMaybe<SortOrder>;
|
|
2346
2391
|
};
|
|
2347
|
-
export
|
|
2392
|
+
export type ProductTranslation = {
|
|
2348
2393
|
__typename?: 'ProductTranslation';
|
|
2349
2394
|
createdAt: Scalars['DateTime'];
|
|
2350
2395
|
description: Scalars['String'];
|
|
@@ -2354,7 +2399,7 @@ export declare type ProductTranslation = {
|
|
|
2354
2399
|
slug: Scalars['String'];
|
|
2355
2400
|
updatedAt: Scalars['DateTime'];
|
|
2356
2401
|
};
|
|
2357
|
-
export
|
|
2402
|
+
export type ProductVariant = Node & {
|
|
2358
2403
|
__typename?: 'ProductVariant';
|
|
2359
2404
|
assets: Array<Asset>;
|
|
2360
2405
|
createdAt: Scalars['DateTime'];
|
|
@@ -2366,8 +2411,8 @@ export declare type ProductVariant = Node & {
|
|
|
2366
2411
|
languageCode: LanguageCode;
|
|
2367
2412
|
name: Scalars['String'];
|
|
2368
2413
|
options: Array<ProductOption>;
|
|
2369
|
-
price: Scalars['
|
|
2370
|
-
priceWithTax: Scalars['
|
|
2414
|
+
price: Scalars['Money'];
|
|
2415
|
+
priceWithTax: Scalars['Money'];
|
|
2371
2416
|
product: Product;
|
|
2372
2417
|
productId: Scalars['ID'];
|
|
2373
2418
|
sku: Scalars['String'];
|
|
@@ -2377,7 +2422,7 @@ export declare type ProductVariant = Node & {
|
|
|
2377
2422
|
translations: Array<ProductVariantTranslation>;
|
|
2378
2423
|
updatedAt: Scalars['DateTime'];
|
|
2379
2424
|
};
|
|
2380
|
-
export
|
|
2425
|
+
export type ProductVariantFilterParameter = {
|
|
2381
2426
|
createdAt?: InputMaybe<DateOperators>;
|
|
2382
2427
|
currencyCode?: InputMaybe<StringOperators>;
|
|
2383
2428
|
id?: InputMaybe<IdOperators>;
|
|
@@ -2390,12 +2435,12 @@ export declare type ProductVariantFilterParameter = {
|
|
|
2390
2435
|
stockLevel?: InputMaybe<StringOperators>;
|
|
2391
2436
|
updatedAt?: InputMaybe<DateOperators>;
|
|
2392
2437
|
};
|
|
2393
|
-
export
|
|
2438
|
+
export type ProductVariantList = PaginatedList & {
|
|
2394
2439
|
__typename?: 'ProductVariantList';
|
|
2395
2440
|
items: Array<ProductVariant>;
|
|
2396
2441
|
totalItems: Scalars['Int'];
|
|
2397
2442
|
};
|
|
2398
|
-
export
|
|
2443
|
+
export type ProductVariantListOptions = {
|
|
2399
2444
|
/** Allows the results to be filtered */
|
|
2400
2445
|
filter?: InputMaybe<ProductVariantFilterParameter>;
|
|
2401
2446
|
/** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */
|
|
@@ -2407,7 +2452,7 @@ export declare type ProductVariantListOptions = {
|
|
|
2407
2452
|
/** Takes n results, for use in pagination */
|
|
2408
2453
|
take?: InputMaybe<Scalars['Int']>;
|
|
2409
2454
|
};
|
|
2410
|
-
export
|
|
2455
|
+
export type ProductVariantSortParameter = {
|
|
2411
2456
|
createdAt?: InputMaybe<SortOrder>;
|
|
2412
2457
|
id?: InputMaybe<SortOrder>;
|
|
2413
2458
|
name?: InputMaybe<SortOrder>;
|
|
@@ -2418,7 +2463,7 @@ export declare type ProductVariantSortParameter = {
|
|
|
2418
2463
|
stockLevel?: InputMaybe<SortOrder>;
|
|
2419
2464
|
updatedAt?: InputMaybe<SortOrder>;
|
|
2420
2465
|
};
|
|
2421
|
-
export
|
|
2466
|
+
export type ProductVariantTranslation = {
|
|
2422
2467
|
__typename?: 'ProductVariantTranslation';
|
|
2423
2468
|
createdAt: Scalars['DateTime'];
|
|
2424
2469
|
id: Scalars['ID'];
|
|
@@ -2426,27 +2471,58 @@ export declare type ProductVariantTranslation = {
|
|
|
2426
2471
|
name: Scalars['String'];
|
|
2427
2472
|
updatedAt: Scalars['DateTime'];
|
|
2428
2473
|
};
|
|
2429
|
-
export
|
|
2474
|
+
export type Promotion = Node & {
|
|
2430
2475
|
__typename?: 'Promotion';
|
|
2431
2476
|
actions: Array<ConfigurableOperation>;
|
|
2432
2477
|
conditions: Array<ConfigurableOperation>;
|
|
2433
2478
|
couponCode?: Maybe<Scalars['String']>;
|
|
2434
2479
|
createdAt: Scalars['DateTime'];
|
|
2435
2480
|
customFields?: Maybe<Scalars['JSON']>;
|
|
2481
|
+
description: Scalars['String'];
|
|
2436
2482
|
enabled: Scalars['Boolean'];
|
|
2437
2483
|
endsAt?: Maybe<Scalars['DateTime']>;
|
|
2438
2484
|
id: Scalars['ID'];
|
|
2439
2485
|
name: Scalars['String'];
|
|
2440
2486
|
perCustomerUsageLimit?: Maybe<Scalars['Int']>;
|
|
2441
2487
|
startsAt?: Maybe<Scalars['DateTime']>;
|
|
2488
|
+
translations: Array<PromotionTranslation>;
|
|
2442
2489
|
updatedAt: Scalars['DateTime'];
|
|
2443
2490
|
};
|
|
2444
|
-
export
|
|
2491
|
+
export type PromotionList = PaginatedList & {
|
|
2445
2492
|
__typename?: 'PromotionList';
|
|
2446
2493
|
items: Array<Promotion>;
|
|
2447
2494
|
totalItems: Scalars['Int'];
|
|
2448
2495
|
};
|
|
2449
|
-
export
|
|
2496
|
+
export type PromotionTranslation = {
|
|
2497
|
+
__typename?: 'PromotionTranslation';
|
|
2498
|
+
createdAt: Scalars['DateTime'];
|
|
2499
|
+
description: Scalars['String'];
|
|
2500
|
+
id: Scalars['ID'];
|
|
2501
|
+
languageCode: LanguageCode;
|
|
2502
|
+
name: Scalars['String'];
|
|
2503
|
+
updatedAt: Scalars['DateTime'];
|
|
2504
|
+
};
|
|
2505
|
+
export type Province = Node & Region & {
|
|
2506
|
+
__typename?: 'Province';
|
|
2507
|
+
code: Scalars['String'];
|
|
2508
|
+
createdAt: Scalars['DateTime'];
|
|
2509
|
+
customFields?: Maybe<Scalars['JSON']>;
|
|
2510
|
+
enabled: Scalars['Boolean'];
|
|
2511
|
+
id: Scalars['ID'];
|
|
2512
|
+
languageCode: LanguageCode;
|
|
2513
|
+
name: Scalars['String'];
|
|
2514
|
+
parent?: Maybe<Region>;
|
|
2515
|
+
parentId?: Maybe<Scalars['ID']>;
|
|
2516
|
+
translations: Array<RegionTranslation>;
|
|
2517
|
+
type: Scalars['String'];
|
|
2518
|
+
updatedAt: Scalars['DateTime'];
|
|
2519
|
+
};
|
|
2520
|
+
export type ProvinceList = PaginatedList & {
|
|
2521
|
+
__typename?: 'ProvinceList';
|
|
2522
|
+
items: Array<Province>;
|
|
2523
|
+
totalItems: Scalars['Int'];
|
|
2524
|
+
};
|
|
2525
|
+
export type Query = {
|
|
2450
2526
|
__typename?: 'Query';
|
|
2451
2527
|
/** The active Channel */
|
|
2452
2528
|
activeChannel: Channel;
|
|
@@ -2495,55 +2571,84 @@ export declare type Query = {
|
|
|
2495
2571
|
/** Search Products based on the criteria set by the `SearchInput` */
|
|
2496
2572
|
search: SearchResponse;
|
|
2497
2573
|
};
|
|
2498
|
-
export
|
|
2574
|
+
export type QueryCollectionArgs = {
|
|
2499
2575
|
id?: InputMaybe<Scalars['ID']>;
|
|
2500
2576
|
slug?: InputMaybe<Scalars['String']>;
|
|
2501
2577
|
};
|
|
2502
|
-
export
|
|
2578
|
+
export type QueryCollectionsArgs = {
|
|
2503
2579
|
options?: InputMaybe<CollectionListOptions>;
|
|
2504
2580
|
};
|
|
2505
|
-
export
|
|
2581
|
+
export type QueryFacetArgs = {
|
|
2506
2582
|
id: Scalars['ID'];
|
|
2507
2583
|
};
|
|
2508
|
-
export
|
|
2584
|
+
export type QueryFacetsArgs = {
|
|
2509
2585
|
options?: InputMaybe<FacetListOptions>;
|
|
2510
2586
|
};
|
|
2511
|
-
export
|
|
2587
|
+
export type QueryOrderArgs = {
|
|
2512
2588
|
id: Scalars['ID'];
|
|
2513
2589
|
};
|
|
2514
|
-
export
|
|
2590
|
+
export type QueryOrderByCodeArgs = {
|
|
2515
2591
|
code: Scalars['String'];
|
|
2516
2592
|
};
|
|
2517
|
-
export
|
|
2593
|
+
export type QueryProductArgs = {
|
|
2518
2594
|
id?: InputMaybe<Scalars['ID']>;
|
|
2519
2595
|
slug?: InputMaybe<Scalars['String']>;
|
|
2520
2596
|
};
|
|
2521
|
-
export
|
|
2597
|
+
export type QueryProductsArgs = {
|
|
2522
2598
|
options?: InputMaybe<ProductListOptions>;
|
|
2523
2599
|
};
|
|
2524
|
-
export
|
|
2600
|
+
export type QuerySearchArgs = {
|
|
2525
2601
|
input: SearchInput;
|
|
2526
2602
|
};
|
|
2527
|
-
export
|
|
2528
|
-
export
|
|
2603
|
+
export type RefreshCustomerVerificationResult = NativeAuthStrategyError | Success;
|
|
2604
|
+
export type Refund = Node & {
|
|
2529
2605
|
__typename?: 'Refund';
|
|
2530
|
-
adjustment: Scalars['
|
|
2606
|
+
adjustment: Scalars['Money'];
|
|
2531
2607
|
createdAt: Scalars['DateTime'];
|
|
2532
2608
|
id: Scalars['ID'];
|
|
2533
|
-
items: Scalars['
|
|
2609
|
+
items: Scalars['Money'];
|
|
2610
|
+
lines: Array<RefundLine>;
|
|
2534
2611
|
metadata?: Maybe<Scalars['JSON']>;
|
|
2535
2612
|
method?: Maybe<Scalars['String']>;
|
|
2536
|
-
orderItems: Array<OrderItem>;
|
|
2537
2613
|
paymentId: Scalars['ID'];
|
|
2538
2614
|
reason?: Maybe<Scalars['String']>;
|
|
2539
|
-
shipping: Scalars['
|
|
2615
|
+
shipping: Scalars['Money'];
|
|
2540
2616
|
state: Scalars['String'];
|
|
2541
|
-
total: Scalars['
|
|
2617
|
+
total: Scalars['Money'];
|
|
2542
2618
|
transactionId?: Maybe<Scalars['String']>;
|
|
2543
2619
|
updatedAt: Scalars['DateTime'];
|
|
2544
2620
|
};
|
|
2545
|
-
export
|
|
2546
|
-
|
|
2621
|
+
export type RefundLine = {
|
|
2622
|
+
__typename?: 'RefundLine';
|
|
2623
|
+
orderLine: OrderLine;
|
|
2624
|
+
orderLineId: Scalars['ID'];
|
|
2625
|
+
quantity: Scalars['Int'];
|
|
2626
|
+
refund: Refund;
|
|
2627
|
+
refundId: Scalars['ID'];
|
|
2628
|
+
};
|
|
2629
|
+
export type Region = {
|
|
2630
|
+
code: Scalars['String'];
|
|
2631
|
+
createdAt: Scalars['DateTime'];
|
|
2632
|
+
enabled: Scalars['Boolean'];
|
|
2633
|
+
id: Scalars['ID'];
|
|
2634
|
+
languageCode: LanguageCode;
|
|
2635
|
+
name: Scalars['String'];
|
|
2636
|
+
parent?: Maybe<Region>;
|
|
2637
|
+
parentId?: Maybe<Scalars['ID']>;
|
|
2638
|
+
translations: Array<RegionTranslation>;
|
|
2639
|
+
type: Scalars['String'];
|
|
2640
|
+
updatedAt: Scalars['DateTime'];
|
|
2641
|
+
};
|
|
2642
|
+
export type RegionTranslation = {
|
|
2643
|
+
__typename?: 'RegionTranslation';
|
|
2644
|
+
createdAt: Scalars['DateTime'];
|
|
2645
|
+
id: Scalars['ID'];
|
|
2646
|
+
languageCode: LanguageCode;
|
|
2647
|
+
name: Scalars['String'];
|
|
2648
|
+
updatedAt: Scalars['DateTime'];
|
|
2649
|
+
};
|
|
2650
|
+
export type RegisterCustomerAccountResult = MissingPasswordError | NativeAuthStrategyError | PasswordValidationError | Success;
|
|
2651
|
+
export type RegisterCustomerInput = {
|
|
2547
2652
|
emailAddress: Scalars['String'];
|
|
2548
2653
|
firstName?: InputMaybe<Scalars['String']>;
|
|
2549
2654
|
lastName?: InputMaybe<Scalars['String']>;
|
|
@@ -2551,7 +2656,7 @@ export declare type RegisterCustomerInput = {
|
|
|
2551
2656
|
phoneNumber?: InputMaybe<Scalars['String']>;
|
|
2552
2657
|
title?: InputMaybe<Scalars['String']>;
|
|
2553
2658
|
};
|
|
2554
|
-
export
|
|
2659
|
+
export type RelationCustomFieldConfig = CustomField & {
|
|
2555
2660
|
__typename?: 'RelationCustomFieldConfig';
|
|
2556
2661
|
description?: Maybe<Array<LocalizedString>>;
|
|
2557
2662
|
entity: Scalars['String'];
|
|
@@ -2565,11 +2670,11 @@ export declare type RelationCustomFieldConfig = CustomField & {
|
|
|
2565
2670
|
type: Scalars['String'];
|
|
2566
2671
|
ui?: Maybe<Scalars['JSON']>;
|
|
2567
2672
|
};
|
|
2568
|
-
export
|
|
2569
|
-
export
|
|
2570
|
-
export
|
|
2571
|
-
export
|
|
2572
|
-
export
|
|
2673
|
+
export type RemoveOrderItemsResult = Order | OrderModificationError;
|
|
2674
|
+
export type RequestPasswordResetResult = NativeAuthStrategyError | Success;
|
|
2675
|
+
export type RequestUpdateCustomerEmailAddressResult = EmailAddressConflictError | InvalidCredentialsError | NativeAuthStrategyError | Success;
|
|
2676
|
+
export type ResetPasswordResult = CurrentUser | NativeAuthStrategyError | NotVerifiedError | PasswordResetTokenExpiredError | PasswordResetTokenInvalidError | PasswordValidationError;
|
|
2677
|
+
export type Role = Node & {
|
|
2573
2678
|
__typename?: 'Role';
|
|
2574
2679
|
channels: Array<Channel>;
|
|
2575
2680
|
code: Scalars['String'];
|
|
@@ -2579,16 +2684,18 @@ export declare type Role = Node & {
|
|
|
2579
2684
|
permissions: Array<Permission>;
|
|
2580
2685
|
updatedAt: Scalars['DateTime'];
|
|
2581
2686
|
};
|
|
2582
|
-
export
|
|
2687
|
+
export type RoleList = PaginatedList & {
|
|
2583
2688
|
__typename?: 'RoleList';
|
|
2584
2689
|
items: Array<Role>;
|
|
2585
2690
|
totalItems: Scalars['Int'];
|
|
2586
2691
|
};
|
|
2587
|
-
export
|
|
2692
|
+
export type SearchInput = {
|
|
2588
2693
|
collectionId?: InputMaybe<Scalars['ID']>;
|
|
2589
2694
|
collectionSlug?: InputMaybe<Scalars['String']>;
|
|
2590
2695
|
facetValueFilters?: InputMaybe<Array<FacetValueFilterInput>>;
|
|
2696
|
+
/** @deprecated Use `facetValueFilters` instead */
|
|
2591
2697
|
facetValueIds?: InputMaybe<Array<Scalars['ID']>>;
|
|
2698
|
+
/** @deprecated Use `facetValueFilters` instead */
|
|
2592
2699
|
facetValueOperator?: InputMaybe<LogicalOperator>;
|
|
2593
2700
|
groupByProduct?: InputMaybe<Scalars['Boolean']>;
|
|
2594
2701
|
skip?: InputMaybe<Scalars['Int']>;
|
|
@@ -2596,18 +2703,18 @@ export declare type SearchInput = {
|
|
|
2596
2703
|
take?: InputMaybe<Scalars['Int']>;
|
|
2597
2704
|
term?: InputMaybe<Scalars['String']>;
|
|
2598
2705
|
};
|
|
2599
|
-
export
|
|
2706
|
+
export type SearchReindexResponse = {
|
|
2600
2707
|
__typename?: 'SearchReindexResponse';
|
|
2601
2708
|
success: Scalars['Boolean'];
|
|
2602
2709
|
};
|
|
2603
|
-
export
|
|
2710
|
+
export type SearchResponse = {
|
|
2604
2711
|
__typename?: 'SearchResponse';
|
|
2605
2712
|
collections: Array<CollectionResult>;
|
|
2606
2713
|
facetValues: Array<FacetValueResult>;
|
|
2607
2714
|
items: Array<SearchResult>;
|
|
2608
2715
|
totalItems: Scalars['Int'];
|
|
2609
2716
|
};
|
|
2610
|
-
export
|
|
2717
|
+
export type SearchResult = {
|
|
2611
2718
|
__typename?: 'SearchResult';
|
|
2612
2719
|
/** An array of ids of the Collections in which this result appears */
|
|
2613
2720
|
collectionIds: Array<Scalars['ID']>;
|
|
@@ -2628,30 +2735,39 @@ export declare type SearchResult = {
|
|
|
2628
2735
|
sku: Scalars['String'];
|
|
2629
2736
|
slug: Scalars['String'];
|
|
2630
2737
|
};
|
|
2631
|
-
export
|
|
2738
|
+
export type SearchResultAsset = {
|
|
2632
2739
|
__typename?: 'SearchResultAsset';
|
|
2633
2740
|
focalPoint?: Maybe<Coordinate>;
|
|
2634
2741
|
id: Scalars['ID'];
|
|
2635
2742
|
preview: Scalars['String'];
|
|
2636
2743
|
};
|
|
2637
2744
|
/** The price of a search result product, either as a range or as a single price */
|
|
2638
|
-
export
|
|
2639
|
-
export
|
|
2745
|
+
export type SearchResultPrice = PriceRange | SinglePrice;
|
|
2746
|
+
export type SearchResultSortParameter = {
|
|
2640
2747
|
name?: InputMaybe<SortOrder>;
|
|
2641
2748
|
price?: InputMaybe<SortOrder>;
|
|
2642
2749
|
};
|
|
2643
|
-
export
|
|
2644
|
-
|
|
2645
|
-
|
|
2750
|
+
export type Seller = Node & {
|
|
2751
|
+
__typename?: 'Seller';
|
|
2752
|
+
createdAt: Scalars['DateTime'];
|
|
2753
|
+
customFields?: Maybe<Scalars['JSON']>;
|
|
2754
|
+
id: Scalars['ID'];
|
|
2755
|
+
name: Scalars['String'];
|
|
2756
|
+
updatedAt: Scalars['DateTime'];
|
|
2757
|
+
};
|
|
2758
|
+
export type SetCustomerForOrderResult = AlreadyLoggedInError | EmailAddressConflictError | GuestCheckoutError | NoActiveOrderError | Order;
|
|
2759
|
+
export type SetOrderShippingMethodResult = IneligibleShippingMethodError | NoActiveOrderError | Order | OrderModificationError;
|
|
2760
|
+
export type ShippingLine = {
|
|
2646
2761
|
__typename?: 'ShippingLine';
|
|
2647
|
-
discountedPrice: Scalars['
|
|
2648
|
-
discountedPriceWithTax: Scalars['
|
|
2762
|
+
discountedPrice: Scalars['Money'];
|
|
2763
|
+
discountedPriceWithTax: Scalars['Money'];
|
|
2649
2764
|
discounts: Array<Discount>;
|
|
2650
|
-
|
|
2651
|
-
|
|
2765
|
+
id: Scalars['ID'];
|
|
2766
|
+
price: Scalars['Money'];
|
|
2767
|
+
priceWithTax: Scalars['Money'];
|
|
2652
2768
|
shippingMethod: ShippingMethod;
|
|
2653
2769
|
};
|
|
2654
|
-
export
|
|
2770
|
+
export type ShippingMethod = Node & {
|
|
2655
2771
|
__typename?: 'ShippingMethod';
|
|
2656
2772
|
calculator: ConfigurableOperation;
|
|
2657
2773
|
checker: ConfigurableOperation;
|
|
@@ -2661,16 +2777,17 @@ export declare type ShippingMethod = Node & {
|
|
|
2661
2777
|
description: Scalars['String'];
|
|
2662
2778
|
fulfillmentHandlerCode: Scalars['String'];
|
|
2663
2779
|
id: Scalars['ID'];
|
|
2780
|
+
languageCode: LanguageCode;
|
|
2664
2781
|
name: Scalars['String'];
|
|
2665
2782
|
translations: Array<ShippingMethodTranslation>;
|
|
2666
2783
|
updatedAt: Scalars['DateTime'];
|
|
2667
2784
|
};
|
|
2668
|
-
export
|
|
2785
|
+
export type ShippingMethodList = PaginatedList & {
|
|
2669
2786
|
__typename?: 'ShippingMethodList';
|
|
2670
2787
|
items: Array<ShippingMethod>;
|
|
2671
2788
|
totalItems: Scalars['Int'];
|
|
2672
2789
|
};
|
|
2673
|
-
export
|
|
2790
|
+
export type ShippingMethodQuote = {
|
|
2674
2791
|
__typename?: 'ShippingMethodQuote';
|
|
2675
2792
|
code: Scalars['String'];
|
|
2676
2793
|
customFields?: Maybe<Scalars['JSON']>;
|
|
@@ -2679,10 +2796,10 @@ export declare type ShippingMethodQuote = {
|
|
|
2679
2796
|
/** Any optional metadata returned by the ShippingCalculator in the ShippingCalculationResult */
|
|
2680
2797
|
metadata?: Maybe<Scalars['JSON']>;
|
|
2681
2798
|
name: Scalars['String'];
|
|
2682
|
-
price: Scalars['
|
|
2683
|
-
priceWithTax: Scalars['
|
|
2799
|
+
price: Scalars['Money'];
|
|
2800
|
+
priceWithTax: Scalars['Money'];
|
|
2684
2801
|
};
|
|
2685
|
-
export
|
|
2802
|
+
export type ShippingMethodTranslation = {
|
|
2686
2803
|
__typename?: 'ShippingMethodTranslation';
|
|
2687
2804
|
createdAt: Scalars['DateTime'];
|
|
2688
2805
|
description: Scalars['String'];
|
|
@@ -2692,15 +2809,15 @@ export declare type ShippingMethodTranslation = {
|
|
|
2692
2809
|
updatedAt: Scalars['DateTime'];
|
|
2693
2810
|
};
|
|
2694
2811
|
/** The price value where the result has a single price */
|
|
2695
|
-
export
|
|
2812
|
+
export type SinglePrice = {
|
|
2696
2813
|
__typename?: 'SinglePrice';
|
|
2697
|
-
value: Scalars['
|
|
2814
|
+
value: Scalars['Money'];
|
|
2698
2815
|
};
|
|
2699
2816
|
export declare enum SortOrder {
|
|
2700
2817
|
ASC = "ASC",
|
|
2701
2818
|
DESC = "DESC"
|
|
2702
2819
|
}
|
|
2703
|
-
export
|
|
2820
|
+
export type StringCustomFieldConfig = CustomField & {
|
|
2704
2821
|
__typename?: 'StringCustomFieldConfig';
|
|
2705
2822
|
description?: Maybe<Array<LocalizedString>>;
|
|
2706
2823
|
internal?: Maybe<Scalars['Boolean']>;
|
|
@@ -2715,55 +2832,56 @@ export declare type StringCustomFieldConfig = CustomField & {
|
|
|
2715
2832
|
type: Scalars['String'];
|
|
2716
2833
|
ui?: Maybe<Scalars['JSON']>;
|
|
2717
2834
|
};
|
|
2718
|
-
export
|
|
2835
|
+
export type StringFieldOption = {
|
|
2719
2836
|
__typename?: 'StringFieldOption';
|
|
2720
2837
|
label?: Maybe<Array<LocalizedString>>;
|
|
2721
2838
|
value: Scalars['String'];
|
|
2722
2839
|
};
|
|
2723
2840
|
/** Operators for filtering on a list of String fields */
|
|
2724
|
-
export
|
|
2841
|
+
export type StringListOperators = {
|
|
2725
2842
|
inList: Scalars['String'];
|
|
2726
2843
|
};
|
|
2727
2844
|
/** Operators for filtering on a String field */
|
|
2728
|
-
export
|
|
2845
|
+
export type StringOperators = {
|
|
2729
2846
|
contains?: InputMaybe<Scalars['String']>;
|
|
2730
2847
|
eq?: InputMaybe<Scalars['String']>;
|
|
2731
2848
|
in?: InputMaybe<Array<Scalars['String']>>;
|
|
2849
|
+
isNull?: InputMaybe<Scalars['Boolean']>;
|
|
2732
2850
|
notContains?: InputMaybe<Scalars['String']>;
|
|
2733
2851
|
notEq?: InputMaybe<Scalars['String']>;
|
|
2734
2852
|
notIn?: InputMaybe<Array<Scalars['String']>>;
|
|
2735
2853
|
regex?: InputMaybe<Scalars['String']>;
|
|
2736
2854
|
};
|
|
2737
2855
|
/** Indicates that an operation succeeded, where we do not want to return any more specific information. */
|
|
2738
|
-
export
|
|
2856
|
+
export type Success = {
|
|
2739
2857
|
__typename?: 'Success';
|
|
2740
2858
|
success: Scalars['Boolean'];
|
|
2741
2859
|
};
|
|
2742
|
-
export
|
|
2860
|
+
export type Surcharge = Node & {
|
|
2743
2861
|
__typename?: 'Surcharge';
|
|
2744
2862
|
createdAt: Scalars['DateTime'];
|
|
2745
2863
|
description: Scalars['String'];
|
|
2746
2864
|
id: Scalars['ID'];
|
|
2747
|
-
price: Scalars['
|
|
2748
|
-
priceWithTax: Scalars['
|
|
2865
|
+
price: Scalars['Money'];
|
|
2866
|
+
priceWithTax: Scalars['Money'];
|
|
2749
2867
|
sku?: Maybe<Scalars['String']>;
|
|
2750
2868
|
taxLines: Array<TaxLine>;
|
|
2751
2869
|
taxRate: Scalars['Float'];
|
|
2752
2870
|
updatedAt: Scalars['DateTime'];
|
|
2753
2871
|
};
|
|
2754
|
-
export
|
|
2872
|
+
export type Tag = Node & {
|
|
2755
2873
|
__typename?: 'Tag';
|
|
2756
2874
|
createdAt: Scalars['DateTime'];
|
|
2757
2875
|
id: Scalars['ID'];
|
|
2758
2876
|
updatedAt: Scalars['DateTime'];
|
|
2759
2877
|
value: Scalars['String'];
|
|
2760
2878
|
};
|
|
2761
|
-
export
|
|
2879
|
+
export type TagList = PaginatedList & {
|
|
2762
2880
|
__typename?: 'TagList';
|
|
2763
2881
|
items: Array<Tag>;
|
|
2764
2882
|
totalItems: Scalars['Int'];
|
|
2765
2883
|
};
|
|
2766
|
-
export
|
|
2884
|
+
export type TaxCategory = Node & {
|
|
2767
2885
|
__typename?: 'TaxCategory';
|
|
2768
2886
|
createdAt: Scalars['DateTime'];
|
|
2769
2887
|
customFields?: Maybe<Scalars['JSON']>;
|
|
@@ -2772,12 +2890,12 @@ export declare type TaxCategory = Node & {
|
|
|
2772
2890
|
name: Scalars['String'];
|
|
2773
2891
|
updatedAt: Scalars['DateTime'];
|
|
2774
2892
|
};
|
|
2775
|
-
export
|
|
2893
|
+
export type TaxLine = {
|
|
2776
2894
|
__typename?: 'TaxLine';
|
|
2777
2895
|
description: Scalars['String'];
|
|
2778
2896
|
taxRate: Scalars['Float'];
|
|
2779
2897
|
};
|
|
2780
|
-
export
|
|
2898
|
+
export type TaxRate = Node & {
|
|
2781
2899
|
__typename?: 'TaxRate';
|
|
2782
2900
|
category: TaxCategory;
|
|
2783
2901
|
createdAt: Scalars['DateTime'];
|
|
@@ -2790,12 +2908,12 @@ export declare type TaxRate = Node & {
|
|
|
2790
2908
|
value: Scalars['Float'];
|
|
2791
2909
|
zone: Zone;
|
|
2792
2910
|
};
|
|
2793
|
-
export
|
|
2911
|
+
export type TaxRateList = PaginatedList & {
|
|
2794
2912
|
__typename?: 'TaxRateList';
|
|
2795
2913
|
items: Array<TaxRate>;
|
|
2796
2914
|
totalItems: Scalars['Int'];
|
|
2797
2915
|
};
|
|
2798
|
-
export
|
|
2916
|
+
export type TextCustomFieldConfig = CustomField & {
|
|
2799
2917
|
__typename?: 'TextCustomFieldConfig';
|
|
2800
2918
|
description?: Maybe<Array<LocalizedString>>;
|
|
2801
2919
|
internal?: Maybe<Scalars['Boolean']>;
|
|
@@ -2807,8 +2925,8 @@ export declare type TextCustomFieldConfig = CustomField & {
|
|
|
2807
2925
|
type: Scalars['String'];
|
|
2808
2926
|
ui?: Maybe<Scalars['JSON']>;
|
|
2809
2927
|
};
|
|
2810
|
-
export
|
|
2811
|
-
export
|
|
2928
|
+
export type TransitionOrderToStateResult = Order | OrderStateTransitionError;
|
|
2929
|
+
export type UpdateAddressInput = {
|
|
2812
2930
|
city?: InputMaybe<Scalars['String']>;
|
|
2813
2931
|
company?: InputMaybe<Scalars['String']>;
|
|
2814
2932
|
countryCode?: InputMaybe<Scalars['String']>;
|
|
@@ -2823,20 +2941,20 @@ export declare type UpdateAddressInput = {
|
|
|
2823
2941
|
streetLine1?: InputMaybe<Scalars['String']>;
|
|
2824
2942
|
streetLine2?: InputMaybe<Scalars['String']>;
|
|
2825
2943
|
};
|
|
2826
|
-
export
|
|
2827
|
-
export
|
|
2944
|
+
export type UpdateCustomerEmailAddressResult = IdentifierChangeTokenExpiredError | IdentifierChangeTokenInvalidError | NativeAuthStrategyError | Success;
|
|
2945
|
+
export type UpdateCustomerInput = {
|
|
2828
2946
|
customFields?: InputMaybe<Scalars['JSON']>;
|
|
2829
2947
|
firstName?: InputMaybe<Scalars['String']>;
|
|
2830
2948
|
lastName?: InputMaybe<Scalars['String']>;
|
|
2831
2949
|
phoneNumber?: InputMaybe<Scalars['String']>;
|
|
2832
2950
|
title?: InputMaybe<Scalars['String']>;
|
|
2833
2951
|
};
|
|
2834
|
-
export
|
|
2835
|
-
export
|
|
2952
|
+
export type UpdateCustomerPasswordResult = InvalidCredentialsError | NativeAuthStrategyError | PasswordValidationError | Success;
|
|
2953
|
+
export type UpdateOrderInput = {
|
|
2836
2954
|
customFields?: InputMaybe<Scalars['JSON']>;
|
|
2837
2955
|
};
|
|
2838
|
-
export
|
|
2839
|
-
export
|
|
2956
|
+
export type UpdateOrderItemsResult = InsufficientStockError | NegativeQuantityError | Order | OrderLimitError | OrderModificationError;
|
|
2957
|
+
export type User = Node & {
|
|
2840
2958
|
__typename?: 'User';
|
|
2841
2959
|
authenticationMethods: Array<AuthenticationMethod>;
|
|
2842
2960
|
createdAt: Scalars['DateTime'];
|
|
@@ -2852,7 +2970,7 @@ export declare type User = Node & {
|
|
|
2852
2970
|
* Returned if the verification token (used to verify a Customer's email address) is valid, but has
|
|
2853
2971
|
* expired according to the `verificationTokenDuration` setting in the AuthOptions.
|
|
2854
2972
|
*/
|
|
2855
|
-
export
|
|
2973
|
+
export type VerificationTokenExpiredError = ErrorResult & {
|
|
2856
2974
|
__typename?: 'VerificationTokenExpiredError';
|
|
2857
2975
|
errorCode: ErrorCode;
|
|
2858
2976
|
message: Scalars['String'];
|
|
@@ -2861,18 +2979,18 @@ export declare type VerificationTokenExpiredError = ErrorResult & {
|
|
|
2861
2979
|
* Returned if the verification token (used to verify a Customer's email address) is either
|
|
2862
2980
|
* invalid or does not match any expected tokens.
|
|
2863
2981
|
*/
|
|
2864
|
-
export
|
|
2982
|
+
export type VerificationTokenInvalidError = ErrorResult & {
|
|
2865
2983
|
__typename?: 'VerificationTokenInvalidError';
|
|
2866
2984
|
errorCode: ErrorCode;
|
|
2867
2985
|
message: Scalars['String'];
|
|
2868
2986
|
};
|
|
2869
|
-
export
|
|
2870
|
-
export
|
|
2987
|
+
export type VerifyCustomerAccountResult = CurrentUser | MissingPasswordError | NativeAuthStrategyError | PasswordAlreadySetError | PasswordValidationError | VerificationTokenExpiredError | VerificationTokenInvalidError;
|
|
2988
|
+
export type Zone = Node & {
|
|
2871
2989
|
__typename?: 'Zone';
|
|
2872
2990
|
createdAt: Scalars['DateTime'];
|
|
2873
2991
|
customFields?: Maybe<Scalars['JSON']>;
|
|
2874
2992
|
id: Scalars['ID'];
|
|
2875
|
-
members: Array<
|
|
2993
|
+
members: Array<Region>;
|
|
2876
2994
|
name: Scalars['String'];
|
|
2877
2995
|
updatedAt: Scalars['DateTime'];
|
|
2878
2996
|
};
|