@doswiftly/storefront-sdk 13.1.0 → 15.1.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/CHANGELOG.md +236 -0
- package/dist/core/auth/auth-client.d.ts +13 -1
- package/dist/core/auth/auth-client.d.ts.map +1 -1
- package/dist/core/auth/auth-client.js +16 -1
- package/dist/core/auth/types.d.ts +18 -52
- package/dist/core/auth/types.d.ts.map +1 -1
- package/dist/core/auth/types.js +0 -3
- package/dist/core/cart/cart-client.d.ts +50 -1
- package/dist/core/cart/cart-client.d.ts.map +1 -1
- package/dist/core/cart/cart-client.js +63 -1
- package/dist/core/cart/types.d.ts +75 -391
- package/dist/core/cart/types.d.ts.map +1 -1
- package/dist/core/cart/types.js +0 -8
- package/dist/core/generated/operation-types.d.ts +4428 -0
- package/dist/core/generated/operation-types.d.ts.map +1 -0
- package/dist/core/generated/operation-types.js +4 -0
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/operations/auth.d.ts +7 -0
- package/dist/core/operations/auth.d.ts.map +1 -1
- package/dist/core/operations/auth.js +68 -0
- package/dist/core/operations/cart.d.ts +30 -0
- package/dist/core/operations/cart.d.ts.map +1 -1
- package/dist/core/operations/cart.js +147 -0
- package/dist/react/hooks/use-cart.d.ts +78 -0
- package/dist/react/hooks/use-cart.d.ts.map +1 -0
- package/dist/react/hooks/use-cart.js +121 -0
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +1 -0
- package/package.json +7 -1
|
@@ -0,0 +1,4428 @@
|
|
|
1
|
+
export type Maybe<T> = T | null;
|
|
2
|
+
export type InputMaybe<T> = T | null | undefined;
|
|
3
|
+
export type Exact<T extends {
|
|
4
|
+
[key: string]: unknown;
|
|
5
|
+
}> = {
|
|
6
|
+
[K in keyof T]: T[K];
|
|
7
|
+
};
|
|
8
|
+
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
|
|
9
|
+
[SubKey in K]?: Maybe<T[SubKey]>;
|
|
10
|
+
};
|
|
11
|
+
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
|
|
12
|
+
[SubKey in K]: Maybe<T[SubKey]>;
|
|
13
|
+
};
|
|
14
|
+
export type MakeEmpty<T extends {
|
|
15
|
+
[key: string]: unknown;
|
|
16
|
+
}, K extends keyof T> = {
|
|
17
|
+
[_ in K]?: never;
|
|
18
|
+
};
|
|
19
|
+
export type Incremental<T> = T | {
|
|
20
|
+
[P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
|
|
21
|
+
};
|
|
22
|
+
export type Scalars = {
|
|
23
|
+
ID: {
|
|
24
|
+
input: string;
|
|
25
|
+
output: string;
|
|
26
|
+
};
|
|
27
|
+
String: {
|
|
28
|
+
input: string;
|
|
29
|
+
output: string;
|
|
30
|
+
};
|
|
31
|
+
Boolean: {
|
|
32
|
+
input: boolean;
|
|
33
|
+
output: boolean;
|
|
34
|
+
};
|
|
35
|
+
Int: {
|
|
36
|
+
input: number;
|
|
37
|
+
output: number;
|
|
38
|
+
};
|
|
39
|
+
Float: {
|
|
40
|
+
input: number;
|
|
41
|
+
output: number;
|
|
42
|
+
};
|
|
43
|
+
/** A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format. */
|
|
44
|
+
DateTime: {
|
|
45
|
+
input: string;
|
|
46
|
+
output: string;
|
|
47
|
+
};
|
|
48
|
+
/** Decimal money amount, JSON-serialized as String. Format: "{int}.{dec}" e.g. "10.50". */
|
|
49
|
+
Decimal: {
|
|
50
|
+
input: string;
|
|
51
|
+
output: string;
|
|
52
|
+
};
|
|
53
|
+
/** Opaque JSON payload — shape documented per field. Klient parsuje strukturę sam. */
|
|
54
|
+
JSON: {
|
|
55
|
+
input: unknown;
|
|
56
|
+
output: unknown;
|
|
57
|
+
};
|
|
58
|
+
/** URL string per RFC 3986 (e.g. "https://shop.example.com/products/foo"). */
|
|
59
|
+
URL: {
|
|
60
|
+
input: string;
|
|
61
|
+
output: string;
|
|
62
|
+
};
|
|
63
|
+
/** Unsigned 64-bit integer, JSON-serialized as String (BigInt-safe). Format: "{integer}". */
|
|
64
|
+
UnsignedInt64: {
|
|
65
|
+
input: string;
|
|
66
|
+
output: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
export type Attribute = {
|
|
70
|
+
/** Attribute key. */
|
|
71
|
+
key: Scalars['String']['output'];
|
|
72
|
+
/** Attribute value. Null when the key is set without an associated value. */
|
|
73
|
+
value?: Maybe<Scalars['String']['output']>;
|
|
74
|
+
};
|
|
75
|
+
export type AttributeBillingMode = 'BUNDLED' | 'SEPARATE_LINE';
|
|
76
|
+
export type AttributeDefinition = {
|
|
77
|
+
/** Display order */
|
|
78
|
+
displayOrder: Scalars['Int']['output'];
|
|
79
|
+
/** Available filter values (for SELECT, CHECKBOX, RADIO, COLOR, BOOLEAN) */
|
|
80
|
+
filterValues?: Maybe<Array<AttributeFilterValue>>;
|
|
81
|
+
/** URL-friendly identifier */
|
|
82
|
+
handle: Scalars['String']['output'];
|
|
83
|
+
/** Attribute ID */
|
|
84
|
+
id: Scalars['ID']['output'];
|
|
85
|
+
/** Whether attribute is filterable (admin toggle). For storefront UI rendering signal use `isUsableAsFilter` (computed). */
|
|
86
|
+
isFilterable: Scalars['Boolean']['output'];
|
|
87
|
+
/** Whether attribute is visible on product pages */
|
|
88
|
+
isVisible: Scalars['Boolean']['output'];
|
|
89
|
+
/** Attribute name (e.g., "Color", "Size") */
|
|
90
|
+
name: Scalars['String']['output'];
|
|
91
|
+
/** Faza 3 Opcja A (2026-05-17): opcjonalne grupowanie atrybutu (np. "inventory", "marketing", "content"). NULL = atrybut bez grupy. Pomaga storefront-devom rozpoznać "te atrybuty są custom dane ERP" vs "te są filtrowalne cechy katalogu". */
|
|
92
|
+
namespace?: Maybe<Scalars['String']['output']>;
|
|
93
|
+
/** Range bounds (for NUMBER, CURRENCY) */
|
|
94
|
+
rangeBounds?: Maybe<AttributeRangeBounds>;
|
|
95
|
+
/** Attribute data type */
|
|
96
|
+
type: AttributeType;
|
|
97
|
+
};
|
|
98
|
+
export type AttributeFillingMode = 'BOTH' | 'CUSTOMER' | 'MERCHANT';
|
|
99
|
+
export type AttributeFilterValue = {
|
|
100
|
+
/** Option ID or value identifier */
|
|
101
|
+
id: Scalars['ID']['output'];
|
|
102
|
+
/** Display label (e.g., "Red", "Extra Large") */
|
|
103
|
+
label: Scalars['String']['output'];
|
|
104
|
+
/** Price modifier for this option */
|
|
105
|
+
priceModifier?: Maybe<Money>;
|
|
106
|
+
/** Number of products with this value */
|
|
107
|
+
productCount: Scalars['Int']['output'];
|
|
108
|
+
/** Sort order for display */
|
|
109
|
+
sortOrder: Scalars['Int']['output'];
|
|
110
|
+
/** Visual swatch for COLOR type */
|
|
111
|
+
swatch?: Maybe<AttributeSwatch>;
|
|
112
|
+
/** Internal value (e.g., "red", "xl") */
|
|
113
|
+
value: Scalars['String']['output'];
|
|
114
|
+
};
|
|
115
|
+
export type AttributeFilterValueConnection = {
|
|
116
|
+
/** Paginated edges z cursorami */
|
|
117
|
+
edges: Array<AttributeFilterValueEdge>;
|
|
118
|
+
/** Shortcut: edges.map(e => e.node) */
|
|
119
|
+
nodes: Array<AttributeFilterValue>;
|
|
120
|
+
/** Relay pagination info (hasNextPage, hasPreviousPage, cursors) */
|
|
121
|
+
pageInfo: PageInfo;
|
|
122
|
+
/** Total number of attribute options matching the filter (po zastosowaniu search + context). NIE zmienia się przy paginacji — pokazuje pełną liczbę dla counter UI. */
|
|
123
|
+
totalCount: Scalars['Int']['output'];
|
|
124
|
+
};
|
|
125
|
+
export type AttributeFilterValueEdge = {
|
|
126
|
+
/** Opaque pagination cursor (base64-encoded). Echo as `after` for next page. */
|
|
127
|
+
cursor: Scalars['String']['output'];
|
|
128
|
+
/** Attribute filter value (option + product count + swatch) */
|
|
129
|
+
node: AttributeFilterValue;
|
|
130
|
+
};
|
|
131
|
+
export type AttributeInput = {
|
|
132
|
+
/** Attribute key */
|
|
133
|
+
key: Scalars['String']['input'];
|
|
134
|
+
/** Attribute value */
|
|
135
|
+
value?: InputMaybe<Scalars['String']['input']>;
|
|
136
|
+
};
|
|
137
|
+
export type AttributeOptionSurchargeType = 'FIXED' | 'PERCENT';
|
|
138
|
+
export type AttributeRangeBounds = {
|
|
139
|
+
/** Currency code for CURRENCY type */
|
|
140
|
+
currencyCode?: Maybe<Scalars['String']['output']>;
|
|
141
|
+
/** Maximum value in current product set */
|
|
142
|
+
max?: Maybe<Scalars['Float']['output']>;
|
|
143
|
+
/** Minimum value in current product set */
|
|
144
|
+
min?: Maybe<Scalars['Float']['output']>;
|
|
145
|
+
};
|
|
146
|
+
export type AttributeSelection = {
|
|
147
|
+
/** ID of the attribute definition this selection refers to. */
|
|
148
|
+
attributeDefinitionId: Scalars['ID']['output'];
|
|
149
|
+
/** Display name of the attribute at the moment it was added to the cart. */
|
|
150
|
+
attributeName: Scalars['String']['output'];
|
|
151
|
+
/** How the surcharge is charged: BUNDLED (folded into the line unit price) or SEPARATE_LINE (its own line on the order). Null when the selection is informational and has no surcharge. */
|
|
152
|
+
billingMode?: Maybe<AttributeBillingMode>;
|
|
153
|
+
/** Who supplies the value: MERCHANT (set on the product), CUSTOMER (filled at add-to-cart) or BOTH. */
|
|
154
|
+
fillingMode: AttributeFillingMode;
|
|
155
|
+
/** Linked variant whose stock is decremented when this option is chosen — used by the hidden-product configurator pattern (e.g. finish, accessory). Null when no component stock is tied to the selection. */
|
|
156
|
+
linkedVariantId?: Maybe<Scalars['ID']['output']>;
|
|
157
|
+
/** Selected option ID for single-choice types (SELECT, RADIO, single-CHECKBOX). */
|
|
158
|
+
optionId?: Maybe<Scalars['ID']['output']>;
|
|
159
|
+
/** Selected option IDs for multi-choice types (MULTI_SELECT, CHECKBOX list). */
|
|
160
|
+
optionIds?: Maybe<Array<Scalars['ID']['output']>>;
|
|
161
|
+
/** Display label of the selected option at the moment of selection. */
|
|
162
|
+
optionLabel?: Maybe<Scalars['String']['output']>;
|
|
163
|
+
/** Surcharge attached to this selection in minor units of the shop currency when `surchargeType` is FIXED; thousandths of a percent (per mille of a percent) when PERCENT. Already reflected in the line cost. */
|
|
164
|
+
surchargeAmount: Scalars['Int']['output'];
|
|
165
|
+
/** How the surcharge is calculated — FIXED (absolute amount) or PERCENT. Null when the selection has no surcharge. */
|
|
166
|
+
surchargeType?: Maybe<AttributeOptionSurchargeType>;
|
|
167
|
+
/** Tax class applied to this selection. Null means the line inherits its tax class from the variant. */
|
|
168
|
+
taxClassId?: Maybe<Scalars['ID']['output']>;
|
|
169
|
+
/** Free-text value for TEXT, TEXTAREA, NUMBER or DATE attribute types. */
|
|
170
|
+
textValue?: Maybe<Scalars['String']['output']>;
|
|
171
|
+
/** Attribute data type (TEXT, SELECT, RADIO, CHECKBOX, NUMBER, DATE, COLOR, etc.). Drives which value field is populated. */
|
|
172
|
+
type: AttributeType;
|
|
173
|
+
};
|
|
174
|
+
export type AttributeSelectionInput = {
|
|
175
|
+
/** ID of the attribute definition this selection refers to. */
|
|
176
|
+
attributeDefinitionId: Scalars['ID']['input'];
|
|
177
|
+
/** Selected option ID for single-choice attribute types (SELECT, RADIO, single-CHECKBOX). */
|
|
178
|
+
optionId?: InputMaybe<Scalars['ID']['input']>;
|
|
179
|
+
/** Selected option IDs for multi-choice attribute types (MULTI_SELECT, CHECKBOX list). */
|
|
180
|
+
optionIds?: InputMaybe<Array<Scalars['ID']['input']>>;
|
|
181
|
+
/** Free-text value for TEXT, TEXTAREA, NUMBER or DATE attribute types (max 2000 chars). */
|
|
182
|
+
textValue?: InputMaybe<Scalars['String']['input']>;
|
|
183
|
+
};
|
|
184
|
+
export type AttributeSwatch = {
|
|
185
|
+
/** Hex color code (e.g., #FF5733) */
|
|
186
|
+
colorHex?: Maybe<Scalars['String']['output']>;
|
|
187
|
+
/** Image URL for pattern swatches */
|
|
188
|
+
imageUrl?: Maybe<Scalars['String']['output']>;
|
|
189
|
+
};
|
|
190
|
+
export type AttributeType = 'BOOLEAN' | 'CHECKBOX' | 'COLOR' | 'CURRENCY' | 'DATE' | 'FILE' | 'IMAGE' | 'NUMBER' | 'RADIO' | 'SELECT' | 'TEXT' | 'TEXTAREA';
|
|
191
|
+
export type AvailableFilters = {
|
|
192
|
+
/** Liczba currently applied filters w `currentFilters` (Storefront UI renderuje "Filtry (3)" w sidebar header). */
|
|
193
|
+
activeCount: Scalars['Int']['output'];
|
|
194
|
+
/** Filterable attributes with values */
|
|
195
|
+
attributes: Array<AttributeDefinition>;
|
|
196
|
+
/** Boolean facet count: liczba produktów w current context spełniających `Product.isAvailable` (przynajmniej jeden aktywny wariant z untracked inventory LUB available>0). Exclude-self: jeśli `available: true` jest w `currentFilters`, count IGNORUJE ten filtr i pokazuje "ile produktów dostępnych w bazowym kontekście" (nie "ile teraz widać"). Spójne semantically z `attributes[].filterValues[].productCount` (per-enum-value facet) i `brands[].productCount` (per-brand facet) — wszystkie używają exclude-self per dimension. Untracked inventory (gift cards, digital, na-zamówienie) zawsze liczy się jako available. */
|
|
197
|
+
availableCount: Scalars['Int']['output'];
|
|
198
|
+
/** Faza 3 (2026-05-17): canonical Brand entities z product counts w current context. Storefront UI renderuje checkbox list / dropdown z logo per brand. Klik → `filters: [{brand: {handle}}]`. Tylko brandy z >0 produktów w current product set + isActive=true. */
|
|
199
|
+
brands?: Maybe<Array<BrandFilterValue>>;
|
|
200
|
+
/** Categories available for filtering */
|
|
201
|
+
categories?: Maybe<Array<CategoryFilterOption>>;
|
|
202
|
+
/** Price range for filtering */
|
|
203
|
+
priceRange?: Maybe<PriceRange>;
|
|
204
|
+
/** Total products w current context (categoryId/collectionId/searchQuery) PRZED zaaplikowaniem faceted filters z `currentFilters`. Spójne z `ProductConnection.totalCount` Relay Connection spec — gdy `currentFilters` jest pusty, `AvailableFilters.totalCount` === `products(filters).totalCount`. Użyj do "Wszystkie produkty (N)" w sidebar header. */
|
|
205
|
+
totalCount: Scalars['Int']['output'];
|
|
206
|
+
};
|
|
207
|
+
export type AvailablePaymentMethods = {
|
|
208
|
+
/** Method marked as the merchant default — pre-select in the picker. Null when no default is configured. */
|
|
209
|
+
defaultMethod?: Maybe<PaymentMethod>;
|
|
210
|
+
/** Payment methods active for the shop, sorted by `position`. */
|
|
211
|
+
methods: Array<PaymentMethod>;
|
|
212
|
+
};
|
|
213
|
+
export type AvailableShippingMethod = {
|
|
214
|
+
/** Carrier behind the method. Null when the merchant configured a custom non-carrier method. */
|
|
215
|
+
carrier?: Maybe<ShippingCarrier>;
|
|
216
|
+
/** Destination type — HOME (courier to the street address), PICKUP_POINT (staffed counter) or LOCKER (parcel locker). Drives whether the storefront must render a pickup-point picker for the method instead of inferring it from the method name. */
|
|
217
|
+
deliveryType: DeliveryType;
|
|
218
|
+
/** Optional method description shown under the name (e.g. "Saturday delivery available"). */
|
|
219
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
220
|
+
/** Estimated delivery window. Null when the merchant has not configured an estimate for this method. */
|
|
221
|
+
estimatedDelivery?: Maybe<DeliveryEstimate>;
|
|
222
|
+
/** Progress towards the free-shipping threshold for this method, when one is configured. Null otherwise. */
|
|
223
|
+
freeShippingProgress?: Maybe<FreeShippingProgress>;
|
|
224
|
+
/** Stable ID of the shipping method. Pass to `cartSelectShippingMethod` to select it. */
|
|
225
|
+
id: Scalars['ID']['output'];
|
|
226
|
+
/** True when the price is zero — the method is free for this cart (e.g. free-shipping threshold met). */
|
|
227
|
+
isFree: Scalars['Boolean']['output'];
|
|
228
|
+
/** Display name of the method (e.g. "DPD Standard"). */
|
|
229
|
+
name: Scalars['String']['output'];
|
|
230
|
+
/** Cost of the method for the current cart (in the buyer preferred currency). */
|
|
231
|
+
price: Money;
|
|
232
|
+
/** Merchant-configured display position — lower values come first in the picker. */
|
|
233
|
+
sortOrder: Scalars['Int']['output'];
|
|
234
|
+
};
|
|
235
|
+
export type AvailableShippingMethodsPayload = {
|
|
236
|
+
/** Best free-shipping progress across all returned methods. Use to render a single banner above the picker. */
|
|
237
|
+
freeShippingProgress?: Maybe<FreeShippingProgress>;
|
|
238
|
+
/** Methods available for the current cart and destination, sorted by `sortOrder`. */
|
|
239
|
+
methods: Array<AvailableShippingMethod>;
|
|
240
|
+
/** Validation / availability errors — e.g. `DIGITAL_ONLY_NO_SHIPPING` when the cart contains only non-physical items. Branch on `code`. */
|
|
241
|
+
userErrors: Array<UserError>;
|
|
242
|
+
};
|
|
243
|
+
export type AvailableShippingRatesPayload = {
|
|
244
|
+
/** Providers that failed to return rates */
|
|
245
|
+
errors: Array<CarrierRateError>;
|
|
246
|
+
/** Whether the result was served from cache */
|
|
247
|
+
isCached: Scalars['Boolean']['output'];
|
|
248
|
+
/** Available rates sorted by price */
|
|
249
|
+
rates: Array<CarrierShippingRate>;
|
|
250
|
+
};
|
|
251
|
+
export type B2BPriceDisplay = {
|
|
252
|
+
/** Message for guests (e.g., "Log in for wholesale pricing") */
|
|
253
|
+
guestMessage?: Maybe<Scalars['String']['output']>;
|
|
254
|
+
/** Whether user is logged in */
|
|
255
|
+
isAuthenticated: Scalars['Boolean']['output'];
|
|
256
|
+
/** Primary pricing information */
|
|
257
|
+
pricing: B2BVariantPricing;
|
|
258
|
+
/** Volume discount tiers */
|
|
259
|
+
volumeTiers?: Maybe<Array<PricingTier>>;
|
|
260
|
+
};
|
|
261
|
+
export type B2BVariantPricing = {
|
|
262
|
+
/** Applied customer group */
|
|
263
|
+
appliedGroup?: Maybe<CustomerGroup>;
|
|
264
|
+
/** Whether this is a group-discounted price */
|
|
265
|
+
hasGroupDiscount: Scalars['Boolean']['output'];
|
|
266
|
+
/** Regular retail price */
|
|
267
|
+
retailPrice: Money;
|
|
268
|
+
/** Amount saved */
|
|
269
|
+
savings: Money;
|
|
270
|
+
/** Savings percentage (0-100) */
|
|
271
|
+
savingsPercent: Scalars['Float']['output'];
|
|
272
|
+
/** Pricing tier name */
|
|
273
|
+
tierName?: Maybe<Scalars['String']['output']>;
|
|
274
|
+
/** Your group price (best available) */
|
|
275
|
+
yourPrice: Money;
|
|
276
|
+
};
|
|
277
|
+
export type BlogAuthor = {
|
|
278
|
+
/** Author avatar */
|
|
279
|
+
avatar?: Maybe<Image>;
|
|
280
|
+
/** Author bio */
|
|
281
|
+
bio?: Maybe<Scalars['String']['output']>;
|
|
282
|
+
/** Author ID */
|
|
283
|
+
id: Scalars['ID']['output'];
|
|
284
|
+
/** Author name */
|
|
285
|
+
name: Scalars['String']['output'];
|
|
286
|
+
};
|
|
287
|
+
export type BlogCategory = {
|
|
288
|
+
/** Category description */
|
|
289
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
290
|
+
/** URL-friendly handle */
|
|
291
|
+
handle: Scalars['String']['output'];
|
|
292
|
+
/** Category ID */
|
|
293
|
+
id: Scalars['ID']['output'];
|
|
294
|
+
/** Category image */
|
|
295
|
+
image?: Maybe<Image>;
|
|
296
|
+
/** Category name */
|
|
297
|
+
name: Scalars['String']['output'];
|
|
298
|
+
/** Number of posts in category */
|
|
299
|
+
postCount: Scalars['Int']['output'];
|
|
300
|
+
/** SEO metadata */
|
|
301
|
+
seo?: Maybe<Seo>;
|
|
302
|
+
};
|
|
303
|
+
export type BlogPost = {
|
|
304
|
+
/** Whether comments are allowed */
|
|
305
|
+
allowComments: Scalars['Boolean']['output'];
|
|
306
|
+
/** Post author */
|
|
307
|
+
author: BlogAuthor;
|
|
308
|
+
/** Post category */
|
|
309
|
+
category?: Maybe<BlogCategory>;
|
|
310
|
+
/** Comment count */
|
|
311
|
+
commentCount: Scalars['Int']['output'];
|
|
312
|
+
/** Full content (HTML) */
|
|
313
|
+
content: Scalars['String']['output'];
|
|
314
|
+
/** Format of stored content (HTML or MARKDOWN) */
|
|
315
|
+
contentFormat: ContentFormat;
|
|
316
|
+
/** Created date (ISO 8601) */
|
|
317
|
+
createdAt: Scalars['DateTime']['output'];
|
|
318
|
+
/** Short excerpt/summary */
|
|
319
|
+
excerpt?: Maybe<Scalars['String']['output']>;
|
|
320
|
+
/** Featured image */
|
|
321
|
+
featuredImage?: Maybe<Image>;
|
|
322
|
+
/** URL-friendly handle */
|
|
323
|
+
handle: Scalars['String']['output'];
|
|
324
|
+
/** Post ID */
|
|
325
|
+
id: Scalars['ID']['output'];
|
|
326
|
+
/** Whether post is featured */
|
|
327
|
+
isFeatured: Scalars['Boolean']['output'];
|
|
328
|
+
/** Published date (ISO 8601) */
|
|
329
|
+
publishedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
330
|
+
/** Estimated reading time in minutes */
|
|
331
|
+
readingTimeMinutes: Scalars['Int']['output'];
|
|
332
|
+
/** SEO metadata */
|
|
333
|
+
seo?: Maybe<Seo>;
|
|
334
|
+
/** Post status */
|
|
335
|
+
status: BlogPostStatus;
|
|
336
|
+
/** Post tags */
|
|
337
|
+
tags: Array<BlogTag>;
|
|
338
|
+
/** Post title */
|
|
339
|
+
title: Scalars['String']['output'];
|
|
340
|
+
/** Updated date (ISO 8601) */
|
|
341
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
342
|
+
/** View count */
|
|
343
|
+
viewCount: Scalars['Int']['output'];
|
|
344
|
+
};
|
|
345
|
+
export type BlogPostConnection = {
|
|
346
|
+
/** Post edges */
|
|
347
|
+
edges: Array<BlogPostEdge>;
|
|
348
|
+
/** Pagination info */
|
|
349
|
+
pageInfo: PageInfo;
|
|
350
|
+
/** Total count of posts */
|
|
351
|
+
totalCount: Scalars['Int']['output'];
|
|
352
|
+
};
|
|
353
|
+
export type BlogPostEdge = {
|
|
354
|
+
/** Cursor for pagination */
|
|
355
|
+
cursor: Scalars['String']['output'];
|
|
356
|
+
/** Blog post node */
|
|
357
|
+
node: BlogPost;
|
|
358
|
+
};
|
|
359
|
+
export type BlogPostStatus = 'ARCHIVED' | 'DRAFT' | 'PUBLISHED' | 'SCHEDULED';
|
|
360
|
+
export type BlogTag = {
|
|
361
|
+
/** URL-friendly handle */
|
|
362
|
+
handle: Scalars['String']['output'];
|
|
363
|
+
/** Tag ID */
|
|
364
|
+
id: Scalars['ID']['output'];
|
|
365
|
+
/** Tag name */
|
|
366
|
+
name: Scalars['String']['output'];
|
|
367
|
+
/** Number of posts with this tag */
|
|
368
|
+
postCount: Scalars['Int']['output'];
|
|
369
|
+
};
|
|
370
|
+
export type BotProtectionInfo = {
|
|
371
|
+
/** Fallback provider */
|
|
372
|
+
fallback?: Maybe<BotProtectionProviderInfo>;
|
|
373
|
+
/** Primary provider */
|
|
374
|
+
primary: BotProtectionProviderInfo;
|
|
375
|
+
/** GraphQL operation names requiring verification */
|
|
376
|
+
protectedOperations: Array<Scalars['String']['output']>;
|
|
377
|
+
};
|
|
378
|
+
export type BotProtectionProviderInfo = {
|
|
379
|
+
/** Provider identifier: eucaptcha | turnstile | recaptcha */
|
|
380
|
+
provider: Scalars['String']['output'];
|
|
381
|
+
/** Script URL (configurable, region/enterprise overrides) */
|
|
382
|
+
scriptUrl: Scalars['String']['output'];
|
|
383
|
+
/** Site key for the bot protection widget */
|
|
384
|
+
siteKey: Scalars['String']['output'];
|
|
385
|
+
};
|
|
386
|
+
export type Brand = {
|
|
387
|
+
/** URL-friendly handle (e.g. "funko" → /brands/funko). Stable per-shop. */
|
|
388
|
+
handle: Scalars['String']['output'];
|
|
389
|
+
/** Brand unique identifier */
|
|
390
|
+
id: Scalars['ID']['output'];
|
|
391
|
+
/** Brand logo URL (CDN-served, storefront-rendered) */
|
|
392
|
+
logo?: Maybe<Scalars['String']['output']>;
|
|
393
|
+
/** Brand display name (e.g. "Funko", "Nintendo") */
|
|
394
|
+
name: Scalars['String']['output'];
|
|
395
|
+
};
|
|
396
|
+
export type BrandColorGroup = {
|
|
397
|
+
/** Background color (hex, e.g. "#0F172A") */
|
|
398
|
+
background?: Maybe<Scalars['String']['output']>;
|
|
399
|
+
/** Foreground/text color (hex) */
|
|
400
|
+
foreground?: Maybe<Scalars['String']['output']>;
|
|
401
|
+
};
|
|
402
|
+
export type BrandColors = {
|
|
403
|
+
primary?: Maybe<BrandColorGroup>;
|
|
404
|
+
secondary?: Maybe<BrandColorGroup>;
|
|
405
|
+
};
|
|
406
|
+
export type BrandFilterValue = {
|
|
407
|
+
/** Brand handle (refetch payload — paste w ProductFilter.brand.handle) */
|
|
408
|
+
handle: Scalars['String']['output'];
|
|
409
|
+
/** Brand ID */
|
|
410
|
+
id: Scalars['ID']['output'];
|
|
411
|
+
/** Brand logo URL (UI rendering) */
|
|
412
|
+
logo?: Maybe<Scalars['String']['output']>;
|
|
413
|
+
/** Brand name */
|
|
414
|
+
name: Scalars['String']['output'];
|
|
415
|
+
/** Liczba produktów z tym brandem w current product set */
|
|
416
|
+
productCount: Scalars['Int']['output'];
|
|
417
|
+
};
|
|
418
|
+
export type BusinessHour = {
|
|
419
|
+
/** Closing time (HH:MM format) */
|
|
420
|
+
closeTime?: Maybe<Scalars['String']['output']>;
|
|
421
|
+
/** Day of week (monday, tuesday, etc.) */
|
|
422
|
+
day: Scalars['String']['output'];
|
|
423
|
+
/** Whether the shop is closed this day */
|
|
424
|
+
isClosed: Scalars['Boolean']['output'];
|
|
425
|
+
/** Opening time (HH:MM format) */
|
|
426
|
+
openTime?: Maybe<Scalars['String']['output']>;
|
|
427
|
+
};
|
|
428
|
+
export type BusinessHours = {
|
|
429
|
+
/** Friday opening windows */
|
|
430
|
+
friday: Array<BusinessHoursWindow>;
|
|
431
|
+
/** Monday opening windows */
|
|
432
|
+
monday: Array<BusinessHoursWindow>;
|
|
433
|
+
/** Saturday opening windows */
|
|
434
|
+
saturday: Array<BusinessHoursWindow>;
|
|
435
|
+
/** Sunday opening windows */
|
|
436
|
+
sunday: Array<BusinessHoursWindow>;
|
|
437
|
+
/** Thursday opening windows */
|
|
438
|
+
thursday: Array<BusinessHoursWindow>;
|
|
439
|
+
/** Tuesday opening windows */
|
|
440
|
+
tuesday: Array<BusinessHoursWindow>;
|
|
441
|
+
/** Wednesday opening windows */
|
|
442
|
+
wednesday: Array<BusinessHoursWindow>;
|
|
443
|
+
};
|
|
444
|
+
export type BusinessHoursWindow = {
|
|
445
|
+
/** Closing hour (0-24, 24h format). 24 = midnight close. */
|
|
446
|
+
closeHour: Scalars['Int']['output'];
|
|
447
|
+
/** Opening hour (0-23, 24h format) */
|
|
448
|
+
openHour: Scalars['Int']['output'];
|
|
449
|
+
};
|
|
450
|
+
export type CarrierRateError = {
|
|
451
|
+
/** Error message */
|
|
452
|
+
message: Scalars['String']['output'];
|
|
453
|
+
/** Provider code */
|
|
454
|
+
provider: Scalars['String']['output'];
|
|
455
|
+
};
|
|
456
|
+
export type CarrierShippingRate = {
|
|
457
|
+
/** Estimated delivery in business days */
|
|
458
|
+
estimatedDeliveryDays: Scalars['Int']['output'];
|
|
459
|
+
/** Whether cash on delivery is available */
|
|
460
|
+
isCashOnDeliveryAvailable: Scalars['Boolean']['output'];
|
|
461
|
+
/** Whether pickup is available for this service */
|
|
462
|
+
isPickupAvailable: Scalars['Boolean']['output'];
|
|
463
|
+
/** Rate price */
|
|
464
|
+
price: Money;
|
|
465
|
+
/** Provider ID (e.g., furgonetka, inpost) */
|
|
466
|
+
providerId: Scalars['String']['output'];
|
|
467
|
+
/** Service ID (provider-specific) */
|
|
468
|
+
serviceId: Scalars['String']['output'];
|
|
469
|
+
/** Service display name */
|
|
470
|
+
serviceName: Scalars['String']['output'];
|
|
471
|
+
};
|
|
472
|
+
export type Cart = Node & {
|
|
473
|
+
/** Gift cards attached to the cart. Each card is debited by its `appliedAmount` when the cart completes. */
|
|
474
|
+
appliedGiftCards: Array<CartAppliedGiftCard>;
|
|
475
|
+
/** Cart-level custom attributes (free-form key/value). Use for cart-wide metadata such as B2B PO number or marketing source. Replace (not merge) the list with `cartUpdateAttributes`. */
|
|
476
|
+
attributes: Array<CartAttribute>;
|
|
477
|
+
/** Available payment methods dla tego cart (shop-configured providers) */
|
|
478
|
+
availablePaymentMethods: Array<PaymentMethod>;
|
|
479
|
+
/** Shipping methods available for this cart at the given destination. Reads the cart subtotal and weight directly — for pre-cart preview (e.g. a product detail page calculator) use the top-level `availableShippingMethods(address, cart)` query instead. Returns an empty `methods` list plus a `DIGITAL_ONLY_NO_SHIPPING` user error when the cart has no shippable items; the storefront can use this to skip the shipping step entirely. */
|
|
480
|
+
availableShippingMethods: AvailableShippingMethodsPayload;
|
|
481
|
+
/** Billing address attached to the cart via `cartSetBillingAddress`. Null when the buyer reuses the shipping address as billing (the order will then mirror the shipping address). */
|
|
482
|
+
billingAddress?: Maybe<MailingAddress>;
|
|
483
|
+
/** Buyer identity attached to the cart (email, phone, country and language hints). Null on a fresh cart before any identity is captured. */
|
|
484
|
+
buyerIdentity?: Maybe<CartBuyerIdentity>;
|
|
485
|
+
/** Hosted checkout URL the storefront may redirect to as a fallback. The recommended flow is to drive checkout through SDK mutations (`cartSetShippingAddress`, `cartSelectShippingMethod`, `cartSelectPaymentMethod`, `cartComplete`). */
|
|
486
|
+
checkoutUrl?: Maybe<Scalars['URL']['output']>;
|
|
487
|
+
/** Cost breakdown for the cart (subtotal, tax, shipping, discount, grand total). */
|
|
488
|
+
cost: CartCost;
|
|
489
|
+
/** When the cart was created (ISO 8601). */
|
|
490
|
+
createdAt: Scalars['DateTime']['output'];
|
|
491
|
+
/** Per-code discount amounts that make up `cost.totalDiscount`. Render line-item discount breakdown from this list. */
|
|
492
|
+
discountAllocations: Array<CartDiscountAllocation>;
|
|
493
|
+
/** Discount codes attached to the cart with their applicability flag. */
|
|
494
|
+
discountCodes: Array<CartDiscountCode>;
|
|
495
|
+
/** Convenience accessor — buyer email as last set via `cartUpdateBuyerIdentity`. The same value is available on `buyerIdentity.email`. */
|
|
496
|
+
email?: Maybe<Scalars['String']['output']>;
|
|
497
|
+
/** Stable cart identifier — persist in a cookie / local store between sessions. */
|
|
498
|
+
id: Scalars['ID']['output'];
|
|
499
|
+
/** Lines in the cart (paginated, Relay Connection). */
|
|
500
|
+
lines: CartLineConnection;
|
|
501
|
+
/** Buyer-supplied note (e.g. delivery instructions). Free-form, surfaced to the merchant on the order. */
|
|
502
|
+
note?: Maybe<Scalars['String']['output']>;
|
|
503
|
+
/** Convenience accessor — buyer phone as last set via `cartUpdateBuyerIdentity`. The same value is available on `buyerIdentity.phone`. */
|
|
504
|
+
phone?: Maybe<Scalars['String']['output']>;
|
|
505
|
+
/** Product recommendations based on cart contents */
|
|
506
|
+
recommendations?: Maybe<CartRecommendations>;
|
|
507
|
+
/** True when at least one line in the cart requires physical shipping. False when every line is non-physical (digital, gift card, service, subscription). Use as the single signal to render or skip the shipping step in checkout. */
|
|
508
|
+
requiresShipping: Scalars['Boolean']['output'];
|
|
509
|
+
/** The payment method currently selected on the cart. Null until the buyer picks a method via `cartSelectPaymentMethod`. */
|
|
510
|
+
selectedPaymentMethod?: Maybe<PaymentMethod>;
|
|
511
|
+
/** The shipping method currently selected on the cart (label + cost). Null until the buyer picks a method. */
|
|
512
|
+
selectedShippingMethod?: Maybe<CartShippingMethod>;
|
|
513
|
+
/** Shipping address attached to the cart via `cartSetShippingAddress`. Null until set. */
|
|
514
|
+
shippingAddress?: Maybe<MailingAddress>;
|
|
515
|
+
/** Sum of `quantity` across all lines — the badge number for the cart icon. */
|
|
516
|
+
totalQuantity: Scalars['Int']['output'];
|
|
517
|
+
/** When the cart was last modified (ISO 8601). */
|
|
518
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
519
|
+
};
|
|
520
|
+
export type CartAddLinesPayload = {
|
|
521
|
+
/** The updated cart on success; null when `userErrors` is non-empty. */
|
|
522
|
+
cart?: Maybe<Cart>;
|
|
523
|
+
/** Business / validation errors carrying a stable `CartErrorCode` in `code` (e.g. `CART_NOT_FOUND`, `NOT_ENOUGH_IN_STOCK`). */
|
|
524
|
+
userErrors: Array<UserError>;
|
|
525
|
+
/** Non-fatal advisories — the mutation itself succeeded. */
|
|
526
|
+
warnings: Array<CartWarning>;
|
|
527
|
+
};
|
|
528
|
+
export type CartAddressInput = {
|
|
529
|
+
/** City */
|
|
530
|
+
city: Scalars['String']['input'];
|
|
531
|
+
/** Company name */
|
|
532
|
+
company?: InputMaybe<Scalars['String']['input']>;
|
|
533
|
+
/** ISO 3166-1 alpha-2 country code */
|
|
534
|
+
country: CountryCode;
|
|
535
|
+
/** First name */
|
|
536
|
+
firstName?: InputMaybe<Scalars['String']['input']>;
|
|
537
|
+
/** Last name */
|
|
538
|
+
lastName?: InputMaybe<Scalars['String']['input']>;
|
|
539
|
+
/** Phone number */
|
|
540
|
+
phone?: InputMaybe<Scalars['String']['input']>;
|
|
541
|
+
/** Selected pickup point — required when the chosen shipping method has a deliveryType other than HOME (parcel locker / collection point). */
|
|
542
|
+
pickupPoint?: InputMaybe<PickupPointInput>;
|
|
543
|
+
/** Postal / ZIP code */
|
|
544
|
+
postalCode: Scalars['String']['input'];
|
|
545
|
+
/** Buyer business registry number for B2B invoicing (Polish REGON). Persisted on the resulting order at checkout completion. */
|
|
546
|
+
regon?: InputMaybe<Scalars['String']['input']>;
|
|
547
|
+
/** State / province */
|
|
548
|
+
state?: InputMaybe<Scalars['String']['input']>;
|
|
549
|
+
/** First line of street address */
|
|
550
|
+
streetLine1: Scalars['String']['input'];
|
|
551
|
+
/** Second line of street address */
|
|
552
|
+
streetLine2?: InputMaybe<Scalars['String']['input']>;
|
|
553
|
+
/** Buyer tax ID for B2B invoicing (Polish NIP). Persisted on the resulting order at checkout completion. */
|
|
554
|
+
taxId?: InputMaybe<Scalars['String']['input']>;
|
|
555
|
+
};
|
|
556
|
+
export type CartAppliedGiftCard = {
|
|
557
|
+
/** Amount of this gift card that will be applied to the cart total. */
|
|
558
|
+
appliedAmount: Money;
|
|
559
|
+
/** Stable identifier of this applied gift card on the cart. Pass it to `cartRemoveGiftCard` so the storefront never has to hold the full gift card code. */
|
|
560
|
+
id: Scalars['ID']['output'];
|
|
561
|
+
/** Last 4 characters of the gift card code — useful when several cards are applied. */
|
|
562
|
+
lastCharacters: Scalars['String']['output'];
|
|
563
|
+
/** Masked code safe for display (e.g. "****-****-****-ABCD"). */
|
|
564
|
+
maskedCode: Scalars['String']['output'];
|
|
565
|
+
/** Remaining balance on the gift card after this cart is completed. */
|
|
566
|
+
remainingBalance: Money;
|
|
567
|
+
};
|
|
568
|
+
export type CartApplyGiftCardInput = {
|
|
569
|
+
/** ID of the cart to update. */
|
|
570
|
+
cartId: Scalars['ID']['input'];
|
|
571
|
+
/** Full gift card code entered by the buyer (e.g. "ABCD-1234-EFGH-5678"). Max 64 chars. */
|
|
572
|
+
giftCardCode: Scalars['String']['input'];
|
|
573
|
+
};
|
|
574
|
+
export type CartApplyGiftCardPayload = {
|
|
575
|
+
/** The updated cart with the gift card included in `appliedGiftCards`. */
|
|
576
|
+
cart?: Maybe<Cart>;
|
|
577
|
+
/** Business / validation errors carrying a stable `CartErrorCode` in `code` (e.g. `GIFT_CARD_NOT_FOUND`, `GIFT_CARD_DEPLETED`, `GIFT_CARD_UNUSABLE`). */
|
|
578
|
+
userErrors: Array<UserError>;
|
|
579
|
+
/** Non-fatal advisories — the mutation itself succeeded. */
|
|
580
|
+
warnings: Array<CartWarning>;
|
|
581
|
+
};
|
|
582
|
+
export type CartAttribute = {
|
|
583
|
+
/** Attribute key (e.g. "giftWrap", "engraving"). */
|
|
584
|
+
key: Scalars['String']['output'];
|
|
585
|
+
/** Attribute value. Null when the key is set without an associated value. */
|
|
586
|
+
value?: Maybe<Scalars['String']['output']>;
|
|
587
|
+
};
|
|
588
|
+
export type CartAttributeInput = {
|
|
589
|
+
/** Attribute key (max 255 chars). */
|
|
590
|
+
key: Scalars['String']['input'];
|
|
591
|
+
/** Attribute value (max 500 chars). Omit to set the key without a value. */
|
|
592
|
+
value?: InputMaybe<Scalars['String']['input']>;
|
|
593
|
+
};
|
|
594
|
+
export type CartBuyerIdentity = {
|
|
595
|
+
/** Buyer country (ISO 3166-1 alpha-2). Hint for pricing, tax and shipping eligibility before an address is provided. */
|
|
596
|
+
countryCode?: Maybe<CountryCode>;
|
|
597
|
+
/** Customer record ID when the cart is owned by a signed-in customer. Null for guest carts. */
|
|
598
|
+
customerId?: Maybe<Scalars['ID']['output']>;
|
|
599
|
+
/** Buyer email — receives the order confirmation when the cart completes. */
|
|
600
|
+
email?: Maybe<Scalars['String']['output']>;
|
|
601
|
+
/** Buyer preferred language (ISO 639-1). Used for the order confirmation email and any localised content. */
|
|
602
|
+
languageCode?: Maybe<LanguageCode>;
|
|
603
|
+
/** Buyer phone number, free-form (validated only for length). */
|
|
604
|
+
phone?: Maybe<Scalars['String']['output']>;
|
|
605
|
+
};
|
|
606
|
+
export type CartBuyerIdentityInput = {
|
|
607
|
+
/** Buyer country (ISO 3166-1 alpha-2). Hint for currency, tax and shipping eligibility before an address is set. */
|
|
608
|
+
countryCode?: InputMaybe<CountryCode>;
|
|
609
|
+
/** ID of a signed-in customer that owns this cart. Pass to bind a guest cart to a customer record. */
|
|
610
|
+
customerId?: InputMaybe<Scalars['ID']['input']>;
|
|
611
|
+
/** Buyer email address. Persisted to the order at checkout completion. */
|
|
612
|
+
email?: InputMaybe<Scalars['String']['input']>;
|
|
613
|
+
/** Buyer preferred language (ISO 639-1). Used for the order confirmation email and localised content. */
|
|
614
|
+
languageCode?: InputMaybe<LanguageCode>;
|
|
615
|
+
/** Buyer phone number. Free-form; max 30 chars. */
|
|
616
|
+
phone?: InputMaybe<Scalars['String']['input']>;
|
|
617
|
+
};
|
|
618
|
+
export type CartCompleteInput = {
|
|
619
|
+
/** ID of the cart to complete. */
|
|
620
|
+
cartId: Scalars['ID']['input'];
|
|
621
|
+
/** Optional idempotency key — guards against duplicate orders on retry / network issue. When omitted, the server derives one from the cart ID and the current minute, which is sufficient for the typical "user double-clicks the pay button" case. */
|
|
622
|
+
idempotencyKey?: InputMaybe<Scalars['String']['input']>;
|
|
623
|
+
};
|
|
624
|
+
export type CartCompletePayload = {
|
|
625
|
+
/** The order created from the cart. Carries `canCreatePayment` and `paymentMethodType` signals so the storefront can decide whether to render a "Pay now" button or send the buyer straight to the confirmation page (for offline methods). */
|
|
626
|
+
order?: Maybe<Order>;
|
|
627
|
+
/** Business / validation errors carrying a stable `CartErrorCode` in `code` (e.g. `NOT_ENOUGH_IN_STOCK`, `SHIPPING_ADDRESS_REQUIRED`, `SHIPPING_METHOD_REQUIRED`, `PAYMENT_METHOD_REQUIRED`, `EMAIL_REQUIRED`, `ALREADY_COMPLETED`). */
|
|
628
|
+
userErrors: Array<UserError>;
|
|
629
|
+
/** Non-fatal advisories — the mutation itself succeeded. */
|
|
630
|
+
warnings: Array<CartWarning>;
|
|
631
|
+
};
|
|
632
|
+
export type CartCost = {
|
|
633
|
+
/** Additional fixed checkout fee configured by the shop (e.g. small-order surcharge). Null when no such fee applies. */
|
|
634
|
+
checkoutCharge?: Maybe<Money>;
|
|
635
|
+
/** Opt-in: checkoutCharge with conversion transparency. */
|
|
636
|
+
checkoutChargeWithConversion?: Maybe<PriceMoney>;
|
|
637
|
+
/** Subtotal of items in the cart before taxes, shipping and discounts. */
|
|
638
|
+
subtotal: Money;
|
|
639
|
+
/** Opt-in: subtotal with full conversion transparency. */
|
|
640
|
+
subtotalWithConversion?: Maybe<PriceMoney>;
|
|
641
|
+
/** Grand total the buyer will pay — includes taxes, discounts and any selected shipping. Use this directly on the checkout summary instead of summing `subtotal` + extras. */
|
|
642
|
+
total: Money;
|
|
643
|
+
/** Aggregated discount across the cart — the sum of every entry in `discountAllocations`. Returns an amount of 0 when no discount applies. */
|
|
644
|
+
totalDiscount: Money;
|
|
645
|
+
/** Total customs duty on the cart. Null when no duty applies (most domestic orders). */
|
|
646
|
+
totalDuty?: Maybe<Money>;
|
|
647
|
+
/** Opt-in: totalDuty with conversion transparency. */
|
|
648
|
+
totalDutyWithConversion?: Maybe<PriceMoney>;
|
|
649
|
+
/** Cost of the currently selected shipping method. Null until a shipping method is selected — a selected free-shipping method returns an amount of 0, so null unambiguously means "no method chosen yet". */
|
|
650
|
+
totalShipping?: Maybe<Money>;
|
|
651
|
+
/** Total tax across all lines. Null when tax has not yet been calculated for this cart (e.g. before an address is set in tax-inclusive shops). */
|
|
652
|
+
totalTax?: Maybe<Money>;
|
|
653
|
+
/** Opt-in: totalTax with conversion transparency. */
|
|
654
|
+
totalTaxWithConversion?: Maybe<PriceMoney>;
|
|
655
|
+
/** Opt-in: total with conversion transparency. */
|
|
656
|
+
totalWithConversion?: Maybe<PriceMoney>;
|
|
657
|
+
};
|
|
658
|
+
export type CartCreateInput = {
|
|
659
|
+
/** Cart-level custom attributes to set on the new cart (up to 50 entries). */
|
|
660
|
+
attributes?: InputMaybe<Array<CartAttributeInput>>;
|
|
661
|
+
/** Buyer identity to attach to the new cart (email, phone, customer ID, country, language). */
|
|
662
|
+
buyerIdentity?: InputMaybe<CartBuyerIdentityInput>;
|
|
663
|
+
/** Discount codes to apply at creation (up to 10). Equivalent to calling `cartDiscountCodesUpdate` immediately after creating the cart. */
|
|
664
|
+
discountCodes?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
665
|
+
/** Buyer email — shortcut for `buyerIdentity.email`. If both are provided, this field wins. */
|
|
666
|
+
email?: InputMaybe<Scalars['String']['input']>;
|
|
667
|
+
/** Initial lines to add to the cart (up to 100). */
|
|
668
|
+
lines?: InputMaybe<Array<CartLineInput>>;
|
|
669
|
+
/** Buyer-supplied note (max 1000 chars), e.g. delivery instructions. */
|
|
670
|
+
note?: InputMaybe<Scalars['String']['input']>;
|
|
671
|
+
/** Shipping address to attach to the new cart — lets the storefront skip a follow-up `cartSetShippingAddress` call. */
|
|
672
|
+
shippingAddress?: InputMaybe<CartAddressInput>;
|
|
673
|
+
};
|
|
674
|
+
export type CartCreatePayload = {
|
|
675
|
+
/** The created cart on success; null when `userErrors` is non-empty. */
|
|
676
|
+
cart?: Maybe<Cart>;
|
|
677
|
+
/** Business / validation errors. Each entry carries a stable `code` (e.g. `CART_NOT_FOUND`, `NOT_ENOUGH_IN_STOCK`, `INVALID_MERCHANDISE_LINE`) — branch on `code`, never on `message`. */
|
|
678
|
+
userErrors: Array<UserError>;
|
|
679
|
+
/** Non-fatal advisories (informational only; the mutation itself succeeded). */
|
|
680
|
+
warnings: Array<CartWarning>;
|
|
681
|
+
};
|
|
682
|
+
export type CartDiscountAllocation = {
|
|
683
|
+
/** Amount discounted by this code on the cart. */
|
|
684
|
+
amount: Money;
|
|
685
|
+
/** The discount code that produced this allocation. */
|
|
686
|
+
discountCode: Scalars['String']['output'];
|
|
687
|
+
};
|
|
688
|
+
export type CartDiscountCode = {
|
|
689
|
+
/** The code string as entered by the buyer (case is preserved as stored). */
|
|
690
|
+
code: Scalars['String']['output'];
|
|
691
|
+
/** Whether this code currently produces a discount on the cart. False when the code is recognised but its conditions are not met (e.g. minimum-order, customer-eligibility, or product-set restrictions) — keep the chip visible and surface the reason. */
|
|
692
|
+
isApplicable: Scalars['Boolean']['output'];
|
|
693
|
+
};
|
|
694
|
+
export type CartDiscountCodesUpdatePayload = {
|
|
695
|
+
/** The updated cart on success. */
|
|
696
|
+
cart?: Maybe<Cart>;
|
|
697
|
+
/** Business / validation errors carrying a stable `CartErrorCode` in `code` (e.g. `INVALID_DISCOUNT_CODE`). */
|
|
698
|
+
userErrors: Array<UserError>;
|
|
699
|
+
/** Non-fatal advisories — the mutation itself succeeded. */
|
|
700
|
+
warnings: Array<CartWarning>;
|
|
701
|
+
};
|
|
702
|
+
export type CartLine = {
|
|
703
|
+
/** Typed configurator selections filled in by the buyer (snapshot from add-to-cart). Validated server-side against the product attribute definition; carries any pricing surcharge. */
|
|
704
|
+
attributeSelections: Array<AttributeSelection>;
|
|
705
|
+
/** Free-form custom attributes (line item properties) attached to this line — engraving text, gift wrap, B2B PO line reference, etc. */
|
|
706
|
+
attributes: Array<Attribute>;
|
|
707
|
+
/** Per-line cost breakdown (unit price, subtotal, total, optional compare-at). */
|
|
708
|
+
cost: CartLineCost;
|
|
709
|
+
/** Stable line identifier. Use it to address the line in `cartUpdateLines` / `cartRemoveLines`. */
|
|
710
|
+
id: Scalars['ID']['output'];
|
|
711
|
+
/** URL handle (slug) of the parent product — link target for the cart drawer (denormalised). */
|
|
712
|
+
productHandle?: Maybe<Scalars['String']['output']>;
|
|
713
|
+
/** ID of the parent product. Denormalised so a cart drawer renders without an extra round-trip. */
|
|
714
|
+
productId?: Maybe<Scalars['ID']['output']>;
|
|
715
|
+
/** Display title of the parent product (denormalised). */
|
|
716
|
+
productTitle?: Maybe<Scalars['String']['output']>;
|
|
717
|
+
/** Type of the parent product (PHYSICAL, DIGITAL, SERVICE, SUBSCRIPTION, GIFT_CARD). Drives whether the line requires shipping and which post-purchase flow applies. */
|
|
718
|
+
productType?: Maybe<ProductTypeEnum>;
|
|
719
|
+
/** Quantity of the variant in this line (≥ 1; set to 0 with `cartUpdateLines` to remove). */
|
|
720
|
+
quantity: Scalars['Int']['output'];
|
|
721
|
+
/** True when this line requires physical shipping (`productType` = PHYSICAL). False for digital, gift card, service and subscription items. Use together with `Cart.requiresShipping` to decide whether to render the shipping step. */
|
|
722
|
+
requiresShipping: Scalars['Boolean']['output'];
|
|
723
|
+
/** The variant being purchased — fresh data (current price, image, stock). */
|
|
724
|
+
variant: ProductVariant;
|
|
725
|
+
};
|
|
726
|
+
export type CartLineConnection = {
|
|
727
|
+
/** Edges with the line and its cursor — use for cursor-based pagination. */
|
|
728
|
+
edges: Array<CartLineEdge>;
|
|
729
|
+
/** Cart line nodes — convenience shortcut for `edges.map(e => e.node)`. */
|
|
730
|
+
nodes: Array<CartLine>;
|
|
731
|
+
/** Cursor pagination info (`hasNextPage`, `endCursor`, etc.). */
|
|
732
|
+
pageInfo: PageInfo;
|
|
733
|
+
/** Total number of lines in the cart across all pages. */
|
|
734
|
+
totalCount: Scalars['Int']['output'];
|
|
735
|
+
};
|
|
736
|
+
export type CartLineCost = {
|
|
737
|
+
/** Strike-through compare-at unit price when the line is on sale. Null when the line is not discounted; show the strike-through only when this is present and greater than `pricePerUnit`. */
|
|
738
|
+
compareAtPricePerUnit?: Maybe<Money>;
|
|
739
|
+
/** Opt-in: compareAtPricePerUnit with conversion transparency. */
|
|
740
|
+
compareAtPricePerUnitWithConversion?: Maybe<PriceMoney>;
|
|
741
|
+
/** Unit price of the line item in the shop base currency. Use this for per-unit display. */
|
|
742
|
+
pricePerUnit: Money;
|
|
743
|
+
/** Opt-in: pricePerUnit with conversion transparency. */
|
|
744
|
+
pricePerUnitWithConversion?: Maybe<PriceMoney>;
|
|
745
|
+
/** Line subtotal before line-level discounts (`pricePerUnit` × quantity). */
|
|
746
|
+
subtotal: Money;
|
|
747
|
+
/** Opt-in: subtotal with conversion transparency. */
|
|
748
|
+
subtotalWithConversion?: Maybe<PriceMoney>;
|
|
749
|
+
/** Line total after any line-level discounts and surcharges. This is what the buyer pays for the line. */
|
|
750
|
+
total: Money;
|
|
751
|
+
/** Opt-in: total with conversion transparency. */
|
|
752
|
+
totalWithConversion?: Maybe<PriceMoney>;
|
|
753
|
+
};
|
|
754
|
+
export type CartLineEdge = {
|
|
755
|
+
/** Cursor for pagination */
|
|
756
|
+
cursor: Scalars['String']['output'];
|
|
757
|
+
/** Cart line node */
|
|
758
|
+
node: CartLine;
|
|
759
|
+
};
|
|
760
|
+
export type CartLineInput = {
|
|
761
|
+
/** Typed configurator selections to apply to this line — validated against the product attribute definition; pricing surcharges are taken from a snapshot at add-to-cart. */
|
|
762
|
+
attributeSelections?: InputMaybe<Array<AttributeSelectionInput>>;
|
|
763
|
+
/** Free-form custom attributes (line item properties) — e.g. engraving text, gift wrap, B2B PO line reference. Up to 50 entries. */
|
|
764
|
+
attributes?: InputMaybe<Array<AttributeInput>>;
|
|
765
|
+
/** Quantity to add (1 to 9999). Defaults to 1 when omitted. */
|
|
766
|
+
quantity?: Scalars['Int']['input'];
|
|
767
|
+
/** ID of the product variant being purchased. */
|
|
768
|
+
variantId: Scalars['ID']['input'];
|
|
769
|
+
};
|
|
770
|
+
export type CartLineUpdateInput = {
|
|
771
|
+
/** Replacement list of configurator selections. Omit (or pass null) to keep the existing selections; pass an empty array to clear them. */
|
|
772
|
+
attributeSelections?: InputMaybe<Array<AttributeSelectionInput>>;
|
|
773
|
+
/** Replacement list of custom attributes on the line. Omit (or pass null) to keep the existing list; pass an empty array to clear it. */
|
|
774
|
+
attributes?: InputMaybe<Array<AttributeInput>>;
|
|
775
|
+
/** ID of the cart line to update (`CartLine.id`). */
|
|
776
|
+
id: Scalars['ID']['input'];
|
|
777
|
+
/** New quantity. Use 0 to remove the line from the cart. */
|
|
778
|
+
quantity: Scalars['Int']['input'];
|
|
779
|
+
};
|
|
780
|
+
export type CartRecommendations = {
|
|
781
|
+
/** Products frequently bought together with cart items */
|
|
782
|
+
frequentlyBoughtTogether: Array<ProductRecommendation>;
|
|
783
|
+
/** Products to consider adding */
|
|
784
|
+
youMayAlsoLike: Array<ProductRecommendation>;
|
|
785
|
+
};
|
|
786
|
+
export type CartRemoveGiftCardInput = {
|
|
787
|
+
/** ID of the cart to update. */
|
|
788
|
+
cartId: Scalars['ID']['input'];
|
|
789
|
+
/** ID of the applied gift card to remove — `CartAppliedGiftCard.id` from the cart. */
|
|
790
|
+
giftCardId: Scalars['ID']['input'];
|
|
791
|
+
};
|
|
792
|
+
export type CartRemoveGiftCardPayload = {
|
|
793
|
+
/** The updated cart with the gift card removed from `appliedGiftCards`. */
|
|
794
|
+
cart?: Maybe<Cart>;
|
|
795
|
+
/** Business / validation errors carrying a stable `CartErrorCode` in `code`. */
|
|
796
|
+
userErrors: Array<UserError>;
|
|
797
|
+
/** Non-fatal advisories — the mutation itself succeeded. */
|
|
798
|
+
warnings: Array<CartWarning>;
|
|
799
|
+
};
|
|
800
|
+
export type CartRemoveLinesPayload = {
|
|
801
|
+
/** The updated cart on success; null when `userErrors` is non-empty. */
|
|
802
|
+
cart?: Maybe<Cart>;
|
|
803
|
+
/** Business / validation errors carrying a stable `CartErrorCode` in `code`. */
|
|
804
|
+
userErrors: Array<UserError>;
|
|
805
|
+
/** Non-fatal advisories — the mutation itself succeeded. */
|
|
806
|
+
warnings: Array<CartWarning>;
|
|
807
|
+
};
|
|
808
|
+
export type CartSelectPaymentMethodInput = {
|
|
809
|
+
/** ID of the cart to update. */
|
|
810
|
+
cartId: Scalars['ID']['input'];
|
|
811
|
+
/** ID of the chosen payment method (matches a `PaymentMethod.id` from `availablePaymentMethods`). */
|
|
812
|
+
paymentMethodId: Scalars['ID']['input'];
|
|
813
|
+
};
|
|
814
|
+
export type CartSelectPaymentMethodPayload = {
|
|
815
|
+
/** The updated cart with `selectedPaymentMethod` populated. */
|
|
816
|
+
cart?: Maybe<Cart>;
|
|
817
|
+
/** Business / validation errors carrying a stable `CartErrorCode` in `code` (e.g. `PAYMENT_METHOD_REQUIRED`, `INVALID_PAYMENT_METHOD`, `PAYMENT_METHOD_NOT_SUPPORTED`). */
|
|
818
|
+
userErrors: Array<UserError>;
|
|
819
|
+
/** Non-fatal advisories — the mutation itself succeeded. */
|
|
820
|
+
warnings: Array<CartWarning>;
|
|
821
|
+
};
|
|
822
|
+
export type CartSelectShippingMethodInput = {
|
|
823
|
+
/** ID of the cart to update. */
|
|
824
|
+
cartId: Scalars['ID']['input'];
|
|
825
|
+
/** ID of the chosen shipping method (matches an `AvailableShippingMethod.id` from `cart.availableShippingMethods`). */
|
|
826
|
+
shippingMethodId: Scalars['ID']['input'];
|
|
827
|
+
};
|
|
828
|
+
export type CartSelectShippingMethodPayload = {
|
|
829
|
+
/** The updated cart with `selectedShippingMethod` populated and `cost.totalShipping` updated. */
|
|
830
|
+
cart?: Maybe<Cart>;
|
|
831
|
+
/** Business / validation errors carrying a stable `CartErrorCode` in `code` (e.g. `SHIPPING_METHOD_REQUIRED`, `FORBIDDEN_SHIPPING_METHOD`, `ZIP_CODE_NOT_SUPPORTED`). */
|
|
832
|
+
userErrors: Array<UserError>;
|
|
833
|
+
/** Non-fatal advisories — the mutation itself succeeded. */
|
|
834
|
+
warnings: Array<CartWarning>;
|
|
835
|
+
};
|
|
836
|
+
export type CartSetBillingAddressInput = {
|
|
837
|
+
/** New billing address. The shipping address is left unchanged. */
|
|
838
|
+
address: CartAddressInput;
|
|
839
|
+
/** ID of the cart to update. */
|
|
840
|
+
cartId: Scalars['ID']['input'];
|
|
841
|
+
};
|
|
842
|
+
export type CartSetBillingAddressPayload = {
|
|
843
|
+
/** The updated cart with the new billing address. */
|
|
844
|
+
cart?: Maybe<Cart>;
|
|
845
|
+
/** Business / validation errors carrying a stable `CartErrorCode` in `code`. */
|
|
846
|
+
userErrors: Array<UserError>;
|
|
847
|
+
/** Non-fatal advisories — the mutation itself succeeded. */
|
|
848
|
+
warnings: Array<CartWarning>;
|
|
849
|
+
};
|
|
850
|
+
export type CartSetShippingAddressInput = {
|
|
851
|
+
/** New shipping address. Replaces any previous shipping address on the cart. */
|
|
852
|
+
address: CartAddressInput;
|
|
853
|
+
/** ID of the cart to update. */
|
|
854
|
+
cartId: Scalars['ID']['input'];
|
|
855
|
+
};
|
|
856
|
+
export type CartSetShippingAddressPayload = {
|
|
857
|
+
/** The updated cart with the new shipping address. */
|
|
858
|
+
cart?: Maybe<Cart>;
|
|
859
|
+
/** Business / validation errors carrying a stable `CartErrorCode` in `code` (e.g. `INVALID_ADDRESS`, `EMAIL_REQUIRED`, `PICKUP_POINT_REQUIRED`). */
|
|
860
|
+
userErrors: Array<UserError>;
|
|
861
|
+
/** Non-fatal advisories — the mutation itself succeeded. */
|
|
862
|
+
warnings: Array<CartWarning>;
|
|
863
|
+
};
|
|
864
|
+
export type CartShippingMethod = {
|
|
865
|
+
/** Handle of the selected shipping method — matches the `id` of an `AvailableShippingMethod`. */
|
|
866
|
+
handle: Scalars['ID']['output'];
|
|
867
|
+
/** Cost of the selected shipping method. */
|
|
868
|
+
price: Money;
|
|
869
|
+
/** Display title for the checkout summary (e.g. "DPD Standard, 2 days"). */
|
|
870
|
+
title: Scalars['String']['output'];
|
|
871
|
+
};
|
|
872
|
+
export type CartUpdateAttributesPayload = {
|
|
873
|
+
/** The updated cart on success. */
|
|
874
|
+
cart?: Maybe<Cart>;
|
|
875
|
+
/** Business / validation errors carrying a stable `CartErrorCode` in `code` (e.g. `CART_ATTRIBUTES_UPDATE_FAILED`). */
|
|
876
|
+
userErrors: Array<UserError>;
|
|
877
|
+
/** Non-fatal advisories — the mutation itself succeeded. */
|
|
878
|
+
warnings: Array<CartWarning>;
|
|
879
|
+
};
|
|
880
|
+
export type CartUpdateBuyerIdentityPayload = {
|
|
881
|
+
/** The updated cart on success. */
|
|
882
|
+
cart?: Maybe<Cart>;
|
|
883
|
+
/** Business / validation errors carrying a stable `CartErrorCode` in `code`. */
|
|
884
|
+
userErrors: Array<UserError>;
|
|
885
|
+
/** Non-fatal advisories — the mutation itself succeeded. */
|
|
886
|
+
warnings: Array<CartWarning>;
|
|
887
|
+
};
|
|
888
|
+
export type CartUpdateGiftCardRecipientInput = {
|
|
889
|
+
/** ID of the cart to update. */
|
|
890
|
+
cartId: Scalars['ID']['input'];
|
|
891
|
+
/** ID of the cart line; the line must be a gift card SKU. */
|
|
892
|
+
lineItemId: Scalars['ID']['input'];
|
|
893
|
+
/** Personalised message included with the gift card (max 500 chars). */
|
|
894
|
+
message?: InputMaybe<Scalars['String']['input']>;
|
|
895
|
+
/** Recipient email — where the gift card code will be delivered. */
|
|
896
|
+
recipientEmail?: InputMaybe<Scalars['String']['input']>;
|
|
897
|
+
/** Recipient display name. */
|
|
898
|
+
recipientName?: InputMaybe<Scalars['String']['input']>;
|
|
899
|
+
};
|
|
900
|
+
export type CartUpdateGiftCardRecipientPayload = {
|
|
901
|
+
/** The updated cart with the new gift card recipient info on the target line. */
|
|
902
|
+
cart?: Maybe<Cart>;
|
|
903
|
+
/** Business / validation errors carrying a stable `CartErrorCode` in `code`. */
|
|
904
|
+
userErrors: Array<UserError>;
|
|
905
|
+
/** Non-fatal advisories — the mutation itself succeeded. */
|
|
906
|
+
warnings: Array<CartWarning>;
|
|
907
|
+
};
|
|
908
|
+
export type CartUpdateLinesPayload = {
|
|
909
|
+
/** The updated cart on success; null when `userErrors` is non-empty. */
|
|
910
|
+
cart?: Maybe<Cart>;
|
|
911
|
+
/** Business / validation errors carrying a stable `CartErrorCode` in `code` (e.g. `CART_NOT_FOUND`, `NOT_ENOUGH_IN_STOCK`). */
|
|
912
|
+
userErrors: Array<UserError>;
|
|
913
|
+
/** Non-fatal advisories — the mutation itself succeeded. */
|
|
914
|
+
warnings: Array<CartWarning>;
|
|
915
|
+
};
|
|
916
|
+
export type CartUpdateNotePayload = {
|
|
917
|
+
/** The updated cart on success. */
|
|
918
|
+
cart?: Maybe<Cart>;
|
|
919
|
+
/** Business / validation errors carrying a stable `CartErrorCode` in `code`. */
|
|
920
|
+
userErrors: Array<UserError>;
|
|
921
|
+
/** Non-fatal advisories — the mutation itself succeeded. */
|
|
922
|
+
warnings: Array<CartWarning>;
|
|
923
|
+
};
|
|
924
|
+
export type CartWarning = {
|
|
925
|
+
/** Stable machine-readable warning code. Branch on this for UI behaviour — never on `message` (translated, locale-dependent). */
|
|
926
|
+
code: CartWarningCode;
|
|
927
|
+
/** Human-readable warning message — informational, the mutation itself succeeded. */
|
|
928
|
+
message: Scalars['String']['output'];
|
|
929
|
+
/** What the warning is about — a cart line ID when the warning refers to a specific item, or a field path otherwise. */
|
|
930
|
+
target: Scalars['String']['output'];
|
|
931
|
+
};
|
|
932
|
+
export type CartWarningCode = 'MERCHANDISE_NOT_AVAILABLE' | 'MERCHANDISE_NOT_ENOUGH_STOCK' | 'PAYMENTS_AMOUNT_REGION_MISMATCH' | 'SHIPPING_METHOD_AUTO_CLEARED';
|
|
933
|
+
export type Category = {
|
|
934
|
+
/** Child categories */
|
|
935
|
+
children: Array<Category>;
|
|
936
|
+
/** Category description */
|
|
937
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
938
|
+
/** URL-friendly handle (e.g. "electronics" -> /categories/electronics). Stable per-shop. */
|
|
939
|
+
handle: Scalars['String']['output'];
|
|
940
|
+
/** Unique identifier */
|
|
941
|
+
id: Scalars['ID']['output'];
|
|
942
|
+
/** Category image */
|
|
943
|
+
image?: Maybe<Image>;
|
|
944
|
+
/** Depth level in hierarchy (0 = root) */
|
|
945
|
+
level: Scalars['Int']['output'];
|
|
946
|
+
/** Category name */
|
|
947
|
+
name: Scalars['String']['output'];
|
|
948
|
+
/** Parent category (null for root) */
|
|
949
|
+
parent?: Maybe<Category>;
|
|
950
|
+
/** Full path (e.g., "Electronics/Phones/Smartphones") */
|
|
951
|
+
path: Scalars['String']['output'];
|
|
952
|
+
/** Number of products in category */
|
|
953
|
+
productCount: Scalars['Int']['output'];
|
|
954
|
+
/** Products in category */
|
|
955
|
+
products: CategoryConnection;
|
|
956
|
+
/** SEO metadata */
|
|
957
|
+
seo?: Maybe<Seo>;
|
|
958
|
+
/** Sort order within parent */
|
|
959
|
+
sortOrder: Scalars['Int']['output'];
|
|
960
|
+
};
|
|
961
|
+
export type CategoryConnection = {
|
|
962
|
+
/** List of category edges (cursor + node pairs) */
|
|
963
|
+
edges: Array<CategoryEdge>;
|
|
964
|
+
/** List of category nodes (shortcut without cursor) */
|
|
965
|
+
nodes: Array<Category>;
|
|
966
|
+
/** Pagination info */
|
|
967
|
+
pageInfo: PageInfo;
|
|
968
|
+
/** Total count of categories */
|
|
969
|
+
totalCount: Scalars['Int']['output'];
|
|
970
|
+
};
|
|
971
|
+
export type CategoryEdge = {
|
|
972
|
+
/** Cursor for pagination */
|
|
973
|
+
cursor: Scalars['String']['output'];
|
|
974
|
+
/** Category node */
|
|
975
|
+
node: Category;
|
|
976
|
+
};
|
|
977
|
+
export type CategoryFilterOption = {
|
|
978
|
+
/** URL-friendly handle */
|
|
979
|
+
handle: Scalars['String']['output'];
|
|
980
|
+
/** Category ID */
|
|
981
|
+
id: Scalars['ID']['output'];
|
|
982
|
+
/** Nesting level (0 = root) */
|
|
983
|
+
level: Scalars['Int']['output'];
|
|
984
|
+
/** Category name */
|
|
985
|
+
name: Scalars['String']['output'];
|
|
986
|
+
/** Parent category ID */
|
|
987
|
+
parentId?: Maybe<Scalars['ID']['output']>;
|
|
988
|
+
/** Number of products in this category */
|
|
989
|
+
productCount: Scalars['Int']['output'];
|
|
990
|
+
};
|
|
991
|
+
export type Collection = Node & {
|
|
992
|
+
/** Creation timestamp */
|
|
993
|
+
createdAt: Scalars['DateTime']['output'];
|
|
994
|
+
/** Plain text description */
|
|
995
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
996
|
+
/** HTML description */
|
|
997
|
+
descriptionHtml?: Maybe<Scalars['String']['output']>;
|
|
998
|
+
/** URL-friendly handle (slug) */
|
|
999
|
+
handle: Scalars['String']['output'];
|
|
1000
|
+
/** Unique identifier */
|
|
1001
|
+
id: Scalars['ID']['output'];
|
|
1002
|
+
/** Collection image */
|
|
1003
|
+
image?: Maybe<Image>;
|
|
1004
|
+
/** Products in collection */
|
|
1005
|
+
products: ProductConnection;
|
|
1006
|
+
/** SEO metadata */
|
|
1007
|
+
seo?: Maybe<Seo>;
|
|
1008
|
+
/** Collection title */
|
|
1009
|
+
title: Scalars['String']['output'];
|
|
1010
|
+
/** Last update timestamp */
|
|
1011
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
1012
|
+
};
|
|
1013
|
+
export type CollectionConnection = {
|
|
1014
|
+
/** Collection edges */
|
|
1015
|
+
edges: Array<CollectionEdge>;
|
|
1016
|
+
/** Pagination info */
|
|
1017
|
+
pageInfo: PageInfo;
|
|
1018
|
+
/** Total count of collections */
|
|
1019
|
+
totalCount: Scalars['Int']['output'];
|
|
1020
|
+
};
|
|
1021
|
+
export type CollectionEdge = {
|
|
1022
|
+
/** Cursor */
|
|
1023
|
+
cursor: Scalars['String']['output'];
|
|
1024
|
+
/** Collection node */
|
|
1025
|
+
node: Collection;
|
|
1026
|
+
};
|
|
1027
|
+
export type CompensationType = 'REFUND' | 'STORE_CREDIT';
|
|
1028
|
+
export type ContentFormat = 'HTML' | 'MARKDOWN';
|
|
1029
|
+
export type ConvertedPriceRange = {
|
|
1030
|
+
/** Maximum variant price (converted) */
|
|
1031
|
+
maxVariantPrice: PriceMoney;
|
|
1032
|
+
/** Minimum variant price (converted) */
|
|
1033
|
+
minVariantPrice: PriceMoney;
|
|
1034
|
+
};
|
|
1035
|
+
export type Country = Node & {
|
|
1036
|
+
/** Języki wspierane przez sklep dostępne w tym kraju */
|
|
1037
|
+
availableLanguages: Array<Language>;
|
|
1038
|
+
/** Primary currency w tym kraju */
|
|
1039
|
+
currency: Currency;
|
|
1040
|
+
/** Globally-unique identifier (np. "country:PL") */
|
|
1041
|
+
id: Scalars['ID']['output'];
|
|
1042
|
+
/** ISO 3166-1 alpha-2 country code */
|
|
1043
|
+
isoCode: CountryCode;
|
|
1044
|
+
/** English name kraju (np. "Poland", "Germany") */
|
|
1045
|
+
name: Scalars['String']['output'];
|
|
1046
|
+
/** System jednostek (metric/imperial) */
|
|
1047
|
+
unitSystem: UnitSystem;
|
|
1048
|
+
};
|
|
1049
|
+
export type CountryCode = 'AT' | 'AU' | 'BE' | 'BG' | 'CA' | 'CH' | 'CY' | 'CZ' | 'DE' | 'DK' | 'EE' | 'ES' | 'FI' | 'FR' | 'GB' | 'GR' | 'HR' | 'HU' | 'IE' | 'IS' | 'IT' | 'LI' | 'LT' | 'LU' | 'LV' | 'MT' | 'NL' | 'NO' | 'NZ' | 'PL' | 'PT' | 'RO' | 'SE' | 'SI' | 'SK' | 'US' | 'ZZ';
|
|
1050
|
+
export type Currency = {
|
|
1051
|
+
/** ISO 4217 currency code */
|
|
1052
|
+
code: CurrencyCode;
|
|
1053
|
+
/** Number of decimal places */
|
|
1054
|
+
decimalPlaces: Scalars['Float']['output'];
|
|
1055
|
+
/** Currency full name */
|
|
1056
|
+
name: Scalars['String']['output'];
|
|
1057
|
+
/** Currency symbol */
|
|
1058
|
+
symbol: Scalars['String']['output'];
|
|
1059
|
+
/** Symbol position relative to amount */
|
|
1060
|
+
symbolPosition: CurrencySymbolPosition;
|
|
1061
|
+
};
|
|
1062
|
+
export type CurrencyCode = 'AED' | 'AFN' | 'ALL' | 'AMD' | 'ANG' | 'AOA' | 'ARS' | 'AUD' | 'AWG' | 'AZN' | 'BAM' | 'BBD' | 'BDT' | 'BGN' | 'BHD' | 'BIF' | 'BMD' | 'BND' | 'BOB' | 'BOV' | 'BRL' | 'BSD' | 'BTN' | 'BWP' | 'BYN' | 'BZD' | 'CAD' | 'CDF' | 'CHE' | 'CHF' | 'CHW' | 'CLF' | 'CLP' | 'CNY' | 'COP' | 'COU' | 'CRC' | 'CUC' | 'CUP' | 'CVE' | 'CZK' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'EGP' | 'ERN' | 'ETB' | 'EUR' | 'FJD' | 'FKP' | 'GBP' | 'GEL' | 'GHS' | 'GIP' | 'GMD' | 'GNF' | 'GTQ' | 'GYD' | 'HKD' | 'HNL' | 'HTG' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'IQD' | 'IRR' | 'ISK' | 'JMD' | 'JOD' | 'JPY' | 'KES' | 'KGS' | 'KHR' | 'KMF' | 'KPW' | 'KRW' | 'KWD' | 'KYD' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'LSL' | 'LYD' | 'MAD' | 'MDL' | 'MGA' | 'MKD' | 'MMK' | 'MNT' | 'MOP' | 'MRU' | 'MUR' | 'MVR' | 'MWK' | 'MXN' | 'MXV' | 'MYR' | 'MZN' | 'NAD' | 'NGN' | 'NIO' | 'NOK' | 'NPR' | 'NZD' | 'OMR' | 'PAB' | 'PEN' | 'PGK' | 'PHP' | 'PKR' | 'PLN' | 'PYG' | 'QAR' | 'RON' | 'RSD' | 'RUB' | 'RWF' | 'SAR' | 'SBD' | 'SCR' | 'SDG' | 'SEK' | 'SGD' | 'SHP' | 'SLE' | 'SOS' | 'SRD' | 'SSP' | 'STN' | 'SVC' | 'SYP' | 'SZL' | 'THB' | 'TJS' | 'TMT' | 'TND' | 'TOP' | 'TRY' | 'TTD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'USD' | 'USN' | 'UYI' | 'UYU' | 'UYW' | 'UZS' | 'VED' | 'VES' | 'VND' | 'VUV' | 'WST' | 'XAF' | 'XCD' | 'XOF' | 'XPF' | 'XXX' | 'YER' | 'ZAR' | 'ZMW' | 'ZWG';
|
|
1063
|
+
export type CurrencyConversion = {
|
|
1064
|
+
/** Converted amount */
|
|
1065
|
+
convertedAmount: Scalars['Float']['output'];
|
|
1066
|
+
/** Target currency code */
|
|
1067
|
+
convertedCurrency: Scalars['String']['output'];
|
|
1068
|
+
/** Margin percentage applied */
|
|
1069
|
+
marginApplied?: Maybe<Scalars['Float']['output']>;
|
|
1070
|
+
/** Original amount */
|
|
1071
|
+
originalAmount: Scalars['Float']['output'];
|
|
1072
|
+
/** Original currency code */
|
|
1073
|
+
originalCurrency: Scalars['String']['output'];
|
|
1074
|
+
/** Exchange rate used */
|
|
1075
|
+
rate: Scalars['Float']['output'];
|
|
1076
|
+
/** Rate data source */
|
|
1077
|
+
rateSource: CurrencyRateSource;
|
|
1078
|
+
/** Rate timestamp */
|
|
1079
|
+
rateTimestamp: Scalars['DateTime']['output'];
|
|
1080
|
+
/** Rate with margin applied */
|
|
1081
|
+
rateWithMargin?: Maybe<Scalars['Float']['output']>;
|
|
1082
|
+
};
|
|
1083
|
+
export type CurrencyRateSource = 'ECB' | 'FIXER' | 'MANUAL';
|
|
1084
|
+
export type CurrencySymbolPosition = 'AFTER' | 'BEFORE';
|
|
1085
|
+
export type Customer = Node & {
|
|
1086
|
+
/** Saved address book of the customer (Relay Connection). Use to render an address picker on checkout. */
|
|
1087
|
+
addresses: MailingAddressConnection;
|
|
1088
|
+
/** Customer custom field values (post-Opcja A unified custom fields). */
|
|
1089
|
+
attributes: Array<EntityAttributeField>;
|
|
1090
|
+
/** Company name. Populated when `customerType` is COMPANY; null for INDIVIDUAL profiles. */
|
|
1091
|
+
companyName?: Maybe<Scalars['String']['output']>;
|
|
1092
|
+
/** When the customer account was created (ISO 8601). */
|
|
1093
|
+
createdAt: Scalars['DateTime']['output'];
|
|
1094
|
+
/** Profile type — INDIVIDUAL (B2C) or COMPANY (B2B). When COMPANY, the company fields below are populated. */
|
|
1095
|
+
customerType: CustomerType;
|
|
1096
|
+
/** Default address pre-selected in checkout pickers. Null when the customer has no saved addresses. */
|
|
1097
|
+
defaultAddress?: Maybe<MailingAddress>;
|
|
1098
|
+
/** Display name — typically `firstName lastName`, with sensible fallback to email when neither is set. Render directly in the UI. */
|
|
1099
|
+
displayName: Scalars['String']['output'];
|
|
1100
|
+
/** Customer email address (login identity). */
|
|
1101
|
+
email: Scalars['String']['output'];
|
|
1102
|
+
/** Marketing consent state (NOT_SUBSCRIBED, PENDING, SUBSCRIBED, UNSUBSCRIBED, REDACTED, INVALID). Drive newsletter UI and opt-in / opt-out controls from this value. */
|
|
1103
|
+
emailMarketing: EmailMarketingState;
|
|
1104
|
+
/** Customer first name. */
|
|
1105
|
+
firstName?: Maybe<Scalars['String']['output']>;
|
|
1106
|
+
/** Stable identifier of the customer. */
|
|
1107
|
+
id: Scalars['ID']['output'];
|
|
1108
|
+
/** True when the customer has confirmed ownership of their email address. */
|
|
1109
|
+
isEmailVerified: Scalars['Boolean']['output'];
|
|
1110
|
+
/** Customer last name. */
|
|
1111
|
+
lastName?: Maybe<Scalars['String']['output']>;
|
|
1112
|
+
/** Total number of orders the customer has placed. Stringified for BigInt safety. */
|
|
1113
|
+
orderCount: Scalars['UnsignedInt64']['output'];
|
|
1114
|
+
/** Orders placed by this customer (Relay Connection). Use for the order history page. */
|
|
1115
|
+
orders: OrderConnection;
|
|
1116
|
+
/** Customer phone number (free-form). */
|
|
1117
|
+
phone?: Maybe<Scalars['String']['output']>;
|
|
1118
|
+
/** Customer-wide Polish business registry number (REGON, 9 or 14 digits with checksum). */
|
|
1119
|
+
regon?: Maybe<Scalars['String']['output']>;
|
|
1120
|
+
/** Merchant-assigned segmentation tags (e.g. "vip", "wholesale", "b2b"). Use to customise UI / pricing rules on the storefront. */
|
|
1121
|
+
tags: Array<Scalars['String']['output']>;
|
|
1122
|
+
/** Customer-wide Polish tax ID (NIP, 10 digits with checksum). Default for new addresses; can be overridden per address via `MailingAddress.taxId`. */
|
|
1123
|
+
taxId?: Maybe<Scalars['String']['output']>;
|
|
1124
|
+
/** Lifetime amount the customer has spent (sum of paid orders). */
|
|
1125
|
+
totalSpent: Money;
|
|
1126
|
+
/** When the customer profile was last modified (ISO 8601). */
|
|
1127
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
1128
|
+
/** Customer-wide EU VAT number (e.g. `PL1234567890`). Default for new addresses; can be overridden per address via `MailingAddress.vatNumber`. */
|
|
1129
|
+
vatNumber?: Maybe<Scalars['String']['output']>;
|
|
1130
|
+
};
|
|
1131
|
+
export type CustomerAccessToken = {
|
|
1132
|
+
/** The access token string (JWT). Treat as sensitive — do not log. */
|
|
1133
|
+
accessToken: Scalars['String']['output'];
|
|
1134
|
+
/** When the token stops being valid (ISO 8601). Call `customerRefreshToken` before this to obtain a fresh one. */
|
|
1135
|
+
expiresAt: Scalars['DateTime']['output'];
|
|
1136
|
+
};
|
|
1137
|
+
export type CustomerAccessTokenCreateInput = {
|
|
1138
|
+
/** Customer email address. */
|
|
1139
|
+
email: Scalars['String']['input'];
|
|
1140
|
+
/** Customer password. */
|
|
1141
|
+
password: Scalars['String']['input'];
|
|
1142
|
+
};
|
|
1143
|
+
export type CustomerActivatePayload = {
|
|
1144
|
+
/** Activated customer */
|
|
1145
|
+
customer?: Maybe<Customer>;
|
|
1146
|
+
/** Auto-login access token */
|
|
1147
|
+
customerAccessToken?: Maybe<CustomerAccessToken>;
|
|
1148
|
+
/** User errors (code is namespaced — e.g. CUSTOMER_NOT_FOUND, CUSTOMER_TOKEN_INVALID, CUSTOMER_PASSWORD_TOO_WEAK) */
|
|
1149
|
+
userErrors: Array<UserError>;
|
|
1150
|
+
};
|
|
1151
|
+
export type CustomerAddAddressPayload = {
|
|
1152
|
+
/** Created address */
|
|
1153
|
+
address?: Maybe<MailingAddress>;
|
|
1154
|
+
/** User errors (code is namespaced — e.g. CUSTOMER_NOT_FOUND, CUSTOMER_TOKEN_INVALID, CUSTOMER_PASSWORD_TOO_WEAK) */
|
|
1155
|
+
userErrors: Array<UserError>;
|
|
1156
|
+
};
|
|
1157
|
+
export type CustomerCreateInput = {
|
|
1158
|
+
/** Marketing opt-in checkbox. true → consent state SUBSCRIBED (single opt-in) unless `marketingOptInLevel: CONFIRMED_OPT_IN` is also sent (then PENDING and the server sends a double-opt-in confirmation email). false / null → no consent change. */
|
|
1159
|
+
acceptsMarketing?: InputMaybe<Scalars['Boolean']['input']>;
|
|
1160
|
+
/** Email address — must be unique within the shop. Used as the login identity. */
|
|
1161
|
+
email: Scalars['String']['input'];
|
|
1162
|
+
/** First name. */
|
|
1163
|
+
firstName?: InputMaybe<Scalars['String']['input']>;
|
|
1164
|
+
/** Last name. */
|
|
1165
|
+
lastName?: InputMaybe<Scalars['String']['input']>;
|
|
1166
|
+
/** Opt-in level. Defaults to SINGLE_OPT_IN (signup itself is treated as email proof). Pass CONFIRMED_OPT_IN to enforce double opt-in — the server then emails a confirmation link and leaves consent in PENDING until the buyer clicks it. */
|
|
1167
|
+
marketingOptInLevel?: InputMaybe<MarketingOptInLevel>;
|
|
1168
|
+
/** Password (8 to 128 chars). The shop password policy may impose additional strength rules. */
|
|
1169
|
+
password: Scalars['String']['input'];
|
|
1170
|
+
/** Phone number (free-form). */
|
|
1171
|
+
phone?: InputMaybe<Scalars['String']['input']>;
|
|
1172
|
+
};
|
|
1173
|
+
export type CustomerGroup = {
|
|
1174
|
+
/** Group code */
|
|
1175
|
+
code: Scalars['String']['output'];
|
|
1176
|
+
/** Group description */
|
|
1177
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
1178
|
+
/** Default discount percentage (0-100) */
|
|
1179
|
+
discountPercent: Scalars['Float']['output'];
|
|
1180
|
+
/** Group ID */
|
|
1181
|
+
id: Scalars['ID']['output'];
|
|
1182
|
+
/** Group name (e.g., "Wholesale", "VIP") */
|
|
1183
|
+
name: Scalars['String']['output'];
|
|
1184
|
+
/** Whether group is tax exempt */
|
|
1185
|
+
taxExempt: Scalars['Boolean']['output'];
|
|
1186
|
+
};
|
|
1187
|
+
export type CustomerLoginPayload = {
|
|
1188
|
+
/** Access token on success; null when `userErrors` is non-empty. */
|
|
1189
|
+
customerAccessToken?: Maybe<CustomerAccessToken>;
|
|
1190
|
+
/** Errors carrying a stable `CustomerErrorCode` in `code` (e.g. `INVALID_CREDENTIALS`, `CUSTOMER_DISABLED`, `UNIDENTIFIED_CUSTOMER`). */
|
|
1191
|
+
userErrors: Array<UserError>;
|
|
1192
|
+
};
|
|
1193
|
+
export type CustomerLogoutPayload = {
|
|
1194
|
+
/** The token string that was invalidated. Useful for client-side cache clearing. */
|
|
1195
|
+
deletedAccessToken?: Maybe<Scalars['String']['output']>;
|
|
1196
|
+
/** ID of the invalidated token record. */
|
|
1197
|
+
deletedCustomerAccessTokenId?: Maybe<Scalars['String']['output']>;
|
|
1198
|
+
/** Errors carrying a stable `CustomerErrorCode` in `code` (e.g. `TOKEN_INVALID`, `TOKEN_EXPIRED`). */
|
|
1199
|
+
userErrors: Array<UserError>;
|
|
1200
|
+
};
|
|
1201
|
+
export type CustomerRefreshTokenPayload = {
|
|
1202
|
+
/** Fresh access token on success; null when `userErrors` is non-empty. */
|
|
1203
|
+
customerAccessToken?: Maybe<CustomerAccessToken>;
|
|
1204
|
+
/** Errors carrying a stable `CustomerErrorCode` in `code` (e.g. `TOKEN_INVALID`, `TOKEN_EXPIRED`, `TOKEN_RENEWAL_FAILED`). */
|
|
1205
|
+
userErrors: Array<UserError>;
|
|
1206
|
+
};
|
|
1207
|
+
export type CustomerRemoveAddressPayload = {
|
|
1208
|
+
/** Deleted address ID */
|
|
1209
|
+
deletedAddressId?: Maybe<Scalars['ID']['output']>;
|
|
1210
|
+
/** User errors (code is namespaced — e.g. CUSTOMER_NOT_FOUND, CUSTOMER_TOKEN_INVALID, CUSTOMER_PASSWORD_TOO_WEAK) */
|
|
1211
|
+
userErrors: Array<UserError>;
|
|
1212
|
+
};
|
|
1213
|
+
export type CustomerRequestPasswordResetPayload = {
|
|
1214
|
+
/** User errors (code is namespaced — e.g. CUSTOMER_NOT_FOUND, CUSTOMER_TOKEN_INVALID, CUSTOMER_PASSWORD_TOO_WEAK) */
|
|
1215
|
+
userErrors: Array<UserError>;
|
|
1216
|
+
};
|
|
1217
|
+
export type CustomerResetPasswordPayload = {
|
|
1218
|
+
/** Customer with reset password */
|
|
1219
|
+
customer?: Maybe<Customer>;
|
|
1220
|
+
/** Auto-login access token */
|
|
1221
|
+
customerAccessToken?: Maybe<CustomerAccessToken>;
|
|
1222
|
+
/** User errors (code is namespaced — e.g. CUSTOMER_NOT_FOUND, CUSTOMER_TOKEN_INVALID, CUSTOMER_PASSWORD_TOO_WEAK) */
|
|
1223
|
+
userErrors: Array<UserError>;
|
|
1224
|
+
};
|
|
1225
|
+
export type CustomerSetDefaultAddressPayload = {
|
|
1226
|
+
/** Updated customer */
|
|
1227
|
+
customer?: Maybe<Customer>;
|
|
1228
|
+
/** User errors (code is namespaced — e.g. CUSTOMER_NOT_FOUND, CUSTOMER_TOKEN_INVALID, CUSTOMER_PASSWORD_TOO_WEAK) */
|
|
1229
|
+
userErrors: Array<UserError>;
|
|
1230
|
+
};
|
|
1231
|
+
export type CustomerSignupPayload = {
|
|
1232
|
+
/** The created customer on success; null when `userErrors` is non-empty. */
|
|
1233
|
+
customer?: Maybe<Customer>;
|
|
1234
|
+
/** Access token for the new customer — saves a follow-up login round-trip. */
|
|
1235
|
+
customerAccessToken?: Maybe<CustomerAccessToken>;
|
|
1236
|
+
/** Validation / business errors carrying a stable `CustomerErrorCode` in `code` (e.g. `TAKEN`, `INVALID`, `PASSWORD_TOO_WEAK`, `BAD_DOMAIN`). */
|
|
1237
|
+
userErrors: Array<UserError>;
|
|
1238
|
+
};
|
|
1239
|
+
export type CustomerType = 'COMPANY' | 'INDIVIDUAL';
|
|
1240
|
+
export type CustomerUpdateAddressPayload = {
|
|
1241
|
+
/** Updated address */
|
|
1242
|
+
address?: Maybe<MailingAddress>;
|
|
1243
|
+
/** User errors (code is namespaced — e.g. CUSTOMER_NOT_FOUND, CUSTOMER_TOKEN_INVALID, CUSTOMER_PASSWORD_TOO_WEAK) */
|
|
1244
|
+
userErrors: Array<UserError>;
|
|
1245
|
+
};
|
|
1246
|
+
export type CustomerUpdatePayload = {
|
|
1247
|
+
/** Updated customer */
|
|
1248
|
+
customer?: Maybe<Customer>;
|
|
1249
|
+
/** User errors (code is namespaced — e.g. CUSTOMER_NOT_FOUND, CUSTOMER_TOKEN_INVALID, CUSTOMER_PASSWORD_TOO_WEAK) */
|
|
1250
|
+
userErrors: Array<UserError>;
|
|
1251
|
+
};
|
|
1252
|
+
export type DeliveryEstimate = {
|
|
1253
|
+
/** Pre-formatted human-readable estimate (e.g. "1-2 business days"). Localised; render as-is. */
|
|
1254
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
1255
|
+
/** Maximum expected delivery time in business days. */
|
|
1256
|
+
maxDays?: Maybe<Scalars['Int']['output']>;
|
|
1257
|
+
/** Minimum expected delivery time in business days. */
|
|
1258
|
+
minDays?: Maybe<Scalars['Int']['output']>;
|
|
1259
|
+
};
|
|
1260
|
+
export type DeliveryType =
|
|
1261
|
+
/** Courier delivery to the street address — no pickup point required. */
|
|
1262
|
+
'HOME'
|
|
1263
|
+
/** Automated parcel locker — the buyer collects from a 24/7 self-service machine. */
|
|
1264
|
+
| 'LOCKER'
|
|
1265
|
+
/** Staffed pickup point / parcel shop — the buyer collects the parcel at a counter. */
|
|
1266
|
+
| 'PICKUP_POINT';
|
|
1267
|
+
export type DiscountApplicationType = 'BUY_X_GET_Y' | 'FIXED_AMOUNT' | 'FREE_SHIPPING' | 'PERCENTAGE';
|
|
1268
|
+
export type DiscountErrorCode = 'CUSTOMER_GROUP_NOT_ELIGIBLE' | 'CUSTOMER_NOT_ELIGIBLE' | 'CUSTOMER_USAGE_LIMIT_REACHED' | 'DISCOUNT_COMBINATION_NOT_ALLOWED' | 'EXPIRED' | 'INACTIVE' | 'MINIMUM_ORDER_NOT_MET' | 'MINIMUM_QUANTITY_NOT_MET' | 'NOT_FOUND' | 'NOT_STARTED' | 'SHOP_NOT_FOUND' | 'USAGE_LIMIT_REACHED';
|
|
1269
|
+
export type DiscountInfo = {
|
|
1270
|
+
/** The discount code as entered. */
|
|
1271
|
+
code: Scalars['String']['output'];
|
|
1272
|
+
/** Calculated savings the discount produces against the current cart. Null when the savings cannot be computed without a cart context. */
|
|
1273
|
+
discountAmount?: Maybe<Money>;
|
|
1274
|
+
/** Merchant-facing title of the discount (e.g. "Summer sale 10%"). */
|
|
1275
|
+
title: Scalars['String']['output'];
|
|
1276
|
+
/** Category of the discount: `PERCENTAGE`, `FIXED_AMOUNT`, `FREE_SHIPPING` or `BUY_X_GET_Y`. Drives how `value` is interpreted. */
|
|
1277
|
+
type: DiscountApplicationType;
|
|
1278
|
+
/** Discount value — percent points for `PERCENTAGE`, amount (in major currency units) for `FIXED_AMOUNT`. Ignored for `FREE_SHIPPING` / `BUY_X_GET_Y`. */
|
|
1279
|
+
value: Scalars['Float']['output'];
|
|
1280
|
+
};
|
|
1281
|
+
export type DiscountValidationError = {
|
|
1282
|
+
/** Stable reason code (e.g. `EXPIRED`, `USAGE_LIMIT_REACHED`, `MINIMUM_ORDER_NOT_MET`). Branch on this for UI behaviour. */
|
|
1283
|
+
code: DiscountErrorCode;
|
|
1284
|
+
/** Human-readable explanation of the validation failure. */
|
|
1285
|
+
message: Scalars['String']['output'];
|
|
1286
|
+
};
|
|
1287
|
+
export type DiscountValidationResult = {
|
|
1288
|
+
/** Discount details when `isValid` is true. Null otherwise. */
|
|
1289
|
+
discount?: Maybe<DiscountInfo>;
|
|
1290
|
+
/** Validation failure details when `isValid` is false. Null otherwise. */
|
|
1291
|
+
error?: Maybe<DiscountValidationError>;
|
|
1292
|
+
/** True when the code is currently applicable to the cart. When false, see `error` for the reason. */
|
|
1293
|
+
isValid: Scalars['Boolean']['output'];
|
|
1294
|
+
};
|
|
1295
|
+
export type Domain = {
|
|
1296
|
+
/** Host name (e.g. "shop.example.com") */
|
|
1297
|
+
host: Scalars['String']['output'];
|
|
1298
|
+
/** Whether HTTPS is enforced */
|
|
1299
|
+
isSslEnabled: Scalars['Boolean']['output'];
|
|
1300
|
+
/** Full URL z protocol */
|
|
1301
|
+
url: Scalars['URL']['output'];
|
|
1302
|
+
};
|
|
1303
|
+
export type EmailMarketingState = 'INVALID' | 'NOT_SUBSCRIBED' | 'PENDING' | 'REDACTED' | 'SUBSCRIBED' | 'UNSUBSCRIBED';
|
|
1304
|
+
export type EntityAttributeField = {
|
|
1305
|
+
/** AttributeDefinition ID */
|
|
1306
|
+
definitionId: Scalars['ID']['output'];
|
|
1307
|
+
/** Attribute handle (URL-friendly identifier) */
|
|
1308
|
+
handle: Scalars['String']['output'];
|
|
1309
|
+
/** EntityAttribute row ID */
|
|
1310
|
+
id: Scalars['ID']['output'];
|
|
1311
|
+
/** Per-entity visibility override (NULL = use AttributeDefinition.isVisible). */
|
|
1312
|
+
isVisibleOverride?: Maybe<Scalars['Boolean']['output']>;
|
|
1313
|
+
/** Attribute display name */
|
|
1314
|
+
name: Scalars['String']['output'];
|
|
1315
|
+
/** Optional grouping namespace (e.g. "inventory", "marketing"). NULL = ungrouped. */
|
|
1316
|
+
namespace?: Maybe<Scalars['String']['output']>;
|
|
1317
|
+
/** Attribute data type */
|
|
1318
|
+
type: AttributeType;
|
|
1319
|
+
/** Value serialized as JSON string. Storefront-dev parses according to `type` (TEXT/NUMBER/BOOLEAN/JSON/etc.). Null values serialize as JSON `null`. */
|
|
1320
|
+
value: Scalars['String']['output'];
|
|
1321
|
+
};
|
|
1322
|
+
export type ExchangeRate = {
|
|
1323
|
+
/** Source currency code */
|
|
1324
|
+
from: Scalars['String']['output'];
|
|
1325
|
+
/** Exchange rate */
|
|
1326
|
+
rate: Scalars['Float']['output'];
|
|
1327
|
+
/** Rate data source */
|
|
1328
|
+
source: CurrencyRateSource;
|
|
1329
|
+
/** Target currency code */
|
|
1330
|
+
to: Scalars['String']['output'];
|
|
1331
|
+
/** When rate was last updated */
|
|
1332
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
1333
|
+
};
|
|
1334
|
+
export type Filter = {
|
|
1335
|
+
/** Unique filter identifier (e.g., "filter.v.option.color", "filter.v.price") */
|
|
1336
|
+
id: Scalars['ID']['output'];
|
|
1337
|
+
/** Display label (e.g., "Color", "Price", "Availability") */
|
|
1338
|
+
label: Scalars['String']['output'];
|
|
1339
|
+
/** Display hint (SWATCH for COLOR, IMAGE for pattern, TEXT default) */
|
|
1340
|
+
presentation?: Maybe<FilterPresentation>;
|
|
1341
|
+
/** Filter type (LIST | PRICE_RANGE | BOOLEAN) */
|
|
1342
|
+
type: FilterType;
|
|
1343
|
+
/** Available values for this filter, with product counts */
|
|
1344
|
+
values: Array<FilterValue>;
|
|
1345
|
+
};
|
|
1346
|
+
export type FilterPresentation = 'IMAGE' | 'SWATCH' | 'TEXT';
|
|
1347
|
+
export type FilterType = 'BOOLEAN' | 'LIST' | 'PRICE_RANGE';
|
|
1348
|
+
export type FilterValue = {
|
|
1349
|
+
/** Number of products matching this value in current result set */
|
|
1350
|
+
count: Scalars['Int']['output'];
|
|
1351
|
+
/** Unique identifier within filter */
|
|
1352
|
+
id: Scalars['ID']['output'];
|
|
1353
|
+
/** Pre-built ProductFilter input — paste verbatim into `filters` arg to refetch with this value applied. Example: `{"variantOption":{"name":"Color","value":"Red"}}` */
|
|
1354
|
+
input: Scalars['JSON']['output'];
|
|
1355
|
+
/** Display label (e.g., "Red", "Extra Large", "$50 - $200") */
|
|
1356
|
+
label: Scalars['String']['output'];
|
|
1357
|
+
/** DoSwiftly: visual swatch (color hex or pattern image) */
|
|
1358
|
+
swatch?: Maybe<AttributeSwatch>;
|
|
1359
|
+
};
|
|
1360
|
+
export type FreeShippingProgress = {
|
|
1361
|
+
/** Current qualifying subtotal of the cart. */
|
|
1362
|
+
currentAmount?: Maybe<Money>;
|
|
1363
|
+
/** Pre-formatted, localised banner message (e.g. "Add 15.00 PLN more for free shipping"). Render as-is when present. */
|
|
1364
|
+
message?: Maybe<Scalars['String']['output']>;
|
|
1365
|
+
/** Progress towards the threshold expressed as a percentage between 0 and 100. Use as the value of a progress bar. */
|
|
1366
|
+
progressPercent?: Maybe<Scalars['Float']['output']>;
|
|
1367
|
+
/** True when the cart already qualifies for free shipping. */
|
|
1368
|
+
qualifies: Scalars['Boolean']['output'];
|
|
1369
|
+
/** How much more the buyer needs to add to qualify. Zero when `qualifies` is true. */
|
|
1370
|
+
remaining?: Maybe<Money>;
|
|
1371
|
+
/** Subtotal threshold that unlocks free shipping. */
|
|
1372
|
+
threshold?: Maybe<Money>;
|
|
1373
|
+
};
|
|
1374
|
+
export type GenerateReferralCodePayload = {
|
|
1375
|
+
/** Generated referral code */
|
|
1376
|
+
referralCode?: Maybe<Scalars['String']['output']>;
|
|
1377
|
+
/** Shareable referral URL */
|
|
1378
|
+
shareUrl?: Maybe<Scalars['String']['output']>;
|
|
1379
|
+
/** Whether generation was successful */
|
|
1380
|
+
success: Scalars['Boolean']['output'];
|
|
1381
|
+
/** Typed user errors */
|
|
1382
|
+
userErrors: Array<UserError>;
|
|
1383
|
+
};
|
|
1384
|
+
export type GiftCard = {
|
|
1385
|
+
/** Current balance */
|
|
1386
|
+
balance: Money;
|
|
1387
|
+
/** Creation timestamp */
|
|
1388
|
+
createdAt: Scalars['DateTime']['output'];
|
|
1389
|
+
/** Expiration date */
|
|
1390
|
+
expiresAt?: Maybe<Scalars['DateTime']['output']>;
|
|
1391
|
+
/** Gift card ID */
|
|
1392
|
+
id: Scalars['ID']['output'];
|
|
1393
|
+
/** Initial gift card amount */
|
|
1394
|
+
initialAmount: Money;
|
|
1395
|
+
/** Gift card code (masked for security; client may slice last 4 chars for display) */
|
|
1396
|
+
maskedCode: Scalars['String']['output'];
|
|
1397
|
+
/** Personal message */
|
|
1398
|
+
message?: Maybe<Scalars['String']['output']>;
|
|
1399
|
+
/** Recipient name */
|
|
1400
|
+
recipientName?: Maybe<Scalars['String']['output']>;
|
|
1401
|
+
/** Gift card status */
|
|
1402
|
+
status: GiftCardStatus;
|
|
1403
|
+
};
|
|
1404
|
+
export type GiftCardError = {
|
|
1405
|
+
/** Error code */
|
|
1406
|
+
code: GiftCardErrorCode;
|
|
1407
|
+
/** Human-readable error message */
|
|
1408
|
+
message: Scalars['String']['output'];
|
|
1409
|
+
};
|
|
1410
|
+
export type GiftCardErrorCode = 'ALREADY_USED' | 'CURRENCY_MISMATCH' | 'DISABLED' | 'EXPIRED' | 'INSUFFICIENT_BALANCE' | 'INVALID_CODE_FORMAT' | 'NOT_FOUND';
|
|
1411
|
+
export type GiftCardStatus = 'ACTIVE' | 'DISABLED' | 'EXPIRED' | 'USED';
|
|
1412
|
+
export type GiftCardValidatePayload = {
|
|
1413
|
+
/** User errors */
|
|
1414
|
+
userErrors: Array<UserError>;
|
|
1415
|
+
/** Validation result */
|
|
1416
|
+
validation?: Maybe<GiftCardValidation>;
|
|
1417
|
+
};
|
|
1418
|
+
export type GiftCardValidation = {
|
|
1419
|
+
/** Available balance if valid */
|
|
1420
|
+
availableBalance?: Maybe<Money>;
|
|
1421
|
+
/** Error details if invalid */
|
|
1422
|
+
error?: Maybe<GiftCardError>;
|
|
1423
|
+
/** Gift card details if valid */
|
|
1424
|
+
giftCard?: Maybe<GiftCard>;
|
|
1425
|
+
/** Whether the gift card is valid for use */
|
|
1426
|
+
isValid: Scalars['Boolean']['output'];
|
|
1427
|
+
};
|
|
1428
|
+
export type Image = {
|
|
1429
|
+
/** Alt text for accessibility / SEO. Null when the merchant has not provided one. */
|
|
1430
|
+
altText?: Maybe<Scalars['String']['output']>;
|
|
1431
|
+
/** Native height of the source image in pixels. */
|
|
1432
|
+
height?: Maybe<Scalars['Int']['output']>;
|
|
1433
|
+
/** Stable image identifier. Null for ad-hoc images that are not stored as media library entries. */
|
|
1434
|
+
id?: Maybe<Scalars['ID']['output']>;
|
|
1435
|
+
/** ThumbHash placeholder for progressive loading (base64-encoded, ~40 chars). Decode with `thumbHashToDataURL()` on the client to render an instant blurry preview while the full image loads. */
|
|
1436
|
+
thumbhash?: Maybe<Scalars['String']['output']>;
|
|
1437
|
+
/** Public image URL. Pass an optional `transform` argument (max width / height, crop region, scale, preferred format) to obtain a resized / reformatted CDN variant — useful for responsive images and modern formats like WebP / AVIF. */
|
|
1438
|
+
url: Scalars['String']['output'];
|
|
1439
|
+
/** Native width of the source image in pixels. */
|
|
1440
|
+
width?: Maybe<Scalars['Int']['output']>;
|
|
1441
|
+
};
|
|
1442
|
+
export type ImageConnection = {
|
|
1443
|
+
/** Image edges with cursors */
|
|
1444
|
+
edges: Array<ImageEdge>;
|
|
1445
|
+
/** Image nodes (shortcut for edges.map(e => e.node)) */
|
|
1446
|
+
nodes: Array<Image>;
|
|
1447
|
+
/** Pagination info */
|
|
1448
|
+
pageInfo: PageInfo;
|
|
1449
|
+
/** Total count of images */
|
|
1450
|
+
totalCount: Scalars['Int']['output'];
|
|
1451
|
+
};
|
|
1452
|
+
export type ImageEdge = {
|
|
1453
|
+
/** Cursor for pagination */
|
|
1454
|
+
cursor: Scalars['String']['output'];
|
|
1455
|
+
/** Image node */
|
|
1456
|
+
node: Image;
|
|
1457
|
+
};
|
|
1458
|
+
export type Language = {
|
|
1459
|
+
/** Language code (ISO 639-1) */
|
|
1460
|
+
code: Scalars['ID']['output'];
|
|
1461
|
+
/** Text direction */
|
|
1462
|
+
direction: LanguageDirection;
|
|
1463
|
+
/** English language name */
|
|
1464
|
+
englishName: Scalars['String']['output'];
|
|
1465
|
+
/** Whether this is the default language */
|
|
1466
|
+
isDefault: Scalars['Boolean']['output'];
|
|
1467
|
+
/** Locale code (e.g., "pl-PL") */
|
|
1468
|
+
locale?: Maybe<Scalars['String']['output']>;
|
|
1469
|
+
/** Native language name */
|
|
1470
|
+
nativeName: Scalars['String']['output'];
|
|
1471
|
+
};
|
|
1472
|
+
export type LanguageCode = 'CS' | 'DA' | 'DE' | 'EN' | 'ES' | 'FI' | 'FR' | 'HR' | 'HU' | 'IT' | 'LT' | 'LV' | 'NL' | 'NO' | 'PL' | 'PT' | 'RO' | 'SK' | 'SL' | 'SV' | 'UK';
|
|
1473
|
+
export type LanguageDirection = 'LTR' | 'RTL';
|
|
1474
|
+
export type LinkedVariantSummary = {
|
|
1475
|
+
/** Available stock (stock − active reservations, zawsze ≥ 0). */
|
|
1476
|
+
availableStock: Scalars['Int']['output'];
|
|
1477
|
+
/** Variant ID (w tenant DB). */
|
|
1478
|
+
id: Scalars['ID']['output'];
|
|
1479
|
+
/** Czy w tej chwili dostępny do zakupu (uwzględnia allowBackorder). */
|
|
1480
|
+
isAvailable: Scalars['Boolean']['output'];
|
|
1481
|
+
/** Parent product ID. */
|
|
1482
|
+
productId: Scalars['ID']['output'];
|
|
1483
|
+
/** SKU jeśli zdefiniowany. */
|
|
1484
|
+
sku?: Maybe<Scalars['String']['output']>;
|
|
1485
|
+
/** Variant name (e.g., "Finiszer Zewnętrzny SD"). */
|
|
1486
|
+
title: Scalars['String']['output'];
|
|
1487
|
+
/** Czy magazyn śledzi stock dla tego wariantu. */
|
|
1488
|
+
trackQuantity: Scalars['Boolean']['output'];
|
|
1489
|
+
};
|
|
1490
|
+
export type LocaleCurrencyMapping = {
|
|
1491
|
+
/** Currency code (ISO 4217) */
|
|
1492
|
+
currency: CurrencyCode;
|
|
1493
|
+
/** Browser locale (e.g., "pl-PL", "en-US") */
|
|
1494
|
+
locale: Scalars['String']['output'];
|
|
1495
|
+
};
|
|
1496
|
+
export type Localization = {
|
|
1497
|
+
/** Wszystkie wsparte kraje (z aktywnych shipping zones) */
|
|
1498
|
+
availableCountries: Array<Country>;
|
|
1499
|
+
/** Wszystkie wsparte języki sklepu */
|
|
1500
|
+
availableLanguages: Array<Language>;
|
|
1501
|
+
/** Aktualny kraj klienta (z `@inContext` lub geo-detection) */
|
|
1502
|
+
country: Country;
|
|
1503
|
+
/** Aktualny język klienta (z `Accept-Language` lub `@inContext`) */
|
|
1504
|
+
language: Language;
|
|
1505
|
+
};
|
|
1506
|
+
export type Location = {
|
|
1507
|
+
/** Physical address and coordinates */
|
|
1508
|
+
address: LocationAddress;
|
|
1509
|
+
/** Per-day business hours. Null when not configured — use pickupLeadTimeHours only. */
|
|
1510
|
+
businessHours?: Maybe<BusinessHours>;
|
|
1511
|
+
/** Location ID */
|
|
1512
|
+
id: Scalars['ID']['output'];
|
|
1513
|
+
/** Location display name */
|
|
1514
|
+
name: Scalars['String']['output'];
|
|
1515
|
+
/** Optional merchant pickup instructions (e.g., "Show ID at counter") */
|
|
1516
|
+
pickupInstructions?: Maybe<Scalars['String']['output']>;
|
|
1517
|
+
/** Whether this location supports BOPIS pickup */
|
|
1518
|
+
supportsPickup: Scalars['Boolean']['output'];
|
|
1519
|
+
/** IANA timezone identifier (e.g., "Europe/Warsaw"). Falls back to shop timezone if null. */
|
|
1520
|
+
timezone?: Maybe<Scalars['String']['output']>;
|
|
1521
|
+
/** Location type (WAREHOUSE, STORE, etc.) */
|
|
1522
|
+
type: LocationType;
|
|
1523
|
+
};
|
|
1524
|
+
export type LocationAddress = {
|
|
1525
|
+
/** City */
|
|
1526
|
+
city?: Maybe<Scalars['String']['output']>;
|
|
1527
|
+
/** Country name */
|
|
1528
|
+
country?: Maybe<Scalars['String']['output']>;
|
|
1529
|
+
/** Country ISO 3166-1 alpha-2 code (e.g., PL, US) */
|
|
1530
|
+
countryCode?: Maybe<Scalars['String']['output']>;
|
|
1531
|
+
/** Formatted address lines (country-aware ordering) */
|
|
1532
|
+
formatted: Array<Scalars['String']['output']>;
|
|
1533
|
+
/** Latitude (decimal degrees) */
|
|
1534
|
+
latitude?: Maybe<Scalars['Float']['output']>;
|
|
1535
|
+
/** Longitude (decimal degrees) */
|
|
1536
|
+
longitude?: Maybe<Scalars['Float']['output']>;
|
|
1537
|
+
/** Phone number */
|
|
1538
|
+
phone?: Maybe<Scalars['String']['output']>;
|
|
1539
|
+
/** Postal / ZIP code */
|
|
1540
|
+
postalCode?: Maybe<Scalars['String']['output']>;
|
|
1541
|
+
/** State / province name */
|
|
1542
|
+
state?: Maybe<Scalars['String']['output']>;
|
|
1543
|
+
/** State / province code (e.g., CA, MZ) */
|
|
1544
|
+
stateCode?: Maybe<Scalars['String']['output']>;
|
|
1545
|
+
/** First line of street address */
|
|
1546
|
+
streetLine1?: Maybe<Scalars['String']['output']>;
|
|
1547
|
+
/** Second line of street address (apartment, suite) */
|
|
1548
|
+
streetLine2?: Maybe<Scalars['String']['output']>;
|
|
1549
|
+
};
|
|
1550
|
+
export type LocationConnection = {
|
|
1551
|
+
/** Location edges */
|
|
1552
|
+
edges: Array<LocationEdge>;
|
|
1553
|
+
/** Pagination info */
|
|
1554
|
+
pageInfo: PageInfo;
|
|
1555
|
+
/** Total count of locations matching the query */
|
|
1556
|
+
totalCount: Scalars['Int']['output'];
|
|
1557
|
+
};
|
|
1558
|
+
export type LocationEdge = {
|
|
1559
|
+
/** Cursor for pagination */
|
|
1560
|
+
cursor: Scalars['String']['output'];
|
|
1561
|
+
/** The location node */
|
|
1562
|
+
node: Location;
|
|
1563
|
+
};
|
|
1564
|
+
export type LocationType = 'DROPSHIPPER' | 'FULFILLMENT_CENTER' | 'STORE' | 'WAREHOUSE';
|
|
1565
|
+
export type LoyaltyAction = {
|
|
1566
|
+
/** Whether action is enabled */
|
|
1567
|
+
isEnabled: Scalars['Boolean']['output'];
|
|
1568
|
+
/** Points awarded for this action (if fixed) */
|
|
1569
|
+
points?: Maybe<Scalars['Int']['output']>;
|
|
1570
|
+
/** Action type */
|
|
1571
|
+
type: Scalars['String']['output'];
|
|
1572
|
+
};
|
|
1573
|
+
export type LoyaltyMember = {
|
|
1574
|
+
/** Annual spend amount */
|
|
1575
|
+
annualSpend: Money;
|
|
1576
|
+
/** Customer ID */
|
|
1577
|
+
customerId: Scalars['ID']['output'];
|
|
1578
|
+
/** Enrollment date */
|
|
1579
|
+
enrolledAt: Scalars['DateTime']['output'];
|
|
1580
|
+
/** Member ID */
|
|
1581
|
+
id: Scalars['ID']['output'];
|
|
1582
|
+
/** Last activity date */
|
|
1583
|
+
lastActivityAt?: Maybe<Scalars['DateTime']['output']>;
|
|
1584
|
+
/** Points summary */
|
|
1585
|
+
points: LoyaltyPointsSummary;
|
|
1586
|
+
/** Current tier */
|
|
1587
|
+
tier?: Maybe<LoyaltyTier>;
|
|
1588
|
+
/** Progress to next tier */
|
|
1589
|
+
tierProgress?: Maybe<TierProgress>;
|
|
1590
|
+
};
|
|
1591
|
+
export type LoyaltyPageInfo = {
|
|
1592
|
+
/** End cursor */
|
|
1593
|
+
endCursor?: Maybe<Scalars['String']['output']>;
|
|
1594
|
+
/** Has next page */
|
|
1595
|
+
hasNextPage: Scalars['Boolean']['output'];
|
|
1596
|
+
/** Has previous page */
|
|
1597
|
+
hasPreviousPage: Scalars['Boolean']['output'];
|
|
1598
|
+
/** Start cursor */
|
|
1599
|
+
startCursor?: Maybe<Scalars['String']['output']>;
|
|
1600
|
+
};
|
|
1601
|
+
export type LoyaltyPointsSummary = {
|
|
1602
|
+
/** Currently available points */
|
|
1603
|
+
currentPoints: Scalars['Int']['output'];
|
|
1604
|
+
/** Points expired */
|
|
1605
|
+
expiredPoints: Scalars['Int']['output'];
|
|
1606
|
+
/** Points expiring soon (next 30 days) */
|
|
1607
|
+
expiringPoints?: Maybe<Scalars['Int']['output']>;
|
|
1608
|
+
/** Next expiry date (ISO 8601) */
|
|
1609
|
+
nextExpiryDate?: Maybe<Scalars['DateTime']['output']>;
|
|
1610
|
+
/** Points pending (from incomplete orders) */
|
|
1611
|
+
pendingPoints: Scalars['Int']['output'];
|
|
1612
|
+
/** Points redeemed */
|
|
1613
|
+
redeemedPoints: Scalars['Int']['output'];
|
|
1614
|
+
/** Total points earned all-time */
|
|
1615
|
+
totalPoints: Scalars['Int']['output'];
|
|
1616
|
+
};
|
|
1617
|
+
export type LoyaltyReward = {
|
|
1618
|
+
/** Description */
|
|
1619
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
1620
|
+
/** Discount amount (if discount type) */
|
|
1621
|
+
discountAmount?: Maybe<Money>;
|
|
1622
|
+
/** Discount percentage (if discount type) */
|
|
1623
|
+
discountPercent?: Maybe<Scalars['Float']['output']>;
|
|
1624
|
+
/** URL-friendly handle */
|
|
1625
|
+
handle: Scalars['String']['output'];
|
|
1626
|
+
/** Reward ID */
|
|
1627
|
+
id: Scalars['ID']['output'];
|
|
1628
|
+
/** Reward image */
|
|
1629
|
+
image?: Maybe<Image>;
|
|
1630
|
+
/** Whether reward is available */
|
|
1631
|
+
isAvailable: Scalars['Boolean']['output'];
|
|
1632
|
+
/** Reward name */
|
|
1633
|
+
name: Scalars['String']['output'];
|
|
1634
|
+
/** Points required to redeem */
|
|
1635
|
+
pointsCost: Scalars['Int']['output'];
|
|
1636
|
+
/** Redemptions remaining (null = unlimited) */
|
|
1637
|
+
redemptionsRemaining?: Maybe<Scalars['Int']['output']>;
|
|
1638
|
+
/** Minimum tier required */
|
|
1639
|
+
tierRequired?: Maybe<LoyaltyTier>;
|
|
1640
|
+
/** Reward type (discount, product, shipping, gift_card) */
|
|
1641
|
+
type: Scalars['String']['output'];
|
|
1642
|
+
};
|
|
1643
|
+
export type LoyaltySettings = {
|
|
1644
|
+
/** Available point earning actions */
|
|
1645
|
+
availableActions: Array<LoyaltyAction>;
|
|
1646
|
+
/** Whether loyalty program is enabled */
|
|
1647
|
+
isEnabled: Scalars['Boolean']['output'];
|
|
1648
|
+
/** Months until points expire (null = no expiry) */
|
|
1649
|
+
pointsExpiryMonths?: Maybe<Scalars['Int']['output']>;
|
|
1650
|
+
/** Custom name for points (e.g., "Points", "Stars", "Coins") */
|
|
1651
|
+
pointsName: Scalars['String']['output'];
|
|
1652
|
+
/** Points earned per 1 unit of currency */
|
|
1653
|
+
pointsPerCurrency: Scalars['Float']['output'];
|
|
1654
|
+
/** Bonus points for referred customer */
|
|
1655
|
+
referralBonusPoints?: Maybe<Scalars['Int']['output']>;
|
|
1656
|
+
/** Whether referral program is enabled */
|
|
1657
|
+
referralEnabled: Scalars['Boolean']['output'];
|
|
1658
|
+
/** Points awarded to referrer */
|
|
1659
|
+
referralPoints?: Maybe<Scalars['Int']['output']>;
|
|
1660
|
+
};
|
|
1661
|
+
export type LoyaltyTier = {
|
|
1662
|
+
/** Additional custom benefits */
|
|
1663
|
+
customBenefits: Array<TierBenefit>;
|
|
1664
|
+
/** Tier ID */
|
|
1665
|
+
id: Scalars['ID']['output'];
|
|
1666
|
+
/** Minimum annual spend required */
|
|
1667
|
+
minAnnualSpend?: Maybe<Money>;
|
|
1668
|
+
/** Minimum points required for tier */
|
|
1669
|
+
minPoints: Scalars['Int']['output'];
|
|
1670
|
+
/** Tier name */
|
|
1671
|
+
name: Scalars['String']['output'];
|
|
1672
|
+
/** Points earning multiplier (e.g., 1.5 for 50% bonus) */
|
|
1673
|
+
pointsMultiplier: Scalars['Float']['output'];
|
|
1674
|
+
/** Tier type (null for custom tiers) */
|
|
1675
|
+
type?: Maybe<LoyaltyTierType>;
|
|
1676
|
+
};
|
|
1677
|
+
export type LoyaltyTierType = 'BRONZE' | 'DIAMOND' | 'GOLD' | 'PLATINUM' | 'SILVER';
|
|
1678
|
+
export type LoyaltyTransaction = {
|
|
1679
|
+
/** Balance after transaction */
|
|
1680
|
+
balanceAfter: Scalars['Int']['output'];
|
|
1681
|
+
/** Transaction date */
|
|
1682
|
+
createdAt: Scalars['DateTime']['output'];
|
|
1683
|
+
/** Description */
|
|
1684
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
1685
|
+
/** Expiry date for earned points */
|
|
1686
|
+
expiresAt?: Maybe<Scalars['DateTime']['output']>;
|
|
1687
|
+
/** Transaction ID */
|
|
1688
|
+
id: Scalars['ID']['output'];
|
|
1689
|
+
/** Related order ID */
|
|
1690
|
+
orderId?: Maybe<Scalars['String']['output']>;
|
|
1691
|
+
/** Points (positive = earn, negative = spend) */
|
|
1692
|
+
points: Scalars['Int']['output'];
|
|
1693
|
+
/** Transaction type */
|
|
1694
|
+
type: LoyaltyTransactionType;
|
|
1695
|
+
};
|
|
1696
|
+
export type LoyaltyTransactionConnection = {
|
|
1697
|
+
/** Transaction edges */
|
|
1698
|
+
edges: Array<LoyaltyTransactionEdge>;
|
|
1699
|
+
/** Pagination info */
|
|
1700
|
+
pageInfo: LoyaltyPageInfo;
|
|
1701
|
+
/** Total count of transactions */
|
|
1702
|
+
totalCount: Scalars['Int']['output'];
|
|
1703
|
+
};
|
|
1704
|
+
export type LoyaltyTransactionEdge = {
|
|
1705
|
+
/** Cursor for pagination */
|
|
1706
|
+
cursor: Scalars['String']['output'];
|
|
1707
|
+
/** The transaction */
|
|
1708
|
+
node: LoyaltyTransaction;
|
|
1709
|
+
};
|
|
1710
|
+
export type LoyaltyTransactionType = 'ADJUST' | 'EARN_BIRTHDAY' | 'EARN_BONUS' | 'EARN_PURCHASE' | 'EARN_REFERRAL' | 'EARN_REVIEW' | 'EARN_SIGNUP' | 'EXPIRE' | 'REDEEM' | 'REFUND_REVERSAL';
|
|
1711
|
+
export type MailingAddress = Node & {
|
|
1712
|
+
/** City / town. */
|
|
1713
|
+
city?: Maybe<Scalars['String']['output']>;
|
|
1714
|
+
/** Company name (relevant for B2B addresses). */
|
|
1715
|
+
company?: Maybe<Scalars['String']['output']>;
|
|
1716
|
+
/** Country name in the request locale (e.g. "Poland", "Polska"). For machine logic use `countryCode`. */
|
|
1717
|
+
country?: Maybe<Scalars['String']['output']>;
|
|
1718
|
+
/** ISO 3166-1 alpha-2 country code (e.g. PL, DE, US). */
|
|
1719
|
+
countryCode?: Maybe<CountryCode>;
|
|
1720
|
+
/** Buyer first name. */
|
|
1721
|
+
firstName?: Maybe<Scalars['String']['output']>;
|
|
1722
|
+
/** Country-aware ordered address lines, ready to render line by line in UI without manual formatting. The exact line layout depends on country (e.g. PL puts postal code before city, US after state). */
|
|
1723
|
+
formatted: Array<Scalars['String']['output']>;
|
|
1724
|
+
/** Single-line summary of the area, e.g. "Warszawa, MZ, Poland". Useful for compact display in lists. */
|
|
1725
|
+
formattedArea?: Maybe<Scalars['String']['output']>;
|
|
1726
|
+
/** Stable identifier of the address. */
|
|
1727
|
+
id: Scalars['ID']['output'];
|
|
1728
|
+
/** True when this is the default address for the owning customer. */
|
|
1729
|
+
isDefault: Scalars['Boolean']['output'];
|
|
1730
|
+
/** Buyer last name. */
|
|
1731
|
+
lastName?: Maybe<Scalars['String']['output']>;
|
|
1732
|
+
/** Convenience full name (`firstName` + " " + `lastName`). */
|
|
1733
|
+
name?: Maybe<Scalars['String']['output']>;
|
|
1734
|
+
/** Phone number associated with the address (free-form). */
|
|
1735
|
+
phone?: Maybe<Scalars['String']['output']>;
|
|
1736
|
+
/** Selected pickup point when the shipping method delivers to a parcel locker / collection point instead of the street address. Null for home delivery. */
|
|
1737
|
+
pickupPoint?: Maybe<PickupPoint>;
|
|
1738
|
+
/** Postal / ZIP code. */
|
|
1739
|
+
postalCode?: Maybe<Scalars['String']['output']>;
|
|
1740
|
+
/** State / province / region name. */
|
|
1741
|
+
state?: Maybe<Scalars['String']['output']>;
|
|
1742
|
+
/** State / province code (ISO 3166-2 subdivision, e.g. PL-MZ). */
|
|
1743
|
+
stateCode?: Maybe<Scalars['String']['output']>;
|
|
1744
|
+
/** First line of the street address (street and house / building number). */
|
|
1745
|
+
streetLine1?: Maybe<Scalars['String']['output']>;
|
|
1746
|
+
/** Second line of the street address (apartment, suite, floor — optional). */
|
|
1747
|
+
streetLine2?: Maybe<Scalars['String']['output']>;
|
|
1748
|
+
/** Per-address buyer tax ID for B2B invoicing — Polish NIP, 10 digits with checksum. Lets B2B buyers invoice different addresses to different legal entities. Independent of `Customer.taxId` (which is the customer-wide default). */
|
|
1749
|
+
taxId?: Maybe<Scalars['String']['output']>;
|
|
1750
|
+
/** Per-address EU VAT number (e.g. `PL1234567890`) for cross-border B2B. Independent of `Customer.vatNumber` (which is the customer-wide default). */
|
|
1751
|
+
vatNumber?: Maybe<Scalars['String']['output']>;
|
|
1752
|
+
};
|
|
1753
|
+
export type MailingAddressConnection = {
|
|
1754
|
+
/** Edges with the address and its cursor — use for cursor-based pagination. */
|
|
1755
|
+
edges: Array<MailingAddressEdge>;
|
|
1756
|
+
/** Address nodes — convenience shortcut for `edges.map(e => e.node)`. */
|
|
1757
|
+
nodes: Array<MailingAddress>;
|
|
1758
|
+
/** Cursor pagination info (`hasNextPage`, `endCursor`, etc.). */
|
|
1759
|
+
pageInfo: PageInfo;
|
|
1760
|
+
/** Total number of saved addresses for the customer across all pages. */
|
|
1761
|
+
totalCount: Scalars['Int']['output'];
|
|
1762
|
+
};
|
|
1763
|
+
export type MailingAddressEdge = {
|
|
1764
|
+
/** Cursor for pagination */
|
|
1765
|
+
cursor: Scalars['String']['output'];
|
|
1766
|
+
/** MailingAddress node */
|
|
1767
|
+
node: MailingAddress;
|
|
1768
|
+
};
|
|
1769
|
+
export type MarketingOptInLevel = 'CONFIRMED_OPT_IN' | 'SINGLE_OPT_IN' | 'UNKNOWN';
|
|
1770
|
+
export type Menu = {
|
|
1771
|
+
/** URL handle (e.g., main-menu, footer) */
|
|
1772
|
+
handle: Scalars['String']['output'];
|
|
1773
|
+
/** Menu ID */
|
|
1774
|
+
id: Scalars['ID']['output'];
|
|
1775
|
+
/** Top-level menu items */
|
|
1776
|
+
items: Array<MenuItem>;
|
|
1777
|
+
/** Menu title */
|
|
1778
|
+
title: Scalars['String']['output'];
|
|
1779
|
+
};
|
|
1780
|
+
export type MenuItem = {
|
|
1781
|
+
/** Item ID */
|
|
1782
|
+
id: Scalars['ID']['output'];
|
|
1783
|
+
/** Custom banner image (with url(transform:) support) */
|
|
1784
|
+
image?: Maybe<Image>;
|
|
1785
|
+
/** Child menu items (max 3 levels) */
|
|
1786
|
+
items: Array<MenuItem>;
|
|
1787
|
+
/** Linked resource object resolved server-side via DataLoader (batched per resource type — no N+1). Null when type is HTTP/FRONTPAGE/SEARCH/CATALOG/BLOG, or when resourceId points to a deleted resource. */
|
|
1788
|
+
resource?: Maybe<MenuItemResource>;
|
|
1789
|
+
/** Linked resource ID */
|
|
1790
|
+
resourceId?: Maybe<Scalars['ID']['output']>;
|
|
1791
|
+
/** Display title */
|
|
1792
|
+
title: Scalars['String']['output'];
|
|
1793
|
+
/** Link type */
|
|
1794
|
+
type: MenuItemType;
|
|
1795
|
+
/** Pre-resolved URL path computed server-side using a standard route convention: /categories/<handle>, /collections/<handle>, /pages/<handle>, /products/<handle>, /brands/<handle>. Static types resolve to /, /search, /products, /blog. HTTP returns the manually stored URL. Null when type is a resource link and the underlying resource was deleted. If your storefront uses non-standard routing (e.g. single-segment /<handle>), prefer reading the `resource` field instead and build URLs yourself from `resource.__typename` + `handle`. */
|
|
1796
|
+
url?: Maybe<Scalars['URL']['output']>;
|
|
1797
|
+
};
|
|
1798
|
+
export type MenuItemResource = Brand | Category | Collection | Product | ShopPage;
|
|
1799
|
+
export type MenuItemType = 'BLOG' | 'BRAND' | 'CATALOG' | 'CATEGORY' | 'COLLECTION' | 'FRONTPAGE' | 'HTTP' | 'PAGE' | 'PRODUCT' | 'SEARCH';
|
|
1800
|
+
export type Money = {
|
|
1801
|
+
/** Amount as a decimal string in major currency units (e.g. "12.99"). String, not float — preserves precision across locales. */
|
|
1802
|
+
amount: Scalars['Decimal']['output'];
|
|
1803
|
+
/** ISO 4217 currency code (e.g. PLN, EUR, USD). */
|
|
1804
|
+
currencyCode: CurrencyCode;
|
|
1805
|
+
};
|
|
1806
|
+
export type Mutation = {
|
|
1807
|
+
/** Add one or more lines to the cart. Adding the same variant a second time merges into the existing line (sums the quantity). Returns the full updated cart plus any non-fatal warnings (e.g. stock dropped below requested quantity). */
|
|
1808
|
+
cartAddLines: CartAddLinesPayload;
|
|
1809
|
+
/** Apply a gift card to the cart by full code. The card is debited at `cartComplete`. Rate-limited to 5 requests per minute per IP+shop (gift card codes form a finite enumerable space). */
|
|
1810
|
+
cartApplyGiftCard: CartApplyGiftCardPayload;
|
|
1811
|
+
/** Finalise the cart into an `Order`. The cart is locked and no longer accepts mutations. Payment is initiated separately via `paymentCreate` — check `order.canCreatePayment` to decide whether to render a "Pay now" button or send the buyer directly to the confirmation page (for offline methods such as cash on delivery). Rate-limited to 5 requests per minute per IP+shop; pass an `idempotencyKey` to guard against duplicate orders on retry. */
|
|
1812
|
+
cartComplete: CartCompletePayload;
|
|
1813
|
+
/** Create a new cart. All fields on `input` are optional — call with no input to create an empty cart, or pass initial lines, buyer identity, attributes, discount codes, email and a shipping address to skip the corresponding follow-up calls. */
|
|
1814
|
+
cartCreate: CartCreatePayload;
|
|
1815
|
+
/** Replace (not merge) the list of discount codes on the cart. Pass an empty array to clear all codes. Rate-limited to 10 requests per minute per IP+shop. */
|
|
1816
|
+
cartDiscountCodesUpdate: CartDiscountCodesUpdatePayload;
|
|
1817
|
+
/** Remove a previously applied gift card from the cart by its `CartAppliedGiftCard.id`. The storefront never has to handle the full gift card code on the client. */
|
|
1818
|
+
cartRemoveGiftCard: CartRemoveGiftCardPayload;
|
|
1819
|
+
/** Remove one or more lines from the cart by `CartLine.id`. Equivalent to `cartUpdateLines` with `quantity: 0` but lets the storefront express the intent explicitly. */
|
|
1820
|
+
cartRemoveLines: CartRemoveLinesPayload;
|
|
1821
|
+
/** Select a payment method on the cart. Validates against the active shop payment methods and currency. The selection is finalised at `cartComplete`; payment itself is initiated via a separate `paymentCreate` mutation after the order is created. */
|
|
1822
|
+
cartSelectPaymentMethod: CartSelectPaymentMethodPayload;
|
|
1823
|
+
/** Select a shipping method on the cart. Validates the method against the cart contents and the shipping address (must be eligible for the destination, and a pickup point must be set when the method delivers to a locker / collection point). Updates `cost.totalShipping` and the grand total. */
|
|
1824
|
+
cartSelectShippingMethod: CartSelectShippingMethodPayload;
|
|
1825
|
+
/** Set the billing address on a cart. The shipping address is left unchanged — pass billing only when it differs from shipping (otherwise the order mirrors the shipping address as the billing address). */
|
|
1826
|
+
cartSetBillingAddress: CartSetBillingAddressPayload;
|
|
1827
|
+
/** Set the shipping address on a cart. Pass `address.pickupPoint` when the buyer is delivering to a parcel locker / collection point — required for non-HOME shipping methods. Replaces any previous shipping address; the billing address is left untouched. */
|
|
1828
|
+
cartSetShippingAddress: CartSetShippingAddressPayload;
|
|
1829
|
+
/** Replace (not merge) the cart-level custom attributes — free-form key/value pairs surfaced to the merchant on the order. Use for cart-wide metadata such as a B2B PO number or marketing source. Max 250 pairs / 255-char keys; over the limit returns `CART_ATTRIBUTES_LIMIT_EXCEEDED`. */
|
|
1830
|
+
cartUpdateAttributes: CartUpdateAttributesPayload;
|
|
1831
|
+
/** Update buyer identity on the cart — email, phone, customer ID, country and language hints. Only supplied fields are touched; omit a field to leave it unchanged. */
|
|
1832
|
+
cartUpdateBuyerIdentity: CartUpdateBuyerIdentityPayload;
|
|
1833
|
+
/** Set recipient details (email, display name, personalised message) on a gift card line item — the gift card will be delivered to this recipient on order completion. */
|
|
1834
|
+
cartUpdateGiftCardRecipient: CartUpdateGiftCardRecipientPayload;
|
|
1835
|
+
/** Update existing cart lines — quantity, custom attributes and / or configurator selections. Set `quantity` to 0 to remove a line. Address lines by `CartLine.id`. */
|
|
1836
|
+
cartUpdateLines: CartUpdateLinesPayload;
|
|
1837
|
+
/** Set or replace the buyer note on the cart (free-form, up to 1000 chars). Surfaced to the merchant on the resulting order. */
|
|
1838
|
+
cartUpdateNote: CartUpdateNotePayload;
|
|
1839
|
+
/** Activate customer account using raw activation token (admin-created flow) */
|
|
1840
|
+
customerActivate: CustomerActivatePayload;
|
|
1841
|
+
/** Add customer address */
|
|
1842
|
+
customerAddAddress: CustomerAddAddressPayload;
|
|
1843
|
+
/** Sign a customer in with email and password. Returns an access token to use on subsequent requests (as a Bearer header or via the SDK auth cookie). */
|
|
1844
|
+
customerLogin: CustomerLoginPayload;
|
|
1845
|
+
/** Sign the current customer out. Invalidates the access token on the server; the SDK BFF auth helpers additionally clear the HTTP-only cookie. */
|
|
1846
|
+
customerLogout: CustomerLogoutPayload;
|
|
1847
|
+
/** Exchange a still-valid access token for a fresh one with a later expiry. Call before `expiresAt` to keep the session alive without prompting the buyer to log in again. */
|
|
1848
|
+
customerRefreshToken: CustomerRefreshTokenPayload;
|
|
1849
|
+
/** Remove customer address */
|
|
1850
|
+
customerRemoveAddress: CustomerRemoveAddressPayload;
|
|
1851
|
+
/** Request password reset email */
|
|
1852
|
+
customerRequestPasswordReset: CustomerRequestPasswordResetPayload;
|
|
1853
|
+
/** Reset customer password via signed URL from email */
|
|
1854
|
+
customerResetPassword: CustomerResetPasswordPayload;
|
|
1855
|
+
/** Set default address */
|
|
1856
|
+
customerSetDefaultAddress: CustomerSetDefaultAddressPayload;
|
|
1857
|
+
/** Register a new customer with email and password. Returns the created customer plus an access token so the storefront can sign the buyer in immediately, no follow-up login call needed. */
|
|
1858
|
+
customerSignup: CustomerSignupPayload;
|
|
1859
|
+
/** Subscribe an email to the newsletter (guest-friendly, double opt-in). */
|
|
1860
|
+
customerSubscribeToMarketing: SubscribeToMarketingPayload;
|
|
1861
|
+
/** Unsubscribe an email from the newsletter (guest-friendly, idempotent). */
|
|
1862
|
+
customerUnsubscribeFromMarketing: UnsubscribeFromMarketingPayload;
|
|
1863
|
+
/** Update customer profile */
|
|
1864
|
+
customerUpdate: CustomerUpdatePayload;
|
|
1865
|
+
/** Update customer address */
|
|
1866
|
+
customerUpdateAddress: CustomerUpdateAddressPayload;
|
|
1867
|
+
/** Generate or retrieve referral code */
|
|
1868
|
+
loyaltyGenerateReferralCode: GenerateReferralCodePayload;
|
|
1869
|
+
/** Redeem a loyalty reward */
|
|
1870
|
+
loyaltyRedeemReward: RedeemRewardPayload;
|
|
1871
|
+
/** Initiate a payment session for an order created by `cartComplete`. Call after checking `order.canCreatePayment`. Idempotent on the order — a second call returns the existing still-valid session. Branch on the returned `payment.flow` to launch the payment (redirect / embedded / instant). Rate-limited to 5 requests per minute per IP+shop. */
|
|
1872
|
+
paymentCreate: PaymentCreatePayload;
|
|
1873
|
+
/** Cancel a return request */
|
|
1874
|
+
returnCancel: ReturnCancelPayload;
|
|
1875
|
+
/** Create a return request */
|
|
1876
|
+
returnCreate: ReturnCreatePayload;
|
|
1877
|
+
/** Create a product review */
|
|
1878
|
+
reviewCreate: ReviewPayload;
|
|
1879
|
+
/** Mark review as not helpful (downvote). Replaces any prior vote by same customer. */
|
|
1880
|
+
reviewDownvote: ReviewPayload;
|
|
1881
|
+
/** Mark review as helpful (upvote). Replaces any prior vote by same customer. */
|
|
1882
|
+
reviewUpvote: ReviewPayload;
|
|
1883
|
+
/** Add item to wishlist */
|
|
1884
|
+
wishlistAddItem: WishlistPayload;
|
|
1885
|
+
/** Create a new wishlist */
|
|
1886
|
+
wishlistCreate: WishlistPayload;
|
|
1887
|
+
/** Delete a wishlist */
|
|
1888
|
+
wishlistDelete: WishlistPayload;
|
|
1889
|
+
/** Remove item from wishlist */
|
|
1890
|
+
wishlistRemoveItem: WishlistPayload;
|
|
1891
|
+
};
|
|
1892
|
+
export type Node = {
|
|
1893
|
+
/** Globally-unique identifier */
|
|
1894
|
+
id: Scalars['ID']['output'];
|
|
1895
|
+
};
|
|
1896
|
+
export type Order = Node & {
|
|
1897
|
+
/** Opaque access token (UUID v4) that grants read access to the order summary without an authenticated session — pass it to the `orderByToken` query to build a guest confirmation page. Persistent for the lifetime of the order so it can be re-used in forwarded receipts. Store on the storefront in an HTTP-only cookie or `sessionStorage`; never in `localStorage`. As defense-in-depth, `orderByToken` also accepts an optional email guard to limit the blast radius if the token leaks. */
|
|
1898
|
+
accessToken: Scalars['String']['output'];
|
|
1899
|
+
/** Order custom field values (post-Opcja A unified custom fields). */
|
|
1900
|
+
attributes: Array<EntityAttributeField>;
|
|
1901
|
+
/** True when the storefront should initiate an online payment for this order — render a "Pay now" button. False when the order is cancelled, already paid, or uses an offline payment method (cash on delivery, manual bank transfer) where no online flow applies. Retry-friendly: returns true for UNPAID / PENDING / FAILED payment statuses when the method supports online init. */
|
|
1902
|
+
canCreatePayment: Scalars['Boolean']['output'];
|
|
1903
|
+
/** When the order was cancelled. Null when not cancelled. */
|
|
1904
|
+
cancelledAt?: Maybe<Scalars['DateTime']['output']>;
|
|
1905
|
+
/** When the order was confirmed (e.g. payment authorised / approved). Null until confirmation. */
|
|
1906
|
+
confirmedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
1907
|
+
/** When the order expired (e.g. pending payment timed out). Null when not expired. */
|
|
1908
|
+
expiredAt?: Maybe<Scalars['DateTime']['output']>;
|
|
1909
|
+
/** Fulfillment progress (UNFULFILLED, PARTIALLY_FULFILLED, FULFILLED, IN_TRANSIT, DELIVERED, PARTIALLY_RETURNED, RETURNED, LOST). */
|
|
1910
|
+
fulfillmentStatus: OrderFulfillmentStatus;
|
|
1911
|
+
/** Stable identifier of the order. */
|
|
1912
|
+
id: Scalars['ID']['output'];
|
|
1913
|
+
/** Number of line items on the order (sum of distinct lines, not quantities). */
|
|
1914
|
+
itemCount: Scalars['Int']['output'];
|
|
1915
|
+
/** Line items on the order (paginated, Relay Connection). Use to render the order summary on the confirmation or order detail page. */
|
|
1916
|
+
lineItems: OrderLineItemConnection;
|
|
1917
|
+
/** Human-readable order number shown to the buyer and the merchant (e.g. "1042"). Distinct from `id`. */
|
|
1918
|
+
orderNumber: Scalars['String']['output'];
|
|
1919
|
+
/** Category of the payment method on the order (CARD, BLIK, BANK_TRANSFER, CASH_ON_DELIVERY, OTHER). Use to drive iconography and copy on the confirmation page (e.g. show the card icon for CARD, the BLIK logo for BLIK). */
|
|
1920
|
+
paymentMethodType: PaymentMethodType;
|
|
1921
|
+
/** Payment progress (UNPAID, PENDING, AUTHORIZED, PAID, PARTIALLY_PAID, PARTIALLY_REFUNDED, REFUNDED, FAILED, CHARGEBACK, VOIDED, REFUND_PENDING). */
|
|
1922
|
+
paymentStatus: OrderPaymentStatus;
|
|
1923
|
+
/** When the order was placed (ISO 8601). Use as the canonical "order date" in receipts. */
|
|
1924
|
+
processedAt: Scalars['DateTime']['output'];
|
|
1925
|
+
/** Order shipments */
|
|
1926
|
+
shipments: Array<Shipment>;
|
|
1927
|
+
/** Shipping address snapshot at the moment the order was placed. Null for digital-only orders. */
|
|
1928
|
+
shippingAddress?: Maybe<MailingAddress>;
|
|
1929
|
+
/** High-level lifecycle status of the order (DRAFT, PENDING, CONFIRMED, PROCESSING, ON_HOLD, COMPLETED, CANCELLED, EXPIRED). */
|
|
1930
|
+
status: StorefrontOrderStatus;
|
|
1931
|
+
/** Cost breakdown on the order (subtotal, total, tax, shipping). */
|
|
1932
|
+
totals: OrderTotals;
|
|
1933
|
+
};
|
|
1934
|
+
export type OrderConnection = {
|
|
1935
|
+
/** Order edges with cursors */
|
|
1936
|
+
edges: Array<OrderEdge>;
|
|
1937
|
+
/** Order nodes (shortcut for edges.map(e => e.node)) */
|
|
1938
|
+
nodes: Array<Order>;
|
|
1939
|
+
/** Pagination info */
|
|
1940
|
+
pageInfo: PageInfo;
|
|
1941
|
+
/** Total orders count */
|
|
1942
|
+
totalCount: Scalars['Int']['output'];
|
|
1943
|
+
};
|
|
1944
|
+
export type OrderEdge = {
|
|
1945
|
+
/** Cursor */
|
|
1946
|
+
cursor: Scalars['String']['output'];
|
|
1947
|
+
/** Order node */
|
|
1948
|
+
node: Order;
|
|
1949
|
+
};
|
|
1950
|
+
export type OrderFulfillmentStatus = 'DELIVERED' | 'FULFILLED' | 'IN_TRANSIT' | 'LOST' | 'PARTIALLY_FULFILLED' | 'PARTIALLY_RETURNED' | 'RETURNED' | 'UNFULFILLED';
|
|
1951
|
+
export type OrderLineItem = {
|
|
1952
|
+
/** Unique identifier */
|
|
1953
|
+
id: Scalars['ID']['output'];
|
|
1954
|
+
/** Całkowita cena linii z momentu zakupu (unitPrice × quantity, minor units) */
|
|
1955
|
+
originalTotalPrice: Money;
|
|
1956
|
+
/** Cena jednostkowa z momentu zakupu (minor units, include BUNDLED surcharges) */
|
|
1957
|
+
originalUnitPrice: Money;
|
|
1958
|
+
/** Ilość zamówiona (snapshot z checkout) */
|
|
1959
|
+
quantity: Scalars['Int']['output'];
|
|
1960
|
+
/** Ilość już zrealizowana (shipped — per-item fulfillment tracking) */
|
|
1961
|
+
quantityFulfilled: Scalars['Int']['output'];
|
|
1962
|
+
/** Ilość pozostała do zwrotu/refund (quantity - returnedQuantity, clamp ≥ 0). Industry-standard semantyka dla refund tracking. */
|
|
1963
|
+
refundableQuantity: Scalars['Int']['output'];
|
|
1964
|
+
/** Nazwa produktu z momentu zakupu (snapshot). NIE live `Product.name` — preserved nawet po edycji produktu (KSeF/invoice compliance). */
|
|
1965
|
+
title: Scalars['String']['output'];
|
|
1966
|
+
/** Live wariant produktu (fresh image/price). Null jeśli wariant został usunięty po zakupie — consumer powinien użyć `title` jako fallback. */
|
|
1967
|
+
variant?: Maybe<ProductVariant>;
|
|
1968
|
+
};
|
|
1969
|
+
export type OrderLineItemConnection = {
|
|
1970
|
+
/** Order line item edges with cursors */
|
|
1971
|
+
edges: Array<OrderLineItemEdge>;
|
|
1972
|
+
/** Order line item nodes (shortcut for edges.map(e => e.node)) */
|
|
1973
|
+
nodes: Array<OrderLineItem>;
|
|
1974
|
+
/** Pagination info */
|
|
1975
|
+
pageInfo: PageInfo;
|
|
1976
|
+
/** Total count of line items in the order (convention parity z OrderConnection/MailingAddressConnection) */
|
|
1977
|
+
totalCount: Scalars['Int']['output'];
|
|
1978
|
+
};
|
|
1979
|
+
export type OrderLineItemEdge = {
|
|
1980
|
+
/** Cursor for pagination */
|
|
1981
|
+
cursor: Scalars['String']['output'];
|
|
1982
|
+
/** Order line item node */
|
|
1983
|
+
node: OrderLineItem;
|
|
1984
|
+
};
|
|
1985
|
+
export type OrderPaymentStatus = 'AUTHORIZED' | 'CHARGEBACK' | 'FAILED' | 'PAID' | 'PARTIALLY_PAID' | 'PARTIALLY_REFUNDED' | 'PENDING' | 'REFUNDED' | 'REFUND_PENDING' | 'UNPAID' | 'VOIDED';
|
|
1986
|
+
export type OrderTotals = {
|
|
1987
|
+
/** Order subtotal — items only, before tax, shipping and discounts. */
|
|
1988
|
+
subtotal: Money;
|
|
1989
|
+
/** Grand total the buyer was charged — includes taxes, shipping and discounts. */
|
|
1990
|
+
total: Money;
|
|
1991
|
+
/** Total shipping cost on the order. Null for digital-only orders that did not go through shipping. */
|
|
1992
|
+
totalShipping?: Maybe<Money>;
|
|
1993
|
+
/** Total tax across the order. Null when the order has no taxable component. */
|
|
1994
|
+
totalTax?: Maybe<Money>;
|
|
1995
|
+
};
|
|
1996
|
+
export type PageInfo = {
|
|
1997
|
+
/** Cursor of the last item on the current page — opaque, base64-encoded. Echo as the `after` argument to fetch the next page. */
|
|
1998
|
+
endCursor?: Maybe<Scalars['String']['output']>;
|
|
1999
|
+
/** True when more pages follow this one. Use to decide whether to enable a "load more" / next page action. */
|
|
2000
|
+
hasNextPage: Scalars['Boolean']['output'];
|
|
2001
|
+
/** True when pages exist before this one (relevant for bidirectional pagination). */
|
|
2002
|
+
hasPreviousPage: Scalars['Boolean']['output'];
|
|
2003
|
+
/** Cursor of the first item on the current page — opaque, base64-encoded. Echo as the `before` argument to paginate backwards. */
|
|
2004
|
+
startCursor?: Maybe<Scalars['String']['output']>;
|
|
2005
|
+
};
|
|
2006
|
+
export type PaymentCreateInput = {
|
|
2007
|
+
/** URL the gateway returns the buyer to after they cancel the payment. Must point to a verified domain of the shop. */
|
|
2008
|
+
cancelUrl?: InputMaybe<Scalars['URL']['input']>;
|
|
2009
|
+
/** ID of the order to pay for — `cartComplete.order.id`. */
|
|
2010
|
+
orderId: Scalars['ID']['input'];
|
|
2011
|
+
/** URL the gateway returns the buyer to after a successful payment. Must point to a verified domain of the shop; rejected with `RETURN_URL_INVALID` otherwise. */
|
|
2012
|
+
returnUrl?: InputMaybe<Scalars['URL']['input']>;
|
|
2013
|
+
};
|
|
2014
|
+
export type PaymentCreatePayload = {
|
|
2015
|
+
/** The created (or reused) payment session on success; null when `userErrors` is non-empty. */
|
|
2016
|
+
payment?: Maybe<PaymentSession>;
|
|
2017
|
+
/** Business / validation errors carrying a stable `PaymentErrorCode` in `code` (e.g. `ORDER_NOT_FOUND`, `ORDER_ALREADY_PAID`, `ORDER_NOT_PAYABLE`, `PAYMENT_PROVIDER_NOT_CONFIGURED`, `RETURN_URL_INVALID`, `PAYMENT_FAILED`). */
|
|
2018
|
+
userErrors: Array<UserError>;
|
|
2019
|
+
};
|
|
2020
|
+
export type PaymentInitiationFlow = 'INSTANT_DIRECT' | 'OFFLINE_MANUAL' | 'ONLINE_EMBEDDED' | 'ONLINE_REDIRECT';
|
|
2021
|
+
export type PaymentMethod = {
|
|
2022
|
+
/** Optional buyer-facing description shown under the name (e.g. "Pay with your bank app"). */
|
|
2023
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
2024
|
+
/** Optional icon URL configured by the merchant. Use as the method tile artwork. */
|
|
2025
|
+
icon?: Maybe<Scalars['String']['output']>;
|
|
2026
|
+
/** Stable ID of the payment method. Pass to `cartSelectPaymentMethod` to select it. */
|
|
2027
|
+
id: Scalars['ID']['output'];
|
|
2028
|
+
/** True when the merchant has marked this method as the default. Pre-select it in the picker. */
|
|
2029
|
+
isDefault: Scalars['Boolean']['output'];
|
|
2030
|
+
/** Display name configured by the merchant (e.g. "BLIK", "Credit card", "Cash on delivery"). */
|
|
2031
|
+
name: Scalars['String']['output'];
|
|
2032
|
+
/** Merchant-configured display position — lower values come first in the picker. */
|
|
2033
|
+
position: Scalars['Float']['output'];
|
|
2034
|
+
/** Provider code (e.g. "payu", "stripe", "p24", "cash_on_delivery"). Identifies the integration behind the method; do not branch UI on it — use `type` instead. */
|
|
2035
|
+
provider: Scalars['String']['output'];
|
|
2036
|
+
/** ISO 4217 currency codes the method accepts. Null when the method accepts the shop currency without restriction. */
|
|
2037
|
+
supportedCurrencies?: Maybe<Array<Scalars['String']['output']>>;
|
|
2038
|
+
/** Category of the method (CARD, BLIK, BANK_TRANSFER, CASH_ON_DELIVERY, OTHER). Drives iconography and copy. */
|
|
2039
|
+
type: PaymentMethodType;
|
|
2040
|
+
};
|
|
2041
|
+
export type PaymentMethodType = 'BANK_TRANSFER' | 'BLIK' | 'CARD' | 'CASH_ON_DELIVERY' | 'OTHER';
|
|
2042
|
+
export type PaymentSession = {
|
|
2043
|
+
/** Client secret / token for the in-page payment widget. Populated only when `flow` is ONLINE_EMBEDDED. Treat as sensitive — do not log. */
|
|
2044
|
+
clientSecret?: Maybe<Scalars['String']['output']>;
|
|
2045
|
+
/** When the `redirectUrl` / `clientSecret` stops being usable (ISO 8601). The storefront should call `paymentCreate` again to get a fresh session after this time. */
|
|
2046
|
+
expiresAt?: Maybe<Scalars['String']['output']>;
|
|
2047
|
+
/** How the storefront should launch the payment — branch on this with `switch(flow)`. */
|
|
2048
|
+
flow: PaymentInitiationFlow;
|
|
2049
|
+
/** Stable identifier of the payment record. */
|
|
2050
|
+
id: Scalars['ID']['output'];
|
|
2051
|
+
/** ID of the order this payment is for. */
|
|
2052
|
+
orderId: Scalars['ID']['output'];
|
|
2053
|
+
/** Provider code of the integration behind the session (e.g. "PAYU", "STRIPE"). Use for analytics; do not branch UI on it — use `flow` and the order `paymentMethodType` instead. */
|
|
2054
|
+
provider: Scalars['String']['output'];
|
|
2055
|
+
/** Hosted-gateway URL to redirect the buyer to. Populated only when `flow` is ONLINE_REDIRECT. */
|
|
2056
|
+
redirectUrl?: Maybe<Scalars['URL']['output']>;
|
|
2057
|
+
/** Payment status of the order at the time the session was created. For INSTANT_DIRECT, this already reflects the settled outcome. */
|
|
2058
|
+
status: OrderPaymentStatus;
|
|
2059
|
+
};
|
|
2060
|
+
export type PaymentSettings = {
|
|
2061
|
+
/** Country code sklepu — driver dostępności metod płatności */
|
|
2062
|
+
countryCode: CountryCode;
|
|
2063
|
+
/** Primary currency użyty do procesowania płatności */
|
|
2064
|
+
currencyCode: CurrencyCode;
|
|
2065
|
+
/** Waluty displayable on storefront (Money.currencyCode allowlist) */
|
|
2066
|
+
enabledPresentmentCurrencies: Array<CurrencyCode>;
|
|
2067
|
+
/** Kody aktywnych payment providerów dla tego sklepu (z IntegrationProvider table, type=PAYMENT). Np. ["payu", "cash_on_delivery"]. Storefront-dev używa do warunkowania UI checkout. */
|
|
2068
|
+
paymentProviders: Array<Scalars['String']['output']>;
|
|
2069
|
+
};
|
|
2070
|
+
export type PickupPoint = {
|
|
2071
|
+
/** Point address as a single human-readable line — show alongside the name on the confirmation page. */
|
|
2072
|
+
address?: Maybe<Scalars['String']['output']>;
|
|
2073
|
+
/** Display name of the point as shown in the carrier widget. */
|
|
2074
|
+
name?: Maybe<Scalars['String']['output']>;
|
|
2075
|
+
/** Identifier of the point within the provider network (e.g. an InPost parcel locker code such as `KRA010`). Pass back to `PickupPointInput.pointId` when attaching the same point to another address. */
|
|
2076
|
+
pointId: Scalars['String']['output'];
|
|
2077
|
+
/** Carrier network code that owns the point (e.g. `inpost`, `orlen`, `dpd`). */
|
|
2078
|
+
provider: Scalars['String']['output'];
|
|
2079
|
+
};
|
|
2080
|
+
export type PickupPointInput = {
|
|
2081
|
+
/** Point address as a single line */
|
|
2082
|
+
address?: InputMaybe<Scalars['String']['input']>;
|
|
2083
|
+
/** Human-readable point name */
|
|
2084
|
+
name?: InputMaybe<Scalars['String']['input']>;
|
|
2085
|
+
/** Point identifier within the provider network */
|
|
2086
|
+
pointId: Scalars['String']['input'];
|
|
2087
|
+
/** Courier network code (e.g. inpost, orlen, dpd) */
|
|
2088
|
+
provider: Scalars['String']['input'];
|
|
2089
|
+
};
|
|
2090
|
+
export type PointsEstimate = {
|
|
2091
|
+
/** Base points to earn */
|
|
2092
|
+
basePoints: Scalars['Int']['output'];
|
|
2093
|
+
/** Bonus points from tier multiplier */
|
|
2094
|
+
bonusPoints: Scalars['Int']['output'];
|
|
2095
|
+
/** Tier multiplier applied */
|
|
2096
|
+
multiplier?: Maybe<Scalars['Float']['output']>;
|
|
2097
|
+
/** Total points to earn */
|
|
2098
|
+
totalPoints: Scalars['Int']['output'];
|
|
2099
|
+
};
|
|
2100
|
+
export type PredictiveSearchResult = {
|
|
2101
|
+
/** Top matching products (FTS-ranked) */
|
|
2102
|
+
products: Array<Product>;
|
|
2103
|
+
/** Top product title suggestions with highlighted query matches */
|
|
2104
|
+
queries: Array<SearchQuerySuggestion>;
|
|
2105
|
+
};
|
|
2106
|
+
export type PriceMoney = {
|
|
2107
|
+
/** Price amount in display currency */
|
|
2108
|
+
amount: Scalars['String']['output'];
|
|
2109
|
+
/** Original price in shop base currency */
|
|
2110
|
+
baseAmount: Scalars['String']['output'];
|
|
2111
|
+
/** Shop base currency code */
|
|
2112
|
+
baseCurrencyCode: Scalars['String']['output'];
|
|
2113
|
+
/** Display currency code (ISO 4217) */
|
|
2114
|
+
currencyCode: Scalars['String']['output'];
|
|
2115
|
+
/** Exchange rate used (null if same currency) */
|
|
2116
|
+
exchangeRate?: Maybe<Scalars['Float']['output']>;
|
|
2117
|
+
/** Whether price was converted from different currency */
|
|
2118
|
+
isConverted: Scalars['Boolean']['output'];
|
|
2119
|
+
/** Margin applied by shop (e.g., 0.02 = 2%) */
|
|
2120
|
+
marginApplied?: Maybe<Scalars['Float']['output']>;
|
|
2121
|
+
/** When the exchange rate was fetched */
|
|
2122
|
+
rateTimestamp?: Maybe<Scalars['DateTime']['output']>;
|
|
2123
|
+
};
|
|
2124
|
+
export type PriceRange = {
|
|
2125
|
+
/** Maximum price in current product set */
|
|
2126
|
+
max: Money;
|
|
2127
|
+
/** Minimum price in current product set */
|
|
2128
|
+
min: Money;
|
|
2129
|
+
};
|
|
2130
|
+
export type PricingTier = {
|
|
2131
|
+
/** Discount percentage from retail */
|
|
2132
|
+
discountPercent: Scalars['Float']['output'];
|
|
2133
|
+
/** Maximum quantity for this tier */
|
|
2134
|
+
maxQuantity?: Maybe<Scalars['Int']['output']>;
|
|
2135
|
+
/** Minimum quantity for this tier */
|
|
2136
|
+
minQuantity: Scalars['Int']['output'];
|
|
2137
|
+
/** Price per unit at this tier */
|
|
2138
|
+
unitPrice: Money;
|
|
2139
|
+
};
|
|
2140
|
+
export type Product = Node & {
|
|
2141
|
+
/** Assigned AttributeSet ID (shared template fields) */
|
|
2142
|
+
attributeSetId?: Maybe<Scalars['ID']['output']>;
|
|
2143
|
+
/** Customer-facing product attributes (configurator) — set definitions + per-product scoped */
|
|
2144
|
+
attributes: Array<ProductAttributeDefinition>;
|
|
2145
|
+
/** Average rating (1-5) */
|
|
2146
|
+
averageRating?: Maybe<Scalars['Float']['output']>;
|
|
2147
|
+
/** Canonical brand entity (Faza 3, 2026-05-17). Resolved via DataLoader (N+1 safe dla list queries). Null gdy product nie ma przypisanego brand_id. */
|
|
2148
|
+
brand?: Maybe<Brand>;
|
|
2149
|
+
/** Wszystkie kategorie do których produkt należy (M2M przez ProductCategory junction). Posortowane po junction.sortOrder ASC. Empty list gdy produkt nie jest w żadnej kategorii. */
|
|
2150
|
+
categories: Array<Category>;
|
|
2151
|
+
/** Compare-at price range (Money pair). Null gdy żaden variant nie ma compareAtPrice. */
|
|
2152
|
+
compareAtPriceRange?: Maybe<ProductPriceRange>;
|
|
2153
|
+
/** Opt-in: compare-at price range with conversion transparency. */
|
|
2154
|
+
compareAtPriceRangeWithConversion?: Maybe<ConvertedPriceRange>;
|
|
2155
|
+
/** Creation timestamp */
|
|
2156
|
+
createdAt: Scalars['DateTime']['output'];
|
|
2157
|
+
/** Plain text description */
|
|
2158
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
2159
|
+
/** HTML description */
|
|
2160
|
+
descriptionHtml?: Maybe<Scalars['String']['output']>;
|
|
2161
|
+
/** Featured/primary image */
|
|
2162
|
+
featuredImage?: Maybe<Image>;
|
|
2163
|
+
/** URL-friendly handle (slug) */
|
|
2164
|
+
handle: Scalars['String']['output'];
|
|
2165
|
+
/** Unique identifier */
|
|
2166
|
+
id: Scalars['ID']['output'];
|
|
2167
|
+
/** Product images (Relay Connection) */
|
|
2168
|
+
images: ImageConnection;
|
|
2169
|
+
/** Whether product is available for sale (any variant in stock) */
|
|
2170
|
+
isAvailable: Scalars['Boolean']['output'];
|
|
2171
|
+
/** Whether the storefront should offer a direct purchase path (Add to cart / Buy now). Mirrors `visibility === PUBLIC`. BUNDLE_ONLY ("Komponent") products resolve to false — the PDP renders a Komponent banner explaining access is only via configurator. */
|
|
2172
|
+
isPurchasable: Scalars['Boolean']['output'];
|
|
2173
|
+
/** Per-product option definitions (Color, Size, …) with their available values. Use these to build a variant picker without aggregating `selectedOptions` manually. */
|
|
2174
|
+
options: Array<ProductOption>;
|
|
2175
|
+
/** Price range (Money pair). Default field — industry-standard schema. */
|
|
2176
|
+
priceRange: ProductPriceRange;
|
|
2177
|
+
/** Opt-in: price range with full conversion transparency (exchangeRate, baseCurrency, isConverted). Use dla currency-converter UI gdy customer ma preferred currency inną niż shop base. */
|
|
2178
|
+
priceRangeWithConversion?: Maybe<ConvertedPriceRange>;
|
|
2179
|
+
/** Domyślna kategoria dla breadcrumb/nav (= categories[0] po sortOrder). Null gdy produkt nie jest w żadnej kategorii. */
|
|
2180
|
+
primaryCategory?: Maybe<Category>;
|
|
2181
|
+
/** Similar products recommendations */
|
|
2182
|
+
recommendations?: Maybe<ProductRecommendations>;
|
|
2183
|
+
/** Number of reviews */
|
|
2184
|
+
reviewCount?: Maybe<Scalars['Int']['output']>;
|
|
2185
|
+
/** SEO metadata */
|
|
2186
|
+
seo?: Maybe<Seo>;
|
|
2187
|
+
/** Total stock across all variants */
|
|
2188
|
+
stockTotal?: Maybe<Scalars['Int']['output']>;
|
|
2189
|
+
/** Product tags */
|
|
2190
|
+
tags: Array<Scalars['String']['output']>;
|
|
2191
|
+
/** Product title */
|
|
2192
|
+
title: Scalars['String']['output'];
|
|
2193
|
+
/** Product type enum (PHYSICAL, DIGITAL, SERVICE, SUBSCRIPTION, GIFT_CARD) */
|
|
2194
|
+
type: ProductTypeEnum;
|
|
2195
|
+
/** Last update timestamp */
|
|
2196
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
2197
|
+
/** Product variants (Relay Connection) */
|
|
2198
|
+
variants: ProductVariantConnection;
|
|
2199
|
+
/** Legacy vendor/brand name (free-text). Preferred: `brand` field (canonical Brand entity, Faza 3). */
|
|
2200
|
+
vendor?: Maybe<Scalars['String']['output']>;
|
|
2201
|
+
/** Catalog visibility (Faza 1.5) — PUBLIC | HIDDEN | BUNDLE_ONLY */
|
|
2202
|
+
visibility: ProductVisibility;
|
|
2203
|
+
};
|
|
2204
|
+
export type ProductAttributeDefinition = {
|
|
2205
|
+
/** Billing mode — BUNDLED | SEPARATE_LINE; null = informational only */
|
|
2206
|
+
billingMode?: Maybe<AttributeBillingMode>;
|
|
2207
|
+
/** Customer-facing description */
|
|
2208
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
2209
|
+
/** Display order */
|
|
2210
|
+
displayOrder: Scalars['Int']['output'];
|
|
2211
|
+
/** Filling mode — MERCHANT | CUSTOMER | BOTH */
|
|
2212
|
+
fillingMode: AttributeFillingMode;
|
|
2213
|
+
/** URL-friendly handle */
|
|
2214
|
+
handle: Scalars['String']['output'];
|
|
2215
|
+
/** Definition ID */
|
|
2216
|
+
id: Scalars['ID']['output'];
|
|
2217
|
+
/** Required validation flag */
|
|
2218
|
+
isRequired: Scalars['Boolean']['output'];
|
|
2219
|
+
/** Visibility flag */
|
|
2220
|
+
isVisible: Scalars['Boolean']['output'];
|
|
2221
|
+
/** Max value (NUMBER) / max length (TEXT) */
|
|
2222
|
+
maxValue?: Maybe<Scalars['Float']['output']>;
|
|
2223
|
+
/** Min value (NUMBER) / min length (TEXT) */
|
|
2224
|
+
minValue?: Maybe<Scalars['Float']['output']>;
|
|
2225
|
+
/** Field name (e.g. "Finiszer") */
|
|
2226
|
+
name: Scalars['String']['output'];
|
|
2227
|
+
/** Options for SELECT/RADIO/CHECKBOX types */
|
|
2228
|
+
options: Array<ProductAttributeOption>;
|
|
2229
|
+
/** Per-product scope — set to product ID for unique configurator fields, null for shared (in AttributeSet) */
|
|
2230
|
+
scopeProductId?: Maybe<Scalars['ID']['output']>;
|
|
2231
|
+
/** Tax class ID; null = inherit from variant */
|
|
2232
|
+
taxClassId?: Maybe<Scalars['ID']['output']>;
|
|
2233
|
+
/** Field type — TEXT/SELECT/RADIO/CHECKBOX/etc. */
|
|
2234
|
+
type: AttributeType;
|
|
2235
|
+
};
|
|
2236
|
+
export type ProductAttributeOption = {
|
|
2237
|
+
/** Hex color (for COLOR/SWATCH types) */
|
|
2238
|
+
colorHex?: Maybe<Scalars['String']['output']>;
|
|
2239
|
+
/** Option ID */
|
|
2240
|
+
id: Scalars['ID']['output'];
|
|
2241
|
+
/** Default option marker */
|
|
2242
|
+
isDefault: Scalars['Boolean']['output'];
|
|
2243
|
+
/** Display label shown to customer */
|
|
2244
|
+
label: Scalars['String']['output'];
|
|
2245
|
+
/** Summary powiązanego ProductVariant (Faza 1.5). Null gdy option nie ma linkedVariantId albo wariant został usunięty. */
|
|
2246
|
+
linkedVariant?: Maybe<LinkedVariantSummary>;
|
|
2247
|
+
/** Linked ProductVariant ID for component stock decrement (Faza 1.5 — Hidden Products pattern) */
|
|
2248
|
+
linkedVariantId?: Maybe<Scalars['ID']['output']>;
|
|
2249
|
+
/** Sort order */
|
|
2250
|
+
sortOrder: Scalars['Int']['output'];
|
|
2251
|
+
/** Surcharge amount when selected (FIXED = grosze; PERCENT = thousandths of percent — Faza 2) */
|
|
2252
|
+
surchargeAmount?: Maybe<Scalars['Int']['output']>;
|
|
2253
|
+
/** Surcharge type — FIXED | PERCENT (Faza 2) */
|
|
2254
|
+
surchargeType?: Maybe<AttributeOptionSurchargeType>;
|
|
2255
|
+
/** Internal value (slug-style) */
|
|
2256
|
+
value: Scalars['String']['output'];
|
|
2257
|
+
};
|
|
2258
|
+
export type ProductConnection = {
|
|
2259
|
+
/** Product edges with cursors */
|
|
2260
|
+
edges: Array<ProductEdge>;
|
|
2261
|
+
/** Faceted filters driven by current result set. Use FilterValue.input to construct refinement queries. */
|
|
2262
|
+
filters: Array<Filter>;
|
|
2263
|
+
/** Product nodes (shortcut for edges.map(e => e.node)) */
|
|
2264
|
+
nodes: Array<Product>;
|
|
2265
|
+
/** Pagination info */
|
|
2266
|
+
pageInfo: PageInfo;
|
|
2267
|
+
/** Total count of products */
|
|
2268
|
+
totalCount: Scalars['Int']['output'];
|
|
2269
|
+
};
|
|
2270
|
+
export type ProductEdge = {
|
|
2271
|
+
/** Cursor for pagination */
|
|
2272
|
+
cursor: Scalars['String']['output'];
|
|
2273
|
+
/** Product node */
|
|
2274
|
+
node: Product;
|
|
2275
|
+
};
|
|
2276
|
+
export type ProductOption = {
|
|
2277
|
+
id: Scalars['ID']['output'];
|
|
2278
|
+
/** Storefront rendering hint */
|
|
2279
|
+
inputType: ProductOptionInputType;
|
|
2280
|
+
/** Option name (e.g. "Color", "Size") */
|
|
2281
|
+
name: Scalars['String']['output'];
|
|
2282
|
+
/** Sort order among the product's options */
|
|
2283
|
+
sortOrder: Scalars['Int']['output'];
|
|
2284
|
+
/** Available values, ordered by sortOrder */
|
|
2285
|
+
values: Array<ProductOptionValue>;
|
|
2286
|
+
};
|
|
2287
|
+
export type ProductOptionInputType = 'COLOR_SWATCH' | 'SELECT' | 'TEXT';
|
|
2288
|
+
export type ProductOptionValue = {
|
|
2289
|
+
/** Hex colour for COLOR_SWATCH rendering (e.g. "#FF0000"). Null for other types. */
|
|
2290
|
+
colorHex?: Maybe<Scalars['String']['output']>;
|
|
2291
|
+
id: Scalars['ID']['output'];
|
|
2292
|
+
/** Display name (e.g. "Red", "XL") */
|
|
2293
|
+
name: Scalars['String']['output'];
|
|
2294
|
+
/** Sort order (0-based) */
|
|
2295
|
+
sortOrder: Scalars['Int']['output'];
|
|
2296
|
+
};
|
|
2297
|
+
export type ProductPriceRange = {
|
|
2298
|
+
/** Maximum variant price (shop currency) */
|
|
2299
|
+
maxVariantPrice: Money;
|
|
2300
|
+
/** Minimum variant price (shop currency) */
|
|
2301
|
+
minVariantPrice: Money;
|
|
2302
|
+
};
|
|
2303
|
+
export type ProductRecommendation = {
|
|
2304
|
+
/** The recommended product */
|
|
2305
|
+
product: Product;
|
|
2306
|
+
/** Reason for recommendation */
|
|
2307
|
+
reason?: Maybe<Scalars['String']['output']>;
|
|
2308
|
+
/** Relevance score (0-100, higher is more relevant) */
|
|
2309
|
+
score?: Maybe<Scalars['Int']['output']>;
|
|
2310
|
+
/** Type of recommendation */
|
|
2311
|
+
type: RecommendationType;
|
|
2312
|
+
};
|
|
2313
|
+
export type ProductRecommendations = {
|
|
2314
|
+
/** List of product recommendations */
|
|
2315
|
+
items: Array<ProductRecommendation>;
|
|
2316
|
+
/** Total available recommendations */
|
|
2317
|
+
totalCount: Scalars['Int']['output'];
|
|
2318
|
+
};
|
|
2319
|
+
export type ProductReview = {
|
|
2320
|
+
/** Author display name */
|
|
2321
|
+
authorName: Scalars['String']['output'];
|
|
2322
|
+
/** Cons list */
|
|
2323
|
+
cons: Array<Scalars['String']['output']>;
|
|
2324
|
+
/** Review content */
|
|
2325
|
+
content: Scalars['String']['output'];
|
|
2326
|
+
/** Review date */
|
|
2327
|
+
createdAt: Scalars['DateTime']['output'];
|
|
2328
|
+
/** Helpful votes count (upvotes) */
|
|
2329
|
+
helpfulCount: Scalars['Int']['output'];
|
|
2330
|
+
id: Scalars['ID']['output'];
|
|
2331
|
+
/** Review images */
|
|
2332
|
+
images: Array<Scalars['String']['output']>;
|
|
2333
|
+
/** Is verified purchase */
|
|
2334
|
+
isVerifiedPurchase: Scalars['Boolean']['output'];
|
|
2335
|
+
productId: Scalars['ID']['output'];
|
|
2336
|
+
/** Pros list */
|
|
2337
|
+
pros: Array<Scalars['String']['output']>;
|
|
2338
|
+
/** Rating 1-5 */
|
|
2339
|
+
rating: Scalars['Int']['output'];
|
|
2340
|
+
/** Store response */
|
|
2341
|
+
response?: Maybe<Scalars['String']['output']>;
|
|
2342
|
+
/** Response date */
|
|
2343
|
+
responseAt?: Maybe<Scalars['DateTime']['output']>;
|
|
2344
|
+
/** Review title */
|
|
2345
|
+
title?: Maybe<Scalars['String']['output']>;
|
|
2346
|
+
/** Unhelpful votes count (downvotes) */
|
|
2347
|
+
unhelpfulCount: Scalars['Int']['output'];
|
|
2348
|
+
};
|
|
2349
|
+
export type ProductReviewConnection = {
|
|
2350
|
+
edges: Array<ProductReviewEdge>;
|
|
2351
|
+
pageInfo: PageInfo;
|
|
2352
|
+
totalCount: Scalars['Int']['output'];
|
|
2353
|
+
};
|
|
2354
|
+
export type ProductReviewEdge = {
|
|
2355
|
+
cursor: Scalars['String']['output'];
|
|
2356
|
+
node: ProductReview;
|
|
2357
|
+
};
|
|
2358
|
+
export type ProductTypeEnum = 'DIGITAL' | 'GIFT_CARD' | 'PHYSICAL' | 'SERVICE' | 'SUBSCRIPTION';
|
|
2359
|
+
export type ProductVariant = {
|
|
2360
|
+
/** Variant custom field values (post-Opcja A unified custom fields). */
|
|
2361
|
+
attributes: Array<EntityAttributeField>;
|
|
2362
|
+
/** Available stock — what the buyer can buy now (on-hand minus active reservations, never below 0). Null when the merchant has disabled stock tracking for this variant (e.g. digital, made-to-order). */
|
|
2363
|
+
availableStock?: Maybe<Scalars['Int']['output']>;
|
|
2364
|
+
/** Barcode (EAN/UPC/etc.) as set by the merchant. Null when not configured. */
|
|
2365
|
+
barcode?: Maybe<Scalars['String']['output']>;
|
|
2366
|
+
/** Strike-through compare-at price when the variant is on sale. Null when the variant is not discounted; show the strike-through only when this is present and greater than `price`. */
|
|
2367
|
+
compareAtPrice?: Maybe<Money>;
|
|
2368
|
+
/** Optional opt-in: `compareAtPrice` with full conversion transparency. */
|
|
2369
|
+
compareAtPriceWithConversion?: Maybe<PriceMoney>;
|
|
2370
|
+
/** Stable identifier of the variant. Pass to `cartAddLines.variantId` to add the variant to a cart. */
|
|
2371
|
+
id: Scalars['ID']['output'];
|
|
2372
|
+
/** Image specific to this variant. Null when the variant inherits the parent product image. */
|
|
2373
|
+
image?: Maybe<Image>;
|
|
2374
|
+
/** True when the variant can be purchased right now (in stock, or backorder allowed by the merchant). */
|
|
2375
|
+
isAvailable: Scalars['Boolean']['output'];
|
|
2376
|
+
/** Current price of the variant in the buyer preferred currency (auto-converted from the shop base currency when multi-currency is enabled). */
|
|
2377
|
+
price: Money;
|
|
2378
|
+
/** Optional opt-in: `price` with full conversion transparency (original shop-currency amount, exchange rate, conversion timestamp). Use when building a currency-converter UI. */
|
|
2379
|
+
priceWithConversion?: Maybe<PriceMoney>;
|
|
2380
|
+
/** Option values that define this variant (e.g. Size = Large, Color = Red). */
|
|
2381
|
+
selectedOptions: Array<SelectedOption>;
|
|
2382
|
+
/** Stock-keeping unit code as set by the merchant. Null when not configured. */
|
|
2383
|
+
sku?: Maybe<Scalars['String']['output']>;
|
|
2384
|
+
/** Display position of this variant within the parent product list. Lower values come first. */
|
|
2385
|
+
sortOrder?: Maybe<Scalars['Int']['output']>;
|
|
2386
|
+
/** Per-location stock availability. Null for single-location shops. Resolved by StoreAvailabilityResolver with `near`, `locationType`, and `@inContext(preferredLocationId)` support. */
|
|
2387
|
+
storeAvailability?: Maybe<StoreAvailabilityConnection>;
|
|
2388
|
+
/** Display title of the variant (e.g. "Large / Red"). Composed from the variant options. */
|
|
2389
|
+
title: Scalars['String']['output'];
|
|
2390
|
+
/** Variant weight with its unit. Stored in grams; pick a display unit on the storefront if needed. Null when the merchant has not set a weight. */
|
|
2391
|
+
weight?: Maybe<Weight>;
|
|
2392
|
+
};
|
|
2393
|
+
export type ProductVariantConnection = {
|
|
2394
|
+
/** Variant edges with cursors */
|
|
2395
|
+
edges: Array<ProductVariantEdge>;
|
|
2396
|
+
/** Variant nodes (shortcut for edges.map(e => e.node)) */
|
|
2397
|
+
nodes: Array<ProductVariant>;
|
|
2398
|
+
/** Pagination info */
|
|
2399
|
+
pageInfo: PageInfo;
|
|
2400
|
+
/** Total count of variants */
|
|
2401
|
+
totalCount: Scalars['Int']['output'];
|
|
2402
|
+
};
|
|
2403
|
+
export type ProductVariantEdge = {
|
|
2404
|
+
/** Cursor for pagination */
|
|
2405
|
+
cursor: Scalars['String']['output'];
|
|
2406
|
+
/** Variant node */
|
|
2407
|
+
node: ProductVariant;
|
|
2408
|
+
};
|
|
2409
|
+
export type ProductVisibility = 'BUNDLE_ONLY' | 'HIDDEN' | 'PUBLIC';
|
|
2410
|
+
export type Query = {
|
|
2411
|
+
/** List of all currencies supported by the system (ECB rates) */
|
|
2412
|
+
allSupportedCurrencies: Array<Currency>;
|
|
2413
|
+
/** Paginated + searchable attribute options dla drill-into filter UI (np. dropdown z 800 licencjami + search input). Honors product context z exclude-self per attribute. Sort: COUNT_DESC default (most popular first), LABEL_ASC dla alfabetycznego z polskim collation. */
|
|
2414
|
+
attributeOptionsSearch: AttributeFilterValueConnection;
|
|
2415
|
+
/** Payment methods active for the current shop, plus the merchant default. Shop-level — independent of cart contents in this iteration. Fetch once for the checkout payment step. */
|
|
2416
|
+
availablePaymentMethods: AvailablePaymentMethods;
|
|
2417
|
+
/** Standalone shipping-method preview for an address — does not require a cart. Pass an optional `cart` summary (subtotal, weight, currency) to evaluate price-based / weight-based rules and free-shipping thresholds. For an already-created cart, prefer `cart.availableShippingMethods(address)` — it reads the cart contents directly. */
|
|
2418
|
+
availableShippingMethods: AvailableShippingMethodsPayload;
|
|
2419
|
+
/** Get live shipping rates from configured carriers */
|
|
2420
|
+
availableShippingRates: AvailableShippingRatesPayload;
|
|
2421
|
+
/** Get B2B pricing for a product variant */
|
|
2422
|
+
b2bPricing?: Maybe<B2BPriceDisplay>;
|
|
2423
|
+
/** List blog categories */
|
|
2424
|
+
blogCategories: Array<BlogCategory>;
|
|
2425
|
+
/** Get single blog post */
|
|
2426
|
+
blogPost?: Maybe<BlogPost>;
|
|
2427
|
+
/** List blog posts */
|
|
2428
|
+
blogPosts: BlogPostConnection;
|
|
2429
|
+
/** List blog tags */
|
|
2430
|
+
blogTags: Array<BlogTag>;
|
|
2431
|
+
/** Fetch a cart by ID — returns null when the cart does not exist or has already been completed (converted to an order). Use to hydrate the cart state on page load or after a recovery flow. */
|
|
2432
|
+
cart?: Maybe<Cart>;
|
|
2433
|
+
/** Preview whether a discount code is currently applicable to a cart — read-only, no cart side effects. Use for inline feedback while the buyer types a code, before calling `cartDiscountCodesUpdate`. Result depends on the cart subtotal (minimum-order rules) so do not cache aggressively: prefer `fetchPolicy: "network-only"` or include `cart.subtotal` in the cache key. */
|
|
2434
|
+
cartValidateDiscountCode: DiscountValidationResult;
|
|
2435
|
+
/** Lista kategorii (Relay Connection) z opcjonalnym filtrem rootsOnly/parentId */
|
|
2436
|
+
categories: CategoryConnection;
|
|
2437
|
+
/** Get category by ID or slug */
|
|
2438
|
+
category?: Maybe<Category>;
|
|
2439
|
+
/** Get single collection */
|
|
2440
|
+
collection?: Maybe<Collection>;
|
|
2441
|
+
/** List collections with pagination */
|
|
2442
|
+
collections: CollectionConnection;
|
|
2443
|
+
/** Convert amount between currencies (applies shop margin) */
|
|
2444
|
+
convertCurrency: CurrencyConversion;
|
|
2445
|
+
/** List of currencies available for this shop */
|
|
2446
|
+
currencies: Array<Currency>;
|
|
2447
|
+
/** Get currency information by ISO 4217 code */
|
|
2448
|
+
currencyInfo?: Maybe<Currency>;
|
|
2449
|
+
/** The authenticated customer for the current request. The request must carry a valid customer access token (in the `Authorization: Bearer ...` header or an HTTP-only auth cookie). Returns null for anonymous requests. */
|
|
2450
|
+
customer?: Maybe<Customer>;
|
|
2451
|
+
/** Get available customer groups */
|
|
2452
|
+
customerGroups?: Maybe<Array<CustomerGroup>>;
|
|
2453
|
+
/** Fetch a single order owned by the authenticated customer. Returns null silently when there is no authenticated customer or the order does not belong to them. For guest order access use `orderByToken` instead. */
|
|
2454
|
+
customerOrder?: Maybe<Order>;
|
|
2455
|
+
/** Estimate points for an order amount */
|
|
2456
|
+
estimatePoints: PointsEstimate;
|
|
2457
|
+
/** Get exchange rate between two currencies */
|
|
2458
|
+
exchangeRate?: Maybe<ExchangeRate>;
|
|
2459
|
+
/** Get gift card by code (null if not found) */
|
|
2460
|
+
giftCard?: Maybe<GiftCard>;
|
|
2461
|
+
/** Validate gift card for use */
|
|
2462
|
+
giftCardValidate: GiftCardValidatePayload;
|
|
2463
|
+
/** Get available languages for this shop */
|
|
2464
|
+
languages: Array<Language>;
|
|
2465
|
+
/** Localization context (kraje, języki, aktualny kraj/język klienta) */
|
|
2466
|
+
localization: Localization;
|
|
2467
|
+
/** Fetch a single active location by ID. Returns null when missing, inactive, or owned by another shop (tenant isolation via StorefrontShopGuard). */
|
|
2468
|
+
location?: Maybe<Location>;
|
|
2469
|
+
/** Paginated locations for the current shop. Supports proximity (`near`), pickup-only filter (`hasPickupEnabled`), and `locationType` filter. */
|
|
2470
|
+
locations: LocationConnection;
|
|
2471
|
+
/** Get loyalty member status */
|
|
2472
|
+
loyaltyMember?: Maybe<LoyaltyMember>;
|
|
2473
|
+
/** List available loyalty rewards */
|
|
2474
|
+
loyaltyRewards: Array<LoyaltyReward>;
|
|
2475
|
+
/** Get public loyalty program settings */
|
|
2476
|
+
loyaltySettings: LoyaltySettings;
|
|
2477
|
+
/** List all loyalty tiers */
|
|
2478
|
+
loyaltyTiers: Array<LoyaltyTier>;
|
|
2479
|
+
/** Get loyalty transaction history */
|
|
2480
|
+
loyaltyTransactions: LoyaltyTransactionConnection;
|
|
2481
|
+
/** Get a navigation menu by handle */
|
|
2482
|
+
menu?: Maybe<Menu>;
|
|
2483
|
+
/** Universal ID-based lookup (Relay Node spec) */
|
|
2484
|
+
node?: Maybe<Node>;
|
|
2485
|
+
/** Batch ID-based lookup; same NodeType dla all IDs. Missing/wrong IDs → null entries (preserved length). */
|
|
2486
|
+
nodes: Array<Maybe<Node>>;
|
|
2487
|
+
/** Fetch a single order by its opaque access token (guest order access without a session). Optional `email` argument enables defense-in-depth: if provided, must match the order buyer email (case-insensitive); on mismatch the query returns null exactly like an invalid token. Rate-limited to 5 requests per minute per IP+shop. Response carries Cache-Control: no-store. */
|
|
2488
|
+
orderByToken?: Maybe<Order>;
|
|
2489
|
+
/** Get a page by handle or ID */
|
|
2490
|
+
page?: Maybe<ShopPage>;
|
|
2491
|
+
/** List pages with pagination */
|
|
2492
|
+
pages: ShopPageConnection;
|
|
2493
|
+
/** Get personalized product recommendations for the current customer */
|
|
2494
|
+
personalizedRecommendations: ProductRecommendations;
|
|
2495
|
+
/** Get single product by ID or handle */
|
|
2496
|
+
product?: Maybe<Product>;
|
|
2497
|
+
/** Get available filters for product listing (renamed from availableFilters in Storefront 5.0) */
|
|
2498
|
+
productFilters: AvailableFilters;
|
|
2499
|
+
/** Get recommended products similar to the given product */
|
|
2500
|
+
productRecommendations: Array<Product>;
|
|
2501
|
+
/** Get product reviews */
|
|
2502
|
+
productReviews: ProductReviewConnection;
|
|
2503
|
+
/** List products with pagination and filtering */
|
|
2504
|
+
products: ProductConnection;
|
|
2505
|
+
/** Get referral program statistics */
|
|
2506
|
+
referralStats?: Maybe<ReferralStats>;
|
|
2507
|
+
/** Get return by ID */
|
|
2508
|
+
return: ReturnPayload;
|
|
2509
|
+
/** Get available return reasons */
|
|
2510
|
+
returnReasons: Array<ReturnReasonOption>;
|
|
2511
|
+
/** Get returns for an order */
|
|
2512
|
+
returnsByOrder: ReturnConnection;
|
|
2513
|
+
/** Get product review statistics */
|
|
2514
|
+
reviewStats: ReviewStats;
|
|
2515
|
+
/** Search products (DoSwiftly alias for products() with required query) */
|
|
2516
|
+
searchProducts: ProductConnection;
|
|
2517
|
+
/** Search suggestions (typeahead) — top-N products + styled query suggestions (Products only). Powered by PostgreSQL FTS with prefix matching for Polish morphology coverage. */
|
|
2518
|
+
searchSuggestions: PredictiveSearchResult;
|
|
2519
|
+
/** Get shipment by ID */
|
|
2520
|
+
shipment: ShipmentPayload;
|
|
2521
|
+
/** Get shipment by tracking number */
|
|
2522
|
+
shipmentByTrackingNumber: ShipmentPayload;
|
|
2523
|
+
/** Get current shop information */
|
|
2524
|
+
shop: Shop;
|
|
2525
|
+
/** Get currency configuration for the current shop */
|
|
2526
|
+
shopCurrencyConfig: ShopCurrencyConfig;
|
|
2527
|
+
/** Get translations for a language */
|
|
2528
|
+
translations: Translations;
|
|
2529
|
+
/** List URL redirects */
|
|
2530
|
+
urlRedirects: UrlRedirectConnection;
|
|
2531
|
+
/** Get wishlist by ID */
|
|
2532
|
+
wishlist?: Maybe<Wishlist>;
|
|
2533
|
+
/** Get customer wishlists (requires customer auth) */
|
|
2534
|
+
wishlists: WishlistConnection;
|
|
2535
|
+
};
|
|
2536
|
+
export type RecommendationType = 'CROSS_SELL' | 'FREQUENTLY_BOUGHT_TOGETHER' | 'PERSONALIZED' | 'RECENTLY_VIEWED' | 'SIMILAR' | 'TRENDING' | 'UPSELL';
|
|
2537
|
+
export type RedeemRewardPayload = {
|
|
2538
|
+
/** Generated discount code for DISCOUNT type rewards */
|
|
2539
|
+
discountCode?: Maybe<Scalars['String']['output']>;
|
|
2540
|
+
/** Generated gift card code for GIFT_CARD type rewards */
|
|
2541
|
+
giftCardCode?: Maybe<Scalars['String']['output']>;
|
|
2542
|
+
/** Generated discount code for PRODUCT type rewards (100% off specific product) */
|
|
2543
|
+
productDiscountCode?: Maybe<Scalars['String']['output']>;
|
|
2544
|
+
/** Whether redemption was successful */
|
|
2545
|
+
success: Scalars['Boolean']['output'];
|
|
2546
|
+
/** Typed user errors */
|
|
2547
|
+
userErrors: Array<UserError>;
|
|
2548
|
+
};
|
|
2549
|
+
export type ReferralStats = {
|
|
2550
|
+
/** Completed referrals (first order placed) */
|
|
2551
|
+
completedReferrals: Scalars['Int']['output'];
|
|
2552
|
+
/** Pending referrals (signed up, no order yet) */
|
|
2553
|
+
pendingReferrals: Scalars['Int']['output'];
|
|
2554
|
+
/** Customer referral code */
|
|
2555
|
+
referralCode: Scalars['String']['output'];
|
|
2556
|
+
/** Shareable referral URL */
|
|
2557
|
+
shareUrl: Scalars['String']['output'];
|
|
2558
|
+
/** Total points earned from referrals */
|
|
2559
|
+
totalPointsEarned: Scalars['Int']['output'];
|
|
2560
|
+
/** Total customers referred */
|
|
2561
|
+
totalReferred: Scalars['Int']['output'];
|
|
2562
|
+
};
|
|
2563
|
+
export type Return = {
|
|
2564
|
+
/** When return was approved */
|
|
2565
|
+
approvedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
2566
|
+
/** Requested compensation type */
|
|
2567
|
+
compensationType?: Maybe<CompensationType>;
|
|
2568
|
+
/** When return was completed */
|
|
2569
|
+
completedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
2570
|
+
/** Creation date */
|
|
2571
|
+
createdAt: Scalars['DateTime']['output'];
|
|
2572
|
+
/** Customer notes/explanation */
|
|
2573
|
+
customerNote?: Maybe<Scalars['String']['output']>;
|
|
2574
|
+
/** Return ID */
|
|
2575
|
+
id: Scalars['ID']['output'];
|
|
2576
|
+
/** Items being returned */
|
|
2577
|
+
items: Array<ReturnItem>;
|
|
2578
|
+
/** Order ID */
|
|
2579
|
+
orderId: Scalars['ID']['output'];
|
|
2580
|
+
/** Order number */
|
|
2581
|
+
orderNumber: Scalars['String']['output'];
|
|
2582
|
+
/** Primary return reason */
|
|
2583
|
+
reason: ReturnReason;
|
|
2584
|
+
/** When return was received */
|
|
2585
|
+
receivedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
2586
|
+
/** Total refund amount */
|
|
2587
|
+
refundAmount?: Maybe<Money>;
|
|
2588
|
+
/** When refund was processed */
|
|
2589
|
+
refundedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
2590
|
+
/** When return was requested */
|
|
2591
|
+
requestedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
2592
|
+
/** RMA number (e.g., RMA-2024-0001) */
|
|
2593
|
+
returnNumber: Scalars['String']['output'];
|
|
2594
|
+
/** Return shipping label (if generated) */
|
|
2595
|
+
shippingLabel?: Maybe<ReturnShippingLabel>;
|
|
2596
|
+
/** Current return status */
|
|
2597
|
+
status: ReturnStatus;
|
|
2598
|
+
/** Last update date */
|
|
2599
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
2600
|
+
};
|
|
2601
|
+
export type ReturnCancelPayload = {
|
|
2602
|
+
/** Cancelled return */
|
|
2603
|
+
return?: Maybe<Return>;
|
|
2604
|
+
/** User errors */
|
|
2605
|
+
userErrors: Array<UserError>;
|
|
2606
|
+
};
|
|
2607
|
+
export type ReturnConnection = {
|
|
2608
|
+
/** Return edges */
|
|
2609
|
+
edges: Array<ReturnEdge>;
|
|
2610
|
+
/** Pagination info */
|
|
2611
|
+
pageInfo: PageInfo;
|
|
2612
|
+
/** Total returns count */
|
|
2613
|
+
totalCount: Scalars['Int']['output'];
|
|
2614
|
+
};
|
|
2615
|
+
export type ReturnCreatePayload = {
|
|
2616
|
+
/** Created return */
|
|
2617
|
+
return?: Maybe<Return>;
|
|
2618
|
+
/** User errors */
|
|
2619
|
+
userErrors: Array<UserError>;
|
|
2620
|
+
};
|
|
2621
|
+
export type ReturnEdge = {
|
|
2622
|
+
/** Cursor */
|
|
2623
|
+
cursor: Scalars['String']['output'];
|
|
2624
|
+
/** Return node */
|
|
2625
|
+
node: Return;
|
|
2626
|
+
};
|
|
2627
|
+
export type ReturnItem = {
|
|
2628
|
+
/** Approved quantity (may differ from requested) */
|
|
2629
|
+
approvedQuantity?: Maybe<Scalars['Int']['output']>;
|
|
2630
|
+
/** Item condition */
|
|
2631
|
+
condition?: Maybe<Scalars['String']['output']>;
|
|
2632
|
+
/** Item ID */
|
|
2633
|
+
id: Scalars['ID']['output'];
|
|
2634
|
+
/** Product image URL */
|
|
2635
|
+
imageUrl?: Maybe<Scalars['String']['output']>;
|
|
2636
|
+
/** Evidence photos */
|
|
2637
|
+
photos?: Maybe<Array<ReturnItemPhoto>>;
|
|
2638
|
+
/** Product title */
|
|
2639
|
+
productTitle: Scalars['String']['output'];
|
|
2640
|
+
/** Quantity being returned */
|
|
2641
|
+
quantity: Scalars['Int']['output'];
|
|
2642
|
+
/** Reason for returning this item */
|
|
2643
|
+
reason: ReturnReason;
|
|
2644
|
+
/** Product SKU */
|
|
2645
|
+
sku?: Maybe<Scalars['String']['output']>;
|
|
2646
|
+
/** Item-level status */
|
|
2647
|
+
status?: Maybe<Scalars['String']['output']>;
|
|
2648
|
+
/** Unit price of the item */
|
|
2649
|
+
unitPrice?: Maybe<Money>;
|
|
2650
|
+
/** Product variant ID */
|
|
2651
|
+
variantId: Scalars['ID']['output'];
|
|
2652
|
+
/** Variant title */
|
|
2653
|
+
variantTitle?: Maybe<Scalars['String']['output']>;
|
|
2654
|
+
};
|
|
2655
|
+
export type ReturnItemPhoto = {
|
|
2656
|
+
/** Alt text for accessibility */
|
|
2657
|
+
alt?: Maybe<Scalars['String']['output']>;
|
|
2658
|
+
/** Upload date */
|
|
2659
|
+
createdAt: Scalars['DateTime']['output'];
|
|
2660
|
+
/** Photo description */
|
|
2661
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
2662
|
+
/** Photo ID */
|
|
2663
|
+
id: Scalars['ID']['output'];
|
|
2664
|
+
/** Photo URL */
|
|
2665
|
+
url: Scalars['String']['output'];
|
|
2666
|
+
};
|
|
2667
|
+
export type ReturnPayload = {
|
|
2668
|
+
/** Return data */
|
|
2669
|
+
return?: Maybe<Return>;
|
|
2670
|
+
/** User errors */
|
|
2671
|
+
userErrors: Array<UserError>;
|
|
2672
|
+
};
|
|
2673
|
+
export type ReturnReason = 'BETTER_PRICE' | 'CHANGED_MIND' | 'DAMAGED_SHIPPING' | 'DEFECTIVE' | 'NOT_AS_DESCRIBED' | 'OTHER' | 'WRONG_ITEM';
|
|
2674
|
+
export type ReturnReasonOption = {
|
|
2675
|
+
/** Description/help text */
|
|
2676
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
2677
|
+
/** Human-readable label */
|
|
2678
|
+
label: Scalars['String']['output'];
|
|
2679
|
+
/** Reason enum value */
|
|
2680
|
+
value: ReturnReason;
|
|
2681
|
+
};
|
|
2682
|
+
export type ReturnShippingLabel = {
|
|
2683
|
+
/** Carrier for the return shipment */
|
|
2684
|
+
carrier?: Maybe<Scalars['String']['output']>;
|
|
2685
|
+
/** When the label expires */
|
|
2686
|
+
expiresAt?: Maybe<Scalars['DateTime']['output']>;
|
|
2687
|
+
/** Tracking number for the return */
|
|
2688
|
+
trackingNumber?: Maybe<Scalars['String']['output']>;
|
|
2689
|
+
/** URL to download the shipping label */
|
|
2690
|
+
url: Scalars['String']['output'];
|
|
2691
|
+
};
|
|
2692
|
+
export type ReturnStatus = 'APPROVED' | 'CANCELLED' | 'COMPLETED' | 'DRAFT' | 'EXCHANGED' | 'EXPIRED' | 'FAILED' | 'INSPECTING' | 'IN_TRANSIT' | 'LABEL_GENERATED' | 'RECEIVED' | 'REFUNDED' | 'REFUND_PENDING' | 'REJECTED' | 'REPLACED' | 'REQUESTED';
|
|
2693
|
+
export type ReviewPayload = {
|
|
2694
|
+
review?: Maybe<ProductReview>;
|
|
2695
|
+
/** User errors */
|
|
2696
|
+
userErrors: Array<UserError>;
|
|
2697
|
+
};
|
|
2698
|
+
export type ReviewStats = {
|
|
2699
|
+
/** Average rating */
|
|
2700
|
+
averageRating: Scalars['Float']['output'];
|
|
2701
|
+
/** 5-star count */
|
|
2702
|
+
fiveStarCount: Scalars['Int']['output'];
|
|
2703
|
+
/** 4-star count */
|
|
2704
|
+
fourStarCount: Scalars['Int']['output'];
|
|
2705
|
+
/** 1-star count */
|
|
2706
|
+
oneStarCount: Scalars['Int']['output'];
|
|
2707
|
+
/** 3-star count */
|
|
2708
|
+
threeStarCount: Scalars['Int']['output'];
|
|
2709
|
+
/** Total reviews */
|
|
2710
|
+
totalCount: Scalars['Int']['output'];
|
|
2711
|
+
/** 2-star count */
|
|
2712
|
+
twoStarCount: Scalars['Int']['output'];
|
|
2713
|
+
};
|
|
2714
|
+
export type Seo = {
|
|
2715
|
+
/** SEO description */
|
|
2716
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
2717
|
+
/** SEO title */
|
|
2718
|
+
title?: Maybe<Scalars['String']['output']>;
|
|
2719
|
+
};
|
|
2720
|
+
export type SearchQuerySuggestion = {
|
|
2721
|
+
/** Suggestion with <mark> highlights matching the query prefix */
|
|
2722
|
+
styledText: Scalars['String']['output'];
|
|
2723
|
+
/** Plain text suggestion (product title) */
|
|
2724
|
+
text: Scalars['String']['output'];
|
|
2725
|
+
};
|
|
2726
|
+
export type SelectedOption = {
|
|
2727
|
+
/** Option name (e.g. "Size", "Color"). */
|
|
2728
|
+
name: Scalars['String']['output'];
|
|
2729
|
+
/** Stable ID of the option value — useful as a key when rendering variant selectors. Null only for legacy variants not yet migrated to relational option values. */
|
|
2730
|
+
optionValueId?: Maybe<Scalars['ID']['output']>;
|
|
2731
|
+
/** Option value for this variant (e.g. "Large", "Red"). */
|
|
2732
|
+
value: Scalars['String']['output'];
|
|
2733
|
+
};
|
|
2734
|
+
export type Shipment = {
|
|
2735
|
+
/** Creation date */
|
|
2736
|
+
createdAt: Scalars['DateTime']['output'];
|
|
2737
|
+
/** When the shipment was delivered */
|
|
2738
|
+
deliveredAt?: Maybe<Scalars['DateTime']['output']>;
|
|
2739
|
+
/** Estimated delivery timestamp */
|
|
2740
|
+
estimatedDeliveryAt?: Maybe<Scalars['DateTime']['output']>;
|
|
2741
|
+
/** Tracking events timeline */
|
|
2742
|
+
events?: Maybe<Array<ShipmentEvent>>;
|
|
2743
|
+
/** Unique identifier */
|
|
2744
|
+
id: Scalars['ID']['output'];
|
|
2745
|
+
/** Items included in this shipment */
|
|
2746
|
+
items?: Maybe<Array<ShipmentItem>>;
|
|
2747
|
+
/** Shipping label download URL */
|
|
2748
|
+
labelUrl?: Maybe<Scalars['String']['output']>;
|
|
2749
|
+
/** Order ID this shipment belongs to */
|
|
2750
|
+
orderId: Scalars['ID']['output'];
|
|
2751
|
+
/** Package dimensions */
|
|
2752
|
+
packages?: Maybe<Array<ShipmentPackage>>;
|
|
2753
|
+
/** Shipping provider (e.g., INPOST, DPD, UPS) */
|
|
2754
|
+
provider: Scalars['String']['output'];
|
|
2755
|
+
/** Recipient address */
|
|
2756
|
+
recipientAddress?: Maybe<MailingAddress>;
|
|
2757
|
+
/** Provider service code */
|
|
2758
|
+
serviceCode?: Maybe<Scalars['String']['output']>;
|
|
2759
|
+
/** When the shipment was shipped */
|
|
2760
|
+
shippedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
2761
|
+
/** Current shipment status */
|
|
2762
|
+
status: ShipmentStatus;
|
|
2763
|
+
/** Tracking number */
|
|
2764
|
+
trackingNumber?: Maybe<Scalars['String']['output']>;
|
|
2765
|
+
/** External tracking URL */
|
|
2766
|
+
trackingUrl?: Maybe<Scalars['String']['output']>;
|
|
2767
|
+
/** Last update date */
|
|
2768
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
2769
|
+
};
|
|
2770
|
+
export type ShipmentEvent = {
|
|
2771
|
+
/** Human-readable description */
|
|
2772
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
2773
|
+
/** Event ID */
|
|
2774
|
+
id: Scalars['ID']['output'];
|
|
2775
|
+
/** Location where event occurred */
|
|
2776
|
+
location?: Maybe<Scalars['String']['output']>;
|
|
2777
|
+
/** When the event occurred */
|
|
2778
|
+
occurredAt: Scalars['DateTime']['output'];
|
|
2779
|
+
/** Provider-specific event code */
|
|
2780
|
+
providerEventCode?: Maybe<Scalars['String']['output']>;
|
|
2781
|
+
/** Status at this event */
|
|
2782
|
+
status: ShipmentStatus;
|
|
2783
|
+
};
|
|
2784
|
+
export type ShipmentItem = {
|
|
2785
|
+
/** Item ID */
|
|
2786
|
+
id: Scalars['ID']['output'];
|
|
2787
|
+
/** Product image URL */
|
|
2788
|
+
imageUrl?: Maybe<Scalars['String']['output']>;
|
|
2789
|
+
/** Quantity shipped */
|
|
2790
|
+
quantity: Scalars['Int']['output'];
|
|
2791
|
+
/** Product SKU */
|
|
2792
|
+
sku?: Maybe<Scalars['String']['output']>;
|
|
2793
|
+
/** Product title */
|
|
2794
|
+
title: Scalars['String']['output'];
|
|
2795
|
+
/** Variant title */
|
|
2796
|
+
variantTitle?: Maybe<Scalars['String']['output']>;
|
|
2797
|
+
};
|
|
2798
|
+
export type ShipmentPackage = {
|
|
2799
|
+
/** Package height in cm */
|
|
2800
|
+
height?: Maybe<Scalars['Float']['output']>;
|
|
2801
|
+
/** Package length in cm */
|
|
2802
|
+
length?: Maybe<Scalars['Float']['output']>;
|
|
2803
|
+
/** Package weight in kg */
|
|
2804
|
+
weight?: Maybe<Scalars['Float']['output']>;
|
|
2805
|
+
/** Package width in cm */
|
|
2806
|
+
width?: Maybe<Scalars['Float']['output']>;
|
|
2807
|
+
};
|
|
2808
|
+
export type ShipmentPayload = {
|
|
2809
|
+
/** Shipment data */
|
|
2810
|
+
shipment?: Maybe<Shipment>;
|
|
2811
|
+
/** User errors */
|
|
2812
|
+
userErrors: Array<UserError>;
|
|
2813
|
+
};
|
|
2814
|
+
export type ShipmentStatus = 'CANCELLED' | 'CREATED' | 'DELIVERED' | 'EXCEPTION' | 'IN_TRANSIT' | 'LABEL_PRINTED' | 'OUT_FOR_DELIVERY' | 'PICKED_UP' | 'RETURNED';
|
|
2815
|
+
export type ShippingAddressInput = {
|
|
2816
|
+
/** City / town. */
|
|
2817
|
+
city?: InputMaybe<Scalars['String']['input']>;
|
|
2818
|
+
/** Destination country (ISO 3166-1 alpha-2). Required — drives carrier eligibility and tax/region rules. */
|
|
2819
|
+
country: CountryCode;
|
|
2820
|
+
/** Buyer email — useful when the shipping carrier needs notification contact details. */
|
|
2821
|
+
email?: InputMaybe<Scalars['String']['input']>;
|
|
2822
|
+
/** Buyer first name. */
|
|
2823
|
+
firstName?: InputMaybe<Scalars['String']['input']>;
|
|
2824
|
+
/** Buyer last name. */
|
|
2825
|
+
lastName?: InputMaybe<Scalars['String']['input']>;
|
|
2826
|
+
/** Buyer phone number (free-form). */
|
|
2827
|
+
phone?: InputMaybe<Scalars['String']['input']>;
|
|
2828
|
+
/** Postal / ZIP code — required by most carriers for accurate rates. */
|
|
2829
|
+
postalCode?: InputMaybe<Scalars['String']['input']>;
|
|
2830
|
+
/** State / province / region. */
|
|
2831
|
+
state?: InputMaybe<Scalars['String']['input']>;
|
|
2832
|
+
/** First line of the street address (street and house / building number). */
|
|
2833
|
+
streetLine1?: InputMaybe<Scalars['String']['input']>;
|
|
2834
|
+
};
|
|
2835
|
+
export type ShippingCarrier = {
|
|
2836
|
+
/** Stable carrier identifier. Null when the method does not map to a registered carrier (e.g. local pickup configured by the merchant). */
|
|
2837
|
+
id?: Maybe<Scalars['ID']['output']>;
|
|
2838
|
+
/** URL of the carrier logo. Use for the method tile in the shipping picker. */
|
|
2839
|
+
logoUrl?: Maybe<Scalars['String']['output']>;
|
|
2840
|
+
/** Carrier display name (e.g. "InPost", "DPD", "DHL"). */
|
|
2841
|
+
name: Scalars['String']['output'];
|
|
2842
|
+
/** Carrier service code as configured by the merchant (e.g. "inpost_paczkomat"). Useful when integrating carrier widgets. */
|
|
2843
|
+
serviceCode?: Maybe<Scalars['String']['output']>;
|
|
2844
|
+
};
|
|
2845
|
+
export type Shop = {
|
|
2846
|
+
/** Shop physical address */
|
|
2847
|
+
address?: Maybe<ShopAddress>;
|
|
2848
|
+
/** Bot protection configuration (platform-level) */
|
|
2849
|
+
botProtection?: Maybe<BotProtectionInfo>;
|
|
2850
|
+
/** Shop brand metadata (logo + slogan + colors). Tenant-scoped (vs canonical product `Brand` entity used in `Product.brand`). */
|
|
2851
|
+
brand?: Maybe<ShopBrand>;
|
|
2852
|
+
/** Complete branding configuration */
|
|
2853
|
+
branding?: Maybe<ShopBranding>;
|
|
2854
|
+
/** Business operating hours */
|
|
2855
|
+
businessHours?: Maybe<Array<BusinessHour>>;
|
|
2856
|
+
/** Contact email address */
|
|
2857
|
+
contactEmail?: Maybe<Scalars['String']['output']>;
|
|
2858
|
+
/** Contact information policy */
|
|
2859
|
+
contactInformation?: Maybe<ShopPolicy>;
|
|
2860
|
+
/** Contact phone number */
|
|
2861
|
+
contactPhone?: Maybe<Scalars['String']['output']>;
|
|
2862
|
+
/** Default currency code (ISO 4217) */
|
|
2863
|
+
currencyCode: CurrencyCode;
|
|
2864
|
+
/** Customer account URL (login/orders) — z primaryDomain */
|
|
2865
|
+
customerAccountUrl?: Maybe<Scalars['URL']['output']>;
|
|
2866
|
+
/** Default language code (ISO 639-1) */
|
|
2867
|
+
defaultLanguage?: Maybe<LanguageCode>;
|
|
2868
|
+
/** Shop description */
|
|
2869
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
2870
|
+
/** Shop unique identifier */
|
|
2871
|
+
id: Scalars['ID']['output'];
|
|
2872
|
+
/** Legal notice / impressum */
|
|
2873
|
+
legalNotice?: Maybe<ShopPolicy>;
|
|
2874
|
+
/** Locale to currency mapping for auto-detection (SSOT) */
|
|
2875
|
+
localeToCurrencyMap: Array<LocaleCurrencyMapping>;
|
|
2876
|
+
/** Shop logo */
|
|
2877
|
+
logo?: Maybe<Image>;
|
|
2878
|
+
/** Money display format z `{{amount}}` placeholder, np. "{{amount}} zł" */
|
|
2879
|
+
moneyFormat: Scalars['String']['output'];
|
|
2880
|
+
/** Shop name */
|
|
2881
|
+
name: Scalars['String']['output'];
|
|
2882
|
+
/** Supported payment currencies */
|
|
2883
|
+
paymentCurrencies: Array<CurrencyCode>;
|
|
2884
|
+
/** Payment configuration (currency, accepted cards, digital wallets) */
|
|
2885
|
+
paymentSettings: PaymentSettings;
|
|
2886
|
+
/** Primary domain (host + URL + SSL state) */
|
|
2887
|
+
primaryDomain: Domain;
|
|
2888
|
+
/** Privacy policy */
|
|
2889
|
+
privacyPolicy?: Maybe<ShopPolicy>;
|
|
2890
|
+
/** Refund / return policy */
|
|
2891
|
+
refundPolicy?: Maybe<ShopPolicy>;
|
|
2892
|
+
/** Shipping policy */
|
|
2893
|
+
shippingPolicy?: Maybe<ShopPolicy>;
|
|
2894
|
+
/** Countries shop ships to (z shipping zones) */
|
|
2895
|
+
shipsToCountries: Array<CountryCode>;
|
|
2896
|
+
/** Supported currencies for price display */
|
|
2897
|
+
supportedCurrencies: Array<CurrencyCode>;
|
|
2898
|
+
/** Supported languages (ISO 639-1) */
|
|
2899
|
+
supportedLanguages?: Maybe<Array<LanguageCode>>;
|
|
2900
|
+
/** Terms of sale */
|
|
2901
|
+
termsOfSale?: Maybe<ShopPolicy>;
|
|
2902
|
+
/** Terms of service */
|
|
2903
|
+
termsOfService?: Maybe<ShopPolicy>;
|
|
2904
|
+
/** Shop timezone */
|
|
2905
|
+
timezone?: Maybe<Scalars['String']['output']>;
|
|
2906
|
+
};
|
|
2907
|
+
export type ShopAddress = {
|
|
2908
|
+
/** City */
|
|
2909
|
+
city?: Maybe<Scalars['String']['output']>;
|
|
2910
|
+
/** Country code (ISO 3166-1 alpha-2) */
|
|
2911
|
+
country?: Maybe<Scalars['String']['output']>;
|
|
2912
|
+
/** Postal / ZIP code */
|
|
2913
|
+
postalCode?: Maybe<Scalars['String']['output']>;
|
|
2914
|
+
/** State / province */
|
|
2915
|
+
state?: Maybe<Scalars['String']['output']>;
|
|
2916
|
+
/** First line of street address */
|
|
2917
|
+
streetLine1?: Maybe<Scalars['String']['output']>;
|
|
2918
|
+
/** Second line of street address */
|
|
2919
|
+
streetLine2?: Maybe<Scalars['String']['output']>;
|
|
2920
|
+
};
|
|
2921
|
+
export type ShopBrand = {
|
|
2922
|
+
/** Primary + secondary brand colors */
|
|
2923
|
+
colors?: Maybe<BrandColors>;
|
|
2924
|
+
/** Cover image / hero banner */
|
|
2925
|
+
coverImage?: Maybe<Image>;
|
|
2926
|
+
/** Primary logo */
|
|
2927
|
+
logo?: Maybe<Image>;
|
|
2928
|
+
/** Short brand description */
|
|
2929
|
+
shortDescription?: Maybe<Scalars['String']['output']>;
|
|
2930
|
+
/** Marketing slogan / tagline */
|
|
2931
|
+
slogan?: Maybe<Scalars['String']['output']>;
|
|
2932
|
+
/** Square logo variant (favicons, app tiles) */
|
|
2933
|
+
squareLogo?: Maybe<Image>;
|
|
2934
|
+
};
|
|
2935
|
+
export type ShopBranding = {
|
|
2936
|
+
/** Brand colors */
|
|
2937
|
+
colors?: Maybe<ShopColors>;
|
|
2938
|
+
/** Shop favicon */
|
|
2939
|
+
favicon?: Maybe<Image>;
|
|
2940
|
+
/** Typography configuration */
|
|
2941
|
+
fonts?: Maybe<ShopFonts>;
|
|
2942
|
+
/** Shop logo */
|
|
2943
|
+
logo?: Maybe<Image>;
|
|
2944
|
+
/** Social media links */
|
|
2945
|
+
socialLinks?: Maybe<SocialLinks>;
|
|
2946
|
+
};
|
|
2947
|
+
export type ShopColors = {
|
|
2948
|
+
/** Accent color (hex) */
|
|
2949
|
+
accent?: Maybe<Scalars['String']['output']>;
|
|
2950
|
+
/** Background color (hex) */
|
|
2951
|
+
background?: Maybe<Scalars['String']['output']>;
|
|
2952
|
+
/** Primary brand color (hex) */
|
|
2953
|
+
primary?: Maybe<Scalars['String']['output']>;
|
|
2954
|
+
/** Secondary brand color (hex) */
|
|
2955
|
+
secondary?: Maybe<Scalars['String']['output']>;
|
|
2956
|
+
/** Text color (hex) */
|
|
2957
|
+
text?: Maybe<Scalars['String']['output']>;
|
|
2958
|
+
};
|
|
2959
|
+
export type ShopCurrencyConfig = {
|
|
2960
|
+
/** Whether prices auto-convert to customer currency */
|
|
2961
|
+
autoConvertPrices: Scalars['Boolean']['output'];
|
|
2962
|
+
/** Primary currency for the shop */
|
|
2963
|
+
primaryCurrency: Scalars['String']['output'];
|
|
2964
|
+
/** List of currencies available in storefront */
|
|
2965
|
+
supportedCurrencies: Array<Scalars['String']['output']>;
|
|
2966
|
+
};
|
|
2967
|
+
export type ShopFonts = {
|
|
2968
|
+
/** Secondary/heading font family */
|
|
2969
|
+
heading?: Maybe<Scalars['String']['output']>;
|
|
2970
|
+
/** Primary font family */
|
|
2971
|
+
primary?: Maybe<Scalars['String']['output']>;
|
|
2972
|
+
};
|
|
2973
|
+
export type ShopPage = {
|
|
2974
|
+
/** HTML body content */
|
|
2975
|
+
body: Scalars['String']['output'];
|
|
2976
|
+
/** Created date (ISO 8601) */
|
|
2977
|
+
createdAt: Scalars['DateTime']['output'];
|
|
2978
|
+
/** Auto-generated plain text summary */
|
|
2979
|
+
excerpt: Scalars['String']['output'];
|
|
2980
|
+
/** URL handle */
|
|
2981
|
+
handle: Scalars['String']['output'];
|
|
2982
|
+
/** Page ID */
|
|
2983
|
+
id: Scalars['ID']['output'];
|
|
2984
|
+
/** Publish date (ISO 8601) */
|
|
2985
|
+
publishedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
2986
|
+
/** SEO metadata */
|
|
2987
|
+
seo?: Maybe<Seo>;
|
|
2988
|
+
/** Page title */
|
|
2989
|
+
title: Scalars['String']['output'];
|
|
2990
|
+
/** Updated date (ISO 8601) */
|
|
2991
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
2992
|
+
};
|
|
2993
|
+
export type ShopPageConnection = {
|
|
2994
|
+
/** Page edges */
|
|
2995
|
+
edges: Array<ShopPageEdge>;
|
|
2996
|
+
/** Pagination info */
|
|
2997
|
+
pageInfo: PageInfo;
|
|
2998
|
+
/** Total count of pages */
|
|
2999
|
+
totalCount: Scalars['Int']['output'];
|
|
3000
|
+
};
|
|
3001
|
+
export type ShopPageEdge = {
|
|
3002
|
+
/** Cursor for pagination */
|
|
3003
|
+
cursor: Scalars['String']['output'];
|
|
3004
|
+
/** Page node */
|
|
3005
|
+
node: ShopPage;
|
|
3006
|
+
};
|
|
3007
|
+
export type ShopPolicy = Node & {
|
|
3008
|
+
/** Policy body (markdown) */
|
|
3009
|
+
body: Scalars['String']['output'];
|
|
3010
|
+
/** URL-friendly handle (slug) */
|
|
3011
|
+
handle: Scalars['String']['output'];
|
|
3012
|
+
/** Globally-unique identifier */
|
|
3013
|
+
id: Scalars['ID']['output'];
|
|
3014
|
+
/** Policy title (e.g. "Privacy Policy") */
|
|
3015
|
+
title: Scalars['String']['output'];
|
|
3016
|
+
/** Canonical URL on storefront */
|
|
3017
|
+
url: Scalars['URL']['output'];
|
|
3018
|
+
};
|
|
3019
|
+
export type SocialLinks = {
|
|
3020
|
+
/** Facebook page URL */
|
|
3021
|
+
facebook?: Maybe<Scalars['String']['output']>;
|
|
3022
|
+
/** Instagram profile URL */
|
|
3023
|
+
instagram?: Maybe<Scalars['String']['output']>;
|
|
3024
|
+
/** LinkedIn page URL */
|
|
3025
|
+
linkedin?: Maybe<Scalars['String']['output']>;
|
|
3026
|
+
/** Pinterest profile URL */
|
|
3027
|
+
pinterest?: Maybe<Scalars['String']['output']>;
|
|
3028
|
+
/** TikTok profile URL */
|
|
3029
|
+
tiktok?: Maybe<Scalars['String']['output']>;
|
|
3030
|
+
/** Twitter/X profile URL */
|
|
3031
|
+
twitter?: Maybe<Scalars['String']['output']>;
|
|
3032
|
+
/** YouTube channel URL */
|
|
3033
|
+
youtube?: Maybe<Scalars['String']['output']>;
|
|
3034
|
+
};
|
|
3035
|
+
export type StoreAvailability = {
|
|
3036
|
+
/** Available stock at this location (computed: stock - reserved). Token-gated: null for anonymous requests, Int for authenticated customer context. */
|
|
3037
|
+
availableStock?: Maybe<Scalars['Int']['output']>;
|
|
3038
|
+
/** Whether the variant is in stock at this location */
|
|
3039
|
+
isAvailable: Scalars['Boolean']['output'];
|
|
3040
|
+
/** Location where this stock resides */
|
|
3041
|
+
location: Location;
|
|
3042
|
+
/** Human-readable pickup readiness string, localized (e.g., "Usually ready in 2 hours"). Null if location does not support pickup. */
|
|
3043
|
+
pickupTime?: Maybe<Scalars['String']['output']>;
|
|
3044
|
+
};
|
|
3045
|
+
export type StoreAvailabilityConnection = {
|
|
3046
|
+
/** Availability edges */
|
|
3047
|
+
edges: Array<StoreAvailabilityEdge>;
|
|
3048
|
+
/** Pagination info */
|
|
3049
|
+
pageInfo: PageInfo;
|
|
3050
|
+
/** Total count of locations with stock availability */
|
|
3051
|
+
totalCount: Scalars['Int']['output'];
|
|
3052
|
+
};
|
|
3053
|
+
export type StoreAvailabilityEdge = {
|
|
3054
|
+
/** Cursor for pagination */
|
|
3055
|
+
cursor: Scalars['String']['output'];
|
|
3056
|
+
/** The availability node */
|
|
3057
|
+
node: StoreAvailability;
|
|
3058
|
+
};
|
|
3059
|
+
export type StorefrontOrderStatus = 'CANCELLED' | 'COMPLETED' | 'CONFIRMED' | 'DRAFT' | 'EXPIRED' | 'ON_HOLD' | 'PENDING' | 'PROCESSING';
|
|
3060
|
+
export type SubscribeToMarketingPayload = {
|
|
3061
|
+
/** Always true (anti-enumeration). Backend may silently skip enqueue if rate-limited or already SUBSCRIBED. */
|
|
3062
|
+
accepted: Scalars['Boolean']['output'];
|
|
3063
|
+
/** User-facing errors */
|
|
3064
|
+
userErrors: Array<UserError>;
|
|
3065
|
+
};
|
|
3066
|
+
export type TierBenefit = {
|
|
3067
|
+
/** Benefit description */
|
|
3068
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
3069
|
+
/** Benefit icon */
|
|
3070
|
+
icon?: Maybe<Scalars['String']['output']>;
|
|
3071
|
+
/** Benefit name */
|
|
3072
|
+
name: Scalars['String']['output'];
|
|
3073
|
+
};
|
|
3074
|
+
export type TierProgress = {
|
|
3075
|
+
/** Current tier */
|
|
3076
|
+
currentTier: LoyaltyTier;
|
|
3077
|
+
/** Next tier (null if at max) */
|
|
3078
|
+
nextTier?: Maybe<LoyaltyTier>;
|
|
3079
|
+
/** Points needed for next tier */
|
|
3080
|
+
pointsToNextTier: Scalars['Int']['output'];
|
|
3081
|
+
/** Progress percentage (0-100) */
|
|
3082
|
+
progressPercent: Scalars['Float']['output'];
|
|
3083
|
+
/** Spend needed for next tier */
|
|
3084
|
+
spendToNextTier?: Maybe<Money>;
|
|
3085
|
+
};
|
|
3086
|
+
export type TranslationEntry = {
|
|
3087
|
+
/** Translation key */
|
|
3088
|
+
key: Scalars['String']['output'];
|
|
3089
|
+
/** Translated value */
|
|
3090
|
+
value: Scalars['String']['output'];
|
|
3091
|
+
};
|
|
3092
|
+
export type TranslationNamespace = {
|
|
3093
|
+
/** Translations in this namespace */
|
|
3094
|
+
entries: Array<TranslationEntry>;
|
|
3095
|
+
/** Namespace identifier */
|
|
3096
|
+
namespace: Scalars['String']['output'];
|
|
3097
|
+
};
|
|
3098
|
+
export type Translations = {
|
|
3099
|
+
/** Language code (ISO 639-1) */
|
|
3100
|
+
language: Scalars['String']['output'];
|
|
3101
|
+
/** Namespaces with translations */
|
|
3102
|
+
namespaces: Array<TranslationNamespace>;
|
|
3103
|
+
};
|
|
3104
|
+
export type UnitSystem = 'IMPERIAL_SYSTEM' | 'METRIC_SYSTEM';
|
|
3105
|
+
export type UnsubscribeFromMarketingPayload = {
|
|
3106
|
+
/** Always true (anti-enumeration). */
|
|
3107
|
+
accepted: Scalars['Boolean']['output'];
|
|
3108
|
+
/** User-facing errors */
|
|
3109
|
+
userErrors: Array<UserError>;
|
|
3110
|
+
};
|
|
3111
|
+
export type UrlRedirect = {
|
|
3112
|
+
/** Source path */
|
|
3113
|
+
path: Scalars['String']['output'];
|
|
3114
|
+
/** Target path or URL */
|
|
3115
|
+
target: Scalars['String']['output'];
|
|
3116
|
+
};
|
|
3117
|
+
export type UrlRedirectConnection = {
|
|
3118
|
+
/** Redirect nodes */
|
|
3119
|
+
nodes: Array<UrlRedirect>;
|
|
3120
|
+
/** Pagination info */
|
|
3121
|
+
pageInfo: PageInfo;
|
|
3122
|
+
};
|
|
3123
|
+
export type UserError = {
|
|
3124
|
+
/** Stable machine-readable code (e.g. `CART_NOT_FOUND`, `NOT_ENOUGH_IN_STOCK`, `INVALID_DISCOUNT_CODE`). The list of possible codes is defined per mutation by `CartErrorCode`, `CustomerErrorCode`, `PaymentErrorCode`, etc. */
|
|
3125
|
+
code?: Maybe<Scalars['String']['output']>;
|
|
3126
|
+
/** Path of the input field that caused the error (e.g. `["input", "lines", 0, "quantity"]`). Use to highlight the offending control in a form. */
|
|
3127
|
+
field?: Maybe<Array<Scalars['String']['output']>>;
|
|
3128
|
+
/** Human-readable error message localised to the request locale (e.g. `Accept-Language`). For display only. */
|
|
3129
|
+
message: Scalars['String']['output'];
|
|
3130
|
+
};
|
|
3131
|
+
export type Weight = {
|
|
3132
|
+
/** Unit of the weight (GRAMS, KILOGRAMS, OUNCES or POUNDS). */
|
|
3133
|
+
unit: WeightUnit;
|
|
3134
|
+
/** Weight magnitude, interpreted according to `unit`. */
|
|
3135
|
+
value: Scalars['Float']['output'];
|
|
3136
|
+
};
|
|
3137
|
+
export type WeightUnit = 'GRAMS' | 'KILOGRAMS' | 'OUNCES' | 'POUNDS';
|
|
3138
|
+
export type Wishlist = {
|
|
3139
|
+
/** Created date */
|
|
3140
|
+
createdAt: Scalars['DateTime']['output'];
|
|
3141
|
+
id: Scalars['ID']['output'];
|
|
3142
|
+
/** Is publicly shareable */
|
|
3143
|
+
isPublic: Scalars['Boolean']['output'];
|
|
3144
|
+
/** Total items count */
|
|
3145
|
+
itemCount: Scalars['Int']['output'];
|
|
3146
|
+
/** Wishlist items */
|
|
3147
|
+
items: Array<WishlistItem>;
|
|
3148
|
+
/** Wishlist name */
|
|
3149
|
+
name: Scalars['String']['output'];
|
|
3150
|
+
/** Share URL token */
|
|
3151
|
+
shareToken?: Maybe<Scalars['String']['output']>;
|
|
3152
|
+
/** Updated date */
|
|
3153
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
3154
|
+
};
|
|
3155
|
+
export type WishlistConnection = {
|
|
3156
|
+
/** Wishlist edges with cursors */
|
|
3157
|
+
edges: Array<WishlistEdge>;
|
|
3158
|
+
/** Wishlist nodes (shortcut for edges.map(e => e.node)) */
|
|
3159
|
+
nodes: Array<Wishlist>;
|
|
3160
|
+
/** Pagination info */
|
|
3161
|
+
pageInfo: PageInfo;
|
|
3162
|
+
/** Total count of wishlists */
|
|
3163
|
+
totalCount: Scalars['Int']['output'];
|
|
3164
|
+
};
|
|
3165
|
+
export type WishlistEdge = {
|
|
3166
|
+
/** Cursor for pagination */
|
|
3167
|
+
cursor: Scalars['String']['output'];
|
|
3168
|
+
/** Wishlist node */
|
|
3169
|
+
node: Wishlist;
|
|
3170
|
+
};
|
|
3171
|
+
export type WishlistItem = {
|
|
3172
|
+
/** Date added */
|
|
3173
|
+
addedAt: Scalars['DateTime']['output'];
|
|
3174
|
+
id: Scalars['ID']['output'];
|
|
3175
|
+
/** Notify on restock */
|
|
3176
|
+
notifyOnRestock: Scalars['Boolean']['output'];
|
|
3177
|
+
/** Notify on sale */
|
|
3178
|
+
notifyOnSale: Scalars['Boolean']['output'];
|
|
3179
|
+
/** Price when added to wishlist */
|
|
3180
|
+
priceWhenAdded: Money;
|
|
3181
|
+
/** Product details */
|
|
3182
|
+
product?: Maybe<Product>;
|
|
3183
|
+
productId: Scalars['ID']['output'];
|
|
3184
|
+
/** Variant details */
|
|
3185
|
+
variant?: Maybe<ProductVariant>;
|
|
3186
|
+
variantId?: Maybe<Scalars['ID']['output']>;
|
|
3187
|
+
};
|
|
3188
|
+
export type WishlistPayload = {
|
|
3189
|
+
/** Typed user errors */
|
|
3190
|
+
userErrors: Array<UserError>;
|
|
3191
|
+
wishlist?: Maybe<Wishlist>;
|
|
3192
|
+
};
|
|
3193
|
+
export type AvailablePaymentMethodsQueryVariables = Exact<{
|
|
3194
|
+
[key: string]: never;
|
|
3195
|
+
}>;
|
|
3196
|
+
export type AvailablePaymentMethodsQuery = {
|
|
3197
|
+
availablePaymentMethods: {
|
|
3198
|
+
methods: Array<Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'icon' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'>>;
|
|
3199
|
+
defaultMethod?: Maybe<Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'icon' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'>>;
|
|
3200
|
+
};
|
|
3201
|
+
};
|
|
3202
|
+
export type CartAddLinesMutationVariables = Exact<{
|
|
3203
|
+
id: Scalars['ID']['input'];
|
|
3204
|
+
lines: Array<CartLineInput> | CartLineInput;
|
|
3205
|
+
}>;
|
|
3206
|
+
export type CartAddLinesMutation = {
|
|
3207
|
+
cartAddLines: {
|
|
3208
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt'> & {
|
|
3209
|
+
cost: {
|
|
3210
|
+
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3211
|
+
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3212
|
+
totalTax?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3213
|
+
totalDuty?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3214
|
+
checkoutCharge?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3215
|
+
};
|
|
3216
|
+
lines: (Pick<CartLineConnection, 'totalCount'> & {
|
|
3217
|
+
nodes: Array<(Pick<CartLine, 'id' | 'quantity' | 'productId' | 'productTitle' | 'productHandle' | 'productType' | 'requiresShipping'> & {
|
|
3218
|
+
variant: (Pick<ProductVariant, 'id' | 'title' | 'sku' | 'isAvailable' | 'availableStock' | 'barcode' | 'sortOrder'> & {
|
|
3219
|
+
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3220
|
+
compareAtPrice?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3221
|
+
image?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
3222
|
+
selectedOptions: Array<Pick<SelectedOption, 'name' | 'value'>>;
|
|
3223
|
+
weight?: Maybe<Pick<Weight, 'value' | 'unit'>>;
|
|
3224
|
+
});
|
|
3225
|
+
cost: {
|
|
3226
|
+
pricePerUnit: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3227
|
+
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3228
|
+
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3229
|
+
compareAtPricePerUnit?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3230
|
+
};
|
|
3231
|
+
attributes: Array<Pick<Attribute, 'key' | 'value'>>;
|
|
3232
|
+
attributeSelections: Array<Pick<AttributeSelection, 'attributeDefinitionId' | 'attributeName' | 'type' | 'fillingMode' | 'billingMode' | 'optionId' | 'optionLabel' | 'optionIds' | 'textValue' | 'surchargeAmount' | 'surchargeType' | 'taxClassId' | 'linkedVariantId'>>;
|
|
3233
|
+
})>;
|
|
3234
|
+
pageInfo: Pick<PageInfo, 'hasNextPage' | 'hasPreviousPage' | 'startCursor' | 'endCursor'>;
|
|
3235
|
+
});
|
|
3236
|
+
buyerIdentity?: Maybe<Pick<CartBuyerIdentity, 'email' | 'phone' | 'countryCode'>>;
|
|
3237
|
+
discountCodes: Array<Pick<CartDiscountCode, 'code' | 'isApplicable'>>;
|
|
3238
|
+
discountAllocations: Array<(Pick<CartDiscountAllocation, 'discountCode'> & {
|
|
3239
|
+
amount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3240
|
+
})>;
|
|
3241
|
+
attributes: Array<Pick<CartAttribute, 'key' | 'value'>>;
|
|
3242
|
+
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
3243
|
+
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
3244
|
+
})>;
|
|
3245
|
+
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
3246
|
+
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
3247
|
+
})>;
|
|
3248
|
+
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
3249
|
+
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3250
|
+
})>;
|
|
3251
|
+
selectedPaymentMethod?: Maybe<Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'icon' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'>>;
|
|
3252
|
+
appliedGiftCards: Array<(Pick<CartAppliedGiftCard, 'id' | 'maskedCode' | 'lastCharacters'> & {
|
|
3253
|
+
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3254
|
+
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3255
|
+
})>;
|
|
3256
|
+
})>;
|
|
3257
|
+
userErrors: Array<Pick<UserError, 'message' | 'code' | 'field'>>;
|
|
3258
|
+
warnings: Array<Pick<CartWarning, 'message' | 'code' | 'target'>>;
|
|
3259
|
+
};
|
|
3260
|
+
};
|
|
3261
|
+
export type CartApplyGiftCardMutationVariables = Exact<{
|
|
3262
|
+
input: CartApplyGiftCardInput;
|
|
3263
|
+
}>;
|
|
3264
|
+
export type CartApplyGiftCardMutation = {
|
|
3265
|
+
cartApplyGiftCard: {
|
|
3266
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt'> & {
|
|
3267
|
+
cost: {
|
|
3268
|
+
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3269
|
+
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3270
|
+
totalTax?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3271
|
+
totalDuty?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3272
|
+
checkoutCharge?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3273
|
+
};
|
|
3274
|
+
lines: (Pick<CartLineConnection, 'totalCount'> & {
|
|
3275
|
+
nodes: Array<(Pick<CartLine, 'id' | 'quantity' | 'productId' | 'productTitle' | 'productHandle' | 'productType' | 'requiresShipping'> & {
|
|
3276
|
+
variant: (Pick<ProductVariant, 'id' | 'title' | 'sku' | 'isAvailable' | 'availableStock' | 'barcode' | 'sortOrder'> & {
|
|
3277
|
+
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3278
|
+
compareAtPrice?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3279
|
+
image?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
3280
|
+
selectedOptions: Array<Pick<SelectedOption, 'name' | 'value'>>;
|
|
3281
|
+
weight?: Maybe<Pick<Weight, 'value' | 'unit'>>;
|
|
3282
|
+
});
|
|
3283
|
+
cost: {
|
|
3284
|
+
pricePerUnit: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3285
|
+
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3286
|
+
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3287
|
+
compareAtPricePerUnit?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3288
|
+
};
|
|
3289
|
+
attributes: Array<Pick<Attribute, 'key' | 'value'>>;
|
|
3290
|
+
attributeSelections: Array<Pick<AttributeSelection, 'attributeDefinitionId' | 'attributeName' | 'type' | 'fillingMode' | 'billingMode' | 'optionId' | 'optionLabel' | 'optionIds' | 'textValue' | 'surchargeAmount' | 'surchargeType' | 'taxClassId' | 'linkedVariantId'>>;
|
|
3291
|
+
})>;
|
|
3292
|
+
pageInfo: Pick<PageInfo, 'hasNextPage' | 'hasPreviousPage' | 'startCursor' | 'endCursor'>;
|
|
3293
|
+
});
|
|
3294
|
+
buyerIdentity?: Maybe<Pick<CartBuyerIdentity, 'email' | 'phone' | 'countryCode'>>;
|
|
3295
|
+
discountCodes: Array<Pick<CartDiscountCode, 'code' | 'isApplicable'>>;
|
|
3296
|
+
discountAllocations: Array<(Pick<CartDiscountAllocation, 'discountCode'> & {
|
|
3297
|
+
amount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3298
|
+
})>;
|
|
3299
|
+
attributes: Array<Pick<CartAttribute, 'key' | 'value'>>;
|
|
3300
|
+
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
3301
|
+
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
3302
|
+
})>;
|
|
3303
|
+
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
3304
|
+
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
3305
|
+
})>;
|
|
3306
|
+
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
3307
|
+
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3308
|
+
})>;
|
|
3309
|
+
selectedPaymentMethod?: Maybe<Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'icon' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'>>;
|
|
3310
|
+
appliedGiftCards: Array<(Pick<CartAppliedGiftCard, 'id' | 'maskedCode' | 'lastCharacters'> & {
|
|
3311
|
+
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3312
|
+
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3313
|
+
})>;
|
|
3314
|
+
})>;
|
|
3315
|
+
userErrors: Array<Pick<UserError, 'message' | 'code' | 'field'>>;
|
|
3316
|
+
warnings: Array<Pick<CartWarning, 'message' | 'code' | 'target'>>;
|
|
3317
|
+
};
|
|
3318
|
+
};
|
|
3319
|
+
export type CartAvailableShippingMethodsQueryVariables = Exact<{
|
|
3320
|
+
cartId: Scalars['ID']['input'];
|
|
3321
|
+
address: ShippingAddressInput;
|
|
3322
|
+
}>;
|
|
3323
|
+
export type CartAvailableShippingMethodsQuery = {
|
|
3324
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'requiresShipping'> & {
|
|
3325
|
+
availableShippingMethods: {
|
|
3326
|
+
methods: Array<(Pick<AvailableShippingMethod, 'id' | 'name' | 'description' | 'deliveryType' | 'isFree' | 'sortOrder'> & {
|
|
3327
|
+
carrier?: Maybe<Pick<ShippingCarrier, 'id' | 'name' | 'logoUrl' | 'serviceCode'>>;
|
|
3328
|
+
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3329
|
+
estimatedDelivery?: Maybe<Pick<DeliveryEstimate, 'minDays' | 'maxDays' | 'description'>>;
|
|
3330
|
+
freeShippingProgress?: Maybe<(Pick<FreeShippingProgress, 'qualifies' | 'progressPercent' | 'message'> & {
|
|
3331
|
+
currentAmount?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3332
|
+
threshold?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3333
|
+
remaining?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3334
|
+
})>;
|
|
3335
|
+
})>;
|
|
3336
|
+
freeShippingProgress?: Maybe<(Pick<FreeShippingProgress, 'qualifies' | 'progressPercent' | 'message'> & {
|
|
3337
|
+
currentAmount?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3338
|
+
threshold?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3339
|
+
remaining?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3340
|
+
})>;
|
|
3341
|
+
userErrors: Array<Pick<UserError, 'message' | 'code' | 'field'>>;
|
|
3342
|
+
};
|
|
3343
|
+
})>;
|
|
3344
|
+
};
|
|
3345
|
+
export type CartCompleteMutationVariables = Exact<{
|
|
3346
|
+
input: CartCompleteInput;
|
|
3347
|
+
}>;
|
|
3348
|
+
export type CartCompleteMutation = {
|
|
3349
|
+
cartComplete: {
|
|
3350
|
+
order?: Maybe<(Pick<Order, 'id' | 'orderNumber' | 'accessToken' | 'status' | 'paymentStatus' | 'fulfillmentStatus' | 'processedAt' | 'confirmedAt' | 'cancelledAt' | 'expiredAt' | 'itemCount' | 'canCreatePayment' | 'paymentMethodType'> & {
|
|
3351
|
+
totals: {
|
|
3352
|
+
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3353
|
+
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3354
|
+
totalTax?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3355
|
+
totalShipping?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3356
|
+
};
|
|
3357
|
+
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
3358
|
+
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
3359
|
+
})>;
|
|
3360
|
+
})>;
|
|
3361
|
+
userErrors: Array<Pick<UserError, 'message' | 'code' | 'field'>>;
|
|
3362
|
+
warnings: Array<Pick<CartWarning, 'message' | 'code' | 'target'>>;
|
|
3363
|
+
};
|
|
3364
|
+
};
|
|
3365
|
+
export type CartCreateMutationVariables = Exact<{
|
|
3366
|
+
input?: InputMaybe<CartCreateInput>;
|
|
3367
|
+
}>;
|
|
3368
|
+
export type CartCreateMutation = {
|
|
3369
|
+
cartCreate: {
|
|
3370
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt'> & {
|
|
3371
|
+
cost: {
|
|
3372
|
+
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3373
|
+
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3374
|
+
totalTax?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3375
|
+
totalDuty?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3376
|
+
checkoutCharge?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3377
|
+
};
|
|
3378
|
+
lines: (Pick<CartLineConnection, 'totalCount'> & {
|
|
3379
|
+
nodes: Array<(Pick<CartLine, 'id' | 'quantity' | 'productId' | 'productTitle' | 'productHandle' | 'productType' | 'requiresShipping'> & {
|
|
3380
|
+
variant: (Pick<ProductVariant, 'id' | 'title' | 'sku' | 'isAvailable' | 'availableStock' | 'barcode' | 'sortOrder'> & {
|
|
3381
|
+
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3382
|
+
compareAtPrice?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3383
|
+
image?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
3384
|
+
selectedOptions: Array<Pick<SelectedOption, 'name' | 'value'>>;
|
|
3385
|
+
weight?: Maybe<Pick<Weight, 'value' | 'unit'>>;
|
|
3386
|
+
});
|
|
3387
|
+
cost: {
|
|
3388
|
+
pricePerUnit: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3389
|
+
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3390
|
+
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3391
|
+
compareAtPricePerUnit?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3392
|
+
};
|
|
3393
|
+
attributes: Array<Pick<Attribute, 'key' | 'value'>>;
|
|
3394
|
+
attributeSelections: Array<Pick<AttributeSelection, 'attributeDefinitionId' | 'attributeName' | 'type' | 'fillingMode' | 'billingMode' | 'optionId' | 'optionLabel' | 'optionIds' | 'textValue' | 'surchargeAmount' | 'surchargeType' | 'taxClassId' | 'linkedVariantId'>>;
|
|
3395
|
+
})>;
|
|
3396
|
+
pageInfo: Pick<PageInfo, 'hasNextPage' | 'hasPreviousPage' | 'startCursor' | 'endCursor'>;
|
|
3397
|
+
});
|
|
3398
|
+
buyerIdentity?: Maybe<Pick<CartBuyerIdentity, 'email' | 'phone' | 'countryCode'>>;
|
|
3399
|
+
discountCodes: Array<Pick<CartDiscountCode, 'code' | 'isApplicable'>>;
|
|
3400
|
+
discountAllocations: Array<(Pick<CartDiscountAllocation, 'discountCode'> & {
|
|
3401
|
+
amount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3402
|
+
})>;
|
|
3403
|
+
attributes: Array<Pick<CartAttribute, 'key' | 'value'>>;
|
|
3404
|
+
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
3405
|
+
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
3406
|
+
})>;
|
|
3407
|
+
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
3408
|
+
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
3409
|
+
})>;
|
|
3410
|
+
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
3411
|
+
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3412
|
+
})>;
|
|
3413
|
+
selectedPaymentMethod?: Maybe<Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'icon' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'>>;
|
|
3414
|
+
appliedGiftCards: Array<(Pick<CartAppliedGiftCard, 'id' | 'maskedCode' | 'lastCharacters'> & {
|
|
3415
|
+
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3416
|
+
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3417
|
+
})>;
|
|
3418
|
+
})>;
|
|
3419
|
+
userErrors: Array<Pick<UserError, 'message' | 'code' | 'field'>>;
|
|
3420
|
+
warnings: Array<Pick<CartWarning, 'message' | 'code' | 'target'>>;
|
|
3421
|
+
};
|
|
3422
|
+
};
|
|
3423
|
+
export type CartDiscountCodesUpdateMutationVariables = Exact<{
|
|
3424
|
+
id: Scalars['ID']['input'];
|
|
3425
|
+
discountCodes: Array<Scalars['String']['input']> | Scalars['String']['input'];
|
|
3426
|
+
}>;
|
|
3427
|
+
export type CartDiscountCodesUpdateMutation = {
|
|
3428
|
+
cartDiscountCodesUpdate: {
|
|
3429
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt'> & {
|
|
3430
|
+
cost: {
|
|
3431
|
+
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3432
|
+
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3433
|
+
totalTax?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3434
|
+
totalDuty?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3435
|
+
checkoutCharge?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3436
|
+
};
|
|
3437
|
+
lines: (Pick<CartLineConnection, 'totalCount'> & {
|
|
3438
|
+
nodes: Array<(Pick<CartLine, 'id' | 'quantity' | 'productId' | 'productTitle' | 'productHandle' | 'productType' | 'requiresShipping'> & {
|
|
3439
|
+
variant: (Pick<ProductVariant, 'id' | 'title' | 'sku' | 'isAvailable' | 'availableStock' | 'barcode' | 'sortOrder'> & {
|
|
3440
|
+
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3441
|
+
compareAtPrice?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3442
|
+
image?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
3443
|
+
selectedOptions: Array<Pick<SelectedOption, 'name' | 'value'>>;
|
|
3444
|
+
weight?: Maybe<Pick<Weight, 'value' | 'unit'>>;
|
|
3445
|
+
});
|
|
3446
|
+
cost: {
|
|
3447
|
+
pricePerUnit: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3448
|
+
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3449
|
+
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3450
|
+
compareAtPricePerUnit?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3451
|
+
};
|
|
3452
|
+
attributes: Array<Pick<Attribute, 'key' | 'value'>>;
|
|
3453
|
+
attributeSelections: Array<Pick<AttributeSelection, 'attributeDefinitionId' | 'attributeName' | 'type' | 'fillingMode' | 'billingMode' | 'optionId' | 'optionLabel' | 'optionIds' | 'textValue' | 'surchargeAmount' | 'surchargeType' | 'taxClassId' | 'linkedVariantId'>>;
|
|
3454
|
+
})>;
|
|
3455
|
+
pageInfo: Pick<PageInfo, 'hasNextPage' | 'hasPreviousPage' | 'startCursor' | 'endCursor'>;
|
|
3456
|
+
});
|
|
3457
|
+
buyerIdentity?: Maybe<Pick<CartBuyerIdentity, 'email' | 'phone' | 'countryCode'>>;
|
|
3458
|
+
discountCodes: Array<Pick<CartDiscountCode, 'code' | 'isApplicable'>>;
|
|
3459
|
+
discountAllocations: Array<(Pick<CartDiscountAllocation, 'discountCode'> & {
|
|
3460
|
+
amount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3461
|
+
})>;
|
|
3462
|
+
attributes: Array<Pick<CartAttribute, 'key' | 'value'>>;
|
|
3463
|
+
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
3464
|
+
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
3465
|
+
})>;
|
|
3466
|
+
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
3467
|
+
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
3468
|
+
})>;
|
|
3469
|
+
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
3470
|
+
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3471
|
+
})>;
|
|
3472
|
+
selectedPaymentMethod?: Maybe<Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'icon' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'>>;
|
|
3473
|
+
appliedGiftCards: Array<(Pick<CartAppliedGiftCard, 'id' | 'maskedCode' | 'lastCharacters'> & {
|
|
3474
|
+
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3475
|
+
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3476
|
+
})>;
|
|
3477
|
+
})>;
|
|
3478
|
+
userErrors: Array<Pick<UserError, 'message' | 'code' | 'field'>>;
|
|
3479
|
+
warnings: Array<Pick<CartWarning, 'message' | 'code' | 'target'>>;
|
|
3480
|
+
};
|
|
3481
|
+
};
|
|
3482
|
+
export type CartQueryVariables = Exact<{
|
|
3483
|
+
id: Scalars['ID']['input'];
|
|
3484
|
+
}>;
|
|
3485
|
+
export type CartQuery = {
|
|
3486
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt'> & {
|
|
3487
|
+
cost: {
|
|
3488
|
+
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3489
|
+
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3490
|
+
totalTax?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3491
|
+
totalDuty?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3492
|
+
checkoutCharge?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3493
|
+
};
|
|
3494
|
+
lines: (Pick<CartLineConnection, 'totalCount'> & {
|
|
3495
|
+
nodes: Array<(Pick<CartLine, 'id' | 'quantity' | 'productId' | 'productTitle' | 'productHandle' | 'productType' | 'requiresShipping'> & {
|
|
3496
|
+
variant: (Pick<ProductVariant, 'id' | 'title' | 'sku' | 'isAvailable' | 'availableStock' | 'barcode' | 'sortOrder'> & {
|
|
3497
|
+
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3498
|
+
compareAtPrice?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3499
|
+
image?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
3500
|
+
selectedOptions: Array<Pick<SelectedOption, 'name' | 'value'>>;
|
|
3501
|
+
weight?: Maybe<Pick<Weight, 'value' | 'unit'>>;
|
|
3502
|
+
});
|
|
3503
|
+
cost: {
|
|
3504
|
+
pricePerUnit: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3505
|
+
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3506
|
+
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3507
|
+
compareAtPricePerUnit?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3508
|
+
};
|
|
3509
|
+
attributes: Array<Pick<Attribute, 'key' | 'value'>>;
|
|
3510
|
+
attributeSelections: Array<Pick<AttributeSelection, 'attributeDefinitionId' | 'attributeName' | 'type' | 'fillingMode' | 'billingMode' | 'optionId' | 'optionLabel' | 'optionIds' | 'textValue' | 'surchargeAmount' | 'surchargeType' | 'taxClassId' | 'linkedVariantId'>>;
|
|
3511
|
+
})>;
|
|
3512
|
+
pageInfo: Pick<PageInfo, 'hasNextPage' | 'hasPreviousPage' | 'startCursor' | 'endCursor'>;
|
|
3513
|
+
});
|
|
3514
|
+
buyerIdentity?: Maybe<Pick<CartBuyerIdentity, 'email' | 'phone' | 'countryCode'>>;
|
|
3515
|
+
discountCodes: Array<Pick<CartDiscountCode, 'code' | 'isApplicable'>>;
|
|
3516
|
+
discountAllocations: Array<(Pick<CartDiscountAllocation, 'discountCode'> & {
|
|
3517
|
+
amount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3518
|
+
})>;
|
|
3519
|
+
attributes: Array<Pick<CartAttribute, 'key' | 'value'>>;
|
|
3520
|
+
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
3521
|
+
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
3522
|
+
})>;
|
|
3523
|
+
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
3524
|
+
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
3525
|
+
})>;
|
|
3526
|
+
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
3527
|
+
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3528
|
+
})>;
|
|
3529
|
+
selectedPaymentMethod?: Maybe<Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'icon' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'>>;
|
|
3530
|
+
appliedGiftCards: Array<(Pick<CartAppliedGiftCard, 'id' | 'maskedCode' | 'lastCharacters'> & {
|
|
3531
|
+
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3532
|
+
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3533
|
+
})>;
|
|
3534
|
+
})>;
|
|
3535
|
+
};
|
|
3536
|
+
export type CartRemoveGiftCardMutationVariables = Exact<{
|
|
3537
|
+
input: CartRemoveGiftCardInput;
|
|
3538
|
+
}>;
|
|
3539
|
+
export type CartRemoveGiftCardMutation = {
|
|
3540
|
+
cartRemoveGiftCard: {
|
|
3541
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt'> & {
|
|
3542
|
+
cost: {
|
|
3543
|
+
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3544
|
+
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3545
|
+
totalTax?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3546
|
+
totalDuty?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3547
|
+
checkoutCharge?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3548
|
+
};
|
|
3549
|
+
lines: (Pick<CartLineConnection, 'totalCount'> & {
|
|
3550
|
+
nodes: Array<(Pick<CartLine, 'id' | 'quantity' | 'productId' | 'productTitle' | 'productHandle' | 'productType' | 'requiresShipping'> & {
|
|
3551
|
+
variant: (Pick<ProductVariant, 'id' | 'title' | 'sku' | 'isAvailable' | 'availableStock' | 'barcode' | 'sortOrder'> & {
|
|
3552
|
+
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3553
|
+
compareAtPrice?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3554
|
+
image?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
3555
|
+
selectedOptions: Array<Pick<SelectedOption, 'name' | 'value'>>;
|
|
3556
|
+
weight?: Maybe<Pick<Weight, 'value' | 'unit'>>;
|
|
3557
|
+
});
|
|
3558
|
+
cost: {
|
|
3559
|
+
pricePerUnit: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3560
|
+
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3561
|
+
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3562
|
+
compareAtPricePerUnit?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3563
|
+
};
|
|
3564
|
+
attributes: Array<Pick<Attribute, 'key' | 'value'>>;
|
|
3565
|
+
attributeSelections: Array<Pick<AttributeSelection, 'attributeDefinitionId' | 'attributeName' | 'type' | 'fillingMode' | 'billingMode' | 'optionId' | 'optionLabel' | 'optionIds' | 'textValue' | 'surchargeAmount' | 'surchargeType' | 'taxClassId' | 'linkedVariantId'>>;
|
|
3566
|
+
})>;
|
|
3567
|
+
pageInfo: Pick<PageInfo, 'hasNextPage' | 'hasPreviousPage' | 'startCursor' | 'endCursor'>;
|
|
3568
|
+
});
|
|
3569
|
+
buyerIdentity?: Maybe<Pick<CartBuyerIdentity, 'email' | 'phone' | 'countryCode'>>;
|
|
3570
|
+
discountCodes: Array<Pick<CartDiscountCode, 'code' | 'isApplicable'>>;
|
|
3571
|
+
discountAllocations: Array<(Pick<CartDiscountAllocation, 'discountCode'> & {
|
|
3572
|
+
amount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3573
|
+
})>;
|
|
3574
|
+
attributes: Array<Pick<CartAttribute, 'key' | 'value'>>;
|
|
3575
|
+
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
3576
|
+
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
3577
|
+
})>;
|
|
3578
|
+
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
3579
|
+
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
3580
|
+
})>;
|
|
3581
|
+
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
3582
|
+
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3583
|
+
})>;
|
|
3584
|
+
selectedPaymentMethod?: Maybe<Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'icon' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'>>;
|
|
3585
|
+
appliedGiftCards: Array<(Pick<CartAppliedGiftCard, 'id' | 'maskedCode' | 'lastCharacters'> & {
|
|
3586
|
+
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3587
|
+
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3588
|
+
})>;
|
|
3589
|
+
})>;
|
|
3590
|
+
userErrors: Array<Pick<UserError, 'message' | 'code' | 'field'>>;
|
|
3591
|
+
warnings: Array<Pick<CartWarning, 'message' | 'code' | 'target'>>;
|
|
3592
|
+
};
|
|
3593
|
+
};
|
|
3594
|
+
export type CartRemoveLinesMutationVariables = Exact<{
|
|
3595
|
+
id: Scalars['ID']['input'];
|
|
3596
|
+
lineIds: Array<Scalars['ID']['input']> | Scalars['ID']['input'];
|
|
3597
|
+
}>;
|
|
3598
|
+
export type CartRemoveLinesMutation = {
|
|
3599
|
+
cartRemoveLines: {
|
|
3600
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt'> & {
|
|
3601
|
+
cost: {
|
|
3602
|
+
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3603
|
+
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3604
|
+
totalTax?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3605
|
+
totalDuty?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3606
|
+
checkoutCharge?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3607
|
+
};
|
|
3608
|
+
lines: (Pick<CartLineConnection, 'totalCount'> & {
|
|
3609
|
+
nodes: Array<(Pick<CartLine, 'id' | 'quantity' | 'productId' | 'productTitle' | 'productHandle' | 'productType' | 'requiresShipping'> & {
|
|
3610
|
+
variant: (Pick<ProductVariant, 'id' | 'title' | 'sku' | 'isAvailable' | 'availableStock' | 'barcode' | 'sortOrder'> & {
|
|
3611
|
+
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3612
|
+
compareAtPrice?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3613
|
+
image?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
3614
|
+
selectedOptions: Array<Pick<SelectedOption, 'name' | 'value'>>;
|
|
3615
|
+
weight?: Maybe<Pick<Weight, 'value' | 'unit'>>;
|
|
3616
|
+
});
|
|
3617
|
+
cost: {
|
|
3618
|
+
pricePerUnit: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3619
|
+
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3620
|
+
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3621
|
+
compareAtPricePerUnit?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3622
|
+
};
|
|
3623
|
+
attributes: Array<Pick<Attribute, 'key' | 'value'>>;
|
|
3624
|
+
attributeSelections: Array<Pick<AttributeSelection, 'attributeDefinitionId' | 'attributeName' | 'type' | 'fillingMode' | 'billingMode' | 'optionId' | 'optionLabel' | 'optionIds' | 'textValue' | 'surchargeAmount' | 'surchargeType' | 'taxClassId' | 'linkedVariantId'>>;
|
|
3625
|
+
})>;
|
|
3626
|
+
pageInfo: Pick<PageInfo, 'hasNextPage' | 'hasPreviousPage' | 'startCursor' | 'endCursor'>;
|
|
3627
|
+
});
|
|
3628
|
+
buyerIdentity?: Maybe<Pick<CartBuyerIdentity, 'email' | 'phone' | 'countryCode'>>;
|
|
3629
|
+
discountCodes: Array<Pick<CartDiscountCode, 'code' | 'isApplicable'>>;
|
|
3630
|
+
discountAllocations: Array<(Pick<CartDiscountAllocation, 'discountCode'> & {
|
|
3631
|
+
amount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3632
|
+
})>;
|
|
3633
|
+
attributes: Array<Pick<CartAttribute, 'key' | 'value'>>;
|
|
3634
|
+
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
3635
|
+
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
3636
|
+
})>;
|
|
3637
|
+
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
3638
|
+
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
3639
|
+
})>;
|
|
3640
|
+
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
3641
|
+
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3642
|
+
})>;
|
|
3643
|
+
selectedPaymentMethod?: Maybe<Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'icon' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'>>;
|
|
3644
|
+
appliedGiftCards: Array<(Pick<CartAppliedGiftCard, 'id' | 'maskedCode' | 'lastCharacters'> & {
|
|
3645
|
+
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3646
|
+
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3647
|
+
})>;
|
|
3648
|
+
})>;
|
|
3649
|
+
userErrors: Array<Pick<UserError, 'message' | 'code' | 'field'>>;
|
|
3650
|
+
warnings: Array<Pick<CartWarning, 'message' | 'code' | 'target'>>;
|
|
3651
|
+
};
|
|
3652
|
+
};
|
|
3653
|
+
export type CartSelectPaymentMethodMutationVariables = Exact<{
|
|
3654
|
+
input: CartSelectPaymentMethodInput;
|
|
3655
|
+
}>;
|
|
3656
|
+
export type CartSelectPaymentMethodMutation = {
|
|
3657
|
+
cartSelectPaymentMethod: {
|
|
3658
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt'> & {
|
|
3659
|
+
cost: {
|
|
3660
|
+
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3661
|
+
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3662
|
+
totalTax?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3663
|
+
totalDuty?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3664
|
+
checkoutCharge?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3665
|
+
};
|
|
3666
|
+
lines: (Pick<CartLineConnection, 'totalCount'> & {
|
|
3667
|
+
nodes: Array<(Pick<CartLine, 'id' | 'quantity' | 'productId' | 'productTitle' | 'productHandle' | 'productType' | 'requiresShipping'> & {
|
|
3668
|
+
variant: (Pick<ProductVariant, 'id' | 'title' | 'sku' | 'isAvailable' | 'availableStock' | 'barcode' | 'sortOrder'> & {
|
|
3669
|
+
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3670
|
+
compareAtPrice?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3671
|
+
image?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
3672
|
+
selectedOptions: Array<Pick<SelectedOption, 'name' | 'value'>>;
|
|
3673
|
+
weight?: Maybe<Pick<Weight, 'value' | 'unit'>>;
|
|
3674
|
+
});
|
|
3675
|
+
cost: {
|
|
3676
|
+
pricePerUnit: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3677
|
+
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3678
|
+
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3679
|
+
compareAtPricePerUnit?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3680
|
+
};
|
|
3681
|
+
attributes: Array<Pick<Attribute, 'key' | 'value'>>;
|
|
3682
|
+
attributeSelections: Array<Pick<AttributeSelection, 'attributeDefinitionId' | 'attributeName' | 'type' | 'fillingMode' | 'billingMode' | 'optionId' | 'optionLabel' | 'optionIds' | 'textValue' | 'surchargeAmount' | 'surchargeType' | 'taxClassId' | 'linkedVariantId'>>;
|
|
3683
|
+
})>;
|
|
3684
|
+
pageInfo: Pick<PageInfo, 'hasNextPage' | 'hasPreviousPage' | 'startCursor' | 'endCursor'>;
|
|
3685
|
+
});
|
|
3686
|
+
buyerIdentity?: Maybe<Pick<CartBuyerIdentity, 'email' | 'phone' | 'countryCode'>>;
|
|
3687
|
+
discountCodes: Array<Pick<CartDiscountCode, 'code' | 'isApplicable'>>;
|
|
3688
|
+
discountAllocations: Array<(Pick<CartDiscountAllocation, 'discountCode'> & {
|
|
3689
|
+
amount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3690
|
+
})>;
|
|
3691
|
+
attributes: Array<Pick<CartAttribute, 'key' | 'value'>>;
|
|
3692
|
+
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
3693
|
+
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
3694
|
+
})>;
|
|
3695
|
+
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
3696
|
+
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
3697
|
+
})>;
|
|
3698
|
+
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
3699
|
+
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3700
|
+
})>;
|
|
3701
|
+
selectedPaymentMethod?: Maybe<Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'icon' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'>>;
|
|
3702
|
+
appliedGiftCards: Array<(Pick<CartAppliedGiftCard, 'id' | 'maskedCode' | 'lastCharacters'> & {
|
|
3703
|
+
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3704
|
+
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3705
|
+
})>;
|
|
3706
|
+
})>;
|
|
3707
|
+
userErrors: Array<Pick<UserError, 'message' | 'code' | 'field'>>;
|
|
3708
|
+
warnings: Array<Pick<CartWarning, 'message' | 'code' | 'target'>>;
|
|
3709
|
+
};
|
|
3710
|
+
};
|
|
3711
|
+
export type CartSelectShippingMethodMutationVariables = Exact<{
|
|
3712
|
+
input: CartSelectShippingMethodInput;
|
|
3713
|
+
}>;
|
|
3714
|
+
export type CartSelectShippingMethodMutation = {
|
|
3715
|
+
cartSelectShippingMethod: {
|
|
3716
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt'> & {
|
|
3717
|
+
cost: {
|
|
3718
|
+
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3719
|
+
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3720
|
+
totalTax?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3721
|
+
totalDuty?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3722
|
+
checkoutCharge?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3723
|
+
};
|
|
3724
|
+
lines: (Pick<CartLineConnection, 'totalCount'> & {
|
|
3725
|
+
nodes: Array<(Pick<CartLine, 'id' | 'quantity' | 'productId' | 'productTitle' | 'productHandle' | 'productType' | 'requiresShipping'> & {
|
|
3726
|
+
variant: (Pick<ProductVariant, 'id' | 'title' | 'sku' | 'isAvailable' | 'availableStock' | 'barcode' | 'sortOrder'> & {
|
|
3727
|
+
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3728
|
+
compareAtPrice?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3729
|
+
image?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
3730
|
+
selectedOptions: Array<Pick<SelectedOption, 'name' | 'value'>>;
|
|
3731
|
+
weight?: Maybe<Pick<Weight, 'value' | 'unit'>>;
|
|
3732
|
+
});
|
|
3733
|
+
cost: {
|
|
3734
|
+
pricePerUnit: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3735
|
+
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3736
|
+
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3737
|
+
compareAtPricePerUnit?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3738
|
+
};
|
|
3739
|
+
attributes: Array<Pick<Attribute, 'key' | 'value'>>;
|
|
3740
|
+
attributeSelections: Array<Pick<AttributeSelection, 'attributeDefinitionId' | 'attributeName' | 'type' | 'fillingMode' | 'billingMode' | 'optionId' | 'optionLabel' | 'optionIds' | 'textValue' | 'surchargeAmount' | 'surchargeType' | 'taxClassId' | 'linkedVariantId'>>;
|
|
3741
|
+
})>;
|
|
3742
|
+
pageInfo: Pick<PageInfo, 'hasNextPage' | 'hasPreviousPage' | 'startCursor' | 'endCursor'>;
|
|
3743
|
+
});
|
|
3744
|
+
buyerIdentity?: Maybe<Pick<CartBuyerIdentity, 'email' | 'phone' | 'countryCode'>>;
|
|
3745
|
+
discountCodes: Array<Pick<CartDiscountCode, 'code' | 'isApplicable'>>;
|
|
3746
|
+
discountAllocations: Array<(Pick<CartDiscountAllocation, 'discountCode'> & {
|
|
3747
|
+
amount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3748
|
+
})>;
|
|
3749
|
+
attributes: Array<Pick<CartAttribute, 'key' | 'value'>>;
|
|
3750
|
+
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
3751
|
+
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
3752
|
+
})>;
|
|
3753
|
+
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
3754
|
+
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
3755
|
+
})>;
|
|
3756
|
+
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
3757
|
+
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3758
|
+
})>;
|
|
3759
|
+
selectedPaymentMethod?: Maybe<Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'icon' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'>>;
|
|
3760
|
+
appliedGiftCards: Array<(Pick<CartAppliedGiftCard, 'id' | 'maskedCode' | 'lastCharacters'> & {
|
|
3761
|
+
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3762
|
+
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3763
|
+
})>;
|
|
3764
|
+
})>;
|
|
3765
|
+
userErrors: Array<Pick<UserError, 'message' | 'code' | 'field'>>;
|
|
3766
|
+
warnings: Array<Pick<CartWarning, 'message' | 'code' | 'target'>>;
|
|
3767
|
+
};
|
|
3768
|
+
};
|
|
3769
|
+
export type CartSetBillingAddressMutationVariables = Exact<{
|
|
3770
|
+
input: CartSetBillingAddressInput;
|
|
3771
|
+
}>;
|
|
3772
|
+
export type CartSetBillingAddressMutation = {
|
|
3773
|
+
cartSetBillingAddress: {
|
|
3774
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt'> & {
|
|
3775
|
+
cost: {
|
|
3776
|
+
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3777
|
+
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3778
|
+
totalTax?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3779
|
+
totalDuty?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3780
|
+
checkoutCharge?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3781
|
+
};
|
|
3782
|
+
lines: (Pick<CartLineConnection, 'totalCount'> & {
|
|
3783
|
+
nodes: Array<(Pick<CartLine, 'id' | 'quantity' | 'productId' | 'productTitle' | 'productHandle' | 'productType' | 'requiresShipping'> & {
|
|
3784
|
+
variant: (Pick<ProductVariant, 'id' | 'title' | 'sku' | 'isAvailable' | 'availableStock' | 'barcode' | 'sortOrder'> & {
|
|
3785
|
+
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3786
|
+
compareAtPrice?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3787
|
+
image?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
3788
|
+
selectedOptions: Array<Pick<SelectedOption, 'name' | 'value'>>;
|
|
3789
|
+
weight?: Maybe<Pick<Weight, 'value' | 'unit'>>;
|
|
3790
|
+
});
|
|
3791
|
+
cost: {
|
|
3792
|
+
pricePerUnit: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3793
|
+
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3794
|
+
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3795
|
+
compareAtPricePerUnit?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3796
|
+
};
|
|
3797
|
+
attributes: Array<Pick<Attribute, 'key' | 'value'>>;
|
|
3798
|
+
attributeSelections: Array<Pick<AttributeSelection, 'attributeDefinitionId' | 'attributeName' | 'type' | 'fillingMode' | 'billingMode' | 'optionId' | 'optionLabel' | 'optionIds' | 'textValue' | 'surchargeAmount' | 'surchargeType' | 'taxClassId' | 'linkedVariantId'>>;
|
|
3799
|
+
})>;
|
|
3800
|
+
pageInfo: Pick<PageInfo, 'hasNextPage' | 'hasPreviousPage' | 'startCursor' | 'endCursor'>;
|
|
3801
|
+
});
|
|
3802
|
+
buyerIdentity?: Maybe<Pick<CartBuyerIdentity, 'email' | 'phone' | 'countryCode'>>;
|
|
3803
|
+
discountCodes: Array<Pick<CartDiscountCode, 'code' | 'isApplicable'>>;
|
|
3804
|
+
discountAllocations: Array<(Pick<CartDiscountAllocation, 'discountCode'> & {
|
|
3805
|
+
amount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3806
|
+
})>;
|
|
3807
|
+
attributes: Array<Pick<CartAttribute, 'key' | 'value'>>;
|
|
3808
|
+
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
3809
|
+
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
3810
|
+
})>;
|
|
3811
|
+
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
3812
|
+
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
3813
|
+
})>;
|
|
3814
|
+
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
3815
|
+
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3816
|
+
})>;
|
|
3817
|
+
selectedPaymentMethod?: Maybe<Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'icon' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'>>;
|
|
3818
|
+
appliedGiftCards: Array<(Pick<CartAppliedGiftCard, 'id' | 'maskedCode' | 'lastCharacters'> & {
|
|
3819
|
+
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3820
|
+
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3821
|
+
})>;
|
|
3822
|
+
})>;
|
|
3823
|
+
userErrors: Array<Pick<UserError, 'message' | 'code' | 'field'>>;
|
|
3824
|
+
warnings: Array<Pick<CartWarning, 'message' | 'code' | 'target'>>;
|
|
3825
|
+
};
|
|
3826
|
+
};
|
|
3827
|
+
export type CartSetShippingAddressMutationVariables = Exact<{
|
|
3828
|
+
input: CartSetShippingAddressInput;
|
|
3829
|
+
}>;
|
|
3830
|
+
export type CartSetShippingAddressMutation = {
|
|
3831
|
+
cartSetShippingAddress: {
|
|
3832
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt'> & {
|
|
3833
|
+
cost: {
|
|
3834
|
+
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3835
|
+
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3836
|
+
totalTax?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3837
|
+
totalDuty?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3838
|
+
checkoutCharge?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3839
|
+
};
|
|
3840
|
+
lines: (Pick<CartLineConnection, 'totalCount'> & {
|
|
3841
|
+
nodes: Array<(Pick<CartLine, 'id' | 'quantity' | 'productId' | 'productTitle' | 'productHandle' | 'productType' | 'requiresShipping'> & {
|
|
3842
|
+
variant: (Pick<ProductVariant, 'id' | 'title' | 'sku' | 'isAvailable' | 'availableStock' | 'barcode' | 'sortOrder'> & {
|
|
3843
|
+
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3844
|
+
compareAtPrice?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3845
|
+
image?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
3846
|
+
selectedOptions: Array<Pick<SelectedOption, 'name' | 'value'>>;
|
|
3847
|
+
weight?: Maybe<Pick<Weight, 'value' | 'unit'>>;
|
|
3848
|
+
});
|
|
3849
|
+
cost: {
|
|
3850
|
+
pricePerUnit: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3851
|
+
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3852
|
+
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3853
|
+
compareAtPricePerUnit?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3854
|
+
};
|
|
3855
|
+
attributes: Array<Pick<Attribute, 'key' | 'value'>>;
|
|
3856
|
+
attributeSelections: Array<Pick<AttributeSelection, 'attributeDefinitionId' | 'attributeName' | 'type' | 'fillingMode' | 'billingMode' | 'optionId' | 'optionLabel' | 'optionIds' | 'textValue' | 'surchargeAmount' | 'surchargeType' | 'taxClassId' | 'linkedVariantId'>>;
|
|
3857
|
+
})>;
|
|
3858
|
+
pageInfo: Pick<PageInfo, 'hasNextPage' | 'hasPreviousPage' | 'startCursor' | 'endCursor'>;
|
|
3859
|
+
});
|
|
3860
|
+
buyerIdentity?: Maybe<Pick<CartBuyerIdentity, 'email' | 'phone' | 'countryCode'>>;
|
|
3861
|
+
discountCodes: Array<Pick<CartDiscountCode, 'code' | 'isApplicable'>>;
|
|
3862
|
+
discountAllocations: Array<(Pick<CartDiscountAllocation, 'discountCode'> & {
|
|
3863
|
+
amount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3864
|
+
})>;
|
|
3865
|
+
attributes: Array<Pick<CartAttribute, 'key' | 'value'>>;
|
|
3866
|
+
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
3867
|
+
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
3868
|
+
})>;
|
|
3869
|
+
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
3870
|
+
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
3871
|
+
})>;
|
|
3872
|
+
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
3873
|
+
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3874
|
+
})>;
|
|
3875
|
+
selectedPaymentMethod?: Maybe<Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'icon' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'>>;
|
|
3876
|
+
appliedGiftCards: Array<(Pick<CartAppliedGiftCard, 'id' | 'maskedCode' | 'lastCharacters'> & {
|
|
3877
|
+
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3878
|
+
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3879
|
+
})>;
|
|
3880
|
+
})>;
|
|
3881
|
+
userErrors: Array<Pick<UserError, 'message' | 'code' | 'field'>>;
|
|
3882
|
+
warnings: Array<Pick<CartWarning, 'message' | 'code' | 'target'>>;
|
|
3883
|
+
};
|
|
3884
|
+
};
|
|
3885
|
+
export type CartUpdateAttributesMutationVariables = Exact<{
|
|
3886
|
+
id: Scalars['ID']['input'];
|
|
3887
|
+
attributes: Array<CartAttributeInput> | CartAttributeInput;
|
|
3888
|
+
}>;
|
|
3889
|
+
export type CartUpdateAttributesMutation = {
|
|
3890
|
+
cartUpdateAttributes: {
|
|
3891
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt'> & {
|
|
3892
|
+
cost: {
|
|
3893
|
+
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3894
|
+
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3895
|
+
totalTax?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3896
|
+
totalDuty?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3897
|
+
checkoutCharge?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3898
|
+
};
|
|
3899
|
+
lines: (Pick<CartLineConnection, 'totalCount'> & {
|
|
3900
|
+
nodes: Array<(Pick<CartLine, 'id' | 'quantity' | 'productId' | 'productTitle' | 'productHandle' | 'productType' | 'requiresShipping'> & {
|
|
3901
|
+
variant: (Pick<ProductVariant, 'id' | 'title' | 'sku' | 'isAvailable' | 'availableStock' | 'barcode' | 'sortOrder'> & {
|
|
3902
|
+
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3903
|
+
compareAtPrice?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3904
|
+
image?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
3905
|
+
selectedOptions: Array<Pick<SelectedOption, 'name' | 'value'>>;
|
|
3906
|
+
weight?: Maybe<Pick<Weight, 'value' | 'unit'>>;
|
|
3907
|
+
});
|
|
3908
|
+
cost: {
|
|
3909
|
+
pricePerUnit: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3910
|
+
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3911
|
+
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3912
|
+
compareAtPricePerUnit?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3913
|
+
};
|
|
3914
|
+
attributes: Array<Pick<Attribute, 'key' | 'value'>>;
|
|
3915
|
+
attributeSelections: Array<Pick<AttributeSelection, 'attributeDefinitionId' | 'attributeName' | 'type' | 'fillingMode' | 'billingMode' | 'optionId' | 'optionLabel' | 'optionIds' | 'textValue' | 'surchargeAmount' | 'surchargeType' | 'taxClassId' | 'linkedVariantId'>>;
|
|
3916
|
+
})>;
|
|
3917
|
+
pageInfo: Pick<PageInfo, 'hasNextPage' | 'hasPreviousPage' | 'startCursor' | 'endCursor'>;
|
|
3918
|
+
});
|
|
3919
|
+
buyerIdentity?: Maybe<Pick<CartBuyerIdentity, 'email' | 'phone' | 'countryCode'>>;
|
|
3920
|
+
discountCodes: Array<Pick<CartDiscountCode, 'code' | 'isApplicable'>>;
|
|
3921
|
+
discountAllocations: Array<(Pick<CartDiscountAllocation, 'discountCode'> & {
|
|
3922
|
+
amount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3923
|
+
})>;
|
|
3924
|
+
attributes: Array<Pick<CartAttribute, 'key' | 'value'>>;
|
|
3925
|
+
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
3926
|
+
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
3927
|
+
})>;
|
|
3928
|
+
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
3929
|
+
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
3930
|
+
})>;
|
|
3931
|
+
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
3932
|
+
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3933
|
+
})>;
|
|
3934
|
+
selectedPaymentMethod?: Maybe<Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'icon' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'>>;
|
|
3935
|
+
appliedGiftCards: Array<(Pick<CartAppliedGiftCard, 'id' | 'maskedCode' | 'lastCharacters'> & {
|
|
3936
|
+
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3937
|
+
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3938
|
+
})>;
|
|
3939
|
+
})>;
|
|
3940
|
+
userErrors: Array<Pick<UserError, 'message' | 'code' | 'field'>>;
|
|
3941
|
+
warnings: Array<Pick<CartWarning, 'message' | 'code' | 'target'>>;
|
|
3942
|
+
};
|
|
3943
|
+
};
|
|
3944
|
+
export type CartUpdateBuyerIdentityMutationVariables = Exact<{
|
|
3945
|
+
id: Scalars['ID']['input'];
|
|
3946
|
+
buyerIdentity: CartBuyerIdentityInput;
|
|
3947
|
+
}>;
|
|
3948
|
+
export type CartUpdateBuyerIdentityMutation = {
|
|
3949
|
+
cartUpdateBuyerIdentity: {
|
|
3950
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt'> & {
|
|
3951
|
+
cost: {
|
|
3952
|
+
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3953
|
+
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3954
|
+
totalTax?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3955
|
+
totalDuty?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3956
|
+
checkoutCharge?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3957
|
+
};
|
|
3958
|
+
lines: (Pick<CartLineConnection, 'totalCount'> & {
|
|
3959
|
+
nodes: Array<(Pick<CartLine, 'id' | 'quantity' | 'productId' | 'productTitle' | 'productHandle' | 'productType' | 'requiresShipping'> & {
|
|
3960
|
+
variant: (Pick<ProductVariant, 'id' | 'title' | 'sku' | 'isAvailable' | 'availableStock' | 'barcode' | 'sortOrder'> & {
|
|
3961
|
+
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3962
|
+
compareAtPrice?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3963
|
+
image?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
3964
|
+
selectedOptions: Array<Pick<SelectedOption, 'name' | 'value'>>;
|
|
3965
|
+
weight?: Maybe<Pick<Weight, 'value' | 'unit'>>;
|
|
3966
|
+
});
|
|
3967
|
+
cost: {
|
|
3968
|
+
pricePerUnit: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3969
|
+
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3970
|
+
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3971
|
+
compareAtPricePerUnit?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3972
|
+
};
|
|
3973
|
+
attributes: Array<Pick<Attribute, 'key' | 'value'>>;
|
|
3974
|
+
attributeSelections: Array<Pick<AttributeSelection, 'attributeDefinitionId' | 'attributeName' | 'type' | 'fillingMode' | 'billingMode' | 'optionId' | 'optionLabel' | 'optionIds' | 'textValue' | 'surchargeAmount' | 'surchargeType' | 'taxClassId' | 'linkedVariantId'>>;
|
|
3975
|
+
})>;
|
|
3976
|
+
pageInfo: Pick<PageInfo, 'hasNextPage' | 'hasPreviousPage' | 'startCursor' | 'endCursor'>;
|
|
3977
|
+
});
|
|
3978
|
+
buyerIdentity?: Maybe<Pick<CartBuyerIdentity, 'email' | 'phone' | 'countryCode'>>;
|
|
3979
|
+
discountCodes: Array<Pick<CartDiscountCode, 'code' | 'isApplicable'>>;
|
|
3980
|
+
discountAllocations: Array<(Pick<CartDiscountAllocation, 'discountCode'> & {
|
|
3981
|
+
amount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3982
|
+
})>;
|
|
3983
|
+
attributes: Array<Pick<CartAttribute, 'key' | 'value'>>;
|
|
3984
|
+
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
3985
|
+
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
3986
|
+
})>;
|
|
3987
|
+
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
3988
|
+
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
3989
|
+
})>;
|
|
3990
|
+
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
3991
|
+
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3992
|
+
})>;
|
|
3993
|
+
selectedPaymentMethod?: Maybe<Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'icon' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'>>;
|
|
3994
|
+
appliedGiftCards: Array<(Pick<CartAppliedGiftCard, 'id' | 'maskedCode' | 'lastCharacters'> & {
|
|
3995
|
+
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3996
|
+
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3997
|
+
})>;
|
|
3998
|
+
})>;
|
|
3999
|
+
userErrors: Array<Pick<UserError, 'message' | 'code' | 'field'>>;
|
|
4000
|
+
warnings: Array<Pick<CartWarning, 'message' | 'code' | 'target'>>;
|
|
4001
|
+
};
|
|
4002
|
+
};
|
|
4003
|
+
export type CartUpdateGiftCardRecipientMutationVariables = Exact<{
|
|
4004
|
+
input: CartUpdateGiftCardRecipientInput;
|
|
4005
|
+
}>;
|
|
4006
|
+
export type CartUpdateGiftCardRecipientMutation = {
|
|
4007
|
+
cartUpdateGiftCardRecipient: {
|
|
4008
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt'> & {
|
|
4009
|
+
cost: {
|
|
4010
|
+
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4011
|
+
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4012
|
+
totalTax?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4013
|
+
totalDuty?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4014
|
+
checkoutCharge?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4015
|
+
};
|
|
4016
|
+
lines: (Pick<CartLineConnection, 'totalCount'> & {
|
|
4017
|
+
nodes: Array<(Pick<CartLine, 'id' | 'quantity' | 'productId' | 'productTitle' | 'productHandle' | 'productType' | 'requiresShipping'> & {
|
|
4018
|
+
variant: (Pick<ProductVariant, 'id' | 'title' | 'sku' | 'isAvailable' | 'availableStock' | 'barcode' | 'sortOrder'> & {
|
|
4019
|
+
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4020
|
+
compareAtPrice?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4021
|
+
image?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
4022
|
+
selectedOptions: Array<Pick<SelectedOption, 'name' | 'value'>>;
|
|
4023
|
+
weight?: Maybe<Pick<Weight, 'value' | 'unit'>>;
|
|
4024
|
+
});
|
|
4025
|
+
cost: {
|
|
4026
|
+
pricePerUnit: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4027
|
+
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4028
|
+
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4029
|
+
compareAtPricePerUnit?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4030
|
+
};
|
|
4031
|
+
attributes: Array<Pick<Attribute, 'key' | 'value'>>;
|
|
4032
|
+
attributeSelections: Array<Pick<AttributeSelection, 'attributeDefinitionId' | 'attributeName' | 'type' | 'fillingMode' | 'billingMode' | 'optionId' | 'optionLabel' | 'optionIds' | 'textValue' | 'surchargeAmount' | 'surchargeType' | 'taxClassId' | 'linkedVariantId'>>;
|
|
4033
|
+
})>;
|
|
4034
|
+
pageInfo: Pick<PageInfo, 'hasNextPage' | 'hasPreviousPage' | 'startCursor' | 'endCursor'>;
|
|
4035
|
+
});
|
|
4036
|
+
buyerIdentity?: Maybe<Pick<CartBuyerIdentity, 'email' | 'phone' | 'countryCode'>>;
|
|
4037
|
+
discountCodes: Array<Pick<CartDiscountCode, 'code' | 'isApplicable'>>;
|
|
4038
|
+
discountAllocations: Array<(Pick<CartDiscountAllocation, 'discountCode'> & {
|
|
4039
|
+
amount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4040
|
+
})>;
|
|
4041
|
+
attributes: Array<Pick<CartAttribute, 'key' | 'value'>>;
|
|
4042
|
+
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
4043
|
+
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4044
|
+
})>;
|
|
4045
|
+
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
4046
|
+
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4047
|
+
})>;
|
|
4048
|
+
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
4049
|
+
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4050
|
+
})>;
|
|
4051
|
+
selectedPaymentMethod?: Maybe<Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'icon' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'>>;
|
|
4052
|
+
appliedGiftCards: Array<(Pick<CartAppliedGiftCard, 'id' | 'maskedCode' | 'lastCharacters'> & {
|
|
4053
|
+
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4054
|
+
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4055
|
+
})>;
|
|
4056
|
+
})>;
|
|
4057
|
+
userErrors: Array<Pick<UserError, 'message' | 'code' | 'field'>>;
|
|
4058
|
+
warnings: Array<Pick<CartWarning, 'message' | 'code' | 'target'>>;
|
|
4059
|
+
};
|
|
4060
|
+
};
|
|
4061
|
+
export type CartUpdateLinesMutationVariables = Exact<{
|
|
4062
|
+
id: Scalars['ID']['input'];
|
|
4063
|
+
lines: Array<CartLineUpdateInput> | CartLineUpdateInput;
|
|
4064
|
+
}>;
|
|
4065
|
+
export type CartUpdateLinesMutation = {
|
|
4066
|
+
cartUpdateLines: {
|
|
4067
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt'> & {
|
|
4068
|
+
cost: {
|
|
4069
|
+
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4070
|
+
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4071
|
+
totalTax?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4072
|
+
totalDuty?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4073
|
+
checkoutCharge?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4074
|
+
};
|
|
4075
|
+
lines: (Pick<CartLineConnection, 'totalCount'> & {
|
|
4076
|
+
nodes: Array<(Pick<CartLine, 'id' | 'quantity' | 'productId' | 'productTitle' | 'productHandle' | 'productType' | 'requiresShipping'> & {
|
|
4077
|
+
variant: (Pick<ProductVariant, 'id' | 'title' | 'sku' | 'isAvailable' | 'availableStock' | 'barcode' | 'sortOrder'> & {
|
|
4078
|
+
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4079
|
+
compareAtPrice?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4080
|
+
image?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
4081
|
+
selectedOptions: Array<Pick<SelectedOption, 'name' | 'value'>>;
|
|
4082
|
+
weight?: Maybe<Pick<Weight, 'value' | 'unit'>>;
|
|
4083
|
+
});
|
|
4084
|
+
cost: {
|
|
4085
|
+
pricePerUnit: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4086
|
+
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4087
|
+
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4088
|
+
compareAtPricePerUnit?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4089
|
+
};
|
|
4090
|
+
attributes: Array<Pick<Attribute, 'key' | 'value'>>;
|
|
4091
|
+
attributeSelections: Array<Pick<AttributeSelection, 'attributeDefinitionId' | 'attributeName' | 'type' | 'fillingMode' | 'billingMode' | 'optionId' | 'optionLabel' | 'optionIds' | 'textValue' | 'surchargeAmount' | 'surchargeType' | 'taxClassId' | 'linkedVariantId'>>;
|
|
4092
|
+
})>;
|
|
4093
|
+
pageInfo: Pick<PageInfo, 'hasNextPage' | 'hasPreviousPage' | 'startCursor' | 'endCursor'>;
|
|
4094
|
+
});
|
|
4095
|
+
buyerIdentity?: Maybe<Pick<CartBuyerIdentity, 'email' | 'phone' | 'countryCode'>>;
|
|
4096
|
+
discountCodes: Array<Pick<CartDiscountCode, 'code' | 'isApplicable'>>;
|
|
4097
|
+
discountAllocations: Array<(Pick<CartDiscountAllocation, 'discountCode'> & {
|
|
4098
|
+
amount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4099
|
+
})>;
|
|
4100
|
+
attributes: Array<Pick<CartAttribute, 'key' | 'value'>>;
|
|
4101
|
+
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
4102
|
+
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4103
|
+
})>;
|
|
4104
|
+
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
4105
|
+
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4106
|
+
})>;
|
|
4107
|
+
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
4108
|
+
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4109
|
+
})>;
|
|
4110
|
+
selectedPaymentMethod?: Maybe<Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'icon' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'>>;
|
|
4111
|
+
appliedGiftCards: Array<(Pick<CartAppliedGiftCard, 'id' | 'maskedCode' | 'lastCharacters'> & {
|
|
4112
|
+
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4113
|
+
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4114
|
+
})>;
|
|
4115
|
+
})>;
|
|
4116
|
+
userErrors: Array<Pick<UserError, 'message' | 'code' | 'field'>>;
|
|
4117
|
+
warnings: Array<Pick<CartWarning, 'message' | 'code' | 'target'>>;
|
|
4118
|
+
};
|
|
4119
|
+
};
|
|
4120
|
+
export type CartUpdateNoteMutationVariables = Exact<{
|
|
4121
|
+
id: Scalars['ID']['input'];
|
|
4122
|
+
note: Scalars['String']['input'];
|
|
4123
|
+
}>;
|
|
4124
|
+
export type CartUpdateNoteMutation = {
|
|
4125
|
+
cartUpdateNote: {
|
|
4126
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt'> & {
|
|
4127
|
+
cost: {
|
|
4128
|
+
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4129
|
+
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4130
|
+
totalTax?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4131
|
+
totalDuty?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4132
|
+
checkoutCharge?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4133
|
+
};
|
|
4134
|
+
lines: (Pick<CartLineConnection, 'totalCount'> & {
|
|
4135
|
+
nodes: Array<(Pick<CartLine, 'id' | 'quantity' | 'productId' | 'productTitle' | 'productHandle' | 'productType' | 'requiresShipping'> & {
|
|
4136
|
+
variant: (Pick<ProductVariant, 'id' | 'title' | 'sku' | 'isAvailable' | 'availableStock' | 'barcode' | 'sortOrder'> & {
|
|
4137
|
+
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4138
|
+
compareAtPrice?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4139
|
+
image?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
4140
|
+
selectedOptions: Array<Pick<SelectedOption, 'name' | 'value'>>;
|
|
4141
|
+
weight?: Maybe<Pick<Weight, 'value' | 'unit'>>;
|
|
4142
|
+
});
|
|
4143
|
+
cost: {
|
|
4144
|
+
pricePerUnit: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4145
|
+
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4146
|
+
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4147
|
+
compareAtPricePerUnit?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4148
|
+
};
|
|
4149
|
+
attributes: Array<Pick<Attribute, 'key' | 'value'>>;
|
|
4150
|
+
attributeSelections: Array<Pick<AttributeSelection, 'attributeDefinitionId' | 'attributeName' | 'type' | 'fillingMode' | 'billingMode' | 'optionId' | 'optionLabel' | 'optionIds' | 'textValue' | 'surchargeAmount' | 'surchargeType' | 'taxClassId' | 'linkedVariantId'>>;
|
|
4151
|
+
})>;
|
|
4152
|
+
pageInfo: Pick<PageInfo, 'hasNextPage' | 'hasPreviousPage' | 'startCursor' | 'endCursor'>;
|
|
4153
|
+
});
|
|
4154
|
+
buyerIdentity?: Maybe<Pick<CartBuyerIdentity, 'email' | 'phone' | 'countryCode'>>;
|
|
4155
|
+
discountCodes: Array<Pick<CartDiscountCode, 'code' | 'isApplicable'>>;
|
|
4156
|
+
discountAllocations: Array<(Pick<CartDiscountAllocation, 'discountCode'> & {
|
|
4157
|
+
amount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4158
|
+
})>;
|
|
4159
|
+
attributes: Array<Pick<CartAttribute, 'key' | 'value'>>;
|
|
4160
|
+
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
4161
|
+
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4162
|
+
})>;
|
|
4163
|
+
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
4164
|
+
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4165
|
+
})>;
|
|
4166
|
+
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
4167
|
+
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4168
|
+
})>;
|
|
4169
|
+
selectedPaymentMethod?: Maybe<Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'icon' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'>>;
|
|
4170
|
+
appliedGiftCards: Array<(Pick<CartAppliedGiftCard, 'id' | 'maskedCode' | 'lastCharacters'> & {
|
|
4171
|
+
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4172
|
+
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4173
|
+
})>;
|
|
4174
|
+
})>;
|
|
4175
|
+
userErrors: Array<Pick<UserError, 'message' | 'code' | 'field'>>;
|
|
4176
|
+
warnings: Array<Pick<CartWarning, 'message' | 'code' | 'target'>>;
|
|
4177
|
+
};
|
|
4178
|
+
};
|
|
4179
|
+
export type CartValidateDiscountCodeQueryVariables = Exact<{
|
|
4180
|
+
cartId: Scalars['ID']['input'];
|
|
4181
|
+
discountCode: Scalars['String']['input'];
|
|
4182
|
+
}>;
|
|
4183
|
+
export type CartValidateDiscountCodeQuery = {
|
|
4184
|
+
cartValidateDiscountCode: (Pick<DiscountValidationResult, 'isValid'> & {
|
|
4185
|
+
discount?: Maybe<(Pick<DiscountInfo, 'code' | 'title' | 'type' | 'value'> & {
|
|
4186
|
+
discountAmount?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4187
|
+
})>;
|
|
4188
|
+
error?: Maybe<Pick<DiscountValidationError, 'code' | 'message'>>;
|
|
4189
|
+
});
|
|
4190
|
+
};
|
|
4191
|
+
export type OrderByTokenQueryVariables = Exact<{
|
|
4192
|
+
token: Scalars['String']['input'];
|
|
4193
|
+
email?: InputMaybe<Scalars['String']['input']>;
|
|
4194
|
+
}>;
|
|
4195
|
+
export type OrderByTokenQuery = {
|
|
4196
|
+
orderByToken?: Maybe<(Pick<Order, 'id' | 'orderNumber' | 'accessToken' | 'status' | 'paymentStatus' | 'fulfillmentStatus' | 'processedAt' | 'confirmedAt' | 'cancelledAt' | 'expiredAt' | 'itemCount' | 'canCreatePayment' | 'paymentMethodType'> & {
|
|
4197
|
+
totals: {
|
|
4198
|
+
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4199
|
+
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4200
|
+
totalTax?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4201
|
+
totalShipping?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4202
|
+
};
|
|
4203
|
+
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
4204
|
+
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4205
|
+
})>;
|
|
4206
|
+
})>;
|
|
4207
|
+
};
|
|
4208
|
+
export type PaymentCreateMutationVariables = Exact<{
|
|
4209
|
+
input: PaymentCreateInput;
|
|
4210
|
+
}>;
|
|
4211
|
+
export type PaymentCreateMutation = {
|
|
4212
|
+
paymentCreate: {
|
|
4213
|
+
payment?: Maybe<Pick<PaymentSession, 'id' | 'orderId' | 'flow' | 'provider' | 'redirectUrl' | 'clientSecret' | 'status' | 'expiresAt'>>;
|
|
4214
|
+
userErrors: Array<Pick<UserError, 'message' | 'code' | 'field'>>;
|
|
4215
|
+
};
|
|
4216
|
+
};
|
|
4217
|
+
export type CustomerAddressesQueryVariables = Exact<{
|
|
4218
|
+
[key: string]: never;
|
|
4219
|
+
}>;
|
|
4220
|
+
export type CustomerAddressesQuery = {
|
|
4221
|
+
customer?: Maybe<{
|
|
4222
|
+
addresses: (Pick<MailingAddressConnection, 'totalCount'> & {
|
|
4223
|
+
nodes: Array<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
4224
|
+
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4225
|
+
})>;
|
|
4226
|
+
pageInfo: Pick<PageInfo, 'hasNextPage' | 'hasPreviousPage' | 'startCursor' | 'endCursor'>;
|
|
4227
|
+
});
|
|
4228
|
+
}>;
|
|
4229
|
+
};
|
|
4230
|
+
export type CustomerLoginMutationVariables = Exact<{
|
|
4231
|
+
input: CustomerAccessTokenCreateInput;
|
|
4232
|
+
}>;
|
|
4233
|
+
export type CustomerLoginMutation = {
|
|
4234
|
+
customerLogin: {
|
|
4235
|
+
customerAccessToken?: Maybe<Pick<CustomerAccessToken, 'accessToken' | 'expiresAt'>>;
|
|
4236
|
+
userErrors: Array<Pick<UserError, 'message' | 'field' | 'code'>>;
|
|
4237
|
+
};
|
|
4238
|
+
};
|
|
4239
|
+
export type CustomerLogoutMutationVariables = Exact<{
|
|
4240
|
+
[key: string]: never;
|
|
4241
|
+
}>;
|
|
4242
|
+
export type CustomerLogoutMutation = {
|
|
4243
|
+
customerLogout: (Pick<CustomerLogoutPayload, 'deletedAccessToken' | 'deletedCustomerAccessTokenId'> & {
|
|
4244
|
+
userErrors: Array<Pick<UserError, 'message' | 'field' | 'code'>>;
|
|
4245
|
+
});
|
|
4246
|
+
};
|
|
4247
|
+
export type CustomerQueryVariables = Exact<{
|
|
4248
|
+
[key: string]: never;
|
|
4249
|
+
}>;
|
|
4250
|
+
export type CustomerQuery = {
|
|
4251
|
+
customer?: Maybe<(Pick<Customer, 'id' | 'email' | 'firstName' | 'lastName' | 'displayName' | 'phone' | 'isEmailVerified' | 'emailMarketing' | 'orderCount' | 'createdAt' | 'updatedAt'> & {
|
|
4252
|
+
defaultAddress?: Maybe<Pick<MailingAddress, 'id' | 'streetLine1' | 'streetLine2' | 'city' | 'company' | 'country' | 'countryCode' | 'firstName' | 'lastName' | 'name' | 'phone' | 'state' | 'stateCode' | 'postalCode' | 'isDefault'>>;
|
|
4253
|
+
totalSpent: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4254
|
+
})>;
|
|
4255
|
+
};
|
|
4256
|
+
export type CustomerRefreshTokenMutationVariables = Exact<{
|
|
4257
|
+
[key: string]: never;
|
|
4258
|
+
}>;
|
|
4259
|
+
export type CustomerRefreshTokenMutation = {
|
|
4260
|
+
customerRefreshToken: {
|
|
4261
|
+
customerAccessToken?: Maybe<Pick<CustomerAccessToken, 'accessToken' | 'expiresAt'>>;
|
|
4262
|
+
userErrors: Array<Pick<UserError, 'message' | 'field' | 'code'>>;
|
|
4263
|
+
};
|
|
4264
|
+
};
|
|
4265
|
+
export type CustomerSignupMutationVariables = Exact<{
|
|
4266
|
+
input: CustomerCreateInput;
|
|
4267
|
+
}>;
|
|
4268
|
+
export type CustomerSignupMutation = {
|
|
4269
|
+
customerSignup: {
|
|
4270
|
+
customer?: Maybe<(Pick<Customer, 'id' | 'email' | 'firstName' | 'lastName' | 'displayName' | 'phone' | 'isEmailVerified' | 'emailMarketing' | 'orderCount' | 'createdAt' | 'updatedAt'> & {
|
|
4271
|
+
defaultAddress?: Maybe<Pick<MailingAddress, 'id' | 'streetLine1' | 'streetLine2' | 'city' | 'company' | 'country' | 'countryCode' | 'firstName' | 'lastName' | 'name' | 'phone' | 'state' | 'stateCode' | 'postalCode' | 'isDefault'>>;
|
|
4272
|
+
totalSpent: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4273
|
+
})>;
|
|
4274
|
+
customerAccessToken?: Maybe<Pick<CustomerAccessToken, 'accessToken' | 'expiresAt'>>;
|
|
4275
|
+
userErrors: Array<Pick<UserError, 'message' | 'field' | 'code'>>;
|
|
4276
|
+
};
|
|
4277
|
+
};
|
|
4278
|
+
export type AvailablePaymentMethodsFragment = {
|
|
4279
|
+
methods: Array<Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'icon' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'>>;
|
|
4280
|
+
defaultMethod?: Maybe<Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'icon' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'>>;
|
|
4281
|
+
};
|
|
4282
|
+
export type PaymentMethodFragment = Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'icon' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'>;
|
|
4283
|
+
export type CartFragment = (Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt'> & {
|
|
4284
|
+
cost: {
|
|
4285
|
+
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4286
|
+
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4287
|
+
totalTax?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4288
|
+
totalDuty?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4289
|
+
checkoutCharge?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4290
|
+
};
|
|
4291
|
+
lines: (Pick<CartLineConnection, 'totalCount'> & {
|
|
4292
|
+
nodes: Array<(Pick<CartLine, 'id' | 'quantity' | 'productId' | 'productTitle' | 'productHandle' | 'productType' | 'requiresShipping'> & {
|
|
4293
|
+
variant: (Pick<ProductVariant, 'id' | 'title' | 'sku' | 'isAvailable' | 'availableStock' | 'barcode' | 'sortOrder'> & {
|
|
4294
|
+
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4295
|
+
compareAtPrice?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4296
|
+
image?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
4297
|
+
selectedOptions: Array<Pick<SelectedOption, 'name' | 'value'>>;
|
|
4298
|
+
weight?: Maybe<Pick<Weight, 'value' | 'unit'>>;
|
|
4299
|
+
});
|
|
4300
|
+
cost: {
|
|
4301
|
+
pricePerUnit: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4302
|
+
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4303
|
+
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4304
|
+
compareAtPricePerUnit?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4305
|
+
};
|
|
4306
|
+
attributes: Array<Pick<Attribute, 'key' | 'value'>>;
|
|
4307
|
+
attributeSelections: Array<Pick<AttributeSelection, 'attributeDefinitionId' | 'attributeName' | 'type' | 'fillingMode' | 'billingMode' | 'optionId' | 'optionLabel' | 'optionIds' | 'textValue' | 'surchargeAmount' | 'surchargeType' | 'taxClassId' | 'linkedVariantId'>>;
|
|
4308
|
+
})>;
|
|
4309
|
+
pageInfo: Pick<PageInfo, 'hasNextPage' | 'hasPreviousPage' | 'startCursor' | 'endCursor'>;
|
|
4310
|
+
});
|
|
4311
|
+
buyerIdentity?: Maybe<Pick<CartBuyerIdentity, 'email' | 'phone' | 'countryCode'>>;
|
|
4312
|
+
discountCodes: Array<Pick<CartDiscountCode, 'code' | 'isApplicable'>>;
|
|
4313
|
+
discountAllocations: Array<(Pick<CartDiscountAllocation, 'discountCode'> & {
|
|
4314
|
+
amount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4315
|
+
})>;
|
|
4316
|
+
attributes: Array<Pick<CartAttribute, 'key' | 'value'>>;
|
|
4317
|
+
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
4318
|
+
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4319
|
+
})>;
|
|
4320
|
+
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
4321
|
+
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4322
|
+
})>;
|
|
4323
|
+
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
4324
|
+
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4325
|
+
})>;
|
|
4326
|
+
selectedPaymentMethod?: Maybe<Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'icon' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'>>;
|
|
4327
|
+
appliedGiftCards: Array<(Pick<CartAppliedGiftCard, 'id' | 'maskedCode' | 'lastCharacters'> & {
|
|
4328
|
+
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4329
|
+
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4330
|
+
})>;
|
|
4331
|
+
});
|
|
4332
|
+
export type CartCostFragment = {
|
|
4333
|
+
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4334
|
+
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4335
|
+
totalTax?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4336
|
+
totalDuty?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4337
|
+
checkoutCharge?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4338
|
+
};
|
|
4339
|
+
export type CartLineFragment = (Pick<CartLine, 'id' | 'quantity' | 'productId' | 'productTitle' | 'productHandle' | 'productType' | 'requiresShipping'> & {
|
|
4340
|
+
variant: (Pick<ProductVariant, 'id' | 'title' | 'sku' | 'isAvailable' | 'availableStock' | 'barcode' | 'sortOrder'> & {
|
|
4341
|
+
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4342
|
+
compareAtPrice?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4343
|
+
image?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
4344
|
+
selectedOptions: Array<Pick<SelectedOption, 'name' | 'value'>>;
|
|
4345
|
+
weight?: Maybe<Pick<Weight, 'value' | 'unit'>>;
|
|
4346
|
+
});
|
|
4347
|
+
cost: {
|
|
4348
|
+
pricePerUnit: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4349
|
+
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4350
|
+
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4351
|
+
compareAtPricePerUnit?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4352
|
+
};
|
|
4353
|
+
attributes: Array<Pick<Attribute, 'key' | 'value'>>;
|
|
4354
|
+
attributeSelections: Array<Pick<AttributeSelection, 'attributeDefinitionId' | 'attributeName' | 'type' | 'fillingMode' | 'billingMode' | 'optionId' | 'optionLabel' | 'optionIds' | 'textValue' | 'surchargeAmount' | 'surchargeType' | 'taxClassId' | 'linkedVariantId'>>;
|
|
4355
|
+
});
|
|
4356
|
+
export type CartLineCostFragment = {
|
|
4357
|
+
pricePerUnit: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4358
|
+
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4359
|
+
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4360
|
+
compareAtPricePerUnit?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4361
|
+
};
|
|
4362
|
+
export type ProductVariantFragment = (Pick<ProductVariant, 'id' | 'title' | 'sku' | 'isAvailable' | 'availableStock' | 'barcode' | 'sortOrder'> & {
|
|
4363
|
+
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4364
|
+
compareAtPrice?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4365
|
+
image?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
4366
|
+
selectedOptions: Array<Pick<SelectedOption, 'name' | 'value'>>;
|
|
4367
|
+
weight?: Maybe<Pick<Weight, 'value' | 'unit'>>;
|
|
4368
|
+
});
|
|
4369
|
+
export type MoneyFragment = Pick<Money, 'amount' | 'currencyCode'>;
|
|
4370
|
+
export type ImageThumbnailFragment = Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>;
|
|
4371
|
+
export type SelectedOptionFragment = Pick<SelectedOption, 'name' | 'value'>;
|
|
4372
|
+
export type AttributeSelectionFragment = Pick<AttributeSelection, 'attributeDefinitionId' | 'attributeName' | 'type' | 'fillingMode' | 'billingMode' | 'optionId' | 'optionLabel' | 'optionIds' | 'textValue' | 'surchargeAmount' | 'surchargeType' | 'taxClassId' | 'linkedVariantId'>;
|
|
4373
|
+
export type CartBuyerIdentityFragment = Pick<CartBuyerIdentity, 'email' | 'phone' | 'countryCode'>;
|
|
4374
|
+
export type CartDiscountCodeFragment = Pick<CartDiscountCode, 'code' | 'isApplicable'>;
|
|
4375
|
+
export type CartDiscountAllocationFragment = (Pick<CartDiscountAllocation, 'discountCode'> & {
|
|
4376
|
+
amount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4377
|
+
});
|
|
4378
|
+
export type MailingAddressFragment = (Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
4379
|
+
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4380
|
+
});
|
|
4381
|
+
export type PickupPointFragment = Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>;
|
|
4382
|
+
export type CartShippingMethodFragment = (Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
4383
|
+
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4384
|
+
});
|
|
4385
|
+
export type CartAppliedGiftCardFragment = (Pick<CartAppliedGiftCard, 'id' | 'maskedCode' | 'lastCharacters'> & {
|
|
4386
|
+
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4387
|
+
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4388
|
+
});
|
|
4389
|
+
export type CartSelectedPaymentMethodFragment = Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'icon' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'>;
|
|
4390
|
+
export type PageInfoFragment = Pick<PageInfo, 'hasNextPage' | 'hasPreviousPage' | 'startCursor' | 'endCursor'>;
|
|
4391
|
+
export type UserErrorFragment = Pick<UserError, 'message' | 'code' | 'field'>;
|
|
4392
|
+
export type CartWarningFragment = Pick<CartWarning, 'message' | 'code' | 'target'>;
|
|
4393
|
+
export type AvailableShippingMethodFragment = (Pick<AvailableShippingMethod, 'id' | 'name' | 'description' | 'deliveryType' | 'isFree' | 'sortOrder'> & {
|
|
4394
|
+
carrier?: Maybe<Pick<ShippingCarrier, 'id' | 'name' | 'logoUrl' | 'serviceCode'>>;
|
|
4395
|
+
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4396
|
+
estimatedDelivery?: Maybe<Pick<DeliveryEstimate, 'minDays' | 'maxDays' | 'description'>>;
|
|
4397
|
+
freeShippingProgress?: Maybe<(Pick<FreeShippingProgress, 'qualifies' | 'progressPercent' | 'message'> & {
|
|
4398
|
+
currentAmount?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4399
|
+
threshold?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4400
|
+
remaining?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4401
|
+
})>;
|
|
4402
|
+
});
|
|
4403
|
+
export type ShippingCarrierFragment = Pick<ShippingCarrier, 'id' | 'name' | 'logoUrl' | 'serviceCode'>;
|
|
4404
|
+
export type DeliveryEstimateFragment = Pick<DeliveryEstimate, 'minDays' | 'maxDays' | 'description'>;
|
|
4405
|
+
export type FreeShippingProgressFragment = (Pick<FreeShippingProgress, 'qualifies' | 'progressPercent' | 'message'> & {
|
|
4406
|
+
currentAmount?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4407
|
+
threshold?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4408
|
+
remaining?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4409
|
+
});
|
|
4410
|
+
export type OrderFragment = (Pick<Order, 'id' | 'orderNumber' | 'accessToken' | 'status' | 'paymentStatus' | 'fulfillmentStatus' | 'processedAt' | 'confirmedAt' | 'cancelledAt' | 'expiredAt' | 'itemCount' | 'canCreatePayment' | 'paymentMethodType'> & {
|
|
4411
|
+
totals: {
|
|
4412
|
+
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4413
|
+
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4414
|
+
totalTax?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4415
|
+
totalShipping?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4416
|
+
};
|
|
4417
|
+
shippingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
4418
|
+
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4419
|
+
})>;
|
|
4420
|
+
});
|
|
4421
|
+
export type PaymentSessionFragment = Pick<PaymentSession, 'id' | 'orderId' | 'flow' | 'provider' | 'redirectUrl' | 'clientSecret' | 'status' | 'expiresAt'>;
|
|
4422
|
+
export type CustomerAccessTokenFieldsFragment = Pick<CustomerAccessToken, 'accessToken' | 'expiresAt'>;
|
|
4423
|
+
export type UserErrorFieldsFragment = Pick<UserError, 'message' | 'field' | 'code'>;
|
|
4424
|
+
export type CustomerFieldsFragment = (Pick<Customer, 'id' | 'email' | 'firstName' | 'lastName' | 'displayName' | 'phone' | 'isEmailVerified' | 'emailMarketing' | 'orderCount' | 'createdAt' | 'updatedAt'> & {
|
|
4425
|
+
defaultAddress?: Maybe<Pick<MailingAddress, 'id' | 'streetLine1' | 'streetLine2' | 'city' | 'company' | 'country' | 'countryCode' | 'firstName' | 'lastName' | 'name' | 'phone' | 'state' | 'stateCode' | 'postalCode' | 'isDefault'>>;
|
|
4426
|
+
totalSpent: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4427
|
+
});
|
|
4428
|
+
//# sourceMappingURL=operation-types.d.ts.map
|