@zonos/elements 1.2.4-alpha.6 → 1.2.4-alpha.7

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 (185) hide show
  1. package/dist/cjs/{cart-7ad04cdb.js → cart-90f7c8c0.js} +36 -8
  2. package/dist/cjs/{getBorderRadius-a97a5f75.js → getBorderRadius-bf4a4276.js} +1 -1
  3. package/dist/cjs/{index-20cb112f.js → index-0dcccc22.js} +27 -16
  4. package/dist/cjs/index.cjs.js +6 -6
  5. package/dist/cjs/{isDarkColor-261fcf3d.js → isDarkColor-ff6ff183.js} +1 -1
  6. package/dist/cjs/loader.cjs.js +2 -2
  7. package/dist/cjs/{localization-5069ab0b.js → localization-9caf3397.js} +7 -7
  8. package/dist/cjs/{submitGtag-44e938ff.js → submitGtag-b141b45d.js} +2 -2
  9. package/dist/cjs/zonos-address_2.cjs.entry.js +6 -6
  10. package/dist/cjs/zonos-badge.cjs.entry.js +2 -2
  11. package/dist/cjs/zonos-banner.cjs.entry.js +2 -2
  12. package/dist/cjs/zonos-button_2.cjs.entry.js +4 -4
  13. package/dist/cjs/zonos-card_2.cjs.entry.js +2 -2
  14. package/dist/cjs/zonos-cart-items_10.cjs.entry.js +50 -8
  15. package/dist/cjs/zonos-checkout.cjs.entry.js +9 -7
  16. package/dist/cjs/zonos-component.cjs.entry.js +1 -1
  17. package/dist/cjs/zonos-controller.cjs.entry.js +8 -8
  18. package/dist/cjs/zonos-country-flag_4.cjs.entry.js +4 -4
  19. package/dist/cjs/zonos-elements.cjs.js +3 -3
  20. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +3 -3
  21. package/dist/cjs/zonos-hello.cjs.entry.js +4 -4
  22. package/dist/cjs/zonos-icon.cjs.entry.js +2 -2
  23. package/dist/cjs/zonos-notification.cjs.entry.js +2 -2
  24. package/dist/cjs/zonos-payment.cjs.entry.js +6 -6
  25. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +3 -3
  26. package/dist/cjs/zonos-text.cjs.entry.js +2 -2
  27. package/dist/cjs/{zonosStore-a0fa5b77.js → zonosStore-b43ef5db.js} +1 -1
  28. package/dist/collection/collection-manifest.json +1 -1
  29. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +48 -2
  30. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +5 -2
  31. package/dist/collection/components/common/zonos-notification/zonos-notification.js +3 -2
  32. package/dist/collection/components/hello/zonos-hello/zonos-hello.js +9 -6
  33. package/dist/collection/components/main/zonos-controller.js +16 -14
  34. package/dist/collection/components/store/checkout/cart.js +1 -1
  35. package/dist/collection/components/store/checkout/stripe.js +3 -2
  36. package/dist/collection/components/utils/api/calculateLandedCost.js +9 -1
  37. package/dist/collection/components/utils/api/checkItemRestrictions.js +1 -1
  38. package/dist/collection/components/utils/api/getCountries.js +1 -1
  39. package/dist/collection/components/utils/api/getCountryLandedCost.js +1 -1
  40. package/dist/collection/components/utils/api/getExchangeRate.js +1 -1
  41. package/dist/collection/components/utils/api/getLocaleMessages.js +1 -1
  42. package/dist/collection/components/utils/api/getLocalization.js +1 -1
  43. package/dist/collection/components/utils/api/getShippingZones.js +1 -1
  44. package/dist/collection/components/utils/api/getZonosSetting.js +1 -1
  45. package/dist/collection/components/utils/api/triggerBuildLandedCost.js +22 -0
  46. package/dist/collection/types/generated/graphql.customer.types.js +72 -0
  47. package/dist/collection/types/generated/graphql.frontend.types.js +83 -6
  48. package/dist/components/cart.js +33 -5
  49. package/dist/components/localization.js +6 -6
  50. package/dist/components/zonos-checkout-finish2.js +47 -4
  51. package/dist/components/zonos-checkout.js +2 -0
  52. package/dist/components/zonos-controller.js +2 -2
  53. package/dist/components/zonos-hello.js +1 -1
  54. package/dist/esm/{cart-face98c8.js → cart-b439be00.js} +36 -8
  55. package/dist/esm/{getBorderRadius-35e8acce.js → getBorderRadius-178a0a05.js} +1 -1
  56. package/dist/esm/{index-3617e24c.js → index-36ff6342.js} +27 -16
  57. package/dist/esm/index.js +6 -6
  58. package/dist/esm/{isDarkColor-44e9e451.js → isDarkColor-416d6047.js} +1 -1
  59. package/dist/esm/loader.js +3 -3
  60. package/dist/esm/{localization-ed07b7f0.js → localization-a51ccbc2.js} +7 -7
  61. package/dist/esm/{submitGtag-5b553683.js → submitGtag-521826a2.js} +2 -2
  62. package/dist/esm/zonos-address_2.entry.js +6 -6
  63. package/dist/esm/zonos-badge.entry.js +2 -2
  64. package/dist/esm/zonos-banner.entry.js +2 -2
  65. package/dist/esm/zonos-button_2.entry.js +4 -4
  66. package/dist/esm/zonos-card_2.entry.js +2 -2
  67. package/dist/esm/zonos-cart-items_10.entry.js +50 -8
  68. package/dist/esm/zonos-checkout.entry.js +9 -7
  69. package/dist/esm/zonos-component.entry.js +1 -1
  70. package/dist/esm/zonos-controller.entry.js +8 -8
  71. package/dist/esm/zonos-country-flag_4.entry.js +4 -4
  72. package/dist/esm/zonos-elements.js +4 -4
  73. package/dist/esm/zonos-hello-dialog.entry.js +3 -3
  74. package/dist/esm/zonos-hello.entry.js +4 -4
  75. package/dist/esm/zonos-icon.entry.js +2 -2
  76. package/dist/esm/zonos-notification.entry.js +2 -2
  77. package/dist/esm/zonos-payment.entry.js +6 -6
  78. package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -3
  79. package/dist/esm/zonos-text.entry.js +2 -2
  80. package/dist/esm/{zonosStore-e0b7a5cf.js → zonosStore-61e74f58.js} +1 -1
  81. package/dist/esm-es5/cart-b439be00.js +1 -0
  82. package/dist/esm-es5/{getBorderRadius-35e8acce.js → getBorderRadius-178a0a05.js} +1 -1
  83. package/dist/esm-es5/index-36ff6342.js +2 -0
  84. package/dist/esm-es5/index.js +1 -1
  85. package/dist/esm-es5/{isDarkColor-44e9e451.js → isDarkColor-416d6047.js} +1 -1
  86. package/dist/esm-es5/loader.js +1 -1
  87. package/dist/esm-es5/{localization-ed07b7f0.js → localization-a51ccbc2.js} +1 -1
  88. package/dist/esm-es5/{submitGtag-5b553683.js → submitGtag-521826a2.js} +1 -1
  89. package/dist/esm-es5/zonos-address_2.entry.js +1 -1
  90. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  91. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  92. package/dist/esm-es5/zonos-button_2.entry.js +1 -1
  93. package/dist/esm-es5/zonos-card_2.entry.js +1 -1
  94. package/dist/esm-es5/zonos-cart-items_10.entry.js +1 -1
  95. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  96. package/dist/esm-es5/zonos-component.entry.js +1 -1
  97. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  98. package/dist/esm-es5/zonos-country-flag_4.entry.js +1 -1
  99. package/dist/esm-es5/zonos-elements.js +1 -1
  100. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  101. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  102. package/dist/esm-es5/zonos-icon.entry.js +1 -1
  103. package/dist/esm-es5/zonos-notification.entry.js +1 -1
  104. package/dist/esm-es5/zonos-payment.entry.js +1 -1
  105. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  106. package/dist/esm-es5/zonos-text.entry.js +1 -1
  107. package/dist/esm-es5/{zonosStore-e0b7a5cf.js → zonosStore-61e74f58.js} +1 -1
  108. package/dist/scripts/loadZonos.js +3 -3
  109. package/dist/scripts/zonos.js +3 -3
  110. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.d.ts +5 -1
  111. package/dist/types/components/store/checkout/stripe.d.ts +1 -0
  112. package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
  113. package/dist/types/components/utils/api/triggerBuildLandedCost.d.ts +5 -0
  114. package/dist/types/types/checkout/CheckoutConfig.d.ts +3 -1
  115. package/dist/types/types/generated/graphql.customer.types.d.ts +230 -7
  116. package/dist/types/types/generated/graphql.customer.types.ts +281 -7
  117. package/dist/types/types/generated/graphql.frontend.types.d.ts +222 -11
  118. package/dist/types/types/generated/graphql.frontend.types.ts +377 -11
  119. package/dist/zonos-elements/index.esm.js +1 -1
  120. package/dist/zonos-elements/{p-d8daeec4.system.entry.js → p-06fb9d1f.system.entry.js} +1 -1
  121. package/dist/zonos-elements/{p-77a7929b.js → p-089ba905.js} +1 -1
  122. package/dist/zonos-elements/{p-f0f9c43a.js → p-1685c8df.js} +1 -1
  123. package/dist/zonos-elements/p-18904b7c.system.js +2 -0
  124. package/dist/zonos-elements/{p-b8d11094.entry.js → p-1d4a970b.entry.js} +1 -1
  125. package/dist/zonos-elements/{p-80ba24a8.system.js → p-24eed2a8.system.js} +1 -1
  126. package/dist/zonos-elements/{p-bec21999.system.js → p-24fbe845.system.js} +1 -1
  127. package/dist/zonos-elements/{p-55f1da18.entry.js → p-2801d868.entry.js} +1 -1
  128. package/dist/zonos-elements/{p-1dbaf24b.system.entry.js → p-2f43da39.system.entry.js} +1 -1
  129. package/dist/zonos-elements/p-33137e7d.system.entry.js +1 -0
  130. package/dist/zonos-elements/{p-99c9bd01.js → p-3c6988d7.js} +1 -1
  131. package/dist/zonos-elements/p-3cea383b.system.entry.js +1 -0
  132. package/dist/zonos-elements/{p-86580e70.system.entry.js → p-47390db7.system.entry.js} +1 -1
  133. package/dist/zonos-elements/p-4846796a.js +1 -0
  134. package/dist/zonos-elements/p-494c77a7.entry.js +1 -0
  135. package/dist/zonos-elements/{p-00c99619.entry.js → p-49f09b91.entry.js} +1 -1
  136. package/dist/zonos-elements/{p-9e396855.system.entry.js → p-4a15c5c7.system.entry.js} +1 -1
  137. package/dist/zonos-elements/{p-507e1954.system.entry.js → p-4bee0bff.system.entry.js} +1 -1
  138. package/dist/zonos-elements/{p-3eb33ba6.entry.js → p-4d93275c.entry.js} +1 -1
  139. package/dist/zonos-elements/{p-f09eb5c5.entry.js → p-4ed71bd7.entry.js} +1 -1
  140. package/dist/zonos-elements/{p-8bbad467.js → p-55f49f1e.js} +1 -1
  141. package/dist/zonos-elements/{p-114d8a14.system.entry.js → p-560aa686.system.entry.js} +1 -1
  142. package/dist/zonos-elements/{p-03df1466.entry.js → p-639396bb.entry.js} +1 -1
  143. package/dist/zonos-elements/{p-3c64448f.system.entry.js → p-67154df2.system.entry.js} +1 -1
  144. package/dist/zonos-elements/{p-9dbbacd9.entry.js → p-684ed483.entry.js} +1 -1
  145. package/dist/zonos-elements/{p-c743e43f.entry.js → p-89c210d6.entry.js} +1 -1
  146. package/dist/zonos-elements/{p-5aefdcdc.system.js → p-8c48b75e.system.js} +1 -1
  147. package/dist/zonos-elements/{p-4138e220.system.entry.js → p-8c5595d9.system.entry.js} +1 -1
  148. package/dist/zonos-elements/{p-263c1639.entry.js → p-938803f4.entry.js} +1 -1
  149. package/dist/zonos-elements/p-956efa27.js +2 -0
  150. package/dist/zonos-elements/{p-bca3d02f.entry.js → p-a0e36ed3.entry.js} +1 -1
  151. package/dist/zonos-elements/{p-b5bc4851.entry.js → p-a376a37f.entry.js} +1 -1
  152. package/dist/zonos-elements/{p-94f03799.system.js → p-a504f64f.system.js} +1 -1
  153. package/dist/zonos-elements/p-afe26069.entry.js +1 -0
  154. package/dist/zonos-elements/{p-f2ed98bb.system.entry.js → p-b4601210.system.entry.js} +1 -1
  155. package/dist/zonos-elements/{p-4db8bd2e.system.js → p-b51de536.system.js} +1 -1
  156. package/dist/zonos-elements/{p-9fa111f1.entry.js → p-b6148206.entry.js} +1 -1
  157. package/dist/zonos-elements/{p-643eeb24.system.js → p-b85be1ab.system.js} +1 -1
  158. package/dist/zonos-elements/{p-06ec9556.system.entry.js → p-c9348bb0.system.entry.js} +1 -1
  159. package/dist/zonos-elements/p-d2217f09.system.js +1 -0
  160. package/dist/zonos-elements/{p-7bd0ab43.system.entry.js → p-d856a200.system.entry.js} +1 -1
  161. package/dist/zonos-elements/{p-754bdfdb.system.js → p-da060b1c.system.js} +1 -1
  162. package/dist/zonos-elements/{p-6f6d24da.entry.js → p-e1f6ab97.entry.js} +1 -1
  163. package/dist/zonos-elements/{p-3a7546f0.system.entry.js → p-e5ae22a9.system.entry.js} +1 -1
  164. package/dist/zonos-elements/{p-4c0f4461.system.entry.js → p-e98be2d0.system.entry.js} +1 -1
  165. package/dist/zonos-elements/p-e9b832c5.entry.js +1 -0
  166. package/dist/zonos-elements/p-eb392924.entry.js +1 -0
  167. package/dist/zonos-elements/{p-b2984730.system.entry.js → p-f141519c.system.entry.js} +1 -1
  168. package/dist/zonos-elements/{p-39ae023c.system.entry.js → p-f367f2fe.system.entry.js} +1 -1
  169. package/dist/zonos-elements/p-ff95f098.js +1 -0
  170. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  171. package/dist/zonos-elements/zonos-elements.js +1 -1
  172. package/package.json +7 -6
  173. package/dist/esm-es5/cart-face98c8.js +0 -1
  174. package/dist/esm-es5/index-3617e24c.js +0 -2
  175. package/dist/zonos-elements/p-39dfc72b.entry.js +0 -1
  176. package/dist/zonos-elements/p-3c40bb08.entry.js +0 -1
  177. package/dist/zonos-elements/p-47c110a4.system.js +0 -1
  178. package/dist/zonos-elements/p-5e6be2a3.entry.js +0 -1
  179. package/dist/zonos-elements/p-aeeaaa7a.system.entry.js +0 -1
  180. package/dist/zonos-elements/p-b944303a.system.entry.js +0 -1
  181. package/dist/zonos-elements/p-bec05c21.system.js +0 -2
  182. package/dist/zonos-elements/p-c6ed3777.js +0 -1
  183. package/dist/zonos-elements/p-cf8aaa17.js +0 -2
  184. package/dist/zonos-elements/p-d9ed23ec.entry.js +0 -1
  185. package/dist/zonos-elements/p-e1de2a1f.js +0 -1
@@ -141,6 +141,14 @@ export const carrierAccountUsageCategoryCode = {
141
141
  export type CarrierAccountUsageCategoryCode =
142
142
  (typeof carrierAccountUsageCategoryCode)[keyof typeof carrierAccountUsageCategoryCode];
143
143
 
144
+ export const carrierApiAccountProvider = {
145
+ General: 'GENERAL',
146
+ Organization: 'ORGANIZATION',
147
+ } as const;
148
+
149
+ export type CarrierApiAccountProvider =
150
+ (typeof carrierApiAccountProvider)[keyof typeof carrierApiAccountProvider];
151
+
144
152
  export const carrierApiRateTypeCode = {
145
153
  Negotiated: 'NEGOTIATED',
146
154
  Retail: 'RETAIL',
@@ -268,6 +276,15 @@ export const classificationBulkJobStatus = {
268
276
  export type ClassificationBulkJobStatus =
269
277
  (typeof classificationBulkJobStatus)[keyof typeof classificationBulkJobStatus];
270
278
 
279
+ export const classificationCalculateSource = {
280
+ External: 'EXTERNAL',
281
+ Internal: 'INTERNAL',
282
+ Legacy: 'LEGACY',
283
+ } as const;
284
+
285
+ export type ClassificationCalculateSource =
286
+ (typeof classificationCalculateSource)[keyof typeof classificationCalculateSource];
287
+
271
288
  export const clearanceType = {
272
289
  Commercial: 'COMMERCIAL',
273
290
  Postal: 'POSTAL',
@@ -1045,6 +1062,23 @@ export const currencySymbolLocation = {
1045
1062
  export type CurrencySymbolLocation =
1046
1063
  (typeof currencySymbolLocation)[keyof typeof currencySymbolLocation];
1047
1064
 
1065
+ export const customsDocumentFileType = {
1066
+ Pdf: 'PDF',
1067
+ Txt: 'TXT',
1068
+ } as const;
1069
+
1070
+ export type CustomsDocumentFileType =
1071
+ (typeof customsDocumentFileType)[keyof typeof customsDocumentFileType];
1072
+
1073
+ export const customsDocumentType = {
1074
+ CertificateOfOrigin: 'CERTIFICATE_OF_ORIGIN',
1075
+ CommercialInvoice: 'COMMERCIAL_INVOICE',
1076
+ Other: 'OTHER',
1077
+ } as const;
1078
+
1079
+ export type CustomsDocumentType =
1080
+ (typeof customsDocumentType)[keyof typeof customsDocumentType];
1081
+
1048
1082
  export const customsSpecAttributeType = {
1049
1083
  AccountNumber: 'ACCOUNT_NUMBER',
1050
1084
  B13A: 'B13A',
@@ -1341,6 +1375,7 @@ export const hsCodeType = {
1341
1375
  } as const;
1342
1376
 
1343
1377
  export type HsCodeType = (typeof hsCodeType)[keyof typeof hsCodeType];
1378
+
1344
1379
  export const hsCodeValidation = {
1345
1380
  Coherent: 'COHERENT',
1346
1381
  Invalid: 'INVALID',
@@ -1566,6 +1601,14 @@ export const labelStatusType = {
1566
1601
  export type LabelStatusType =
1567
1602
  (typeof labelStatusType)[keyof typeof labelStatusType];
1568
1603
 
1604
+ export const landedCostAdjustmentType = {
1605
+ CartTotal: 'CART_TOTAL',
1606
+ Item: 'ITEM',
1607
+ Shipping: 'SHIPPING',
1608
+ } as const;
1609
+
1610
+ export type LandedCostAdjustmentType =
1611
+ (typeof landedCostAdjustmentType)[keyof typeof landedCostAdjustmentType];
1569
1612
  export const landedCostCalculationMethod = {
1570
1613
  Dap: 'DAP',
1571
1614
  Ddp: 'DDP',
@@ -1605,6 +1648,7 @@ export type LandedCostFeeType =
1605
1648
  (typeof landedCostFeeType)[keyof typeof landedCostFeeType];
1606
1649
 
1607
1650
  export const landedCostGuaranteeCode = {
1651
+ InclusivePrice: 'INCLUSIVE_PRICE',
1608
1652
  NotApplicable: 'NOT_APPLICABLE',
1609
1653
  Zonos: 'ZONOS',
1610
1654
  } as const;
@@ -1628,6 +1672,14 @@ export const landedCostMethod = {
1628
1672
 
1629
1673
  export type LandedCostMethod =
1630
1674
  (typeof landedCostMethod)[keyof typeof landedCostMethod];
1675
+ export const landedCostQuoteType = {
1676
+ Auditing: 'AUDITING',
1677
+ Checkout: 'CHECKOUT',
1678
+ InclusivePrice: 'INCLUSIVE_PRICE',
1679
+ } as const;
1680
+
1681
+ export type LandedCostQuoteType =
1682
+ (typeof landedCostQuoteType)[keyof typeof landedCostQuoteType];
1631
1683
  export const landedCostTariffRate = {
1632
1684
  Exact: 'EXACT',
1633
1685
  Maximum: 'MAXIMUM',
@@ -1803,6 +1855,14 @@ export const notificationActiveStatus = {
1803
1855
  export type NotificationActiveStatus =
1804
1856
  (typeof notificationActiveStatus)[keyof typeof notificationActiveStatus];
1805
1857
 
1858
+ export const orderCompleteBillingMethod = {
1859
+ BillingDgs: 'BILLING_DGS',
1860
+ Legacy: 'LEGACY',
1861
+ } as const;
1862
+
1863
+ export type OrderCompleteBillingMethod =
1864
+ (typeof orderCompleteBillingMethod)[keyof typeof orderCompleteBillingMethod];
1865
+
1806
1866
  export const orderStatus = {
1807
1867
  Canceled: 'CANCELED',
1808
1868
  Completed: 'COMPLETED',
@@ -1821,6 +1881,14 @@ export const orderTransactionBillingMethod = {
1821
1881
  export type OrderTransactionBillingMethod =
1822
1882
  (typeof orderTransactionBillingMethod)[keyof typeof orderTransactionBillingMethod];
1823
1883
 
1884
+ export const organizationBusinessUnit = {
1885
+ Ecommerce: 'ECOMMERCE',
1886
+ SupplyChain: 'SUPPLY_CHAIN',
1887
+ } as const;
1888
+
1889
+ export type OrganizationBusinessUnit =
1890
+ (typeof organizationBusinessUnit)[keyof typeof organizationBusinessUnit];
1891
+
1824
1892
  export const organizationStatus = {
1825
1893
  Active: 'ACTIVE',
1826
1894
  Churned: 'CHURNED',
@@ -1859,6 +1927,13 @@ export const packageLocation = {
1859
1927
  export type PackageLocation =
1860
1928
  (typeof packageLocation)[keyof typeof packageLocation];
1861
1929
 
1930
+ export const packagingOptionDeleteAction = {
1931
+ Delete: 'DELETE',
1932
+ Disable: 'DISABLE',
1933
+ } as const;
1934
+
1935
+ export type PackagingOptionDeleteAction =
1936
+ (typeof packagingOptionDeleteAction)[keyof typeof packagingOptionDeleteAction];
1862
1937
  export const packagingOptionSource = {
1863
1938
  Default: 'DEFAULT',
1864
1939
  Dynamic: 'DYNAMIC',
@@ -1998,6 +2073,14 @@ export const shipmentAmountType = {
1998
2073
  export type ShipmentAmountType =
1999
2074
  (typeof shipmentAmountType)[keyof typeof shipmentAmountType];
2000
2075
 
2076
+ export const shipmentBatchStatus = {
2077
+ Closed: 'CLOSED',
2078
+ Open: 'OPEN',
2079
+ } as const;
2080
+
2081
+ export type ShipmentBatchStatus =
2082
+ (typeof shipmentBatchStatus)[keyof typeof shipmentBatchStatus];
2083
+
2001
2084
  export const shipmentCartonSpecialService = {
2002
2085
  Alcohol: 'ALCOHOL',
2003
2086
  BatteryInsideEquipment: 'BATTERY_INSIDE_EQUIPMENT',
@@ -2065,6 +2148,27 @@ export const stripeBillingFrequency = {
2065
2148
 
2066
2149
  export type StripeBillingFrequency =
2067
2150
  (typeof stripeBillingFrequency)[keyof typeof stripeBillingFrequency];
2151
+ export const stripeChargeStatus = {
2152
+ Failed: 'FAILED',
2153
+ Pending: 'PENDING',
2154
+ Succeeded: 'SUCCEEDED',
2155
+ } as const;
2156
+
2157
+ export type StripeChargeStatus =
2158
+ (typeof stripeChargeStatus)[keyof typeof stripeChargeStatus];
2159
+
2160
+ export const stripePaymentIntentStatus = {
2161
+ Canceled: 'CANCELED',
2162
+ Processing: 'PROCESSING',
2163
+ RequiresAction: 'REQUIRES_ACTION',
2164
+ RequiresCapture: 'REQUIRES_CAPTURE',
2165
+ RequiresConfirmation: 'REQUIRES_CONFIRMATION',
2166
+ RequiresPaymentMethod: 'REQUIRES_PAYMENT_METHOD',
2167
+ Succeeded: 'SUCCEEDED',
2168
+ } as const;
2169
+
2170
+ export type StripePaymentIntentStatus =
2171
+ (typeof stripePaymentIntentStatus)[keyof typeof stripePaymentIntentStatus];
2068
2172
  export const stripePriceBillingScheme = {
2069
2173
  PerUnit: 'PER_UNIT',
2070
2174
  Tiered: 'TIERED',
@@ -2214,8 +2318,12 @@ export const volumeUnitCode = {
2214
2318
  export type VolumeUnitCode =
2215
2319
  (typeof volumeUnitCode)[keyof typeof volumeUnitCode];
2216
2320
  export const wcoVersion = {
2321
+ Wco_1997: 'WCO_1997',
2322
+ Wco_2002: 'WCO_2002',
2323
+ Wco_2007: 'WCO_2007',
2217
2324
  Wco_2017: 'WCO_2017',
2218
2325
  Wco_2022: 'WCO_2022',
2326
+ Wco_2027: 'WCO_2027',
2219
2327
  } as const;
2220
2328
 
2221
2329
  export type WcoVersion = (typeof wcoVersion)[keyof typeof wcoVersion];
@@ -2297,6 +2405,11 @@ export type CalculateLandedCostMutation = {
2297
2405
  }> | null;
2298
2406
  itemCreateWorkflow: Array<{ amount: number; id: string }>;
2299
2407
  landedCostCalculateWorkflow: Array<{
2408
+ appliedAdjustments: Array<{
2409
+ amount: number;
2410
+ item: { amount: number } | null;
2411
+ type: LandedCostAdjustmentType | null;
2412
+ } | null> | null;
2300
2413
  deMinimis: Array<{ threshold: DeMinimisThreshold; type: DeMinimisType }>;
2301
2414
  duties: Array<{ amount: number; currencyCode: CurrencyCode }>;
2302
2415
  fees: Array<{ amount: number; currencyCode: CurrencyCode }>;
@@ -2305,8 +2418,8 @@ export type CalculateLandedCostMutation = {
2305
2418
  method: IncotermCode;
2306
2419
  shipmentRating: {
2307
2420
  amount: number;
2308
- currencyCode: CurrencyCode;
2309
2421
  displayName: string;
2422
+ currencyCode: CurrencyCode;
2310
2423
  id: string;
2311
2424
  maxTransitAt: string | null;
2312
2425
  minTransitAt: string | null;
@@ -2376,6 +2489,11 @@ export type CheckoutPresentmentFragment = {
2376
2489
  };
2377
2490
 
2378
2491
  export type LandedCostFragment = {
2492
+ appliedAdjustments: Array<{
2493
+ amount: number;
2494
+ item: { amount: number } | null;
2495
+ type: LandedCostAdjustmentType | null;
2496
+ } | null> | null;
2379
2497
  deMinimis: Array<{ threshold: DeMinimisThreshold; type: DeMinimisType }>;
2380
2498
  duties: Array<{ amount: number; currencyCode: CurrencyCode }>;
2381
2499
  fees: Array<{ amount: number; currencyCode: CurrencyCode }>;
@@ -2452,8 +2570,8 @@ export type BulkClassifyMutation = {
2452
2570
  }>;
2453
2571
  };
2454
2572
 
2455
- export type CheckoutSessionUpdateMutation = {
2456
- checkoutSessionUpdate: {
2573
+ export type CheckoutSessionCreateMutation = {
2574
+ checkoutSessionCreate: {
2457
2575
  clientSecret: string;
2458
2576
  id: string;
2459
2577
  landedCost: {
@@ -2492,7 +2610,7 @@ export type CheckoutSessionUpdateMutation = {
2492
2610
  };
2493
2611
  };
2494
2612
 
2495
- export type CheckoutSessionUpdateDetailsFragment = {
2613
+ export type CheckoutDetailsFragment = {
2496
2614
  clientSecret: string;
2497
2615
  id: string;
2498
2616
  landedCost: {
@@ -2546,14 +2664,18 @@ export type ExchangeRateCreateMutation = {
2546
2664
  } | null;
2547
2665
  };
2548
2666
 
2667
+ export type GetCheckoutSessionQuery = {
2668
+ checkoutSession: { order: { id: string } | null };
2669
+ };
2670
+
2549
2671
  export type ShippingZonesQuery = {
2550
2672
  shippingZones: Array<{
2551
2673
  countryCodes: Array<CountryCode> | null;
2552
2674
  } | null> | null;
2553
2675
  };
2554
2676
 
2555
- export type CheckoutSessionCreateMutation = {
2556
- checkoutSessionCreate: {
2677
+ export type CheckoutSessionUpdateMutation = {
2678
+ checkoutSessionUpdate: {
2557
2679
  clientSecret: string;
2558
2680
  id: string;
2559
2681
  landedCost: {
@@ -2592,7 +2714,7 @@ export type CheckoutSessionCreateMutation = {
2592
2714
  };
2593
2715
  };
2594
2716
 
2595
- export type CheckoutDetailsFragment = {
2717
+ export type CheckoutSessionUpdateDetailsFragment = {
2596
2718
  clientSecret: string;
2597
2719
  id: string;
2598
2720
  landedCost: {
@@ -2820,6 +2942,116 @@ export type OnlineStoreSettingsQuery = {
2820
2942
  onlineStoreSettings: { allowedDomains: Array<string> };
2821
2943
  };
2822
2944
 
2945
+ export type GetOrderQuery = {
2946
+ order: {
2947
+ accountOrderNumber: string | null;
2948
+ amountSubtotals: {
2949
+ duties: number;
2950
+ fees: number;
2951
+ items: number;
2952
+ shipping: number;
2953
+ taxes: number;
2954
+ variance: number;
2955
+ };
2956
+ createdAt: string;
2957
+ currencyCode: CurrencyCode;
2958
+ id: string;
2959
+ items: Array<{
2960
+ amount: number;
2961
+ attributes: Array<{
2962
+ key: string | null;
2963
+ value: string | null;
2964
+ } | null> | null;
2965
+ countryOfOrigin: CountryCode | null;
2966
+ description: string | null;
2967
+ hsCode: string | null;
2968
+ metadata: Array<{
2969
+ key: string | null;
2970
+ value: string | null;
2971
+ } | null> | null;
2972
+ name: string | null;
2973
+ productId: string;
2974
+ quantity: number;
2975
+ sku: string | null;
2976
+ }> | null;
2977
+ landedCosts: Array<{
2978
+ amountSubtotals: {
2979
+ duties: number;
2980
+ fees: number;
2981
+ items: number;
2982
+ landedCostTotal: number;
2983
+ shipping: number;
2984
+ taxes: number;
2985
+ } | null;
2986
+ appliedAdjustments: Array<{
2987
+ Adjustment: { amount: number } | null;
2988
+ amount: number;
2989
+ item: { amount: number; name: string | null } | null;
2990
+ } | null> | null;
2991
+ duties: Array<{
2992
+ exchangeRate: {
2993
+ rate: number;
2994
+ sourceCurrencyCode: CurrencyCode;
2995
+ targetCurrencyCode: CurrencyCode;
2996
+ } | null;
2997
+ }>;
2998
+ shipmentRating: {
2999
+ amount: number;
3000
+ currencyCode: CurrencyCode;
3001
+ details: Array<{
3002
+ amount: number;
3003
+ carrierCode: string;
3004
+ type: ShipmentAmountType;
3005
+ }> | null;
3006
+ displayName: string;
3007
+ id: string;
3008
+ serviceLevelCode: string;
3009
+ };
3010
+ taxId: {
3011
+ administrativeAreaCode: string | null;
3012
+ taxIdNumber: string;
3013
+ } | null;
3014
+ }> | null;
3015
+ metadata: Array<{ key: string; value: string } | null> | null;
3016
+ mode: Mode;
3017
+ parties: Array<{
3018
+ location: {
3019
+ administrativeArea: string | null;
3020
+ administrativeAreaCode: string | null;
3021
+ countryCode: CountryCode;
3022
+ line1: string | null;
3023
+ line2: string | null;
3024
+ line3: string | null;
3025
+ line4: string | null;
3026
+ locality: string | null;
3027
+ longitude: number | null;
3028
+ postalCode: string | null;
3029
+ } | null;
3030
+ person: {
3031
+ companyName: string | null;
3032
+ email: string | null;
3033
+ firstName: string | null;
3034
+ lastName: string | null;
3035
+ phone: string | null;
3036
+ } | null;
3037
+ type: PartyType | null;
3038
+ }> | null;
3039
+ root: {
3040
+ exchangeRates: Array<{
3041
+ rate: number;
3042
+ sourceCurrencyCode: CurrencyCode;
3043
+ targetCurrencyCode: CurrencyCode;
3044
+ type: ExchangeRateType;
3045
+ }>;
3046
+ } | null;
3047
+ status: OrderStatus;
3048
+ } | null;
3049
+ };
3050
+
3051
+ export type OrderUpdateAccountOrderNumberMutation = {
3052
+ orderUpdateAccountOrderNumber: { accountOrderNumber: string | null };
3053
+ };
3054
+
2823
3055
  export type SdkFunctionWrapper = <T>(
2824
3056
  action: (requestHeaders?: Record<string, string>) => Promise<T>,
2825
3057
  operationName: string,
@@ -2935,6 +3167,34 @@ export function getSdk(
2935
3167
  'query',
2936
3168
  );
2937
3169
  },
3170
+ GetCheckoutSession(
3171
+ variables?: { [x: string]: never },
3172
+ requestHeaders?: GraphQLClientRequestHeaders,
3173
+ ): Promise<GetCheckoutSessionQuery> {
3174
+ return withWrapper(
3175
+ wrappedRequestHeaders =>
3176
+ client.request<GetCheckoutSessionQuery>('', variables, {
3177
+ ...requestHeaders,
3178
+ ...wrappedRequestHeaders,
3179
+ }),
3180
+ 'GetCheckoutSession',
3181
+ 'query',
3182
+ );
3183
+ },
3184
+ GetOrder(
3185
+ variables?: { [x: string]: never },
3186
+ requestHeaders?: GraphQLClientRequestHeaders,
3187
+ ): Promise<GetOrderQuery> {
3188
+ return withWrapper(
3189
+ wrappedRequestHeaders =>
3190
+ client.request<GetOrderQuery>('', variables, {
3191
+ ...requestHeaders,
3192
+ ...wrappedRequestHeaders,
3193
+ }),
3194
+ 'GetOrder',
3195
+ 'query',
3196
+ );
3197
+ },
2938
3198
  OnlineStoreSettings(
2939
3199
  variables?: { [x: string]: never },
2940
3200
  requestHeaders?: GraphQLClientRequestHeaders,
@@ -2949,6 +3209,20 @@ export function getSdk(
2949
3209
  'query',
2950
3210
  );
2951
3211
  },
3212
+ OrderUpdateAccountOrderNumber(
3213
+ variables?: { [x: string]: never },
3214
+ requestHeaders?: GraphQLClientRequestHeaders,
3215
+ ): Promise<OrderUpdateAccountOrderNumberMutation> {
3216
+ return withWrapper(
3217
+ wrappedRequestHeaders =>
3218
+ client.request<OrderUpdateAccountOrderNumberMutation>('', variables, {
3219
+ ...requestHeaders,
3220
+ ...wrappedRequestHeaders,
3221
+ }),
3222
+ 'OrderUpdateAccountOrderNumber',
3223
+ 'mutation',
3224
+ );
3225
+ },
2952
3226
  ShippingZones(
2953
3227
  variables?: { [x: string]: never },
2954
3228
  requestHeaders?: GraphQLClientRequestHeaders,