@doswiftly/storefront-sdk 15.1.0 → 16.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +369 -0
- package/README.md +28 -0
- package/dist/core/cart/cart-recovery.d.ts +63 -0
- package/dist/core/cart/cart-recovery.d.ts.map +1 -1
- package/dist/core/cart/cart-recovery.js +91 -8
- package/dist/core/cart/types.d.ts +1 -1
- package/dist/core/cart/types.d.ts.map +1 -1
- package/dist/core/format.d.ts +81 -46
- package/dist/core/format.d.ts.map +1 -1
- package/dist/core/format.js +116 -94
- package/dist/core/generated/operation-types.d.ts +103 -17
- package/dist/core/generated/operation-types.d.ts.map +1 -1
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +1 -1
- package/dist/core/operations/cart.d.ts.map +1 -1
- package/dist/core/operations/cart.js +16 -0
- package/dist/react/components/Money.d.ts +22 -8
- package/dist/react/components/Money.d.ts.map +1 -1
- package/dist/react/components/Money.js +16 -9
- package/dist/react/hooks/use-format.d.ts +85 -0
- package/dist/react/hooks/use-format.d.ts.map +1 -0
- package/dist/react/hooks/use-format.js +141 -0
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +2 -0
- package/package.json +1 -1
|
@@ -484,6 +484,8 @@ export type Cart = Node & {
|
|
|
484
484
|
buyerIdentity?: Maybe<CartBuyerIdentity>;
|
|
485
485
|
/** Hosted checkout URL the storefront may redirect to as a fallback. The recommended flow is to drive checkout through SDK mutations (`cartSetShippingAddress`, `cartSelectShippingMethod`, `cartSelectPaymentMethod`, `cartComplete`). */
|
|
486
486
|
checkoutUrl?: Maybe<Scalars['URL']['output']>;
|
|
487
|
+
/** The order that this cart converted into. Populated only when `status` is `CONVERTED` — null on every other status. Use this to render the order confirmation page (subtotals, accessToken for guest tracking) directly off the cart you already loaded, without a second `orderByToken` round-trip. */
|
|
488
|
+
completedOrder?: Maybe<Order>;
|
|
487
489
|
/** Cost breakdown for the cart (subtotal, tax, shipping, discount, grand total). */
|
|
488
490
|
cost: CartCost;
|
|
489
491
|
/** When the cart was created (ISO 8601). */
|
|
@@ -512,6 +514,8 @@ export type Cart = Node & {
|
|
|
512
514
|
selectedShippingMethod?: Maybe<CartShippingMethod>;
|
|
513
515
|
/** Shipping address attached to the cart via `cartSetShippingAddress`. Null until set. */
|
|
514
516
|
shippingAddress?: Maybe<MailingAddress>;
|
|
517
|
+
/** Lifecycle status — `ACTIVE` for the editable working cart, terminal otherwise. Check this on SSR before rendering the checkout form: a non-`ACTIVE` cart should redirect (typically to the order confirmation when `completedOrder` is populated) instead of presenting a form whose first mutation fails with `CartErrorCode.ALREADY_COMPLETED`. */
|
|
518
|
+
status: CartStatus;
|
|
515
519
|
/** Sum of `quantity` across all lines — the badge number for the cart icon. */
|
|
516
520
|
totalQuantity: Scalars['Int']['output'];
|
|
517
521
|
/** When the cart was last modified (ISO 8601). */
|
|
@@ -706,6 +710,8 @@ export type CartLine = {
|
|
|
706
710
|
attributes: Array<Attribute>;
|
|
707
711
|
/** Per-line cost breakdown (unit price, subtotal, total, optional compare-at). */
|
|
708
712
|
cost: CartLineCost;
|
|
713
|
+
/** Recipient details captured for a `GIFT_CARD` line via `cartUpdateGiftCardRecipient`. Null for non-gift-card lines or when no recipient has been set yet — in that case the gift card is delivered to the order `customerEmail` on completion. Use to initialise the "gift recipient" form from cart state on SSR / page reload / deep link instead of keeping it in client-only state. */
|
|
714
|
+
giftCardRecipient?: Maybe<GiftCardLineRecipient>;
|
|
709
715
|
/** Stable line identifier. Use it to address the line in `cartUpdateLines` / `cartRemoveLines`. */
|
|
710
716
|
id: Scalars['ID']['output'];
|
|
711
717
|
/** URL handle (slug) of the parent product — link target for the cart drawer (denormalised). */
|
|
@@ -869,6 +875,7 @@ export type CartShippingMethod = {
|
|
|
869
875
|
/** Display title for the checkout summary (e.g. "DPD Standard, 2 days"). */
|
|
870
876
|
title: Scalars['String']['output'];
|
|
871
877
|
};
|
|
878
|
+
export type CartStatus = 'ABANDONED' | 'ACTIVE' | 'CONVERTED' | 'EXPIRED' | 'RECOVERED';
|
|
872
879
|
export type CartUpdateAttributesPayload = {
|
|
873
880
|
/** The updated cart on success. */
|
|
874
881
|
cart?: Maybe<Cart>;
|
|
@@ -1408,6 +1415,14 @@ export type GiftCardError = {
|
|
|
1408
1415
|
message: Scalars['String']['output'];
|
|
1409
1416
|
};
|
|
1410
1417
|
export type GiftCardErrorCode = 'ALREADY_USED' | 'CURRENCY_MISMATCH' | 'DISABLED' | 'EXPIRED' | 'INSUFFICIENT_BALANCE' | 'INVALID_CODE_FORMAT' | 'NOT_FOUND';
|
|
1418
|
+
export type GiftCardLineRecipient = {
|
|
1419
|
+
/** Personalised message included with the gift card. */
|
|
1420
|
+
message?: Maybe<Scalars['String']['output']>;
|
|
1421
|
+
/** Recipient email — where the gift card code will be delivered on order completion. */
|
|
1422
|
+
recipientEmail?: Maybe<Scalars['String']['output']>;
|
|
1423
|
+
/** Recipient display name shown in the gift card email. */
|
|
1424
|
+
recipientName?: Maybe<Scalars['String']['output']>;
|
|
1425
|
+
};
|
|
1411
1426
|
export type GiftCardStatus = 'ACTIVE' | 'DISABLED' | 'EXPIRED' | 'USED';
|
|
1412
1427
|
export type GiftCardValidatePayload = {
|
|
1413
1428
|
/** User errors */
|
|
@@ -3205,13 +3220,15 @@ export type CartAddLinesMutationVariables = Exact<{
|
|
|
3205
3220
|
}>;
|
|
3206
3221
|
export type CartAddLinesMutation = {
|
|
3207
3222
|
cartAddLines: {
|
|
3208
|
-
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt'> & {
|
|
3223
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
3209
3224
|
cost: {
|
|
3210
3225
|
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3211
3226
|
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3212
3227
|
totalTax?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3213
3228
|
totalDuty?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3214
3229
|
checkoutCharge?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3230
|
+
totalDiscount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3231
|
+
totalShipping?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3215
3232
|
};
|
|
3216
3233
|
lines: (Pick<CartLineConnection, 'totalCount'> & {
|
|
3217
3234
|
nodes: Array<(Pick<CartLine, 'id' | 'quantity' | 'productId' | 'productTitle' | 'productHandle' | 'productType' | 'requiresShipping'> & {
|
|
@@ -3230,6 +3247,7 @@ export type CartAddLinesMutation = {
|
|
|
3230
3247
|
};
|
|
3231
3248
|
attributes: Array<Pick<Attribute, 'key' | 'value'>>;
|
|
3232
3249
|
attributeSelections: Array<Pick<AttributeSelection, 'attributeDefinitionId' | 'attributeName' | 'type' | 'fillingMode' | 'billingMode' | 'optionId' | 'optionLabel' | 'optionIds' | 'textValue' | 'surchargeAmount' | 'surchargeType' | 'taxClassId' | 'linkedVariantId'>>;
|
|
3250
|
+
giftCardRecipient?: Maybe<Pick<GiftCardLineRecipient, 'recipientEmail' | 'recipientName' | 'message'>>;
|
|
3233
3251
|
})>;
|
|
3234
3252
|
pageInfo: Pick<PageInfo, 'hasNextPage' | 'hasPreviousPage' | 'startCursor' | 'endCursor'>;
|
|
3235
3253
|
});
|
|
@@ -3253,6 +3271,7 @@ export type CartAddLinesMutation = {
|
|
|
3253
3271
|
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3254
3272
|
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3255
3273
|
})>;
|
|
3274
|
+
completedOrder?: Maybe<Pick<Order, 'id' | 'orderNumber' | 'accessToken' | 'status' | 'paymentStatus' | 'fulfillmentStatus'>>;
|
|
3256
3275
|
})>;
|
|
3257
3276
|
userErrors: Array<Pick<UserError, 'message' | 'code' | 'field'>>;
|
|
3258
3277
|
warnings: Array<Pick<CartWarning, 'message' | 'code' | 'target'>>;
|
|
@@ -3263,13 +3282,15 @@ export type CartApplyGiftCardMutationVariables = Exact<{
|
|
|
3263
3282
|
}>;
|
|
3264
3283
|
export type CartApplyGiftCardMutation = {
|
|
3265
3284
|
cartApplyGiftCard: {
|
|
3266
|
-
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt'> & {
|
|
3285
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
3267
3286
|
cost: {
|
|
3268
3287
|
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3269
3288
|
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3270
3289
|
totalTax?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3271
3290
|
totalDuty?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3272
3291
|
checkoutCharge?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3292
|
+
totalDiscount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3293
|
+
totalShipping?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3273
3294
|
};
|
|
3274
3295
|
lines: (Pick<CartLineConnection, 'totalCount'> & {
|
|
3275
3296
|
nodes: Array<(Pick<CartLine, 'id' | 'quantity' | 'productId' | 'productTitle' | 'productHandle' | 'productType' | 'requiresShipping'> & {
|
|
@@ -3288,6 +3309,7 @@ export type CartApplyGiftCardMutation = {
|
|
|
3288
3309
|
};
|
|
3289
3310
|
attributes: Array<Pick<Attribute, 'key' | 'value'>>;
|
|
3290
3311
|
attributeSelections: Array<Pick<AttributeSelection, 'attributeDefinitionId' | 'attributeName' | 'type' | 'fillingMode' | 'billingMode' | 'optionId' | 'optionLabel' | 'optionIds' | 'textValue' | 'surchargeAmount' | 'surchargeType' | 'taxClassId' | 'linkedVariantId'>>;
|
|
3312
|
+
giftCardRecipient?: Maybe<Pick<GiftCardLineRecipient, 'recipientEmail' | 'recipientName' | 'message'>>;
|
|
3291
3313
|
})>;
|
|
3292
3314
|
pageInfo: Pick<PageInfo, 'hasNextPage' | 'hasPreviousPage' | 'startCursor' | 'endCursor'>;
|
|
3293
3315
|
});
|
|
@@ -3311,6 +3333,7 @@ export type CartApplyGiftCardMutation = {
|
|
|
3311
3333
|
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3312
3334
|
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3313
3335
|
})>;
|
|
3336
|
+
completedOrder?: Maybe<Pick<Order, 'id' | 'orderNumber' | 'accessToken' | 'status' | 'paymentStatus' | 'fulfillmentStatus'>>;
|
|
3314
3337
|
})>;
|
|
3315
3338
|
userErrors: Array<Pick<UserError, 'message' | 'code' | 'field'>>;
|
|
3316
3339
|
warnings: Array<Pick<CartWarning, 'message' | 'code' | 'target'>>;
|
|
@@ -3367,13 +3390,15 @@ export type CartCreateMutationVariables = Exact<{
|
|
|
3367
3390
|
}>;
|
|
3368
3391
|
export type CartCreateMutation = {
|
|
3369
3392
|
cartCreate: {
|
|
3370
|
-
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt'> & {
|
|
3393
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
3371
3394
|
cost: {
|
|
3372
3395
|
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3373
3396
|
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3374
3397
|
totalTax?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3375
3398
|
totalDuty?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3376
3399
|
checkoutCharge?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3400
|
+
totalDiscount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3401
|
+
totalShipping?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3377
3402
|
};
|
|
3378
3403
|
lines: (Pick<CartLineConnection, 'totalCount'> & {
|
|
3379
3404
|
nodes: Array<(Pick<CartLine, 'id' | 'quantity' | 'productId' | 'productTitle' | 'productHandle' | 'productType' | 'requiresShipping'> & {
|
|
@@ -3392,6 +3417,7 @@ export type CartCreateMutation = {
|
|
|
3392
3417
|
};
|
|
3393
3418
|
attributes: Array<Pick<Attribute, 'key' | 'value'>>;
|
|
3394
3419
|
attributeSelections: Array<Pick<AttributeSelection, 'attributeDefinitionId' | 'attributeName' | 'type' | 'fillingMode' | 'billingMode' | 'optionId' | 'optionLabel' | 'optionIds' | 'textValue' | 'surchargeAmount' | 'surchargeType' | 'taxClassId' | 'linkedVariantId'>>;
|
|
3420
|
+
giftCardRecipient?: Maybe<Pick<GiftCardLineRecipient, 'recipientEmail' | 'recipientName' | 'message'>>;
|
|
3395
3421
|
})>;
|
|
3396
3422
|
pageInfo: Pick<PageInfo, 'hasNextPage' | 'hasPreviousPage' | 'startCursor' | 'endCursor'>;
|
|
3397
3423
|
});
|
|
@@ -3415,6 +3441,7 @@ export type CartCreateMutation = {
|
|
|
3415
3441
|
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3416
3442
|
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3417
3443
|
})>;
|
|
3444
|
+
completedOrder?: Maybe<Pick<Order, 'id' | 'orderNumber' | 'accessToken' | 'status' | 'paymentStatus' | 'fulfillmentStatus'>>;
|
|
3418
3445
|
})>;
|
|
3419
3446
|
userErrors: Array<Pick<UserError, 'message' | 'code' | 'field'>>;
|
|
3420
3447
|
warnings: Array<Pick<CartWarning, 'message' | 'code' | 'target'>>;
|
|
@@ -3426,13 +3453,15 @@ export type CartDiscountCodesUpdateMutationVariables = Exact<{
|
|
|
3426
3453
|
}>;
|
|
3427
3454
|
export type CartDiscountCodesUpdateMutation = {
|
|
3428
3455
|
cartDiscountCodesUpdate: {
|
|
3429
|
-
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt'> & {
|
|
3456
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
3430
3457
|
cost: {
|
|
3431
3458
|
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3432
3459
|
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3433
3460
|
totalTax?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3434
3461
|
totalDuty?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3435
3462
|
checkoutCharge?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3463
|
+
totalDiscount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3464
|
+
totalShipping?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3436
3465
|
};
|
|
3437
3466
|
lines: (Pick<CartLineConnection, 'totalCount'> & {
|
|
3438
3467
|
nodes: Array<(Pick<CartLine, 'id' | 'quantity' | 'productId' | 'productTitle' | 'productHandle' | 'productType' | 'requiresShipping'> & {
|
|
@@ -3451,6 +3480,7 @@ export type CartDiscountCodesUpdateMutation = {
|
|
|
3451
3480
|
};
|
|
3452
3481
|
attributes: Array<Pick<Attribute, 'key' | 'value'>>;
|
|
3453
3482
|
attributeSelections: Array<Pick<AttributeSelection, 'attributeDefinitionId' | 'attributeName' | 'type' | 'fillingMode' | 'billingMode' | 'optionId' | 'optionLabel' | 'optionIds' | 'textValue' | 'surchargeAmount' | 'surchargeType' | 'taxClassId' | 'linkedVariantId'>>;
|
|
3483
|
+
giftCardRecipient?: Maybe<Pick<GiftCardLineRecipient, 'recipientEmail' | 'recipientName' | 'message'>>;
|
|
3454
3484
|
})>;
|
|
3455
3485
|
pageInfo: Pick<PageInfo, 'hasNextPage' | 'hasPreviousPage' | 'startCursor' | 'endCursor'>;
|
|
3456
3486
|
});
|
|
@@ -3474,6 +3504,7 @@ export type CartDiscountCodesUpdateMutation = {
|
|
|
3474
3504
|
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3475
3505
|
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3476
3506
|
})>;
|
|
3507
|
+
completedOrder?: Maybe<Pick<Order, 'id' | 'orderNumber' | 'accessToken' | 'status' | 'paymentStatus' | 'fulfillmentStatus'>>;
|
|
3477
3508
|
})>;
|
|
3478
3509
|
userErrors: Array<Pick<UserError, 'message' | 'code' | 'field'>>;
|
|
3479
3510
|
warnings: Array<Pick<CartWarning, 'message' | 'code' | 'target'>>;
|
|
@@ -3483,13 +3514,15 @@ export type CartQueryVariables = Exact<{
|
|
|
3483
3514
|
id: Scalars['ID']['input'];
|
|
3484
3515
|
}>;
|
|
3485
3516
|
export type CartQuery = {
|
|
3486
|
-
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt'> & {
|
|
3517
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
3487
3518
|
cost: {
|
|
3488
3519
|
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3489
3520
|
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3490
3521
|
totalTax?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3491
3522
|
totalDuty?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3492
3523
|
checkoutCharge?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3524
|
+
totalDiscount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3525
|
+
totalShipping?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3493
3526
|
};
|
|
3494
3527
|
lines: (Pick<CartLineConnection, 'totalCount'> & {
|
|
3495
3528
|
nodes: Array<(Pick<CartLine, 'id' | 'quantity' | 'productId' | 'productTitle' | 'productHandle' | 'productType' | 'requiresShipping'> & {
|
|
@@ -3508,6 +3541,7 @@ export type CartQuery = {
|
|
|
3508
3541
|
};
|
|
3509
3542
|
attributes: Array<Pick<Attribute, 'key' | 'value'>>;
|
|
3510
3543
|
attributeSelections: Array<Pick<AttributeSelection, 'attributeDefinitionId' | 'attributeName' | 'type' | 'fillingMode' | 'billingMode' | 'optionId' | 'optionLabel' | 'optionIds' | 'textValue' | 'surchargeAmount' | 'surchargeType' | 'taxClassId' | 'linkedVariantId'>>;
|
|
3544
|
+
giftCardRecipient?: Maybe<Pick<GiftCardLineRecipient, 'recipientEmail' | 'recipientName' | 'message'>>;
|
|
3511
3545
|
})>;
|
|
3512
3546
|
pageInfo: Pick<PageInfo, 'hasNextPage' | 'hasPreviousPage' | 'startCursor' | 'endCursor'>;
|
|
3513
3547
|
});
|
|
@@ -3531,6 +3565,7 @@ export type CartQuery = {
|
|
|
3531
3565
|
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3532
3566
|
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3533
3567
|
})>;
|
|
3568
|
+
completedOrder?: Maybe<Pick<Order, 'id' | 'orderNumber' | 'accessToken' | 'status' | 'paymentStatus' | 'fulfillmentStatus'>>;
|
|
3534
3569
|
})>;
|
|
3535
3570
|
};
|
|
3536
3571
|
export type CartRemoveGiftCardMutationVariables = Exact<{
|
|
@@ -3538,13 +3573,15 @@ export type CartRemoveGiftCardMutationVariables = Exact<{
|
|
|
3538
3573
|
}>;
|
|
3539
3574
|
export type CartRemoveGiftCardMutation = {
|
|
3540
3575
|
cartRemoveGiftCard: {
|
|
3541
|
-
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt'> & {
|
|
3576
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
3542
3577
|
cost: {
|
|
3543
3578
|
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3544
3579
|
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3545
3580
|
totalTax?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3546
3581
|
totalDuty?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3547
3582
|
checkoutCharge?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3583
|
+
totalDiscount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3584
|
+
totalShipping?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3548
3585
|
};
|
|
3549
3586
|
lines: (Pick<CartLineConnection, 'totalCount'> & {
|
|
3550
3587
|
nodes: Array<(Pick<CartLine, 'id' | 'quantity' | 'productId' | 'productTitle' | 'productHandle' | 'productType' | 'requiresShipping'> & {
|
|
@@ -3563,6 +3600,7 @@ export type CartRemoveGiftCardMutation = {
|
|
|
3563
3600
|
};
|
|
3564
3601
|
attributes: Array<Pick<Attribute, 'key' | 'value'>>;
|
|
3565
3602
|
attributeSelections: Array<Pick<AttributeSelection, 'attributeDefinitionId' | 'attributeName' | 'type' | 'fillingMode' | 'billingMode' | 'optionId' | 'optionLabel' | 'optionIds' | 'textValue' | 'surchargeAmount' | 'surchargeType' | 'taxClassId' | 'linkedVariantId'>>;
|
|
3603
|
+
giftCardRecipient?: Maybe<Pick<GiftCardLineRecipient, 'recipientEmail' | 'recipientName' | 'message'>>;
|
|
3566
3604
|
})>;
|
|
3567
3605
|
pageInfo: Pick<PageInfo, 'hasNextPage' | 'hasPreviousPage' | 'startCursor' | 'endCursor'>;
|
|
3568
3606
|
});
|
|
@@ -3586,6 +3624,7 @@ export type CartRemoveGiftCardMutation = {
|
|
|
3586
3624
|
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3587
3625
|
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3588
3626
|
})>;
|
|
3627
|
+
completedOrder?: Maybe<Pick<Order, 'id' | 'orderNumber' | 'accessToken' | 'status' | 'paymentStatus' | 'fulfillmentStatus'>>;
|
|
3589
3628
|
})>;
|
|
3590
3629
|
userErrors: Array<Pick<UserError, 'message' | 'code' | 'field'>>;
|
|
3591
3630
|
warnings: Array<Pick<CartWarning, 'message' | 'code' | 'target'>>;
|
|
@@ -3597,13 +3636,15 @@ export type CartRemoveLinesMutationVariables = Exact<{
|
|
|
3597
3636
|
}>;
|
|
3598
3637
|
export type CartRemoveLinesMutation = {
|
|
3599
3638
|
cartRemoveLines: {
|
|
3600
|
-
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt'> & {
|
|
3639
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
3601
3640
|
cost: {
|
|
3602
3641
|
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3603
3642
|
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3604
3643
|
totalTax?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3605
3644
|
totalDuty?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3606
3645
|
checkoutCharge?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3646
|
+
totalDiscount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3647
|
+
totalShipping?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3607
3648
|
};
|
|
3608
3649
|
lines: (Pick<CartLineConnection, 'totalCount'> & {
|
|
3609
3650
|
nodes: Array<(Pick<CartLine, 'id' | 'quantity' | 'productId' | 'productTitle' | 'productHandle' | 'productType' | 'requiresShipping'> & {
|
|
@@ -3622,6 +3663,7 @@ export type CartRemoveLinesMutation = {
|
|
|
3622
3663
|
};
|
|
3623
3664
|
attributes: Array<Pick<Attribute, 'key' | 'value'>>;
|
|
3624
3665
|
attributeSelections: Array<Pick<AttributeSelection, 'attributeDefinitionId' | 'attributeName' | 'type' | 'fillingMode' | 'billingMode' | 'optionId' | 'optionLabel' | 'optionIds' | 'textValue' | 'surchargeAmount' | 'surchargeType' | 'taxClassId' | 'linkedVariantId'>>;
|
|
3666
|
+
giftCardRecipient?: Maybe<Pick<GiftCardLineRecipient, 'recipientEmail' | 'recipientName' | 'message'>>;
|
|
3625
3667
|
})>;
|
|
3626
3668
|
pageInfo: Pick<PageInfo, 'hasNextPage' | 'hasPreviousPage' | 'startCursor' | 'endCursor'>;
|
|
3627
3669
|
});
|
|
@@ -3645,6 +3687,7 @@ export type CartRemoveLinesMutation = {
|
|
|
3645
3687
|
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3646
3688
|
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3647
3689
|
})>;
|
|
3690
|
+
completedOrder?: Maybe<Pick<Order, 'id' | 'orderNumber' | 'accessToken' | 'status' | 'paymentStatus' | 'fulfillmentStatus'>>;
|
|
3648
3691
|
})>;
|
|
3649
3692
|
userErrors: Array<Pick<UserError, 'message' | 'code' | 'field'>>;
|
|
3650
3693
|
warnings: Array<Pick<CartWarning, 'message' | 'code' | 'target'>>;
|
|
@@ -3655,13 +3698,15 @@ export type CartSelectPaymentMethodMutationVariables = Exact<{
|
|
|
3655
3698
|
}>;
|
|
3656
3699
|
export type CartSelectPaymentMethodMutation = {
|
|
3657
3700
|
cartSelectPaymentMethod: {
|
|
3658
|
-
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt'> & {
|
|
3701
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
3659
3702
|
cost: {
|
|
3660
3703
|
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3661
3704
|
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3662
3705
|
totalTax?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3663
3706
|
totalDuty?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3664
3707
|
checkoutCharge?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3708
|
+
totalDiscount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3709
|
+
totalShipping?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3665
3710
|
};
|
|
3666
3711
|
lines: (Pick<CartLineConnection, 'totalCount'> & {
|
|
3667
3712
|
nodes: Array<(Pick<CartLine, 'id' | 'quantity' | 'productId' | 'productTitle' | 'productHandle' | 'productType' | 'requiresShipping'> & {
|
|
@@ -3680,6 +3725,7 @@ export type CartSelectPaymentMethodMutation = {
|
|
|
3680
3725
|
};
|
|
3681
3726
|
attributes: Array<Pick<Attribute, 'key' | 'value'>>;
|
|
3682
3727
|
attributeSelections: Array<Pick<AttributeSelection, 'attributeDefinitionId' | 'attributeName' | 'type' | 'fillingMode' | 'billingMode' | 'optionId' | 'optionLabel' | 'optionIds' | 'textValue' | 'surchargeAmount' | 'surchargeType' | 'taxClassId' | 'linkedVariantId'>>;
|
|
3728
|
+
giftCardRecipient?: Maybe<Pick<GiftCardLineRecipient, 'recipientEmail' | 'recipientName' | 'message'>>;
|
|
3683
3729
|
})>;
|
|
3684
3730
|
pageInfo: Pick<PageInfo, 'hasNextPage' | 'hasPreviousPage' | 'startCursor' | 'endCursor'>;
|
|
3685
3731
|
});
|
|
@@ -3703,6 +3749,7 @@ export type CartSelectPaymentMethodMutation = {
|
|
|
3703
3749
|
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3704
3750
|
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3705
3751
|
})>;
|
|
3752
|
+
completedOrder?: Maybe<Pick<Order, 'id' | 'orderNumber' | 'accessToken' | 'status' | 'paymentStatus' | 'fulfillmentStatus'>>;
|
|
3706
3753
|
})>;
|
|
3707
3754
|
userErrors: Array<Pick<UserError, 'message' | 'code' | 'field'>>;
|
|
3708
3755
|
warnings: Array<Pick<CartWarning, 'message' | 'code' | 'target'>>;
|
|
@@ -3713,13 +3760,15 @@ export type CartSelectShippingMethodMutationVariables = Exact<{
|
|
|
3713
3760
|
}>;
|
|
3714
3761
|
export type CartSelectShippingMethodMutation = {
|
|
3715
3762
|
cartSelectShippingMethod: {
|
|
3716
|
-
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt'> & {
|
|
3763
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
3717
3764
|
cost: {
|
|
3718
3765
|
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3719
3766
|
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3720
3767
|
totalTax?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3721
3768
|
totalDuty?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3722
3769
|
checkoutCharge?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3770
|
+
totalDiscount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3771
|
+
totalShipping?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3723
3772
|
};
|
|
3724
3773
|
lines: (Pick<CartLineConnection, 'totalCount'> & {
|
|
3725
3774
|
nodes: Array<(Pick<CartLine, 'id' | 'quantity' | 'productId' | 'productTitle' | 'productHandle' | 'productType' | 'requiresShipping'> & {
|
|
@@ -3738,6 +3787,7 @@ export type CartSelectShippingMethodMutation = {
|
|
|
3738
3787
|
};
|
|
3739
3788
|
attributes: Array<Pick<Attribute, 'key' | 'value'>>;
|
|
3740
3789
|
attributeSelections: Array<Pick<AttributeSelection, 'attributeDefinitionId' | 'attributeName' | 'type' | 'fillingMode' | 'billingMode' | 'optionId' | 'optionLabel' | 'optionIds' | 'textValue' | 'surchargeAmount' | 'surchargeType' | 'taxClassId' | 'linkedVariantId'>>;
|
|
3790
|
+
giftCardRecipient?: Maybe<Pick<GiftCardLineRecipient, 'recipientEmail' | 'recipientName' | 'message'>>;
|
|
3741
3791
|
})>;
|
|
3742
3792
|
pageInfo: Pick<PageInfo, 'hasNextPage' | 'hasPreviousPage' | 'startCursor' | 'endCursor'>;
|
|
3743
3793
|
});
|
|
@@ -3761,6 +3811,7 @@ export type CartSelectShippingMethodMutation = {
|
|
|
3761
3811
|
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3762
3812
|
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3763
3813
|
})>;
|
|
3814
|
+
completedOrder?: Maybe<Pick<Order, 'id' | 'orderNumber' | 'accessToken' | 'status' | 'paymentStatus' | 'fulfillmentStatus'>>;
|
|
3764
3815
|
})>;
|
|
3765
3816
|
userErrors: Array<Pick<UserError, 'message' | 'code' | 'field'>>;
|
|
3766
3817
|
warnings: Array<Pick<CartWarning, 'message' | 'code' | 'target'>>;
|
|
@@ -3771,13 +3822,15 @@ export type CartSetBillingAddressMutationVariables = Exact<{
|
|
|
3771
3822
|
}>;
|
|
3772
3823
|
export type CartSetBillingAddressMutation = {
|
|
3773
3824
|
cartSetBillingAddress: {
|
|
3774
|
-
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt'> & {
|
|
3825
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
3775
3826
|
cost: {
|
|
3776
3827
|
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3777
3828
|
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3778
3829
|
totalTax?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3779
3830
|
totalDuty?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3780
3831
|
checkoutCharge?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3832
|
+
totalDiscount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3833
|
+
totalShipping?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3781
3834
|
};
|
|
3782
3835
|
lines: (Pick<CartLineConnection, 'totalCount'> & {
|
|
3783
3836
|
nodes: Array<(Pick<CartLine, 'id' | 'quantity' | 'productId' | 'productTitle' | 'productHandle' | 'productType' | 'requiresShipping'> & {
|
|
@@ -3796,6 +3849,7 @@ export type CartSetBillingAddressMutation = {
|
|
|
3796
3849
|
};
|
|
3797
3850
|
attributes: Array<Pick<Attribute, 'key' | 'value'>>;
|
|
3798
3851
|
attributeSelections: Array<Pick<AttributeSelection, 'attributeDefinitionId' | 'attributeName' | 'type' | 'fillingMode' | 'billingMode' | 'optionId' | 'optionLabel' | 'optionIds' | 'textValue' | 'surchargeAmount' | 'surchargeType' | 'taxClassId' | 'linkedVariantId'>>;
|
|
3852
|
+
giftCardRecipient?: Maybe<Pick<GiftCardLineRecipient, 'recipientEmail' | 'recipientName' | 'message'>>;
|
|
3799
3853
|
})>;
|
|
3800
3854
|
pageInfo: Pick<PageInfo, 'hasNextPage' | 'hasPreviousPage' | 'startCursor' | 'endCursor'>;
|
|
3801
3855
|
});
|
|
@@ -3819,6 +3873,7 @@ export type CartSetBillingAddressMutation = {
|
|
|
3819
3873
|
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3820
3874
|
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3821
3875
|
})>;
|
|
3876
|
+
completedOrder?: Maybe<Pick<Order, 'id' | 'orderNumber' | 'accessToken' | 'status' | 'paymentStatus' | 'fulfillmentStatus'>>;
|
|
3822
3877
|
})>;
|
|
3823
3878
|
userErrors: Array<Pick<UserError, 'message' | 'code' | 'field'>>;
|
|
3824
3879
|
warnings: Array<Pick<CartWarning, 'message' | 'code' | 'target'>>;
|
|
@@ -3829,13 +3884,15 @@ export type CartSetShippingAddressMutationVariables = Exact<{
|
|
|
3829
3884
|
}>;
|
|
3830
3885
|
export type CartSetShippingAddressMutation = {
|
|
3831
3886
|
cartSetShippingAddress: {
|
|
3832
|
-
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt'> & {
|
|
3887
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
3833
3888
|
cost: {
|
|
3834
3889
|
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3835
3890
|
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3836
3891
|
totalTax?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3837
3892
|
totalDuty?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3838
3893
|
checkoutCharge?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3894
|
+
totalDiscount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3895
|
+
totalShipping?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3839
3896
|
};
|
|
3840
3897
|
lines: (Pick<CartLineConnection, 'totalCount'> & {
|
|
3841
3898
|
nodes: Array<(Pick<CartLine, 'id' | 'quantity' | 'productId' | 'productTitle' | 'productHandle' | 'productType' | 'requiresShipping'> & {
|
|
@@ -3854,6 +3911,7 @@ export type CartSetShippingAddressMutation = {
|
|
|
3854
3911
|
};
|
|
3855
3912
|
attributes: Array<Pick<Attribute, 'key' | 'value'>>;
|
|
3856
3913
|
attributeSelections: Array<Pick<AttributeSelection, 'attributeDefinitionId' | 'attributeName' | 'type' | 'fillingMode' | 'billingMode' | 'optionId' | 'optionLabel' | 'optionIds' | 'textValue' | 'surchargeAmount' | 'surchargeType' | 'taxClassId' | 'linkedVariantId'>>;
|
|
3914
|
+
giftCardRecipient?: Maybe<Pick<GiftCardLineRecipient, 'recipientEmail' | 'recipientName' | 'message'>>;
|
|
3857
3915
|
})>;
|
|
3858
3916
|
pageInfo: Pick<PageInfo, 'hasNextPage' | 'hasPreviousPage' | 'startCursor' | 'endCursor'>;
|
|
3859
3917
|
});
|
|
@@ -3877,6 +3935,7 @@ export type CartSetShippingAddressMutation = {
|
|
|
3877
3935
|
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3878
3936
|
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3879
3937
|
})>;
|
|
3938
|
+
completedOrder?: Maybe<Pick<Order, 'id' | 'orderNumber' | 'accessToken' | 'status' | 'paymentStatus' | 'fulfillmentStatus'>>;
|
|
3880
3939
|
})>;
|
|
3881
3940
|
userErrors: Array<Pick<UserError, 'message' | 'code' | 'field'>>;
|
|
3882
3941
|
warnings: Array<Pick<CartWarning, 'message' | 'code' | 'target'>>;
|
|
@@ -3888,13 +3947,15 @@ export type CartUpdateAttributesMutationVariables = Exact<{
|
|
|
3888
3947
|
}>;
|
|
3889
3948
|
export type CartUpdateAttributesMutation = {
|
|
3890
3949
|
cartUpdateAttributes: {
|
|
3891
|
-
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt'> & {
|
|
3950
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
3892
3951
|
cost: {
|
|
3893
3952
|
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3894
3953
|
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3895
3954
|
totalTax?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3896
3955
|
totalDuty?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3897
3956
|
checkoutCharge?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3957
|
+
totalDiscount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3958
|
+
totalShipping?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3898
3959
|
};
|
|
3899
3960
|
lines: (Pick<CartLineConnection, 'totalCount'> & {
|
|
3900
3961
|
nodes: Array<(Pick<CartLine, 'id' | 'quantity' | 'productId' | 'productTitle' | 'productHandle' | 'productType' | 'requiresShipping'> & {
|
|
@@ -3913,6 +3974,7 @@ export type CartUpdateAttributesMutation = {
|
|
|
3913
3974
|
};
|
|
3914
3975
|
attributes: Array<Pick<Attribute, 'key' | 'value'>>;
|
|
3915
3976
|
attributeSelections: Array<Pick<AttributeSelection, 'attributeDefinitionId' | 'attributeName' | 'type' | 'fillingMode' | 'billingMode' | 'optionId' | 'optionLabel' | 'optionIds' | 'textValue' | 'surchargeAmount' | 'surchargeType' | 'taxClassId' | 'linkedVariantId'>>;
|
|
3977
|
+
giftCardRecipient?: Maybe<Pick<GiftCardLineRecipient, 'recipientEmail' | 'recipientName' | 'message'>>;
|
|
3916
3978
|
})>;
|
|
3917
3979
|
pageInfo: Pick<PageInfo, 'hasNextPage' | 'hasPreviousPage' | 'startCursor' | 'endCursor'>;
|
|
3918
3980
|
});
|
|
@@ -3936,6 +3998,7 @@ export type CartUpdateAttributesMutation = {
|
|
|
3936
3998
|
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3937
3999
|
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3938
4000
|
})>;
|
|
4001
|
+
completedOrder?: Maybe<Pick<Order, 'id' | 'orderNumber' | 'accessToken' | 'status' | 'paymentStatus' | 'fulfillmentStatus'>>;
|
|
3939
4002
|
})>;
|
|
3940
4003
|
userErrors: Array<Pick<UserError, 'message' | 'code' | 'field'>>;
|
|
3941
4004
|
warnings: Array<Pick<CartWarning, 'message' | 'code' | 'target'>>;
|
|
@@ -3947,13 +4010,15 @@ export type CartUpdateBuyerIdentityMutationVariables = Exact<{
|
|
|
3947
4010
|
}>;
|
|
3948
4011
|
export type CartUpdateBuyerIdentityMutation = {
|
|
3949
4012
|
cartUpdateBuyerIdentity: {
|
|
3950
|
-
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt'> & {
|
|
4013
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
3951
4014
|
cost: {
|
|
3952
4015
|
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3953
4016
|
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3954
4017
|
totalTax?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3955
4018
|
totalDuty?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3956
4019
|
checkoutCharge?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4020
|
+
totalDiscount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4021
|
+
totalShipping?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
3957
4022
|
};
|
|
3958
4023
|
lines: (Pick<CartLineConnection, 'totalCount'> & {
|
|
3959
4024
|
nodes: Array<(Pick<CartLine, 'id' | 'quantity' | 'productId' | 'productTitle' | 'productHandle' | 'productType' | 'requiresShipping'> & {
|
|
@@ -3972,6 +4037,7 @@ export type CartUpdateBuyerIdentityMutation = {
|
|
|
3972
4037
|
};
|
|
3973
4038
|
attributes: Array<Pick<Attribute, 'key' | 'value'>>;
|
|
3974
4039
|
attributeSelections: Array<Pick<AttributeSelection, 'attributeDefinitionId' | 'attributeName' | 'type' | 'fillingMode' | 'billingMode' | 'optionId' | 'optionLabel' | 'optionIds' | 'textValue' | 'surchargeAmount' | 'surchargeType' | 'taxClassId' | 'linkedVariantId'>>;
|
|
4040
|
+
giftCardRecipient?: Maybe<Pick<GiftCardLineRecipient, 'recipientEmail' | 'recipientName' | 'message'>>;
|
|
3975
4041
|
})>;
|
|
3976
4042
|
pageInfo: Pick<PageInfo, 'hasNextPage' | 'hasPreviousPage' | 'startCursor' | 'endCursor'>;
|
|
3977
4043
|
});
|
|
@@ -3995,6 +4061,7 @@ export type CartUpdateBuyerIdentityMutation = {
|
|
|
3995
4061
|
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3996
4062
|
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
3997
4063
|
})>;
|
|
4064
|
+
completedOrder?: Maybe<Pick<Order, 'id' | 'orderNumber' | 'accessToken' | 'status' | 'paymentStatus' | 'fulfillmentStatus'>>;
|
|
3998
4065
|
})>;
|
|
3999
4066
|
userErrors: Array<Pick<UserError, 'message' | 'code' | 'field'>>;
|
|
4000
4067
|
warnings: Array<Pick<CartWarning, 'message' | 'code' | 'target'>>;
|
|
@@ -4005,13 +4072,15 @@ export type CartUpdateGiftCardRecipientMutationVariables = Exact<{
|
|
|
4005
4072
|
}>;
|
|
4006
4073
|
export type CartUpdateGiftCardRecipientMutation = {
|
|
4007
4074
|
cartUpdateGiftCardRecipient: {
|
|
4008
|
-
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt'> & {
|
|
4075
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
4009
4076
|
cost: {
|
|
4010
4077
|
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4011
4078
|
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4012
4079
|
totalTax?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4013
4080
|
totalDuty?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4014
4081
|
checkoutCharge?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4082
|
+
totalDiscount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4083
|
+
totalShipping?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4015
4084
|
};
|
|
4016
4085
|
lines: (Pick<CartLineConnection, 'totalCount'> & {
|
|
4017
4086
|
nodes: Array<(Pick<CartLine, 'id' | 'quantity' | 'productId' | 'productTitle' | 'productHandle' | 'productType' | 'requiresShipping'> & {
|
|
@@ -4030,6 +4099,7 @@ export type CartUpdateGiftCardRecipientMutation = {
|
|
|
4030
4099
|
};
|
|
4031
4100
|
attributes: Array<Pick<Attribute, 'key' | 'value'>>;
|
|
4032
4101
|
attributeSelections: Array<Pick<AttributeSelection, 'attributeDefinitionId' | 'attributeName' | 'type' | 'fillingMode' | 'billingMode' | 'optionId' | 'optionLabel' | 'optionIds' | 'textValue' | 'surchargeAmount' | 'surchargeType' | 'taxClassId' | 'linkedVariantId'>>;
|
|
4102
|
+
giftCardRecipient?: Maybe<Pick<GiftCardLineRecipient, 'recipientEmail' | 'recipientName' | 'message'>>;
|
|
4033
4103
|
})>;
|
|
4034
4104
|
pageInfo: Pick<PageInfo, 'hasNextPage' | 'hasPreviousPage' | 'startCursor' | 'endCursor'>;
|
|
4035
4105
|
});
|
|
@@ -4053,6 +4123,7 @@ export type CartUpdateGiftCardRecipientMutation = {
|
|
|
4053
4123
|
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4054
4124
|
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4055
4125
|
})>;
|
|
4126
|
+
completedOrder?: Maybe<Pick<Order, 'id' | 'orderNumber' | 'accessToken' | 'status' | 'paymentStatus' | 'fulfillmentStatus'>>;
|
|
4056
4127
|
})>;
|
|
4057
4128
|
userErrors: Array<Pick<UserError, 'message' | 'code' | 'field'>>;
|
|
4058
4129
|
warnings: Array<Pick<CartWarning, 'message' | 'code' | 'target'>>;
|
|
@@ -4064,13 +4135,15 @@ export type CartUpdateLinesMutationVariables = Exact<{
|
|
|
4064
4135
|
}>;
|
|
4065
4136
|
export type CartUpdateLinesMutation = {
|
|
4066
4137
|
cartUpdateLines: {
|
|
4067
|
-
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt'> & {
|
|
4138
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
4068
4139
|
cost: {
|
|
4069
4140
|
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4070
4141
|
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4071
4142
|
totalTax?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4072
4143
|
totalDuty?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4073
4144
|
checkoutCharge?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4145
|
+
totalDiscount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4146
|
+
totalShipping?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4074
4147
|
};
|
|
4075
4148
|
lines: (Pick<CartLineConnection, 'totalCount'> & {
|
|
4076
4149
|
nodes: Array<(Pick<CartLine, 'id' | 'quantity' | 'productId' | 'productTitle' | 'productHandle' | 'productType' | 'requiresShipping'> & {
|
|
@@ -4089,6 +4162,7 @@ export type CartUpdateLinesMutation = {
|
|
|
4089
4162
|
};
|
|
4090
4163
|
attributes: Array<Pick<Attribute, 'key' | 'value'>>;
|
|
4091
4164
|
attributeSelections: Array<Pick<AttributeSelection, 'attributeDefinitionId' | 'attributeName' | 'type' | 'fillingMode' | 'billingMode' | 'optionId' | 'optionLabel' | 'optionIds' | 'textValue' | 'surchargeAmount' | 'surchargeType' | 'taxClassId' | 'linkedVariantId'>>;
|
|
4165
|
+
giftCardRecipient?: Maybe<Pick<GiftCardLineRecipient, 'recipientEmail' | 'recipientName' | 'message'>>;
|
|
4092
4166
|
})>;
|
|
4093
4167
|
pageInfo: Pick<PageInfo, 'hasNextPage' | 'hasPreviousPage' | 'startCursor' | 'endCursor'>;
|
|
4094
4168
|
});
|
|
@@ -4112,6 +4186,7 @@ export type CartUpdateLinesMutation = {
|
|
|
4112
4186
|
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4113
4187
|
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4114
4188
|
})>;
|
|
4189
|
+
completedOrder?: Maybe<Pick<Order, 'id' | 'orderNumber' | 'accessToken' | 'status' | 'paymentStatus' | 'fulfillmentStatus'>>;
|
|
4115
4190
|
})>;
|
|
4116
4191
|
userErrors: Array<Pick<UserError, 'message' | 'code' | 'field'>>;
|
|
4117
4192
|
warnings: Array<Pick<CartWarning, 'message' | 'code' | 'target'>>;
|
|
@@ -4123,13 +4198,15 @@ export type CartUpdateNoteMutationVariables = Exact<{
|
|
|
4123
4198
|
}>;
|
|
4124
4199
|
export type CartUpdateNoteMutation = {
|
|
4125
4200
|
cartUpdateNote: {
|
|
4126
|
-
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt'> & {
|
|
4201
|
+
cart?: Maybe<(Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
4127
4202
|
cost: {
|
|
4128
4203
|
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4129
4204
|
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4130
4205
|
totalTax?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4131
4206
|
totalDuty?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4132
4207
|
checkoutCharge?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4208
|
+
totalDiscount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4209
|
+
totalShipping?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4133
4210
|
};
|
|
4134
4211
|
lines: (Pick<CartLineConnection, 'totalCount'> & {
|
|
4135
4212
|
nodes: Array<(Pick<CartLine, 'id' | 'quantity' | 'productId' | 'productTitle' | 'productHandle' | 'productType' | 'requiresShipping'> & {
|
|
@@ -4148,6 +4225,7 @@ export type CartUpdateNoteMutation = {
|
|
|
4148
4225
|
};
|
|
4149
4226
|
attributes: Array<Pick<Attribute, 'key' | 'value'>>;
|
|
4150
4227
|
attributeSelections: Array<Pick<AttributeSelection, 'attributeDefinitionId' | 'attributeName' | 'type' | 'fillingMode' | 'billingMode' | 'optionId' | 'optionLabel' | 'optionIds' | 'textValue' | 'surchargeAmount' | 'surchargeType' | 'taxClassId' | 'linkedVariantId'>>;
|
|
4228
|
+
giftCardRecipient?: Maybe<Pick<GiftCardLineRecipient, 'recipientEmail' | 'recipientName' | 'message'>>;
|
|
4151
4229
|
})>;
|
|
4152
4230
|
pageInfo: Pick<PageInfo, 'hasNextPage' | 'hasPreviousPage' | 'startCursor' | 'endCursor'>;
|
|
4153
4231
|
});
|
|
@@ -4171,6 +4249,7 @@ export type CartUpdateNoteMutation = {
|
|
|
4171
4249
|
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4172
4250
|
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4173
4251
|
})>;
|
|
4252
|
+
completedOrder?: Maybe<Pick<Order, 'id' | 'orderNumber' | 'accessToken' | 'status' | 'paymentStatus' | 'fulfillmentStatus'>>;
|
|
4174
4253
|
})>;
|
|
4175
4254
|
userErrors: Array<Pick<UserError, 'message' | 'code' | 'field'>>;
|
|
4176
4255
|
warnings: Array<Pick<CartWarning, 'message' | 'code' | 'target'>>;
|
|
@@ -4280,13 +4359,15 @@ export type AvailablePaymentMethodsFragment = {
|
|
|
4280
4359
|
defaultMethod?: Maybe<Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'icon' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'>>;
|
|
4281
4360
|
};
|
|
4282
4361
|
export type PaymentMethodFragment = Pick<PaymentMethod, 'id' | 'name' | 'provider' | 'type' | 'icon' | 'description' | 'isDefault' | 'supportedCurrencies' | 'position'>;
|
|
4283
|
-
export type CartFragment = (Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt'> & {
|
|
4362
|
+
export type CartFragment = (Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' | 'note' | 'email' | 'phone' | 'requiresShipping' | 'createdAt' | 'updatedAt' | 'status'> & {
|
|
4284
4363
|
cost: {
|
|
4285
4364
|
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4286
4365
|
subtotal: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4287
4366
|
totalTax?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4288
4367
|
totalDuty?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4289
4368
|
checkoutCharge?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4369
|
+
totalDiscount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4370
|
+
totalShipping?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4290
4371
|
};
|
|
4291
4372
|
lines: (Pick<CartLineConnection, 'totalCount'> & {
|
|
4292
4373
|
nodes: Array<(Pick<CartLine, 'id' | 'quantity' | 'productId' | 'productTitle' | 'productHandle' | 'productType' | 'requiresShipping'> & {
|
|
@@ -4305,6 +4386,7 @@ export type CartFragment = (Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' |
|
|
|
4305
4386
|
};
|
|
4306
4387
|
attributes: Array<Pick<Attribute, 'key' | 'value'>>;
|
|
4307
4388
|
attributeSelections: Array<Pick<AttributeSelection, 'attributeDefinitionId' | 'attributeName' | 'type' | 'fillingMode' | 'billingMode' | 'optionId' | 'optionLabel' | 'optionIds' | 'textValue' | 'surchargeAmount' | 'surchargeType' | 'taxClassId' | 'linkedVariantId'>>;
|
|
4389
|
+
giftCardRecipient?: Maybe<Pick<GiftCardLineRecipient, 'recipientEmail' | 'recipientName' | 'message'>>;
|
|
4308
4390
|
})>;
|
|
4309
4391
|
pageInfo: Pick<PageInfo, 'hasNextPage' | 'hasPreviousPage' | 'startCursor' | 'endCursor'>;
|
|
4310
4392
|
});
|
|
@@ -4328,6 +4410,7 @@ export type CartFragment = (Pick<Cart, 'id' | 'checkoutUrl' | 'totalQuantity' |
|
|
|
4328
4410
|
appliedAmount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4329
4411
|
remainingBalance: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4330
4412
|
})>;
|
|
4413
|
+
completedOrder?: Maybe<Pick<Order, 'id' | 'orderNumber' | 'accessToken' | 'status' | 'paymentStatus' | 'fulfillmentStatus'>>;
|
|
4331
4414
|
});
|
|
4332
4415
|
export type CartCostFragment = {
|
|
4333
4416
|
total: Pick<Money, 'amount' | 'currencyCode'>;
|
|
@@ -4335,6 +4418,8 @@ export type CartCostFragment = {
|
|
|
4335
4418
|
totalTax?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4336
4419
|
totalDuty?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4337
4420
|
checkoutCharge?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4421
|
+
totalDiscount: Pick<Money, 'amount' | 'currencyCode'>;
|
|
4422
|
+
totalShipping?: Maybe<Pick<Money, 'amount' | 'currencyCode'>>;
|
|
4338
4423
|
};
|
|
4339
4424
|
export type CartLineFragment = (Pick<CartLine, 'id' | 'quantity' | 'productId' | 'productTitle' | 'productHandle' | 'productType' | 'requiresShipping'> & {
|
|
4340
4425
|
variant: (Pick<ProductVariant, 'id' | 'title' | 'sku' | 'isAvailable' | 'availableStock' | 'barcode' | 'sortOrder'> & {
|
|
@@ -4352,6 +4437,7 @@ export type CartLineFragment = (Pick<CartLine, 'id' | 'quantity' | 'productId' |
|
|
|
4352
4437
|
};
|
|
4353
4438
|
attributes: Array<Pick<Attribute, 'key' | 'value'>>;
|
|
4354
4439
|
attributeSelections: Array<Pick<AttributeSelection, 'attributeDefinitionId' | 'attributeName' | 'type' | 'fillingMode' | 'billingMode' | 'optionId' | 'optionLabel' | 'optionIds' | 'textValue' | 'surchargeAmount' | 'surchargeType' | 'taxClassId' | 'linkedVariantId'>>;
|
|
4440
|
+
giftCardRecipient?: Maybe<Pick<GiftCardLineRecipient, 'recipientEmail' | 'recipientName' | 'message'>>;
|
|
4355
4441
|
});
|
|
4356
4442
|
export type CartLineCostFragment = {
|
|
4357
4443
|
pricePerUnit: Pick<Money, 'amount' | 'currencyCode'>;
|