@deenruv/common 1.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/LICENSE +23 -0
- package/README.md +3 -0
- package/lib/extension-host-types.d.ts +67 -0
- package/lib/extension-host-types.js +3 -0
- package/lib/extension-host-types.js.map +1 -0
- package/lib/filter-async.d.ts +4 -0
- package/lib/filter-async.js +12 -0
- package/lib/filter-async.js.map +1 -0
- package/lib/generated-shop-types.d.ts +3143 -0
- package/lib/generated-shop-types.js +977 -0
- package/lib/generated-shop-types.js.map +1 -0
- package/lib/generated-types.d.ts +5773 -0
- package/lib/generated-types.js +1026 -0
- package/lib/generated-types.js.map +1 -0
- package/lib/normalize-string.d.ts +6 -0
- package/lib/normalize-string.js +21 -0
- package/lib/normalize-string.js.map +1 -0
- package/lib/omit.d.ts +6 -0
- package/lib/omit.js +36 -0
- package/lib/omit.js.map +1 -0
- package/lib/pick.d.ts +9 -0
- package/lib/pick.js +20 -0
- package/lib/pick.js.map +1 -0
- package/lib/shared-constants.d.ts +16 -0
- package/lib/shared-constants.js +23 -0
- package/lib/shared-constants.js.map +1 -0
- package/lib/shared-types.d.ts +356 -0
- package/lib/shared-types.js +3 -0
- package/lib/shared-types.js.map +1 -0
- package/lib/shared-utils.d.ts +53 -0
- package/lib/shared-utils.js +85 -0
- package/lib/shared-utils.js.map +1 -0
- package/lib/simple-deep-clone.d.ts +5 -0
- package/lib/simple-deep-clone.js +38 -0
- package/lib/simple-deep-clone.js.map +1 -0
- package/lib/unique.d.ts +7 -0
- package/lib/unique.js +20 -0
- package/lib/unique.js.map +1 -0
- package/package.json +25 -0
|
@@ -0,0 +1,3143 @@
|
|
|
1
|
+
export type Maybe<T> = T;
|
|
2
|
+
export type InputMaybe<T> = T;
|
|
3
|
+
export type Exact<T extends {
|
|
4
|
+
[key: string]: unknown;
|
|
5
|
+
}> = {
|
|
6
|
+
[K in keyof T]: T[K];
|
|
7
|
+
};
|
|
8
|
+
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
|
|
9
|
+
[SubKey in K]?: Maybe<T[SubKey]>;
|
|
10
|
+
};
|
|
11
|
+
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
|
|
12
|
+
[SubKey in K]: Maybe<T[SubKey]>;
|
|
13
|
+
};
|
|
14
|
+
export type MakeEmpty<T extends {
|
|
15
|
+
[key: string]: unknown;
|
|
16
|
+
}, K extends keyof T> = {
|
|
17
|
+
[_ in K]?: never;
|
|
18
|
+
};
|
|
19
|
+
export type Incremental<T> = T | {
|
|
20
|
+
[P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
|
|
21
|
+
};
|
|
22
|
+
/** All built-in and custom scalars, mapped to their actual values */
|
|
23
|
+
export type Scalars = {
|
|
24
|
+
ID: {
|
|
25
|
+
input: string | number;
|
|
26
|
+
output: string | number;
|
|
27
|
+
};
|
|
28
|
+
String: {
|
|
29
|
+
input: string;
|
|
30
|
+
output: string;
|
|
31
|
+
};
|
|
32
|
+
Boolean: {
|
|
33
|
+
input: boolean;
|
|
34
|
+
output: boolean;
|
|
35
|
+
};
|
|
36
|
+
Int: {
|
|
37
|
+
input: number;
|
|
38
|
+
output: number;
|
|
39
|
+
};
|
|
40
|
+
Float: {
|
|
41
|
+
input: number;
|
|
42
|
+
output: number;
|
|
43
|
+
};
|
|
44
|
+
DateTime: {
|
|
45
|
+
input: any;
|
|
46
|
+
output: any;
|
|
47
|
+
};
|
|
48
|
+
JSON: {
|
|
49
|
+
input: any;
|
|
50
|
+
output: any;
|
|
51
|
+
};
|
|
52
|
+
Money: {
|
|
53
|
+
input: number;
|
|
54
|
+
output: number;
|
|
55
|
+
};
|
|
56
|
+
Upload: {
|
|
57
|
+
input: any;
|
|
58
|
+
output: any;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
export type ActiveOrderResult = NoActiveOrderError | Order;
|
|
62
|
+
export type AddPaymentToOrderResult = IneligiblePaymentMethodError | NoActiveOrderError | Order | OrderPaymentStateError | OrderStateTransitionError | PaymentDeclinedError | PaymentFailedError;
|
|
63
|
+
export type Address = Node & {
|
|
64
|
+
__typename?: 'Address';
|
|
65
|
+
city?: Maybe<Scalars['String']['output']>;
|
|
66
|
+
company?: Maybe<Scalars['String']['output']>;
|
|
67
|
+
country: Country;
|
|
68
|
+
createdAt: Scalars['DateTime']['output'];
|
|
69
|
+
customFields?: Maybe<Scalars['JSON']['output']>;
|
|
70
|
+
defaultBillingAddress?: Maybe<Scalars['Boolean']['output']>;
|
|
71
|
+
defaultShippingAddress?: Maybe<Scalars['Boolean']['output']>;
|
|
72
|
+
fullName?: Maybe<Scalars['String']['output']>;
|
|
73
|
+
id: Scalars['ID']['output'];
|
|
74
|
+
phoneNumber?: Maybe<Scalars['String']['output']>;
|
|
75
|
+
postalCode?: Maybe<Scalars['String']['output']>;
|
|
76
|
+
province?: Maybe<Scalars['String']['output']>;
|
|
77
|
+
streetLine1: Scalars['String']['output'];
|
|
78
|
+
streetLine2?: Maybe<Scalars['String']['output']>;
|
|
79
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
80
|
+
};
|
|
81
|
+
export type Adjustment = {
|
|
82
|
+
__typename?: 'Adjustment';
|
|
83
|
+
adjustmentSource: Scalars['String']['output'];
|
|
84
|
+
amount: Scalars['Money']['output'];
|
|
85
|
+
data?: Maybe<Scalars['JSON']['output']>;
|
|
86
|
+
description: Scalars['String']['output'];
|
|
87
|
+
type: AdjustmentType;
|
|
88
|
+
};
|
|
89
|
+
export declare enum AdjustmentType {
|
|
90
|
+
DISTRIBUTED_ORDER_PROMOTION = "DISTRIBUTED_ORDER_PROMOTION",
|
|
91
|
+
OTHER = "OTHER",
|
|
92
|
+
PROMOTION = "PROMOTION"
|
|
93
|
+
}
|
|
94
|
+
/** Returned when attempting to set the Customer for an Order when already logged in. */
|
|
95
|
+
export type AlreadyLoggedInError = ErrorResult & {
|
|
96
|
+
__typename?: 'AlreadyLoggedInError';
|
|
97
|
+
errorCode: ErrorCode;
|
|
98
|
+
message: Scalars['String']['output'];
|
|
99
|
+
};
|
|
100
|
+
export type ApplyCouponCodeResult = CouponCodeExpiredError | CouponCodeInvalidError | CouponCodeLimitError | Order | OrderMiddlewareError;
|
|
101
|
+
export type Asset = Node & {
|
|
102
|
+
__typename?: 'Asset';
|
|
103
|
+
createdAt: Scalars['DateTime']['output'];
|
|
104
|
+
customFields?: Maybe<Scalars['JSON']['output']>;
|
|
105
|
+
fileSize: Scalars['Int']['output'];
|
|
106
|
+
focalPoint?: Maybe<Coordinate>;
|
|
107
|
+
height: Scalars['Int']['output'];
|
|
108
|
+
id: Scalars['ID']['output'];
|
|
109
|
+
mimeType: Scalars['String']['output'];
|
|
110
|
+
name: Scalars['String']['output'];
|
|
111
|
+
preview: Scalars['String']['output'];
|
|
112
|
+
source: Scalars['String']['output'];
|
|
113
|
+
tags: Array<Tag>;
|
|
114
|
+
type: AssetType;
|
|
115
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
116
|
+
width: Scalars['Int']['output'];
|
|
117
|
+
};
|
|
118
|
+
export type AssetList = PaginatedList & {
|
|
119
|
+
__typename?: 'AssetList';
|
|
120
|
+
items: Array<Asset>;
|
|
121
|
+
totalItems: Scalars['Int']['output'];
|
|
122
|
+
};
|
|
123
|
+
export declare enum AssetType {
|
|
124
|
+
BINARY = "BINARY",
|
|
125
|
+
IMAGE = "IMAGE",
|
|
126
|
+
VIDEO = "VIDEO"
|
|
127
|
+
}
|
|
128
|
+
export type AuthenticationInput = {
|
|
129
|
+
native?: InputMaybe<NativeAuthInput>;
|
|
130
|
+
};
|
|
131
|
+
export type AuthenticationMethod = Node & {
|
|
132
|
+
__typename?: 'AuthenticationMethod';
|
|
133
|
+
createdAt: Scalars['DateTime']['output'];
|
|
134
|
+
id: Scalars['ID']['output'];
|
|
135
|
+
strategy: Scalars['String']['output'];
|
|
136
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
137
|
+
};
|
|
138
|
+
export type AuthenticationResult = CurrentUser | InvalidCredentialsError | NotVerifiedError;
|
|
139
|
+
export type BooleanCustomFieldConfig = CustomField & {
|
|
140
|
+
__typename?: 'BooleanCustomFieldConfig';
|
|
141
|
+
description?: Maybe<Array<LocalizedString>>;
|
|
142
|
+
internal?: Maybe<Scalars['Boolean']['output']>;
|
|
143
|
+
label?: Maybe<Array<LocalizedString>>;
|
|
144
|
+
list: Scalars['Boolean']['output'];
|
|
145
|
+
name: Scalars['String']['output'];
|
|
146
|
+
nullable?: Maybe<Scalars['Boolean']['output']>;
|
|
147
|
+
readonly?: Maybe<Scalars['Boolean']['output']>;
|
|
148
|
+
requiresPermission?: Maybe<Array<Permission>>;
|
|
149
|
+
type: Scalars['String']['output'];
|
|
150
|
+
ui?: Maybe<Scalars['JSON']['output']>;
|
|
151
|
+
};
|
|
152
|
+
/** Operators for filtering on a list of Boolean fields */
|
|
153
|
+
export type BooleanListOperators = {
|
|
154
|
+
inList: Scalars['Boolean']['input'];
|
|
155
|
+
};
|
|
156
|
+
/** Operators for filtering on a Boolean field */
|
|
157
|
+
export type BooleanOperators = {
|
|
158
|
+
eq?: InputMaybe<Scalars['Boolean']['input']>;
|
|
159
|
+
isNull?: InputMaybe<Scalars['Boolean']['input']>;
|
|
160
|
+
};
|
|
161
|
+
export type Channel = Node & {
|
|
162
|
+
__typename?: 'Channel';
|
|
163
|
+
availableCurrencyCodes: Array<CurrencyCode>;
|
|
164
|
+
availableLanguageCodes?: Maybe<Array<LanguageCode>>;
|
|
165
|
+
code: Scalars['String']['output'];
|
|
166
|
+
createdAt: Scalars['DateTime']['output'];
|
|
167
|
+
/** @deprecated Use defaultCurrencyCode instead */
|
|
168
|
+
currencyCode: CurrencyCode;
|
|
169
|
+
customFields?: Maybe<Scalars['JSON']['output']>;
|
|
170
|
+
defaultCurrencyCode: CurrencyCode;
|
|
171
|
+
defaultLanguageCode: LanguageCode;
|
|
172
|
+
defaultShippingZone?: Maybe<Zone>;
|
|
173
|
+
defaultTaxZone?: Maybe<Zone>;
|
|
174
|
+
id: Scalars['ID']['output'];
|
|
175
|
+
/** Not yet used - will be implemented in a future release. */
|
|
176
|
+
outOfStockThreshold?: Maybe<Scalars['Int']['output']>;
|
|
177
|
+
pricesIncludeTax: Scalars['Boolean']['output'];
|
|
178
|
+
seller?: Maybe<Seller>;
|
|
179
|
+
token: Scalars['String']['output'];
|
|
180
|
+
/** Not yet used - will be implemented in a future release. */
|
|
181
|
+
trackInventory?: Maybe<Scalars['Boolean']['output']>;
|
|
182
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
183
|
+
};
|
|
184
|
+
export type Collection = Node & {
|
|
185
|
+
__typename?: 'Collection';
|
|
186
|
+
assets: Array<Asset>;
|
|
187
|
+
breadcrumbs: Array<CollectionBreadcrumb>;
|
|
188
|
+
children?: Maybe<Array<Collection>>;
|
|
189
|
+
createdAt: Scalars['DateTime']['output'];
|
|
190
|
+
customFields?: Maybe<Scalars['JSON']['output']>;
|
|
191
|
+
description: Scalars['String']['output'];
|
|
192
|
+
featuredAsset?: Maybe<Asset>;
|
|
193
|
+
filters: Array<ConfigurableOperation>;
|
|
194
|
+
id: Scalars['ID']['output'];
|
|
195
|
+
languageCode?: Maybe<LanguageCode>;
|
|
196
|
+
name: Scalars['String']['output'];
|
|
197
|
+
parent?: Maybe<Collection>;
|
|
198
|
+
parentId: Scalars['ID']['output'];
|
|
199
|
+
position: Scalars['Int']['output'];
|
|
200
|
+
productVariants: ProductVariantList;
|
|
201
|
+
slug: Scalars['String']['output'];
|
|
202
|
+
translations: Array<CollectionTranslation>;
|
|
203
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
204
|
+
};
|
|
205
|
+
export type CollectionProductVariantsArgs = {
|
|
206
|
+
options?: InputMaybe<ProductVariantListOptions>;
|
|
207
|
+
};
|
|
208
|
+
export type CollectionBreadcrumb = {
|
|
209
|
+
__typename?: 'CollectionBreadcrumb';
|
|
210
|
+
id: Scalars['ID']['output'];
|
|
211
|
+
name: Scalars['String']['output'];
|
|
212
|
+
slug: Scalars['String']['output'];
|
|
213
|
+
};
|
|
214
|
+
export type CollectionFilterParameter = {
|
|
215
|
+
_and?: InputMaybe<Array<CollectionFilterParameter>>;
|
|
216
|
+
_or?: InputMaybe<Array<CollectionFilterParameter>>;
|
|
217
|
+
createdAt?: InputMaybe<DateOperators>;
|
|
218
|
+
description?: InputMaybe<StringOperators>;
|
|
219
|
+
id?: InputMaybe<IdOperators>;
|
|
220
|
+
languageCode?: InputMaybe<StringOperators>;
|
|
221
|
+
name?: InputMaybe<StringOperators>;
|
|
222
|
+
parentId?: InputMaybe<IdOperators>;
|
|
223
|
+
position?: InputMaybe<NumberOperators>;
|
|
224
|
+
slug?: InputMaybe<StringOperators>;
|
|
225
|
+
updatedAt?: InputMaybe<DateOperators>;
|
|
226
|
+
};
|
|
227
|
+
export type CollectionList = PaginatedList & {
|
|
228
|
+
__typename?: 'CollectionList';
|
|
229
|
+
items: Array<Collection>;
|
|
230
|
+
totalItems: Scalars['Int']['output'];
|
|
231
|
+
};
|
|
232
|
+
export type CollectionListOptions = {
|
|
233
|
+
/** Allows the results to be filtered */
|
|
234
|
+
filter?: InputMaybe<CollectionFilterParameter>;
|
|
235
|
+
/** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */
|
|
236
|
+
filterOperator?: InputMaybe<LogicalOperator>;
|
|
237
|
+
/** Skips the first n results, for use in pagination */
|
|
238
|
+
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
239
|
+
/** Specifies which properties to sort the results by */
|
|
240
|
+
sort?: InputMaybe<CollectionSortParameter>;
|
|
241
|
+
/** Takes n results, for use in pagination */
|
|
242
|
+
take?: InputMaybe<Scalars['Int']['input']>;
|
|
243
|
+
topLevelOnly?: InputMaybe<Scalars['Boolean']['input']>;
|
|
244
|
+
};
|
|
245
|
+
/**
|
|
246
|
+
* Which Collections are present in the products returned
|
|
247
|
+
* by the search, and in what quantity.
|
|
248
|
+
*/
|
|
249
|
+
export type CollectionResult = {
|
|
250
|
+
__typename?: 'CollectionResult';
|
|
251
|
+
collection: Collection;
|
|
252
|
+
count: Scalars['Int']['output'];
|
|
253
|
+
};
|
|
254
|
+
export type CollectionSortParameter = {
|
|
255
|
+
createdAt?: InputMaybe<SortOrder>;
|
|
256
|
+
description?: InputMaybe<SortOrder>;
|
|
257
|
+
id?: InputMaybe<SortOrder>;
|
|
258
|
+
name?: InputMaybe<SortOrder>;
|
|
259
|
+
parentId?: InputMaybe<SortOrder>;
|
|
260
|
+
position?: InputMaybe<SortOrder>;
|
|
261
|
+
slug?: InputMaybe<SortOrder>;
|
|
262
|
+
updatedAt?: InputMaybe<SortOrder>;
|
|
263
|
+
};
|
|
264
|
+
export type CollectionTranslation = {
|
|
265
|
+
__typename?: 'CollectionTranslation';
|
|
266
|
+
createdAt: Scalars['DateTime']['output'];
|
|
267
|
+
description: Scalars['String']['output'];
|
|
268
|
+
id: Scalars['ID']['output'];
|
|
269
|
+
languageCode: LanguageCode;
|
|
270
|
+
name: Scalars['String']['output'];
|
|
271
|
+
slug: Scalars['String']['output'];
|
|
272
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
273
|
+
};
|
|
274
|
+
export type ConfigArg = {
|
|
275
|
+
__typename?: 'ConfigArg';
|
|
276
|
+
name: Scalars['String']['output'];
|
|
277
|
+
value: Scalars['String']['output'];
|
|
278
|
+
};
|
|
279
|
+
export type ConfigArgDefinition = {
|
|
280
|
+
__typename?: 'ConfigArgDefinition';
|
|
281
|
+
defaultValue?: Maybe<Scalars['JSON']['output']>;
|
|
282
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
283
|
+
label?: Maybe<Scalars['String']['output']>;
|
|
284
|
+
list: Scalars['Boolean']['output'];
|
|
285
|
+
name: Scalars['String']['output'];
|
|
286
|
+
required: Scalars['Boolean']['output'];
|
|
287
|
+
type: Scalars['String']['output'];
|
|
288
|
+
ui?: Maybe<Scalars['JSON']['output']>;
|
|
289
|
+
};
|
|
290
|
+
export type ConfigArgInput = {
|
|
291
|
+
name: Scalars['String']['input'];
|
|
292
|
+
/** A JSON stringified representation of the actual value */
|
|
293
|
+
value: Scalars['String']['input'];
|
|
294
|
+
};
|
|
295
|
+
export type ConfigurableOperation = {
|
|
296
|
+
__typename?: 'ConfigurableOperation';
|
|
297
|
+
args: Array<ConfigArg>;
|
|
298
|
+
code: Scalars['String']['output'];
|
|
299
|
+
};
|
|
300
|
+
export type ConfigurableOperationDefinition = {
|
|
301
|
+
__typename?: 'ConfigurableOperationDefinition';
|
|
302
|
+
args: Array<ConfigArgDefinition>;
|
|
303
|
+
code: Scalars['String']['output'];
|
|
304
|
+
description: Scalars['String']['output'];
|
|
305
|
+
};
|
|
306
|
+
export type ConfigurableOperationInput = {
|
|
307
|
+
arguments: Array<ConfigArgInput>;
|
|
308
|
+
code: Scalars['String']['input'];
|
|
309
|
+
};
|
|
310
|
+
export type Coordinate = {
|
|
311
|
+
__typename?: 'Coordinate';
|
|
312
|
+
x: Scalars['Float']['output'];
|
|
313
|
+
y: Scalars['Float']['output'];
|
|
314
|
+
};
|
|
315
|
+
/**
|
|
316
|
+
* A Country of the world which your shop operates in.
|
|
317
|
+
*
|
|
318
|
+
* The `code` field is typically a 2-character ISO code such as "GB", "US", "DE" etc. This code is used in certain inputs such as
|
|
319
|
+
* `UpdateAddressInput` and `CreateAddressInput` to specify the country.
|
|
320
|
+
*/
|
|
321
|
+
export type Country = Node & Region & {
|
|
322
|
+
__typename?: 'Country';
|
|
323
|
+
code: Scalars['String']['output'];
|
|
324
|
+
createdAt: Scalars['DateTime']['output'];
|
|
325
|
+
customFields?: Maybe<Scalars['JSON']['output']>;
|
|
326
|
+
enabled: Scalars['Boolean']['output'];
|
|
327
|
+
id: Scalars['ID']['output'];
|
|
328
|
+
languageCode: LanguageCode;
|
|
329
|
+
name: Scalars['String']['output'];
|
|
330
|
+
parent?: Maybe<Region>;
|
|
331
|
+
parentId?: Maybe<Scalars['ID']['output']>;
|
|
332
|
+
translations: Array<RegionTranslation>;
|
|
333
|
+
type: Scalars['String']['output'];
|
|
334
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
335
|
+
};
|
|
336
|
+
export type CountryList = PaginatedList & {
|
|
337
|
+
__typename?: 'CountryList';
|
|
338
|
+
items: Array<Country>;
|
|
339
|
+
totalItems: Scalars['Int']['output'];
|
|
340
|
+
};
|
|
341
|
+
/** Returned if the provided coupon code is invalid */
|
|
342
|
+
export type CouponCodeExpiredError = ErrorResult & {
|
|
343
|
+
__typename?: 'CouponCodeExpiredError';
|
|
344
|
+
couponCode: Scalars['String']['output'];
|
|
345
|
+
errorCode: ErrorCode;
|
|
346
|
+
message: Scalars['String']['output'];
|
|
347
|
+
};
|
|
348
|
+
/** Returned if the provided coupon code is invalid */
|
|
349
|
+
export type CouponCodeInvalidError = ErrorResult & {
|
|
350
|
+
__typename?: 'CouponCodeInvalidError';
|
|
351
|
+
couponCode: Scalars['String']['output'];
|
|
352
|
+
errorCode: ErrorCode;
|
|
353
|
+
message: Scalars['String']['output'];
|
|
354
|
+
};
|
|
355
|
+
/** Returned if the provided coupon code is invalid */
|
|
356
|
+
export type CouponCodeLimitError = ErrorResult & {
|
|
357
|
+
__typename?: 'CouponCodeLimitError';
|
|
358
|
+
couponCode: Scalars['String']['output'];
|
|
359
|
+
errorCode: ErrorCode;
|
|
360
|
+
limit: Scalars['Int']['output'];
|
|
361
|
+
message: Scalars['String']['output'];
|
|
362
|
+
};
|
|
363
|
+
/**
|
|
364
|
+
* Input used to create an Address.
|
|
365
|
+
*
|
|
366
|
+
* The countryCode must correspond to a `code` property of a Country that has been defined in the
|
|
367
|
+
* Deenruv server. The `code` property is typically a 2-character ISO code such as "GB", "US", "DE" etc.
|
|
368
|
+
* If an invalid code is passed, the mutation will fail.
|
|
369
|
+
*/
|
|
370
|
+
export type CreateAddressInput = {
|
|
371
|
+
city?: InputMaybe<Scalars['String']['input']>;
|
|
372
|
+
company?: InputMaybe<Scalars['String']['input']>;
|
|
373
|
+
countryCode: Scalars['String']['input'];
|
|
374
|
+
customFields?: InputMaybe<Scalars['JSON']['input']>;
|
|
375
|
+
defaultBillingAddress?: InputMaybe<Scalars['Boolean']['input']>;
|
|
376
|
+
defaultShippingAddress?: InputMaybe<Scalars['Boolean']['input']>;
|
|
377
|
+
fullName?: InputMaybe<Scalars['String']['input']>;
|
|
378
|
+
phoneNumber?: InputMaybe<Scalars['String']['input']>;
|
|
379
|
+
postalCode?: InputMaybe<Scalars['String']['input']>;
|
|
380
|
+
province?: InputMaybe<Scalars['String']['input']>;
|
|
381
|
+
streetLine1: Scalars['String']['input'];
|
|
382
|
+
streetLine2?: InputMaybe<Scalars['String']['input']>;
|
|
383
|
+
};
|
|
384
|
+
export type CreateCustomerInput = {
|
|
385
|
+
customFields?: InputMaybe<Scalars['JSON']['input']>;
|
|
386
|
+
emailAddress: Scalars['String']['input'];
|
|
387
|
+
firstName: Scalars['String']['input'];
|
|
388
|
+
lastName: Scalars['String']['input'];
|
|
389
|
+
phoneNumber?: InputMaybe<Scalars['String']['input']>;
|
|
390
|
+
title?: InputMaybe<Scalars['String']['input']>;
|
|
391
|
+
};
|
|
392
|
+
/**
|
|
393
|
+
* @description
|
|
394
|
+
* ISO 4217 currency code
|
|
395
|
+
*
|
|
396
|
+
* @docsCategory common
|
|
397
|
+
*/
|
|
398
|
+
export declare enum CurrencyCode {
|
|
399
|
+
/** United Arab Emirates dirham */
|
|
400
|
+
AED = "AED",
|
|
401
|
+
/** Afghan afghani */
|
|
402
|
+
AFN = "AFN",
|
|
403
|
+
/** Albanian lek */
|
|
404
|
+
ALL = "ALL",
|
|
405
|
+
/** Armenian dram */
|
|
406
|
+
AMD = "AMD",
|
|
407
|
+
/** Netherlands Antillean guilder */
|
|
408
|
+
ANG = "ANG",
|
|
409
|
+
/** Angolan kwanza */
|
|
410
|
+
AOA = "AOA",
|
|
411
|
+
/** Argentine peso */
|
|
412
|
+
ARS = "ARS",
|
|
413
|
+
/** Australian dollar */
|
|
414
|
+
AUD = "AUD",
|
|
415
|
+
/** Aruban florin */
|
|
416
|
+
AWG = "AWG",
|
|
417
|
+
/** Azerbaijani manat */
|
|
418
|
+
AZN = "AZN",
|
|
419
|
+
/** Bosnia and Herzegovina convertible mark */
|
|
420
|
+
BAM = "BAM",
|
|
421
|
+
/** Barbados dollar */
|
|
422
|
+
BBD = "BBD",
|
|
423
|
+
/** Bangladeshi taka */
|
|
424
|
+
BDT = "BDT",
|
|
425
|
+
/** Bulgarian lev */
|
|
426
|
+
BGN = "BGN",
|
|
427
|
+
/** Bahraini dinar */
|
|
428
|
+
BHD = "BHD",
|
|
429
|
+
/** Burundian franc */
|
|
430
|
+
BIF = "BIF",
|
|
431
|
+
/** Bermudian dollar */
|
|
432
|
+
BMD = "BMD",
|
|
433
|
+
/** Brunei dollar */
|
|
434
|
+
BND = "BND",
|
|
435
|
+
/** Boliviano */
|
|
436
|
+
BOB = "BOB",
|
|
437
|
+
/** Brazilian real */
|
|
438
|
+
BRL = "BRL",
|
|
439
|
+
/** Bahamian dollar */
|
|
440
|
+
BSD = "BSD",
|
|
441
|
+
/** Bhutanese ngultrum */
|
|
442
|
+
BTN = "BTN",
|
|
443
|
+
/** Botswana pula */
|
|
444
|
+
BWP = "BWP",
|
|
445
|
+
/** Belarusian ruble */
|
|
446
|
+
BYN = "BYN",
|
|
447
|
+
/** Belize dollar */
|
|
448
|
+
BZD = "BZD",
|
|
449
|
+
/** Canadian dollar */
|
|
450
|
+
CAD = "CAD",
|
|
451
|
+
/** Congolese franc */
|
|
452
|
+
CDF = "CDF",
|
|
453
|
+
/** Swiss franc */
|
|
454
|
+
CHF = "CHF",
|
|
455
|
+
/** Chilean peso */
|
|
456
|
+
CLP = "CLP",
|
|
457
|
+
/** Renminbi (Chinese) yuan */
|
|
458
|
+
CNY = "CNY",
|
|
459
|
+
/** Colombian peso */
|
|
460
|
+
COP = "COP",
|
|
461
|
+
/** Costa Rican colon */
|
|
462
|
+
CRC = "CRC",
|
|
463
|
+
/** Cuban convertible peso */
|
|
464
|
+
CUC = "CUC",
|
|
465
|
+
/** Cuban peso */
|
|
466
|
+
CUP = "CUP",
|
|
467
|
+
/** Cape Verde escudo */
|
|
468
|
+
CVE = "CVE",
|
|
469
|
+
/** Czech koruna */
|
|
470
|
+
CZK = "CZK",
|
|
471
|
+
/** Djiboutian franc */
|
|
472
|
+
DJF = "DJF",
|
|
473
|
+
/** Danish krone */
|
|
474
|
+
DKK = "DKK",
|
|
475
|
+
/** Dominican peso */
|
|
476
|
+
DOP = "DOP",
|
|
477
|
+
/** Algerian dinar */
|
|
478
|
+
DZD = "DZD",
|
|
479
|
+
/** Egyptian pound */
|
|
480
|
+
EGP = "EGP",
|
|
481
|
+
/** Eritrean nakfa */
|
|
482
|
+
ERN = "ERN",
|
|
483
|
+
/** Ethiopian birr */
|
|
484
|
+
ETB = "ETB",
|
|
485
|
+
/** Euro */
|
|
486
|
+
EUR = "EUR",
|
|
487
|
+
/** Fiji dollar */
|
|
488
|
+
FJD = "FJD",
|
|
489
|
+
/** Falkland Islands pound */
|
|
490
|
+
FKP = "FKP",
|
|
491
|
+
/** Pound sterling */
|
|
492
|
+
GBP = "GBP",
|
|
493
|
+
/** Georgian lari */
|
|
494
|
+
GEL = "GEL",
|
|
495
|
+
/** Ghanaian cedi */
|
|
496
|
+
GHS = "GHS",
|
|
497
|
+
/** Gibraltar pound */
|
|
498
|
+
GIP = "GIP",
|
|
499
|
+
/** Gambian dalasi */
|
|
500
|
+
GMD = "GMD",
|
|
501
|
+
/** Guinean franc */
|
|
502
|
+
GNF = "GNF",
|
|
503
|
+
/** Guatemalan quetzal */
|
|
504
|
+
GTQ = "GTQ",
|
|
505
|
+
/** Guyanese dollar */
|
|
506
|
+
GYD = "GYD",
|
|
507
|
+
/** Hong Kong dollar */
|
|
508
|
+
HKD = "HKD",
|
|
509
|
+
/** Honduran lempira */
|
|
510
|
+
HNL = "HNL",
|
|
511
|
+
/** Croatian kuna */
|
|
512
|
+
HRK = "HRK",
|
|
513
|
+
/** Haitian gourde */
|
|
514
|
+
HTG = "HTG",
|
|
515
|
+
/** Hungarian forint */
|
|
516
|
+
HUF = "HUF",
|
|
517
|
+
/** Indonesian rupiah */
|
|
518
|
+
IDR = "IDR",
|
|
519
|
+
/** Israeli new shekel */
|
|
520
|
+
ILS = "ILS",
|
|
521
|
+
/** Indian rupee */
|
|
522
|
+
INR = "INR",
|
|
523
|
+
/** Iraqi dinar */
|
|
524
|
+
IQD = "IQD",
|
|
525
|
+
/** Iranian rial */
|
|
526
|
+
IRR = "IRR",
|
|
527
|
+
/** Icelandic króna */
|
|
528
|
+
ISK = "ISK",
|
|
529
|
+
/** Jamaican dollar */
|
|
530
|
+
JMD = "JMD",
|
|
531
|
+
/** Jordanian dinar */
|
|
532
|
+
JOD = "JOD",
|
|
533
|
+
/** Japanese yen */
|
|
534
|
+
JPY = "JPY",
|
|
535
|
+
/** Kenyan shilling */
|
|
536
|
+
KES = "KES",
|
|
537
|
+
/** Kyrgyzstani som */
|
|
538
|
+
KGS = "KGS",
|
|
539
|
+
/** Cambodian riel */
|
|
540
|
+
KHR = "KHR",
|
|
541
|
+
/** Comoro franc */
|
|
542
|
+
KMF = "KMF",
|
|
543
|
+
/** North Korean won */
|
|
544
|
+
KPW = "KPW",
|
|
545
|
+
/** South Korean won */
|
|
546
|
+
KRW = "KRW",
|
|
547
|
+
/** Kuwaiti dinar */
|
|
548
|
+
KWD = "KWD",
|
|
549
|
+
/** Cayman Islands dollar */
|
|
550
|
+
KYD = "KYD",
|
|
551
|
+
/** Kazakhstani tenge */
|
|
552
|
+
KZT = "KZT",
|
|
553
|
+
/** Lao kip */
|
|
554
|
+
LAK = "LAK",
|
|
555
|
+
/** Lebanese pound */
|
|
556
|
+
LBP = "LBP",
|
|
557
|
+
/** Sri Lankan rupee */
|
|
558
|
+
LKR = "LKR",
|
|
559
|
+
/** Liberian dollar */
|
|
560
|
+
LRD = "LRD",
|
|
561
|
+
/** Lesotho loti */
|
|
562
|
+
LSL = "LSL",
|
|
563
|
+
/** Libyan dinar */
|
|
564
|
+
LYD = "LYD",
|
|
565
|
+
/** Moroccan dirham */
|
|
566
|
+
MAD = "MAD",
|
|
567
|
+
/** Moldovan leu */
|
|
568
|
+
MDL = "MDL",
|
|
569
|
+
/** Malagasy ariary */
|
|
570
|
+
MGA = "MGA",
|
|
571
|
+
/** Macedonian denar */
|
|
572
|
+
MKD = "MKD",
|
|
573
|
+
/** Myanmar kyat */
|
|
574
|
+
MMK = "MMK",
|
|
575
|
+
/** Mongolian tögrög */
|
|
576
|
+
MNT = "MNT",
|
|
577
|
+
/** Macanese pataca */
|
|
578
|
+
MOP = "MOP",
|
|
579
|
+
/** Mauritanian ouguiya */
|
|
580
|
+
MRU = "MRU",
|
|
581
|
+
/** Mauritian rupee */
|
|
582
|
+
MUR = "MUR",
|
|
583
|
+
/** Maldivian rufiyaa */
|
|
584
|
+
MVR = "MVR",
|
|
585
|
+
/** Malawian kwacha */
|
|
586
|
+
MWK = "MWK",
|
|
587
|
+
/** Mexican peso */
|
|
588
|
+
MXN = "MXN",
|
|
589
|
+
/** Malaysian ringgit */
|
|
590
|
+
MYR = "MYR",
|
|
591
|
+
/** Mozambican metical */
|
|
592
|
+
MZN = "MZN",
|
|
593
|
+
/** Namibian dollar */
|
|
594
|
+
NAD = "NAD",
|
|
595
|
+
/** Nigerian naira */
|
|
596
|
+
NGN = "NGN",
|
|
597
|
+
/** Nicaraguan córdoba */
|
|
598
|
+
NIO = "NIO",
|
|
599
|
+
/** Norwegian krone */
|
|
600
|
+
NOK = "NOK",
|
|
601
|
+
/** Nepalese rupee */
|
|
602
|
+
NPR = "NPR",
|
|
603
|
+
/** New Zealand dollar */
|
|
604
|
+
NZD = "NZD",
|
|
605
|
+
/** Omani rial */
|
|
606
|
+
OMR = "OMR",
|
|
607
|
+
/** Panamanian balboa */
|
|
608
|
+
PAB = "PAB",
|
|
609
|
+
/** Peruvian sol */
|
|
610
|
+
PEN = "PEN",
|
|
611
|
+
/** Papua New Guinean kina */
|
|
612
|
+
PGK = "PGK",
|
|
613
|
+
/** Philippine peso */
|
|
614
|
+
PHP = "PHP",
|
|
615
|
+
/** Pakistani rupee */
|
|
616
|
+
PKR = "PKR",
|
|
617
|
+
/** Polish złoty */
|
|
618
|
+
PLN = "PLN",
|
|
619
|
+
/** Paraguayan guaraní */
|
|
620
|
+
PYG = "PYG",
|
|
621
|
+
/** Qatari riyal */
|
|
622
|
+
QAR = "QAR",
|
|
623
|
+
/** Romanian leu */
|
|
624
|
+
RON = "RON",
|
|
625
|
+
/** Serbian dinar */
|
|
626
|
+
RSD = "RSD",
|
|
627
|
+
/** Russian ruble */
|
|
628
|
+
RUB = "RUB",
|
|
629
|
+
/** Rwandan franc */
|
|
630
|
+
RWF = "RWF",
|
|
631
|
+
/** Saudi riyal */
|
|
632
|
+
SAR = "SAR",
|
|
633
|
+
/** Solomon Islands dollar */
|
|
634
|
+
SBD = "SBD",
|
|
635
|
+
/** Seychelles rupee */
|
|
636
|
+
SCR = "SCR",
|
|
637
|
+
/** Sudanese pound */
|
|
638
|
+
SDG = "SDG",
|
|
639
|
+
/** Swedish krona/kronor */
|
|
640
|
+
SEK = "SEK",
|
|
641
|
+
/** Singapore dollar */
|
|
642
|
+
SGD = "SGD",
|
|
643
|
+
/** Saint Helena pound */
|
|
644
|
+
SHP = "SHP",
|
|
645
|
+
/** Sierra Leonean leone */
|
|
646
|
+
SLL = "SLL",
|
|
647
|
+
/** Somali shilling */
|
|
648
|
+
SOS = "SOS",
|
|
649
|
+
/** Surinamese dollar */
|
|
650
|
+
SRD = "SRD",
|
|
651
|
+
/** South Sudanese pound */
|
|
652
|
+
SSP = "SSP",
|
|
653
|
+
/** São Tomé and Príncipe dobra */
|
|
654
|
+
STN = "STN",
|
|
655
|
+
/** Salvadoran colón */
|
|
656
|
+
SVC = "SVC",
|
|
657
|
+
/** Syrian pound */
|
|
658
|
+
SYP = "SYP",
|
|
659
|
+
/** Swazi lilangeni */
|
|
660
|
+
SZL = "SZL",
|
|
661
|
+
/** Thai baht */
|
|
662
|
+
THB = "THB",
|
|
663
|
+
/** Tajikistani somoni */
|
|
664
|
+
TJS = "TJS",
|
|
665
|
+
/** Turkmenistan manat */
|
|
666
|
+
TMT = "TMT",
|
|
667
|
+
/** Tunisian dinar */
|
|
668
|
+
TND = "TND",
|
|
669
|
+
/** Tongan paʻanga */
|
|
670
|
+
TOP = "TOP",
|
|
671
|
+
/** Turkish lira */
|
|
672
|
+
TRY = "TRY",
|
|
673
|
+
/** Trinidad and Tobago dollar */
|
|
674
|
+
TTD = "TTD",
|
|
675
|
+
/** New Taiwan dollar */
|
|
676
|
+
TWD = "TWD",
|
|
677
|
+
/** Tanzanian shilling */
|
|
678
|
+
TZS = "TZS",
|
|
679
|
+
/** Ukrainian hryvnia */
|
|
680
|
+
UAH = "UAH",
|
|
681
|
+
/** Ugandan shilling */
|
|
682
|
+
UGX = "UGX",
|
|
683
|
+
/** United States dollar */
|
|
684
|
+
USD = "USD",
|
|
685
|
+
/** Uruguayan peso */
|
|
686
|
+
UYU = "UYU",
|
|
687
|
+
/** Uzbekistan som */
|
|
688
|
+
UZS = "UZS",
|
|
689
|
+
/** Venezuelan bolívar soberano */
|
|
690
|
+
VES = "VES",
|
|
691
|
+
/** Vietnamese đồng */
|
|
692
|
+
VND = "VND",
|
|
693
|
+
/** Vanuatu vatu */
|
|
694
|
+
VUV = "VUV",
|
|
695
|
+
/** Samoan tala */
|
|
696
|
+
WST = "WST",
|
|
697
|
+
/** CFA franc BEAC */
|
|
698
|
+
XAF = "XAF",
|
|
699
|
+
/** East Caribbean dollar */
|
|
700
|
+
XCD = "XCD",
|
|
701
|
+
/** CFA franc BCEAO */
|
|
702
|
+
XOF = "XOF",
|
|
703
|
+
/** CFP franc (franc Pacifique) */
|
|
704
|
+
XPF = "XPF",
|
|
705
|
+
/** Yemeni rial */
|
|
706
|
+
YER = "YER",
|
|
707
|
+
/** South African rand */
|
|
708
|
+
ZAR = "ZAR",
|
|
709
|
+
/** Zambian kwacha */
|
|
710
|
+
ZMW = "ZMW",
|
|
711
|
+
/** Zimbabwean dollar */
|
|
712
|
+
ZWL = "ZWL"
|
|
713
|
+
}
|
|
714
|
+
export type CurrentUser = {
|
|
715
|
+
__typename?: 'CurrentUser';
|
|
716
|
+
channels: Array<CurrentUserChannel>;
|
|
717
|
+
id: Scalars['ID']['output'];
|
|
718
|
+
identifier: Scalars['String']['output'];
|
|
719
|
+
};
|
|
720
|
+
export type CurrentUserChannel = {
|
|
721
|
+
__typename?: 'CurrentUserChannel';
|
|
722
|
+
code: Scalars['String']['output'];
|
|
723
|
+
id: Scalars['ID']['output'];
|
|
724
|
+
permissions: Array<Permission>;
|
|
725
|
+
token: Scalars['String']['output'];
|
|
726
|
+
};
|
|
727
|
+
export type CustomField = {
|
|
728
|
+
description?: Maybe<Array<LocalizedString>>;
|
|
729
|
+
internal?: Maybe<Scalars['Boolean']['output']>;
|
|
730
|
+
label?: Maybe<Array<LocalizedString>>;
|
|
731
|
+
list: Scalars['Boolean']['output'];
|
|
732
|
+
name: Scalars['String']['output'];
|
|
733
|
+
nullable?: Maybe<Scalars['Boolean']['output']>;
|
|
734
|
+
readonly?: Maybe<Scalars['Boolean']['output']>;
|
|
735
|
+
requiresPermission?: Maybe<Array<Permission>>;
|
|
736
|
+
type: Scalars['String']['output'];
|
|
737
|
+
ui?: Maybe<Scalars['JSON']['output']>;
|
|
738
|
+
};
|
|
739
|
+
export type CustomFieldConfig = BooleanCustomFieldConfig | DateTimeCustomFieldConfig | FloatCustomFieldConfig | IntCustomFieldConfig | LocaleStringCustomFieldConfig | LocaleTextCustomFieldConfig | RelationCustomFieldConfig | StringCustomFieldConfig | TextCustomFieldConfig;
|
|
740
|
+
export type Customer = Node & {
|
|
741
|
+
__typename?: 'Customer';
|
|
742
|
+
addresses?: Maybe<Array<Address>>;
|
|
743
|
+
createdAt: Scalars['DateTime']['output'];
|
|
744
|
+
customFields?: Maybe<Scalars['JSON']['output']>;
|
|
745
|
+
emailAddress: Scalars['String']['output'];
|
|
746
|
+
firstName: Scalars['String']['output'];
|
|
747
|
+
id: Scalars['ID']['output'];
|
|
748
|
+
lastName: Scalars['String']['output'];
|
|
749
|
+
orders: OrderList;
|
|
750
|
+
phoneNumber?: Maybe<Scalars['String']['output']>;
|
|
751
|
+
title?: Maybe<Scalars['String']['output']>;
|
|
752
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
753
|
+
user?: Maybe<User>;
|
|
754
|
+
};
|
|
755
|
+
export type CustomerOrdersArgs = {
|
|
756
|
+
options?: InputMaybe<OrderListOptions>;
|
|
757
|
+
};
|
|
758
|
+
export type CustomerFilterParameter = {
|
|
759
|
+
_and?: InputMaybe<Array<CustomerFilterParameter>>;
|
|
760
|
+
_or?: InputMaybe<Array<CustomerFilterParameter>>;
|
|
761
|
+
createdAt?: InputMaybe<DateOperators>;
|
|
762
|
+
emailAddress?: InputMaybe<StringOperators>;
|
|
763
|
+
firstName?: InputMaybe<StringOperators>;
|
|
764
|
+
id?: InputMaybe<IdOperators>;
|
|
765
|
+
lastName?: InputMaybe<StringOperators>;
|
|
766
|
+
phoneNumber?: InputMaybe<StringOperators>;
|
|
767
|
+
title?: InputMaybe<StringOperators>;
|
|
768
|
+
updatedAt?: InputMaybe<DateOperators>;
|
|
769
|
+
};
|
|
770
|
+
export type CustomerGroup = Node & {
|
|
771
|
+
__typename?: 'CustomerGroup';
|
|
772
|
+
createdAt: Scalars['DateTime']['output'];
|
|
773
|
+
customFields?: Maybe<Scalars['JSON']['output']>;
|
|
774
|
+
customers: CustomerList;
|
|
775
|
+
id: Scalars['ID']['output'];
|
|
776
|
+
name: Scalars['String']['output'];
|
|
777
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
778
|
+
};
|
|
779
|
+
export type CustomerGroupCustomersArgs = {
|
|
780
|
+
options?: InputMaybe<CustomerListOptions>;
|
|
781
|
+
};
|
|
782
|
+
export type CustomerList = PaginatedList & {
|
|
783
|
+
__typename?: 'CustomerList';
|
|
784
|
+
items: Array<Customer>;
|
|
785
|
+
totalItems: Scalars['Int']['output'];
|
|
786
|
+
};
|
|
787
|
+
export type CustomerListOptions = {
|
|
788
|
+
/** Allows the results to be filtered */
|
|
789
|
+
filter?: InputMaybe<CustomerFilterParameter>;
|
|
790
|
+
/** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */
|
|
791
|
+
filterOperator?: InputMaybe<LogicalOperator>;
|
|
792
|
+
/** Skips the first n results, for use in pagination */
|
|
793
|
+
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
794
|
+
/** Specifies which properties to sort the results by */
|
|
795
|
+
sort?: InputMaybe<CustomerSortParameter>;
|
|
796
|
+
/** Takes n results, for use in pagination */
|
|
797
|
+
take?: InputMaybe<Scalars['Int']['input']>;
|
|
798
|
+
};
|
|
799
|
+
export type CustomerSortParameter = {
|
|
800
|
+
createdAt?: InputMaybe<SortOrder>;
|
|
801
|
+
emailAddress?: InputMaybe<SortOrder>;
|
|
802
|
+
firstName?: InputMaybe<SortOrder>;
|
|
803
|
+
id?: InputMaybe<SortOrder>;
|
|
804
|
+
lastName?: InputMaybe<SortOrder>;
|
|
805
|
+
phoneNumber?: InputMaybe<SortOrder>;
|
|
806
|
+
title?: InputMaybe<SortOrder>;
|
|
807
|
+
updatedAt?: InputMaybe<SortOrder>;
|
|
808
|
+
};
|
|
809
|
+
/** Operators for filtering on a list of Date fields */
|
|
810
|
+
export type DateListOperators = {
|
|
811
|
+
inList: Scalars['DateTime']['input'];
|
|
812
|
+
};
|
|
813
|
+
/** Operators for filtering on a DateTime field */
|
|
814
|
+
export type DateOperators = {
|
|
815
|
+
after?: InputMaybe<Scalars['DateTime']['input']>;
|
|
816
|
+
before?: InputMaybe<Scalars['DateTime']['input']>;
|
|
817
|
+
between?: InputMaybe<DateRange>;
|
|
818
|
+
eq?: InputMaybe<Scalars['DateTime']['input']>;
|
|
819
|
+
isNull?: InputMaybe<Scalars['Boolean']['input']>;
|
|
820
|
+
};
|
|
821
|
+
export type DateRange = {
|
|
822
|
+
end: Scalars['DateTime']['input'];
|
|
823
|
+
start: Scalars['DateTime']['input'];
|
|
824
|
+
};
|
|
825
|
+
/**
|
|
826
|
+
* Expects the same validation formats as the `<input type="datetime-local">` HTML element.
|
|
827
|
+
* See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local#Additional_attributes
|
|
828
|
+
*/
|
|
829
|
+
export type DateTimeCustomFieldConfig = CustomField & {
|
|
830
|
+
__typename?: 'DateTimeCustomFieldConfig';
|
|
831
|
+
description?: Maybe<Array<LocalizedString>>;
|
|
832
|
+
internal?: Maybe<Scalars['Boolean']['output']>;
|
|
833
|
+
label?: Maybe<Array<LocalizedString>>;
|
|
834
|
+
list: Scalars['Boolean']['output'];
|
|
835
|
+
max?: Maybe<Scalars['String']['output']>;
|
|
836
|
+
min?: Maybe<Scalars['String']['output']>;
|
|
837
|
+
name: Scalars['String']['output'];
|
|
838
|
+
nullable?: Maybe<Scalars['Boolean']['output']>;
|
|
839
|
+
readonly?: Maybe<Scalars['Boolean']['output']>;
|
|
840
|
+
requiresPermission?: Maybe<Array<Permission>>;
|
|
841
|
+
step?: Maybe<Scalars['Int']['output']>;
|
|
842
|
+
type: Scalars['String']['output'];
|
|
843
|
+
ui?: Maybe<Scalars['JSON']['output']>;
|
|
844
|
+
};
|
|
845
|
+
export type DeletionResponse = {
|
|
846
|
+
__typename?: 'DeletionResponse';
|
|
847
|
+
message?: Maybe<Scalars['String']['output']>;
|
|
848
|
+
result: DeletionResult;
|
|
849
|
+
};
|
|
850
|
+
export declare enum DeletionResult {
|
|
851
|
+
/** The entity was successfully deleted */
|
|
852
|
+
DELETED = "DELETED",
|
|
853
|
+
/** Deletion did not take place, reason given in message */
|
|
854
|
+
NOT_DELETED = "NOT_DELETED"
|
|
855
|
+
}
|
|
856
|
+
export type Discount = {
|
|
857
|
+
__typename?: 'Discount';
|
|
858
|
+
adjustmentSource: Scalars['String']['output'];
|
|
859
|
+
amount: Scalars['Money']['output'];
|
|
860
|
+
amountWithTax: Scalars['Money']['output'];
|
|
861
|
+
description: Scalars['String']['output'];
|
|
862
|
+
type: AdjustmentType;
|
|
863
|
+
};
|
|
864
|
+
/** Returned when attempting to create a Customer with an email address already registered to an existing User. */
|
|
865
|
+
export type EmailAddressConflictError = ErrorResult & {
|
|
866
|
+
__typename?: 'EmailAddressConflictError';
|
|
867
|
+
errorCode: ErrorCode;
|
|
868
|
+
message: Scalars['String']['output'];
|
|
869
|
+
};
|
|
870
|
+
export declare enum ErrorCode {
|
|
871
|
+
ALREADY_LOGGED_IN_ERROR = "ALREADY_LOGGED_IN_ERROR",
|
|
872
|
+
COUPON_CODE_EXPIRED_ERROR = "COUPON_CODE_EXPIRED_ERROR",
|
|
873
|
+
COUPON_CODE_INVALID_ERROR = "COUPON_CODE_INVALID_ERROR",
|
|
874
|
+
COUPON_CODE_LIMIT_ERROR = "COUPON_CODE_LIMIT_ERROR",
|
|
875
|
+
EMAIL_ADDRESS_CONFLICT_ERROR = "EMAIL_ADDRESS_CONFLICT_ERROR",
|
|
876
|
+
GUEST_CHECKOUT_ERROR = "GUEST_CHECKOUT_ERROR",
|
|
877
|
+
IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR = "IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR",
|
|
878
|
+
IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR = "IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR",
|
|
879
|
+
INELIGIBLE_PAYMENT_METHOD_ERROR = "INELIGIBLE_PAYMENT_METHOD_ERROR",
|
|
880
|
+
INELIGIBLE_SHIPPING_METHOD_ERROR = "INELIGIBLE_SHIPPING_METHOD_ERROR",
|
|
881
|
+
INSUFFICIENT_STOCK_ERROR = "INSUFFICIENT_STOCK_ERROR",
|
|
882
|
+
INVALID_CREDENTIALS_ERROR = "INVALID_CREDENTIALS_ERROR",
|
|
883
|
+
MISSING_PASSWORD_ERROR = "MISSING_PASSWORD_ERROR",
|
|
884
|
+
NATIVE_AUTH_STRATEGY_ERROR = "NATIVE_AUTH_STRATEGY_ERROR",
|
|
885
|
+
NEGATIVE_QUANTITY_ERROR = "NEGATIVE_QUANTITY_ERROR",
|
|
886
|
+
NOT_VERIFIED_ERROR = "NOT_VERIFIED_ERROR",
|
|
887
|
+
NO_ACTIVE_ORDER_ERROR = "NO_ACTIVE_ORDER_ERROR",
|
|
888
|
+
ORDER_LIMIT_ERROR = "ORDER_LIMIT_ERROR",
|
|
889
|
+
ORDER_MIDDLEWARE_ERROR = "ORDER_MIDDLEWARE_ERROR",
|
|
890
|
+
ORDER_MODIFICATION_ERROR = "ORDER_MODIFICATION_ERROR",
|
|
891
|
+
ORDER_PAYMENT_STATE_ERROR = "ORDER_PAYMENT_STATE_ERROR",
|
|
892
|
+
ORDER_STATE_TRANSITION_ERROR = "ORDER_STATE_TRANSITION_ERROR",
|
|
893
|
+
PASSWORD_ALREADY_SET_ERROR = "PASSWORD_ALREADY_SET_ERROR",
|
|
894
|
+
PASSWORD_RESET_TOKEN_EXPIRED_ERROR = "PASSWORD_RESET_TOKEN_EXPIRED_ERROR",
|
|
895
|
+
PASSWORD_RESET_TOKEN_INVALID_ERROR = "PASSWORD_RESET_TOKEN_INVALID_ERROR",
|
|
896
|
+
PASSWORD_VALIDATION_ERROR = "PASSWORD_VALIDATION_ERROR",
|
|
897
|
+
PAYMENT_DECLINED_ERROR = "PAYMENT_DECLINED_ERROR",
|
|
898
|
+
PAYMENT_FAILED_ERROR = "PAYMENT_FAILED_ERROR",
|
|
899
|
+
UNKNOWN_ERROR = "UNKNOWN_ERROR",
|
|
900
|
+
VERIFICATION_TOKEN_EXPIRED_ERROR = "VERIFICATION_TOKEN_EXPIRED_ERROR",
|
|
901
|
+
VERIFICATION_TOKEN_INVALID_ERROR = "VERIFICATION_TOKEN_INVALID_ERROR"
|
|
902
|
+
}
|
|
903
|
+
export type ErrorResult = {
|
|
904
|
+
errorCode: ErrorCode;
|
|
905
|
+
message: Scalars['String']['output'];
|
|
906
|
+
};
|
|
907
|
+
export type Facet = Node & {
|
|
908
|
+
__typename?: 'Facet';
|
|
909
|
+
code: Scalars['String']['output'];
|
|
910
|
+
createdAt: Scalars['DateTime']['output'];
|
|
911
|
+
customFields?: Maybe<Scalars['JSON']['output']>;
|
|
912
|
+
id: Scalars['ID']['output'];
|
|
913
|
+
languageCode: LanguageCode;
|
|
914
|
+
name: Scalars['String']['output'];
|
|
915
|
+
translations: Array<FacetTranslation>;
|
|
916
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
917
|
+
/** Returns a paginated, sortable, filterable list of the Facet's values. Added in v2.1.0. */
|
|
918
|
+
valueList: FacetValueList;
|
|
919
|
+
values: Array<FacetValue>;
|
|
920
|
+
};
|
|
921
|
+
export type FacetValueListArgs = {
|
|
922
|
+
options?: InputMaybe<FacetValueListOptions>;
|
|
923
|
+
};
|
|
924
|
+
export type FacetFilterParameter = {
|
|
925
|
+
_and?: InputMaybe<Array<FacetFilterParameter>>;
|
|
926
|
+
_or?: InputMaybe<Array<FacetFilterParameter>>;
|
|
927
|
+
code?: InputMaybe<StringOperators>;
|
|
928
|
+
createdAt?: InputMaybe<DateOperators>;
|
|
929
|
+
id?: InputMaybe<IdOperators>;
|
|
930
|
+
languageCode?: InputMaybe<StringOperators>;
|
|
931
|
+
name?: InputMaybe<StringOperators>;
|
|
932
|
+
updatedAt?: InputMaybe<DateOperators>;
|
|
933
|
+
};
|
|
934
|
+
export type FacetList = PaginatedList & {
|
|
935
|
+
__typename?: 'FacetList';
|
|
936
|
+
items: Array<Facet>;
|
|
937
|
+
totalItems: Scalars['Int']['output'];
|
|
938
|
+
};
|
|
939
|
+
export type FacetListOptions = {
|
|
940
|
+
/** Allows the results to be filtered */
|
|
941
|
+
filter?: InputMaybe<FacetFilterParameter>;
|
|
942
|
+
/** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */
|
|
943
|
+
filterOperator?: InputMaybe<LogicalOperator>;
|
|
944
|
+
/** Skips the first n results, for use in pagination */
|
|
945
|
+
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
946
|
+
/** Specifies which properties to sort the results by */
|
|
947
|
+
sort?: InputMaybe<FacetSortParameter>;
|
|
948
|
+
/** Takes n results, for use in pagination */
|
|
949
|
+
take?: InputMaybe<Scalars['Int']['input']>;
|
|
950
|
+
};
|
|
951
|
+
export type FacetSortParameter = {
|
|
952
|
+
code?: InputMaybe<SortOrder>;
|
|
953
|
+
createdAt?: InputMaybe<SortOrder>;
|
|
954
|
+
id?: InputMaybe<SortOrder>;
|
|
955
|
+
name?: InputMaybe<SortOrder>;
|
|
956
|
+
updatedAt?: InputMaybe<SortOrder>;
|
|
957
|
+
};
|
|
958
|
+
export type FacetTranslation = {
|
|
959
|
+
__typename?: 'FacetTranslation';
|
|
960
|
+
createdAt: Scalars['DateTime']['output'];
|
|
961
|
+
id: Scalars['ID']['output'];
|
|
962
|
+
languageCode: LanguageCode;
|
|
963
|
+
name: Scalars['String']['output'];
|
|
964
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
965
|
+
};
|
|
966
|
+
export type FacetValue = Node & {
|
|
967
|
+
__typename?: 'FacetValue';
|
|
968
|
+
code: Scalars['String']['output'];
|
|
969
|
+
createdAt: Scalars['DateTime']['output'];
|
|
970
|
+
customFields?: Maybe<Scalars['JSON']['output']>;
|
|
971
|
+
facet: Facet;
|
|
972
|
+
facetId: Scalars['ID']['output'];
|
|
973
|
+
id: Scalars['ID']['output'];
|
|
974
|
+
languageCode: LanguageCode;
|
|
975
|
+
name: Scalars['String']['output'];
|
|
976
|
+
translations: Array<FacetValueTranslation>;
|
|
977
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
978
|
+
};
|
|
979
|
+
/**
|
|
980
|
+
* Used to construct boolean expressions for filtering search results
|
|
981
|
+
* by FacetValue ID. Examples:
|
|
982
|
+
*
|
|
983
|
+
* * ID=1 OR ID=2: `{ facetValueFilters: [{ or: [1,2] }] }`
|
|
984
|
+
* * ID=1 AND ID=2: `{ facetValueFilters: [{ and: 1 }, { and: 2 }] }`
|
|
985
|
+
* * ID=1 AND (ID=2 OR ID=3): `{ facetValueFilters: [{ and: 1 }, { or: [2,3] }] }`
|
|
986
|
+
*/
|
|
987
|
+
export type FacetValueFilterInput = {
|
|
988
|
+
and?: InputMaybe<Scalars['ID']['input']>;
|
|
989
|
+
or?: InputMaybe<Array<Scalars['ID']['input']>>;
|
|
990
|
+
};
|
|
991
|
+
export type FacetValueFilterParameter = {
|
|
992
|
+
_and?: InputMaybe<Array<FacetValueFilterParameter>>;
|
|
993
|
+
_or?: InputMaybe<Array<FacetValueFilterParameter>>;
|
|
994
|
+
code?: InputMaybe<StringOperators>;
|
|
995
|
+
createdAt?: InputMaybe<DateOperators>;
|
|
996
|
+
facetId?: InputMaybe<IdOperators>;
|
|
997
|
+
id?: InputMaybe<IdOperators>;
|
|
998
|
+
languageCode?: InputMaybe<StringOperators>;
|
|
999
|
+
name?: InputMaybe<StringOperators>;
|
|
1000
|
+
updatedAt?: InputMaybe<DateOperators>;
|
|
1001
|
+
};
|
|
1002
|
+
export type FacetValueList = PaginatedList & {
|
|
1003
|
+
__typename?: 'FacetValueList';
|
|
1004
|
+
items: Array<FacetValue>;
|
|
1005
|
+
totalItems: Scalars['Int']['output'];
|
|
1006
|
+
};
|
|
1007
|
+
export type FacetValueListOptions = {
|
|
1008
|
+
/** Allows the results to be filtered */
|
|
1009
|
+
filter?: InputMaybe<FacetValueFilterParameter>;
|
|
1010
|
+
/** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */
|
|
1011
|
+
filterOperator?: InputMaybe<LogicalOperator>;
|
|
1012
|
+
/** Skips the first n results, for use in pagination */
|
|
1013
|
+
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
1014
|
+
/** Specifies which properties to sort the results by */
|
|
1015
|
+
sort?: InputMaybe<FacetValueSortParameter>;
|
|
1016
|
+
/** Takes n results, for use in pagination */
|
|
1017
|
+
take?: InputMaybe<Scalars['Int']['input']>;
|
|
1018
|
+
};
|
|
1019
|
+
/**
|
|
1020
|
+
* Which FacetValues are present in the products returned
|
|
1021
|
+
* by the search, and in what quantity.
|
|
1022
|
+
*/
|
|
1023
|
+
export type FacetValueResult = {
|
|
1024
|
+
__typename?: 'FacetValueResult';
|
|
1025
|
+
count: Scalars['Int']['output'];
|
|
1026
|
+
facetValue: FacetValue;
|
|
1027
|
+
};
|
|
1028
|
+
export type FacetValueSortParameter = {
|
|
1029
|
+
code?: InputMaybe<SortOrder>;
|
|
1030
|
+
createdAt?: InputMaybe<SortOrder>;
|
|
1031
|
+
facetId?: InputMaybe<SortOrder>;
|
|
1032
|
+
id?: InputMaybe<SortOrder>;
|
|
1033
|
+
name?: InputMaybe<SortOrder>;
|
|
1034
|
+
updatedAt?: InputMaybe<SortOrder>;
|
|
1035
|
+
};
|
|
1036
|
+
export type FacetValueTranslation = {
|
|
1037
|
+
__typename?: 'FacetValueTranslation';
|
|
1038
|
+
createdAt: Scalars['DateTime']['output'];
|
|
1039
|
+
id: Scalars['ID']['output'];
|
|
1040
|
+
languageCode: LanguageCode;
|
|
1041
|
+
name: Scalars['String']['output'];
|
|
1042
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
1043
|
+
};
|
|
1044
|
+
export type FloatCustomFieldConfig = CustomField & {
|
|
1045
|
+
__typename?: 'FloatCustomFieldConfig';
|
|
1046
|
+
description?: Maybe<Array<LocalizedString>>;
|
|
1047
|
+
internal?: Maybe<Scalars['Boolean']['output']>;
|
|
1048
|
+
label?: Maybe<Array<LocalizedString>>;
|
|
1049
|
+
list: Scalars['Boolean']['output'];
|
|
1050
|
+
max?: Maybe<Scalars['Float']['output']>;
|
|
1051
|
+
min?: Maybe<Scalars['Float']['output']>;
|
|
1052
|
+
name: Scalars['String']['output'];
|
|
1053
|
+
nullable?: Maybe<Scalars['Boolean']['output']>;
|
|
1054
|
+
readonly?: Maybe<Scalars['Boolean']['output']>;
|
|
1055
|
+
requiresPermission?: Maybe<Array<Permission>>;
|
|
1056
|
+
step?: Maybe<Scalars['Float']['output']>;
|
|
1057
|
+
type: Scalars['String']['output'];
|
|
1058
|
+
ui?: Maybe<Scalars['JSON']['output']>;
|
|
1059
|
+
};
|
|
1060
|
+
export type Fulfillment = Node & {
|
|
1061
|
+
__typename?: 'Fulfillment';
|
|
1062
|
+
createdAt: Scalars['DateTime']['output'];
|
|
1063
|
+
customFields?: Maybe<Scalars['JSON']['output']>;
|
|
1064
|
+
id: Scalars['ID']['output'];
|
|
1065
|
+
lines: Array<FulfillmentLine>;
|
|
1066
|
+
method: Scalars['String']['output'];
|
|
1067
|
+
state: Scalars['String']['output'];
|
|
1068
|
+
/** @deprecated Use the `lines` field instead */
|
|
1069
|
+
summary: Array<FulfillmentLine>;
|
|
1070
|
+
trackingCode?: Maybe<Scalars['String']['output']>;
|
|
1071
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
1072
|
+
};
|
|
1073
|
+
export type FulfillmentLine = {
|
|
1074
|
+
__typename?: 'FulfillmentLine';
|
|
1075
|
+
fulfillment: Fulfillment;
|
|
1076
|
+
fulfillmentId: Scalars['ID']['output'];
|
|
1077
|
+
orderLine: OrderLine;
|
|
1078
|
+
orderLineId: Scalars['ID']['output'];
|
|
1079
|
+
quantity: Scalars['Int']['output'];
|
|
1080
|
+
};
|
|
1081
|
+
export declare enum GlobalFlag {
|
|
1082
|
+
FALSE = "FALSE",
|
|
1083
|
+
INHERIT = "INHERIT",
|
|
1084
|
+
TRUE = "TRUE"
|
|
1085
|
+
}
|
|
1086
|
+
/** Returned when attempting to set the Customer on a guest checkout when the configured GuestCheckoutStrategy does not allow it. */
|
|
1087
|
+
export type GuestCheckoutError = ErrorResult & {
|
|
1088
|
+
__typename?: 'GuestCheckoutError';
|
|
1089
|
+
errorCode: ErrorCode;
|
|
1090
|
+
errorDetail: Scalars['String']['output'];
|
|
1091
|
+
message: Scalars['String']['output'];
|
|
1092
|
+
};
|
|
1093
|
+
export type HistoryEntry = Node & {
|
|
1094
|
+
__typename?: 'HistoryEntry';
|
|
1095
|
+
createdAt: Scalars['DateTime']['output'];
|
|
1096
|
+
data: Scalars['JSON']['output'];
|
|
1097
|
+
id: Scalars['ID']['output'];
|
|
1098
|
+
type: HistoryEntryType;
|
|
1099
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
1100
|
+
};
|
|
1101
|
+
export type HistoryEntryFilterParameter = {
|
|
1102
|
+
_and?: InputMaybe<Array<HistoryEntryFilterParameter>>;
|
|
1103
|
+
_or?: InputMaybe<Array<HistoryEntryFilterParameter>>;
|
|
1104
|
+
createdAt?: InputMaybe<DateOperators>;
|
|
1105
|
+
id?: InputMaybe<IdOperators>;
|
|
1106
|
+
type?: InputMaybe<StringOperators>;
|
|
1107
|
+
updatedAt?: InputMaybe<DateOperators>;
|
|
1108
|
+
};
|
|
1109
|
+
export type HistoryEntryList = PaginatedList & {
|
|
1110
|
+
__typename?: 'HistoryEntryList';
|
|
1111
|
+
items: Array<HistoryEntry>;
|
|
1112
|
+
totalItems: Scalars['Int']['output'];
|
|
1113
|
+
};
|
|
1114
|
+
export type HistoryEntryListOptions = {
|
|
1115
|
+
/** Allows the results to be filtered */
|
|
1116
|
+
filter?: InputMaybe<HistoryEntryFilterParameter>;
|
|
1117
|
+
/** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */
|
|
1118
|
+
filterOperator?: InputMaybe<LogicalOperator>;
|
|
1119
|
+
/** Skips the first n results, for use in pagination */
|
|
1120
|
+
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
1121
|
+
/** Specifies which properties to sort the results by */
|
|
1122
|
+
sort?: InputMaybe<HistoryEntrySortParameter>;
|
|
1123
|
+
/** Takes n results, for use in pagination */
|
|
1124
|
+
take?: InputMaybe<Scalars['Int']['input']>;
|
|
1125
|
+
};
|
|
1126
|
+
export type HistoryEntrySortParameter = {
|
|
1127
|
+
createdAt?: InputMaybe<SortOrder>;
|
|
1128
|
+
id?: InputMaybe<SortOrder>;
|
|
1129
|
+
updatedAt?: InputMaybe<SortOrder>;
|
|
1130
|
+
};
|
|
1131
|
+
export declare enum HistoryEntryType {
|
|
1132
|
+
CUSTOMER_ADDED_TO_GROUP = "CUSTOMER_ADDED_TO_GROUP",
|
|
1133
|
+
CUSTOMER_ADDRESS_CREATED = "CUSTOMER_ADDRESS_CREATED",
|
|
1134
|
+
CUSTOMER_ADDRESS_DELETED = "CUSTOMER_ADDRESS_DELETED",
|
|
1135
|
+
CUSTOMER_ADDRESS_UPDATED = "CUSTOMER_ADDRESS_UPDATED",
|
|
1136
|
+
CUSTOMER_DETAIL_UPDATED = "CUSTOMER_DETAIL_UPDATED",
|
|
1137
|
+
CUSTOMER_EMAIL_UPDATE_REQUESTED = "CUSTOMER_EMAIL_UPDATE_REQUESTED",
|
|
1138
|
+
CUSTOMER_EMAIL_UPDATE_VERIFIED = "CUSTOMER_EMAIL_UPDATE_VERIFIED",
|
|
1139
|
+
CUSTOMER_NOTE = "CUSTOMER_NOTE",
|
|
1140
|
+
CUSTOMER_PASSWORD_RESET_REQUESTED = "CUSTOMER_PASSWORD_RESET_REQUESTED",
|
|
1141
|
+
CUSTOMER_PASSWORD_RESET_VERIFIED = "CUSTOMER_PASSWORD_RESET_VERIFIED",
|
|
1142
|
+
CUSTOMER_PASSWORD_UPDATED = "CUSTOMER_PASSWORD_UPDATED",
|
|
1143
|
+
CUSTOMER_REGISTERED = "CUSTOMER_REGISTERED",
|
|
1144
|
+
CUSTOMER_REMOVED_FROM_GROUP = "CUSTOMER_REMOVED_FROM_GROUP",
|
|
1145
|
+
CUSTOMER_VERIFIED = "CUSTOMER_VERIFIED",
|
|
1146
|
+
ORDER_CANCELLATION = "ORDER_CANCELLATION",
|
|
1147
|
+
ORDER_COUPON_APPLIED = "ORDER_COUPON_APPLIED",
|
|
1148
|
+
ORDER_COUPON_REMOVED = "ORDER_COUPON_REMOVED",
|
|
1149
|
+
ORDER_CUSTOMER_UPDATED = "ORDER_CUSTOMER_UPDATED",
|
|
1150
|
+
ORDER_FULFILLMENT = "ORDER_FULFILLMENT",
|
|
1151
|
+
ORDER_FULFILLMENT_TRANSITION = "ORDER_FULFILLMENT_TRANSITION",
|
|
1152
|
+
ORDER_MODIFIED = "ORDER_MODIFIED",
|
|
1153
|
+
ORDER_NOTE = "ORDER_NOTE",
|
|
1154
|
+
ORDER_PAYMENT_TRANSITION = "ORDER_PAYMENT_TRANSITION",
|
|
1155
|
+
ORDER_REFUND_TRANSITION = "ORDER_REFUND_TRANSITION",
|
|
1156
|
+
ORDER_STATE_TRANSITION = "ORDER_STATE_TRANSITION"
|
|
1157
|
+
}
|
|
1158
|
+
/** Operators for filtering on a list of ID fields */
|
|
1159
|
+
export type IdListOperators = {
|
|
1160
|
+
inList: Scalars['ID']['input'];
|
|
1161
|
+
};
|
|
1162
|
+
/** Operators for filtering on an ID field */
|
|
1163
|
+
export type IdOperators = {
|
|
1164
|
+
eq?: InputMaybe<Scalars['String']['input']>;
|
|
1165
|
+
in?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
1166
|
+
isNull?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1167
|
+
notEq?: InputMaybe<Scalars['String']['input']>;
|
|
1168
|
+
notIn?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
1169
|
+
};
|
|
1170
|
+
/**
|
|
1171
|
+
* Returned if the token used to change a Customer's email address is valid, but has
|
|
1172
|
+
* expired according to the `verificationTokenDuration` setting in the AuthOptions.
|
|
1173
|
+
*/
|
|
1174
|
+
export type IdentifierChangeTokenExpiredError = ErrorResult & {
|
|
1175
|
+
__typename?: 'IdentifierChangeTokenExpiredError';
|
|
1176
|
+
errorCode: ErrorCode;
|
|
1177
|
+
message: Scalars['String']['output'];
|
|
1178
|
+
};
|
|
1179
|
+
/**
|
|
1180
|
+
* Returned if the token used to change a Customer's email address is either
|
|
1181
|
+
* invalid or does not match any expected tokens.
|
|
1182
|
+
*/
|
|
1183
|
+
export type IdentifierChangeTokenInvalidError = ErrorResult & {
|
|
1184
|
+
__typename?: 'IdentifierChangeTokenInvalidError';
|
|
1185
|
+
errorCode: ErrorCode;
|
|
1186
|
+
message: Scalars['String']['output'];
|
|
1187
|
+
};
|
|
1188
|
+
/** Returned when attempting to add a Payment using a PaymentMethod for which the Order is not eligible. */
|
|
1189
|
+
export type IneligiblePaymentMethodError = ErrorResult & {
|
|
1190
|
+
__typename?: 'IneligiblePaymentMethodError';
|
|
1191
|
+
eligibilityCheckerMessage?: Maybe<Scalars['String']['output']>;
|
|
1192
|
+
errorCode: ErrorCode;
|
|
1193
|
+
message: Scalars['String']['output'];
|
|
1194
|
+
};
|
|
1195
|
+
/** Returned when attempting to set a ShippingMethod for which the Order is not eligible */
|
|
1196
|
+
export type IneligibleShippingMethodError = ErrorResult & {
|
|
1197
|
+
__typename?: 'IneligibleShippingMethodError';
|
|
1198
|
+
errorCode: ErrorCode;
|
|
1199
|
+
message: Scalars['String']['output'];
|
|
1200
|
+
};
|
|
1201
|
+
/** Returned when attempting to add more items to the Order than are available */
|
|
1202
|
+
export type InsufficientStockError = ErrorResult & {
|
|
1203
|
+
__typename?: 'InsufficientStockError';
|
|
1204
|
+
errorCode: ErrorCode;
|
|
1205
|
+
message: Scalars['String']['output'];
|
|
1206
|
+
order: Order;
|
|
1207
|
+
quantityAvailable: Scalars['Int']['output'];
|
|
1208
|
+
};
|
|
1209
|
+
export type IntCustomFieldConfig = CustomField & {
|
|
1210
|
+
__typename?: 'IntCustomFieldConfig';
|
|
1211
|
+
description?: Maybe<Array<LocalizedString>>;
|
|
1212
|
+
internal?: Maybe<Scalars['Boolean']['output']>;
|
|
1213
|
+
label?: Maybe<Array<LocalizedString>>;
|
|
1214
|
+
list: Scalars['Boolean']['output'];
|
|
1215
|
+
max?: Maybe<Scalars['Int']['output']>;
|
|
1216
|
+
min?: Maybe<Scalars['Int']['output']>;
|
|
1217
|
+
name: Scalars['String']['output'];
|
|
1218
|
+
nullable?: Maybe<Scalars['Boolean']['output']>;
|
|
1219
|
+
readonly?: Maybe<Scalars['Boolean']['output']>;
|
|
1220
|
+
requiresPermission?: Maybe<Array<Permission>>;
|
|
1221
|
+
step?: Maybe<Scalars['Int']['output']>;
|
|
1222
|
+
type: Scalars['String']['output'];
|
|
1223
|
+
ui?: Maybe<Scalars['JSON']['output']>;
|
|
1224
|
+
};
|
|
1225
|
+
/** Returned if the user authentication credentials are not valid */
|
|
1226
|
+
export type InvalidCredentialsError = ErrorResult & {
|
|
1227
|
+
__typename?: 'InvalidCredentialsError';
|
|
1228
|
+
authenticationError: Scalars['String']['output'];
|
|
1229
|
+
errorCode: ErrorCode;
|
|
1230
|
+
message: Scalars['String']['output'];
|
|
1231
|
+
};
|
|
1232
|
+
/**
|
|
1233
|
+
* @description
|
|
1234
|
+
* Languages in the form of a ISO 639-1 language code with optional
|
|
1235
|
+
* region or script modifier (e.g. de_AT). The selection available is based
|
|
1236
|
+
* on the [Unicode CLDR summary list](https://unicode-org.github.io/cldr-staging/charts/37/summary/root.html)
|
|
1237
|
+
* and includes the major spoken languages of the world and any widely-used variants.
|
|
1238
|
+
*
|
|
1239
|
+
* @docsCategory common
|
|
1240
|
+
*/
|
|
1241
|
+
export declare enum LanguageCode {
|
|
1242
|
+
/** Afrikaans */
|
|
1243
|
+
af = "af",
|
|
1244
|
+
/** Akan */
|
|
1245
|
+
ak = "ak",
|
|
1246
|
+
/** Amharic */
|
|
1247
|
+
am = "am",
|
|
1248
|
+
/** Arabic */
|
|
1249
|
+
ar = "ar",
|
|
1250
|
+
/** Assamese */
|
|
1251
|
+
as = "as",
|
|
1252
|
+
/** Azerbaijani */
|
|
1253
|
+
az = "az",
|
|
1254
|
+
/** Belarusian */
|
|
1255
|
+
be = "be",
|
|
1256
|
+
/** Bulgarian */
|
|
1257
|
+
bg = "bg",
|
|
1258
|
+
/** Bambara */
|
|
1259
|
+
bm = "bm",
|
|
1260
|
+
/** Bangla */
|
|
1261
|
+
bn = "bn",
|
|
1262
|
+
/** Tibetan */
|
|
1263
|
+
bo = "bo",
|
|
1264
|
+
/** Breton */
|
|
1265
|
+
br = "br",
|
|
1266
|
+
/** Bosnian */
|
|
1267
|
+
bs = "bs",
|
|
1268
|
+
/** Catalan */
|
|
1269
|
+
ca = "ca",
|
|
1270
|
+
/** Chechen */
|
|
1271
|
+
ce = "ce",
|
|
1272
|
+
/** Corsican */
|
|
1273
|
+
co = "co",
|
|
1274
|
+
/** Czech */
|
|
1275
|
+
cs = "cs",
|
|
1276
|
+
/** Church Slavic */
|
|
1277
|
+
cu = "cu",
|
|
1278
|
+
/** Welsh */
|
|
1279
|
+
cy = "cy",
|
|
1280
|
+
/** Danish */
|
|
1281
|
+
da = "da",
|
|
1282
|
+
/** German */
|
|
1283
|
+
de = "de",
|
|
1284
|
+
/** Austrian German */
|
|
1285
|
+
de_AT = "de_AT",
|
|
1286
|
+
/** Swiss High German */
|
|
1287
|
+
de_CH = "de_CH",
|
|
1288
|
+
/** Dzongkha */
|
|
1289
|
+
dz = "dz",
|
|
1290
|
+
/** Ewe */
|
|
1291
|
+
ee = "ee",
|
|
1292
|
+
/** Greek */
|
|
1293
|
+
el = "el",
|
|
1294
|
+
/** English */
|
|
1295
|
+
en = "en",
|
|
1296
|
+
/** Australian English */
|
|
1297
|
+
en_AU = "en_AU",
|
|
1298
|
+
/** Canadian English */
|
|
1299
|
+
en_CA = "en_CA",
|
|
1300
|
+
/** British English */
|
|
1301
|
+
en_GB = "en_GB",
|
|
1302
|
+
/** American English */
|
|
1303
|
+
en_US = "en_US",
|
|
1304
|
+
/** Esperanto */
|
|
1305
|
+
eo = "eo",
|
|
1306
|
+
/** Spanish */
|
|
1307
|
+
es = "es",
|
|
1308
|
+
/** European Spanish */
|
|
1309
|
+
es_ES = "es_ES",
|
|
1310
|
+
/** Mexican Spanish */
|
|
1311
|
+
es_MX = "es_MX",
|
|
1312
|
+
/** Estonian */
|
|
1313
|
+
et = "et",
|
|
1314
|
+
/** Basque */
|
|
1315
|
+
eu = "eu",
|
|
1316
|
+
/** Persian */
|
|
1317
|
+
fa = "fa",
|
|
1318
|
+
/** Dari */
|
|
1319
|
+
fa_AF = "fa_AF",
|
|
1320
|
+
/** Fulah */
|
|
1321
|
+
ff = "ff",
|
|
1322
|
+
/** Finnish */
|
|
1323
|
+
fi = "fi",
|
|
1324
|
+
/** Faroese */
|
|
1325
|
+
fo = "fo",
|
|
1326
|
+
/** French */
|
|
1327
|
+
fr = "fr",
|
|
1328
|
+
/** Canadian French */
|
|
1329
|
+
fr_CA = "fr_CA",
|
|
1330
|
+
/** Swiss French */
|
|
1331
|
+
fr_CH = "fr_CH",
|
|
1332
|
+
/** Western Frisian */
|
|
1333
|
+
fy = "fy",
|
|
1334
|
+
/** Irish */
|
|
1335
|
+
ga = "ga",
|
|
1336
|
+
/** Scottish Gaelic */
|
|
1337
|
+
gd = "gd",
|
|
1338
|
+
/** Galician */
|
|
1339
|
+
gl = "gl",
|
|
1340
|
+
/** Gujarati */
|
|
1341
|
+
gu = "gu",
|
|
1342
|
+
/** Manx */
|
|
1343
|
+
gv = "gv",
|
|
1344
|
+
/** Hausa */
|
|
1345
|
+
ha = "ha",
|
|
1346
|
+
/** Hebrew */
|
|
1347
|
+
he = "he",
|
|
1348
|
+
/** Hindi */
|
|
1349
|
+
hi = "hi",
|
|
1350
|
+
/** Croatian */
|
|
1351
|
+
hr = "hr",
|
|
1352
|
+
/** Haitian Creole */
|
|
1353
|
+
ht = "ht",
|
|
1354
|
+
/** Hungarian */
|
|
1355
|
+
hu = "hu",
|
|
1356
|
+
/** Armenian */
|
|
1357
|
+
hy = "hy",
|
|
1358
|
+
/** Interlingua */
|
|
1359
|
+
ia = "ia",
|
|
1360
|
+
/** Indonesian */
|
|
1361
|
+
id = "id",
|
|
1362
|
+
/** Igbo */
|
|
1363
|
+
ig = "ig",
|
|
1364
|
+
/** Sichuan Yi */
|
|
1365
|
+
ii = "ii",
|
|
1366
|
+
/** Icelandic */
|
|
1367
|
+
is = "is",
|
|
1368
|
+
/** Italian */
|
|
1369
|
+
it = "it",
|
|
1370
|
+
/** Japanese */
|
|
1371
|
+
ja = "ja",
|
|
1372
|
+
/** Javanese */
|
|
1373
|
+
jv = "jv",
|
|
1374
|
+
/** Georgian */
|
|
1375
|
+
ka = "ka",
|
|
1376
|
+
/** Kikuyu */
|
|
1377
|
+
ki = "ki",
|
|
1378
|
+
/** Kazakh */
|
|
1379
|
+
kk = "kk",
|
|
1380
|
+
/** Kalaallisut */
|
|
1381
|
+
kl = "kl",
|
|
1382
|
+
/** Khmer */
|
|
1383
|
+
km = "km",
|
|
1384
|
+
/** Kannada */
|
|
1385
|
+
kn = "kn",
|
|
1386
|
+
/** Korean */
|
|
1387
|
+
ko = "ko",
|
|
1388
|
+
/** Kashmiri */
|
|
1389
|
+
ks = "ks",
|
|
1390
|
+
/** Kurdish */
|
|
1391
|
+
ku = "ku",
|
|
1392
|
+
/** Cornish */
|
|
1393
|
+
kw = "kw",
|
|
1394
|
+
/** Kyrgyz */
|
|
1395
|
+
ky = "ky",
|
|
1396
|
+
/** Latin */
|
|
1397
|
+
la = "la",
|
|
1398
|
+
/** Luxembourgish */
|
|
1399
|
+
lb = "lb",
|
|
1400
|
+
/** Ganda */
|
|
1401
|
+
lg = "lg",
|
|
1402
|
+
/** Lingala */
|
|
1403
|
+
ln = "ln",
|
|
1404
|
+
/** Lao */
|
|
1405
|
+
lo = "lo",
|
|
1406
|
+
/** Lithuanian */
|
|
1407
|
+
lt = "lt",
|
|
1408
|
+
/** Luba-Katanga */
|
|
1409
|
+
lu = "lu",
|
|
1410
|
+
/** Latvian */
|
|
1411
|
+
lv = "lv",
|
|
1412
|
+
/** Malagasy */
|
|
1413
|
+
mg = "mg",
|
|
1414
|
+
/** Maori */
|
|
1415
|
+
mi = "mi",
|
|
1416
|
+
/** Macedonian */
|
|
1417
|
+
mk = "mk",
|
|
1418
|
+
/** Malayalam */
|
|
1419
|
+
ml = "ml",
|
|
1420
|
+
/** Mongolian */
|
|
1421
|
+
mn = "mn",
|
|
1422
|
+
/** Marathi */
|
|
1423
|
+
mr = "mr",
|
|
1424
|
+
/** Malay */
|
|
1425
|
+
ms = "ms",
|
|
1426
|
+
/** Maltese */
|
|
1427
|
+
mt = "mt",
|
|
1428
|
+
/** Burmese */
|
|
1429
|
+
my = "my",
|
|
1430
|
+
/** Norwegian Bokmål */
|
|
1431
|
+
nb = "nb",
|
|
1432
|
+
/** North Ndebele */
|
|
1433
|
+
nd = "nd",
|
|
1434
|
+
/** Nepali */
|
|
1435
|
+
ne = "ne",
|
|
1436
|
+
/** Dutch */
|
|
1437
|
+
nl = "nl",
|
|
1438
|
+
/** Flemish */
|
|
1439
|
+
nl_BE = "nl_BE",
|
|
1440
|
+
/** Norwegian Nynorsk */
|
|
1441
|
+
nn = "nn",
|
|
1442
|
+
/** Nyanja */
|
|
1443
|
+
ny = "ny",
|
|
1444
|
+
/** Oromo */
|
|
1445
|
+
om = "om",
|
|
1446
|
+
/** Odia */
|
|
1447
|
+
or = "or",
|
|
1448
|
+
/** Ossetic */
|
|
1449
|
+
os = "os",
|
|
1450
|
+
/** Punjabi */
|
|
1451
|
+
pa = "pa",
|
|
1452
|
+
/** Polish */
|
|
1453
|
+
pl = "pl",
|
|
1454
|
+
/** Pashto */
|
|
1455
|
+
ps = "ps",
|
|
1456
|
+
/** Portuguese */
|
|
1457
|
+
pt = "pt",
|
|
1458
|
+
/** Brazilian Portuguese */
|
|
1459
|
+
pt_BR = "pt_BR",
|
|
1460
|
+
/** European Portuguese */
|
|
1461
|
+
pt_PT = "pt_PT",
|
|
1462
|
+
/** Quechua */
|
|
1463
|
+
qu = "qu",
|
|
1464
|
+
/** Romansh */
|
|
1465
|
+
rm = "rm",
|
|
1466
|
+
/** Rundi */
|
|
1467
|
+
rn = "rn",
|
|
1468
|
+
/** Romanian */
|
|
1469
|
+
ro = "ro",
|
|
1470
|
+
/** Moldavian */
|
|
1471
|
+
ro_MD = "ro_MD",
|
|
1472
|
+
/** Russian */
|
|
1473
|
+
ru = "ru",
|
|
1474
|
+
/** Kinyarwanda */
|
|
1475
|
+
rw = "rw",
|
|
1476
|
+
/** Sanskrit */
|
|
1477
|
+
sa = "sa",
|
|
1478
|
+
/** Sindhi */
|
|
1479
|
+
sd = "sd",
|
|
1480
|
+
/** Northern Sami */
|
|
1481
|
+
se = "se",
|
|
1482
|
+
/** Sango */
|
|
1483
|
+
sg = "sg",
|
|
1484
|
+
/** Sinhala */
|
|
1485
|
+
si = "si",
|
|
1486
|
+
/** Slovak */
|
|
1487
|
+
sk = "sk",
|
|
1488
|
+
/** Slovenian */
|
|
1489
|
+
sl = "sl",
|
|
1490
|
+
/** Samoan */
|
|
1491
|
+
sm = "sm",
|
|
1492
|
+
/** Shona */
|
|
1493
|
+
sn = "sn",
|
|
1494
|
+
/** Somali */
|
|
1495
|
+
so = "so",
|
|
1496
|
+
/** Albanian */
|
|
1497
|
+
sq = "sq",
|
|
1498
|
+
/** Serbian */
|
|
1499
|
+
sr = "sr",
|
|
1500
|
+
/** Southern Sotho */
|
|
1501
|
+
st = "st",
|
|
1502
|
+
/** Sundanese */
|
|
1503
|
+
su = "su",
|
|
1504
|
+
/** Swedish */
|
|
1505
|
+
sv = "sv",
|
|
1506
|
+
/** Swahili */
|
|
1507
|
+
sw = "sw",
|
|
1508
|
+
/** Congo Swahili */
|
|
1509
|
+
sw_CD = "sw_CD",
|
|
1510
|
+
/** Tamil */
|
|
1511
|
+
ta = "ta",
|
|
1512
|
+
/** Telugu */
|
|
1513
|
+
te = "te",
|
|
1514
|
+
/** Tajik */
|
|
1515
|
+
tg = "tg",
|
|
1516
|
+
/** Thai */
|
|
1517
|
+
th = "th",
|
|
1518
|
+
/** Tigrinya */
|
|
1519
|
+
ti = "ti",
|
|
1520
|
+
/** Turkmen */
|
|
1521
|
+
tk = "tk",
|
|
1522
|
+
/** Tongan */
|
|
1523
|
+
to = "to",
|
|
1524
|
+
/** Turkish */
|
|
1525
|
+
tr = "tr",
|
|
1526
|
+
/** Tatar */
|
|
1527
|
+
tt = "tt",
|
|
1528
|
+
/** Uyghur */
|
|
1529
|
+
ug = "ug",
|
|
1530
|
+
/** Ukrainian */
|
|
1531
|
+
uk = "uk",
|
|
1532
|
+
/** Urdu */
|
|
1533
|
+
ur = "ur",
|
|
1534
|
+
/** Uzbek */
|
|
1535
|
+
uz = "uz",
|
|
1536
|
+
/** Vietnamese */
|
|
1537
|
+
vi = "vi",
|
|
1538
|
+
/** Volapük */
|
|
1539
|
+
vo = "vo",
|
|
1540
|
+
/** Wolof */
|
|
1541
|
+
wo = "wo",
|
|
1542
|
+
/** Xhosa */
|
|
1543
|
+
xh = "xh",
|
|
1544
|
+
/** Yiddish */
|
|
1545
|
+
yi = "yi",
|
|
1546
|
+
/** Yoruba */
|
|
1547
|
+
yo = "yo",
|
|
1548
|
+
/** Chinese */
|
|
1549
|
+
zh = "zh",
|
|
1550
|
+
/** Simplified Chinese */
|
|
1551
|
+
zh_Hans = "zh_Hans",
|
|
1552
|
+
/** Traditional Chinese */
|
|
1553
|
+
zh_Hant = "zh_Hant",
|
|
1554
|
+
/** Zulu */
|
|
1555
|
+
zu = "zu"
|
|
1556
|
+
}
|
|
1557
|
+
export type LocaleStringCustomFieldConfig = CustomField & {
|
|
1558
|
+
__typename?: 'LocaleStringCustomFieldConfig';
|
|
1559
|
+
description?: Maybe<Array<LocalizedString>>;
|
|
1560
|
+
internal?: Maybe<Scalars['Boolean']['output']>;
|
|
1561
|
+
label?: Maybe<Array<LocalizedString>>;
|
|
1562
|
+
length?: Maybe<Scalars['Int']['output']>;
|
|
1563
|
+
list: Scalars['Boolean']['output'];
|
|
1564
|
+
name: Scalars['String']['output'];
|
|
1565
|
+
nullable?: Maybe<Scalars['Boolean']['output']>;
|
|
1566
|
+
pattern?: Maybe<Scalars['String']['output']>;
|
|
1567
|
+
readonly?: Maybe<Scalars['Boolean']['output']>;
|
|
1568
|
+
requiresPermission?: Maybe<Array<Permission>>;
|
|
1569
|
+
type: Scalars['String']['output'];
|
|
1570
|
+
ui?: Maybe<Scalars['JSON']['output']>;
|
|
1571
|
+
};
|
|
1572
|
+
export type LocaleTextCustomFieldConfig = CustomField & {
|
|
1573
|
+
__typename?: 'LocaleTextCustomFieldConfig';
|
|
1574
|
+
description?: Maybe<Array<LocalizedString>>;
|
|
1575
|
+
internal?: Maybe<Scalars['Boolean']['output']>;
|
|
1576
|
+
label?: Maybe<Array<LocalizedString>>;
|
|
1577
|
+
list: Scalars['Boolean']['output'];
|
|
1578
|
+
name: Scalars['String']['output'];
|
|
1579
|
+
nullable?: Maybe<Scalars['Boolean']['output']>;
|
|
1580
|
+
readonly?: Maybe<Scalars['Boolean']['output']>;
|
|
1581
|
+
requiresPermission?: Maybe<Array<Permission>>;
|
|
1582
|
+
type: Scalars['String']['output'];
|
|
1583
|
+
ui?: Maybe<Scalars['JSON']['output']>;
|
|
1584
|
+
};
|
|
1585
|
+
export type LocalizedString = {
|
|
1586
|
+
__typename?: 'LocalizedString';
|
|
1587
|
+
languageCode: LanguageCode;
|
|
1588
|
+
value: Scalars['String']['output'];
|
|
1589
|
+
};
|
|
1590
|
+
export declare enum LogicalOperator {
|
|
1591
|
+
AND = "AND",
|
|
1592
|
+
OR = "OR"
|
|
1593
|
+
}
|
|
1594
|
+
/** Returned when attempting to register or verify a customer account without a password, when one is required. */
|
|
1595
|
+
export type MissingPasswordError = ErrorResult & {
|
|
1596
|
+
__typename?: 'MissingPasswordError';
|
|
1597
|
+
errorCode: ErrorCode;
|
|
1598
|
+
message: Scalars['String']['output'];
|
|
1599
|
+
};
|
|
1600
|
+
export type Mutation = {
|
|
1601
|
+
__typename?: 'Mutation';
|
|
1602
|
+
/** Adds an item to the order. If custom fields are defined on the OrderLine entity, a third argument 'customFields' will be available. */
|
|
1603
|
+
addItemToOrder: UpdateOrderItemsResult;
|
|
1604
|
+
/** Add a Payment to the Order */
|
|
1605
|
+
addPaymentToOrder: AddPaymentToOrderResult;
|
|
1606
|
+
/** Adjusts an OrderLine. If custom fields are defined on the OrderLine entity, a third argument 'customFields' of type `OrderLineCustomFieldsInput` will be available. */
|
|
1607
|
+
adjustOrderLine: UpdateOrderItemsResult;
|
|
1608
|
+
/** Applies the given coupon code to the active Order */
|
|
1609
|
+
applyCouponCode: ApplyCouponCodeResult;
|
|
1610
|
+
/** Authenticates the user using a named authentication strategy */
|
|
1611
|
+
authenticate: AuthenticationResult;
|
|
1612
|
+
/** Create a new Customer Address */
|
|
1613
|
+
createCustomerAddress: Address;
|
|
1614
|
+
/** Delete an existing Address */
|
|
1615
|
+
deleteCustomerAddress: Success;
|
|
1616
|
+
/**
|
|
1617
|
+
* Authenticates the user using the native authentication strategy. This mutation is an alias for authenticate({ native: { ... }})
|
|
1618
|
+
*
|
|
1619
|
+
* The `rememberMe` option applies when using cookie-based sessions, and if `true` it will set the maxAge of the session cookie
|
|
1620
|
+
* to 1 year.
|
|
1621
|
+
*/
|
|
1622
|
+
login: NativeAuthenticationResult;
|
|
1623
|
+
/** End the current authenticated session */
|
|
1624
|
+
logout: Success;
|
|
1625
|
+
/** Regenerate and send a verification token for a new Customer registration. Only applicable if `authOptions.requireVerification` is set to true. */
|
|
1626
|
+
refreshCustomerVerification: RefreshCustomerVerificationResult;
|
|
1627
|
+
/**
|
|
1628
|
+
* Register a Customer account with the given credentials. There are three possible registration flows:
|
|
1629
|
+
*
|
|
1630
|
+
* _If `authOptions.requireVerification` is set to `true`:_
|
|
1631
|
+
*
|
|
1632
|
+
* 1. **The Customer is registered _with_ a password**. A verificationToken will be created (and typically emailed to the Customer). That
|
|
1633
|
+
* verificationToken would then be passed to the `verifyCustomerAccount` mutation _without_ a password. The Customer is then
|
|
1634
|
+
* verified and authenticated in one step.
|
|
1635
|
+
* 2. **The Customer is registered _without_ a password**. A verificationToken will be created (and typically emailed to the Customer). That
|
|
1636
|
+
* verificationToken would then be passed to the `verifyCustomerAccount` mutation _with_ the chosen password of the Customer. The Customer is then
|
|
1637
|
+
* verified and authenticated in one step.
|
|
1638
|
+
*
|
|
1639
|
+
* _If `authOptions.requireVerification` is set to `false`:_
|
|
1640
|
+
*
|
|
1641
|
+
* 3. The Customer _must_ be registered _with_ a password. No further action is needed - the Customer is able to authenticate immediately.
|
|
1642
|
+
*/
|
|
1643
|
+
registerCustomerAccount: RegisterCustomerAccountResult;
|
|
1644
|
+
/** Remove all OrderLine from the Order */
|
|
1645
|
+
removeAllOrderLines: RemoveOrderItemsResult;
|
|
1646
|
+
/** Removes the given coupon code from the active Order */
|
|
1647
|
+
removeCouponCode?: Maybe<Order>;
|
|
1648
|
+
/** Remove an OrderLine from the Order */
|
|
1649
|
+
removeOrderLine: RemoveOrderItemsResult;
|
|
1650
|
+
/** Requests a password reset email to be sent */
|
|
1651
|
+
requestPasswordReset?: Maybe<RequestPasswordResetResult>;
|
|
1652
|
+
/**
|
|
1653
|
+
* Request to update the emailAddress of the active Customer. If `authOptions.requireVerification` is enabled
|
|
1654
|
+
* (as is the default), then the `identifierChangeToken` will be assigned to the current User and
|
|
1655
|
+
* a IdentifierChangeRequestEvent will be raised. This can then be used e.g. by the EmailPlugin to email
|
|
1656
|
+
* that verification token to the Customer, which is then used to verify the change of email address.
|
|
1657
|
+
*/
|
|
1658
|
+
requestUpdateCustomerEmailAddress: RequestUpdateCustomerEmailAddressResult;
|
|
1659
|
+
/** Resets a Customer's password based on the provided token */
|
|
1660
|
+
resetPassword: ResetPasswordResult;
|
|
1661
|
+
/** Set the Customer for the Order. Required only if the Customer is not currently logged in */
|
|
1662
|
+
setCustomerForOrder: SetCustomerForOrderResult;
|
|
1663
|
+
/** Sets the billing address for this order */
|
|
1664
|
+
setOrderBillingAddress: ActiveOrderResult;
|
|
1665
|
+
/** Allows any custom fields to be set for the active order */
|
|
1666
|
+
setOrderCustomFields: ActiveOrderResult;
|
|
1667
|
+
/** Sets the shipping address for this order */
|
|
1668
|
+
setOrderShippingAddress: ActiveOrderResult;
|
|
1669
|
+
/**
|
|
1670
|
+
* Sets the shipping method by id, which can be obtained with the `eligibleShippingMethods` query.
|
|
1671
|
+
* An Order can have multiple shipping methods, in which case you can pass an array of ids. In this case,
|
|
1672
|
+
* you should configure a custom ShippingLineAssignmentStrategy in order to know which OrderLines each
|
|
1673
|
+
* shipping method will apply to.
|
|
1674
|
+
*/
|
|
1675
|
+
setOrderShippingMethod: SetOrderShippingMethodResult;
|
|
1676
|
+
/** Transitions an Order to a new state. Valid next states can be found by querying `nextOrderStates` */
|
|
1677
|
+
transitionOrderToState?: Maybe<TransitionOrderToStateResult>;
|
|
1678
|
+
/** Update an existing Customer */
|
|
1679
|
+
updateCustomer: Customer;
|
|
1680
|
+
/** Update an existing Address */
|
|
1681
|
+
updateCustomerAddress: Address;
|
|
1682
|
+
/**
|
|
1683
|
+
* Confirm the update of the emailAddress with the provided token, which has been generated by the
|
|
1684
|
+
* `requestUpdateCustomerEmailAddress` mutation.
|
|
1685
|
+
*/
|
|
1686
|
+
updateCustomerEmailAddress: UpdateCustomerEmailAddressResult;
|
|
1687
|
+
/** Update the password of the active Customer */
|
|
1688
|
+
updateCustomerPassword: UpdateCustomerPasswordResult;
|
|
1689
|
+
/**
|
|
1690
|
+
* Verify a Customer email address with the token sent to that address. Only applicable if `authOptions.requireVerification` is set to true.
|
|
1691
|
+
*
|
|
1692
|
+
* If the Customer was not registered with a password in the `registerCustomerAccount` mutation, the password _must_ be
|
|
1693
|
+
* provided here.
|
|
1694
|
+
*/
|
|
1695
|
+
verifyCustomerAccount: VerifyCustomerAccountResult;
|
|
1696
|
+
};
|
|
1697
|
+
export type MutationAddItemToOrderArgs = {
|
|
1698
|
+
productVariantId: Scalars['ID']['input'];
|
|
1699
|
+
quantity: Scalars['Int']['input'];
|
|
1700
|
+
};
|
|
1701
|
+
export type MutationAddPaymentToOrderArgs = {
|
|
1702
|
+
input: PaymentInput;
|
|
1703
|
+
};
|
|
1704
|
+
export type MutationAdjustOrderLineArgs = {
|
|
1705
|
+
orderLineId: Scalars['ID']['input'];
|
|
1706
|
+
quantity: Scalars['Int']['input'];
|
|
1707
|
+
};
|
|
1708
|
+
export type MutationApplyCouponCodeArgs = {
|
|
1709
|
+
couponCode: Scalars['String']['input'];
|
|
1710
|
+
};
|
|
1711
|
+
export type MutationAuthenticateArgs = {
|
|
1712
|
+
input: AuthenticationInput;
|
|
1713
|
+
rememberMe?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1714
|
+
};
|
|
1715
|
+
export type MutationCreateCustomerAddressArgs = {
|
|
1716
|
+
input: CreateAddressInput;
|
|
1717
|
+
};
|
|
1718
|
+
export type MutationDeleteCustomerAddressArgs = {
|
|
1719
|
+
id: Scalars['ID']['input'];
|
|
1720
|
+
};
|
|
1721
|
+
export type MutationLoginArgs = {
|
|
1722
|
+
password: Scalars['String']['input'];
|
|
1723
|
+
rememberMe?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1724
|
+
username: Scalars['String']['input'];
|
|
1725
|
+
};
|
|
1726
|
+
export type MutationRefreshCustomerVerificationArgs = {
|
|
1727
|
+
emailAddress: Scalars['String']['input'];
|
|
1728
|
+
};
|
|
1729
|
+
export type MutationRegisterCustomerAccountArgs = {
|
|
1730
|
+
input: RegisterCustomerInput;
|
|
1731
|
+
};
|
|
1732
|
+
export type MutationRemoveCouponCodeArgs = {
|
|
1733
|
+
couponCode: Scalars['String']['input'];
|
|
1734
|
+
};
|
|
1735
|
+
export type MutationRemoveOrderLineArgs = {
|
|
1736
|
+
orderLineId: Scalars['ID']['input'];
|
|
1737
|
+
};
|
|
1738
|
+
export type MutationRequestPasswordResetArgs = {
|
|
1739
|
+
emailAddress: Scalars['String']['input'];
|
|
1740
|
+
};
|
|
1741
|
+
export type MutationRequestUpdateCustomerEmailAddressArgs = {
|
|
1742
|
+
newEmailAddress: Scalars['String']['input'];
|
|
1743
|
+
password: Scalars['String']['input'];
|
|
1744
|
+
};
|
|
1745
|
+
export type MutationResetPasswordArgs = {
|
|
1746
|
+
password: Scalars['String']['input'];
|
|
1747
|
+
token: Scalars['String']['input'];
|
|
1748
|
+
};
|
|
1749
|
+
export type MutationSetCustomerForOrderArgs = {
|
|
1750
|
+
input: CreateCustomerInput;
|
|
1751
|
+
};
|
|
1752
|
+
export type MutationSetOrderBillingAddressArgs = {
|
|
1753
|
+
input: CreateAddressInput;
|
|
1754
|
+
};
|
|
1755
|
+
export type MutationSetOrderCustomFieldsArgs = {
|
|
1756
|
+
input: UpdateOrderInput;
|
|
1757
|
+
};
|
|
1758
|
+
export type MutationSetOrderShippingAddressArgs = {
|
|
1759
|
+
input: CreateAddressInput;
|
|
1760
|
+
};
|
|
1761
|
+
export type MutationSetOrderShippingMethodArgs = {
|
|
1762
|
+
shippingMethodId: Array<Scalars['ID']['input']>;
|
|
1763
|
+
};
|
|
1764
|
+
export type MutationTransitionOrderToStateArgs = {
|
|
1765
|
+
state: Scalars['String']['input'];
|
|
1766
|
+
};
|
|
1767
|
+
export type MutationUpdateCustomerArgs = {
|
|
1768
|
+
input: UpdateCustomerInput;
|
|
1769
|
+
};
|
|
1770
|
+
export type MutationUpdateCustomerAddressArgs = {
|
|
1771
|
+
input: UpdateAddressInput;
|
|
1772
|
+
};
|
|
1773
|
+
export type MutationUpdateCustomerEmailAddressArgs = {
|
|
1774
|
+
token: Scalars['String']['input'];
|
|
1775
|
+
};
|
|
1776
|
+
export type MutationUpdateCustomerPasswordArgs = {
|
|
1777
|
+
currentPassword: Scalars['String']['input'];
|
|
1778
|
+
newPassword: Scalars['String']['input'];
|
|
1779
|
+
};
|
|
1780
|
+
export type MutationVerifyCustomerAccountArgs = {
|
|
1781
|
+
password?: InputMaybe<Scalars['String']['input']>;
|
|
1782
|
+
token: Scalars['String']['input'];
|
|
1783
|
+
};
|
|
1784
|
+
export type NativeAuthInput = {
|
|
1785
|
+
password: Scalars['String']['input'];
|
|
1786
|
+
username: Scalars['String']['input'];
|
|
1787
|
+
};
|
|
1788
|
+
/** Returned when attempting an operation that relies on the NativeAuthStrategy, if that strategy is not configured. */
|
|
1789
|
+
export type NativeAuthStrategyError = ErrorResult & {
|
|
1790
|
+
__typename?: 'NativeAuthStrategyError';
|
|
1791
|
+
errorCode: ErrorCode;
|
|
1792
|
+
message: Scalars['String']['output'];
|
|
1793
|
+
};
|
|
1794
|
+
export type NativeAuthenticationResult = CurrentUser | InvalidCredentialsError | NativeAuthStrategyError | NotVerifiedError;
|
|
1795
|
+
/** Returned when attempting to set a negative OrderLine quantity. */
|
|
1796
|
+
export type NegativeQuantityError = ErrorResult & {
|
|
1797
|
+
__typename?: 'NegativeQuantityError';
|
|
1798
|
+
errorCode: ErrorCode;
|
|
1799
|
+
message: Scalars['String']['output'];
|
|
1800
|
+
};
|
|
1801
|
+
/**
|
|
1802
|
+
* Returned when invoking a mutation which depends on there being an active Order on the
|
|
1803
|
+
* current session.
|
|
1804
|
+
*/
|
|
1805
|
+
export type NoActiveOrderError = ErrorResult & {
|
|
1806
|
+
__typename?: 'NoActiveOrderError';
|
|
1807
|
+
errorCode: ErrorCode;
|
|
1808
|
+
message: Scalars['String']['output'];
|
|
1809
|
+
};
|
|
1810
|
+
export type Node = {
|
|
1811
|
+
id: Scalars['ID']['output'];
|
|
1812
|
+
};
|
|
1813
|
+
/**
|
|
1814
|
+
* Returned if `authOptions.requireVerification` is set to `true` (which is the default)
|
|
1815
|
+
* and an unverified user attempts to authenticate.
|
|
1816
|
+
*/
|
|
1817
|
+
export type NotVerifiedError = ErrorResult & {
|
|
1818
|
+
__typename?: 'NotVerifiedError';
|
|
1819
|
+
errorCode: ErrorCode;
|
|
1820
|
+
message: Scalars['String']['output'];
|
|
1821
|
+
};
|
|
1822
|
+
/** Operators for filtering on a list of Number fields */
|
|
1823
|
+
export type NumberListOperators = {
|
|
1824
|
+
inList: Scalars['Float']['input'];
|
|
1825
|
+
};
|
|
1826
|
+
/** Operators for filtering on a Int or Float field */
|
|
1827
|
+
export type NumberOperators = {
|
|
1828
|
+
between?: InputMaybe<NumberRange>;
|
|
1829
|
+
eq?: InputMaybe<Scalars['Float']['input']>;
|
|
1830
|
+
gt?: InputMaybe<Scalars['Float']['input']>;
|
|
1831
|
+
gte?: InputMaybe<Scalars['Float']['input']>;
|
|
1832
|
+
isNull?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1833
|
+
lt?: InputMaybe<Scalars['Float']['input']>;
|
|
1834
|
+
lte?: InputMaybe<Scalars['Float']['input']>;
|
|
1835
|
+
};
|
|
1836
|
+
export type NumberRange = {
|
|
1837
|
+
end: Scalars['Float']['input'];
|
|
1838
|
+
start: Scalars['Float']['input'];
|
|
1839
|
+
};
|
|
1840
|
+
export type Order = Node & {
|
|
1841
|
+
__typename?: 'Order';
|
|
1842
|
+
/** An order is active as long as the payment process has not been completed */
|
|
1843
|
+
active: Scalars['Boolean']['output'];
|
|
1844
|
+
billingAddress?: Maybe<OrderAddress>;
|
|
1845
|
+
/** A unique code for the Order */
|
|
1846
|
+
code: Scalars['String']['output'];
|
|
1847
|
+
/** An array of all coupon codes applied to the Order */
|
|
1848
|
+
couponCodes: Array<Scalars['String']['output']>;
|
|
1849
|
+
createdAt: Scalars['DateTime']['output'];
|
|
1850
|
+
currencyCode: CurrencyCode;
|
|
1851
|
+
customFields?: Maybe<Scalars['JSON']['output']>;
|
|
1852
|
+
customer?: Maybe<Customer>;
|
|
1853
|
+
discounts: Array<Discount>;
|
|
1854
|
+
/** An array of all promotions excluded from the Order */
|
|
1855
|
+
excludedPromotionIds?: Maybe<Array<Scalars['String']['output']>>;
|
|
1856
|
+
fulfillments?: Maybe<Array<Fulfillment>>;
|
|
1857
|
+
history: HistoryEntryList;
|
|
1858
|
+
id: Scalars['ID']['output'];
|
|
1859
|
+
lines: Array<OrderLine>;
|
|
1860
|
+
/**
|
|
1861
|
+
* The date & time that the Order was placed, i.e. the Customer
|
|
1862
|
+
* completed the checkout and the Order is no longer "active"
|
|
1863
|
+
*/
|
|
1864
|
+
orderPlacedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
1865
|
+
payments?: Maybe<Array<Payment>>;
|
|
1866
|
+
/** Promotions applied to the order. Only gets populated after the payment process has completed. */
|
|
1867
|
+
promotions: Array<Promotion>;
|
|
1868
|
+
shipping: Scalars['Money']['output'];
|
|
1869
|
+
shippingAddress?: Maybe<OrderAddress>;
|
|
1870
|
+
shippingLines: Array<ShippingLine>;
|
|
1871
|
+
shippingWithTax: Scalars['Money']['output'];
|
|
1872
|
+
state: Scalars['String']['output'];
|
|
1873
|
+
/**
|
|
1874
|
+
* The subTotal is the total of all OrderLines in the Order. This figure also includes any Order-level
|
|
1875
|
+
* discounts which have been prorated (proportionally distributed) amongst the items of each OrderLine.
|
|
1876
|
+
* To get a total of all OrderLines which does not account for prorated discounts, use the
|
|
1877
|
+
* sum of `OrderLine.discountedLinePrice` values.
|
|
1878
|
+
*/
|
|
1879
|
+
subTotal: Scalars['Money']['output'];
|
|
1880
|
+
/** Same as subTotal, but inclusive of tax */
|
|
1881
|
+
subTotalWithTax: Scalars['Money']['output'];
|
|
1882
|
+
/**
|
|
1883
|
+
* Surcharges are arbitrary modifications to the Order total which are neither
|
|
1884
|
+
* ProductVariants nor discounts resulting from applied Promotions. For example,
|
|
1885
|
+
* one-off discounts based on customer interaction, or surcharges based on payment
|
|
1886
|
+
* methods.
|
|
1887
|
+
*/
|
|
1888
|
+
surcharges: Array<Surcharge>;
|
|
1889
|
+
/** A summary of the taxes being applied to this Order */
|
|
1890
|
+
taxSummary: Array<OrderTaxSummary>;
|
|
1891
|
+
/** Equal to subTotal plus shipping */
|
|
1892
|
+
total: Scalars['Money']['output'];
|
|
1893
|
+
totalQuantity: Scalars['Int']['output'];
|
|
1894
|
+
/** The final payable amount. Equal to subTotalWithTax plus shippingWithTax */
|
|
1895
|
+
totalWithTax: Scalars['Money']['output'];
|
|
1896
|
+
type: OrderType;
|
|
1897
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
1898
|
+
};
|
|
1899
|
+
export type OrderHistoryArgs = {
|
|
1900
|
+
options?: InputMaybe<HistoryEntryListOptions>;
|
|
1901
|
+
};
|
|
1902
|
+
export type OrderAddress = {
|
|
1903
|
+
__typename?: 'OrderAddress';
|
|
1904
|
+
city?: Maybe<Scalars['String']['output']>;
|
|
1905
|
+
company?: Maybe<Scalars['String']['output']>;
|
|
1906
|
+
country?: Maybe<Scalars['String']['output']>;
|
|
1907
|
+
countryCode?: Maybe<Scalars['String']['output']>;
|
|
1908
|
+
customFields?: Maybe<Scalars['JSON']['output']>;
|
|
1909
|
+
fullName?: Maybe<Scalars['String']['output']>;
|
|
1910
|
+
phoneNumber?: Maybe<Scalars['String']['output']>;
|
|
1911
|
+
postalCode?: Maybe<Scalars['String']['output']>;
|
|
1912
|
+
province?: Maybe<Scalars['String']['output']>;
|
|
1913
|
+
streetLine1?: Maybe<Scalars['String']['output']>;
|
|
1914
|
+
streetLine2?: Maybe<Scalars['String']['output']>;
|
|
1915
|
+
};
|
|
1916
|
+
export type OrderFilterParameter = {
|
|
1917
|
+
_and?: InputMaybe<Array<OrderFilterParameter>>;
|
|
1918
|
+
_or?: InputMaybe<Array<OrderFilterParameter>>;
|
|
1919
|
+
active?: InputMaybe<BooleanOperators>;
|
|
1920
|
+
code?: InputMaybe<StringOperators>;
|
|
1921
|
+
createdAt?: InputMaybe<DateOperators>;
|
|
1922
|
+
currencyCode?: InputMaybe<StringOperators>;
|
|
1923
|
+
id?: InputMaybe<IdOperators>;
|
|
1924
|
+
orderPlacedAt?: InputMaybe<DateOperators>;
|
|
1925
|
+
shipping?: InputMaybe<NumberOperators>;
|
|
1926
|
+
shippingWithTax?: InputMaybe<NumberOperators>;
|
|
1927
|
+
state?: InputMaybe<StringOperators>;
|
|
1928
|
+
subTotal?: InputMaybe<NumberOperators>;
|
|
1929
|
+
subTotalWithTax?: InputMaybe<NumberOperators>;
|
|
1930
|
+
total?: InputMaybe<NumberOperators>;
|
|
1931
|
+
totalQuantity?: InputMaybe<NumberOperators>;
|
|
1932
|
+
totalWithTax?: InputMaybe<NumberOperators>;
|
|
1933
|
+
type?: InputMaybe<StringOperators>;
|
|
1934
|
+
updatedAt?: InputMaybe<DateOperators>;
|
|
1935
|
+
};
|
|
1936
|
+
/** Returned when the maximum order size limit has been reached. */
|
|
1937
|
+
export type OrderLimitError = ErrorResult & {
|
|
1938
|
+
__typename?: 'OrderLimitError';
|
|
1939
|
+
errorCode: ErrorCode;
|
|
1940
|
+
maxItems: Scalars['Int']['output'];
|
|
1941
|
+
message: Scalars['String']['output'];
|
|
1942
|
+
};
|
|
1943
|
+
export type OrderLine = Node & {
|
|
1944
|
+
__typename?: 'OrderLine';
|
|
1945
|
+
createdAt: Scalars['DateTime']['output'];
|
|
1946
|
+
customFields?: Maybe<Scalars['JSON']['output']>;
|
|
1947
|
+
/** The price of the line including discounts, excluding tax */
|
|
1948
|
+
discountedLinePrice: Scalars['Money']['output'];
|
|
1949
|
+
/** The price of the line including discounts and tax */
|
|
1950
|
+
discountedLinePriceWithTax: Scalars['Money']['output'];
|
|
1951
|
+
/**
|
|
1952
|
+
* The price of a single unit including discounts, excluding tax.
|
|
1953
|
+
*
|
|
1954
|
+
* If Order-level discounts have been applied, this will not be the
|
|
1955
|
+
* actual taxable unit price (see `proratedUnitPrice`), but is generally the
|
|
1956
|
+
* correct price to display to customers to avoid confusion
|
|
1957
|
+
* about the internal handling of distributed Order-level discounts.
|
|
1958
|
+
*/
|
|
1959
|
+
discountedUnitPrice: Scalars['Money']['output'];
|
|
1960
|
+
/** The price of a single unit including discounts and tax */
|
|
1961
|
+
discountedUnitPriceWithTax: Scalars['Money']['output'];
|
|
1962
|
+
discounts: Array<Discount>;
|
|
1963
|
+
featuredAsset?: Maybe<Asset>;
|
|
1964
|
+
fulfillmentLines?: Maybe<Array<FulfillmentLine>>;
|
|
1965
|
+
id: Scalars['ID']['output'];
|
|
1966
|
+
/** The total price of the line excluding tax and discounts. */
|
|
1967
|
+
linePrice: Scalars['Money']['output'];
|
|
1968
|
+
/** The total price of the line including tax but excluding discounts. */
|
|
1969
|
+
linePriceWithTax: Scalars['Money']['output'];
|
|
1970
|
+
/** The total tax on this line */
|
|
1971
|
+
lineTax: Scalars['Money']['output'];
|
|
1972
|
+
order: Order;
|
|
1973
|
+
/** The quantity at the time the Order was placed */
|
|
1974
|
+
orderPlacedQuantity: Scalars['Int']['output'];
|
|
1975
|
+
productVariant: ProductVariant;
|
|
1976
|
+
/**
|
|
1977
|
+
* The actual line price, taking into account both item discounts _and_ prorated (proportionally-distributed)
|
|
1978
|
+
* Order-level discounts. This value is the true economic value of the OrderLine, and is used in tax
|
|
1979
|
+
* and refund calculations.
|
|
1980
|
+
*/
|
|
1981
|
+
proratedLinePrice: Scalars['Money']['output'];
|
|
1982
|
+
/** The proratedLinePrice including tax */
|
|
1983
|
+
proratedLinePriceWithTax: Scalars['Money']['output'];
|
|
1984
|
+
/**
|
|
1985
|
+
* The actual unit price, taking into account both item discounts _and_ prorated (proportionally-distributed)
|
|
1986
|
+
* Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax
|
|
1987
|
+
* and refund calculations.
|
|
1988
|
+
*/
|
|
1989
|
+
proratedUnitPrice: Scalars['Money']['output'];
|
|
1990
|
+
/** The proratedUnitPrice including tax */
|
|
1991
|
+
proratedUnitPriceWithTax: Scalars['Money']['output'];
|
|
1992
|
+
/** The quantity of items purchased */
|
|
1993
|
+
quantity: Scalars['Int']['output'];
|
|
1994
|
+
taxLines: Array<TaxLine>;
|
|
1995
|
+
taxRate: Scalars['Float']['output'];
|
|
1996
|
+
/** The price of a single unit, excluding tax and discounts */
|
|
1997
|
+
unitPrice: Scalars['Money']['output'];
|
|
1998
|
+
/** Non-zero if the unitPrice has changed since it was initially added to Order */
|
|
1999
|
+
unitPriceChangeSinceAdded: Scalars['Money']['output'];
|
|
2000
|
+
/** The price of a single unit, including tax but excluding discounts */
|
|
2001
|
+
unitPriceWithTax: Scalars['Money']['output'];
|
|
2002
|
+
/** Non-zero if the unitPriceWithTax has changed since it was initially added to Order */
|
|
2003
|
+
unitPriceWithTaxChangeSinceAdded: Scalars['Money']['output'];
|
|
2004
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
2005
|
+
};
|
|
2006
|
+
export type OrderList = PaginatedList & {
|
|
2007
|
+
__typename?: 'OrderList';
|
|
2008
|
+
items: Array<Order>;
|
|
2009
|
+
totalItems: Scalars['Int']['output'];
|
|
2010
|
+
};
|
|
2011
|
+
export type OrderListOptions = {
|
|
2012
|
+
/** Allows the results to be filtered */
|
|
2013
|
+
filter?: InputMaybe<OrderFilterParameter>;
|
|
2014
|
+
/** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */
|
|
2015
|
+
filterOperator?: InputMaybe<LogicalOperator>;
|
|
2016
|
+
/** Skips the first n results, for use in pagination */
|
|
2017
|
+
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
2018
|
+
/** Specifies which properties to sort the results by */
|
|
2019
|
+
sort?: InputMaybe<OrderSortParameter>;
|
|
2020
|
+
/** Takes n results, for use in pagination */
|
|
2021
|
+
take?: InputMaybe<Scalars['Int']['input']>;
|
|
2022
|
+
};
|
|
2023
|
+
/** Returned when an order operation is rejected by an OrderInterceptor method. */
|
|
2024
|
+
export type OrderMiddlewareError = ErrorResult & {
|
|
2025
|
+
__typename?: 'OrderMiddlewareError';
|
|
2026
|
+
errorCode: ErrorCode;
|
|
2027
|
+
message: Scalars['String']['output'];
|
|
2028
|
+
middlewareError: Scalars['String']['output'];
|
|
2029
|
+
};
|
|
2030
|
+
/** Returned when attempting to modify the contents of an Order that is not in the `AddingItems` state. */
|
|
2031
|
+
export type OrderModificationError = ErrorResult & {
|
|
2032
|
+
__typename?: 'OrderModificationError';
|
|
2033
|
+
errorCode: ErrorCode;
|
|
2034
|
+
message: Scalars['String']['output'];
|
|
2035
|
+
};
|
|
2036
|
+
/** Returned when attempting to add a Payment to an Order that is not in the `ArrangingPayment` state. */
|
|
2037
|
+
export type OrderPaymentStateError = ErrorResult & {
|
|
2038
|
+
__typename?: 'OrderPaymentStateError';
|
|
2039
|
+
errorCode: ErrorCode;
|
|
2040
|
+
message: Scalars['String']['output'];
|
|
2041
|
+
};
|
|
2042
|
+
export type OrderSortParameter = {
|
|
2043
|
+
code?: InputMaybe<SortOrder>;
|
|
2044
|
+
createdAt?: InputMaybe<SortOrder>;
|
|
2045
|
+
id?: InputMaybe<SortOrder>;
|
|
2046
|
+
orderPlacedAt?: InputMaybe<SortOrder>;
|
|
2047
|
+
shipping?: InputMaybe<SortOrder>;
|
|
2048
|
+
shippingWithTax?: InputMaybe<SortOrder>;
|
|
2049
|
+
state?: InputMaybe<SortOrder>;
|
|
2050
|
+
subTotal?: InputMaybe<SortOrder>;
|
|
2051
|
+
subTotalWithTax?: InputMaybe<SortOrder>;
|
|
2052
|
+
total?: InputMaybe<SortOrder>;
|
|
2053
|
+
totalQuantity?: InputMaybe<SortOrder>;
|
|
2054
|
+
totalWithTax?: InputMaybe<SortOrder>;
|
|
2055
|
+
updatedAt?: InputMaybe<SortOrder>;
|
|
2056
|
+
};
|
|
2057
|
+
/** Returned if there is an error in transitioning the Order state */
|
|
2058
|
+
export type OrderStateTransitionError = ErrorResult & {
|
|
2059
|
+
__typename?: 'OrderStateTransitionError';
|
|
2060
|
+
errorCode: ErrorCode;
|
|
2061
|
+
fromState: Scalars['String']['output'];
|
|
2062
|
+
message: Scalars['String']['output'];
|
|
2063
|
+
toState: Scalars['String']['output'];
|
|
2064
|
+
transitionError: Scalars['String']['output'];
|
|
2065
|
+
};
|
|
2066
|
+
/**
|
|
2067
|
+
* A summary of the taxes being applied to this order, grouped
|
|
2068
|
+
* by taxRate.
|
|
2069
|
+
*/
|
|
2070
|
+
export type OrderTaxSummary = {
|
|
2071
|
+
__typename?: 'OrderTaxSummary';
|
|
2072
|
+
/** A description of this tax */
|
|
2073
|
+
description: Scalars['String']['output'];
|
|
2074
|
+
/** The total net price of OrderLines to which this taxRate applies */
|
|
2075
|
+
taxBase: Scalars['Money']['output'];
|
|
2076
|
+
/** The taxRate as a percentage */
|
|
2077
|
+
taxRate: Scalars['Float']['output'];
|
|
2078
|
+
/** The total tax being applied to the Order at this taxRate */
|
|
2079
|
+
taxTotal: Scalars['Money']['output'];
|
|
2080
|
+
};
|
|
2081
|
+
export declare enum OrderType {
|
|
2082
|
+
Aggregate = "Aggregate",
|
|
2083
|
+
Regular = "Regular",
|
|
2084
|
+
Seller = "Seller"
|
|
2085
|
+
}
|
|
2086
|
+
export type PaginatedList = {
|
|
2087
|
+
items: Array<Node>;
|
|
2088
|
+
totalItems: Scalars['Int']['output'];
|
|
2089
|
+
};
|
|
2090
|
+
/** Returned when attempting to verify a customer account with a password, when a password has already been set. */
|
|
2091
|
+
export type PasswordAlreadySetError = ErrorResult & {
|
|
2092
|
+
__typename?: 'PasswordAlreadySetError';
|
|
2093
|
+
errorCode: ErrorCode;
|
|
2094
|
+
message: Scalars['String']['output'];
|
|
2095
|
+
};
|
|
2096
|
+
/**
|
|
2097
|
+
* Returned if the token used to reset a Customer's password is valid, but has
|
|
2098
|
+
* expired according to the `verificationTokenDuration` setting in the AuthOptions.
|
|
2099
|
+
*/
|
|
2100
|
+
export type PasswordResetTokenExpiredError = ErrorResult & {
|
|
2101
|
+
__typename?: 'PasswordResetTokenExpiredError';
|
|
2102
|
+
errorCode: ErrorCode;
|
|
2103
|
+
message: Scalars['String']['output'];
|
|
2104
|
+
};
|
|
2105
|
+
/**
|
|
2106
|
+
* Returned if the token used to reset a Customer's password is either
|
|
2107
|
+
* invalid or does not match any expected tokens.
|
|
2108
|
+
*/
|
|
2109
|
+
export type PasswordResetTokenInvalidError = ErrorResult & {
|
|
2110
|
+
__typename?: 'PasswordResetTokenInvalidError';
|
|
2111
|
+
errorCode: ErrorCode;
|
|
2112
|
+
message: Scalars['String']['output'];
|
|
2113
|
+
};
|
|
2114
|
+
/** Returned when attempting to register or verify a customer account where the given password fails password validation. */
|
|
2115
|
+
export type PasswordValidationError = ErrorResult & {
|
|
2116
|
+
__typename?: 'PasswordValidationError';
|
|
2117
|
+
errorCode: ErrorCode;
|
|
2118
|
+
message: Scalars['String']['output'];
|
|
2119
|
+
validationErrorMessage: Scalars['String']['output'];
|
|
2120
|
+
};
|
|
2121
|
+
export type Payment = Node & {
|
|
2122
|
+
__typename?: 'Payment';
|
|
2123
|
+
amount: Scalars['Money']['output'];
|
|
2124
|
+
createdAt: Scalars['DateTime']['output'];
|
|
2125
|
+
errorMessage?: Maybe<Scalars['String']['output']>;
|
|
2126
|
+
id: Scalars['ID']['output'];
|
|
2127
|
+
metadata?: Maybe<Scalars['JSON']['output']>;
|
|
2128
|
+
method: Scalars['String']['output'];
|
|
2129
|
+
refunds: Array<Refund>;
|
|
2130
|
+
state: Scalars['String']['output'];
|
|
2131
|
+
transactionId?: Maybe<Scalars['String']['output']>;
|
|
2132
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
2133
|
+
};
|
|
2134
|
+
/** Returned when a Payment is declined by the payment provider. */
|
|
2135
|
+
export type PaymentDeclinedError = ErrorResult & {
|
|
2136
|
+
__typename?: 'PaymentDeclinedError';
|
|
2137
|
+
errorCode: ErrorCode;
|
|
2138
|
+
message: Scalars['String']['output'];
|
|
2139
|
+
paymentErrorMessage: Scalars['String']['output'];
|
|
2140
|
+
};
|
|
2141
|
+
/** Returned when a Payment fails due to an error. */
|
|
2142
|
+
export type PaymentFailedError = ErrorResult & {
|
|
2143
|
+
__typename?: 'PaymentFailedError';
|
|
2144
|
+
errorCode: ErrorCode;
|
|
2145
|
+
message: Scalars['String']['output'];
|
|
2146
|
+
paymentErrorMessage: Scalars['String']['output'];
|
|
2147
|
+
};
|
|
2148
|
+
/** Passed as input to the `addPaymentToOrder` mutation. */
|
|
2149
|
+
export type PaymentInput = {
|
|
2150
|
+
/**
|
|
2151
|
+
* This field should contain arbitrary data passed to the specified PaymentMethodHandler's `createPayment()` method
|
|
2152
|
+
* as the "metadata" argument. For example, it could contain an ID for the payment and other
|
|
2153
|
+
* data generated by the payment provider.
|
|
2154
|
+
*/
|
|
2155
|
+
metadata: Scalars['JSON']['input'];
|
|
2156
|
+
/** This field should correspond to the `code` property of a PaymentMethod. */
|
|
2157
|
+
method: Scalars['String']['input'];
|
|
2158
|
+
};
|
|
2159
|
+
export type PaymentMethod = Node & {
|
|
2160
|
+
__typename?: 'PaymentMethod';
|
|
2161
|
+
checker?: Maybe<ConfigurableOperation>;
|
|
2162
|
+
code: Scalars['String']['output'];
|
|
2163
|
+
createdAt: Scalars['DateTime']['output'];
|
|
2164
|
+
customFields?: Maybe<Scalars['JSON']['output']>;
|
|
2165
|
+
description: Scalars['String']['output'];
|
|
2166
|
+
enabled: Scalars['Boolean']['output'];
|
|
2167
|
+
handler: ConfigurableOperation;
|
|
2168
|
+
id: Scalars['ID']['output'];
|
|
2169
|
+
name: Scalars['String']['output'];
|
|
2170
|
+
translations: Array<PaymentMethodTranslation>;
|
|
2171
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
2172
|
+
};
|
|
2173
|
+
export type PaymentMethodQuote = {
|
|
2174
|
+
__typename?: 'PaymentMethodQuote';
|
|
2175
|
+
code: Scalars['String']['output'];
|
|
2176
|
+
customFields?: Maybe<Scalars['JSON']['output']>;
|
|
2177
|
+
description: Scalars['String']['output'];
|
|
2178
|
+
eligibilityMessage?: Maybe<Scalars['String']['output']>;
|
|
2179
|
+
id: Scalars['ID']['output'];
|
|
2180
|
+
isEligible: Scalars['Boolean']['output'];
|
|
2181
|
+
name: Scalars['String']['output'];
|
|
2182
|
+
};
|
|
2183
|
+
export type PaymentMethodTranslation = {
|
|
2184
|
+
__typename?: 'PaymentMethodTranslation';
|
|
2185
|
+
createdAt: Scalars['DateTime']['output'];
|
|
2186
|
+
description: Scalars['String']['output'];
|
|
2187
|
+
id: Scalars['ID']['output'];
|
|
2188
|
+
languageCode: LanguageCode;
|
|
2189
|
+
name: Scalars['String']['output'];
|
|
2190
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
2191
|
+
};
|
|
2192
|
+
/**
|
|
2193
|
+
* @description
|
|
2194
|
+
* Permissions for administrators and customers. Used to control access to
|
|
2195
|
+
* GraphQL resolvers via the {@link Allow} decorator.
|
|
2196
|
+
*
|
|
2197
|
+
* ## Understanding Permission.Owner
|
|
2198
|
+
*
|
|
2199
|
+
* `Permission.Owner` is a special permission which is used in some Deenruv resolvers to indicate that that resolver should only
|
|
2200
|
+
* be accessible to the "owner" of that resource.
|
|
2201
|
+
*
|
|
2202
|
+
* For example, the Shop API `activeCustomer` query resolver should only return the Customer object for the "owner" of that Customer, i.e.
|
|
2203
|
+
* based on the activeUserId of the current session. As a result, the resolver code looks like this:
|
|
2204
|
+
*
|
|
2205
|
+
* @example
|
|
2206
|
+
* ```TypeScript
|
|
2207
|
+
* \@Query()
|
|
2208
|
+
* \@Allow(Permission.Owner)
|
|
2209
|
+
* async activeCustomer(\@Ctx() ctx: RequestContext): Promise<Customer | undefined> {
|
|
2210
|
+
* const userId = ctx.activeUserId;
|
|
2211
|
+
* if (userId) {
|
|
2212
|
+
* return this.customerService.findOneByUserId(ctx, userId);
|
|
2213
|
+
* }
|
|
2214
|
+
* }
|
|
2215
|
+
* ```
|
|
2216
|
+
*
|
|
2217
|
+
* Here we can see that the "ownership" must be enforced by custom logic inside the resolver. Since "ownership" cannot be defined generally
|
|
2218
|
+
* nor statically encoded at build-time, any resolvers using `Permission.Owner` **must** include logic to enforce that only the owner
|
|
2219
|
+
* of the resource has access. If not, then it is the equivalent of using `Permission.Public`.
|
|
2220
|
+
*
|
|
2221
|
+
*
|
|
2222
|
+
* @docsCategory common
|
|
2223
|
+
*/
|
|
2224
|
+
export declare enum Permission {
|
|
2225
|
+
/** Authenticated means simply that the user is logged in */
|
|
2226
|
+
Authenticated = "Authenticated",
|
|
2227
|
+
/** Grants permission to create Administrator */
|
|
2228
|
+
CreateAdministrator = "CreateAdministrator",
|
|
2229
|
+
/** Grants permission to create Asset */
|
|
2230
|
+
CreateAsset = "CreateAsset",
|
|
2231
|
+
/** Grants permission to create Products, Facets, Assets, Collections */
|
|
2232
|
+
CreateCatalog = "CreateCatalog",
|
|
2233
|
+
/** Grants permission to create Channel */
|
|
2234
|
+
CreateChannel = "CreateChannel",
|
|
2235
|
+
/** Grants permission to create Collection */
|
|
2236
|
+
CreateCollection = "CreateCollection",
|
|
2237
|
+
/** Grants permission to create Country */
|
|
2238
|
+
CreateCountry = "CreateCountry",
|
|
2239
|
+
/** Grants permission to create Customer */
|
|
2240
|
+
CreateCustomer = "CreateCustomer",
|
|
2241
|
+
/** Grants permission to create CustomerGroup */
|
|
2242
|
+
CreateCustomerGroup = "CreateCustomerGroup",
|
|
2243
|
+
/** Grants permission to create Facet */
|
|
2244
|
+
CreateFacet = "CreateFacet",
|
|
2245
|
+
/** Grants permission to create Order */
|
|
2246
|
+
CreateOrder = "CreateOrder",
|
|
2247
|
+
/** Grants permission to create PaymentMethod */
|
|
2248
|
+
CreatePaymentMethod = "CreatePaymentMethod",
|
|
2249
|
+
/** Grants permission to create Product */
|
|
2250
|
+
CreateProduct = "CreateProduct",
|
|
2251
|
+
/** Grants permission to create Promotion */
|
|
2252
|
+
CreatePromotion = "CreatePromotion",
|
|
2253
|
+
/** Grants permission to create Seller */
|
|
2254
|
+
CreateSeller = "CreateSeller",
|
|
2255
|
+
/** Grants permission to create PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */
|
|
2256
|
+
CreateSettings = "CreateSettings",
|
|
2257
|
+
/** Grants permission to create ShippingMethod */
|
|
2258
|
+
CreateShippingMethod = "CreateShippingMethod",
|
|
2259
|
+
/** Grants permission to create StockLocation */
|
|
2260
|
+
CreateStockLocation = "CreateStockLocation",
|
|
2261
|
+
/** Grants permission to create System */
|
|
2262
|
+
CreateSystem = "CreateSystem",
|
|
2263
|
+
/** Grants permission to create Tag */
|
|
2264
|
+
CreateTag = "CreateTag",
|
|
2265
|
+
/** Grants permission to create TaxCategory */
|
|
2266
|
+
CreateTaxCategory = "CreateTaxCategory",
|
|
2267
|
+
/** Grants permission to create TaxRate */
|
|
2268
|
+
CreateTaxRate = "CreateTaxRate",
|
|
2269
|
+
/** Grants permission to create Zone */
|
|
2270
|
+
CreateZone = "CreateZone",
|
|
2271
|
+
/** Grants permission to delete Administrator */
|
|
2272
|
+
DeleteAdministrator = "DeleteAdministrator",
|
|
2273
|
+
/** Grants permission to delete Asset */
|
|
2274
|
+
DeleteAsset = "DeleteAsset",
|
|
2275
|
+
/** Grants permission to delete Products, Facets, Assets, Collections */
|
|
2276
|
+
DeleteCatalog = "DeleteCatalog",
|
|
2277
|
+
/** Grants permission to delete Channel */
|
|
2278
|
+
DeleteChannel = "DeleteChannel",
|
|
2279
|
+
/** Grants permission to delete Collection */
|
|
2280
|
+
DeleteCollection = "DeleteCollection",
|
|
2281
|
+
/** Grants permission to delete Country */
|
|
2282
|
+
DeleteCountry = "DeleteCountry",
|
|
2283
|
+
/** Grants permission to delete Customer */
|
|
2284
|
+
DeleteCustomer = "DeleteCustomer",
|
|
2285
|
+
/** Grants permission to delete CustomerGroup */
|
|
2286
|
+
DeleteCustomerGroup = "DeleteCustomerGroup",
|
|
2287
|
+
/** Grants permission to delete Facet */
|
|
2288
|
+
DeleteFacet = "DeleteFacet",
|
|
2289
|
+
/** Grants permission to delete Order */
|
|
2290
|
+
DeleteOrder = "DeleteOrder",
|
|
2291
|
+
/** Grants permission to delete PaymentMethod */
|
|
2292
|
+
DeletePaymentMethod = "DeletePaymentMethod",
|
|
2293
|
+
/** Grants permission to delete Product */
|
|
2294
|
+
DeleteProduct = "DeleteProduct",
|
|
2295
|
+
/** Grants permission to delete Promotion */
|
|
2296
|
+
DeletePromotion = "DeletePromotion",
|
|
2297
|
+
/** Grants permission to delete Seller */
|
|
2298
|
+
DeleteSeller = "DeleteSeller",
|
|
2299
|
+
/** Grants permission to delete PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */
|
|
2300
|
+
DeleteSettings = "DeleteSettings",
|
|
2301
|
+
/** Grants permission to delete ShippingMethod */
|
|
2302
|
+
DeleteShippingMethod = "DeleteShippingMethod",
|
|
2303
|
+
/** Grants permission to delete StockLocation */
|
|
2304
|
+
DeleteStockLocation = "DeleteStockLocation",
|
|
2305
|
+
/** Grants permission to delete System */
|
|
2306
|
+
DeleteSystem = "DeleteSystem",
|
|
2307
|
+
/** Grants permission to delete Tag */
|
|
2308
|
+
DeleteTag = "DeleteTag",
|
|
2309
|
+
/** Grants permission to delete TaxCategory */
|
|
2310
|
+
DeleteTaxCategory = "DeleteTaxCategory",
|
|
2311
|
+
/** Grants permission to delete TaxRate */
|
|
2312
|
+
DeleteTaxRate = "DeleteTaxRate",
|
|
2313
|
+
/** Grants permission to delete Zone */
|
|
2314
|
+
DeleteZone = "DeleteZone",
|
|
2315
|
+
/** Owner means the user owns this entity, e.g. a Customer's own Order */
|
|
2316
|
+
Owner = "Owner",
|
|
2317
|
+
/** Public means any unauthenticated user may perform the operation */
|
|
2318
|
+
Public = "Public",
|
|
2319
|
+
/** Grants permission to read Administrator */
|
|
2320
|
+
ReadAdministrator = "ReadAdministrator",
|
|
2321
|
+
/** Grants permission to read Asset */
|
|
2322
|
+
ReadAsset = "ReadAsset",
|
|
2323
|
+
/** Grants permission to read Products, Facets, Assets, Collections */
|
|
2324
|
+
ReadCatalog = "ReadCatalog",
|
|
2325
|
+
/** Grants permission to read Channel */
|
|
2326
|
+
ReadChannel = "ReadChannel",
|
|
2327
|
+
/** Grants permission to read Collection */
|
|
2328
|
+
ReadCollection = "ReadCollection",
|
|
2329
|
+
/** Grants permission to read Country */
|
|
2330
|
+
ReadCountry = "ReadCountry",
|
|
2331
|
+
/** Grants permission to read Customer */
|
|
2332
|
+
ReadCustomer = "ReadCustomer",
|
|
2333
|
+
/** Grants permission to read CustomerGroup */
|
|
2334
|
+
ReadCustomerGroup = "ReadCustomerGroup",
|
|
2335
|
+
/** Grants permission to read Facet */
|
|
2336
|
+
ReadFacet = "ReadFacet",
|
|
2337
|
+
/** Grants permission to read Order */
|
|
2338
|
+
ReadOrder = "ReadOrder",
|
|
2339
|
+
/** Grants permission to read PaymentMethod */
|
|
2340
|
+
ReadPaymentMethod = "ReadPaymentMethod",
|
|
2341
|
+
/** Grants permission to read Product */
|
|
2342
|
+
ReadProduct = "ReadProduct",
|
|
2343
|
+
/** Grants permission to read Promotion */
|
|
2344
|
+
ReadPromotion = "ReadPromotion",
|
|
2345
|
+
/** Grants permission to read Seller */
|
|
2346
|
+
ReadSeller = "ReadSeller",
|
|
2347
|
+
/** Grants permission to read PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */
|
|
2348
|
+
ReadSettings = "ReadSettings",
|
|
2349
|
+
/** Grants permission to read ShippingMethod */
|
|
2350
|
+
ReadShippingMethod = "ReadShippingMethod",
|
|
2351
|
+
/** Grants permission to read StockLocation */
|
|
2352
|
+
ReadStockLocation = "ReadStockLocation",
|
|
2353
|
+
/** Grants permission to read System */
|
|
2354
|
+
ReadSystem = "ReadSystem",
|
|
2355
|
+
/** Grants permission to read Tag */
|
|
2356
|
+
ReadTag = "ReadTag",
|
|
2357
|
+
/** Grants permission to read TaxCategory */
|
|
2358
|
+
ReadTaxCategory = "ReadTaxCategory",
|
|
2359
|
+
/** Grants permission to read TaxRate */
|
|
2360
|
+
ReadTaxRate = "ReadTaxRate",
|
|
2361
|
+
/** Grants permission to read Zone */
|
|
2362
|
+
ReadZone = "ReadZone",
|
|
2363
|
+
/** SuperAdmin has unrestricted access to all operations */
|
|
2364
|
+
SuperAdmin = "SuperAdmin",
|
|
2365
|
+
/** Grants permission to update Administrator */
|
|
2366
|
+
UpdateAdministrator = "UpdateAdministrator",
|
|
2367
|
+
/** Grants permission to update Asset */
|
|
2368
|
+
UpdateAsset = "UpdateAsset",
|
|
2369
|
+
/** Grants permission to update Products, Facets, Assets, Collections */
|
|
2370
|
+
UpdateCatalog = "UpdateCatalog",
|
|
2371
|
+
/** Grants permission to update Channel */
|
|
2372
|
+
UpdateChannel = "UpdateChannel",
|
|
2373
|
+
/** Grants permission to update Collection */
|
|
2374
|
+
UpdateCollection = "UpdateCollection",
|
|
2375
|
+
/** Grants permission to update Country */
|
|
2376
|
+
UpdateCountry = "UpdateCountry",
|
|
2377
|
+
/** Grants permission to update Customer */
|
|
2378
|
+
UpdateCustomer = "UpdateCustomer",
|
|
2379
|
+
/** Grants permission to update CustomerGroup */
|
|
2380
|
+
UpdateCustomerGroup = "UpdateCustomerGroup",
|
|
2381
|
+
/** Grants permission to update Facet */
|
|
2382
|
+
UpdateFacet = "UpdateFacet",
|
|
2383
|
+
/** Grants permission to update GlobalSettings */
|
|
2384
|
+
UpdateGlobalSettings = "UpdateGlobalSettings",
|
|
2385
|
+
/** Grants permission to update Order */
|
|
2386
|
+
UpdateOrder = "UpdateOrder",
|
|
2387
|
+
/** Grants permission to update PaymentMethod */
|
|
2388
|
+
UpdatePaymentMethod = "UpdatePaymentMethod",
|
|
2389
|
+
/** Grants permission to update Product */
|
|
2390
|
+
UpdateProduct = "UpdateProduct",
|
|
2391
|
+
/** Grants permission to update Promotion */
|
|
2392
|
+
UpdatePromotion = "UpdatePromotion",
|
|
2393
|
+
/** Grants permission to update Seller */
|
|
2394
|
+
UpdateSeller = "UpdateSeller",
|
|
2395
|
+
/** Grants permission to update PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */
|
|
2396
|
+
UpdateSettings = "UpdateSettings",
|
|
2397
|
+
/** Grants permission to update ShippingMethod */
|
|
2398
|
+
UpdateShippingMethod = "UpdateShippingMethod",
|
|
2399
|
+
/** Grants permission to update StockLocation */
|
|
2400
|
+
UpdateStockLocation = "UpdateStockLocation",
|
|
2401
|
+
/** Grants permission to update System */
|
|
2402
|
+
UpdateSystem = "UpdateSystem",
|
|
2403
|
+
/** Grants permission to update Tag */
|
|
2404
|
+
UpdateTag = "UpdateTag",
|
|
2405
|
+
/** Grants permission to update TaxCategory */
|
|
2406
|
+
UpdateTaxCategory = "UpdateTaxCategory",
|
|
2407
|
+
/** Grants permission to update TaxRate */
|
|
2408
|
+
UpdateTaxRate = "UpdateTaxRate",
|
|
2409
|
+
/** Grants permission to update Zone */
|
|
2410
|
+
UpdateZone = "UpdateZone"
|
|
2411
|
+
}
|
|
2412
|
+
/** The price range where the result has more than one price */
|
|
2413
|
+
export type PriceRange = {
|
|
2414
|
+
__typename?: 'PriceRange';
|
|
2415
|
+
max: Scalars['Money']['output'];
|
|
2416
|
+
min: Scalars['Money']['output'];
|
|
2417
|
+
};
|
|
2418
|
+
export type Product = Node & {
|
|
2419
|
+
__typename?: 'Product';
|
|
2420
|
+
assets: Array<Asset>;
|
|
2421
|
+
collections: Array<Collection>;
|
|
2422
|
+
createdAt: Scalars['DateTime']['output'];
|
|
2423
|
+
customFields?: Maybe<Scalars['JSON']['output']>;
|
|
2424
|
+
description: Scalars['String']['output'];
|
|
2425
|
+
enabled: Scalars['Boolean']['output'];
|
|
2426
|
+
facetValues: Array<FacetValue>;
|
|
2427
|
+
featuredAsset?: Maybe<Asset>;
|
|
2428
|
+
id: Scalars['ID']['output'];
|
|
2429
|
+
languageCode: LanguageCode;
|
|
2430
|
+
name: Scalars['String']['output'];
|
|
2431
|
+
optionGroups: Array<ProductOptionGroup>;
|
|
2432
|
+
slug: Scalars['String']['output'];
|
|
2433
|
+
translations: Array<ProductTranslation>;
|
|
2434
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
2435
|
+
/** Returns a paginated, sortable, filterable list of ProductVariants */
|
|
2436
|
+
variantList: ProductVariantList;
|
|
2437
|
+
/** Returns all ProductVariants */
|
|
2438
|
+
variants: Array<ProductVariant>;
|
|
2439
|
+
};
|
|
2440
|
+
export type ProductVariantListArgs = {
|
|
2441
|
+
options?: InputMaybe<ProductVariantListOptions>;
|
|
2442
|
+
};
|
|
2443
|
+
export type ProductFilterParameter = {
|
|
2444
|
+
_and?: InputMaybe<Array<ProductFilterParameter>>;
|
|
2445
|
+
_or?: InputMaybe<Array<ProductFilterParameter>>;
|
|
2446
|
+
createdAt?: InputMaybe<DateOperators>;
|
|
2447
|
+
description?: InputMaybe<StringOperators>;
|
|
2448
|
+
enabled?: InputMaybe<BooleanOperators>;
|
|
2449
|
+
id?: InputMaybe<IdOperators>;
|
|
2450
|
+
languageCode?: InputMaybe<StringOperators>;
|
|
2451
|
+
name?: InputMaybe<StringOperators>;
|
|
2452
|
+
slug?: InputMaybe<StringOperators>;
|
|
2453
|
+
updatedAt?: InputMaybe<DateOperators>;
|
|
2454
|
+
};
|
|
2455
|
+
export type ProductList = PaginatedList & {
|
|
2456
|
+
__typename?: 'ProductList';
|
|
2457
|
+
items: Array<Product>;
|
|
2458
|
+
totalItems: Scalars['Int']['output'];
|
|
2459
|
+
};
|
|
2460
|
+
export type ProductListOptions = {
|
|
2461
|
+
/** Allows the results to be filtered */
|
|
2462
|
+
filter?: InputMaybe<ProductFilterParameter>;
|
|
2463
|
+
/** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */
|
|
2464
|
+
filterOperator?: InputMaybe<LogicalOperator>;
|
|
2465
|
+
/** Skips the first n results, for use in pagination */
|
|
2466
|
+
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
2467
|
+
/** Specifies which properties to sort the results by */
|
|
2468
|
+
sort?: InputMaybe<ProductSortParameter>;
|
|
2469
|
+
/** Takes n results, for use in pagination */
|
|
2470
|
+
take?: InputMaybe<Scalars['Int']['input']>;
|
|
2471
|
+
};
|
|
2472
|
+
export type ProductOption = Node & {
|
|
2473
|
+
__typename?: 'ProductOption';
|
|
2474
|
+
code: Scalars['String']['output'];
|
|
2475
|
+
createdAt: Scalars['DateTime']['output'];
|
|
2476
|
+
customFields?: Maybe<Scalars['JSON']['output']>;
|
|
2477
|
+
group: ProductOptionGroup;
|
|
2478
|
+
groupId: Scalars['ID']['output'];
|
|
2479
|
+
id: Scalars['ID']['output'];
|
|
2480
|
+
languageCode: LanguageCode;
|
|
2481
|
+
name: Scalars['String']['output'];
|
|
2482
|
+
translations: Array<ProductOptionTranslation>;
|
|
2483
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
2484
|
+
};
|
|
2485
|
+
export type ProductOptionGroup = Node & {
|
|
2486
|
+
__typename?: 'ProductOptionGroup';
|
|
2487
|
+
code: Scalars['String']['output'];
|
|
2488
|
+
createdAt: Scalars['DateTime']['output'];
|
|
2489
|
+
customFields?: Maybe<Scalars['JSON']['output']>;
|
|
2490
|
+
id: Scalars['ID']['output'];
|
|
2491
|
+
languageCode: LanguageCode;
|
|
2492
|
+
name: Scalars['String']['output'];
|
|
2493
|
+
options: Array<ProductOption>;
|
|
2494
|
+
translations: Array<ProductOptionGroupTranslation>;
|
|
2495
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
2496
|
+
};
|
|
2497
|
+
export type ProductOptionGroupTranslation = {
|
|
2498
|
+
__typename?: 'ProductOptionGroupTranslation';
|
|
2499
|
+
createdAt: Scalars['DateTime']['output'];
|
|
2500
|
+
id: Scalars['ID']['output'];
|
|
2501
|
+
languageCode: LanguageCode;
|
|
2502
|
+
name: Scalars['String']['output'];
|
|
2503
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
2504
|
+
};
|
|
2505
|
+
export type ProductOptionTranslation = {
|
|
2506
|
+
__typename?: 'ProductOptionTranslation';
|
|
2507
|
+
createdAt: Scalars['DateTime']['output'];
|
|
2508
|
+
id: Scalars['ID']['output'];
|
|
2509
|
+
languageCode: LanguageCode;
|
|
2510
|
+
name: Scalars['String']['output'];
|
|
2511
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
2512
|
+
};
|
|
2513
|
+
export type ProductSortParameter = {
|
|
2514
|
+
createdAt?: InputMaybe<SortOrder>;
|
|
2515
|
+
description?: InputMaybe<SortOrder>;
|
|
2516
|
+
id?: InputMaybe<SortOrder>;
|
|
2517
|
+
name?: InputMaybe<SortOrder>;
|
|
2518
|
+
slug?: InputMaybe<SortOrder>;
|
|
2519
|
+
updatedAt?: InputMaybe<SortOrder>;
|
|
2520
|
+
};
|
|
2521
|
+
export type ProductTranslation = {
|
|
2522
|
+
__typename?: 'ProductTranslation';
|
|
2523
|
+
createdAt: Scalars['DateTime']['output'];
|
|
2524
|
+
description: Scalars['String']['output'];
|
|
2525
|
+
id: Scalars['ID']['output'];
|
|
2526
|
+
languageCode: LanguageCode;
|
|
2527
|
+
name: Scalars['String']['output'];
|
|
2528
|
+
slug: Scalars['String']['output'];
|
|
2529
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
2530
|
+
};
|
|
2531
|
+
export type ProductVariant = Node & {
|
|
2532
|
+
__typename?: 'ProductVariant';
|
|
2533
|
+
assets: Array<Asset>;
|
|
2534
|
+
createdAt: Scalars['DateTime']['output'];
|
|
2535
|
+
currencyCode: CurrencyCode;
|
|
2536
|
+
customFields?: Maybe<Scalars['JSON']['output']>;
|
|
2537
|
+
facetValues: Array<FacetValue>;
|
|
2538
|
+
featuredAsset?: Maybe<Asset>;
|
|
2539
|
+
id: Scalars['ID']['output'];
|
|
2540
|
+
languageCode: LanguageCode;
|
|
2541
|
+
name: Scalars['String']['output'];
|
|
2542
|
+
options: Array<ProductOption>;
|
|
2543
|
+
price: Scalars['Money']['output'];
|
|
2544
|
+
priceWithTax: Scalars['Money']['output'];
|
|
2545
|
+
product: Product;
|
|
2546
|
+
productId: Scalars['ID']['output'];
|
|
2547
|
+
sku: Scalars['String']['output'];
|
|
2548
|
+
stockLevel: Scalars['String']['output'];
|
|
2549
|
+
taxCategory: TaxCategory;
|
|
2550
|
+
taxRateApplied: TaxRate;
|
|
2551
|
+
translations: Array<ProductVariantTranslation>;
|
|
2552
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
2553
|
+
};
|
|
2554
|
+
export type ProductVariantFilterParameter = {
|
|
2555
|
+
_and?: InputMaybe<Array<ProductVariantFilterParameter>>;
|
|
2556
|
+
_or?: InputMaybe<Array<ProductVariantFilterParameter>>;
|
|
2557
|
+
createdAt?: InputMaybe<DateOperators>;
|
|
2558
|
+
currencyCode?: InputMaybe<StringOperators>;
|
|
2559
|
+
id?: InputMaybe<IdOperators>;
|
|
2560
|
+
languageCode?: InputMaybe<StringOperators>;
|
|
2561
|
+
name?: InputMaybe<StringOperators>;
|
|
2562
|
+
price?: InputMaybe<NumberOperators>;
|
|
2563
|
+
priceWithTax?: InputMaybe<NumberOperators>;
|
|
2564
|
+
productId?: InputMaybe<IdOperators>;
|
|
2565
|
+
sku?: InputMaybe<StringOperators>;
|
|
2566
|
+
stockLevel?: InputMaybe<StringOperators>;
|
|
2567
|
+
updatedAt?: InputMaybe<DateOperators>;
|
|
2568
|
+
};
|
|
2569
|
+
export type ProductVariantList = PaginatedList & {
|
|
2570
|
+
__typename?: 'ProductVariantList';
|
|
2571
|
+
items: Array<ProductVariant>;
|
|
2572
|
+
totalItems: Scalars['Int']['output'];
|
|
2573
|
+
};
|
|
2574
|
+
export type ProductVariantListOptions = {
|
|
2575
|
+
/** Allows the results to be filtered */
|
|
2576
|
+
filter?: InputMaybe<ProductVariantFilterParameter>;
|
|
2577
|
+
/** Specifies whether multiple top-level "filter" fields should be combined with a logical AND or OR operation. Defaults to AND. */
|
|
2578
|
+
filterOperator?: InputMaybe<LogicalOperator>;
|
|
2579
|
+
/** Skips the first n results, for use in pagination */
|
|
2580
|
+
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
2581
|
+
/** Specifies which properties to sort the results by */
|
|
2582
|
+
sort?: InputMaybe<ProductVariantSortParameter>;
|
|
2583
|
+
/** Takes n results, for use in pagination */
|
|
2584
|
+
take?: InputMaybe<Scalars['Int']['input']>;
|
|
2585
|
+
};
|
|
2586
|
+
export type ProductVariantSortParameter = {
|
|
2587
|
+
createdAt?: InputMaybe<SortOrder>;
|
|
2588
|
+
id?: InputMaybe<SortOrder>;
|
|
2589
|
+
name?: InputMaybe<SortOrder>;
|
|
2590
|
+
price?: InputMaybe<SortOrder>;
|
|
2591
|
+
priceWithTax?: InputMaybe<SortOrder>;
|
|
2592
|
+
productId?: InputMaybe<SortOrder>;
|
|
2593
|
+
sku?: InputMaybe<SortOrder>;
|
|
2594
|
+
stockLevel?: InputMaybe<SortOrder>;
|
|
2595
|
+
updatedAt?: InputMaybe<SortOrder>;
|
|
2596
|
+
};
|
|
2597
|
+
export type ProductVariantTranslation = {
|
|
2598
|
+
__typename?: 'ProductVariantTranslation';
|
|
2599
|
+
createdAt: Scalars['DateTime']['output'];
|
|
2600
|
+
id: Scalars['ID']['output'];
|
|
2601
|
+
languageCode: LanguageCode;
|
|
2602
|
+
name: Scalars['String']['output'];
|
|
2603
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
2604
|
+
};
|
|
2605
|
+
export type Promotion = Node & {
|
|
2606
|
+
__typename?: 'Promotion';
|
|
2607
|
+
actions: Array<ConfigurableOperation>;
|
|
2608
|
+
conditions: Array<ConfigurableOperation>;
|
|
2609
|
+
couponCode?: Maybe<Scalars['String']['output']>;
|
|
2610
|
+
createdAt: Scalars['DateTime']['output'];
|
|
2611
|
+
customFields?: Maybe<Scalars['JSON']['output']>;
|
|
2612
|
+
description: Scalars['String']['output'];
|
|
2613
|
+
enabled: Scalars['Boolean']['output'];
|
|
2614
|
+
endsAt?: Maybe<Scalars['DateTime']['output']>;
|
|
2615
|
+
id: Scalars['ID']['output'];
|
|
2616
|
+
name: Scalars['String']['output'];
|
|
2617
|
+
perCustomerUsageLimit?: Maybe<Scalars['Int']['output']>;
|
|
2618
|
+
startsAt?: Maybe<Scalars['DateTime']['output']>;
|
|
2619
|
+
translations: Array<PromotionTranslation>;
|
|
2620
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
2621
|
+
usageLimit?: Maybe<Scalars['Int']['output']>;
|
|
2622
|
+
};
|
|
2623
|
+
export type PromotionList = PaginatedList & {
|
|
2624
|
+
__typename?: 'PromotionList';
|
|
2625
|
+
items: Array<Promotion>;
|
|
2626
|
+
totalItems: Scalars['Int']['output'];
|
|
2627
|
+
};
|
|
2628
|
+
export type PromotionTranslation = {
|
|
2629
|
+
__typename?: 'PromotionTranslation';
|
|
2630
|
+
createdAt: Scalars['DateTime']['output'];
|
|
2631
|
+
description: Scalars['String']['output'];
|
|
2632
|
+
id: Scalars['ID']['output'];
|
|
2633
|
+
languageCode: LanguageCode;
|
|
2634
|
+
name: Scalars['String']['output'];
|
|
2635
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
2636
|
+
};
|
|
2637
|
+
export type Province = Node & Region & {
|
|
2638
|
+
__typename?: 'Province';
|
|
2639
|
+
code: Scalars['String']['output'];
|
|
2640
|
+
createdAt: Scalars['DateTime']['output'];
|
|
2641
|
+
customFields?: Maybe<Scalars['JSON']['output']>;
|
|
2642
|
+
enabled: Scalars['Boolean']['output'];
|
|
2643
|
+
id: Scalars['ID']['output'];
|
|
2644
|
+
languageCode: LanguageCode;
|
|
2645
|
+
name: Scalars['String']['output'];
|
|
2646
|
+
parent?: Maybe<Region>;
|
|
2647
|
+
parentId?: Maybe<Scalars['ID']['output']>;
|
|
2648
|
+
translations: Array<RegionTranslation>;
|
|
2649
|
+
type: Scalars['String']['output'];
|
|
2650
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
2651
|
+
};
|
|
2652
|
+
export type ProvinceList = PaginatedList & {
|
|
2653
|
+
__typename?: 'ProvinceList';
|
|
2654
|
+
items: Array<Province>;
|
|
2655
|
+
totalItems: Scalars['Int']['output'];
|
|
2656
|
+
};
|
|
2657
|
+
export type Query = {
|
|
2658
|
+
__typename?: 'Query';
|
|
2659
|
+
/** The active Channel */
|
|
2660
|
+
activeChannel: Channel;
|
|
2661
|
+
/** The active Customer */
|
|
2662
|
+
activeCustomer?: Maybe<Customer>;
|
|
2663
|
+
/**
|
|
2664
|
+
* The active Order. Will be `null` until an Order is created via `addItemToOrder`. Once an Order reaches the
|
|
2665
|
+
* state of `PaymentAuthorized` or `PaymentSettled`, then that Order is no longer considered "active" and this
|
|
2666
|
+
* query will once again return `null`.
|
|
2667
|
+
*/
|
|
2668
|
+
activeOrder?: Maybe<Order>;
|
|
2669
|
+
/** An array of supported Countries */
|
|
2670
|
+
availableCountries: Array<Country>;
|
|
2671
|
+
/** Returns a Collection either by its id or slug. If neither 'id' nor 'slug' is specified, an error will result. */
|
|
2672
|
+
collection?: Maybe<Collection>;
|
|
2673
|
+
/** A list of Collections available to the shop */
|
|
2674
|
+
collections: CollectionList;
|
|
2675
|
+
/** Returns a list of payment methods and their eligibility based on the current active Order */
|
|
2676
|
+
eligiblePaymentMethods: Array<PaymentMethodQuote>;
|
|
2677
|
+
/** Returns a list of eligible shipping methods based on the current active Order */
|
|
2678
|
+
eligibleShippingMethods: Array<ShippingMethodQuote>;
|
|
2679
|
+
/** Returns a Facet by its id */
|
|
2680
|
+
facet?: Maybe<Facet>;
|
|
2681
|
+
/** A list of Facets values available to the shop */
|
|
2682
|
+
facetValues: FacetValueList;
|
|
2683
|
+
/** A list of Facets available to the shop */
|
|
2684
|
+
facets: FacetList;
|
|
2685
|
+
/** Returns information about the current authenticated User */
|
|
2686
|
+
me?: Maybe<CurrentUser>;
|
|
2687
|
+
/** Returns the possible next states that the activeOrder can transition to */
|
|
2688
|
+
nextOrderStates: Array<Scalars['String']['output']>;
|
|
2689
|
+
/**
|
|
2690
|
+
* Returns an Order based on the id. Note that in the Shop API, only orders belonging to the
|
|
2691
|
+
* currently-authenticated User may be queried.
|
|
2692
|
+
*/
|
|
2693
|
+
order?: Maybe<Order>;
|
|
2694
|
+
/**
|
|
2695
|
+
* Returns an Order based on the order `code`. For guest Orders (i.e. Orders placed by non-authenticated Customers)
|
|
2696
|
+
* this query will only return the Order within 2 hours of the Order being placed. This allows an Order confirmation
|
|
2697
|
+
* screen to be shown immediately after completion of a guest checkout, yet prevents security risks of allowing
|
|
2698
|
+
* general anonymous access to Order data.
|
|
2699
|
+
*/
|
|
2700
|
+
orderByCode?: Maybe<Order>;
|
|
2701
|
+
/** Get a Product either by id or slug. If neither 'id' nor 'slug' is specified, an error will result. */
|
|
2702
|
+
product?: Maybe<Product>;
|
|
2703
|
+
/** Get a list of Products */
|
|
2704
|
+
products: ProductList;
|
|
2705
|
+
/** Search Products based on the criteria set by the `SearchInput` */
|
|
2706
|
+
search: SearchResponse;
|
|
2707
|
+
};
|
|
2708
|
+
export type QueryCollectionArgs = {
|
|
2709
|
+
id?: InputMaybe<Scalars['ID']['input']>;
|
|
2710
|
+
slug?: InputMaybe<Scalars['String']['input']>;
|
|
2711
|
+
};
|
|
2712
|
+
export type QueryCollectionsArgs = {
|
|
2713
|
+
options?: InputMaybe<CollectionListOptions>;
|
|
2714
|
+
};
|
|
2715
|
+
export type QueryFacetArgs = {
|
|
2716
|
+
id: Scalars['ID']['input'];
|
|
2717
|
+
};
|
|
2718
|
+
export type QueryFacetValuesArgs = {
|
|
2719
|
+
options?: InputMaybe<FacetValueListOptions>;
|
|
2720
|
+
};
|
|
2721
|
+
export type QueryFacetsArgs = {
|
|
2722
|
+
options?: InputMaybe<FacetListOptions>;
|
|
2723
|
+
};
|
|
2724
|
+
export type QueryOrderArgs = {
|
|
2725
|
+
id: Scalars['ID']['input'];
|
|
2726
|
+
};
|
|
2727
|
+
export type QueryOrderByCodeArgs = {
|
|
2728
|
+
code: Scalars['String']['input'];
|
|
2729
|
+
};
|
|
2730
|
+
export type QueryProductArgs = {
|
|
2731
|
+
id?: InputMaybe<Scalars['ID']['input']>;
|
|
2732
|
+
slug?: InputMaybe<Scalars['String']['input']>;
|
|
2733
|
+
};
|
|
2734
|
+
export type QueryProductsArgs = {
|
|
2735
|
+
options?: InputMaybe<ProductListOptions>;
|
|
2736
|
+
};
|
|
2737
|
+
export type QuerySearchArgs = {
|
|
2738
|
+
input: SearchInput;
|
|
2739
|
+
};
|
|
2740
|
+
export type RefreshCustomerVerificationResult = NativeAuthStrategyError | Success;
|
|
2741
|
+
export type Refund = Node & {
|
|
2742
|
+
__typename?: 'Refund';
|
|
2743
|
+
adjustment: Scalars['Money']['output'];
|
|
2744
|
+
createdAt: Scalars['DateTime']['output'];
|
|
2745
|
+
id: Scalars['ID']['output'];
|
|
2746
|
+
items: Scalars['Money']['output'];
|
|
2747
|
+
lines: Array<RefundLine>;
|
|
2748
|
+
metadata?: Maybe<Scalars['JSON']['output']>;
|
|
2749
|
+
method?: Maybe<Scalars['String']['output']>;
|
|
2750
|
+
paymentId: Scalars['ID']['output'];
|
|
2751
|
+
reason?: Maybe<Scalars['String']['output']>;
|
|
2752
|
+
shipping: Scalars['Money']['output'];
|
|
2753
|
+
state: Scalars['String']['output'];
|
|
2754
|
+
total: Scalars['Money']['output'];
|
|
2755
|
+
transactionId?: Maybe<Scalars['String']['output']>;
|
|
2756
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
2757
|
+
};
|
|
2758
|
+
export type RefundLine = {
|
|
2759
|
+
__typename?: 'RefundLine';
|
|
2760
|
+
orderLine: OrderLine;
|
|
2761
|
+
orderLineId: Scalars['ID']['output'];
|
|
2762
|
+
quantity: Scalars['Int']['output'];
|
|
2763
|
+
refund: Refund;
|
|
2764
|
+
refundId: Scalars['ID']['output'];
|
|
2765
|
+
};
|
|
2766
|
+
export type Region = {
|
|
2767
|
+
code: Scalars['String']['output'];
|
|
2768
|
+
createdAt: Scalars['DateTime']['output'];
|
|
2769
|
+
enabled: Scalars['Boolean']['output'];
|
|
2770
|
+
id: Scalars['ID']['output'];
|
|
2771
|
+
languageCode: LanguageCode;
|
|
2772
|
+
name: Scalars['String']['output'];
|
|
2773
|
+
parent?: Maybe<Region>;
|
|
2774
|
+
parentId?: Maybe<Scalars['ID']['output']>;
|
|
2775
|
+
translations: Array<RegionTranslation>;
|
|
2776
|
+
type: Scalars['String']['output'];
|
|
2777
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
2778
|
+
};
|
|
2779
|
+
export type RegionTranslation = {
|
|
2780
|
+
__typename?: 'RegionTranslation';
|
|
2781
|
+
createdAt: Scalars['DateTime']['output'];
|
|
2782
|
+
id: Scalars['ID']['output'];
|
|
2783
|
+
languageCode: LanguageCode;
|
|
2784
|
+
name: Scalars['String']['output'];
|
|
2785
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
2786
|
+
};
|
|
2787
|
+
export type RegisterCustomerAccountResult = MissingPasswordError | NativeAuthStrategyError | PasswordValidationError | Success;
|
|
2788
|
+
export type RegisterCustomerInput = {
|
|
2789
|
+
emailAddress: Scalars['String']['input'];
|
|
2790
|
+
firstName?: InputMaybe<Scalars['String']['input']>;
|
|
2791
|
+
lastName?: InputMaybe<Scalars['String']['input']>;
|
|
2792
|
+
password?: InputMaybe<Scalars['String']['input']>;
|
|
2793
|
+
phoneNumber?: InputMaybe<Scalars['String']['input']>;
|
|
2794
|
+
title?: InputMaybe<Scalars['String']['input']>;
|
|
2795
|
+
};
|
|
2796
|
+
export type RelationCustomFieldConfig = CustomField & {
|
|
2797
|
+
__typename?: 'RelationCustomFieldConfig';
|
|
2798
|
+
description?: Maybe<Array<LocalizedString>>;
|
|
2799
|
+
entity: Scalars['String']['output'];
|
|
2800
|
+
internal?: Maybe<Scalars['Boolean']['output']>;
|
|
2801
|
+
label?: Maybe<Array<LocalizedString>>;
|
|
2802
|
+
list: Scalars['Boolean']['output'];
|
|
2803
|
+
name: Scalars['String']['output'];
|
|
2804
|
+
nullable?: Maybe<Scalars['Boolean']['output']>;
|
|
2805
|
+
readonly?: Maybe<Scalars['Boolean']['output']>;
|
|
2806
|
+
requiresPermission?: Maybe<Array<Permission>>;
|
|
2807
|
+
scalarFields: Array<Scalars['String']['output']>;
|
|
2808
|
+
type: Scalars['String']['output'];
|
|
2809
|
+
ui?: Maybe<Scalars['JSON']['output']>;
|
|
2810
|
+
};
|
|
2811
|
+
export type RemoveOrderItemsResult = Order | OrderMiddlewareError | OrderModificationError;
|
|
2812
|
+
export type RequestPasswordResetResult = NativeAuthStrategyError | Success;
|
|
2813
|
+
export type RequestUpdateCustomerEmailAddressResult = EmailAddressConflictError | InvalidCredentialsError | NativeAuthStrategyError | Success;
|
|
2814
|
+
export type ResetPasswordResult = CurrentUser | NativeAuthStrategyError | NotVerifiedError | PasswordResetTokenExpiredError | PasswordResetTokenInvalidError | PasswordValidationError;
|
|
2815
|
+
export type Role = Node & {
|
|
2816
|
+
__typename?: 'Role';
|
|
2817
|
+
channels: Array<Channel>;
|
|
2818
|
+
code: Scalars['String']['output'];
|
|
2819
|
+
createdAt: Scalars['DateTime']['output'];
|
|
2820
|
+
description: Scalars['String']['output'];
|
|
2821
|
+
id: Scalars['ID']['output'];
|
|
2822
|
+
permissions: Array<Permission>;
|
|
2823
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
2824
|
+
};
|
|
2825
|
+
export type RoleList = PaginatedList & {
|
|
2826
|
+
__typename?: 'RoleList';
|
|
2827
|
+
items: Array<Role>;
|
|
2828
|
+
totalItems: Scalars['Int']['output'];
|
|
2829
|
+
};
|
|
2830
|
+
export type SearchInput = {
|
|
2831
|
+
collectionId?: InputMaybe<Scalars['ID']['input']>;
|
|
2832
|
+
collectionSlug?: InputMaybe<Scalars['String']['input']>;
|
|
2833
|
+
facetValueFilters?: InputMaybe<Array<FacetValueFilterInput>>;
|
|
2834
|
+
/** @deprecated Use `facetValueFilters` instead */
|
|
2835
|
+
facetValueIds?: InputMaybe<Array<Scalars['ID']['input']>>;
|
|
2836
|
+
/** @deprecated Use `facetValueFilters` instead */
|
|
2837
|
+
facetValueOperator?: InputMaybe<LogicalOperator>;
|
|
2838
|
+
groupByProduct?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2839
|
+
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
2840
|
+
sort?: InputMaybe<SearchResultSortParameter>;
|
|
2841
|
+
take?: InputMaybe<Scalars['Int']['input']>;
|
|
2842
|
+
term?: InputMaybe<Scalars['String']['input']>;
|
|
2843
|
+
};
|
|
2844
|
+
export type SearchReindexResponse = {
|
|
2845
|
+
__typename?: 'SearchReindexResponse';
|
|
2846
|
+
success: Scalars['Boolean']['output'];
|
|
2847
|
+
};
|
|
2848
|
+
export type SearchResponse = {
|
|
2849
|
+
__typename?: 'SearchResponse';
|
|
2850
|
+
collections: Array<CollectionResult>;
|
|
2851
|
+
facetValues: Array<FacetValueResult>;
|
|
2852
|
+
items: Array<SearchResult>;
|
|
2853
|
+
totalItems: Scalars['Int']['output'];
|
|
2854
|
+
};
|
|
2855
|
+
export type SearchResult = {
|
|
2856
|
+
__typename?: 'SearchResult';
|
|
2857
|
+
/** An array of ids of the Collections in which this result appears */
|
|
2858
|
+
collectionIds: Array<Scalars['ID']['output']>;
|
|
2859
|
+
currencyCode: CurrencyCode;
|
|
2860
|
+
description: Scalars['String']['output'];
|
|
2861
|
+
facetIds: Array<Scalars['ID']['output']>;
|
|
2862
|
+
facetValueIds: Array<Scalars['ID']['output']>;
|
|
2863
|
+
price: SearchResultPrice;
|
|
2864
|
+
priceWithTax: SearchResultPrice;
|
|
2865
|
+
productAsset?: Maybe<SearchResultAsset>;
|
|
2866
|
+
productId: Scalars['ID']['output'];
|
|
2867
|
+
productName: Scalars['String']['output'];
|
|
2868
|
+
productVariantAsset?: Maybe<SearchResultAsset>;
|
|
2869
|
+
productVariantId: Scalars['ID']['output'];
|
|
2870
|
+
productVariantName: Scalars['String']['output'];
|
|
2871
|
+
/** A relevance score for the result. Differs between database implementations */
|
|
2872
|
+
score: Scalars['Float']['output'];
|
|
2873
|
+
sku: Scalars['String']['output'];
|
|
2874
|
+
slug: Scalars['String']['output'];
|
|
2875
|
+
};
|
|
2876
|
+
export type SearchResultAsset = {
|
|
2877
|
+
__typename?: 'SearchResultAsset';
|
|
2878
|
+
focalPoint?: Maybe<Coordinate>;
|
|
2879
|
+
id: Scalars['ID']['output'];
|
|
2880
|
+
preview: Scalars['String']['output'];
|
|
2881
|
+
};
|
|
2882
|
+
/** The price of a search result product, either as a range or as a single price */
|
|
2883
|
+
export type SearchResultPrice = PriceRange | SinglePrice;
|
|
2884
|
+
export type SearchResultSortParameter = {
|
|
2885
|
+
name?: InputMaybe<SortOrder>;
|
|
2886
|
+
price?: InputMaybe<SortOrder>;
|
|
2887
|
+
};
|
|
2888
|
+
export type Seller = Node & {
|
|
2889
|
+
__typename?: 'Seller';
|
|
2890
|
+
createdAt: Scalars['DateTime']['output'];
|
|
2891
|
+
customFields?: Maybe<Scalars['JSON']['output']>;
|
|
2892
|
+
id: Scalars['ID']['output'];
|
|
2893
|
+
name: Scalars['String']['output'];
|
|
2894
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
2895
|
+
};
|
|
2896
|
+
export type SetCustomerForOrderResult = AlreadyLoggedInError | EmailAddressConflictError | GuestCheckoutError | NoActiveOrderError | Order;
|
|
2897
|
+
export type SetOrderShippingMethodResult = IneligibleShippingMethodError | NoActiveOrderError | Order | OrderModificationError;
|
|
2898
|
+
export type ShippingLine = {
|
|
2899
|
+
__typename?: 'ShippingLine';
|
|
2900
|
+
discountedPrice: Scalars['Money']['output'];
|
|
2901
|
+
discountedPriceWithTax: Scalars['Money']['output'];
|
|
2902
|
+
discounts: Array<Discount>;
|
|
2903
|
+
id: Scalars['ID']['output'];
|
|
2904
|
+
price: Scalars['Money']['output'];
|
|
2905
|
+
priceWithTax: Scalars['Money']['output'];
|
|
2906
|
+
shippingMethod: ShippingMethod;
|
|
2907
|
+
};
|
|
2908
|
+
export type ShippingMethod = Node & {
|
|
2909
|
+
__typename?: 'ShippingMethod';
|
|
2910
|
+
calculator: ConfigurableOperation;
|
|
2911
|
+
checker: ConfigurableOperation;
|
|
2912
|
+
code: Scalars['String']['output'];
|
|
2913
|
+
createdAt: Scalars['DateTime']['output'];
|
|
2914
|
+
customFields?: Maybe<Scalars['JSON']['output']>;
|
|
2915
|
+
description: Scalars['String']['output'];
|
|
2916
|
+
fulfillmentHandlerCode: Scalars['String']['output'];
|
|
2917
|
+
id: Scalars['ID']['output'];
|
|
2918
|
+
languageCode: LanguageCode;
|
|
2919
|
+
name: Scalars['String']['output'];
|
|
2920
|
+
translations: Array<ShippingMethodTranslation>;
|
|
2921
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
2922
|
+
};
|
|
2923
|
+
export type ShippingMethodList = PaginatedList & {
|
|
2924
|
+
__typename?: 'ShippingMethodList';
|
|
2925
|
+
items: Array<ShippingMethod>;
|
|
2926
|
+
totalItems: Scalars['Int']['output'];
|
|
2927
|
+
};
|
|
2928
|
+
export type ShippingMethodQuote = {
|
|
2929
|
+
__typename?: 'ShippingMethodQuote';
|
|
2930
|
+
code: Scalars['String']['output'];
|
|
2931
|
+
customFields?: Maybe<Scalars['JSON']['output']>;
|
|
2932
|
+
description: Scalars['String']['output'];
|
|
2933
|
+
id: Scalars['ID']['output'];
|
|
2934
|
+
/** Any optional metadata returned by the ShippingCalculator in the ShippingCalculationResult */
|
|
2935
|
+
metadata?: Maybe<Scalars['JSON']['output']>;
|
|
2936
|
+
name: Scalars['String']['output'];
|
|
2937
|
+
price: Scalars['Money']['output'];
|
|
2938
|
+
priceWithTax: Scalars['Money']['output'];
|
|
2939
|
+
};
|
|
2940
|
+
export type ShippingMethodTranslation = {
|
|
2941
|
+
__typename?: 'ShippingMethodTranslation';
|
|
2942
|
+
createdAt: Scalars['DateTime']['output'];
|
|
2943
|
+
description: Scalars['String']['output'];
|
|
2944
|
+
id: Scalars['ID']['output'];
|
|
2945
|
+
languageCode: LanguageCode;
|
|
2946
|
+
name: Scalars['String']['output'];
|
|
2947
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
2948
|
+
};
|
|
2949
|
+
/** The price value where the result has a single price */
|
|
2950
|
+
export type SinglePrice = {
|
|
2951
|
+
__typename?: 'SinglePrice';
|
|
2952
|
+
value: Scalars['Money']['output'];
|
|
2953
|
+
};
|
|
2954
|
+
export declare enum SortOrder {
|
|
2955
|
+
ASC = "ASC",
|
|
2956
|
+
DESC = "DESC"
|
|
2957
|
+
}
|
|
2958
|
+
export type StringCustomFieldConfig = CustomField & {
|
|
2959
|
+
__typename?: 'StringCustomFieldConfig';
|
|
2960
|
+
description?: Maybe<Array<LocalizedString>>;
|
|
2961
|
+
internal?: Maybe<Scalars['Boolean']['output']>;
|
|
2962
|
+
label?: Maybe<Array<LocalizedString>>;
|
|
2963
|
+
length?: Maybe<Scalars['Int']['output']>;
|
|
2964
|
+
list: Scalars['Boolean']['output'];
|
|
2965
|
+
name: Scalars['String']['output'];
|
|
2966
|
+
nullable?: Maybe<Scalars['Boolean']['output']>;
|
|
2967
|
+
options?: Maybe<Array<StringFieldOption>>;
|
|
2968
|
+
pattern?: Maybe<Scalars['String']['output']>;
|
|
2969
|
+
readonly?: Maybe<Scalars['Boolean']['output']>;
|
|
2970
|
+
requiresPermission?: Maybe<Array<Permission>>;
|
|
2971
|
+
type: Scalars['String']['output'];
|
|
2972
|
+
ui?: Maybe<Scalars['JSON']['output']>;
|
|
2973
|
+
};
|
|
2974
|
+
export type StringFieldOption = {
|
|
2975
|
+
__typename?: 'StringFieldOption';
|
|
2976
|
+
label?: Maybe<Array<LocalizedString>>;
|
|
2977
|
+
value: Scalars['String']['output'];
|
|
2978
|
+
};
|
|
2979
|
+
/** Operators for filtering on a list of String fields */
|
|
2980
|
+
export type StringListOperators = {
|
|
2981
|
+
inList: Scalars['String']['input'];
|
|
2982
|
+
};
|
|
2983
|
+
/** Operators for filtering on a String field */
|
|
2984
|
+
export type StringOperators = {
|
|
2985
|
+
contains?: InputMaybe<Scalars['String']['input']>;
|
|
2986
|
+
eq?: InputMaybe<Scalars['String']['input']>;
|
|
2987
|
+
in?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
2988
|
+
isNull?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2989
|
+
notContains?: InputMaybe<Scalars['String']['input']>;
|
|
2990
|
+
notEq?: InputMaybe<Scalars['String']['input']>;
|
|
2991
|
+
notIn?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
2992
|
+
regex?: InputMaybe<Scalars['String']['input']>;
|
|
2993
|
+
};
|
|
2994
|
+
/** Indicates that an operation succeeded, where we do not want to return any more specific information. */
|
|
2995
|
+
export type Success = {
|
|
2996
|
+
__typename?: 'Success';
|
|
2997
|
+
success: Scalars['Boolean']['output'];
|
|
2998
|
+
};
|
|
2999
|
+
export type Surcharge = Node & {
|
|
3000
|
+
__typename?: 'Surcharge';
|
|
3001
|
+
createdAt: Scalars['DateTime']['output'];
|
|
3002
|
+
description: Scalars['String']['output'];
|
|
3003
|
+
id: Scalars['ID']['output'];
|
|
3004
|
+
price: Scalars['Money']['output'];
|
|
3005
|
+
priceWithTax: Scalars['Money']['output'];
|
|
3006
|
+
sku?: Maybe<Scalars['String']['output']>;
|
|
3007
|
+
taxLines: Array<TaxLine>;
|
|
3008
|
+
taxRate: Scalars['Float']['output'];
|
|
3009
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
3010
|
+
};
|
|
3011
|
+
export type Tag = Node & {
|
|
3012
|
+
__typename?: 'Tag';
|
|
3013
|
+
createdAt: Scalars['DateTime']['output'];
|
|
3014
|
+
id: Scalars['ID']['output'];
|
|
3015
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
3016
|
+
value: Scalars['String']['output'];
|
|
3017
|
+
};
|
|
3018
|
+
export type TagList = PaginatedList & {
|
|
3019
|
+
__typename?: 'TagList';
|
|
3020
|
+
items: Array<Tag>;
|
|
3021
|
+
totalItems: Scalars['Int']['output'];
|
|
3022
|
+
};
|
|
3023
|
+
export type TaxCategory = Node & {
|
|
3024
|
+
__typename?: 'TaxCategory';
|
|
3025
|
+
createdAt: Scalars['DateTime']['output'];
|
|
3026
|
+
customFields?: Maybe<Scalars['JSON']['output']>;
|
|
3027
|
+
id: Scalars['ID']['output'];
|
|
3028
|
+
isDefault: Scalars['Boolean']['output'];
|
|
3029
|
+
name: Scalars['String']['output'];
|
|
3030
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
3031
|
+
};
|
|
3032
|
+
export type TaxLine = {
|
|
3033
|
+
__typename?: 'TaxLine';
|
|
3034
|
+
description: Scalars['String']['output'];
|
|
3035
|
+
taxRate: Scalars['Float']['output'];
|
|
3036
|
+
};
|
|
3037
|
+
export type TaxRate = Node & {
|
|
3038
|
+
__typename?: 'TaxRate';
|
|
3039
|
+
category: TaxCategory;
|
|
3040
|
+
createdAt: Scalars['DateTime']['output'];
|
|
3041
|
+
customFields?: Maybe<Scalars['JSON']['output']>;
|
|
3042
|
+
customerGroup?: Maybe<CustomerGroup>;
|
|
3043
|
+
enabled: Scalars['Boolean']['output'];
|
|
3044
|
+
id: Scalars['ID']['output'];
|
|
3045
|
+
name: Scalars['String']['output'];
|
|
3046
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
3047
|
+
value: Scalars['Float']['output'];
|
|
3048
|
+
zone: Zone;
|
|
3049
|
+
};
|
|
3050
|
+
export type TaxRateList = PaginatedList & {
|
|
3051
|
+
__typename?: 'TaxRateList';
|
|
3052
|
+
items: Array<TaxRate>;
|
|
3053
|
+
totalItems: Scalars['Int']['output'];
|
|
3054
|
+
};
|
|
3055
|
+
export type TextCustomFieldConfig = CustomField & {
|
|
3056
|
+
__typename?: 'TextCustomFieldConfig';
|
|
3057
|
+
description?: Maybe<Array<LocalizedString>>;
|
|
3058
|
+
internal?: Maybe<Scalars['Boolean']['output']>;
|
|
3059
|
+
label?: Maybe<Array<LocalizedString>>;
|
|
3060
|
+
list: Scalars['Boolean']['output'];
|
|
3061
|
+
name: Scalars['String']['output'];
|
|
3062
|
+
nullable?: Maybe<Scalars['Boolean']['output']>;
|
|
3063
|
+
readonly?: Maybe<Scalars['Boolean']['output']>;
|
|
3064
|
+
requiresPermission?: Maybe<Array<Permission>>;
|
|
3065
|
+
type: Scalars['String']['output'];
|
|
3066
|
+
ui?: Maybe<Scalars['JSON']['output']>;
|
|
3067
|
+
};
|
|
3068
|
+
export type TransitionOrderToStateResult = Order | OrderStateTransitionError;
|
|
3069
|
+
/**
|
|
3070
|
+
* Input used to update an Address.
|
|
3071
|
+
*
|
|
3072
|
+
* The countryCode must correspond to a `code` property of a Country that has been defined in the
|
|
3073
|
+
* Deenruv server. The `code` property is typically a 2-character ISO code such as "GB", "US", "DE" etc.
|
|
3074
|
+
* If an invalid code is passed, the mutation will fail.
|
|
3075
|
+
*/
|
|
3076
|
+
export type UpdateAddressInput = {
|
|
3077
|
+
city?: InputMaybe<Scalars['String']['input']>;
|
|
3078
|
+
company?: InputMaybe<Scalars['String']['input']>;
|
|
3079
|
+
countryCode?: InputMaybe<Scalars['String']['input']>;
|
|
3080
|
+
customFields?: InputMaybe<Scalars['JSON']['input']>;
|
|
3081
|
+
defaultBillingAddress?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3082
|
+
defaultShippingAddress?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3083
|
+
fullName?: InputMaybe<Scalars['String']['input']>;
|
|
3084
|
+
id: Scalars['ID']['input'];
|
|
3085
|
+
phoneNumber?: InputMaybe<Scalars['String']['input']>;
|
|
3086
|
+
postalCode?: InputMaybe<Scalars['String']['input']>;
|
|
3087
|
+
province?: InputMaybe<Scalars['String']['input']>;
|
|
3088
|
+
streetLine1?: InputMaybe<Scalars['String']['input']>;
|
|
3089
|
+
streetLine2?: InputMaybe<Scalars['String']['input']>;
|
|
3090
|
+
};
|
|
3091
|
+
export type UpdateCustomerEmailAddressResult = IdentifierChangeTokenExpiredError | IdentifierChangeTokenInvalidError | NativeAuthStrategyError | Success;
|
|
3092
|
+
export type UpdateCustomerInput = {
|
|
3093
|
+
customFields?: InputMaybe<Scalars['JSON']['input']>;
|
|
3094
|
+
firstName?: InputMaybe<Scalars['String']['input']>;
|
|
3095
|
+
lastName?: InputMaybe<Scalars['String']['input']>;
|
|
3096
|
+
phoneNumber?: InputMaybe<Scalars['String']['input']>;
|
|
3097
|
+
title?: InputMaybe<Scalars['String']['input']>;
|
|
3098
|
+
};
|
|
3099
|
+
export type UpdateCustomerPasswordResult = InvalidCredentialsError | NativeAuthStrategyError | PasswordValidationError | Success;
|
|
3100
|
+
export type UpdateOrderInput = {
|
|
3101
|
+
customFields?: InputMaybe<Scalars['JSON']['input']>;
|
|
3102
|
+
};
|
|
3103
|
+
export type UpdateOrderItemsResult = InsufficientStockError | NegativeQuantityError | Order | OrderLimitError | OrderMiddlewareError | OrderModificationError;
|
|
3104
|
+
export type User = Node & {
|
|
3105
|
+
__typename?: 'User';
|
|
3106
|
+
authenticationMethods: Array<AuthenticationMethod>;
|
|
3107
|
+
createdAt: Scalars['DateTime']['output'];
|
|
3108
|
+
customFields?: Maybe<Scalars['JSON']['output']>;
|
|
3109
|
+
id: Scalars['ID']['output'];
|
|
3110
|
+
identifier: Scalars['String']['output'];
|
|
3111
|
+
lastLogin?: Maybe<Scalars['DateTime']['output']>;
|
|
3112
|
+
roles: Array<Role>;
|
|
3113
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
3114
|
+
verified: Scalars['Boolean']['output'];
|
|
3115
|
+
};
|
|
3116
|
+
/**
|
|
3117
|
+
* Returned if the verification token (used to verify a Customer's email address) is valid, but has
|
|
3118
|
+
* expired according to the `verificationTokenDuration` setting in the AuthOptions.
|
|
3119
|
+
*/
|
|
3120
|
+
export type VerificationTokenExpiredError = ErrorResult & {
|
|
3121
|
+
__typename?: 'VerificationTokenExpiredError';
|
|
3122
|
+
errorCode: ErrorCode;
|
|
3123
|
+
message: Scalars['String']['output'];
|
|
3124
|
+
};
|
|
3125
|
+
/**
|
|
3126
|
+
* Returned if the verification token (used to verify a Customer's email address) is either
|
|
3127
|
+
* invalid or does not match any expected tokens.
|
|
3128
|
+
*/
|
|
3129
|
+
export type VerificationTokenInvalidError = ErrorResult & {
|
|
3130
|
+
__typename?: 'VerificationTokenInvalidError';
|
|
3131
|
+
errorCode: ErrorCode;
|
|
3132
|
+
message: Scalars['String']['output'];
|
|
3133
|
+
};
|
|
3134
|
+
export type VerifyCustomerAccountResult = CurrentUser | MissingPasswordError | NativeAuthStrategyError | PasswordAlreadySetError | PasswordValidationError | VerificationTokenExpiredError | VerificationTokenInvalidError;
|
|
3135
|
+
export type Zone = Node & {
|
|
3136
|
+
__typename?: 'Zone';
|
|
3137
|
+
createdAt: Scalars['DateTime']['output'];
|
|
3138
|
+
customFields?: Maybe<Scalars['JSON']['output']>;
|
|
3139
|
+
id: Scalars['ID']['output'];
|
|
3140
|
+
members: Array<Region>;
|
|
3141
|
+
name: Scalars['String']['output'];
|
|
3142
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
3143
|
+
};
|