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