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