@doswiftly/storefront-sdk 16.1.0 → 18.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1255 -0
- package/README.md +16 -4
- package/dist/core/auth/auth-client.d.ts +39 -3
- package/dist/core/auth/auth-client.d.ts.map +1 -1
- package/dist/core/auth/auth-client.js +51 -3
- package/dist/core/auth/cookie-config.d.ts +52 -3
- package/dist/core/auth/cookie-config.d.ts.map +1 -1
- package/dist/core/auth/cookie-config.js +60 -6
- package/dist/core/auth/handlers.d.ts +46 -0
- package/dist/core/auth/handlers.d.ts.map +1 -1
- package/dist/core/auth/handlers.js +9 -2
- package/dist/core/auth/session-events.d.ts +38 -0
- package/dist/core/auth/session-events.d.ts.map +1 -0
- package/dist/core/auth/session-events.js +35 -0
- package/dist/core/cart/cart-client.d.ts +10 -1
- package/dist/core/cart/cart-client.d.ts.map +1 -1
- package/dist/core/cart/cart-client.js +17 -1
- package/dist/core/cart/cart-recovery.d.ts +23 -0
- package/dist/core/cart/cart-recovery.d.ts.map +1 -1
- package/dist/core/cart/cart-recovery.js +20 -3
- package/dist/core/cart/types.d.ts +2 -1
- package/dist/core/cart/types.d.ts.map +1 -1
- package/dist/core/cart/types.js +7 -1
- package/dist/core/client/create-client.d.ts.map +1 -1
- package/dist/core/client/create-client.js +7 -3
- package/dist/core/client/execute.d.ts +29 -3
- package/dist/core/client/execute.d.ts.map +1 -1
- package/dist/core/client/execute.js +174 -3
- package/dist/core/client/types.d.ts +50 -2
- package/dist/core/client/types.d.ts.map +1 -1
- package/dist/core/errors.d.ts +6 -0
- package/dist/core/errors.d.ts.map +1 -1
- package/dist/core/errors.js +6 -0
- package/dist/core/generated/operation-types.d.ts +937 -182
- package/dist/core/generated/operation-types.d.ts.map +1 -1
- package/dist/core/generated/operation-types.js +560 -1
- package/dist/core/index.d.ts +6 -3
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +12 -2
- package/dist/core/middleware/session-retry.d.ts +47 -0
- package/dist/core/middleware/session-retry.d.ts.map +1 -0
- package/dist/core/middleware/session-retry.js +71 -0
- package/dist/core/operations/auth.d.ts.map +1 -1
- package/dist/core/operations/auth.js +1 -0
- package/dist/core/operations/cart.d.ts +7 -0
- package/dist/core/operations/cart.d.ts.map +1 -1
- package/dist/core/operations/cart.js +54 -3
- package/dist/react/components/PaymentInstrumentSection.d.ts +56 -0
- package/dist/react/components/PaymentInstrumentSection.d.ts.map +1 -0
- package/dist/react/components/PaymentInstrumentSection.js +89 -0
- package/dist/react/components/PaymentInstrumentTile.d.ts +56 -0
- package/dist/react/components/PaymentInstrumentTile.d.ts.map +1 -0
- package/dist/react/components/PaymentInstrumentTile.js +41 -0
- package/dist/react/components/index.d.ts +2 -0
- package/dist/react/components/index.d.ts.map +1 -1
- package/dist/react/components/index.js +2 -0
- package/dist/react/helpers/browser-data.d.ts +89 -0
- package/dist/react/helpers/browser-data.d.ts.map +1 -0
- package/dist/react/helpers/browser-data.js +84 -0
- package/dist/react/hooks/use-cart-manager.d.ts +104 -13
- package/dist/react/hooks/use-cart-manager.d.ts.map +1 -1
- package/dist/react/hooks/use-cart-manager.js +144 -12
- package/dist/react/hooks/use-login.d.ts.map +1 -1
- package/dist/react/hooks/use-login.js +3 -3
- package/dist/react/hooks/use-refresh-token.d.ts.map +1 -1
- package/dist/react/hooks/use-refresh-token.js +6 -4
- package/dist/react/hooks/use-session-expired.d.ts +16 -0
- package/dist/react/hooks/use-session-expired.d.ts.map +1 -0
- package/dist/react/hooks/use-session-expired.js +26 -0
- package/dist/react/hooks/use-session-refresh.d.ts +32 -0
- package/dist/react/hooks/use-session-refresh.d.ts.map +1 -0
- package/dist/react/hooks/use-session-refresh.js +147 -0
- package/dist/react/index.d.ts +5 -1
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +5 -1
- package/dist/react/providers/storefront-client-provider.d.ts +10 -1
- package/dist/react/providers/storefront-client-provider.d.ts.map +1 -1
- package/dist/react/providers/storefront-client-provider.js +38 -3
- package/dist/react/providers/storefront-provider.d.ts +51 -3
- package/dist/react/providers/storefront-provider.d.ts.map +1 -1
- package/dist/react/providers/storefront-provider.js +22 -5
- package/dist/react/server/create-storefront-auth-route.d.ts +63 -0
- package/dist/react/server/create-storefront-auth-route.d.ts.map +1 -0
- package/dist/react/server/create-storefront-auth-route.js +239 -0
- package/dist/react/server/get-initial-auth.d.ts +57 -0
- package/dist/react/server/get-initial-auth.d.ts.map +1 -0
- package/dist/react/server/get-initial-auth.js +55 -0
- package/dist/react/server/index.d.ts +3 -0
- package/dist/react/server/index.d.ts.map +1 -1
- package/dist/react/server/index.js +6 -0
- package/dist/react/stores/auth.store.d.ts +46 -2
- package/dist/react/stores/auth.store.d.ts.map +1 -1
- package/dist/react/stores/auth.store.js +19 -7
- package/package.json +4 -2
|
@@ -72,7 +72,11 @@ export type Attribute = {
|
|
|
72
72
|
/** Attribute value. Null when the key is set without an associated value. */
|
|
73
73
|
value?: Maybe<Scalars['String']['output']>;
|
|
74
74
|
};
|
|
75
|
-
export
|
|
75
|
+
export declare const AttributeBillingMode: {
|
|
76
|
+
readonly Bundled: "BUNDLED";
|
|
77
|
+
readonly SeparateLine: "SEPARATE_LINE";
|
|
78
|
+
};
|
|
79
|
+
export type AttributeBillingMode = typeof AttributeBillingMode[keyof typeof AttributeBillingMode];
|
|
76
80
|
export type AttributeDefinition = {
|
|
77
81
|
/** Display order */
|
|
78
82
|
displayOrder: Scalars['Int']['output'];
|
|
@@ -88,14 +92,19 @@ export type AttributeDefinition = {
|
|
|
88
92
|
isVisible: Scalars['Boolean']['output'];
|
|
89
93
|
/** Attribute name (e.g., "Color", "Size") */
|
|
90
94
|
name: Scalars['String']['output'];
|
|
91
|
-
/**
|
|
95
|
+
/** Optional grouping namespace (e.g. "inventory", "marketing", "content"). NULL = ungrouped. Helps distinguish custom ERP-data attributes from filterable catalog facets. */
|
|
92
96
|
namespace?: Maybe<Scalars['String']['output']>;
|
|
93
97
|
/** Range bounds (for NUMBER, CURRENCY) */
|
|
94
98
|
rangeBounds?: Maybe<AttributeRangeBounds>;
|
|
95
99
|
/** Attribute data type */
|
|
96
100
|
type: AttributeType;
|
|
97
101
|
};
|
|
98
|
-
export
|
|
102
|
+
export declare const AttributeFillingMode: {
|
|
103
|
+
readonly Both: "BOTH";
|
|
104
|
+
readonly Customer: "CUSTOMER";
|
|
105
|
+
readonly Merchant: "MERCHANT";
|
|
106
|
+
};
|
|
107
|
+
export type AttributeFillingMode = typeof AttributeFillingMode[keyof typeof AttributeFillingMode];
|
|
99
108
|
export type AttributeFilterValue = {
|
|
100
109
|
/** Option ID or value identifier */
|
|
101
110
|
id: Scalars['ID']['output'];
|
|
@@ -113,13 +122,13 @@ export type AttributeFilterValue = {
|
|
|
113
122
|
value: Scalars['String']['output'];
|
|
114
123
|
};
|
|
115
124
|
export type AttributeFilterValueConnection = {
|
|
116
|
-
/** Paginated edges
|
|
125
|
+
/** Paginated edges with cursors */
|
|
117
126
|
edges: Array<AttributeFilterValueEdge>;
|
|
118
127
|
/** Shortcut: edges.map(e => e.node) */
|
|
119
128
|
nodes: Array<AttributeFilterValue>;
|
|
120
129
|
/** Relay pagination info (hasNextPage, hasPreviousPage, cursors) */
|
|
121
130
|
pageInfo: PageInfo;
|
|
122
|
-
/** Total number of attribute options matching the filter (
|
|
131
|
+
/** Total number of attribute options matching the filter (after applying search + context). Stable across pagination — shows the full count for a counter UI. */
|
|
123
132
|
totalCount: Scalars['Int']['output'];
|
|
124
133
|
};
|
|
125
134
|
export type AttributeFilterValueEdge = {
|
|
@@ -134,7 +143,11 @@ export type AttributeInput = {
|
|
|
134
143
|
/** Attribute value */
|
|
135
144
|
value?: InputMaybe<Scalars['String']['input']>;
|
|
136
145
|
};
|
|
137
|
-
export
|
|
146
|
+
export declare const AttributeOptionSurchargeType: {
|
|
147
|
+
readonly Fixed: "FIXED";
|
|
148
|
+
readonly Percent: "PERCENT";
|
|
149
|
+
};
|
|
150
|
+
export type AttributeOptionSurchargeType = typeof AttributeOptionSurchargeType[keyof typeof AttributeOptionSurchargeType];
|
|
138
151
|
export type AttributeRangeBounds = {
|
|
139
152
|
/** Currency code for CURRENCY type */
|
|
140
153
|
currencyCode?: Maybe<Scalars['String']['output']>;
|
|
@@ -184,24 +197,38 @@ export type AttributeSelectionInput = {
|
|
|
184
197
|
export type AttributeSwatch = {
|
|
185
198
|
/** Hex color code (e.g., #FF5733) */
|
|
186
199
|
colorHex?: Maybe<Scalars['String']['output']>;
|
|
187
|
-
/** Image
|
|
188
|
-
|
|
200
|
+
/** Image swatch for pattern/material attributes (e.g. fabric texture, wood grain). Use `image { url(transform: { maxWidth: 80 }) altText }` for small swatch tiles. Mutually meaningful with `colorHex` only when storefront chooses to render texture-over-color preview. */
|
|
201
|
+
image?: Maybe<Image>;
|
|
189
202
|
};
|
|
190
|
-
export
|
|
203
|
+
export declare const AttributeType: {
|
|
204
|
+
readonly Boolean: "BOOLEAN";
|
|
205
|
+
readonly Checkbox: "CHECKBOX";
|
|
206
|
+
readonly Color: "COLOR";
|
|
207
|
+
readonly Currency: "CURRENCY";
|
|
208
|
+
readonly Date: "DATE";
|
|
209
|
+
readonly File: "FILE";
|
|
210
|
+
readonly Image: "IMAGE";
|
|
211
|
+
readonly Number: "NUMBER";
|
|
212
|
+
readonly Radio: "RADIO";
|
|
213
|
+
readonly Select: "SELECT";
|
|
214
|
+
readonly Text: "TEXT";
|
|
215
|
+
readonly Textarea: "TEXTAREA";
|
|
216
|
+
};
|
|
217
|
+
export type AttributeType = typeof AttributeType[keyof typeof AttributeType];
|
|
191
218
|
export type AvailableFilters = {
|
|
192
|
-
/**
|
|
219
|
+
/** Number of currently applied filters in `currentFilters` (render as "Filters (3)" in a sidebar header). */
|
|
193
220
|
activeCount: Scalars['Int']['output'];
|
|
194
221
|
/** Filterable attributes with values */
|
|
195
222
|
attributes: Array<AttributeDefinition>;
|
|
196
|
-
/** Boolean facet count:
|
|
223
|
+
/** Boolean facet count: number of products in the current context that satisfy `Product.isAvailable` (at least one active variant with untracked inventory OR available>0). Exclude-self: if `available: true` is in `currentFilters`, the count IGNORES that filter and shows "how many products are available in the base context" (not "how many are visible right now"). Semantically consistent with `attributes[].filterValues[].productCount` (per-enum-value facet) and `brands[].productCount` (per-brand facet) — all use exclude-self per dimension. Untracked inventory (gift cards, digital, made-to-order) always counts as available. */
|
|
197
224
|
availableCount: Scalars['Int']['output'];
|
|
198
|
-
/**
|
|
225
|
+
/** Canonical Brand entities with product counts in the current context. Render a checkbox list / dropdown with a logo per brand; clicking maps to `filters: [{brand: {handle}}]`. Only brands with >0 products in the current product set and isActive=true are returned. */
|
|
199
226
|
brands?: Maybe<Array<BrandFilterValue>>;
|
|
200
227
|
/** Categories available for filtering */
|
|
201
228
|
categories?: Maybe<Array<CategoryFilterOption>>;
|
|
202
229
|
/** Price range for filtering */
|
|
203
230
|
priceRange?: Maybe<PriceRange>;
|
|
204
|
-
/** Total products
|
|
231
|
+
/** Total products in the current context (categoryId/collectionId/searchQuery) BEFORE applying the faceted filters in `currentFilters`. Consistent with the `ProductConnection.totalCount` Relay Connection spec — when `currentFilters` is empty, `AvailableFilters.totalCount` === `products(filters).totalCount`. Use for "All products (N)" in a sidebar header. */
|
|
205
232
|
totalCount: Scalars['Int']['output'];
|
|
206
233
|
};
|
|
207
234
|
export type AvailablePaymentMethods = {
|
|
@@ -356,7 +383,13 @@ export type BlogPostEdge = {
|
|
|
356
383
|
/** Blog post node */
|
|
357
384
|
node: BlogPost;
|
|
358
385
|
};
|
|
359
|
-
export
|
|
386
|
+
export declare const BlogPostStatus: {
|
|
387
|
+
readonly Archived: "ARCHIVED";
|
|
388
|
+
readonly Draft: "DRAFT";
|
|
389
|
+
readonly Published: "PUBLISHED";
|
|
390
|
+
readonly Scheduled: "SCHEDULED";
|
|
391
|
+
};
|
|
392
|
+
export type BlogPostStatus = typeof BlogPostStatus[keyof typeof BlogPostStatus];
|
|
360
393
|
export type BlogTag = {
|
|
361
394
|
/** URL-friendly handle */
|
|
362
395
|
handle: Scalars['String']['output'];
|
|
@@ -388,8 +421,8 @@ export type Brand = {
|
|
|
388
421
|
handle: Scalars['String']['output'];
|
|
389
422
|
/** Brand unique identifier */
|
|
390
423
|
id: Scalars['ID']['output'];
|
|
391
|
-
/** Brand logo
|
|
392
|
-
logo?: Maybe<
|
|
424
|
+
/** Brand logo image. Use `logo { url(transform: { maxWidth: 200 }) altText }` for responsive sizing on brand tiles, breadcrumbs, and brand landing pages. */
|
|
425
|
+
logo?: Maybe<Image>;
|
|
393
426
|
/** Brand display name (e.g. "Funko", "Nintendo") */
|
|
394
427
|
name: Scalars['String']['output'];
|
|
395
428
|
};
|
|
@@ -404,15 +437,15 @@ export type BrandColors = {
|
|
|
404
437
|
secondary?: Maybe<BrandColorGroup>;
|
|
405
438
|
};
|
|
406
439
|
export type BrandFilterValue = {
|
|
407
|
-
/** Brand handle (refetch payload — paste
|
|
440
|
+
/** Brand handle (refetch payload — paste into ProductFilter.brand.handle) */
|
|
408
441
|
handle: Scalars['String']['output'];
|
|
409
442
|
/** Brand ID */
|
|
410
443
|
id: Scalars['ID']['output'];
|
|
411
|
-
/** Brand logo
|
|
412
|
-
logo?: Maybe<
|
|
444
|
+
/** Brand logo image (UI rendering — facet sidebars / dropdowns). Use `logo { url(transform: { maxWidth: 80 }) altText }` for small thumbs. */
|
|
445
|
+
logo?: Maybe<Image>;
|
|
413
446
|
/** Brand name */
|
|
414
447
|
name: Scalars['String']['output'];
|
|
415
|
-
/**
|
|
448
|
+
/** Number of products with this brand in the current product set */
|
|
416
449
|
productCount: Scalars['Int']['output'];
|
|
417
450
|
};
|
|
418
451
|
export type BusinessHour = {
|
|
@@ -474,7 +507,7 @@ export type Cart = Node & {
|
|
|
474
507
|
appliedGiftCards: Array<CartAppliedGiftCard>;
|
|
475
508
|
/** 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
509
|
attributes: Array<CartAttribute>;
|
|
477
|
-
/** Available payment methods
|
|
510
|
+
/** Available payment methods for this cart — deduplicated per type, sorted by merchant priority. */
|
|
478
511
|
availablePaymentMethods: Array<PaymentMethod>;
|
|
479
512
|
/** 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
513
|
availableShippingMethods: AvailableShippingMethodsPayload;
|
|
@@ -508,6 +541,8 @@ export type Cart = Node & {
|
|
|
508
541
|
recommendations?: Maybe<CartRecommendations>;
|
|
509
542
|
/** 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. */
|
|
510
543
|
requiresShipping: Scalars['Boolean']['output'];
|
|
544
|
+
/** Optional concrete instrument code selected within `selectedPaymentMethod` (e.g. `"blik"`, `"mb"`, `"154"`). Set when the buyer clicks a specific instrument tile on the storefront (per `PaymentMethod.instruments`). Pre-payment intent: copied to `Order.paymentInstrument` on `cartComplete`. Cross-reference with `availablePaymentMethods.methods[].instruments[]` to resolve `displayName` / `brandImage { url }`. */
|
|
545
|
+
selectedPaymentInstrument?: Maybe<Scalars['String']['output']>;
|
|
511
546
|
/** The payment method currently selected on the cart. Null until the buyer picks a method via `cartSelectPaymentMethod`. */
|
|
512
547
|
selectedPaymentMethod?: Maybe<PaymentMethod>;
|
|
513
548
|
/** The shipping method currently selected on the cart (label + cost). Null until the buyer picks a method. */
|
|
@@ -520,6 +555,8 @@ export type Cart = Node & {
|
|
|
520
555
|
totalQuantity: Scalars['Int']['output'];
|
|
521
556
|
/** When the cart was last modified (ISO 8601). */
|
|
522
557
|
updatedAt: Scalars['DateTime']['output'];
|
|
558
|
+
/** Non-fatal advisories computed at query time. Currently emitted: `PAYMENT_SELECTION_STALE` when `selectedPaymentMethod` / `selectedPaymentInstrument` are no longer in live gateway capabilities (storefront re-prompts the buyer). Read-only — backend state is not mutated. */
|
|
559
|
+
warnings: Array<CartWarning>;
|
|
523
560
|
};
|
|
524
561
|
export type CartAddLinesPayload = {
|
|
525
562
|
/** The updated cart on success; null when `userErrors` is non-empty. */
|
|
@@ -619,6 +656,18 @@ export type CartBuyerIdentityInput = {
|
|
|
619
656
|
/** Buyer phone number. Free-form; max 30 chars. */
|
|
620
657
|
phone?: InputMaybe<Scalars['String']['input']>;
|
|
621
658
|
};
|
|
659
|
+
export type CartClearPaymentSelectionInput = {
|
|
660
|
+
/** ID of the cart to clear payment selection on. */
|
|
661
|
+
cartId: Scalars['ID']['input'];
|
|
662
|
+
};
|
|
663
|
+
export type CartClearPaymentSelectionPayload = {
|
|
664
|
+
/** The updated cart with cleared payment selection. */
|
|
665
|
+
cart?: Maybe<Cart>;
|
|
666
|
+
/** Business / validation errors carrying a stable `CartErrorCode` in `code` (e.g. `ALREADY_COMPLETED`). */
|
|
667
|
+
userErrors: Array<UserError>;
|
|
668
|
+
/** Non-fatal advisories — the mutation itself succeeded. */
|
|
669
|
+
warnings: Array<CartWarning>;
|
|
670
|
+
};
|
|
622
671
|
export type CartCompleteInput = {
|
|
623
672
|
/** ID of the cart to complete. */
|
|
624
673
|
cartId: Scalars['ID']['input'];
|
|
@@ -814,8 +863,12 @@ export type CartRemoveLinesPayload = {
|
|
|
814
863
|
export type CartSelectPaymentMethodInput = {
|
|
815
864
|
/** ID of the cart to update. */
|
|
816
865
|
cartId: Scalars['ID']['input'];
|
|
817
|
-
/**
|
|
818
|
-
|
|
866
|
+
/** Category of the payment method the buyer picked (matches `PaymentMethod.type` from `availablePaymentMethods`). */
|
|
867
|
+
methodType: PaymentMethodType;
|
|
868
|
+
/** Optional gateway-specific instrument code (`blik`, `mb`, `c`, `154`, ...) from `PaymentMethod.instruments[].code`. Requires `preferredProvider` to be set — instrument codes are provider-specific. No restrictive format is enforced, since different gateways may use `.` / `:` / `/` in future codes. */
|
|
869
|
+
preferredInstrument?: InputMaybe<Scalars['String']['input']>;
|
|
870
|
+
/** Optional override of `PaymentMethod.preferredProvider`. Pass a `PaymentProvider` enum value (`PAYU`, `PRZELEWY24`, ...) read off `providersAvailable` / `PaymentInstrument.provider` when the buyer explicitly picks a gateway. Symmetric with the output — forward `instrument.provider` straight back, no case conversion. */
|
|
871
|
+
preferredProvider?: InputMaybe<PaymentProvider>;
|
|
819
872
|
};
|
|
820
873
|
export type CartSelectPaymentMethodPayload = {
|
|
821
874
|
/** The updated cart with `selectedPaymentMethod` populated. */
|
|
@@ -875,7 +928,14 @@ export type CartShippingMethod = {
|
|
|
875
928
|
/** Display title for the checkout summary (e.g. "DPD Standard, 2 days"). */
|
|
876
929
|
title: Scalars['String']['output'];
|
|
877
930
|
};
|
|
878
|
-
export
|
|
931
|
+
export declare const CartStatus: {
|
|
932
|
+
readonly Abandoned: "ABANDONED";
|
|
933
|
+
readonly Active: "ACTIVE";
|
|
934
|
+
readonly Converted: "CONVERTED";
|
|
935
|
+
readonly Expired: "EXPIRED";
|
|
936
|
+
readonly Recovered: "RECOVERED";
|
|
937
|
+
};
|
|
938
|
+
export type CartStatus = typeof CartStatus[keyof typeof CartStatus];
|
|
879
939
|
export type CartUpdateAttributesPayload = {
|
|
880
940
|
/** The updated cart on success. */
|
|
881
941
|
cart?: Maybe<Cart>;
|
|
@@ -936,7 +996,14 @@ export type CartWarning = {
|
|
|
936
996
|
/** What the warning is about — a cart line ID when the warning refers to a specific item, or a field path otherwise. */
|
|
937
997
|
target: Scalars['String']['output'];
|
|
938
998
|
};
|
|
939
|
-
export
|
|
999
|
+
export declare const CartWarningCode: {
|
|
1000
|
+
readonly MerchandiseNotAvailable: "MERCHANDISE_NOT_AVAILABLE";
|
|
1001
|
+
readonly MerchandiseNotEnoughStock: "MERCHANDISE_NOT_ENOUGH_STOCK";
|
|
1002
|
+
readonly PaymentsAmountRegionMismatch: "PAYMENTS_AMOUNT_REGION_MISMATCH";
|
|
1003
|
+
readonly PaymentSelectionStale: "PAYMENT_SELECTION_STALE";
|
|
1004
|
+
readonly ShippingMethodAutoCleared: "SHIPPING_METHOD_AUTO_CLEARED";
|
|
1005
|
+
};
|
|
1006
|
+
export type CartWarningCode = typeof CartWarningCode[keyof typeof CartWarningCode];
|
|
940
1007
|
export type Category = {
|
|
941
1008
|
/** Child categories */
|
|
942
1009
|
children: Array<Category>;
|
|
@@ -1031,8 +1098,16 @@ export type CollectionEdge = {
|
|
|
1031
1098
|
/** Collection node */
|
|
1032
1099
|
node: Collection;
|
|
1033
1100
|
};
|
|
1034
|
-
export
|
|
1035
|
-
|
|
1101
|
+
export declare const CompensationType: {
|
|
1102
|
+
readonly Refund: "REFUND";
|
|
1103
|
+
readonly StoreCredit: "STORE_CREDIT";
|
|
1104
|
+
};
|
|
1105
|
+
export type CompensationType = typeof CompensationType[keyof typeof CompensationType];
|
|
1106
|
+
export declare const ContentFormat: {
|
|
1107
|
+
readonly Html: "HTML";
|
|
1108
|
+
readonly Markdown: "MARKDOWN";
|
|
1109
|
+
};
|
|
1110
|
+
export type ContentFormat = typeof ContentFormat[keyof typeof ContentFormat];
|
|
1036
1111
|
export type ConvertedPriceRange = {
|
|
1037
1112
|
/** Maximum variant price (converted) */
|
|
1038
1113
|
maxVariantPrice: PriceMoney;
|
|
@@ -1040,20 +1115,59 @@ export type ConvertedPriceRange = {
|
|
|
1040
1115
|
minVariantPrice: PriceMoney;
|
|
1041
1116
|
};
|
|
1042
1117
|
export type Country = Node & {
|
|
1043
|
-
/**
|
|
1118
|
+
/** Shop languages available in this country */
|
|
1044
1119
|
availableLanguages: Array<Language>;
|
|
1045
|
-
/** Primary currency
|
|
1120
|
+
/** Primary currency in this country */
|
|
1046
1121
|
currency: Currency;
|
|
1047
|
-
/** Globally-unique identifier (
|
|
1122
|
+
/** Globally-unique identifier (e.g. "country:PL") */
|
|
1048
1123
|
id: Scalars['ID']['output'];
|
|
1049
1124
|
/** ISO 3166-1 alpha-2 country code */
|
|
1050
1125
|
isoCode: CountryCode;
|
|
1051
|
-
/** English name
|
|
1126
|
+
/** English country name (e.g. "Poland", "Germany") */
|
|
1052
1127
|
name: Scalars['String']['output'];
|
|
1053
|
-
/**
|
|
1128
|
+
/** Measurement system (metric/imperial) */
|
|
1054
1129
|
unitSystem: UnitSystem;
|
|
1055
1130
|
};
|
|
1056
|
-
export
|
|
1131
|
+
export declare const CountryCode: {
|
|
1132
|
+
readonly At: "AT";
|
|
1133
|
+
readonly Au: "AU";
|
|
1134
|
+
readonly Be: "BE";
|
|
1135
|
+
readonly Bg: "BG";
|
|
1136
|
+
readonly Ca: "CA";
|
|
1137
|
+
readonly Ch: "CH";
|
|
1138
|
+
readonly Cy: "CY";
|
|
1139
|
+
readonly Cz: "CZ";
|
|
1140
|
+
readonly De: "DE";
|
|
1141
|
+
readonly Dk: "DK";
|
|
1142
|
+
readonly Ee: "EE";
|
|
1143
|
+
readonly Es: "ES";
|
|
1144
|
+
readonly Fi: "FI";
|
|
1145
|
+
readonly Fr: "FR";
|
|
1146
|
+
readonly Gb: "GB";
|
|
1147
|
+
readonly Gr: "GR";
|
|
1148
|
+
readonly Hr: "HR";
|
|
1149
|
+
readonly Hu: "HU";
|
|
1150
|
+
readonly Ie: "IE";
|
|
1151
|
+
readonly Is: "IS";
|
|
1152
|
+
readonly It: "IT";
|
|
1153
|
+
readonly Li: "LI";
|
|
1154
|
+
readonly Lt: "LT";
|
|
1155
|
+
readonly Lu: "LU";
|
|
1156
|
+
readonly Lv: "LV";
|
|
1157
|
+
readonly Mt: "MT";
|
|
1158
|
+
readonly Nl: "NL";
|
|
1159
|
+
readonly No: "NO";
|
|
1160
|
+
readonly Nz: "NZ";
|
|
1161
|
+
readonly Pl: "PL";
|
|
1162
|
+
readonly Pt: "PT";
|
|
1163
|
+
readonly Ro: "RO";
|
|
1164
|
+
readonly Se: "SE";
|
|
1165
|
+
readonly Si: "SI";
|
|
1166
|
+
readonly Sk: "SK";
|
|
1167
|
+
readonly Us: "US";
|
|
1168
|
+
readonly Zz: "ZZ";
|
|
1169
|
+
};
|
|
1170
|
+
export type CountryCode = typeof CountryCode[keyof typeof CountryCode];
|
|
1057
1171
|
export type Currency = {
|
|
1058
1172
|
/** ISO 4217 currency code */
|
|
1059
1173
|
code: CurrencyCode;
|
|
@@ -1066,7 +1180,176 @@ export type Currency = {
|
|
|
1066
1180
|
/** Symbol position relative to amount */
|
|
1067
1181
|
symbolPosition: CurrencySymbolPosition;
|
|
1068
1182
|
};
|
|
1069
|
-
export
|
|
1183
|
+
export declare const CurrencyCode: {
|
|
1184
|
+
readonly Aed: "AED";
|
|
1185
|
+
readonly Afn: "AFN";
|
|
1186
|
+
readonly All: "ALL";
|
|
1187
|
+
readonly Amd: "AMD";
|
|
1188
|
+
readonly Ang: "ANG";
|
|
1189
|
+
readonly Aoa: "AOA";
|
|
1190
|
+
readonly Ars: "ARS";
|
|
1191
|
+
readonly Aud: "AUD";
|
|
1192
|
+
readonly Awg: "AWG";
|
|
1193
|
+
readonly Azn: "AZN";
|
|
1194
|
+
readonly Bam: "BAM";
|
|
1195
|
+
readonly Bbd: "BBD";
|
|
1196
|
+
readonly Bdt: "BDT";
|
|
1197
|
+
readonly Bgn: "BGN";
|
|
1198
|
+
readonly Bhd: "BHD";
|
|
1199
|
+
readonly Bif: "BIF";
|
|
1200
|
+
readonly Bmd: "BMD";
|
|
1201
|
+
readonly Bnd: "BND";
|
|
1202
|
+
readonly Bob: "BOB";
|
|
1203
|
+
readonly Bov: "BOV";
|
|
1204
|
+
readonly Brl: "BRL";
|
|
1205
|
+
readonly Bsd: "BSD";
|
|
1206
|
+
readonly Btn: "BTN";
|
|
1207
|
+
readonly Bwp: "BWP";
|
|
1208
|
+
readonly Byn: "BYN";
|
|
1209
|
+
readonly Bzd: "BZD";
|
|
1210
|
+
readonly Cad: "CAD";
|
|
1211
|
+
readonly Cdf: "CDF";
|
|
1212
|
+
readonly Che: "CHE";
|
|
1213
|
+
readonly Chf: "CHF";
|
|
1214
|
+
readonly Chw: "CHW";
|
|
1215
|
+
readonly Clf: "CLF";
|
|
1216
|
+
readonly Clp: "CLP";
|
|
1217
|
+
readonly Cny: "CNY";
|
|
1218
|
+
readonly Cop: "COP";
|
|
1219
|
+
readonly Cou: "COU";
|
|
1220
|
+
readonly Crc: "CRC";
|
|
1221
|
+
readonly Cuc: "CUC";
|
|
1222
|
+
readonly Cup: "CUP";
|
|
1223
|
+
readonly Cve: "CVE";
|
|
1224
|
+
readonly Czk: "CZK";
|
|
1225
|
+
readonly Djf: "DJF";
|
|
1226
|
+
readonly Dkk: "DKK";
|
|
1227
|
+
readonly Dop: "DOP";
|
|
1228
|
+
readonly Dzd: "DZD";
|
|
1229
|
+
readonly Egp: "EGP";
|
|
1230
|
+
readonly Ern: "ERN";
|
|
1231
|
+
readonly Etb: "ETB";
|
|
1232
|
+
readonly Eur: "EUR";
|
|
1233
|
+
readonly Fjd: "FJD";
|
|
1234
|
+
readonly Fkp: "FKP";
|
|
1235
|
+
readonly Gbp: "GBP";
|
|
1236
|
+
readonly Gel: "GEL";
|
|
1237
|
+
readonly Ghs: "GHS";
|
|
1238
|
+
readonly Gip: "GIP";
|
|
1239
|
+
readonly Gmd: "GMD";
|
|
1240
|
+
readonly Gnf: "GNF";
|
|
1241
|
+
readonly Gtq: "GTQ";
|
|
1242
|
+
readonly Gyd: "GYD";
|
|
1243
|
+
readonly Hkd: "HKD";
|
|
1244
|
+
readonly Hnl: "HNL";
|
|
1245
|
+
readonly Htg: "HTG";
|
|
1246
|
+
readonly Huf: "HUF";
|
|
1247
|
+
readonly Idr: "IDR";
|
|
1248
|
+
readonly Ils: "ILS";
|
|
1249
|
+
readonly Inr: "INR";
|
|
1250
|
+
readonly Iqd: "IQD";
|
|
1251
|
+
readonly Irr: "IRR";
|
|
1252
|
+
readonly Isk: "ISK";
|
|
1253
|
+
readonly Jmd: "JMD";
|
|
1254
|
+
readonly Jod: "JOD";
|
|
1255
|
+
readonly Jpy: "JPY";
|
|
1256
|
+
readonly Kes: "KES";
|
|
1257
|
+
readonly Kgs: "KGS";
|
|
1258
|
+
readonly Khr: "KHR";
|
|
1259
|
+
readonly Kmf: "KMF";
|
|
1260
|
+
readonly Kpw: "KPW";
|
|
1261
|
+
readonly Krw: "KRW";
|
|
1262
|
+
readonly Kwd: "KWD";
|
|
1263
|
+
readonly Kyd: "KYD";
|
|
1264
|
+
readonly Kzt: "KZT";
|
|
1265
|
+
readonly Lak: "LAK";
|
|
1266
|
+
readonly Lbp: "LBP";
|
|
1267
|
+
readonly Lkr: "LKR";
|
|
1268
|
+
readonly Lrd: "LRD";
|
|
1269
|
+
readonly Lsl: "LSL";
|
|
1270
|
+
readonly Lyd: "LYD";
|
|
1271
|
+
readonly Mad: "MAD";
|
|
1272
|
+
readonly Mdl: "MDL";
|
|
1273
|
+
readonly Mga: "MGA";
|
|
1274
|
+
readonly Mkd: "MKD";
|
|
1275
|
+
readonly Mmk: "MMK";
|
|
1276
|
+
readonly Mnt: "MNT";
|
|
1277
|
+
readonly Mop: "MOP";
|
|
1278
|
+
readonly Mru: "MRU";
|
|
1279
|
+
readonly Mur: "MUR";
|
|
1280
|
+
readonly Mvr: "MVR";
|
|
1281
|
+
readonly Mwk: "MWK";
|
|
1282
|
+
readonly Mxn: "MXN";
|
|
1283
|
+
readonly Mxv: "MXV";
|
|
1284
|
+
readonly Myr: "MYR";
|
|
1285
|
+
readonly Mzn: "MZN";
|
|
1286
|
+
readonly Nad: "NAD";
|
|
1287
|
+
readonly Ngn: "NGN";
|
|
1288
|
+
readonly Nio: "NIO";
|
|
1289
|
+
readonly Nok: "NOK";
|
|
1290
|
+
readonly Npr: "NPR";
|
|
1291
|
+
readonly Nzd: "NZD";
|
|
1292
|
+
readonly Omr: "OMR";
|
|
1293
|
+
readonly Pab: "PAB";
|
|
1294
|
+
readonly Pen: "PEN";
|
|
1295
|
+
readonly Pgk: "PGK";
|
|
1296
|
+
readonly Php: "PHP";
|
|
1297
|
+
readonly Pkr: "PKR";
|
|
1298
|
+
readonly Pln: "PLN";
|
|
1299
|
+
readonly Pyg: "PYG";
|
|
1300
|
+
readonly Qar: "QAR";
|
|
1301
|
+
readonly Ron: "RON";
|
|
1302
|
+
readonly Rsd: "RSD";
|
|
1303
|
+
readonly Rub: "RUB";
|
|
1304
|
+
readonly Rwf: "RWF";
|
|
1305
|
+
readonly Sar: "SAR";
|
|
1306
|
+
readonly Sbd: "SBD";
|
|
1307
|
+
readonly Scr: "SCR";
|
|
1308
|
+
readonly Sdg: "SDG";
|
|
1309
|
+
readonly Sek: "SEK";
|
|
1310
|
+
readonly Sgd: "SGD";
|
|
1311
|
+
readonly Shp: "SHP";
|
|
1312
|
+
readonly Sle: "SLE";
|
|
1313
|
+
readonly Sos: "SOS";
|
|
1314
|
+
readonly Srd: "SRD";
|
|
1315
|
+
readonly Ssp: "SSP";
|
|
1316
|
+
readonly Stn: "STN";
|
|
1317
|
+
readonly Svc: "SVC";
|
|
1318
|
+
readonly Syp: "SYP";
|
|
1319
|
+
readonly Szl: "SZL";
|
|
1320
|
+
readonly Thb: "THB";
|
|
1321
|
+
readonly Tjs: "TJS";
|
|
1322
|
+
readonly Tmt: "TMT";
|
|
1323
|
+
readonly Tnd: "TND";
|
|
1324
|
+
readonly Top: "TOP";
|
|
1325
|
+
readonly Try: "TRY";
|
|
1326
|
+
readonly Ttd: "TTD";
|
|
1327
|
+
readonly Twd: "TWD";
|
|
1328
|
+
readonly Tzs: "TZS";
|
|
1329
|
+
readonly Uah: "UAH";
|
|
1330
|
+
readonly Ugx: "UGX";
|
|
1331
|
+
readonly Usd: "USD";
|
|
1332
|
+
readonly Usn: "USN";
|
|
1333
|
+
readonly Uyi: "UYI";
|
|
1334
|
+
readonly Uyu: "UYU";
|
|
1335
|
+
readonly Uyw: "UYW";
|
|
1336
|
+
readonly Uzs: "UZS";
|
|
1337
|
+
readonly Ved: "VED";
|
|
1338
|
+
readonly Ves: "VES";
|
|
1339
|
+
readonly Vnd: "VND";
|
|
1340
|
+
readonly Vuv: "VUV";
|
|
1341
|
+
readonly Wst: "WST";
|
|
1342
|
+
readonly Xaf: "XAF";
|
|
1343
|
+
readonly Xcd: "XCD";
|
|
1344
|
+
readonly Xof: "XOF";
|
|
1345
|
+
readonly Xpf: "XPF";
|
|
1346
|
+
readonly Xxx: "XXX";
|
|
1347
|
+
readonly Yer: "YER";
|
|
1348
|
+
readonly Zar: "ZAR";
|
|
1349
|
+
readonly Zmw: "ZMW";
|
|
1350
|
+
readonly Zwg: "ZWG";
|
|
1351
|
+
};
|
|
1352
|
+
export type CurrencyCode = typeof CurrencyCode[keyof typeof CurrencyCode];
|
|
1070
1353
|
export type CurrencyConversion = {
|
|
1071
1354
|
/** Converted amount */
|
|
1072
1355
|
convertedAmount: Scalars['Float']['output'];
|
|
@@ -1087,8 +1370,17 @@ export type CurrencyConversion = {
|
|
|
1087
1370
|
/** Rate with margin applied */
|
|
1088
1371
|
rateWithMargin?: Maybe<Scalars['Float']['output']>;
|
|
1089
1372
|
};
|
|
1090
|
-
export
|
|
1091
|
-
|
|
1373
|
+
export declare const CurrencyRateSource: {
|
|
1374
|
+
readonly Ecb: "ECB";
|
|
1375
|
+
readonly Fixer: "FIXER";
|
|
1376
|
+
readonly Manual: "MANUAL";
|
|
1377
|
+
};
|
|
1378
|
+
export type CurrencyRateSource = typeof CurrencyRateSource[keyof typeof CurrencyRateSource];
|
|
1379
|
+
export declare const CurrencySymbolPosition: {
|
|
1380
|
+
readonly After: "AFTER";
|
|
1381
|
+
readonly Before: "BEFORE";
|
|
1382
|
+
};
|
|
1383
|
+
export type CurrencySymbolPosition = typeof CurrencySymbolPosition[keyof typeof CurrencySymbolPosition];
|
|
1092
1384
|
export type Customer = Node & {
|
|
1093
1385
|
/** Saved address book of the customer (Relay Connection). Use to render an address picker on checkout. */
|
|
1094
1386
|
addresses: MailingAddressConnection;
|
|
@@ -1124,6 +1416,8 @@ export type Customer = Node & {
|
|
|
1124
1416
|
phone?: Maybe<Scalars['String']['output']>;
|
|
1125
1417
|
/** Customer-wide Polish business registry number (REGON, 9 or 14 digits with checksum). */
|
|
1126
1418
|
regon?: Maybe<Scalars['String']['output']>;
|
|
1419
|
+
/** Expiry of the access token authenticating the current request (ISO 8601). Present only on the authenticated current customer (the `customer` query); null otherwise. Schedule a proactive `customerRefreshToken` before this to keep the session alive. */
|
|
1420
|
+
sessionExpiresAt?: Maybe<Scalars['DateTime']['output']>;
|
|
1127
1421
|
/** Merchant-assigned segmentation tags (e.g. "vip", "wholesale", "b2b"). Use to customise UI / pricing rules on the storefront. */
|
|
1128
1422
|
tags: Array<Scalars['String']['output']>;
|
|
1129
1423
|
/** Customer-wide Polish tax ID (NIP, 10 digits with checksum). Default for new addresses; can be overridden per address via `MailingAddress.taxId`. */
|
|
@@ -1243,7 +1537,11 @@ export type CustomerSignupPayload = {
|
|
|
1243
1537
|
/** Validation / business errors carrying a stable `CustomerErrorCode` in `code` (e.g. `TAKEN`, `INVALID`, `PASSWORD_TOO_WEAK`, `BAD_DOMAIN`). */
|
|
1244
1538
|
userErrors: Array<UserError>;
|
|
1245
1539
|
};
|
|
1246
|
-
export
|
|
1540
|
+
export declare const CustomerType: {
|
|
1541
|
+
readonly Company: "COMPANY";
|
|
1542
|
+
readonly Individual: "INDIVIDUAL";
|
|
1543
|
+
};
|
|
1544
|
+
export type CustomerType = typeof CustomerType[keyof typeof CustomerType];
|
|
1247
1545
|
export type CustomerUpdateAddressPayload = {
|
|
1248
1546
|
/** Updated address */
|
|
1249
1547
|
address?: Maybe<MailingAddress>;
|
|
@@ -1264,15 +1562,37 @@ export type DeliveryEstimate = {
|
|
|
1264
1562
|
/** Minimum expected delivery time in business days. */
|
|
1265
1563
|
minDays?: Maybe<Scalars['Int']['output']>;
|
|
1266
1564
|
};
|
|
1267
|
-
export
|
|
1268
|
-
/** Courier delivery to the street address — no pickup point required. */
|
|
1269
|
-
|
|
1270
|
-
/** Automated parcel locker — the buyer collects from a 24/7 self-service machine. */
|
|
1271
|
-
|
|
1272
|
-
/** Staffed pickup point / parcel shop — the buyer collects the parcel at a counter. */
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
export type
|
|
1565
|
+
export declare const DeliveryType: {
|
|
1566
|
+
/** Courier delivery to the street address — no pickup point required. */
|
|
1567
|
+
readonly Home: "HOME";
|
|
1568
|
+
/** Automated parcel locker — the buyer collects from a 24/7 self-service machine. */
|
|
1569
|
+
readonly Locker: "LOCKER";
|
|
1570
|
+
/** Staffed pickup point / parcel shop — the buyer collects the parcel at a counter. */
|
|
1571
|
+
readonly PickupPoint: "PICKUP_POINT";
|
|
1572
|
+
};
|
|
1573
|
+
export type DeliveryType = typeof DeliveryType[keyof typeof DeliveryType];
|
|
1574
|
+
export declare const DiscountApplicationType: {
|
|
1575
|
+
readonly BuyXGetY: "BUY_X_GET_Y";
|
|
1576
|
+
readonly FixedAmount: "FIXED_AMOUNT";
|
|
1577
|
+
readonly FreeShipping: "FREE_SHIPPING";
|
|
1578
|
+
readonly Percentage: "PERCENTAGE";
|
|
1579
|
+
};
|
|
1580
|
+
export type DiscountApplicationType = typeof DiscountApplicationType[keyof typeof DiscountApplicationType];
|
|
1581
|
+
export declare const DiscountErrorCode: {
|
|
1582
|
+
readonly CustomerGroupNotEligible: "CUSTOMER_GROUP_NOT_ELIGIBLE";
|
|
1583
|
+
readonly CustomerNotEligible: "CUSTOMER_NOT_ELIGIBLE";
|
|
1584
|
+
readonly CustomerUsageLimitReached: "CUSTOMER_USAGE_LIMIT_REACHED";
|
|
1585
|
+
readonly DiscountCombinationNotAllowed: "DISCOUNT_COMBINATION_NOT_ALLOWED";
|
|
1586
|
+
readonly Expired: "EXPIRED";
|
|
1587
|
+
readonly Inactive: "INACTIVE";
|
|
1588
|
+
readonly MinimumOrderNotMet: "MINIMUM_ORDER_NOT_MET";
|
|
1589
|
+
readonly MinimumQuantityNotMet: "MINIMUM_QUANTITY_NOT_MET";
|
|
1590
|
+
readonly NotFound: "NOT_FOUND";
|
|
1591
|
+
readonly NotStarted: "NOT_STARTED";
|
|
1592
|
+
readonly ShopNotFound: "SHOP_NOT_FOUND";
|
|
1593
|
+
readonly UsageLimitReached: "USAGE_LIMIT_REACHED";
|
|
1594
|
+
};
|
|
1595
|
+
export type DiscountErrorCode = typeof DiscountErrorCode[keyof typeof DiscountErrorCode];
|
|
1276
1596
|
export type DiscountInfo = {
|
|
1277
1597
|
/** The discount code as entered. */
|
|
1278
1598
|
code: Scalars['String']['output'];
|
|
@@ -1304,10 +1624,18 @@ export type Domain = {
|
|
|
1304
1624
|
host: Scalars['String']['output'];
|
|
1305
1625
|
/** Whether HTTPS is enforced */
|
|
1306
1626
|
isSslEnabled: Scalars['Boolean']['output'];
|
|
1307
|
-
/** Full URL
|
|
1627
|
+
/** Full URL including protocol */
|
|
1308
1628
|
url: Scalars['URL']['output'];
|
|
1309
1629
|
};
|
|
1310
|
-
export
|
|
1630
|
+
export declare const EmailMarketingState: {
|
|
1631
|
+
readonly Invalid: "INVALID";
|
|
1632
|
+
readonly NotSubscribed: "NOT_SUBSCRIBED";
|
|
1633
|
+
readonly Pending: "PENDING";
|
|
1634
|
+
readonly Redacted: "REDACTED";
|
|
1635
|
+
readonly Subscribed: "SUBSCRIBED";
|
|
1636
|
+
readonly Unsubscribed: "UNSUBSCRIBED";
|
|
1637
|
+
};
|
|
1638
|
+
export type EmailMarketingState = typeof EmailMarketingState[keyof typeof EmailMarketingState];
|
|
1311
1639
|
export type EntityAttributeField = {
|
|
1312
1640
|
/** AttributeDefinition ID */
|
|
1313
1641
|
definitionId: Scalars['ID']['output'];
|
|
@@ -1350,8 +1678,18 @@ export type Filter = {
|
|
|
1350
1678
|
/** Available values for this filter, with product counts */
|
|
1351
1679
|
values: Array<FilterValue>;
|
|
1352
1680
|
};
|
|
1353
|
-
export
|
|
1354
|
-
|
|
1681
|
+
export declare const FilterPresentation: {
|
|
1682
|
+
readonly Image: "IMAGE";
|
|
1683
|
+
readonly Swatch: "SWATCH";
|
|
1684
|
+
readonly Text: "TEXT";
|
|
1685
|
+
};
|
|
1686
|
+
export type FilterPresentation = typeof FilterPresentation[keyof typeof FilterPresentation];
|
|
1687
|
+
export declare const FilterType: {
|
|
1688
|
+
readonly Boolean: "BOOLEAN";
|
|
1689
|
+
readonly List: "LIST";
|
|
1690
|
+
readonly PriceRange: "PRICE_RANGE";
|
|
1691
|
+
};
|
|
1692
|
+
export type FilterType = typeof FilterType[keyof typeof FilterType];
|
|
1355
1693
|
export type FilterValue = {
|
|
1356
1694
|
/** Number of products matching this value in current result set */
|
|
1357
1695
|
count: Scalars['Int']['output'];
|
|
@@ -1414,7 +1752,16 @@ export type GiftCardError = {
|
|
|
1414
1752
|
/** Human-readable error message */
|
|
1415
1753
|
message: Scalars['String']['output'];
|
|
1416
1754
|
};
|
|
1417
|
-
export
|
|
1755
|
+
export declare const GiftCardErrorCode: {
|
|
1756
|
+
readonly AlreadyUsed: "ALREADY_USED";
|
|
1757
|
+
readonly CurrencyMismatch: "CURRENCY_MISMATCH";
|
|
1758
|
+
readonly Disabled: "DISABLED";
|
|
1759
|
+
readonly Expired: "EXPIRED";
|
|
1760
|
+
readonly InsufficientBalance: "INSUFFICIENT_BALANCE";
|
|
1761
|
+
readonly InvalidCodeFormat: "INVALID_CODE_FORMAT";
|
|
1762
|
+
readonly NotFound: "NOT_FOUND";
|
|
1763
|
+
};
|
|
1764
|
+
export type GiftCardErrorCode = typeof GiftCardErrorCode[keyof typeof GiftCardErrorCode];
|
|
1418
1765
|
export type GiftCardLineRecipient = {
|
|
1419
1766
|
/** Personalised message included with the gift card. */
|
|
1420
1767
|
message?: Maybe<Scalars['String']['output']>;
|
|
@@ -1423,7 +1770,13 @@ export type GiftCardLineRecipient = {
|
|
|
1423
1770
|
/** Recipient display name shown in the gift card email. */
|
|
1424
1771
|
recipientName?: Maybe<Scalars['String']['output']>;
|
|
1425
1772
|
};
|
|
1426
|
-
export
|
|
1773
|
+
export declare const GiftCardStatus: {
|
|
1774
|
+
readonly Active: "ACTIVE";
|
|
1775
|
+
readonly Disabled: "DISABLED";
|
|
1776
|
+
readonly Expired: "EXPIRED";
|
|
1777
|
+
readonly Used: "USED";
|
|
1778
|
+
};
|
|
1779
|
+
export type GiftCardStatus = typeof GiftCardStatus[keyof typeof GiftCardStatus];
|
|
1427
1780
|
export type GiftCardValidatePayload = {
|
|
1428
1781
|
/** User errors */
|
|
1429
1782
|
userErrors: Array<UserError>;
|
|
@@ -1484,22 +1837,49 @@ export type Language = {
|
|
|
1484
1837
|
/** Native language name */
|
|
1485
1838
|
nativeName: Scalars['String']['output'];
|
|
1486
1839
|
};
|
|
1487
|
-
export
|
|
1488
|
-
|
|
1840
|
+
export declare const LanguageCode: {
|
|
1841
|
+
readonly Cs: "CS";
|
|
1842
|
+
readonly Da: "DA";
|
|
1843
|
+
readonly De: "DE";
|
|
1844
|
+
readonly En: "EN";
|
|
1845
|
+
readonly Es: "ES";
|
|
1846
|
+
readonly Fi: "FI";
|
|
1847
|
+
readonly Fr: "FR";
|
|
1848
|
+
readonly Hr: "HR";
|
|
1849
|
+
readonly Hu: "HU";
|
|
1850
|
+
readonly It: "IT";
|
|
1851
|
+
readonly Lt: "LT";
|
|
1852
|
+
readonly Lv: "LV";
|
|
1853
|
+
readonly Nl: "NL";
|
|
1854
|
+
readonly No: "NO";
|
|
1855
|
+
readonly Pl: "PL";
|
|
1856
|
+
readonly Pt: "PT";
|
|
1857
|
+
readonly Ro: "RO";
|
|
1858
|
+
readonly Sk: "SK";
|
|
1859
|
+
readonly Sl: "SL";
|
|
1860
|
+
readonly Sv: "SV";
|
|
1861
|
+
readonly Uk: "UK";
|
|
1862
|
+
};
|
|
1863
|
+
export type LanguageCode = typeof LanguageCode[keyof typeof LanguageCode];
|
|
1864
|
+
export declare const LanguageDirection: {
|
|
1865
|
+
readonly Ltr: "LTR";
|
|
1866
|
+
readonly Rtl: "RTL";
|
|
1867
|
+
};
|
|
1868
|
+
export type LanguageDirection = typeof LanguageDirection[keyof typeof LanguageDirection];
|
|
1489
1869
|
export type LinkedVariantSummary = {
|
|
1490
|
-
/** Available stock (stock − active reservations,
|
|
1870
|
+
/** Available stock (stock − active reservations, always ≥ 0). */
|
|
1491
1871
|
availableStock: Scalars['Int']['output'];
|
|
1492
|
-
/** Variant ID
|
|
1872
|
+
/** Variant ID. */
|
|
1493
1873
|
id: Scalars['ID']['output'];
|
|
1494
|
-
/**
|
|
1874
|
+
/** Whether currently purchasable (accounts for allowBackorder). */
|
|
1495
1875
|
isAvailable: Scalars['Boolean']['output'];
|
|
1496
1876
|
/** Parent product ID. */
|
|
1497
1877
|
productId: Scalars['ID']['output'];
|
|
1498
|
-
/** SKU
|
|
1878
|
+
/** SKU when defined. */
|
|
1499
1879
|
sku?: Maybe<Scalars['String']['output']>;
|
|
1500
|
-
/** Variant name (e.g., "
|
|
1880
|
+
/** Variant name (e.g., "Large / Graphite"). */
|
|
1501
1881
|
title: Scalars['String']['output'];
|
|
1502
|
-
/**
|
|
1882
|
+
/** Whether inventory is tracked for this variant. */
|
|
1503
1883
|
trackQuantity: Scalars['Boolean']['output'];
|
|
1504
1884
|
};
|
|
1505
1885
|
export type LocaleCurrencyMapping = {
|
|
@@ -1509,13 +1889,13 @@ export type LocaleCurrencyMapping = {
|
|
|
1509
1889
|
locale: Scalars['String']['output'];
|
|
1510
1890
|
};
|
|
1511
1891
|
export type Localization = {
|
|
1512
|
-
/**
|
|
1892
|
+
/** All supported countries (from active shipping zones) */
|
|
1513
1893
|
availableCountries: Array<Country>;
|
|
1514
|
-
/**
|
|
1894
|
+
/** All supported shop languages */
|
|
1515
1895
|
availableLanguages: Array<Language>;
|
|
1516
|
-
/**
|
|
1896
|
+
/** The customer current country (from `@inContext` or geo-detection) */
|
|
1517
1897
|
country: Country;
|
|
1518
|
-
/**
|
|
1898
|
+
/** The customer current language (from `Accept-Language` or `@inContext`) */
|
|
1519
1899
|
language: Language;
|
|
1520
1900
|
};
|
|
1521
1901
|
export type Location = {
|
|
@@ -1576,7 +1956,13 @@ export type LocationEdge = {
|
|
|
1576
1956
|
/** The location node */
|
|
1577
1957
|
node: Location;
|
|
1578
1958
|
};
|
|
1579
|
-
export
|
|
1959
|
+
export declare const LocationType: {
|
|
1960
|
+
readonly Dropshipper: "DROPSHIPPER";
|
|
1961
|
+
readonly FulfillmentCenter: "FULFILLMENT_CENTER";
|
|
1962
|
+
readonly Store: "STORE";
|
|
1963
|
+
readonly Warehouse: "WAREHOUSE";
|
|
1964
|
+
};
|
|
1965
|
+
export type LocationType = typeof LocationType[keyof typeof LocationType];
|
|
1580
1966
|
export type LoyaltyAction = {
|
|
1581
1967
|
/** Whether action is enabled */
|
|
1582
1968
|
isEnabled: Scalars['Boolean']['output'];
|
|
@@ -1689,7 +2075,14 @@ export type LoyaltyTier = {
|
|
|
1689
2075
|
/** Tier type (null for custom tiers) */
|
|
1690
2076
|
type?: Maybe<LoyaltyTierType>;
|
|
1691
2077
|
};
|
|
1692
|
-
export
|
|
2078
|
+
export declare const LoyaltyTierType: {
|
|
2079
|
+
readonly Bronze: "BRONZE";
|
|
2080
|
+
readonly Diamond: "DIAMOND";
|
|
2081
|
+
readonly Gold: "GOLD";
|
|
2082
|
+
readonly Platinum: "PLATINUM";
|
|
2083
|
+
readonly Silver: "SILVER";
|
|
2084
|
+
};
|
|
2085
|
+
export type LoyaltyTierType = typeof LoyaltyTierType[keyof typeof LoyaltyTierType];
|
|
1693
2086
|
export type LoyaltyTransaction = {
|
|
1694
2087
|
/** Balance after transaction */
|
|
1695
2088
|
balanceAfter: Scalars['Int']['output'];
|
|
@@ -1722,7 +2115,19 @@ export type LoyaltyTransactionEdge = {
|
|
|
1722
2115
|
/** The transaction */
|
|
1723
2116
|
node: LoyaltyTransaction;
|
|
1724
2117
|
};
|
|
1725
|
-
export
|
|
2118
|
+
export declare const LoyaltyTransactionType: {
|
|
2119
|
+
readonly Adjust: "ADJUST";
|
|
2120
|
+
readonly EarnBirthday: "EARN_BIRTHDAY";
|
|
2121
|
+
readonly EarnBonus: "EARN_BONUS";
|
|
2122
|
+
readonly EarnPurchase: "EARN_PURCHASE";
|
|
2123
|
+
readonly EarnReferral: "EARN_REFERRAL";
|
|
2124
|
+
readonly EarnReview: "EARN_REVIEW";
|
|
2125
|
+
readonly EarnSignup: "EARN_SIGNUP";
|
|
2126
|
+
readonly Expire: "EXPIRE";
|
|
2127
|
+
readonly Redeem: "REDEEM";
|
|
2128
|
+
readonly RefundReversal: "REFUND_REVERSAL";
|
|
2129
|
+
};
|
|
2130
|
+
export type LoyaltyTransactionType = typeof LoyaltyTransactionType[keyof typeof LoyaltyTransactionType];
|
|
1726
2131
|
export type MailingAddress = Node & {
|
|
1727
2132
|
/** City / town. */
|
|
1728
2133
|
city?: Maybe<Scalars['String']['output']>;
|
|
@@ -1781,7 +2186,12 @@ export type MailingAddressEdge = {
|
|
|
1781
2186
|
/** MailingAddress node */
|
|
1782
2187
|
node: MailingAddress;
|
|
1783
2188
|
};
|
|
1784
|
-
export
|
|
2189
|
+
export declare const MarketingOptInLevel: {
|
|
2190
|
+
readonly ConfirmedOptIn: "CONFIRMED_OPT_IN";
|
|
2191
|
+
readonly SingleOptIn: "SINGLE_OPT_IN";
|
|
2192
|
+
readonly Unknown: "UNKNOWN";
|
|
2193
|
+
};
|
|
2194
|
+
export type MarketingOptInLevel = typeof MarketingOptInLevel[keyof typeof MarketingOptInLevel];
|
|
1785
2195
|
export type Menu = {
|
|
1786
2196
|
/** URL handle (e.g., main-menu, footer) */
|
|
1787
2197
|
handle: Scalars['String']['output'];
|
|
@@ -1811,7 +2221,19 @@ export type MenuItem = {
|
|
|
1811
2221
|
url?: Maybe<Scalars['URL']['output']>;
|
|
1812
2222
|
};
|
|
1813
2223
|
export type MenuItemResource = Brand | Category | Collection | Product | ShopPage;
|
|
1814
|
-
export
|
|
2224
|
+
export declare const MenuItemType: {
|
|
2225
|
+
readonly Blog: "BLOG";
|
|
2226
|
+
readonly Brand: "BRAND";
|
|
2227
|
+
readonly Catalog: "CATALOG";
|
|
2228
|
+
readonly Category: "CATEGORY";
|
|
2229
|
+
readonly Collection: "COLLECTION";
|
|
2230
|
+
readonly Frontpage: "FRONTPAGE";
|
|
2231
|
+
readonly Http: "HTTP";
|
|
2232
|
+
readonly Page: "PAGE";
|
|
2233
|
+
readonly Product: "PRODUCT";
|
|
2234
|
+
readonly Search: "SEARCH";
|
|
2235
|
+
};
|
|
2236
|
+
export type MenuItemType = typeof MenuItemType[keyof typeof MenuItemType];
|
|
1815
2237
|
export type Money = {
|
|
1816
2238
|
/** Amount as a decimal string in major currency units (e.g. "12.99"). String, not float — preserves precision across locales. */
|
|
1817
2239
|
amount: Scalars['Decimal']['output'];
|
|
@@ -1823,6 +2245,8 @@ export type Mutation = {
|
|
|
1823
2245
|
cartAddLines: CartAddLinesPayload;
|
|
1824
2246
|
/** 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). */
|
|
1825
2247
|
cartApplyGiftCard: CartApplyGiftCardPayload;
|
|
2248
|
+
/** Clear all payment selection state on the cart in a single atomic operation. Use for accordion "back to method picker" flows in the storefront UI. Idempotent — calling twice yields the same end state. The cart must be `ACTIVE` (CONVERTED carts reject with `ALREADY_COMPLETED`). */
|
|
2249
|
+
cartClearPaymentSelection: CartClearPaymentSelectionPayload;
|
|
1826
2250
|
/** 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. */
|
|
1827
2251
|
cartComplete: CartCompletePayload;
|
|
1828
2252
|
/** 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. */
|
|
@@ -1833,7 +2257,7 @@ export type Mutation = {
|
|
|
1833
2257
|
cartRemoveGiftCard: CartRemoveGiftCardPayload;
|
|
1834
2258
|
/** 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. */
|
|
1835
2259
|
cartRemoveLines: CartRemoveLinesPayload;
|
|
1836
|
-
/** Select a payment method on the cart.
|
|
2260
|
+
/** Select a payment method on the cart by category (BLIK, CARD, BANK_TRANSFER, ...). Backend resolves the preferred provider from `MerchantPaymentConfig` at `paymentCreate` time. Optional `preferredProvider` overrides the merchant priority when the buyer explicitly picks a gateway from `PaymentMethod.providersAvailable`. Optional `preferredInstrument` enables instrument-level deep-link na gateway hosted page (BLIK ekran, mBank flow, etc.) — wymaga `preferredProvider`. */
|
|
1837
2261
|
cartSelectPaymentMethod: CartSelectPaymentMethodPayload;
|
|
1838
2262
|
/** 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. */
|
|
1839
2263
|
cartSelectShippingMethod: CartSelectShippingMethodPayload;
|
|
@@ -1931,7 +2355,7 @@ export type Order = Node & {
|
|
|
1931
2355
|
lineItems: OrderLineItemConnection;
|
|
1932
2356
|
/** Human-readable order number shown to the buyer and the merchant (e.g. "1042"). Distinct from `id`. */
|
|
1933
2357
|
orderNumber: Scalars['String']['output'];
|
|
1934
|
-
/** 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). */
|
|
2358
|
+
/** Category of the payment method on the order (CARD, BLIK, BANK_TRANSFER, INSTALLMENT, WALLET, 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, the wallet icon for WALLET — Apple Pay / Google Pay). */
|
|
1935
2359
|
paymentMethodType: PaymentMethodType;
|
|
1936
2360
|
/** Payment progress (UNPAID, PENDING, AUTHORIZED, PAID, PARTIALLY_PAID, PARTIALLY_REFUNDED, REFUNDED, FAILED, CHARGEBACK, VOIDED, REFUND_PENDING). */
|
|
1937
2361
|
paymentStatus: OrderPaymentStatus;
|
|
@@ -1962,23 +2386,33 @@ export type OrderEdge = {
|
|
|
1962
2386
|
/** Order node */
|
|
1963
2387
|
node: Order;
|
|
1964
2388
|
};
|
|
1965
|
-
export
|
|
2389
|
+
export declare const OrderFulfillmentStatus: {
|
|
2390
|
+
readonly Delivered: "DELIVERED";
|
|
2391
|
+
readonly Fulfilled: "FULFILLED";
|
|
2392
|
+
readonly InTransit: "IN_TRANSIT";
|
|
2393
|
+
readonly Lost: "LOST";
|
|
2394
|
+
readonly PartiallyFulfilled: "PARTIALLY_FULFILLED";
|
|
2395
|
+
readonly PartiallyReturned: "PARTIALLY_RETURNED";
|
|
2396
|
+
readonly Returned: "RETURNED";
|
|
2397
|
+
readonly Unfulfilled: "UNFULFILLED";
|
|
2398
|
+
};
|
|
2399
|
+
export type OrderFulfillmentStatus = typeof OrderFulfillmentStatus[keyof typeof OrderFulfillmentStatus];
|
|
1966
2400
|
export type OrderLineItem = {
|
|
1967
2401
|
/** Unique identifier */
|
|
1968
2402
|
id: Scalars['ID']['output'];
|
|
1969
|
-
/**
|
|
2403
|
+
/** Line total captured at purchase time (unitPrice × quantity, minor units) */
|
|
1970
2404
|
originalTotalPrice: Money;
|
|
1971
|
-
/**
|
|
2405
|
+
/** Unit price captured at purchase time (minor units, includes BUNDLED surcharges) */
|
|
1972
2406
|
originalUnitPrice: Money;
|
|
1973
|
-
/**
|
|
2407
|
+
/** Quantity ordered (snapshot from checkout) */
|
|
1974
2408
|
quantity: Scalars['Int']['output'];
|
|
1975
|
-
/**
|
|
2409
|
+
/** Quantity already fulfilled (shipped — per-item fulfillment tracking) */
|
|
1976
2410
|
quantityFulfilled: Scalars['Int']['output'];
|
|
1977
|
-
/**
|
|
2411
|
+
/** Quantity still eligible for return/refund (quantity − returnedQuantity, clamped ≥ 0). Industry-standard semantics for refund tracking. */
|
|
1978
2412
|
refundableQuantity: Scalars['Int']['output'];
|
|
1979
|
-
/**
|
|
2413
|
+
/** Product name captured at purchase time (snapshot). Not the live `Product.name` — preserved even after the product is edited (invoice compliance). */
|
|
1980
2414
|
title: Scalars['String']['output'];
|
|
1981
|
-
/** Live
|
|
2415
|
+
/** Live product variant (fresh image/price). Null when the variant was deleted after purchase — consumers should fall back to `title`. */
|
|
1982
2416
|
variant?: Maybe<ProductVariant>;
|
|
1983
2417
|
};
|
|
1984
2418
|
export type OrderLineItemConnection = {
|
|
@@ -1988,7 +2422,7 @@ export type OrderLineItemConnection = {
|
|
|
1988
2422
|
nodes: Array<OrderLineItem>;
|
|
1989
2423
|
/** Pagination info */
|
|
1990
2424
|
pageInfo: PageInfo;
|
|
1991
|
-
/** Total count of line items in the order (convention parity
|
|
2425
|
+
/** Total count of line items in the order (convention parity with OrderConnection/MailingAddressConnection) */
|
|
1992
2426
|
totalCount: Scalars['Int']['output'];
|
|
1993
2427
|
};
|
|
1994
2428
|
export type OrderLineItemEdge = {
|
|
@@ -1997,7 +2431,20 @@ export type OrderLineItemEdge = {
|
|
|
1997
2431
|
/** Order line item node */
|
|
1998
2432
|
node: OrderLineItem;
|
|
1999
2433
|
};
|
|
2000
|
-
export
|
|
2434
|
+
export declare const OrderPaymentStatus: {
|
|
2435
|
+
readonly Authorized: "AUTHORIZED";
|
|
2436
|
+
readonly Chargeback: "CHARGEBACK";
|
|
2437
|
+
readonly Failed: "FAILED";
|
|
2438
|
+
readonly Paid: "PAID";
|
|
2439
|
+
readonly PartiallyPaid: "PARTIALLY_PAID";
|
|
2440
|
+
readonly PartiallyRefunded: "PARTIALLY_REFUNDED";
|
|
2441
|
+
readonly Pending: "PENDING";
|
|
2442
|
+
readonly Refunded: "REFUNDED";
|
|
2443
|
+
readonly RefundPending: "REFUND_PENDING";
|
|
2444
|
+
readonly Unpaid: "UNPAID";
|
|
2445
|
+
readonly Voided: "VOIDED";
|
|
2446
|
+
};
|
|
2447
|
+
export type OrderPaymentStatus = typeof OrderPaymentStatus[keyof typeof OrderPaymentStatus];
|
|
2001
2448
|
export type OrderTotals = {
|
|
2002
2449
|
/** Order subtotal — items only, before tax, shipping and discounts. */
|
|
2003
2450
|
subtotal: Money;
|
|
@@ -2029,31 +2476,107 @@ export type PaymentCreateInput = {
|
|
|
2029
2476
|
export type PaymentCreatePayload = {
|
|
2030
2477
|
/** The created (or reused) payment session on success; null when `userErrors` is non-empty. */
|
|
2031
2478
|
payment?: Maybe<PaymentSession>;
|
|
2032
|
-
/** 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`). */
|
|
2479
|
+
/** 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`, `INSTRUMENT_PRESELECTION_FAILED`). */
|
|
2033
2480
|
userErrors: Array<UserError>;
|
|
2034
|
-
|
|
2035
|
-
|
|
2481
|
+
/** Non-blocking signals — backend state change context (e.g. instrument auto-cleared, server-side adjustment). Default empty array. Storefront branches per `code` for UI retry hints / analytics events. */
|
|
2482
|
+
warnings: Array<PaymentWarning>;
|
|
2483
|
+
};
|
|
2484
|
+
export declare const PaymentInitiationFlow: {
|
|
2485
|
+
readonly InstantDirect: "INSTANT_DIRECT";
|
|
2486
|
+
readonly OfflineManual: "OFFLINE_MANUAL";
|
|
2487
|
+
readonly OnlineEmbedded: "ONLINE_EMBEDDED";
|
|
2488
|
+
readonly OnlineRedirect: "ONLINE_REDIRECT";
|
|
2489
|
+
};
|
|
2490
|
+
export type PaymentInitiationFlow = typeof PaymentInitiationFlow[keyof typeof PaymentInitiationFlow];
|
|
2491
|
+
export type PaymentInstrument = {
|
|
2492
|
+
/** Optional brand image (bank logo, wallet icon). Use as tile artwork via `brandImage { url(transform: { maxWidth: 64 }) altText }`. Null when the gateway does not expose one or the instrument has no brand visual (BLIK code). */
|
|
2493
|
+
brandImage?: Maybe<Image>;
|
|
2494
|
+
/** Gateway-specific instrument identifier (PayU: `"blik"`/`"mb"`/`"c"`, P24: numeric ID string `"154"`). Pass as `preferredInstrument` in `cartSelectPaymentMethod`. Stable per provider — the gateway does not renumber. */
|
|
2495
|
+
code: Scalars['String']['output'];
|
|
2496
|
+
/** UX rendering hint — how the storefront should render this instrument (prominent button vs branded tile vs dropdown vs radio). Backend-agnostic mapping to visual treatment. */
|
|
2497
|
+
displayHint: PaymentInstrumentDisplayHint;
|
|
2498
|
+
/** Buyer-facing display name (e.g. "BLIK", "mBank", "ING Bank Śląski", "Apple Pay"). */
|
|
2499
|
+
displayName: Scalars['String']['output'];
|
|
2500
|
+
/** True when the instrument is currently enabled in the gateway live capabilities. The storefront can gray-out the tile when false instead of hiding it (observability for the merchant). */
|
|
2501
|
+
enabled: Scalars['Boolean']['output'];
|
|
2502
|
+
/** Provider that handles this instrument (UPPERCASE enum). Required for cross-provider dedupe (e.g. a BLIK code offered by both PayU and P24 — distinct instruments despite the same method type). */
|
|
2503
|
+
provider: PaymentProvider;
|
|
2504
|
+
/** Semantic type classifying the instrument within the method (BLIK code vs bank vs wallet vs card brand). Storefront-facing dispatch for per-instrument UI components. */
|
|
2505
|
+
type: PaymentInstrumentType;
|
|
2506
|
+
};
|
|
2507
|
+
export declare const PaymentInstrumentDisplayHint: {
|
|
2508
|
+
readonly BrandedTile: "BRANDED_TILE";
|
|
2509
|
+
readonly DropdownOption: "DROPDOWN_OPTION";
|
|
2510
|
+
readonly ProminentButton: "PROMINENT_BUTTON";
|
|
2511
|
+
readonly RadioOption: "RADIO_OPTION";
|
|
2512
|
+
};
|
|
2513
|
+
export type PaymentInstrumentDisplayHint = typeof PaymentInstrumentDisplayHint[keyof typeof PaymentInstrumentDisplayHint];
|
|
2514
|
+
export declare const PaymentInstrumentType: {
|
|
2515
|
+
readonly Bank: "BANK";
|
|
2516
|
+
readonly BlikCode: "BLIK_CODE";
|
|
2517
|
+
readonly CardBrand: "CARD_BRAND";
|
|
2518
|
+
readonly Other: "OTHER";
|
|
2519
|
+
readonly Wallet: "WALLET";
|
|
2520
|
+
};
|
|
2521
|
+
export type PaymentInstrumentType = typeof PaymentInstrumentType[keyof typeof PaymentInstrumentType];
|
|
2036
2522
|
export type PaymentMethod = {
|
|
2523
|
+
/** True when the buyer can actually pick this method right now. False when the resolving gateway is temporarily unavailable (incident/maintenance) or reported the method as disabled. Storefront UI should gray-out the tile when false instead of hiding it — gives merchants observability into routing failures. */
|
|
2524
|
+
available: Scalars['Boolean']['output'];
|
|
2037
2525
|
/** Optional buyer-facing description shown under the name (e.g. "Pay with your bank app"). */
|
|
2038
2526
|
description?: Maybe<Scalars['String']['output']>;
|
|
2039
|
-
/** Optional icon
|
|
2040
|
-
icon?: Maybe<
|
|
2527
|
+
/** Optional icon image configured by the merchant. Use `icon { url(transform: { maxWidth: 64 }) altText }` as the method tile artwork in the payment picker. */
|
|
2528
|
+
icon?: Maybe<Image>;
|
|
2041
2529
|
/** Stable ID of the payment method. Pass to `cartSelectPaymentMethod` to select it. */
|
|
2042
2530
|
id: Scalars['ID']['output'];
|
|
2531
|
+
/** Concrete instruments exposed by gateway providers within this method (BLIK code, branded banks, wallets, card brands). Null when no provider exposes granular data for this method. Empty array when a gateway exposes them but all instruments are disabled or removed by post-filtering (cross-provider leak prevention). Render the list and pass `code` as `preferredInstrument` in `cartSelectPaymentMethod` to deep-link the gateway to this screen. */
|
|
2532
|
+
instruments?: Maybe<Array<PaymentInstrument>>;
|
|
2043
2533
|
/** True when the merchant has marked this method as the default. Pre-select it in the picker. */
|
|
2044
2534
|
isDefault: Scalars['Boolean']['output'];
|
|
2045
2535
|
/** Display name configured by the merchant (e.g. "BLIK", "Credit card", "Cash on delivery"). */
|
|
2046
2536
|
name: Scalars['String']['output'];
|
|
2047
2537
|
/** Merchant-configured display position — lower values come first in the picker. */
|
|
2048
2538
|
position: Scalars['Float']['output'];
|
|
2049
|
-
/**
|
|
2050
|
-
|
|
2539
|
+
/** Preferred provider (UPPERCASE enum) that the backend will route to when the buyer picks this method type and does not specify `preferredProvider`. Populated only when at least one provider supports the type. */
|
|
2540
|
+
preferredProvider?: Maybe<PaymentProvider>;
|
|
2541
|
+
/** Provider (e.g. `PAYU`, `STRIPE`, `PRZELEWY24`, `CASH_ON_DELIVERY`). Identifies the integration behind the method; do not branch UI on it — use `type` instead. */
|
|
2542
|
+
provider: PaymentProvider;
|
|
2543
|
+
/** Providers (UPPERCASE enum: `PAYU`, `PRZELEWY24`, ...) that can fulfil this method type for the current shop, ordered by merchant priority. Pre-select `preferredProvider`; expose the rest only when the buyer wants to choose explicitly. Single-element array when only one provider supports the type. */
|
|
2544
|
+
providersAvailable?: Maybe<Array<PaymentProvider>>;
|
|
2051
2545
|
/** ISO 4217 currency codes the method accepts. Null when the method accepts the shop currency without restriction. */
|
|
2052
2546
|
supportedCurrencies?: Maybe<Array<Scalars['String']['output']>>;
|
|
2053
|
-
/** Category of the method (CARD, BLIK, BANK_TRANSFER, CASH_ON_DELIVERY, OTHER). Drives iconography and copy. */
|
|
2547
|
+
/** Category of the method (CARD, BLIK, BANK_TRANSFER, INSTALLMENT, WALLET, CASH_ON_DELIVERY, OTHER). Drives iconography and copy. */
|
|
2054
2548
|
type: PaymentMethodType;
|
|
2055
|
-
|
|
2056
|
-
|
|
2549
|
+
/** When `available` is false, this enum carries the diagnostic reason (GATEWAY_DOWN, GATEWAY_DISABLED, NO_INSTRUMENTS, CREDENTIALS_INVALID). Null when `available` is true. UI can render context-aware copy ("PayU is temporarily down" vs "Method not configured"). */
|
|
2550
|
+
unavailableReason?: Maybe<PaymentMethodUnavailableReason>;
|
|
2551
|
+
};
|
|
2552
|
+
export declare const PaymentMethodType: {
|
|
2553
|
+
readonly BankTransfer: "BANK_TRANSFER";
|
|
2554
|
+
readonly Blik: "BLIK";
|
|
2555
|
+
readonly Card: "CARD";
|
|
2556
|
+
readonly CashOnDelivery: "CASH_ON_DELIVERY";
|
|
2557
|
+
readonly Installment: "INSTALLMENT";
|
|
2558
|
+
readonly Other: "OTHER";
|
|
2559
|
+
readonly Wallet: "WALLET";
|
|
2560
|
+
};
|
|
2561
|
+
export type PaymentMethodType = typeof PaymentMethodType[keyof typeof PaymentMethodType];
|
|
2562
|
+
export declare const PaymentMethodUnavailableReason: {
|
|
2563
|
+
readonly CredentialsInvalid: "CREDENTIALS_INVALID";
|
|
2564
|
+
readonly GatewayDisabled: "GATEWAY_DISABLED";
|
|
2565
|
+
readonly GatewayDown: "GATEWAY_DOWN";
|
|
2566
|
+
readonly NoInstruments: "NO_INSTRUMENTS";
|
|
2567
|
+
};
|
|
2568
|
+
export type PaymentMethodUnavailableReason = typeof PaymentMethodUnavailableReason[keyof typeof PaymentMethodUnavailableReason];
|
|
2569
|
+
export declare const PaymentProvider: {
|
|
2570
|
+
readonly BankTransfer: "BANK_TRANSFER";
|
|
2571
|
+
readonly CashOnDelivery: "CASH_ON_DELIVERY";
|
|
2572
|
+
readonly GiftCard: "GIFT_CARD";
|
|
2573
|
+
readonly ManualPayment: "MANUAL_PAYMENT";
|
|
2574
|
+
readonly Payu: "PAYU";
|
|
2575
|
+
readonly Przelewy24: "PRZELEWY24";
|
|
2576
|
+
readonly Stripe: "STRIPE";
|
|
2577
|
+
readonly TestGateway: "TEST_GATEWAY";
|
|
2578
|
+
};
|
|
2579
|
+
export type PaymentProvider = typeof PaymentProvider[keyof typeof PaymentProvider];
|
|
2057
2580
|
export type PaymentSession = {
|
|
2058
2581
|
/** Client secret / token for the in-page payment widget. Populated only when `flow` is ONLINE_EMBEDDED. Treat as sensitive — do not log. */
|
|
2059
2582
|
clientSecret?: Maybe<Scalars['String']['output']>;
|
|
@@ -2073,15 +2596,27 @@ export type PaymentSession = {
|
|
|
2073
2596
|
status: OrderPaymentStatus;
|
|
2074
2597
|
};
|
|
2075
2598
|
export type PaymentSettings = {
|
|
2076
|
-
/**
|
|
2599
|
+
/** Shop country code — drives payment method availability */
|
|
2077
2600
|
countryCode: CountryCode;
|
|
2078
|
-
/** Primary currency
|
|
2601
|
+
/** Primary currency used to process payments */
|
|
2079
2602
|
currencyCode: CurrencyCode;
|
|
2080
|
-
/**
|
|
2603
|
+
/** Currencies displayable on the storefront (Money.currencyCode allowlist) */
|
|
2081
2604
|
enabledPresentmentCurrencies: Array<CurrencyCode>;
|
|
2082
|
-
/**
|
|
2605
|
+
/** Codes of the payment providers active for this shop. E.g. ["payu", "cash_on_delivery"]. Use to conditionally render the checkout UI. */
|
|
2083
2606
|
paymentProviders: Array<Scalars['String']['output']>;
|
|
2084
2607
|
};
|
|
2608
|
+
export type PaymentWarning = {
|
|
2609
|
+
/** Machine-readable code — branch on this to dispatch UI retry hints. Add a new code only when there is a distinct UX response. */
|
|
2610
|
+
code: PaymentWarningCode;
|
|
2611
|
+
/** Pre-translated user-facing message describing what happened (Polish-first per shop locale). */
|
|
2612
|
+
message: Scalars['String']['output'];
|
|
2613
|
+
/** Optional additional hint string for UI dispatch — currently unused for `INSTRUMENT_CLEARED_FOR_RETRY` (semantic encoded in `message`). Reserved for future warning codes (e.g. `SLOW_GATEWAY_RESPONSE` → "Retry in 30s"). */
|
|
2614
|
+
retryHint?: Maybe<Scalars['String']['output']>;
|
|
2615
|
+
};
|
|
2616
|
+
export declare const PaymentWarningCode: {
|
|
2617
|
+
readonly InstrumentClearedForRetry: "INSTRUMENT_CLEARED_FOR_RETRY";
|
|
2618
|
+
};
|
|
2619
|
+
export type PaymentWarningCode = typeof PaymentWarningCode[keyof typeof PaymentWarningCode];
|
|
2085
2620
|
export type PickupPoint = {
|
|
2086
2621
|
/** Point address as a single human-readable line — show alongside the name on the confirmation page. */
|
|
2087
2622
|
address?: Maybe<Scalars['String']['output']>;
|
|
@@ -2159,11 +2694,11 @@ export type Product = Node & {
|
|
|
2159
2694
|
attributes: Array<ProductAttributeDefinition>;
|
|
2160
2695
|
/** Average rating (1-5) */
|
|
2161
2696
|
averageRating?: Maybe<Scalars['Float']['output']>;
|
|
2162
|
-
/** Canonical brand entity
|
|
2697
|
+
/** Canonical brand entity. Resolved via DataLoader (N+1 safe for list queries). Null when the product has no assigned brand. */
|
|
2163
2698
|
brand?: Maybe<Brand>;
|
|
2164
|
-
/**
|
|
2699
|
+
/** All categories the product belongs to (M2M via the ProductCategory junction). Sorted by junction.sortOrder ASC. Empty list when the product is in no category. */
|
|
2165
2700
|
categories: Array<Category>;
|
|
2166
|
-
/** Compare-at price range (Money pair). Null
|
|
2701
|
+
/** Compare-at price range (Money pair). Null when no variant has a compareAtPrice. */
|
|
2167
2702
|
compareAtPriceRange?: Maybe<ProductPriceRange>;
|
|
2168
2703
|
/** Opt-in: compare-at price range with conversion transparency. */
|
|
2169
2704
|
compareAtPriceRangeWithConversion?: Maybe<ConvertedPriceRange>;
|
|
@@ -2189,9 +2724,9 @@ export type Product = Node & {
|
|
|
2189
2724
|
options: Array<ProductOption>;
|
|
2190
2725
|
/** Price range (Money pair). Default field — industry-standard schema. */
|
|
2191
2726
|
priceRange: ProductPriceRange;
|
|
2192
|
-
/** Opt-in: price range with full conversion transparency (exchangeRate, baseCurrency, isConverted). Use
|
|
2727
|
+
/** Opt-in: price range with full conversion transparency (exchangeRate, baseCurrency, isConverted). Use for a currency-converter UI when the customer has a preferred currency different from the shop base. */
|
|
2193
2728
|
priceRangeWithConversion?: Maybe<ConvertedPriceRange>;
|
|
2194
|
-
/**
|
|
2729
|
+
/** Default category for breadcrumb/nav (= categories[0] by sortOrder). Null when the product is in no category. */
|
|
2195
2730
|
primaryCategory?: Maybe<Category>;
|
|
2196
2731
|
/** Similar products recommendations */
|
|
2197
2732
|
recommendations?: Maybe<ProductRecommendations>;
|
|
@@ -2211,9 +2746,9 @@ export type Product = Node & {
|
|
|
2211
2746
|
updatedAt: Scalars['DateTime']['output'];
|
|
2212
2747
|
/** Product variants (Relay Connection) */
|
|
2213
2748
|
variants: ProductVariantConnection;
|
|
2214
|
-
/** Legacy vendor/brand name (free-text). Preferred: `brand` field (canonical Brand entity
|
|
2749
|
+
/** Legacy vendor/brand name (free-text). Preferred: `brand` field (canonical Brand entity). */
|
|
2215
2750
|
vendor?: Maybe<Scalars['String']['output']>;
|
|
2216
|
-
/** Catalog visibility
|
|
2751
|
+
/** Catalog visibility — PUBLIC | HIDDEN | BUNDLE_ONLY */
|
|
2217
2752
|
visibility: ProductVisibility;
|
|
2218
2753
|
};
|
|
2219
2754
|
export type ProductAttributeDefinition = {
|
|
@@ -2257,15 +2792,15 @@ export type ProductAttributeOption = {
|
|
|
2257
2792
|
isDefault: Scalars['Boolean']['output'];
|
|
2258
2793
|
/** Display label shown to customer */
|
|
2259
2794
|
label: Scalars['String']['output'];
|
|
2260
|
-
/** Summary
|
|
2795
|
+
/** Summary of the linked ProductVariant. Null when the option has no linkedVariantId or the variant was deleted. */
|
|
2261
2796
|
linkedVariant?: Maybe<LinkedVariantSummary>;
|
|
2262
|
-
/** Linked ProductVariant ID for component stock decrement (
|
|
2797
|
+
/** Linked ProductVariant ID for component stock decrement (hidden-products pattern). */
|
|
2263
2798
|
linkedVariantId?: Maybe<Scalars['ID']['output']>;
|
|
2264
2799
|
/** Sort order */
|
|
2265
2800
|
sortOrder: Scalars['Int']['output'];
|
|
2266
|
-
/** Surcharge amount when selected (FIXED =
|
|
2801
|
+
/** Surcharge amount when selected (FIXED = minor currency units; PERCENT = thousandths of percent). */
|
|
2267
2802
|
surchargeAmount?: Maybe<Scalars['Int']['output']>;
|
|
2268
|
-
/** Surcharge type — FIXED | PERCENT
|
|
2803
|
+
/** Surcharge type — FIXED | PERCENT. */
|
|
2269
2804
|
surchargeType?: Maybe<AttributeOptionSurchargeType>;
|
|
2270
2805
|
/** Internal value (slug-style) */
|
|
2271
2806
|
value: Scalars['String']['output'];
|
|
@@ -2299,7 +2834,12 @@ export type ProductOption = {
|
|
|
2299
2834
|
/** Available values, ordered by sortOrder */
|
|
2300
2835
|
values: Array<ProductOptionValue>;
|
|
2301
2836
|
};
|
|
2302
|
-
export
|
|
2837
|
+
export declare const ProductOptionInputType: {
|
|
2838
|
+
readonly ColorSwatch: "COLOR_SWATCH";
|
|
2839
|
+
readonly Select: "SELECT";
|
|
2840
|
+
readonly Text: "TEXT";
|
|
2841
|
+
};
|
|
2842
|
+
export type ProductOptionInputType = typeof ProductOptionInputType[keyof typeof ProductOptionInputType];
|
|
2303
2843
|
export type ProductOptionValue = {
|
|
2304
2844
|
/** Hex colour for COLOR_SWATCH rendering (e.g. "#FF0000"). Null for other types. */
|
|
2305
2845
|
colorHex?: Maybe<Scalars['String']['output']>;
|
|
@@ -2343,8 +2883,8 @@ export type ProductReview = {
|
|
|
2343
2883
|
/** Helpful votes count (upvotes) */
|
|
2344
2884
|
helpfulCount: Scalars['Int']['output'];
|
|
2345
2885
|
id: Scalars['ID']['output'];
|
|
2346
|
-
/** Review images */
|
|
2347
|
-
images: Array<
|
|
2886
|
+
/** Review image attachments uploaded by the reviewer. Use `images { url(transform: { maxWidth: 600 }) altText }` for responsive gallery rendering in the review card. */
|
|
2887
|
+
images: Array<Image>;
|
|
2348
2888
|
/** Is verified purchase */
|
|
2349
2889
|
isVerifiedPurchase: Scalars['Boolean']['output'];
|
|
2350
2890
|
productId: Scalars['ID']['output'];
|
|
@@ -2370,7 +2910,14 @@ export type ProductReviewEdge = {
|
|
|
2370
2910
|
cursor: Scalars['String']['output'];
|
|
2371
2911
|
node: ProductReview;
|
|
2372
2912
|
};
|
|
2373
|
-
export
|
|
2913
|
+
export declare const ProductTypeEnum: {
|
|
2914
|
+
readonly Digital: "DIGITAL";
|
|
2915
|
+
readonly GiftCard: "GIFT_CARD";
|
|
2916
|
+
readonly Physical: "PHYSICAL";
|
|
2917
|
+
readonly Service: "SERVICE";
|
|
2918
|
+
readonly Subscription: "SUBSCRIPTION";
|
|
2919
|
+
};
|
|
2920
|
+
export type ProductTypeEnum = typeof ProductTypeEnum[keyof typeof ProductTypeEnum];
|
|
2374
2921
|
export type ProductVariant = {
|
|
2375
2922
|
/** Variant custom field values (post-Opcja A unified custom fields). */
|
|
2376
2923
|
attributes: Array<EntityAttributeField>;
|
|
@@ -2398,7 +2945,7 @@ export type ProductVariant = {
|
|
|
2398
2945
|
sku?: Maybe<Scalars['String']['output']>;
|
|
2399
2946
|
/** Display position of this variant within the parent product list. Lower values come first. */
|
|
2400
2947
|
sortOrder?: Maybe<Scalars['Int']['output']>;
|
|
2401
|
-
/** Per-location stock availability. Null for single-location shops. Resolved
|
|
2948
|
+
/** Per-location stock availability. Null for single-location shops. Resolved per-location with `near`, `locationType`, and `@inContext(preferredLocationId)` support. */
|
|
2402
2949
|
storeAvailability?: Maybe<StoreAvailabilityConnection>;
|
|
2403
2950
|
/** Display title of the variant (e.g. "Large / Red"). Composed from the variant options. */
|
|
2404
2951
|
title: Scalars['String']['output'];
|
|
@@ -2421,13 +2968,18 @@ export type ProductVariantEdge = {
|
|
|
2421
2968
|
/** Variant node */
|
|
2422
2969
|
node: ProductVariant;
|
|
2423
2970
|
};
|
|
2424
|
-
export
|
|
2971
|
+
export declare const ProductVisibility: {
|
|
2972
|
+
readonly BundleOnly: "BUNDLE_ONLY";
|
|
2973
|
+
readonly Hidden: "HIDDEN";
|
|
2974
|
+
readonly Public: "PUBLIC";
|
|
2975
|
+
};
|
|
2976
|
+
export type ProductVisibility = typeof ProductVisibility[keyof typeof ProductVisibility];
|
|
2425
2977
|
export type Query = {
|
|
2426
2978
|
/** List of all currencies supported by the system (ECB rates) */
|
|
2427
2979
|
allSupportedCurrencies: Array<Currency>;
|
|
2428
|
-
/** Paginated + searchable attribute options
|
|
2980
|
+
/** Paginated + searchable attribute options for a drill-into filter UI (e.g. a dropdown of 800 licenses + search input). Honors product context with exclude-self per attribute. Sort: COUNT_DESC default (most popular first), LABEL_ASC for alphabetical (Polish collation). */
|
|
2429
2981
|
attributeOptionsSearch: AttributeFilterValueConnection;
|
|
2430
|
-
/** Payment methods active for the current shop, plus the merchant default.
|
|
2982
|
+
/** Payment methods active for the current shop, plus the merchant default. Returns one row per `PaymentMethodType` (BLIK, CARD, BANK_TRANSFER, ...) with `providersAvailable` (provider codes sorted by merchant priority) and `preferredProvider` (the head of the list). Shop-level — independent of cart contents. */
|
|
2431
2983
|
availablePaymentMethods: AvailablePaymentMethods;
|
|
2432
2984
|
/** 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. */
|
|
2433
2985
|
availableShippingMethods: AvailableShippingMethodsPayload;
|
|
@@ -2447,7 +2999,7 @@ export type Query = {
|
|
|
2447
2999
|
cart?: Maybe<Cart>;
|
|
2448
3000
|
/** 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. */
|
|
2449
3001
|
cartValidateDiscountCode: DiscountValidationResult;
|
|
2450
|
-
/**
|
|
3002
|
+
/** List of categories (Relay Connection) with optional rootsOnly/parentId filtering */
|
|
2451
3003
|
categories: CategoryConnection;
|
|
2452
3004
|
/** Get category by ID or slug */
|
|
2453
3005
|
category?: Maybe<Category>;
|
|
@@ -2477,9 +3029,9 @@ export type Query = {
|
|
|
2477
3029
|
giftCardValidate: GiftCardValidatePayload;
|
|
2478
3030
|
/** Get available languages for this shop */
|
|
2479
3031
|
languages: Array<Language>;
|
|
2480
|
-
/** Localization context (
|
|
3032
|
+
/** Localization context (countries, languages, the customer current country/language) */
|
|
2481
3033
|
localization: Localization;
|
|
2482
|
-
/** Fetch a single active location by ID. Returns null when missing, inactive, or owned by another shop (tenant isolation
|
|
3034
|
+
/** Fetch a single active location by ID. Returns null when missing, inactive, or owned by another shop (tenant isolation enforced server-side). */
|
|
2483
3035
|
location?: Maybe<Location>;
|
|
2484
3036
|
/** Paginated locations for the current shop. Supports proximity (`near`), pickup-only filter (`hasPickupEnabled`), and `locationType` filter. */
|
|
2485
3037
|
locations: LocationConnection;
|
|
@@ -2497,7 +3049,7 @@ export type Query = {
|
|
|
2497
3049
|
menu?: Maybe<Menu>;
|
|
2498
3050
|
/** Universal ID-based lookup (Relay Node spec) */
|
|
2499
3051
|
node?: Maybe<Node>;
|
|
2500
|
-
/** Batch ID-based lookup; same NodeType
|
|
3052
|
+
/** Batch ID-based lookup; same NodeType for all IDs. Missing/wrong IDs → null entries (preserved length). */
|
|
2501
3053
|
nodes: Array<Maybe<Node>>;
|
|
2502
3054
|
/** 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. */
|
|
2503
3055
|
orderByToken?: Maybe<Order>;
|
|
@@ -2548,7 +3100,16 @@ export type Query = {
|
|
|
2548
3100
|
/** Get customer wishlists (requires customer auth) */
|
|
2549
3101
|
wishlists: WishlistConnection;
|
|
2550
3102
|
};
|
|
2551
|
-
export
|
|
3103
|
+
export declare const RecommendationType: {
|
|
3104
|
+
readonly CrossSell: "CROSS_SELL";
|
|
3105
|
+
readonly FrequentlyBoughtTogether: "FREQUENTLY_BOUGHT_TOGETHER";
|
|
3106
|
+
readonly Personalized: "PERSONALIZED";
|
|
3107
|
+
readonly RecentlyViewed: "RECENTLY_VIEWED";
|
|
3108
|
+
readonly Similar: "SIMILAR";
|
|
3109
|
+
readonly Trending: "TRENDING";
|
|
3110
|
+
readonly Upsell: "UPSELL";
|
|
3111
|
+
};
|
|
3112
|
+
export type RecommendationType = typeof RecommendationType[keyof typeof RecommendationType];
|
|
2552
3113
|
export type RedeemRewardPayload = {
|
|
2553
3114
|
/** Generated discount code for DISCOUNT type rewards */
|
|
2554
3115
|
discountCode?: Maybe<Scalars['String']['output']>;
|
|
@@ -2646,8 +3207,8 @@ export type ReturnItem = {
|
|
|
2646
3207
|
condition?: Maybe<Scalars['String']['output']>;
|
|
2647
3208
|
/** Item ID */
|
|
2648
3209
|
id: Scalars['ID']['output'];
|
|
2649
|
-
/** Product image
|
|
2650
|
-
|
|
3210
|
+
/** Product image at time of return submission. Use `image { url(transform: { maxWidth: ... }) altText }` for responsive thumbnails in the merchant return dashboard. */
|
|
3211
|
+
image?: Maybe<Image>;
|
|
2651
3212
|
/** Evidence photos */
|
|
2652
3213
|
photos?: Maybe<Array<ReturnItemPhoto>>;
|
|
2653
3214
|
/** Product title */
|
|
@@ -2685,7 +3246,16 @@ export type ReturnPayload = {
|
|
|
2685
3246
|
/** User errors */
|
|
2686
3247
|
userErrors: Array<UserError>;
|
|
2687
3248
|
};
|
|
2688
|
-
export
|
|
3249
|
+
export declare const ReturnReason: {
|
|
3250
|
+
readonly BetterPrice: "BETTER_PRICE";
|
|
3251
|
+
readonly ChangedMind: "CHANGED_MIND";
|
|
3252
|
+
readonly DamagedShipping: "DAMAGED_SHIPPING";
|
|
3253
|
+
readonly Defective: "DEFECTIVE";
|
|
3254
|
+
readonly NotAsDescribed: "NOT_AS_DESCRIBED";
|
|
3255
|
+
readonly Other: "OTHER";
|
|
3256
|
+
readonly WrongItem: "WRONG_ITEM";
|
|
3257
|
+
};
|
|
3258
|
+
export type ReturnReason = typeof ReturnReason[keyof typeof ReturnReason];
|
|
2689
3259
|
export type ReturnReasonOption = {
|
|
2690
3260
|
/** Description/help text */
|
|
2691
3261
|
description?: Maybe<Scalars['String']['output']>;
|
|
@@ -2704,7 +3274,25 @@ export type ReturnShippingLabel = {
|
|
|
2704
3274
|
/** URL to download the shipping label */
|
|
2705
3275
|
url: Scalars['String']['output'];
|
|
2706
3276
|
};
|
|
2707
|
-
export
|
|
3277
|
+
export declare const ReturnStatus: {
|
|
3278
|
+
readonly Approved: "APPROVED";
|
|
3279
|
+
readonly Cancelled: "CANCELLED";
|
|
3280
|
+
readonly Completed: "COMPLETED";
|
|
3281
|
+
readonly Draft: "DRAFT";
|
|
3282
|
+
readonly Exchanged: "EXCHANGED";
|
|
3283
|
+
readonly Expired: "EXPIRED";
|
|
3284
|
+
readonly Failed: "FAILED";
|
|
3285
|
+
readonly Inspecting: "INSPECTING";
|
|
3286
|
+
readonly InTransit: "IN_TRANSIT";
|
|
3287
|
+
readonly LabelGenerated: "LABEL_GENERATED";
|
|
3288
|
+
readonly Received: "RECEIVED";
|
|
3289
|
+
readonly Refunded: "REFUNDED";
|
|
3290
|
+
readonly RefundPending: "REFUND_PENDING";
|
|
3291
|
+
readonly Rejected: "REJECTED";
|
|
3292
|
+
readonly Replaced: "REPLACED";
|
|
3293
|
+
readonly Requested: "REQUESTED";
|
|
3294
|
+
};
|
|
3295
|
+
export type ReturnStatus = typeof ReturnStatus[keyof typeof ReturnStatus];
|
|
2708
3296
|
export type ReviewPayload = {
|
|
2709
3297
|
review?: Maybe<ProductReview>;
|
|
2710
3298
|
/** User errors */
|
|
@@ -2799,8 +3387,8 @@ export type ShipmentEvent = {
|
|
|
2799
3387
|
export type ShipmentItem = {
|
|
2800
3388
|
/** Item ID */
|
|
2801
3389
|
id: Scalars['ID']['output'];
|
|
2802
|
-
/**
|
|
2803
|
-
|
|
3390
|
+
/** Live variant image with snapshot fallback. Use `image { url(transform: { maxWidth: 200, preferredContentType: WEBP }) altText }` for responsive thumbnails. Returns `null` when the variant has been deleted since fulfillment — render a placeholder client-side. */
|
|
3391
|
+
image?: Maybe<Image>;
|
|
2804
3392
|
/** Quantity shipped */
|
|
2805
3393
|
quantity: Scalars['Int']['output'];
|
|
2806
3394
|
/** Product SKU */
|
|
@@ -2826,7 +3414,18 @@ export type ShipmentPayload = {
|
|
|
2826
3414
|
/** User errors */
|
|
2827
3415
|
userErrors: Array<UserError>;
|
|
2828
3416
|
};
|
|
2829
|
-
export
|
|
3417
|
+
export declare const ShipmentStatus: {
|
|
3418
|
+
readonly Cancelled: "CANCELLED";
|
|
3419
|
+
readonly Created: "CREATED";
|
|
3420
|
+
readonly Delivered: "DELIVERED";
|
|
3421
|
+
readonly Exception: "EXCEPTION";
|
|
3422
|
+
readonly InTransit: "IN_TRANSIT";
|
|
3423
|
+
readonly LabelPrinted: "LABEL_PRINTED";
|
|
3424
|
+
readonly OutForDelivery: "OUT_FOR_DELIVERY";
|
|
3425
|
+
readonly PickedUp: "PICKED_UP";
|
|
3426
|
+
readonly Returned: "RETURNED";
|
|
3427
|
+
};
|
|
3428
|
+
export type ShipmentStatus = typeof ShipmentStatus[keyof typeof ShipmentStatus];
|
|
2830
3429
|
export type ShippingAddressInput = {
|
|
2831
3430
|
/** City / town. */
|
|
2832
3431
|
city?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -2850,8 +3449,8 @@ export type ShippingAddressInput = {
|
|
|
2850
3449
|
export type ShippingCarrier = {
|
|
2851
3450
|
/** Stable carrier identifier. Null when the method does not map to a registered carrier (e.g. local pickup configured by the merchant). */
|
|
2852
3451
|
id?: Maybe<Scalars['ID']['output']>;
|
|
2853
|
-
/**
|
|
2854
|
-
|
|
3452
|
+
/** Carrier logo image. Use `logo { url(transform: { maxWidth: 64 }) altText }` for the method tile in the shipping picker. */
|
|
3453
|
+
logo?: Maybe<Image>;
|
|
2855
3454
|
/** Carrier display name (e.g. "InPost", "DPD", "DHL"). */
|
|
2856
3455
|
name: Scalars['String']['output'];
|
|
2857
3456
|
/** Carrier service code as configured by the merchant (e.g. "inpost_paczkomat"). Useful when integrating carrier widgets. */
|
|
@@ -2876,7 +3475,7 @@ export type Shop = {
|
|
|
2876
3475
|
contactPhone?: Maybe<Scalars['String']['output']>;
|
|
2877
3476
|
/** Default currency code (ISO 4217) */
|
|
2878
3477
|
currencyCode: CurrencyCode;
|
|
2879
|
-
/** Customer account URL (login/orders) —
|
|
3478
|
+
/** Customer account URL (login/orders) — derived from primaryDomain */
|
|
2880
3479
|
customerAccountUrl?: Maybe<Scalars['URL']['output']>;
|
|
2881
3480
|
/** Default language code (ISO 639-1) */
|
|
2882
3481
|
defaultLanguage?: Maybe<LanguageCode>;
|
|
@@ -2890,7 +3489,7 @@ export type Shop = {
|
|
|
2890
3489
|
localeToCurrencyMap: Array<LocaleCurrencyMapping>;
|
|
2891
3490
|
/** Shop logo */
|
|
2892
3491
|
logo?: Maybe<Image>;
|
|
2893
|
-
/** Money display format
|
|
3492
|
+
/** Money display format with the `{{amount}}` placeholder, e.g. "{{amount}} zł" */
|
|
2894
3493
|
moneyFormat: Scalars['String']['output'];
|
|
2895
3494
|
/** Shop name */
|
|
2896
3495
|
name: Scalars['String']['output'];
|
|
@@ -3071,7 +3670,17 @@ export type StoreAvailabilityEdge = {
|
|
|
3071
3670
|
/** The availability node */
|
|
3072
3671
|
node: StoreAvailability;
|
|
3073
3672
|
};
|
|
3074
|
-
export
|
|
3673
|
+
export declare const StorefrontOrderStatus: {
|
|
3674
|
+
readonly Cancelled: "CANCELLED";
|
|
3675
|
+
readonly Completed: "COMPLETED";
|
|
3676
|
+
readonly Confirmed: "CONFIRMED";
|
|
3677
|
+
readonly Draft: "DRAFT";
|
|
3678
|
+
readonly Expired: "EXPIRED";
|
|
3679
|
+
readonly OnHold: "ON_HOLD";
|
|
3680
|
+
readonly Pending: "PENDING";
|
|
3681
|
+
readonly Processing: "PROCESSING";
|
|
3682
|
+
};
|
|
3683
|
+
export type StorefrontOrderStatus = typeof StorefrontOrderStatus[keyof typeof StorefrontOrderStatus];
|
|
3075
3684
|
export type SubscribeToMarketingPayload = {
|
|
3076
3685
|
/** Always true (anti-enumeration). Backend may silently skip enqueue if rate-limited or already SUBSCRIBED. */
|
|
3077
3686
|
accepted: Scalars['Boolean']['output'];
|
|
@@ -3081,8 +3690,8 @@ export type SubscribeToMarketingPayload = {
|
|
|
3081
3690
|
export type TierBenefit = {
|
|
3082
3691
|
/** Benefit description */
|
|
3083
3692
|
description?: Maybe<Scalars['String']['output']>;
|
|
3084
|
-
/** Benefit icon */
|
|
3085
|
-
icon?: Maybe<
|
|
3693
|
+
/** Benefit icon image. Use `icon { url(transform: { maxWidth: 48 }) altText }` for small visual markers on the tier benefits list. */
|
|
3694
|
+
icon?: Maybe<Image>;
|
|
3086
3695
|
/** Benefit name */
|
|
3087
3696
|
name: Scalars['String']['output'];
|
|
3088
3697
|
};
|
|
@@ -3116,7 +3725,11 @@ export type Translations = {
|
|
|
3116
3725
|
/** Namespaces with translations */
|
|
3117
3726
|
namespaces: Array<TranslationNamespace>;
|
|
3118
3727
|
};
|
|
3119
|
-
export
|
|
3728
|
+
export declare const UnitSystem: {
|
|
3729
|
+
readonly ImperialSystem: "IMPERIAL_SYSTEM";
|
|
3730
|
+
readonly MetricSystem: "METRIC_SYSTEM";
|
|
3731
|
+
};
|
|
3732
|
+
export type UnitSystem = typeof UnitSystem[keyof typeof UnitSystem];
|
|
3120
3733
|
export type UnsubscribeFromMarketingPayload = {
|
|
3121
3734
|
/** Always true (anti-enumeration). */
|
|
3122
3735
|
accepted: Scalars['Boolean']['output'];
|
|
@@ -3149,7 +3762,13 @@ export type Weight = {
|
|
|
3149
3762
|
/** Weight magnitude, interpreted according to `unit`. */
|
|
3150
3763
|
value: Scalars['Float']['output'];
|
|
3151
3764
|
};
|
|
3152
|
-
export
|
|
3765
|
+
export declare const WeightUnit: {
|
|
3766
|
+
readonly Grams: "GRAMS";
|
|
3767
|
+
readonly Kilograms: "KILOGRAMS";
|
|
3768
|
+
readonly Ounces: "OUNCES";
|
|
3769
|
+
readonly Pounds: "POUNDS";
|
|
3770
|
+
};
|
|
3771
|
+
export type WeightUnit = typeof WeightUnit[keyof typeof WeightUnit];
|
|
3153
3772
|
export type Wishlist = {
|
|
3154
3773
|
/** Created date */
|
|
3155
3774
|
createdAt: Scalars['DateTime']['output'];
|
|
@@ -3210,8 +3829,18 @@ export type AvailablePaymentMethodsQueryVariables = Exact<{
|
|
|
3210
3829
|
}>;
|
|
3211
3830
|
export type AvailablePaymentMethodsQuery = {
|
|
3212
3831
|
availablePaymentMethods: {
|
|
3213
|
-
methods: Array<Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | '
|
|
3214
|
-
|
|
3832
|
+
methods: Array<(Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position' | 'providersAvailable' | 'preferredProvider' | 'available' | 'unavailableReason'> & {
|
|
3833
|
+
icon?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
3834
|
+
instruments?: Maybe<Array<(Pick<PaymentInstrument, 'provider' | 'code' | 'type' | 'displayName' | 'displayHint' | 'enabled'> & {
|
|
3835
|
+
brandImage?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
3836
|
+
})>>;
|
|
3837
|
+
})>;
|
|
3838
|
+
defaultMethod?: Maybe<(Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position' | 'providersAvailable' | 'preferredProvider' | 'available' | 'unavailableReason'> & {
|
|
3839
|
+
icon?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
3840
|
+
instruments?: Maybe<Array<(Pick<PaymentInstrument, 'provider' | 'code' | 'type' | 'displayName' | 'displayHint' | 'enabled'> & {
|
|
3841
|
+
brandImage?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
3842
|
+
})>>;
|
|
3843
|
+
})>;
|
|
3215
3844
|
};
|
|
3216
3845
|
};
|
|
3217
3846
|
export type CartAddLinesMutationVariables = Exact<{
|
|
@@ -3220,7 +3849,7 @@ export type CartAddLinesMutationVariables = Exact<{
|
|
|
3220
3849
|
}>;
|
|
3221
3850
|
export type CartAddLinesMutation = {
|
|
3222
3851
|
cartAddLines: {
|
|
3223
|
-
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
3852
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'selectedPaymentInstrument' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
3224
3853
|
cost: {
|
|
3225
3854
|
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3226
3855
|
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
@@ -3266,7 +3895,9 @@ export type CartAddLinesMutation = {
|
|
|
3266
3895
|
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
3267
3896
|
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3268
3897
|
})>;
|
|
3269
|
-
selectedPaymentMethod?: Maybe<Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | '
|
|
3898
|
+
selectedPaymentMethod?: Maybe<(Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'> & {
|
|
3899
|
+
icon?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
3900
|
+
})>;
|
|
3270
3901
|
appliedGiftCards: Array<(Pick<CartAppliedGiftCard, 'id' | 'maskedCode' | 'lastCharacters'> & {
|
|
3271
3902
|
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3272
3903
|
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
@@ -3282,7 +3913,7 @@ export type CartApplyGiftCardMutationVariables = Exact<{
|
|
|
3282
3913
|
}>;
|
|
3283
3914
|
export type CartApplyGiftCardMutation = {
|
|
3284
3915
|
cartApplyGiftCard: {
|
|
3285
|
-
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
3916
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'selectedPaymentInstrument' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
3286
3917
|
cost: {
|
|
3287
3918
|
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3288
3919
|
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
@@ -3328,7 +3959,9 @@ export type CartApplyGiftCardMutation = {
|
|
|
3328
3959
|
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
3329
3960
|
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3330
3961
|
})>;
|
|
3331
|
-
selectedPaymentMethod?: Maybe<Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | '
|
|
3962
|
+
selectedPaymentMethod?: Maybe<(Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'> & {
|
|
3963
|
+
icon?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
3964
|
+
})>;
|
|
3332
3965
|
appliedGiftCards: Array<(Pick<CartAppliedGiftCard, 'id' | 'maskedCode' | 'lastCharacters'> & {
|
|
3333
3966
|
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3334
3967
|
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
@@ -3347,7 +3980,9 @@ export type CartAvailableShippingMethodsQuery = {
|
|
|
3347
3980
|
cart?: Maybe<(Pick<Cart, 'id' | 'requiresShipping'> & {
|
|
3348
3981
|
availableShippingMethods: {
|
|
3349
3982
|
methods: Array<(Pick<AvailableShippingMethod, 'id' | 'name' | 'description' | 'deliveryType' | 'isFree' | 'sortOrder'> & {
|
|
3350
|
-
carrier?: Maybe<Pick<ShippingCarrier, 'id' | 'name' | '
|
|
3983
|
+
carrier?: Maybe<(Pick<ShippingCarrier, 'id' | 'name' | 'serviceCode'> & {
|
|
3984
|
+
logo?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
3985
|
+
})>;
|
|
3351
3986
|
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3352
3987
|
estimatedDelivery?: Maybe<Pick<DeliveryEstimate, 'minDays' | 'maxDays' | 'description'>>;
|
|
3353
3988
|
freeShippingProgress?: Maybe<(Pick<FreeShippingProgress, 'qualifies' | 'progressPercent' | 'message'> & {
|
|
@@ -3365,6 +4000,70 @@ export type CartAvailableShippingMethodsQuery = {
|
|
|
3365
4000
|
};
|
|
3366
4001
|
})>;
|
|
3367
4002
|
};
|
|
4003
|
+
export type CartClearPaymentSelectionMutationVariables = Exact<{
|
|
4004
|
+
input: CartClearPaymentSelectionInput;
|
|
4005
|
+
}>;
|
|
4006
|
+
export type CartClearPaymentSelectionMutation = {
|
|
4007
|
+
cartClearPaymentSelection: {
|
|
4008
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'selectedPaymentInstrument' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
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
|
+
totalDiscount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4016
|
+
totalShipping?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4017
|
+
};
|
|
4018
|
+
lines: (Pick<CartLineConnection, 'totalCount'> & {
|
|
4019
|
+
nodes: Array<(Pick<CartLine, 'id' | 'quantity' | 'productId' | 'productTitle' | 'productHandle' | 'productType' | 'requiresShipping'> & {
|
|
4020
|
+
variant: (Pick<ProductVariant, 'id' | 'title' | 'sku' | 'isAvailable' | 'availableStock' | 'barcode' | 'sortOrder'> & {
|
|
4021
|
+
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4022
|
+
compareAtPrice?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4023
|
+
image?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
4024
|
+
selectedOptions: Array<Pick<SelectedOption, 'name' | 'value'>>;
|
|
4025
|
+
weight?: Maybe<Pick<Weight, 'value' | 'unit'>>;
|
|
4026
|
+
});
|
|
4027
|
+
cost: {
|
|
4028
|
+
pricePerUnit: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4029
|
+
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4030
|
+
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4031
|
+
compareAtPricePerUnit?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4032
|
+
};
|
|
4033
|
+
attributes: Array<Pick<Attribute, 'key' | 'value'>>;
|
|
4034
|
+
attributeSelections: Array<Pick<AttributeSelection, 'attributeDefinitionId' | 'attributeName' | 'type' | 'fillingMode' | 'billingMode' | 'optionId' | 'optionLabel' | 'optionIds' | 'textValue' | 'surchargeAmount' | 'surchargeType' | 'taxClassId' | 'linkedVariantId'>>;
|
|
4035
|
+
giftCardRecipient?: Maybe<Pick<GiftCardLineRecipient, 'recipientEmail' | 'recipientName' | 'message'>>;
|
|
4036
|
+
})>;
|
|
4037
|
+
pageInfo: Pick<PageInfo, 'hasNextPage' | 'hasPreviousPage' | 'startCursor' | 'endCursor'>;
|
|
4038
|
+
});
|
|
4039
|
+
buyerIdentity?: Maybe<Pick<CartBuyerIdentity, 'email' | 'phone' | 'countryCode'>>;
|
|
4040
|
+
discountCodes: Array<Pick<CartDiscountCode, 'code' | 'isApplicable'>>;
|
|
4041
|
+
discountAllocations: Array<(Pick<CartDiscountAllocation, 'discountCode'> & {
|
|
4042
|
+
amount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4043
|
+
})>;
|
|
4044
|
+
attributes: Array<Pick<CartAttribute, 'key' | 'value'>>;
|
|
4045
|
+
shippingAddress?: 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
|
+
billingAddress?: Maybe<(Pick<MailingAddress, 'id' | 'firstName' | 'lastName' | 'name' | 'company' | 'streetLine1' | 'streetLine2' | 'city' | 'state' | 'stateCode' | 'country' | 'countryCode' | 'postalCode' | 'phone' | 'isDefault' | 'taxId' | 'vatNumber'> & {
|
|
4049
|
+
pickupPoint?: Maybe<Pick<PickupPoint, 'provider' | 'pointId' | 'name' | 'address'>>;
|
|
4050
|
+
})>;
|
|
4051
|
+
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
4052
|
+
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4053
|
+
})>;
|
|
4054
|
+
selectedPaymentMethod?: Maybe<(Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'> & {
|
|
4055
|
+
icon?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
4056
|
+
})>;
|
|
4057
|
+
appliedGiftCards: Array<(Pick<CartAppliedGiftCard, 'id' | 'maskedCode' | 'lastCharacters'> & {
|
|
4058
|
+
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4059
|
+
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4060
|
+
})>;
|
|
4061
|
+
completedOrder?: Maybe<Pick<Order, 'id' | 'orderNumber' | 'accessToken' | 'status' | 'paymentStatus' | 'fulfillmentStatus'>>;
|
|
4062
|
+
})>;
|
|
4063
|
+
userErrors: Array<Pick<UserError, 'message' | 'code' | 'field'>>;
|
|
4064
|
+
warnings: Array<Pick<CartWarning, 'message' | 'code' | 'target'>>;
|
|
4065
|
+
};
|
|
4066
|
+
};
|
|
3368
4067
|
export type CartCompleteMutationVariables = Exact<{
|
|
3369
4068
|
input: CartCompleteInput;
|
|
3370
4069
|
}>;
|
|
@@ -3390,7 +4089,7 @@ export type CartCreateMutationVariables = Exact<{
|
|
|
3390
4089
|
}>;
|
|
3391
4090
|
export type CartCreateMutation = {
|
|
3392
4091
|
cartCreate: {
|
|
3393
|
-
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
4092
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'selectedPaymentInstrument' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
3394
4093
|
cost: {
|
|
3395
4094
|
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3396
4095
|
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
@@ -3436,7 +4135,9 @@ export type CartCreateMutation = {
|
|
|
3436
4135
|
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
3437
4136
|
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3438
4137
|
})>;
|
|
3439
|
-
selectedPaymentMethod?: Maybe<Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | '
|
|
4138
|
+
selectedPaymentMethod?: Maybe<(Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'> & {
|
|
4139
|
+
icon?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
4140
|
+
})>;
|
|
3440
4141
|
appliedGiftCards: Array<(Pick<CartAppliedGiftCard, 'id' | 'maskedCode' | 'lastCharacters'> & {
|
|
3441
4142
|
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3442
4143
|
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
@@ -3453,7 +4154,7 @@ export type CartDiscountCodesUpdateMutationVariables = Exact<{
|
|
|
3453
4154
|
}>;
|
|
3454
4155
|
export type CartDiscountCodesUpdateMutation = {
|
|
3455
4156
|
cartDiscountCodesUpdate: {
|
|
3456
|
-
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
4157
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'selectedPaymentInstrument' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
3457
4158
|
cost: {
|
|
3458
4159
|
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3459
4160
|
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
@@ -3499,7 +4200,9 @@ export type CartDiscountCodesUpdateMutation = {
|
|
|
3499
4200
|
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
3500
4201
|
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3501
4202
|
})>;
|
|
3502
|
-
selectedPaymentMethod?: Maybe<Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | '
|
|
4203
|
+
selectedPaymentMethod?: Maybe<(Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'> & {
|
|
4204
|
+
icon?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
4205
|
+
})>;
|
|
3503
4206
|
appliedGiftCards: Array<(Pick<CartAppliedGiftCard, 'id' | 'maskedCode' | 'lastCharacters'> & {
|
|
3504
4207
|
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3505
4208
|
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
@@ -3514,7 +4217,7 @@ export type CartQueryVariables = Exact<{
|
|
|
3514
4217
|
id: Scalars['ID']['input'];
|
|
3515
4218
|
}>;
|
|
3516
4219
|
export type CartQuery = {
|
|
3517
|
-
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
4220
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'selectedPaymentInstrument' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
3518
4221
|
cost: {
|
|
3519
4222
|
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3520
4223
|
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
@@ -3560,7 +4263,9 @@ export type CartQuery = {
|
|
|
3560
4263
|
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
3561
4264
|
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3562
4265
|
})>;
|
|
3563
|
-
selectedPaymentMethod?: Maybe<Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | '
|
|
4266
|
+
selectedPaymentMethod?: Maybe<(Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'> & {
|
|
4267
|
+
icon?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
4268
|
+
})>;
|
|
3564
4269
|
appliedGiftCards: Array<(Pick<CartAppliedGiftCard, 'id' | 'maskedCode' | 'lastCharacters'> & {
|
|
3565
4270
|
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3566
4271
|
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
@@ -3573,7 +4278,7 @@ export type CartRemoveGiftCardMutationVariables = Exact<{
|
|
|
3573
4278
|
}>;
|
|
3574
4279
|
export type CartRemoveGiftCardMutation = {
|
|
3575
4280
|
cartRemoveGiftCard: {
|
|
3576
|
-
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
4281
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'selectedPaymentInstrument' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
3577
4282
|
cost: {
|
|
3578
4283
|
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3579
4284
|
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
@@ -3619,7 +4324,9 @@ export type CartRemoveGiftCardMutation = {
|
|
|
3619
4324
|
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
3620
4325
|
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3621
4326
|
})>;
|
|
3622
|
-
selectedPaymentMethod?: Maybe<Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | '
|
|
4327
|
+
selectedPaymentMethod?: Maybe<(Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'> & {
|
|
4328
|
+
icon?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
4329
|
+
})>;
|
|
3623
4330
|
appliedGiftCards: Array<(Pick<CartAppliedGiftCard, 'id' | 'maskedCode' | 'lastCharacters'> & {
|
|
3624
4331
|
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3625
4332
|
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
@@ -3636,7 +4343,7 @@ export type CartRemoveLinesMutationVariables = Exact<{
|
|
|
3636
4343
|
}>;
|
|
3637
4344
|
export type CartRemoveLinesMutation = {
|
|
3638
4345
|
cartRemoveLines: {
|
|
3639
|
-
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
4346
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'selectedPaymentInstrument' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
3640
4347
|
cost: {
|
|
3641
4348
|
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3642
4349
|
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
@@ -3682,7 +4389,9 @@ export type CartRemoveLinesMutation = {
|
|
|
3682
4389
|
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
3683
4390
|
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3684
4391
|
})>;
|
|
3685
|
-
selectedPaymentMethod?: Maybe<Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | '
|
|
4392
|
+
selectedPaymentMethod?: Maybe<(Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'> & {
|
|
4393
|
+
icon?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
4394
|
+
})>;
|
|
3686
4395
|
appliedGiftCards: Array<(Pick<CartAppliedGiftCard, 'id' | 'maskedCode' | 'lastCharacters'> & {
|
|
3687
4396
|
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3688
4397
|
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
@@ -3698,7 +4407,7 @@ export type CartSelectPaymentMethodMutationVariables = Exact<{
|
|
|
3698
4407
|
}>;
|
|
3699
4408
|
export type CartSelectPaymentMethodMutation = {
|
|
3700
4409
|
cartSelectPaymentMethod: {
|
|
3701
|
-
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
4410
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'selectedPaymentInstrument' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
3702
4411
|
cost: {
|
|
3703
4412
|
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3704
4413
|
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
@@ -3744,7 +4453,9 @@ export type CartSelectPaymentMethodMutation = {
|
|
|
3744
4453
|
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
3745
4454
|
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3746
4455
|
})>;
|
|
3747
|
-
selectedPaymentMethod?: Maybe<Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | '
|
|
4456
|
+
selectedPaymentMethod?: Maybe<(Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'> & {
|
|
4457
|
+
icon?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
4458
|
+
})>;
|
|
3748
4459
|
appliedGiftCards: Array<(Pick<CartAppliedGiftCard, 'id' | 'maskedCode' | 'lastCharacters'> & {
|
|
3749
4460
|
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3750
4461
|
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
@@ -3760,7 +4471,7 @@ export type CartSelectShippingMethodMutationVariables = Exact<{
|
|
|
3760
4471
|
}>;
|
|
3761
4472
|
export type CartSelectShippingMethodMutation = {
|
|
3762
4473
|
cartSelectShippingMethod: {
|
|
3763
|
-
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
4474
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'selectedPaymentInstrument' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
3764
4475
|
cost: {
|
|
3765
4476
|
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3766
4477
|
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
@@ -3806,7 +4517,9 @@ export type CartSelectShippingMethodMutation = {
|
|
|
3806
4517
|
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
3807
4518
|
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3808
4519
|
})>;
|
|
3809
|
-
selectedPaymentMethod?: Maybe<Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | '
|
|
4520
|
+
selectedPaymentMethod?: Maybe<(Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'> & {
|
|
4521
|
+
icon?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
4522
|
+
})>;
|
|
3810
4523
|
appliedGiftCards: Array<(Pick<CartAppliedGiftCard, 'id' | 'maskedCode' | 'lastCharacters'> & {
|
|
3811
4524
|
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3812
4525
|
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
@@ -3822,7 +4535,7 @@ export type CartSetBillingAddressMutationVariables = Exact<{
|
|
|
3822
4535
|
}>;
|
|
3823
4536
|
export type CartSetBillingAddressMutation = {
|
|
3824
4537
|
cartSetBillingAddress: {
|
|
3825
|
-
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
4538
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'selectedPaymentInstrument' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
3826
4539
|
cost: {
|
|
3827
4540
|
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3828
4541
|
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
@@ -3868,7 +4581,9 @@ export type CartSetBillingAddressMutation = {
|
|
|
3868
4581
|
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
3869
4582
|
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3870
4583
|
})>;
|
|
3871
|
-
selectedPaymentMethod?: Maybe<Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | '
|
|
4584
|
+
selectedPaymentMethod?: Maybe<(Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'> & {
|
|
4585
|
+
icon?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
4586
|
+
})>;
|
|
3872
4587
|
appliedGiftCards: Array<(Pick<CartAppliedGiftCard, 'id' | 'maskedCode' | 'lastCharacters'> & {
|
|
3873
4588
|
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3874
4589
|
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
@@ -3884,7 +4599,7 @@ export type CartSetShippingAddressMutationVariables = Exact<{
|
|
|
3884
4599
|
}>;
|
|
3885
4600
|
export type CartSetShippingAddressMutation = {
|
|
3886
4601
|
cartSetShippingAddress: {
|
|
3887
|
-
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
4602
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'selectedPaymentInstrument' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
3888
4603
|
cost: {
|
|
3889
4604
|
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3890
4605
|
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
@@ -3930,7 +4645,9 @@ export type CartSetShippingAddressMutation = {
|
|
|
3930
4645
|
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
3931
4646
|
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3932
4647
|
})>;
|
|
3933
|
-
selectedPaymentMethod?: Maybe<Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | '
|
|
4648
|
+
selectedPaymentMethod?: Maybe<(Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'> & {
|
|
4649
|
+
icon?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
4650
|
+
})>;
|
|
3934
4651
|
appliedGiftCards: Array<(Pick<CartAppliedGiftCard, 'id' | 'maskedCode' | 'lastCharacters'> & {
|
|
3935
4652
|
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3936
4653
|
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
@@ -3947,7 +4664,7 @@ export type CartUpdateAttributesMutationVariables = Exact<{
|
|
|
3947
4664
|
}>;
|
|
3948
4665
|
export type CartUpdateAttributesMutation = {
|
|
3949
4666
|
cartUpdateAttributes: {
|
|
3950
|
-
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
4667
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'selectedPaymentInstrument' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
3951
4668
|
cost: {
|
|
3952
4669
|
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3953
4670
|
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
@@ -3993,7 +4710,9 @@ export type CartUpdateAttributesMutation = {
|
|
|
3993
4710
|
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
3994
4711
|
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3995
4712
|
})>;
|
|
3996
|
-
selectedPaymentMethod?: Maybe<Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | '
|
|
4713
|
+
selectedPaymentMethod?: Maybe<(Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'> & {
|
|
4714
|
+
icon?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
4715
|
+
})>;
|
|
3997
4716
|
appliedGiftCards: Array<(Pick<CartAppliedGiftCard, 'id' | 'maskedCode' | 'lastCharacters'> & {
|
|
3998
4717
|
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3999
4718
|
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
@@ -4010,7 +4729,7 @@ export type CartUpdateBuyerIdentityMutationVariables = Exact<{
|
|
|
4010
4729
|
}>;
|
|
4011
4730
|
export type CartUpdateBuyerIdentityMutation = {
|
|
4012
4731
|
cartUpdateBuyerIdentity: {
|
|
4013
|
-
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
4732
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'selectedPaymentInstrument' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
4014
4733
|
cost: {
|
|
4015
4734
|
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4016
4735
|
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
@@ -4056,7 +4775,9 @@ export type CartUpdateBuyerIdentityMutation = {
|
|
|
4056
4775
|
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
4057
4776
|
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4058
4777
|
})>;
|
|
4059
|
-
selectedPaymentMethod?: Maybe<Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | '
|
|
4778
|
+
selectedPaymentMethod?: Maybe<(Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'> & {
|
|
4779
|
+
icon?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
4780
|
+
})>;
|
|
4060
4781
|
appliedGiftCards: Array<(Pick<CartAppliedGiftCard, 'id' | 'maskedCode' | 'lastCharacters'> & {
|
|
4061
4782
|
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4062
4783
|
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
@@ -4072,7 +4793,7 @@ export type CartUpdateGiftCardRecipientMutationVariables = Exact<{
|
|
|
4072
4793
|
}>;
|
|
4073
4794
|
export type CartUpdateGiftCardRecipientMutation = {
|
|
4074
4795
|
cartUpdateGiftCardRecipient: {
|
|
4075
|
-
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
4796
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'selectedPaymentInstrument' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
4076
4797
|
cost: {
|
|
4077
4798
|
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4078
4799
|
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
@@ -4118,7 +4839,9 @@ export type CartUpdateGiftCardRecipientMutation = {
|
|
|
4118
4839
|
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
4119
4840
|
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4120
4841
|
})>;
|
|
4121
|
-
selectedPaymentMethod?: Maybe<Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | '
|
|
4842
|
+
selectedPaymentMethod?: Maybe<(Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'> & {
|
|
4843
|
+
icon?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
4844
|
+
})>;
|
|
4122
4845
|
appliedGiftCards: Array<(Pick<CartAppliedGiftCard, 'id' | 'maskedCode' | 'lastCharacters'> & {
|
|
4123
4846
|
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4124
4847
|
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
@@ -4135,7 +4858,7 @@ export type CartUpdateLinesMutationVariables = Exact<{
|
|
|
4135
4858
|
}>;
|
|
4136
4859
|
export type CartUpdateLinesMutation = {
|
|
4137
4860
|
cartUpdateLines: {
|
|
4138
|
-
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
4861
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'selectedPaymentInstrument' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
4139
4862
|
cost: {
|
|
4140
4863
|
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4141
4864
|
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
@@ -4181,7 +4904,9 @@ export type CartUpdateLinesMutation = {
|
|
|
4181
4904
|
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
4182
4905
|
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4183
4906
|
})>;
|
|
4184
|
-
selectedPaymentMethod?: Maybe<Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | '
|
|
4907
|
+
selectedPaymentMethod?: Maybe<(Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'> & {
|
|
4908
|
+
icon?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
4909
|
+
})>;
|
|
4185
4910
|
appliedGiftCards: Array<(Pick<CartAppliedGiftCard, 'id' | 'maskedCode' | 'lastCharacters'> & {
|
|
4186
4911
|
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4187
4912
|
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
@@ -4198,7 +4923,7 @@ export type CartUpdateNoteMutationVariables = Exact<{
|
|
|
4198
4923
|
}>;
|
|
4199
4924
|
export type CartUpdateNoteMutation = {
|
|
4200
4925
|
cartUpdateNote: {
|
|
4201
|
-
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
4926
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'selectedPaymentInstrument' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
4202
4927
|
cost: {
|
|
4203
4928
|
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4204
4929
|
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
@@ -4244,7 +4969,9 @@ export type CartUpdateNoteMutation = {
|
|
|
4244
4969
|
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
4245
4970
|
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4246
4971
|
})>;
|
|
4247
|
-
selectedPaymentMethod?: Maybe<Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | '
|
|
4972
|
+
selectedPaymentMethod?: Maybe<(Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'> & {
|
|
4973
|
+
icon?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
4974
|
+
})>;
|
|
4248
4975
|
appliedGiftCards: Array<(Pick<CartAppliedGiftCard, 'id' | 'maskedCode' | 'lastCharacters'> & {
|
|
4249
4976
|
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4250
4977
|
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
@@ -4291,6 +5018,7 @@ export type PaymentCreateMutation = {
|
|
|
4291
5018
|
paymentCreate: {
|
|
4292
5019
|
payment?: Maybe<Pick<PaymentSession, 'id' | 'orderId' | 'flow' | 'provider' | 'redirectUrl' | 'clientSecret' | 'status' | 'expiresAt'>>;
|
|
4293
5020
|
userErrors: Array<Pick<UserError, 'message' | 'code' | 'field'>>;
|
|
5021
|
+
warnings: Array<Pick<PaymentWarning, 'message' | 'code' | 'retryHint'>>;
|
|
4294
5022
|
};
|
|
4295
5023
|
};
|
|
4296
5024
|
export type CustomerAddressesQueryVariables = Exact<{
|
|
@@ -4327,7 +5055,7 @@ export type CustomerQueryVariables = Exact<{
|
|
|
4327
5055
|
[key: string]: never;
|
|
4328
5056
|
}>;
|
|
4329
5057
|
export type CustomerQuery = {
|
|
4330
|
-
customer?: Maybe<(Pick<Customer, 'id' | 'email' | 'firstName' | 'lastName' | 'displayName' | 'phone' | 'isEmailVerified' | 'emailMarketing' | 'orderCount' | 'createdAt' | 'updatedAt'> & {
|
|
5058
|
+
customer?: Maybe<(Pick<Customer, 'id' | 'email' | 'firstName' | 'lastName' | 'displayName' | 'phone' | 'isEmailVerified' | 'emailMarketing' | 'orderCount' | 'createdAt' | 'updatedAt' | 'sessionExpiresAt'> & {
|
|
4331
5059
|
defaultAddress?: Maybe<Pick<MailingAddress, 'id' | 'streetLine1' | 'streetLine2' | 'city' | 'company' | 'country' | 'countryCode' | 'firstName' | 'lastName' | 'name' | 'phone' | 'state' | 'stateCode' | 'postalCode' | 'isDefault'>>;
|
|
4332
5060
|
totalSpent: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4333
5061
|
})>;
|
|
@@ -4346,7 +5074,7 @@ export type CustomerSignupMutationVariables = Exact<{
|
|
|
4346
5074
|
}>;
|
|
4347
5075
|
export type CustomerSignupMutation = {
|
|
4348
5076
|
customerSignup: {
|
|
4349
|
-
customer?: Maybe<(Pick<Customer, 'id' | 'email' | 'firstName' | 'lastName' | 'displayName' | 'phone' | 'isEmailVerified' | 'emailMarketing' | 'orderCount' | 'createdAt' | 'updatedAt'> & {
|
|
5077
|
+
customer?: Maybe<(Pick<Customer, 'id' | 'email' | 'firstName' | 'lastName' | 'displayName' | 'phone' | 'isEmailVerified' | 'emailMarketing' | 'orderCount' | 'createdAt' | 'updatedAt' | 'sessionExpiresAt'> & {
|
|
4350
5078
|
defaultAddress?: Maybe<Pick<MailingAddress, 'id' | 'streetLine1' | 'streetLine2' | 'city' | 'company' | 'country' | 'countryCode' | 'firstName' | 'lastName' | 'name' | 'phone' | 'state' | 'stateCode' | 'postalCode' | 'isDefault'>>;
|
|
4351
5079
|
totalSpent: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4352
5080
|
})>;
|
|
@@ -4355,11 +5083,30 @@ export type CustomerSignupMutation = {
|
|
|
4355
5083
|
};
|
|
4356
5084
|
};
|
|
4357
5085
|
export type AvailablePaymentMethodsFragment = {
|
|
4358
|
-
methods: Array<Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | '
|
|
4359
|
-
|
|
5086
|
+
methods: Array<(Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position' | 'providersAvailable' | 'preferredProvider' | 'available' | 'unavailableReason'> & {
|
|
5087
|
+
icon?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
5088
|
+
instruments?: Maybe<Array<(Pick<PaymentInstrument, 'provider' | 'code' | 'type' | 'displayName' | 'displayHint' | 'enabled'> & {
|
|
5089
|
+
brandImage?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
5090
|
+
})>>;
|
|
5091
|
+
})>;
|
|
5092
|
+
defaultMethod?: Maybe<(Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position' | 'providersAvailable' | 'preferredProvider' | 'available' | 'unavailableReason'> & {
|
|
5093
|
+
icon?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
5094
|
+
instruments?: Maybe<Array<(Pick<PaymentInstrument, 'provider' | 'code' | 'type' | 'displayName' | 'displayHint' | 'enabled'> & {
|
|
5095
|
+
brandImage?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
5096
|
+
})>>;
|
|
5097
|
+
})>;
|
|
4360
5098
|
};
|
|
4361
|
-
export type PaymentMethodFragment = Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | '
|
|
4362
|
-
|
|
5099
|
+
export type PaymentMethodFragment = (Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position' | 'providersAvailable' | 'preferredProvider' | 'available' | 'unavailableReason'> & {
|
|
5100
|
+
icon?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
5101
|
+
instruments?: Maybe<Array<(Pick<PaymentInstrument, 'provider' | 'code' | 'type' | 'displayName' | 'displayHint' | 'enabled'> & {
|
|
5102
|
+
brandImage?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
5103
|
+
})>>;
|
|
5104
|
+
});
|
|
5105
|
+
export type PaymentInstrumentFragment = (Pick<PaymentInstrument, 'provider' | 'code' | 'type' | 'displayName' | 'displayHint' | 'enabled'> & {
|
|
5106
|
+
brandImage?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
5107
|
+
});
|
|
5108
|
+
export type ImageThumbnailFragment = Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>;
|
|
5109
|
+
export type CartFragment = (Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'selectedPaymentInstrument' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
4363
5110
|
cost: {
|
|
4364
5111
|
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4365
5112
|
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
@@ -4405,7 +5152,9 @@ export type CartFragment = (Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' |
|
|
|
4405
5152
|
selectedShippingMethod?: Maybe<(Pick<CartShippingMethod, 'handle' | 'title'> & {
|
|
4406
5153
|
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4407
5154
|
})>;
|
|
4408
|
-
selectedPaymentMethod?: Maybe<Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | '
|
|
5155
|
+
selectedPaymentMethod?: Maybe<(Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'> & {
|
|
5156
|
+
icon?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
5157
|
+
})>;
|
|
4409
5158
|
appliedGiftCards: Array<(Pick<CartAppliedGiftCard, 'id' | 'maskedCode' | 'lastCharacters'> & {
|
|
4410
5159
|
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4411
5160
|
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
@@ -4453,7 +5202,6 @@ export type ProductVariantFragment = (Pick<ProductVariant, 'id' | 'title' | 'sku
|
|
|
4453
5202
|
weight?: Maybe<Pick<Weight, 'value' | 'unit'>>;
|
|
4454
5203
|
});
|
|
4455
5204
|
export type MoneyFragment = Pick<Money, 'amount' | 'currencyCode'>;
|
|
4456
|
-
export type ImageThumbnailFragment = Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>;
|
|
4457
5205
|
export type SelectedOptionFragment = Pick<SelectedOption, 'name' | 'value'>;
|
|
4458
5206
|
export type AttributeSelectionFragment = Pick<AttributeSelection, 'attributeDefinitionId' | 'attributeName' | 'type' | 'fillingMode' | 'billingMode' | 'optionId' | 'optionLabel' | 'optionIds' | 'textValue' | 'surchargeAmount' | 'surchargeType' | 'taxClassId' | 'linkedVariantId'>;
|
|
4459
5207
|
export type CartBuyerIdentityFragment = Pick<CartBuyerIdentity, 'email' | 'phone' | 'countryCode'>;
|
|
@@ -4472,12 +5220,16 @@ export type CartAppliedGiftCardFragment = (Pick<CartAppliedGiftCard, 'id' | 'mas
|
|
|
4472
5220
|
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4473
5221
|
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4474
5222
|
});
|
|
4475
|
-
export type CartSelectedPaymentMethodFragment = Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | '
|
|
5223
|
+
export type CartSelectedPaymentMethodFragment = (Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'> & {
|
|
5224
|
+
icon?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
5225
|
+
});
|
|
4476
5226
|
export type PageInfoFragment = Pick<PageInfo, 'hasNextPage' | 'hasPreviousPage' | 'startCursor' | 'endCursor'>;
|
|
4477
5227
|
export type UserErrorFragment = Pick<UserError, 'message' | 'code' | 'field'>;
|
|
4478
5228
|
export type CartWarningFragment = Pick<CartWarning, 'message' | 'code' | 'target'>;
|
|
4479
5229
|
export type AvailableShippingMethodFragment = (Pick<AvailableShippingMethod, 'id' | 'name' | 'description' | 'deliveryType' | 'isFree' | 'sortOrder'> & {
|
|
4480
|
-
carrier?: Maybe<Pick<ShippingCarrier, 'id' | 'name' | '
|
|
5230
|
+
carrier?: Maybe<(Pick<ShippingCarrier, 'id' | 'name' | 'serviceCode'> & {
|
|
5231
|
+
logo?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
5232
|
+
})>;
|
|
4481
5233
|
price: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4482
5234
|
estimatedDelivery?: Maybe<Pick<DeliveryEstimate, 'minDays' | 'maxDays' | 'description'>>;
|
|
4483
5235
|
freeShippingProgress?: Maybe<(Pick<FreeShippingProgress, 'qualifies' | 'progressPercent' | 'message'> & {
|
|
@@ -4486,7 +5238,9 @@ export type AvailableShippingMethodFragment = (Pick<AvailableShippingMethod, 'id
|
|
|
4486
5238
|
remaining?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4487
5239
|
})>;
|
|
4488
5240
|
});
|
|
4489
|
-
export type ShippingCarrierFragment = Pick<ShippingCarrier, 'id' | 'name' | '
|
|
5241
|
+
export type ShippingCarrierFragment = (Pick<ShippingCarrier, 'id' | 'name' | 'serviceCode'> & {
|
|
5242
|
+
logo?: Maybe<Pick<Image, 'id' | 'url' | 'altText' | 'width' | 'height' | 'thumbhash'>>;
|
|
5243
|
+
});
|
|
4490
5244
|
export type DeliveryEstimateFragment = Pick<DeliveryEstimate, 'minDays' | 'maxDays' | 'description'>;
|
|
4491
5245
|
export type FreeShippingProgressFragment = (Pick<FreeShippingProgress, 'qualifies' | 'progressPercent' | 'message'> & {
|
|
4492
5246
|
currentAmount?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
@@ -4505,9 +5259,10 @@ export type OrderFragment = (Pick<Order, 'id' | 'orderNumber' | 'accessToken' |
|
|
|
4505
5259
|
})>;
|
|
4506
5260
|
});
|
|
4507
5261
|
export type PaymentSessionFragment = Pick<PaymentSession, 'id' | 'orderId' | 'flow' | 'provider' | 'redirectUrl' | 'clientSecret' | 'status' | 'expiresAt'>;
|
|
5262
|
+
export type PaymentWarningFragment = Pick<PaymentWarning, 'message' | 'code' | 'retryHint'>;
|
|
4508
5263
|
export type CustomerAccessTokenFieldsFragment = Pick<CustomerAccessToken, 'accessToken' | 'expiresAt'>;
|
|
4509
5264
|
export type UserErrorFieldsFragment = Pick<UserError, 'message' | 'field' | 'code'>;
|
|
4510
|
-
export type CustomerFieldsFragment = (Pick<Customer, 'id' | 'email' | 'firstName' | 'lastName' | 'displayName' | 'phone' | 'isEmailVerified' | 'emailMarketing' | 'orderCount' | 'createdAt' | 'updatedAt'> & {
|
|
5265
|
+
export type CustomerFieldsFragment = (Pick<Customer, 'id' | 'email' | 'firstName' | 'lastName' | 'displayName' | 'phone' | 'isEmailVerified' | 'emailMarketing' | 'orderCount' | 'createdAt' | 'updatedAt' | 'sessionExpiresAt'> & {
|
|
4511
5266
|
defaultAddress?: Maybe<Pick<MailingAddress, 'id' | 'streetLine1' | 'streetLine2' | 'city' | 'company' | 'country' | 'countryCode' | 'firstName' | 'lastName' | 'name' | 'phone' | 'state' | 'stateCode' | 'postalCode' | 'isDefault'>>;
|
|
4512
5267
|
totalSpent: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4513
5268
|
});
|