@zonos/elements 1.3.179 → 1.3.181

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 (88) hide show
  1. package/dist/cjs/{cart-29feab56.js → cart-dcd068d1.js} +18 -3
  2. package/dist/cjs/index.cjs.js +8 -7
  3. package/dist/cjs/{paypal-b426662c.js → paypal-4bbc4779.js} +2 -2
  4. package/dist/cjs/zonos-address_7.cjs.entry.js +4 -3
  5. package/dist/cjs/zonos-cart-items_13.cjs.entry.js +2 -2
  6. package/dist/cjs/zonos-checkout.cjs.entry.js +2 -2
  7. package/dist/cjs/zonos-controller.cjs.entry.js +1 -1
  8. package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
  9. package/dist/cjs/zonos-country-select_4.cjs.entry.js +1 -1
  10. package/dist/cjs/zonos-empty-state-payment_4.cjs.entry.js +2 -2
  11. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +1 -1
  12. package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
  13. package/dist/cjs/zonos-language-select_2.cjs.entry.js +1 -1
  14. package/dist/collection/components/store/checkout/cart.js +1 -0
  15. package/dist/collection/components/store/checkout/paypal.js +1 -1
  16. package/dist/collection/components/stripe/zonos-address/zonos-address.js +3 -2
  17. package/dist/collection/components/utils/api/trackConversionEvent.js +18 -3
  18. package/dist/collection/scripts/_zonosBase.js +1 -0
  19. package/dist/collection/types/generated/graphql.internal.types.js +27 -0
  20. package/dist/esm/{cart-7e26e0bc.js → cart-d2c86d90.js} +18 -3
  21. package/dist/esm/index.js +8 -7
  22. package/dist/esm/{paypal-f365b438.js → paypal-5c0d6407.js} +2 -2
  23. package/dist/esm/zonos-address_7.entry.js +4 -3
  24. package/dist/esm/zonos-cart-items_13.entry.js +2 -2
  25. package/dist/esm/zonos-checkout.entry.js +2 -2
  26. package/dist/esm/zonos-controller.entry.js +1 -1
  27. package/dist/esm/zonos-country-flag.entry.js +1 -1
  28. package/dist/esm/zonos-country-select_4.entry.js +1 -1
  29. package/dist/esm/zonos-empty-state-payment_4.entry.js +2 -2
  30. package/dist/esm/zonos-hello-dialog.entry.js +1 -1
  31. package/dist/esm/zonos-hello.entry.js +1 -1
  32. package/dist/esm/zonos-language-select_2.entry.js +1 -1
  33. package/dist/esm-es5/{cart-7e26e0bc.js → cart-d2c86d90.js} +1 -1
  34. package/dist/esm-es5/index.js +1 -1
  35. package/dist/esm-es5/{paypal-f365b438.js → paypal-5c0d6407.js} +2 -2
  36. package/dist/esm-es5/zonos-address_7.entry.js +1 -1
  37. package/dist/esm-es5/zonos-cart-items_13.entry.js +1 -1
  38. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  39. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  40. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  41. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  42. package/dist/esm-es5/zonos-empty-state-payment_4.entry.js +1 -1
  43. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  44. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  45. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  46. package/dist/scripts/index.d.ts +11 -0
  47. package/dist/scripts/index.js +1 -1
  48. package/dist/scripts/loadZonos.js +1 -1
  49. package/dist/scripts/zonos.js +1 -1
  50. package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
  51. package/dist/types/scripts/_zonosBase.d.ts +11 -0
  52. package/dist/types/types/generated/graphql.frontend.types.d.ts +1 -1
  53. package/dist/types/types/generated/graphql.frontend.types.ts +1 -1
  54. package/dist/types/types/generated/graphql.internal.types.d.ts +192 -35
  55. package/dist/types/types/generated/graphql.internal.types.ts +200 -30
  56. package/dist/zonos-elements/assets/ChevronUpIcon.svg +1 -23
  57. package/dist/zonos-elements/index.esm.js +1 -1
  58. package/dist/zonos-elements/{p-24fd72f3.entry.js → p-09fbafe4.entry.js} +1 -1
  59. package/dist/zonos-elements/{p-c8b106a5.js → p-18ec705b.js} +1 -1
  60. package/dist/zonos-elements/{p-dacb8c7c.entry.js → p-1cebd67c.entry.js} +1 -1
  61. package/dist/zonos-elements/p-1ea1376e.system.entry.js +1 -0
  62. package/dist/zonos-elements/{p-c4ab09cd.entry.js → p-27ce063e.entry.js} +1 -1
  63. package/dist/zonos-elements/{p-4e6c5167.system.entry.js → p-29d9bc4a.system.entry.js} +1 -1
  64. package/dist/zonos-elements/p-2ad5692f.entry.js +1 -0
  65. package/dist/zonos-elements/{p-df027c13.system.entry.js → p-33de55b8.system.entry.js} +1 -1
  66. package/dist/zonos-elements/{p-52ab67d9.system.entry.js → p-42abd4dd.system.entry.js} +1 -1
  67. package/dist/zonos-elements/{p-c831bfcd.system.entry.js → p-4661c29c.system.entry.js} +1 -1
  68. package/dist/zonos-elements/p-46f6e5e9.system.js +1 -1
  69. package/dist/zonos-elements/{p-06fb8a1d.entry.js → p-5a71d418.entry.js} +1 -1
  70. package/dist/zonos-elements/{p-9165c2c1.system.entry.js → p-5be6b837.system.entry.js} +1 -1
  71. package/dist/zonos-elements/{p-5cccf332.entry.js → p-5c695748.entry.js} +1 -1
  72. package/dist/zonos-elements/{p-ace74aa3.system.entry.js → p-5e1a782a.system.entry.js} +1 -1
  73. package/dist/zonos-elements/{p-797c2e00.system.entry.js → p-753811b7.system.entry.js} +1 -1
  74. package/dist/zonos-elements/{p-e21e93e9.system.js → p-91bc2187.system.js} +1 -1
  75. package/dist/zonos-elements/{p-215afb3c.entry.js → p-95921a43.entry.js} +1 -1
  76. package/dist/zonos-elements/{p-5cf886fc.entry.js → p-99f17671.entry.js} +1 -1
  77. package/dist/zonos-elements/{p-9719a7ef.system.js → p-99f50bf3.system.js} +2 -2
  78. package/dist/zonos-elements/{p-755f1a87.system.entry.js → p-9d014d94.system.entry.js} +1 -1
  79. package/dist/zonos-elements/{p-590f4df3.system.entry.js → p-a2368c1c.system.entry.js} +1 -1
  80. package/dist/zonos-elements/{p-3b864e9c.js → p-a43fba41.js} +2 -2
  81. package/dist/zonos-elements/p-c4d519cf.system.js +1 -0
  82. package/dist/zonos-elements/{p-98715a5b.entry.js → p-e42e0cdb.entry.js} +1 -1
  83. package/dist/zonos-elements/{p-960140ed.entry.js → p-ff8d9f3a.entry.js} +1 -1
  84. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  85. package/package.json +1 -1
  86. package/dist/zonos-elements/p-8f9fa09a.system.entry.js +0 -1
  87. package/dist/zonos-elements/p-92bae5f5.system.js +0 -1
  88. package/dist/zonos-elements/p-e5102a1d.entry.js +0 -1
@@ -7,6 +7,11 @@ import type { CartCheckoutResult, NormalizedTempCart } from "../types/checkout/a
7
7
  import { type CheckoutConfig } from "../types/checkout/CheckoutConfig";
8
8
  import type { CountryCode, CurrencyCode, PaypalMockResponse } from "../types/generated/graphql.internal.types";
9
9
  import type { HelloConfig } from "../types/hello/HelloConfig";
10
+ type TrackEventLog = {
11
+ checkoutSessionId: string | null;
12
+ eventCreated: number;
13
+ eventName: string;
14
+ };
10
15
  /**
11
16
  * Currency converter function to be used in Hello and Checkout
12
17
  * @note don't modify the element directly in this function, otherwise it might cause unexpected behavior like an infinite loop
@@ -218,6 +223,10 @@ export interface Zonos {
218
223
  storeId: number;
219
224
  /** Stripe instance */
220
225
  stripe: Stripe;
226
+ /**
227
+ * Logs of tracking events
228
+ */
229
+ trackEventLogs: TrackEventLog[];
221
230
  version: string;
222
231
  zonosApiKey?: string;
223
232
  /**
@@ -259,6 +268,7 @@ export declare abstract class Zonos {
259
268
  static isNpm: boolean;
260
269
  static zonosQaUrl: string | null;
261
270
  static zonosQaUrlApi: string | null;
271
+ static trackEventLogs: TrackEventLog[];
262
272
  static version: string;
263
273
  static modeAlerted: boolean;
264
274
  static cartData: NormalizedTempCart | null;
@@ -295,3 +305,4 @@ export declare abstract class Zonos {
295
305
  static setupGoogleFont: (fontFamily: string) => void;
296
306
  static injectSupportGoogleFont: (fontUrl: string) => void;
297
307
  }
308
+ export {};
@@ -559,7 +559,7 @@ export type FailToGetQuoteErrorsQuery = {
559
559
  };
560
560
  export type LocaleCountryMessagesQuery = {
561
561
  locale_countryCodesPage: Array<{
562
- countryCodes: Array<string> | null;
562
+ countryCodes: Array<string>;
563
563
  countryCodesPageMessageLinks: Array<{
564
564
  id: number;
565
565
  message: {
@@ -567,7 +567,7 @@ export type FailToGetQuoteErrorsQuery = {
567
567
 
568
568
  export type LocaleCountryMessagesQuery = {
569
569
  locale_countryCodesPage: Array<{
570
- countryCodes: Array<string> | null;
570
+ countryCodes: Array<string>;
571
571
  countryCodesPageMessageLinks: Array<{
572
572
  id: number;
573
573
  message: {
@@ -477,6 +477,11 @@ export declare const checkoutSuccessBehavior: {
477
477
  readonly ZonosSuccessPage: "ZONOS_SUCCESS_PAGE";
478
478
  };
479
479
  export type CheckoutSuccessBehavior = (typeof checkoutSuccessBehavior)[keyof typeof checkoutSuccessBehavior];
480
+ export declare const checkoutVarianceTestStatus: {
481
+ readonly Active: "ACTIVE";
482
+ readonly Inactive: "INACTIVE";
483
+ };
484
+ export type CheckoutVarianceTestStatus = (typeof checkoutVarianceTestStatus)[keyof typeof checkoutVarianceTestStatus];
480
485
  export declare const checkoutVisibilityStatus: {
481
486
  readonly Disabled: "DISABLED";
482
487
  readonly Enabled: "ENABLED";
@@ -1587,6 +1592,11 @@ export declare const fulfillmentCenterType: {
1587
1592
  readonly Standard: "STANDARD";
1588
1593
  };
1589
1594
  export type FulfillmentCenterType = (typeof fulfillmentCenterType)[keyof typeof fulfillmentCenterType];
1595
+ export declare const generalAdjustmentRecordCreateType: {
1596
+ readonly ConnectAccountAdjustment: "CONNECT_ACCOUNT_ADJUSTMENT";
1597
+ readonly InvoiceLineRecord: "INVOICE_LINE_RECORD";
1598
+ };
1599
+ export type GeneralAdjustmentRecordCreateType = (typeof generalAdjustmentRecordCreateType)[keyof typeof generalAdjustmentRecordCreateType];
1590
1600
  export declare const helloCurrencyBehavior: {
1591
1601
  readonly Disabled: "DISABLED";
1592
1602
  readonly Enabled: "ENABLED";
@@ -1807,8 +1817,11 @@ export declare const invoiceStatus: {
1807
1817
  };
1808
1818
  export type InvoiceStatus = (typeof invoiceStatus)[keyof typeof invoiceStatus];
1809
1819
  export declare const itemAmountTargetType: {
1820
+ readonly BillingCompany: "BILLING_COMPANY";
1821
+ readonly ItemProvided: "ITEM_PROVIDED";
1810
1822
  readonly MerchantBase: "MERCHANT_BASE";
1811
1823
  readonly MerchantProvided: "MERCHANT_PROVIDED";
1824
+ readonly MerchantSettled: "MERCHANT_SETTLED";
1812
1825
  readonly ShopperPresented: "SHOPPER_PRESENTED";
1813
1826
  readonly ZonosBase: "ZONOS_BASE";
1814
1827
  };
@@ -2057,6 +2070,11 @@ export declare const landedCostMethod: {
2057
2070
  readonly DdpPreferred: "DDP_PREFERRED";
2058
2071
  };
2059
2072
  export type LandedCostMethod = (typeof landedCostMethod)[keyof typeof landedCostMethod];
2073
+ export declare const landedCostPaymentProcessor: {
2074
+ readonly Paypal: "PAYPAL";
2075
+ readonly Stripe: "STRIPE";
2076
+ };
2077
+ export type LandedCostPaymentProcessor = (typeof landedCostPaymentProcessor)[keyof typeof landedCostPaymentProcessor];
2060
2078
  export declare const landedCostQuoteType: {
2061
2079
  readonly Api: "API";
2062
2080
  readonly Auditing: "AUDITING";
@@ -2289,6 +2307,8 @@ export declare const orderBillingAdjustmentFeeType: {
2289
2307
  readonly DutyTaxFee: "DUTY_TAX_FEE";
2290
2308
  readonly FxFee: "FX_FEE";
2291
2309
  readonly FxFeeNonRefundedAmounts: "FX_FEE_NON_REFUNDED_AMOUNTS";
2310
+ readonly GuaranteeOrder: "GUARANTEE_ORDER";
2311
+ readonly GuaranteePercent: "GUARANTEE_PERCENT";
2292
2312
  readonly InclusivePriceAdjustment: "INCLUSIVE_PRICE_ADJUSTMENT";
2293
2313
  readonly InclusivePricing: "INCLUSIVE_PRICING";
2294
2314
  readonly Item: "ITEM";
@@ -2636,6 +2656,7 @@ export declare const shipmentAmountType: {
2636
2656
  readonly FuelSurcharge: "FUEL_SURCHARGE";
2637
2657
  readonly Insurance: "INSURANCE";
2638
2658
  readonly PublishedRate: "PUBLISHED_RATE";
2659
+ readonly RateChart: "RATE_CHART";
2639
2660
  readonly Surcharge: "SURCHARGE";
2640
2661
  };
2641
2662
  export type ShipmentAmountType = (typeof shipmentAmountType)[keyof typeof shipmentAmountType];
@@ -2656,8 +2677,11 @@ export declare const shipmentConsolidationStatus: {
2656
2677
  };
2657
2678
  export type ShipmentConsolidationStatus = (typeof shipmentConsolidationStatus)[keyof typeof shipmentConsolidationStatus];
2658
2679
  export declare const shipmentRatingAmountTargetType: {
2680
+ readonly BillingCompany: "BILLING_COMPANY";
2659
2681
  readonly MerchantBase: "MERCHANT_BASE";
2660
2682
  readonly MerchantProvided: "MERCHANT_PROVIDED";
2683
+ readonly MerchantSettled: "MERCHANT_SETTLED";
2684
+ readonly ShipmentRatingProvided: "SHIPMENT_RATING_PROVIDED";
2661
2685
  readonly ShopperPresented: "SHOPPER_PRESENTED";
2662
2686
  readonly ZonosBase: "ZONOS_BASE";
2663
2687
  };
@@ -3046,6 +3070,168 @@ export declare const zonosAttribution: {
3046
3070
  readonly Enabled: "ENABLED";
3047
3071
  };
3048
3072
  export type ZonosAttribution = (typeof zonosAttribution)[keyof typeof zonosAttribution];
3073
+ export type CartCreateMutation = {
3074
+ cartCreate: {
3075
+ adjustments: Array<{
3076
+ amount: number;
3077
+ currencyCode: CurrencyCode;
3078
+ description: string | null;
3079
+ productId: string | null;
3080
+ sku: string | null;
3081
+ type: CartAdjustmentType;
3082
+ }>;
3083
+ id: string;
3084
+ items: Array<{
3085
+ amount: number;
3086
+ attributes: Array<{
3087
+ key: string | null;
3088
+ value: string | null;
3089
+ } | null> | null;
3090
+ currencyCode: CurrencyCode;
3091
+ description: string | null;
3092
+ id: string;
3093
+ imageUrl: string | null;
3094
+ metadata: Array<{
3095
+ key: string | null;
3096
+ value: string | null;
3097
+ } | null> | null;
3098
+ name: string | null;
3099
+ productId: string;
3100
+ quantity: number;
3101
+ restriction: {
3102
+ action: RestrictedItemAction;
3103
+ reason: string;
3104
+ } | null;
3105
+ sku: string | null;
3106
+ }>;
3107
+ metadata: Array<{
3108
+ key: string;
3109
+ value: string;
3110
+ }>;
3111
+ organizationId: string;
3112
+ };
3113
+ };
3114
+ export type CartUpdateMutation = {
3115
+ cartUpdate: {
3116
+ adjustments: Array<{
3117
+ amount: number;
3118
+ currencyCode: CurrencyCode;
3119
+ description: string | null;
3120
+ productId: string | null;
3121
+ sku: string | null;
3122
+ type: CartAdjustmentType;
3123
+ }>;
3124
+ id: string;
3125
+ items: Array<{
3126
+ amount: number;
3127
+ attributes: Array<{
3128
+ key: string | null;
3129
+ value: string | null;
3130
+ } | null> | null;
3131
+ currencyCode: CurrencyCode;
3132
+ description: string | null;
3133
+ id: string;
3134
+ imageUrl: string | null;
3135
+ metadata: Array<{
3136
+ key: string | null;
3137
+ value: string | null;
3138
+ } | null> | null;
3139
+ name: string | null;
3140
+ productId: string;
3141
+ quantity: number;
3142
+ restriction: {
3143
+ action: RestrictedItemAction;
3144
+ reason: string;
3145
+ } | null;
3146
+ sku: string | null;
3147
+ }>;
3148
+ metadata: Array<{
3149
+ key: string;
3150
+ value: string;
3151
+ }>;
3152
+ organizationId: string;
3153
+ };
3154
+ };
3155
+ export type CartByIdQuery = {
3156
+ cart: {
3157
+ adjustments: Array<{
3158
+ amount: number;
3159
+ currencyCode: CurrencyCode;
3160
+ description: string | null;
3161
+ productId: string | null;
3162
+ sku: string | null;
3163
+ type: CartAdjustmentType;
3164
+ }>;
3165
+ id: string;
3166
+ items: Array<{
3167
+ amount: number;
3168
+ attributes: Array<{
3169
+ key: string | null;
3170
+ value: string | null;
3171
+ } | null> | null;
3172
+ currencyCode: CurrencyCode;
3173
+ description: string | null;
3174
+ id: string;
3175
+ imageUrl: string | null;
3176
+ metadata: Array<{
3177
+ key: string | null;
3178
+ value: string | null;
3179
+ } | null> | null;
3180
+ name: string | null;
3181
+ productId: string;
3182
+ quantity: number;
3183
+ restriction: {
3184
+ action: RestrictedItemAction;
3185
+ reason: string;
3186
+ } | null;
3187
+ sku: string | null;
3188
+ }>;
3189
+ metadata: Array<{
3190
+ key: string;
3191
+ value: string;
3192
+ }>;
3193
+ organizationId: string;
3194
+ } | null;
3195
+ };
3196
+ export type CartFragmentFragment = {
3197
+ adjustments: Array<{
3198
+ amount: number;
3199
+ currencyCode: CurrencyCode;
3200
+ description: string | null;
3201
+ productId: string | null;
3202
+ sku: string | null;
3203
+ type: CartAdjustmentType;
3204
+ }>;
3205
+ id: string;
3206
+ items: Array<{
3207
+ amount: number;
3208
+ attributes: Array<{
3209
+ key: string | null;
3210
+ value: string | null;
3211
+ } | null> | null;
3212
+ currencyCode: CurrencyCode;
3213
+ description: string | null;
3214
+ id: string;
3215
+ imageUrl: string | null;
3216
+ metadata: Array<{
3217
+ key: string | null;
3218
+ value: string | null;
3219
+ } | null> | null;
3220
+ name: string | null;
3221
+ productId: string;
3222
+ quantity: number;
3223
+ restriction: {
3224
+ action: RestrictedItemAction;
3225
+ reason: string;
3226
+ } | null;
3227
+ sku: string | null;
3228
+ }>;
3229
+ metadata: Array<{
3230
+ key: string;
3231
+ value: string;
3232
+ }>;
3233
+ organizationId: string;
3234
+ };
3049
3235
  export type OrganizationQuery = {
3050
3236
  organization: {
3051
3237
  id: string;
@@ -4452,41 +4638,6 @@ export type GetCartOrganizationInfoQuery = {
4452
4638
  } | null;
4453
4639
  } | null;
4454
4640
  };
4455
- export type CartCreateMutation = {
4456
- cartCreate: {
4457
- adjustments: Array<{
4458
- amount: number;
4459
- currencyCode: CurrencyCode;
4460
- description: string | null;
4461
- productId: string | null;
4462
- sku: string | null;
4463
- type: CartAdjustmentType;
4464
- }>;
4465
- id: string;
4466
- items: Array<{
4467
- amount: number;
4468
- attributes: Array<{
4469
- key: string | null;
4470
- value: string | null;
4471
- } | null> | null;
4472
- description: string | null;
4473
- id: string;
4474
- imageUrl: string | null;
4475
- name: string | null;
4476
- quantity: number;
4477
- restriction: {
4478
- action: RestrictedItemAction;
4479
- reason: string;
4480
- } | null;
4481
- sku: string | null;
4482
- }>;
4483
- metadata: Array<{
4484
- key: string;
4485
- value: string;
4486
- }>;
4487
- organizationId: string;
4488
- };
4489
- };
4490
4641
  export type SdkFunctionWrapper = <T>(action: (requestHeaders?: Record<string, string>) => Promise<T>, operationName: string, operationType?: string) => Promise<T>;
4491
4642
  export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): {
4492
4643
  activeDiscounts(variables?: {
@@ -4504,6 +4655,9 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
4504
4655
  cart(variables?: {
4505
4656
  [x: string]: never;
4506
4657
  }, requestHeaders?: GraphQLClientRequestHeaders): Promise<CartQuery>;
4658
+ cartById(variables?: {
4659
+ [x: string]: never;
4660
+ }, requestHeaders?: GraphQLClientRequestHeaders): Promise<CartByIdQuery>;
4507
4661
  cartCalculateLandedCost(variables?: {
4508
4662
  [x: string]: never;
4509
4663
  }, requestHeaders?: GraphQLClientRequestHeaders): Promise<CartCalculateLandedCostMutation>;
@@ -4513,6 +4667,9 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
4513
4667
  cartCreate(variables?: {
4514
4668
  [x: string]: never;
4515
4669
  }, requestHeaders?: GraphQLClientRequestHeaders): Promise<CartCreateMutation>;
4670
+ cartUpdate(variables?: {
4671
+ [x: string]: never;
4672
+ }, requestHeaders?: GraphQLClientRequestHeaders): Promise<CartUpdateMutation>;
4516
4673
  checkItemRestrictions(variables?: {
4517
4674
  [x: string]: never;
4518
4675
  }, requestHeaders?: GraphQLClientRequestHeaders): Promise<CheckItemRestrictionsMutation>;
@@ -601,6 +601,14 @@ export const checkoutSuccessBehavior = {
601
601
 
602
602
  export type CheckoutSuccessBehavior =
603
603
  (typeof checkoutSuccessBehavior)[keyof typeof checkoutSuccessBehavior];
604
+
605
+ export const checkoutVarianceTestStatus = {
606
+ Active: 'ACTIVE',
607
+ Inactive: 'INACTIVE',
608
+ } as const;
609
+
610
+ export type CheckoutVarianceTestStatus =
611
+ (typeof checkoutVarianceTestStatus)[keyof typeof checkoutVarianceTestStatus];
604
612
  export const checkoutVisibilityStatus = {
605
613
  Disabled: 'DISABLED',
606
614
  Enabled: 'ENABLED',
@@ -1869,6 +1877,14 @@ export const fulfillmentCenterType = {
1869
1877
  export type FulfillmentCenterType =
1870
1878
  (typeof fulfillmentCenterType)[keyof typeof fulfillmentCenterType];
1871
1879
 
1880
+ export const generalAdjustmentRecordCreateType = {
1881
+ ConnectAccountAdjustment: 'CONNECT_ACCOUNT_ADJUSTMENT',
1882
+ InvoiceLineRecord: 'INVOICE_LINE_RECORD',
1883
+ } as const;
1884
+
1885
+ export type GeneralAdjustmentRecordCreateType =
1886
+ (typeof generalAdjustmentRecordCreateType)[keyof typeof generalAdjustmentRecordCreateType];
1887
+
1872
1888
  export const helloCurrencyBehavior = {
1873
1889
  Disabled: 'DISABLED',
1874
1890
  Enabled: 'ENABLED',
@@ -2152,8 +2168,11 @@ export const invoiceStatus = {
2152
2168
 
2153
2169
  export type InvoiceStatus = (typeof invoiceStatus)[keyof typeof invoiceStatus];
2154
2170
  export const itemAmountTargetType = {
2171
+ BillingCompany: 'BILLING_COMPANY',
2172
+ ItemProvided: 'ITEM_PROVIDED',
2155
2173
  MerchantBase: 'MERCHANT_BASE',
2156
2174
  MerchantProvided: 'MERCHANT_PROVIDED',
2175
+ MerchantSettled: 'MERCHANT_SETTLED',
2157
2176
  ShopperPresented: 'SHOPPER_PRESENTED',
2158
2177
  ZonosBase: 'ZONOS_BASE',
2159
2178
  } as const;
@@ -2389,6 +2408,7 @@ export const landedCostAdjustmentType = {
2389
2408
 
2390
2409
  export type LandedCostAdjustmentType =
2391
2410
  (typeof landedCostAdjustmentType)[keyof typeof landedCostAdjustmentType];
2411
+
2392
2412
  export const landedCostBillingPartyType = {
2393
2413
  Customer: 'CUSTOMER',
2394
2414
  Merchant: 'MERCHANT',
@@ -2476,6 +2496,13 @@ export const landedCostMethod = {
2476
2496
 
2477
2497
  export type LandedCostMethod =
2478
2498
  (typeof landedCostMethod)[keyof typeof landedCostMethod];
2499
+ export const landedCostPaymentProcessor = {
2500
+ Paypal: 'PAYPAL',
2501
+ Stripe: 'STRIPE',
2502
+ } as const;
2503
+
2504
+ export type LandedCostPaymentProcessor =
2505
+ (typeof landedCostPaymentProcessor)[keyof typeof landedCostPaymentProcessor];
2479
2506
  export const landedCostQuoteType = {
2480
2507
  Api: 'API',
2481
2508
  Auditing: 'AUDITING',
@@ -2752,6 +2779,8 @@ export const orderBillingAdjustmentFeeType = {
2752
2779
  DutyTaxFee: 'DUTY_TAX_FEE',
2753
2780
  FxFee: 'FX_FEE',
2754
2781
  FxFeeNonRefundedAmounts: 'FX_FEE_NON_REFUNDED_AMOUNTS',
2782
+ GuaranteeOrder: 'GUARANTEE_ORDER',
2783
+ GuaranteePercent: 'GUARANTEE_PERCENT',
2755
2784
  InclusivePriceAdjustment: 'INCLUSIVE_PRICE_ADJUSTMENT',
2756
2785
  InclusivePricing: 'INCLUSIVE_PRICING',
2757
2786
  Item: 'ITEM',
@@ -3216,6 +3245,7 @@ export const shipmentAmountType = {
3216
3245
  FuelSurcharge: 'FUEL_SURCHARGE',
3217
3246
  Insurance: 'INSURANCE',
3218
3247
  PublishedRate: 'PUBLISHED_RATE',
3248
+ RateChart: 'RATE_CHART',
3219
3249
  Surcharge: 'SURCHARGE',
3220
3250
  } as const;
3221
3251
 
@@ -3245,8 +3275,11 @@ export type ShipmentConsolidationStatus =
3245
3275
  (typeof shipmentConsolidationStatus)[keyof typeof shipmentConsolidationStatus];
3246
3276
 
3247
3277
  export const shipmentRatingAmountTargetType = {
3278
+ BillingCompany: 'BILLING_COMPANY',
3248
3279
  MerchantBase: 'MERCHANT_BASE',
3249
3280
  MerchantProvided: 'MERCHANT_PROVIDED',
3281
+ MerchantSettled: 'MERCHANT_SETTLED',
3282
+ ShipmentRatingProvided: 'SHIPMENT_RATING_PROVIDED',
3250
3283
  ShopperPresented: 'SHOPPER_PRESENTED',
3251
3284
  ZonosBase: 'ZONOS_BASE',
3252
3285
  } as const;
@@ -3743,6 +3776,145 @@ export const zonosAttribution = {
3743
3776
  export type ZonosAttribution =
3744
3777
  (typeof zonosAttribution)[keyof typeof zonosAttribution];
3745
3778
 
3779
+ export type CartCreateMutation = {
3780
+ cartCreate: {
3781
+ adjustments: Array<{
3782
+ amount: number;
3783
+ currencyCode: CurrencyCode;
3784
+ description: string | null;
3785
+ productId: string | null;
3786
+ sku: string | null;
3787
+ type: CartAdjustmentType;
3788
+ }>;
3789
+ id: string;
3790
+ items: Array<{
3791
+ amount: number;
3792
+ attributes: Array<{
3793
+ key: string | null;
3794
+ value: string | null;
3795
+ } | null> | null;
3796
+ currencyCode: CurrencyCode;
3797
+ description: string | null;
3798
+ id: string;
3799
+ imageUrl: string | null;
3800
+ metadata: Array<{
3801
+ key: string | null;
3802
+ value: string | null;
3803
+ } | null> | null;
3804
+ name: string | null;
3805
+ productId: string;
3806
+ quantity: number;
3807
+ restriction: { action: RestrictedItemAction; reason: string } | null;
3808
+ sku: string | null;
3809
+ }>;
3810
+ metadata: Array<{ key: string; value: string }>;
3811
+ organizationId: string;
3812
+ };
3813
+ };
3814
+
3815
+ export type CartUpdateMutation = {
3816
+ cartUpdate: {
3817
+ adjustments: Array<{
3818
+ amount: number;
3819
+ currencyCode: CurrencyCode;
3820
+ description: string | null;
3821
+ productId: string | null;
3822
+ sku: string | null;
3823
+ type: CartAdjustmentType;
3824
+ }>;
3825
+ id: string;
3826
+ items: Array<{
3827
+ amount: number;
3828
+ attributes: Array<{
3829
+ key: string | null;
3830
+ value: string | null;
3831
+ } | null> | null;
3832
+ currencyCode: CurrencyCode;
3833
+ description: string | null;
3834
+ id: string;
3835
+ imageUrl: string | null;
3836
+ metadata: Array<{
3837
+ key: string | null;
3838
+ value: string | null;
3839
+ } | null> | null;
3840
+ name: string | null;
3841
+ productId: string;
3842
+ quantity: number;
3843
+ restriction: { action: RestrictedItemAction; reason: string } | null;
3844
+ sku: string | null;
3845
+ }>;
3846
+ metadata: Array<{ key: string; value: string }>;
3847
+ organizationId: string;
3848
+ };
3849
+ };
3850
+
3851
+ export type CartByIdQuery = {
3852
+ cart: {
3853
+ adjustments: Array<{
3854
+ amount: number;
3855
+ currencyCode: CurrencyCode;
3856
+ description: string | null;
3857
+ productId: string | null;
3858
+ sku: string | null;
3859
+ type: CartAdjustmentType;
3860
+ }>;
3861
+ id: string;
3862
+ items: Array<{
3863
+ amount: number;
3864
+ attributes: Array<{
3865
+ key: string | null;
3866
+ value: string | null;
3867
+ } | null> | null;
3868
+ currencyCode: CurrencyCode;
3869
+ description: string | null;
3870
+ id: string;
3871
+ imageUrl: string | null;
3872
+ metadata: Array<{
3873
+ key: string | null;
3874
+ value: string | null;
3875
+ } | null> | null;
3876
+ name: string | null;
3877
+ productId: string;
3878
+ quantity: number;
3879
+ restriction: { action: RestrictedItemAction; reason: string } | null;
3880
+ sku: string | null;
3881
+ }>;
3882
+ metadata: Array<{ key: string; value: string }>;
3883
+ organizationId: string;
3884
+ } | null;
3885
+ };
3886
+
3887
+ export type CartFragmentFragment = {
3888
+ adjustments: Array<{
3889
+ amount: number;
3890
+ currencyCode: CurrencyCode;
3891
+ description: string | null;
3892
+ productId: string | null;
3893
+ sku: string | null;
3894
+ type: CartAdjustmentType;
3895
+ }>;
3896
+ id: string;
3897
+ items: Array<{
3898
+ amount: number;
3899
+ attributes: Array<{
3900
+ key: string | null;
3901
+ value: string | null;
3902
+ } | null> | null;
3903
+ currencyCode: CurrencyCode;
3904
+ description: string | null;
3905
+ id: string;
3906
+ imageUrl: string | null;
3907
+ metadata: Array<{ key: string | null; value: string | null } | null> | null;
3908
+ name: string | null;
3909
+ productId: string;
3910
+ quantity: number;
3911
+ restriction: { action: RestrictedItemAction; reason: string } | null;
3912
+ sku: string | null;
3913
+ }>;
3914
+ metadata: Array<{ key: string; value: string }>;
3915
+ organizationId: string;
3916
+ };
3917
+
3746
3918
  export type OrganizationQuery = {
3747
3919
  organization: {
3748
3920
  id: string;
@@ -5019,36 +5191,6 @@ export type GetCartOrganizationInfoQuery = {
5019
5191
  organization: { references: { storeId: number | null } | null } | null;
5020
5192
  };
5021
5193
 
5022
- export type CartCreateMutation = {
5023
- cartCreate: {
5024
- adjustments: Array<{
5025
- amount: number;
5026
- currencyCode: CurrencyCode;
5027
- description: string | null;
5028
- productId: string | null;
5029
- sku: string | null;
5030
- type: CartAdjustmentType;
5031
- }>;
5032
- id: string;
5033
- items: Array<{
5034
- amount: number;
5035
- attributes: Array<{
5036
- key: string | null;
5037
- value: string | null;
5038
- } | null> | null;
5039
- description: string | null;
5040
- id: string;
5041
- imageUrl: string | null;
5042
- name: string | null;
5043
- quantity: number;
5044
- restriction: { action: RestrictedItemAction; reason: string } | null;
5045
- sku: string | null;
5046
- }>;
5047
- metadata: Array<{ key: string; value: string }>;
5048
- organizationId: string;
5049
- };
5050
- };
5051
-
5052
5194
  export type SdkFunctionWrapper = <T>(
5053
5195
  action: (requestHeaders?: Record<string, string>) => Promise<T>,
5054
5196
  operationName: string,
@@ -5136,6 +5278,20 @@ export function getSdk(
5136
5278
  'query',
5137
5279
  );
5138
5280
  },
5281
+ cartById(
5282
+ variables?: { [x: string]: never },
5283
+ requestHeaders?: GraphQLClientRequestHeaders,
5284
+ ): Promise<CartByIdQuery> {
5285
+ return withWrapper(
5286
+ wrappedRequestHeaders =>
5287
+ client.request<CartByIdQuery>('', variables, {
5288
+ ...requestHeaders,
5289
+ ...wrappedRequestHeaders,
5290
+ }),
5291
+ 'cartById',
5292
+ 'query',
5293
+ );
5294
+ },
5139
5295
  cartCalculateLandedCost(
5140
5296
  variables?: { [x: string]: never },
5141
5297
  requestHeaders?: GraphQLClientRequestHeaders,
@@ -5178,6 +5334,20 @@ export function getSdk(
5178
5334
  'mutation',
5179
5335
  );
5180
5336
  },
5337
+ cartUpdate(
5338
+ variables?: { [x: string]: never },
5339
+ requestHeaders?: GraphQLClientRequestHeaders,
5340
+ ): Promise<CartUpdateMutation> {
5341
+ return withWrapper(
5342
+ wrappedRequestHeaders =>
5343
+ client.request<CartUpdateMutation>('', variables, {
5344
+ ...requestHeaders,
5345
+ ...wrappedRequestHeaders,
5346
+ }),
5347
+ 'cartUpdate',
5348
+ 'mutation',
5349
+ );
5350
+ },
5181
5351
  checkItemRestrictions(
5182
5352
  variables?: { [x: string]: never },
5183
5353
  requestHeaders?: GraphQLClientRequestHeaders,
@@ -1,23 +1 @@
1
- <svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <g filter="url(#filter0_dd_2052_3658)">
3
- <path fill-rule="evenodd" clip-rule="evenodd" d="M7.46967 14.5303C7.76256 14.8232 8.23744 14.8232 8.53033 14.5303L12.5 10.5607L16.4697 14.5303C16.7626 14.8232 17.2374 14.8232 17.5303 14.5303C17.8232 14.2374 17.8232 13.7626 17.5303 13.4697L13.0303 8.96967C12.7374 8.67678 12.2626 8.67678 11.9697 8.96967L7.46967 13.4697C7.17678 13.7626 7.17678 14.2374 7.46967 14.5303Z" fill="currentColor"/>
4
- </g>
5
- <defs>
6
- <filter id="filter0_dd_2052_3658" x="-3.5" y="-2" width="32" height="32" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
7
- <feFlood flood-opacity="0" result="BackgroundImageFix"/>
8
- <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
9
- <feOffset dy="2"/>
10
- <feGaussianBlur stdDeviation="2"/>
11
- <feComposite in2="hardAlpha" operator="out"/>
12
- <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0"/>
13
- <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_2052_3658"/>
14
- <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
15
- <feOffset dy="1"/>
16
- <feGaussianBlur stdDeviation="1"/>
17
- <feComposite in2="hardAlpha" operator="out"/>
18
- <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0"/>
19
- <feBlend mode="normal" in2="effect1_dropShadow_2052_3658" result="effect2_dropShadow_2052_3658"/>
20
- <feBlend mode="normal" in="SourceGraphic" in2="effect2_dropShadow_2052_3658" result="shape"/>
21
- </filter>
22
- </defs>
23
- </svg>
1
+ <svg color="var(--zonos-elements-gray-400)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M17.707 14.707a1 1 0 0 1-1.414 0L12 10.414l-4.293 4.293a1 1 0 0 1-1.414-1.414l4.93-4.93a1.1 1.1 0 0 1 1.555 0l4.93 4.93a1 1 0 0 1 0 1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>