@vtex/faststore 0.0.8 → 0.0.10

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.
Files changed (151) hide show
  1. package/CHANGELOG.md +59 -0
  2. package/dist/actions.json +42 -0
  3. package/dist/catalog.json +731 -16
  4. package/dist/cli/index.js +1 -1
  5. package/dist/cli/index.js.map +1 -1
  6. package/dist/components.d.ts +9 -4
  7. package/dist/components.js +11 -6
  8. package/dist/content-types.json +300 -0
  9. package/dist/core/dist/define-component.d.ts +6 -1
  10. package/dist/docs/account-entry-point.md +4 -4
  11. package/dist/docs/account-menu.md +2 -2
  12. package/dist/docs/account-saved-cards.md +301 -0
  13. package/dist/docs/binding-switcher.md +154 -0
  14. package/dist/docs/card-entry.md +3 -3
  15. package/dist/docs/card-summary.md +175 -0
  16. package/dist/docs/cart-destination.md +238 -0
  17. package/dist/docs/cart-item.md +21 -3
  18. package/dist/docs/cart-totalizer.md +1 -1
  19. package/dist/docs/cart.md +118 -11
  20. package/dist/docs/footer-social.md +1 -1
  21. package/dist/docs/free-shipping-progress.md +13 -9
  22. package/dist/docs/incentives.md +2 -2
  23. package/dist/docs/logo.md +1 -1
  24. package/dist/docs/payment-method-badges.md +2 -2
  25. package/dist/docs/payment-methods.md +1 -1
  26. package/dist/docs/product-information.md +2 -2
  27. package/dist/docs/product-shelf.md +7 -0
  28. package/dist/docs/select.md +3 -4
  29. package/dist/docs/sign-in-redirect.md +1 -1
  30. package/dist/docs/toast.md +30 -12
  31. package/dist/index.d.ts +2 -1
  32. package/dist/internal/client.d.ts +4 -1
  33. package/dist/internal/client.js +4 -1
  34. package/dist/internal/server.d.ts +4 -2
  35. package/dist/internal/server.js +4 -2
  36. package/dist/matter/account-saved-cards/account-saved-cards.d.ts +383 -0
  37. package/dist/matter/account-saved-cards/account-saved-cards.js +956 -0
  38. package/dist/matter/account-saved-cards/account-saved-cards.js.map +1 -0
  39. package/dist/matter/billing-address/billing-address.js.map +1 -1
  40. package/dist/matter/cart/cart-namespace.d.ts +5 -1
  41. package/dist/matter/cart/cart-namespace.js +5 -1
  42. package/dist/matter/cart/cart-namespace.js.map +1 -1
  43. package/dist/matter/cart/cart.d.ts +34 -4
  44. package/dist/matter/cart/cart.js +238 -28
  45. package/dist/matter/cart/cart.js.map +1 -1
  46. package/dist/matter/cart-destination/cart-destination.d.ts +222 -0
  47. package/dist/matter/cart-destination/cart-destination.js +613 -0
  48. package/dist/matter/cart-destination/cart-destination.js.map +1 -0
  49. package/dist/matter/cart-item/cart-item.d.ts +4 -2
  50. package/dist/matter/cart-item/cart-item.js +75 -16
  51. package/dist/matter/cart-item/cart-item.js.map +1 -1
  52. package/dist/matter/cart-totalizer/cart-totalizer.js +3 -2
  53. package/dist/matter/cart-totalizer/cart-totalizer.js.map +1 -1
  54. package/dist/matter/free-shipping-progress/free-shipping-progress.d.ts +6 -3
  55. package/dist/matter/free-shipping-progress/free-shipping-progress.js +76 -33
  56. package/dist/matter/free-shipping-progress/free-shipping-progress.js.map +1 -1
  57. package/dist/matter/pricing/pricing.js.map +1 -1
  58. package/dist/matter/product-shelf/product-shelf.d.ts +7 -0
  59. package/dist/matter/product-shelf/product-shelf.js +115 -1
  60. package/dist/matter/product-shelf/product-shelf.js.map +1 -1
  61. package/dist/matter/shipping-address/shipping-address.js.map +1 -1
  62. package/dist/matter/shipping-simulator/shipping-simulator.d.ts +1 -1
  63. package/dist/matter/shipping-simulator/shipping-simulator.js +6 -2
  64. package/dist/matter/shipping-simulator/shipping-simulator.js.map +1 -1
  65. package/dist/particles/binding-switcher/binding-switcher.d.ts +38 -0
  66. package/dist/particles/binding-switcher/binding-switcher.js +183 -0
  67. package/dist/particles/binding-switcher/binding-switcher.js.map +1 -0
  68. package/dist/particles/card-summary/card-network.d.ts +17 -0
  69. package/dist/particles/card-summary/card-network.js +25 -0
  70. package/dist/particles/card-summary/card-network.js.map +1 -0
  71. package/dist/particles/card-summary/card-summary.d.ts +83 -0
  72. package/dist/particles/card-summary/card-summary.js +188 -0
  73. package/dist/particles/card-summary/card-summary.js.map +1 -0
  74. package/dist/particles/footer-social/footer-social.d.ts +1 -1
  75. package/dist/particles/footer-social/footer-social.js +1 -1
  76. package/dist/particles/footer-social/footer-social.js.map +1 -1
  77. package/dist/particles/incentives/incentives.d.ts +1 -1
  78. package/dist/particles/incentives/incentives.js +1 -1
  79. package/dist/particles/incentives/incentives.js.map +1 -1
  80. package/dist/particles/payment-methods/payment-methods.d.ts +1 -1
  81. package/dist/particles/payment-methods/payment-methods.js +1 -1
  82. package/dist/particles/payment-methods/payment-methods.js.map +1 -1
  83. package/dist/particles/toast/toast.d.ts +20 -6
  84. package/dist/particles/toast/toast.js +49 -7
  85. package/dist/particles/toast/toast.js.map +1 -1
  86. package/dist/schema.graphql +298 -34
  87. package/dist/sdk/actions/index.d.ts +3 -1
  88. package/dist/sdk/actions/index.js +3 -1
  89. package/dist/sdk/actions/locale-action-provider.d.ts +16 -0
  90. package/dist/sdk/actions/locale-action-provider.js +20 -0
  91. package/dist/sdk/actions/locale-action-provider.js.map +1 -0
  92. package/dist/sdk/actions/saved-card-action-provider.d.ts +12 -0
  93. package/dist/sdk/actions/saved-card-action-provider.js +16 -0
  94. package/dist/sdk/actions/saved-card-action-provider.js.map +1 -0
  95. package/dist/sdk/actions/types.d.ts +6 -2
  96. package/dist/sdk/cache/storefront-cache.js +2 -1
  97. package/dist/sdk/cache/storefront-cache.js.map +1 -1
  98. package/dist/sdk/cart/operations.d.ts +2 -1
  99. package/dist/sdk/cart/operations.js +55 -1
  100. package/dist/sdk/cart/operations.js.map +1 -1
  101. package/dist/sdk/cart/optimistic.d.ts +30 -7
  102. package/dist/sdk/cart/optimistic.js +78 -41
  103. package/dist/sdk/cart/optimistic.js.map +1 -1
  104. package/dist/sdk/cart/use-cart-actions.d.ts +7 -0
  105. package/dist/sdk/cart/use-cart-actions.js +61 -15
  106. package/dist/sdk/cart/use-cart-actions.js.map +1 -1
  107. package/dist/sdk/cart/use-cart-sync-sales-channel.js +70 -0
  108. package/dist/sdk/cart/use-cart-sync-sales-channel.js.map +1 -0
  109. package/dist/sdk/generated/gql.js +15 -11
  110. package/dist/sdk/generated/gql.js.map +1 -1
  111. package/dist/sdk/generated/graphql.d.ts +177 -46
  112. package/dist/sdk/generated/graphql.js +2314 -93
  113. package/dist/sdk/generated/graphql.js.map +1 -1
  114. package/dist/sdk/i18n/messages/en-US.js +19 -0
  115. package/dist/sdk/i18n/messages/en-US.json +19 -0
  116. package/dist/sdk/i18n/messages/en-US.json.d.ts +19 -0
  117. package/dist/sdk/i18n/messages/es-ES.js +19 -0
  118. package/dist/sdk/i18n/messages/es-ES.json +19 -0
  119. package/dist/sdk/i18n/messages/pt-BR.js +19 -0
  120. package/dist/sdk/i18n/messages/pt-BR.json +19 -0
  121. package/dist/sdk/i18n/provider.js +1 -1
  122. package/dist/sdk/i18n/provider.js.map +1 -1
  123. package/dist/sdk/locale/binding-switch-provider.d.ts +13 -0
  124. package/dist/sdk/locale/binding-switch-provider.js +20 -0
  125. package/dist/sdk/locale/binding-switch-provider.js.map +1 -0
  126. package/dist/sdk/locale/use-locale-actions.d.ts +16 -0
  127. package/dist/sdk/locale/use-locale-actions.js +70 -0
  128. package/dist/sdk/locale/use-locale-actions.js.map +1 -0
  129. package/dist/sdk/navigation/binding-switch.d.ts +39 -0
  130. package/dist/sdk/navigation/binding-switch.js +129 -0
  131. package/dist/sdk/navigation/binding-switch.js.map +1 -0
  132. package/dist/sdk/navigation/decode-route-params.d.ts +11 -0
  133. package/dist/sdk/navigation/decode-route-params.js +32 -0
  134. package/dist/sdk/navigation/decode-route-params.js.map +1 -0
  135. package/dist/sdk/saved-cards/operations.d.ts +16 -0
  136. package/dist/sdk/saved-cards/operations.js +41 -0
  137. package/dist/sdk/saved-cards/operations.js.map +1 -0
  138. package/dist/sdk/saved-cards/use-saved-card-actions.d.ts +26 -0
  139. package/dist/sdk/saved-cards/use-saved-card-actions.js +86 -0
  140. package/dist/sdk/saved-cards/use-saved-card-actions.js.map +1 -0
  141. package/dist/sdk/seo/page-alternates.d.ts +5 -3
  142. package/dist/sdk/seo/page-alternates.js +7 -12
  143. package/dist/sdk/seo/page-alternates.js.map +1 -1
  144. package/dist/sdk/shipping/shipping-operations.d.ts +1 -1
  145. package/dist/sdk/shipping/shipping-operations.js +13 -0
  146. package/dist/sdk/shipping/shipping-operations.js.map +1 -1
  147. package/dist/sdk/state/cart.d.ts +9 -2
  148. package/dist/sdk/state/cart.js +9 -2
  149. package/dist/sdk/state/cart.js.map +1 -1
  150. package/package.json +2 -2
  151. package/src/styles/tailwind.css +1 -2
@@ -1,5 +1,17 @@
1
1
  import "@graphql-typed-document-node/core";
2
2
  //#region src/sdk/generated/graphql.d.ts
3
+ /** Origin of a cart-level discount line. */
4
+ export type CartDiscountKind =
5
+ /** A promotion matched by a coupon code the shopper entered. */
6
+ 'COUPON' |
7
+ /**
8
+ * The part of the aggregate discount that no named promotion or coupon accounts
9
+ * for — a promotion the merchant did not feature, a discount the platform never
10
+ * itemized, or rounding. At most one entry, always last.
11
+ */
12
+ 'OTHER' |
13
+ /** An automatically applied promotion. */
14
+ 'PROMOTION';
3
15
  /**
4
16
  * Stock availability status for a cart line. Mapped from the upstream
5
17
  * order-form availability strings; UNKNOWN absorbs values we haven't classified.
@@ -19,34 +31,34 @@ export type CartItemQuantityDecreaseErrorCode =
19
31
  'CART_NOT_FOUND' |
20
32
  /** The quantity must be a positive integer. */
21
33
  'INVALID_QUANTITY' |
22
- /** The provided variant ID is not a valid Variant Node ID. */
23
- 'INVALID_VARIANT_ID' |
24
- /** The specified variant was not found in the cart. */
34
+ /** The specified line was not found in the cart. */
25
35
  'ITEM_NOT_FOUND' |
26
36
  /** No cart context was provided (x-order-form-id header/cookie). */
27
- 'MISSING_CART_CONTEXT';
37
+ 'MISSING_CART_CONTEXT' |
38
+ /** The upstream checkout API returned an unusable response. */
39
+ 'UPSTREAM_ERROR';
28
40
  /** Error codes for cart item quantity increase operations. */
29
41
  export type CartItemQuantityIncreaseErrorCode =
30
42
  /** The cart was not found. */
31
43
  'CART_NOT_FOUND' |
32
44
  /** The quantity must be a positive integer. */
33
45
  'INVALID_QUANTITY' |
34
- /** The provided variant ID is not a valid Variant Node ID. */
35
- 'INVALID_VARIANT_ID' |
36
- /** The specified variant was not found in the cart. */
46
+ /** The specified line was not found in the cart. */
37
47
  'ITEM_NOT_FOUND' |
38
48
  /** No cart context was provided (x-order-form-id header/cookie). */
39
- 'MISSING_CART_CONTEXT';
49
+ 'MISSING_CART_CONTEXT' |
50
+ /** The upstream checkout API returned an unusable response. */
51
+ 'UPSTREAM_ERROR';
40
52
  /** Error codes for cart item remove operations. */
41
53
  export type CartItemRemoveErrorCode =
42
54
  /** The cart was not found. */
43
55
  'CART_NOT_FOUND' |
44
- /** The provided variant ID is not a valid Variant Node ID. */
45
- 'INVALID_VARIANT_ID' |
46
- /** The specified variant was not found in the cart. */
56
+ /** The specified line was not found in the cart. */
47
57
  'ITEM_NOT_FOUND' |
48
58
  /** No cart context was provided (x-order-form-id header/cookie). */
49
- 'MISSING_CART_CONTEXT';
59
+ 'MISSING_CART_CONTEXT' |
60
+ /** The upstream checkout API returned an unusable response. */
61
+ 'UPSTREAM_ERROR';
50
62
  /**
51
63
  * Input for simulating shipping for the whole active cart. Carries the
52
64
  * destination only; items are sourced from the cart in the x-order-form-id
@@ -80,6 +92,14 @@ export type CurrencyCode =
80
92
  'PEN' |
81
93
  /** United States Dollar. */
82
94
  'USD';
95
+ /** Whether a saved card can still be used. */
96
+ export type CustomerSavedCardStatus =
97
+ /** The card's expiry date has passed. Wins over any other platform report. */
98
+ 'EXPIRED' |
99
+ /** The card has not expired, but the platform reports it cannot be used. */
100
+ 'UNUSABLE' |
101
+ /** The card has not expired and the platform reports nothing against it. */
102
+ 'USABLE';
83
103
  /** Input for simulating shipping options for a single variant on a PDP. */
84
104
  export type ShippingSimulateInput = {
85
105
  /** ISO 3166-1 alpha-3 country code (e.g. "BRA"). */
@@ -179,37 +199,38 @@ export type VariantSelectorDataFragment = {
179
199
  };
180
200
  export type MoneyFragmentFragment = {
181
201
  __typename: 'Money';
182
- amount: number;
202
+ amount: string;
183
203
  currencyCode: CurrencyCode;
184
204
  };
185
205
  export type CartItemFragmentFragment = {
186
206
  __typename: 'CartItem';
187
207
  id: string;
208
+ lineId: string;
188
209
  quantity: number;
189
210
  gift: boolean;
190
211
  price: {
191
212
  __typename: 'Money';
192
- amount: number;
213
+ amount: string;
193
214
  currencyCode: CurrencyCode;
194
215
  };
195
216
  listPrice: {
196
217
  __typename: 'Money';
197
- amount: number;
218
+ amount: string;
198
219
  currencyCode: CurrencyCode;
199
220
  };
200
221
  sellingPrice: {
201
222
  __typename: 'Money';
202
- amount: number;
223
+ amount: string;
203
224
  currencyCode: CurrencyCode;
204
225
  };
205
226
  ownTotal: {
206
227
  __typename: 'Money';
207
- amount: number;
228
+ amount: string;
208
229
  currencyCode: CurrencyCode;
209
230
  };
210
231
  total: {
211
232
  __typename: 'Money';
212
- amount: number;
233
+ amount: string;
213
234
  currencyCode: CurrencyCode;
214
235
  };
215
236
  variant: {
@@ -244,31 +265,32 @@ export type CartFragmentFragment = {
244
265
  items: Array<{
245
266
  __typename: 'CartItem';
246
267
  id: string;
268
+ lineId: string;
247
269
  quantity: number;
248
270
  gift: boolean;
249
271
  price: {
250
272
  __typename: 'Money';
251
- amount: number;
273
+ amount: string;
252
274
  currencyCode: CurrencyCode;
253
275
  };
254
276
  listPrice: {
255
277
  __typename: 'Money';
256
- amount: number;
278
+ amount: string;
257
279
  currencyCode: CurrencyCode;
258
280
  };
259
281
  sellingPrice: {
260
282
  __typename: 'Money';
261
- amount: number;
283
+ amount: string;
262
284
  currencyCode: CurrencyCode;
263
285
  };
264
286
  ownTotal: {
265
287
  __typename: 'Money';
266
- amount: number;
288
+ amount: string;
267
289
  currencyCode: CurrencyCode;
268
290
  };
269
291
  total: {
270
292
  __typename: 'Money';
271
- amount: number;
293
+ amount: string;
272
294
  currencyCode: CurrencyCode;
273
295
  };
274
296
  variant: {
@@ -303,13 +325,13 @@ export type CartFragmentFragment = {
303
325
  name: string;
304
326
  value: {
305
327
  __typename: 'Money';
306
- amount: number;
328
+ amount: string;
307
329
  currencyCode: CurrencyCode;
308
330
  };
309
331
  }>;
310
332
  total: {
311
333
  __typename: 'Money';
312
- amount: number;
334
+ amount: string;
313
335
  currencyCode: CurrencyCode;
314
336
  };
315
337
  messages: Array<{
@@ -322,6 +344,34 @@ export type CartFragmentFragment = {
322
344
  code: string;
323
345
  isUnmatchedCondition: boolean;
324
346
  }>;
347
+ discounts: Array<{
348
+ name: string | null;
349
+ kind: CartDiscountKind;
350
+ value: {
351
+ __typename: 'Money';
352
+ amount: string;
353
+ currencyCode: CurrencyCode;
354
+ };
355
+ }>;
356
+ salesChannelMismatch: {
357
+ cartSalesChannel: string;
358
+ activeSalesChannel: string;
359
+ } | null;
360
+ };
361
+ export type CartFreeShippingProgressFragmentFragment = {
362
+ freeShippingProgress: {
363
+ qualified: boolean;
364
+ threshold: {
365
+ __typename: 'Money';
366
+ amount: string;
367
+ currencyCode: CurrencyCode;
368
+ } | null;
369
+ remaining: {
370
+ __typename: 'Money';
371
+ amount: string;
372
+ currencyCode: CurrencyCode;
373
+ };
374
+ } | null;
325
375
  };
326
376
  export type CartItemRemoveMutation = {
327
377
  cartItemRemove: {
@@ -332,31 +382,32 @@ export type CartItemRemoveMutation = {
332
382
  items: Array<{
333
383
  __typename: 'CartItem';
334
384
  id: string;
385
+ lineId: string;
335
386
  quantity: number;
336
387
  gift: boolean;
337
388
  price: {
338
389
  __typename: 'Money';
339
- amount: number;
390
+ amount: string;
340
391
  currencyCode: CurrencyCode;
341
392
  };
342
393
  listPrice: {
343
394
  __typename: 'Money';
344
- amount: number;
395
+ amount: string;
345
396
  currencyCode: CurrencyCode;
346
397
  };
347
398
  sellingPrice: {
348
399
  __typename: 'Money';
349
- amount: number;
400
+ amount: string;
350
401
  currencyCode: CurrencyCode;
351
402
  };
352
403
  ownTotal: {
353
404
  __typename: 'Money';
354
- amount: number;
405
+ amount: string;
355
406
  currencyCode: CurrencyCode;
356
407
  };
357
408
  total: {
358
409
  __typename: 'Money';
359
- amount: number;
410
+ amount: string;
360
411
  currencyCode: CurrencyCode;
361
412
  };
362
413
  variant: {
@@ -391,13 +442,13 @@ export type CartItemRemoveMutation = {
391
442
  name: string;
392
443
  value: {
393
444
  __typename: 'Money';
394
- amount: number;
445
+ amount: string;
395
446
  currencyCode: CurrencyCode;
396
447
  };
397
448
  }>;
398
449
  total: {
399
450
  __typename: 'Money';
400
- amount: number;
451
+ amount: string;
401
452
  currencyCode: CurrencyCode;
402
453
  };
403
454
  messages: Array<{
@@ -410,6 +461,32 @@ export type CartItemRemoveMutation = {
410
461
  code: string;
411
462
  isUnmatchedCondition: boolean;
412
463
  }>;
464
+ discounts: Array<{
465
+ name: string | null;
466
+ kind: CartDiscountKind;
467
+ value: {
468
+ __typename: 'Money';
469
+ amount: string;
470
+ currencyCode: CurrencyCode;
471
+ };
472
+ }>;
473
+ salesChannelMismatch: {
474
+ cartSalesChannel: string;
475
+ activeSalesChannel: string;
476
+ } | null;
477
+ freeShippingProgress: {
478
+ qualified: boolean;
479
+ threshold: {
480
+ __typename: 'Money';
481
+ amount: string;
482
+ currencyCode: CurrencyCode;
483
+ } | null;
484
+ remaining: {
485
+ __typename: 'Money';
486
+ amount: string;
487
+ currencyCode: CurrencyCode;
488
+ };
489
+ } | null;
413
490
  } | null;
414
491
  userErrors: Array<{
415
492
  code: CartItemRemoveErrorCode;
@@ -426,31 +503,32 @@ export type CartItemQuantityIncreaseMutation = {
426
503
  items: Array<{
427
504
  __typename: 'CartItem';
428
505
  id: string;
506
+ lineId: string;
429
507
  quantity: number;
430
508
  gift: boolean;
431
509
  price: {
432
510
  __typename: 'Money';
433
- amount: number;
511
+ amount: string;
434
512
  currencyCode: CurrencyCode;
435
513
  };
436
514
  listPrice: {
437
515
  __typename: 'Money';
438
- amount: number;
516
+ amount: string;
439
517
  currencyCode: CurrencyCode;
440
518
  };
441
519
  sellingPrice: {
442
520
  __typename: 'Money';
443
- amount: number;
521
+ amount: string;
444
522
  currencyCode: CurrencyCode;
445
523
  };
446
524
  ownTotal: {
447
525
  __typename: 'Money';
448
- amount: number;
526
+ amount: string;
449
527
  currencyCode: CurrencyCode;
450
528
  };
451
529
  total: {
452
530
  __typename: 'Money';
453
- amount: number;
531
+ amount: string;
454
532
  currencyCode: CurrencyCode;
455
533
  };
456
534
  variant: {
@@ -485,13 +563,13 @@ export type CartItemQuantityIncreaseMutation = {
485
563
  name: string;
486
564
  value: {
487
565
  __typename: 'Money';
488
- amount: number;
566
+ amount: string;
489
567
  currencyCode: CurrencyCode;
490
568
  };
491
569
  }>;
492
570
  total: {
493
571
  __typename: 'Money';
494
- amount: number;
572
+ amount: string;
495
573
  currencyCode: CurrencyCode;
496
574
  };
497
575
  messages: Array<{
@@ -504,6 +582,32 @@ export type CartItemQuantityIncreaseMutation = {
504
582
  code: string;
505
583
  isUnmatchedCondition: boolean;
506
584
  }>;
585
+ discounts: Array<{
586
+ name: string | null;
587
+ kind: CartDiscountKind;
588
+ value: {
589
+ __typename: 'Money';
590
+ amount: string;
591
+ currencyCode: CurrencyCode;
592
+ };
593
+ }>;
594
+ salesChannelMismatch: {
595
+ cartSalesChannel: string;
596
+ activeSalesChannel: string;
597
+ } | null;
598
+ freeShippingProgress: {
599
+ qualified: boolean;
600
+ threshold: {
601
+ __typename: 'Money';
602
+ amount: string;
603
+ currencyCode: CurrencyCode;
604
+ } | null;
605
+ remaining: {
606
+ __typename: 'Money';
607
+ amount: string;
608
+ currencyCode: CurrencyCode;
609
+ };
610
+ } | null;
507
611
  } | null;
508
612
  userErrors: Array<{
509
613
  code: CartItemQuantityIncreaseErrorCode;
@@ -520,31 +624,32 @@ export type CartItemQuantityDecreaseMutation = {
520
624
  items: Array<{
521
625
  __typename: 'CartItem';
522
626
  id: string;
627
+ lineId: string;
523
628
  quantity: number;
524
629
  gift: boolean;
525
630
  price: {
526
631
  __typename: 'Money';
527
- amount: number;
632
+ amount: string;
528
633
  currencyCode: CurrencyCode;
529
634
  };
530
635
  listPrice: {
531
636
  __typename: 'Money';
532
- amount: number;
637
+ amount: string;
533
638
  currencyCode: CurrencyCode;
534
639
  };
535
640
  sellingPrice: {
536
641
  __typename: 'Money';
537
- amount: number;
642
+ amount: string;
538
643
  currencyCode: CurrencyCode;
539
644
  };
540
645
  ownTotal: {
541
646
  __typename: 'Money';
542
- amount: number;
647
+ amount: string;
543
648
  currencyCode: CurrencyCode;
544
649
  };
545
650
  total: {
546
651
  __typename: 'Money';
547
- amount: number;
652
+ amount: string;
548
653
  currencyCode: CurrencyCode;
549
654
  };
550
655
  variant: {
@@ -579,13 +684,13 @@ export type CartItemQuantityDecreaseMutation = {
579
684
  name: string;
580
685
  value: {
581
686
  __typename: 'Money';
582
- amount: number;
687
+ amount: string;
583
688
  currencyCode: CurrencyCode;
584
689
  };
585
690
  }>;
586
691
  total: {
587
692
  __typename: 'Money';
588
- amount: number;
693
+ amount: string;
589
694
  currencyCode: CurrencyCode;
590
695
  };
591
696
  messages: Array<{
@@ -598,6 +703,32 @@ export type CartItemQuantityDecreaseMutation = {
598
703
  code: string;
599
704
  isUnmatchedCondition: boolean;
600
705
  }>;
706
+ discounts: Array<{
707
+ name: string | null;
708
+ kind: CartDiscountKind;
709
+ value: {
710
+ __typename: 'Money';
711
+ amount: string;
712
+ currencyCode: CurrencyCode;
713
+ };
714
+ }>;
715
+ salesChannelMismatch: {
716
+ cartSalesChannel: string;
717
+ activeSalesChannel: string;
718
+ } | null;
719
+ freeShippingProgress: {
720
+ qualified: boolean;
721
+ threshold: {
722
+ __typename: 'Money';
723
+ amount: string;
724
+ currencyCode: CurrencyCode;
725
+ } | null;
726
+ remaining: {
727
+ __typename: 'Money';
728
+ amount: string;
729
+ currencyCode: CurrencyCode;
730
+ };
731
+ } | null;
601
732
  } | null;
602
733
  userErrors: Array<{
603
734
  code: CartItemQuantityDecreaseErrorCode;