@zonos/elements 1.2.4-alpha.8 → 1.3.2

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 (170) hide show
  1. package/README.md +80 -1
  2. package/dist/cjs/{cart-90f7c8c0.js → cart-cfa5d5fd.js} +4 -4
  3. package/dist/cjs/{getBorderRadius-bf4a4276.js → getBorderRadius-c3c63ee6.js} +1 -1
  4. package/dist/cjs/index.cjs.js +5 -5
  5. package/dist/cjs/{isDarkColor-ff6ff183.js → isDarkColor-fc8c294a.js} +1 -1
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/cjs/{localization-9caf3397.js → localization-4746acf7.js} +2 -2
  8. package/dist/cjs/{submitGtag-b141b45d.js → submitGtag-ca175427.js} +2 -2
  9. package/dist/cjs/zonos-address_2.cjs.entry.js +5 -5
  10. package/dist/cjs/zonos-badge.cjs.entry.js +1 -1
  11. package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
  12. package/dist/cjs/zonos-button_2.cjs.entry.js +3 -3
  13. package/dist/cjs/zonos-card_2.cjs.entry.js +1 -1
  14. package/dist/cjs/zonos-cart-items_10.cjs.entry.js +9 -15
  15. package/dist/cjs/zonos-checkout.cjs.entry.js +6 -6
  16. package/dist/cjs/zonos-controller.cjs.entry.js +14 -8
  17. package/dist/cjs/zonos-country-flag_4.cjs.entry.js +3 -3
  18. package/dist/cjs/zonos-elements.cjs.js +1 -1
  19. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +2 -2
  20. package/dist/cjs/zonos-hello.cjs.entry.js +8 -5
  21. package/dist/cjs/zonos-icon.cjs.entry.js +1 -1
  22. package/dist/cjs/zonos-notification.cjs.entry.js +1 -1
  23. package/dist/cjs/zonos-payment.cjs.entry.js +5 -5
  24. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +2 -2
  25. package/dist/cjs/zonos-text.cjs.entry.js +1 -1
  26. package/dist/cjs/{zonosStore-b43ef5db.js → zonosStore-10d1d6ff.js} +0 -8
  27. package/dist/collection/__tests__/build-utils/urlCheckOne.js +4 -1
  28. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +4 -10
  29. package/dist/collection/components/hello/zonos-hello/zonos-hello.js +6 -3
  30. package/dist/collection/components/main/zonos-controller.js +35 -8
  31. package/dist/collection/components/store/zonosStore.js +0 -8
  32. package/dist/collection/components/utils/api/{getZonosSetting.js → getZonosSettings.js} +2 -2
  33. package/dist/collection/components/utils/handleFetch.js +1 -1
  34. package/dist/collection/environment.js +14 -3
  35. package/dist/collection/scripts/{zonos.js → zonosBase.js} +7 -19
  36. package/dist/collection/types/generated/graphql.customer.types.js +31 -0
  37. package/dist/collection/types/generated/graphql.frontend.types.js +9 -0
  38. package/dist/components/localization.js +1 -1
  39. package/dist/components/zonos-checkout-finish2.js +5 -10
  40. package/dist/components/zonos-controller.js +11 -4
  41. package/dist/components/zonos-hello.js +6 -3
  42. package/dist/components/zonosStore.js +0 -8
  43. package/dist/esm/{cart-b439be00.js → cart-d81b92ea.js} +4 -4
  44. package/dist/esm/{getBorderRadius-178a0a05.js → getBorderRadius-77e97943.js} +1 -1
  45. package/dist/esm/index.js +5 -5
  46. package/dist/esm/{isDarkColor-416d6047.js → isDarkColor-69090b29.js} +1 -1
  47. package/dist/esm/loader.js +1 -1
  48. package/dist/esm/{localization-a51ccbc2.js → localization-0c5b29fd.js} +2 -2
  49. package/dist/esm/{submitGtag-521826a2.js → submitGtag-8a0fbd41.js} +2 -2
  50. package/dist/esm/zonos-address_2.entry.js +5 -5
  51. package/dist/esm/zonos-badge.entry.js +1 -1
  52. package/dist/esm/zonos-banner.entry.js +1 -1
  53. package/dist/esm/zonos-button_2.entry.js +3 -3
  54. package/dist/esm/zonos-card_2.entry.js +1 -1
  55. package/dist/esm/zonos-cart-items_10.entry.js +9 -15
  56. package/dist/esm/zonos-checkout.entry.js +6 -6
  57. package/dist/esm/zonos-controller.entry.js +14 -8
  58. package/dist/esm/zonos-country-flag_4.entry.js +3 -3
  59. package/dist/esm/zonos-elements.js +1 -1
  60. package/dist/esm/zonos-hello-dialog.entry.js +2 -2
  61. package/dist/esm/zonos-hello.entry.js +8 -5
  62. package/dist/esm/zonos-icon.entry.js +1 -1
  63. package/dist/esm/zonos-notification.entry.js +1 -1
  64. package/dist/esm/zonos-payment.entry.js +5 -5
  65. package/dist/esm/zonos-shipping-rich-radio.entry.js +2 -2
  66. package/dist/esm/zonos-text.entry.js +1 -1
  67. package/dist/esm/{zonosStore-61e74f58.js → zonosStore-34f07ee8.js} +0 -8
  68. package/dist/esm-es5/{cart-b439be00.js → cart-d81b92ea.js} +1 -1
  69. package/dist/esm-es5/{getBorderRadius-178a0a05.js → getBorderRadius-77e97943.js} +1 -1
  70. package/dist/esm-es5/index.js +1 -1
  71. package/dist/esm-es5/{isDarkColor-416d6047.js → isDarkColor-69090b29.js} +1 -1
  72. package/dist/esm-es5/loader.js +1 -1
  73. package/dist/esm-es5/{localization-a51ccbc2.js → localization-0c5b29fd.js} +1 -1
  74. package/dist/esm-es5/{submitGtag-521826a2.js → submitGtag-8a0fbd41.js} +1 -1
  75. package/dist/esm-es5/zonos-address_2.entry.js +1 -1
  76. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  77. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  78. package/dist/esm-es5/zonos-button_2.entry.js +1 -1
  79. package/dist/esm-es5/zonos-card_2.entry.js +1 -1
  80. package/dist/esm-es5/zonos-cart-items_10.entry.js +1 -1
  81. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  82. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  83. package/dist/esm-es5/zonos-country-flag_4.entry.js +1 -1
  84. package/dist/esm-es5/zonos-elements.js +1 -1
  85. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  86. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  87. package/dist/esm-es5/zonos-icon.entry.js +1 -1
  88. package/dist/esm-es5/zonos-notification.entry.js +1 -1
  89. package/dist/esm-es5/zonos-payment.entry.js +1 -1
  90. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  91. package/dist/esm-es5/zonos-text.entry.js +1 -1
  92. package/dist/esm-es5/{zonosStore-61e74f58.js → zonosStore-34f07ee8.js} +1 -1
  93. package/dist/scripts/extractZonosQaUrl.js +1 -30
  94. package/dist/scripts/loadStripe.js +1 -118
  95. package/dist/scripts/loadZonos.js +1 -565
  96. package/dist/scripts/stripe.js +1 -126
  97. package/dist/scripts/zonos.js +1 -565
  98. package/dist/scripts/zonosBase.js +1 -0
  99. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.d.ts +2 -3
  100. package/dist/types/components/main/zonos-controller.d.ts +5 -1
  101. package/dist/types/components/store/zonosStore.d.ts +1 -3
  102. package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
  103. package/dist/types/components/utils/api/{getZonosSetting.d.ts → getZonosSettings.d.ts} +1 -1
  104. package/dist/types/components.d.ts +6 -2
  105. package/dist/types/scripts/{zonos.d.ts → zonosBase.d.ts} +6 -3
  106. package/dist/types/types/checkout/CheckoutConfig.d.ts +3 -2
  107. package/dist/types/types/generated/graphql.customer.types.d.ts +35 -0
  108. package/dist/types/types/generated/graphql.customer.types.ts +44 -0
  109. package/dist/types/types/generated/graphql.frontend.types.d.ts +34 -1
  110. package/dist/types/types/generated/graphql.frontend.types.ts +69 -1
  111. package/dist/types/types/global.d.ts +10 -2
  112. package/dist/types/types/hello/HelloConfig.d.ts +0 -1
  113. package/dist/zonos-elements/index.esm.js +1 -1
  114. package/dist/zonos-elements/{p-1685c8df.js → p-06a332cd.js} +1 -1
  115. package/dist/zonos-elements/{p-4ed71bd7.entry.js → p-124857ae.entry.js} +1 -1
  116. package/dist/zonos-elements/{p-e98be2d0.system.entry.js → p-1f494581.system.entry.js} +1 -1
  117. package/dist/zonos-elements/p-24fbe845.system.js +1 -1
  118. package/dist/zonos-elements/{p-4846796a.js → p-2b41549a.js} +1 -1
  119. package/dist/zonos-elements/p-2e1e9074.js +1 -0
  120. package/dist/zonos-elements/{p-2801d868.entry.js → p-3509ffaa.entry.js} +1 -1
  121. package/dist/zonos-elements/{p-1d4a970b.entry.js → p-3c8763a7.entry.js} +1 -1
  122. package/dist/zonos-elements/{p-49f09b91.entry.js → p-3e7444c6.entry.js} +1 -1
  123. package/dist/zonos-elements/p-436faf98.system.entry.js +1 -0
  124. package/dist/zonos-elements/{p-55f49f1e.js → p-4b3baf99.js} +1 -1
  125. package/dist/zonos-elements/{p-a504f64f.system.js → p-5066955b.system.js} +1 -1
  126. package/dist/zonos-elements/{p-e5ae22a9.system.entry.js → p-53ea93c2.system.entry.js} +1 -1
  127. package/dist/zonos-elements/{p-f367f2fe.system.entry.js → p-5bada106.system.entry.js} +1 -1
  128. package/dist/zonos-elements/p-5e87609f.entry.js +1 -0
  129. package/dist/zonos-elements/{p-b85be1ab.system.js → p-7730250d.system.js} +1 -1
  130. package/dist/zonos-elements/{p-089ba905.js → p-86f22026.js} +1 -1
  131. package/dist/zonos-elements/{p-a0e36ed3.entry.js → p-88600956.entry.js} +1 -1
  132. package/dist/zonos-elements/{p-89c210d6.entry.js → p-8b1cb8a4.entry.js} +1 -1
  133. package/dist/zonos-elements/p-8bd04aaa.entry.js +1 -0
  134. package/dist/zonos-elements/{p-47390db7.system.entry.js → p-935fa685.system.entry.js} +1 -1
  135. package/dist/zonos-elements/{p-639396bb.entry.js → p-9c1f19b6.entry.js} +1 -1
  136. package/dist/zonos-elements/{p-4d93275c.entry.js → p-a063c4b7.entry.js} +1 -1
  137. package/dist/zonos-elements/p-a174d834.system.js +1 -0
  138. package/dist/zonos-elements/{p-3c6988d7.js → p-a244579e.js} +1 -1
  139. package/dist/zonos-elements/{p-24eed2a8.system.js → p-a54d8db3.system.js} +1 -1
  140. package/dist/zonos-elements/{p-e1f6ab97.entry.js → p-ab00288a.entry.js} +1 -1
  141. package/dist/zonos-elements/{p-b51de536.system.js → p-ab179c88.system.js} +1 -1
  142. package/dist/zonos-elements/{p-afe26069.entry.js → p-ad2b4bda.entry.js} +1 -1
  143. package/dist/zonos-elements/{p-4bee0bff.system.entry.js → p-b3a71ae4.system.entry.js} +1 -1
  144. package/dist/zonos-elements/{p-d856a200.system.entry.js → p-b3e034bb.system.entry.js} +1 -1
  145. package/dist/zonos-elements/p-b7e061e7.entry.js +1 -0
  146. package/dist/zonos-elements/{p-3cea383b.system.entry.js → p-bb7de2c4.system.entry.js} +1 -1
  147. package/dist/zonos-elements/{p-da060b1c.system.js → p-c1665c4f.system.js} +1 -1
  148. package/dist/zonos-elements/{p-2f43da39.system.entry.js → p-c1e298d5.system.entry.js} +1 -1
  149. package/dist/zonos-elements/{p-8c5595d9.system.entry.js → p-c520d819.system.entry.js} +1 -1
  150. package/dist/zonos-elements/{p-c9348bb0.system.entry.js → p-ca875e60.system.entry.js} +1 -1
  151. package/dist/zonos-elements/{p-b4601210.system.entry.js → p-ccd1794a.system.entry.js} +1 -1
  152. package/dist/zonos-elements/{p-f141519c.system.entry.js → p-daa10b8c.system.entry.js} +1 -1
  153. package/dist/zonos-elements/{p-b6148206.entry.js → p-e3bca405.entry.js} +1 -1
  154. package/dist/zonos-elements/{p-a376a37f.entry.js → p-e58cc024.entry.js} +1 -1
  155. package/dist/zonos-elements/{p-938803f4.entry.js → p-e6556b0d.entry.js} +1 -1
  156. package/dist/zonos-elements/{p-d2217f09.system.js → p-ed074fbf.system.js} +1 -1
  157. package/dist/zonos-elements/{p-560aa686.system.entry.js → p-f1e9b431.system.entry.js} +1 -1
  158. package/dist/zonos-elements/p-f7b07128.system.entry.js +1 -0
  159. package/dist/zonos-elements/{p-4a15c5c7.system.entry.js → p-fbc09dae.system.entry.js} +1 -1
  160. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  161. package/package.json +9 -6
  162. package/dist/collection/types/online-store/OnlineStoreConfig.js +0 -1
  163. package/dist/types/types/online-store/OnlineStoreConfig.d.ts +0 -3
  164. package/dist/zonos-elements/p-06fb9d1f.system.entry.js +0 -1
  165. package/dist/zonos-elements/p-19942abb.system.entry.js +0 -1
  166. package/dist/zonos-elements/p-494c77a7.entry.js +0 -1
  167. package/dist/zonos-elements/p-8c48b75e.system.js +0 -1
  168. package/dist/zonos-elements/p-a3a8b5e7.entry.js +0 -1
  169. package/dist/zonos-elements/p-e9b832c5.entry.js +0 -1
  170. package/dist/zonos-elements/p-ff95f098.js +0 -1
@@ -1,5 +1,5 @@
1
1
  import type { ZonosSettingsQuery } from "../../../types/generated/graphql.customer.types";
2
- export declare const getZonosSetting: () => Promise<{
2
+ export declare const getZonosSettings: () => Promise<{
3
3
  errors: import("../../..").JsonError[];
4
4
  json: null;
5
5
  } | {
@@ -12,7 +12,7 @@ import { CountryCode, ElementsUiStyle, ElementsUiTheme, HelloMobileLocation } fr
12
12
  import { AppearanceConfig } from "./components/store/zonosStore";
13
13
  import { ContactOption as ContactOption1 } from "./components/store/checkout/stripe";
14
14
  import { AppearanceConfig as AppearanceConfig1, Color as Color1, ElementsUiStyle as ElementsUiStyle1, ElementsUiTheme as ElementsUiTheme1, HelloMobileLocation as HelloMobileLocation1 } from "./types/index";
15
- import { LoadZonosParamsConfig } from "./scripts/zonos";
15
+ import { LoadZonosParamsConfig } from "./scripts/zonosBase";
16
16
  import { NotificationInit } from "./components/common/zonos-notification/zonos-notification";
17
17
  import { RestrictedItem } from "./types/hello/RestrictedItem";
18
18
  import { AppearanceConfig as AppearanceConfig2 } from "./components.d";
@@ -27,7 +27,7 @@ export { CountryCode, ElementsUiStyle, ElementsUiTheme, HelloMobileLocation } fr
27
27
  export { AppearanceConfig } from "./components/store/zonosStore";
28
28
  export { ContactOption as ContactOption1 } from "./components/store/checkout/stripe";
29
29
  export { AppearanceConfig as AppearanceConfig1, Color as Color1, ElementsUiStyle as ElementsUiStyle1, ElementsUiTheme as ElementsUiTheme1, HelloMobileLocation as HelloMobileLocation1 } from "./types/index";
30
- export { LoadZonosParamsConfig } from "./scripts/zonos";
30
+ export { LoadZonosParamsConfig } from "./scripts/zonosBase";
31
31
  export { NotificationInit } from "./components/common/zonos-notification/zonos-notification";
32
32
  export { RestrictedItem } from "./types/hello/RestrictedItem";
33
33
  export { AppearanceConfig as AppearanceConfig2 } from "./components.d";
@@ -327,6 +327,10 @@ export namespace Components {
327
327
  * Show notification
328
328
  */
329
329
  "showNotification": (notification: NotificationInit) => Promise<void>;
330
+ /**
331
+ * Update the organizationName
332
+ */
333
+ "updateOrganizationName": (organizationName: string) => Promise<void>;
330
334
  /**
331
335
  * The zonos api key
332
336
  */
@@ -1,16 +1,15 @@
1
1
  import type { Stripe } from '@stripe/stripe-js';
2
2
  import type { AppearanceConfig } from "../components/store/zonosStore";
3
3
  import type { CheckoutConfig, HelloConfig, NotificationInit } from "../types/index";
4
- import type { OnlineStoreConfig } from "../types/online-store/OnlineStoreConfig";
5
4
  export type CurrencyConverter = (convertAndFormat: (amount: number) => string, convert: (amount: number) => number, format: (amount: number) => string, selector?: string) => void;
6
5
  export type LoadZonosParamsConfig = {
7
6
  appearance?: Partial<AppearanceConfig>;
8
7
  checkoutSettings?: Partial<CheckoutConfig>;
9
8
  currencyConverter?: CurrencyConverter;
10
9
  helloSettings?: Partial<HelloConfig>;
11
- onlineStoreSettings?: Partial<OnlineStoreConfig>;
12
10
  };
13
11
  export type LoadZonosParams = LoadZonosParamsConfig & {
12
+ storeId: number;
14
13
  zonosApiKey: string;
15
14
  };
16
15
  export interface Zonos {
@@ -24,6 +23,7 @@ export interface Zonos {
24
23
  isBigCommerce: boolean;
25
24
  /** Flag if already alerted when preview domain is defined and it's connecting production environment */
26
25
  modeAlerted: boolean;
26
+ storeId: number;
27
27
  /** Stripe instance */
28
28
  stripe: Stripe;
29
29
  version: string;
@@ -35,10 +35,12 @@ export interface Zonos {
35
35
  injectSupportGoogleFont: (fontUrl: string) => void;
36
36
  setupGoogleFont: (fontFamily: string) => void;
37
37
  showNotification: (props: NotificationInit) => void;
38
+ updateOrganizationName: (organizationName: string) => void;
38
39
  }
39
40
  export declare abstract class Zonos {
40
41
  static zonosApiKey: string;
41
42
  static stripe: Stripe;
43
+ static storeId: number;
42
44
  static doneInit: boolean;
43
45
  static debug: boolean;
44
46
  static isBigCommerce: boolean;
@@ -48,9 +50,10 @@ export declare abstract class Zonos {
48
50
  static modeAlerted: boolean;
49
51
  static getCurrentTimestamp: () => number;
50
52
  private static zonosController;
51
- static init: ({ appearance, checkoutSettings, currencyConverter, helloSettings, zonosApiKey, }: LoadZonosParams) => Promise<void>;
53
+ static init: ({ appearance, checkoutSettings, currencyConverter, helloSettings, storeId, zonosApiKey, }: LoadZonosParams) => Promise<void>;
52
54
  static displayCurrency: () => void;
53
55
  static showNotification: (notification: NotificationInit) => void;
56
+ static updateOrganizationName: (organizationName: string) => void;
54
57
  private static disablePlaceOrderButtons;
55
58
  private static injectController;
56
59
  private static injectSentryScript;
@@ -1,8 +1,8 @@
1
1
  import type { CartItem } from "../../components/store/checkout/cart";
2
2
  import type { CalculateLandedCostRequest } from "./api/CalculateLandedCostRequest";
3
- import type { AnalyticsProviderStatus, AnalyticsProviderType, CalculateLandedCostMutation, CheckoutSubscriptionStatus, CheckoutSuccessBehavior, CheckoutVisibilityStatus, NotificationActiveStatus } from "../generated/graphql.customer.types";
3
+ import type { AnalyticsProviderStatus, AnalyticsProviderType, CalculateLandedCostMutation, CheckoutSubscriptionStatus, CheckoutSuccessBehavior, CheckoutVisibilityStatus, GetOrderQuery, NotificationActiveStatus } from "../generated/graphql.customer.types";
4
+ export type ZonosOrder = GetOrderQuery['order'];
4
5
  export type CheckoutConfig = {
5
- allowedDomains: Array<string>;
6
6
  analyticsProviders: Array<{
7
7
  status: AnalyticsProviderStatus;
8
8
  type: AnalyticsProviderType;
@@ -56,4 +56,5 @@ export type CheckoutConfig = {
56
56
  */
57
57
  buildCartDetail?: () => Promise<CartItem[]>;
58
58
  buildLandedCost?: (checkoutSessionId: string, contact: CalculateLandedCostRequest['contact'], shippingAddress: CalculateLandedCostRequest['shippingAddress']) => Promise<CalculateLandedCostMutation>;
59
+ onOrderSuccess?: (zonosOrder: ZonosOrder) => void;
59
60
  };
@@ -127,11 +127,21 @@ export declare const carrierAccountApiUsage: {
127
127
  readonly Rating: "RATING";
128
128
  };
129
129
  export type CarrierAccountApiUsage = (typeof carrierAccountApiUsage)[keyof typeof carrierAccountApiUsage];
130
+ export declare const carrierAccountIntegrationType: {
131
+ readonly Rest: "REST";
132
+ readonly Soap: "SOAP";
133
+ };
134
+ export type CarrierAccountIntegrationType = (typeof carrierAccountIntegrationType)[keyof typeof carrierAccountIntegrationType];
130
135
  export declare const carrierAccountRateType: {
131
136
  readonly Negotiated: "NEGOTIATED";
132
137
  readonly Retail: "RETAIL";
133
138
  };
134
139
  export type CarrierAccountRateType = (typeof carrierAccountRateType)[keyof typeof carrierAccountRateType];
140
+ export declare const carrierAccountRegistrationType: {
141
+ readonly Other: "OTHER";
142
+ readonly Zonos: "ZONOS";
143
+ };
144
+ export type CarrierAccountRegistrationType = (typeof carrierAccountRegistrationType)[keyof typeof carrierAccountRegistrationType];
135
145
  export declare const carrierAccountUsageCategoryCode: {
136
146
  readonly Shipping: "SHIPPING";
137
147
  };
@@ -1164,6 +1174,13 @@ export declare const exchangeRateType: {
1164
1174
  readonly MidMarket: "MID_MARKET";
1165
1175
  };
1166
1176
  export type ExchangeRateType = (typeof exchangeRateType)[keyof typeof exchangeRateType];
1177
+ export declare const exportJobStatus: {
1178
+ readonly Completed: "COMPLETED";
1179
+ readonly Error: "ERROR";
1180
+ readonly Initialized: "INITIALIZED";
1181
+ readonly Processing: "PROCESSING";
1182
+ };
1183
+ export type ExportJobStatus = (typeof exportJobStatus)[keyof typeof exportJobStatus];
1167
1184
  export declare const externalServiceTokenType: {
1168
1185
  readonly StripePublishableToken: "STRIPE_PUBLISHABLE_TOKEN";
1169
1186
  };
@@ -1418,6 +1435,13 @@ export declare const landedCostAdjustmentType: {
1418
1435
  readonly Shipping: "SHIPPING";
1419
1436
  };
1420
1437
  export type LandedCostAdjustmentType = (typeof landedCostAdjustmentType)[keyof typeof landedCostAdjustmentType];
1438
+ export declare const landedCostBillingPartyType: {
1439
+ readonly Customer: "CUSTOMER";
1440
+ readonly Merchant: "MERCHANT";
1441
+ readonly ThirdParty: "THIRD_PARTY";
1442
+ readonly Zonos: "ZONOS";
1443
+ };
1444
+ export type LandedCostBillingPartyType = (typeof landedCostBillingPartyType)[keyof typeof landedCostBillingPartyType];
1421
1445
  export declare const landedCostCalculationMethod: {
1422
1446
  readonly Dap: "DAP";
1423
1447
  readonly Ddp: "DDP";
@@ -1447,6 +1471,7 @@ export declare const landedCostFeeType: {
1447
1471
  readonly Item: "ITEM";
1448
1472
  readonly Other: "OTHER";
1449
1473
  readonly Shipping: "SHIPPING";
1474
+ readonly Tax: "TAX";
1450
1475
  readonly ZonosLandedCostGuarantee: "ZONOS_LANDED_COST_GUARANTEE";
1451
1476
  };
1452
1477
  export type LandedCostFeeType = (typeof landedCostFeeType)[keyof typeof landedCostFeeType];
@@ -1992,9 +2017,19 @@ export declare const wcoVersion: {
1992
2017
  readonly Wco_1997: "WCO_1997";
1993
2018
  readonly Wco_2002: "WCO_2002";
1994
2019
  readonly Wco_2007: "WCO_2007";
2020
+ readonly Wco_2012: "WCO_2012";
1995
2021
  readonly Wco_2017: "WCO_2017";
1996
2022
  readonly Wco_2022: "WCO_2022";
1997
2023
  readonly Wco_2027: "WCO_2027";
2024
+ readonly Wco_2032: "WCO_2032";
2025
+ readonly Wco_2037: "WCO_2037";
2026
+ readonly Wco_2042: "WCO_2042";
2027
+ readonly Wco_2047: "WCO_2047";
2028
+ readonly Wco_2052: "WCO_2052";
2029
+ readonly Wco_2057: "WCO_2057";
2030
+ readonly Wco_2062: "WCO_2062";
2031
+ readonly Wco_2067: "WCO_2067";
2032
+ readonly Wco_2072: "WCO_2072";
1998
2033
  };
1999
2034
  export type WcoVersion = (typeof wcoVersion)[keyof typeof wcoVersion];
2000
2035
  export declare const weightUnitCode: {
@@ -127,6 +127,13 @@ export const carrierAccountApiUsage = {
127
127
  export type CarrierAccountApiUsage =
128
128
  (typeof carrierAccountApiUsage)[keyof typeof carrierAccountApiUsage];
129
129
 
130
+ export const carrierAccountIntegrationType = {
131
+ Rest: 'REST',
132
+ Soap: 'SOAP',
133
+ } as const;
134
+
135
+ export type CarrierAccountIntegrationType =
136
+ (typeof carrierAccountIntegrationType)[keyof typeof carrierAccountIntegrationType];
130
137
  export const carrierAccountRateType = {
131
138
  Negotiated: 'NEGOTIATED',
132
139
  Retail: 'RETAIL',
@@ -134,6 +141,13 @@ export const carrierAccountRateType = {
134
141
 
135
142
  export type CarrierAccountRateType =
136
143
  (typeof carrierAccountRateType)[keyof typeof carrierAccountRateType];
144
+ export const carrierAccountRegistrationType = {
145
+ Other: 'OTHER',
146
+ Zonos: 'ZONOS',
147
+ } as const;
148
+
149
+ export type CarrierAccountRegistrationType =
150
+ (typeof carrierAccountRegistrationType)[keyof typeof carrierAccountRegistrationType];
137
151
 
138
152
  export const carrierAccountUsageCategoryCode = {
139
153
  Shipping: 'SHIPPING',
@@ -1302,6 +1316,15 @@ export const exchangeRateType = {
1302
1316
 
1303
1317
  export type ExchangeRateType =
1304
1318
  (typeof exchangeRateType)[keyof typeof exchangeRateType];
1319
+ export const exportJobStatus = {
1320
+ Completed: 'COMPLETED',
1321
+ Error: 'ERROR',
1322
+ Initialized: 'INITIALIZED',
1323
+ Processing: 'PROCESSING',
1324
+ } as const;
1325
+
1326
+ export type ExportJobStatus =
1327
+ (typeof exportJobStatus)[keyof typeof exportJobStatus];
1305
1328
 
1306
1329
  export const externalServiceTokenType = {
1307
1330
  StripePublishableToken: 'STRIPE_PUBLISHABLE_TOKEN',
@@ -1635,6 +1658,15 @@ export const landedCostAdjustmentType = {
1635
1658
 
1636
1659
  export type LandedCostAdjustmentType =
1637
1660
  (typeof landedCostAdjustmentType)[keyof typeof landedCostAdjustmentType];
1661
+ export const landedCostBillingPartyType = {
1662
+ Customer: 'CUSTOMER',
1663
+ Merchant: 'MERCHANT',
1664
+ ThirdParty: 'THIRD_PARTY',
1665
+ Zonos: 'ZONOS',
1666
+ } as const;
1667
+
1668
+ export type LandedCostBillingPartyType =
1669
+ (typeof landedCostBillingPartyType)[keyof typeof landedCostBillingPartyType];
1638
1670
  export const landedCostCalculationMethod = {
1639
1671
  Dap: 'DAP',
1640
1672
  Ddp: 'DDP',
@@ -1669,6 +1701,7 @@ export const landedCostFeeType = {
1669
1701
  Item: 'ITEM',
1670
1702
  Other: 'OTHER',
1671
1703
  Shipping: 'SHIPPING',
1704
+ Tax: 'TAX',
1672
1705
  ZonosLandedCostGuarantee: 'ZONOS_LANDED_COST_GUARANTEE',
1673
1706
  } as const;
1674
1707
 
@@ -2167,6 +2200,7 @@ export const stripeActiveStatus = {
2167
2200
 
2168
2201
  export type StripeActiveStatus =
2169
2202
  (typeof stripeActiveStatus)[keyof typeof stripeActiveStatus];
2203
+
2170
2204
  export const stripeBillingFrequency = {
2171
2205
  Day: 'DAY',
2172
2206
  Month: 'MONTH',
@@ -2350,9 +2384,19 @@ export const wcoVersion = {
2350
2384
  Wco_1997: 'WCO_1997',
2351
2385
  Wco_2002: 'WCO_2002',
2352
2386
  Wco_2007: 'WCO_2007',
2387
+ Wco_2012: 'WCO_2012',
2353
2388
  Wco_2017: 'WCO_2017',
2354
2389
  Wco_2022: 'WCO_2022',
2355
2390
  Wco_2027: 'WCO_2027',
2391
+ Wco_2032: 'WCO_2032',
2392
+ Wco_2037: 'WCO_2037',
2393
+ Wco_2042: 'WCO_2042',
2394
+ Wco_2047: 'WCO_2047',
2395
+ Wco_2052: 'WCO_2052',
2396
+ Wco_2057: 'WCO_2057',
2397
+ Wco_2062: 'WCO_2062',
2398
+ Wco_2067: 'WCO_2067',
2399
+ Wco_2072: 'WCO_2072',
2356
2400
  } as const;
2357
2401
 
2358
2402
  export type WcoVersion = (typeof wcoVersion)[keyof typeof wcoVersion];
@@ -493,6 +493,30 @@ export declare const promptBulkJobStatusEnum: {
493
493
  readonly Queued: "queued";
494
494
  };
495
495
  export type Prompt_BulkJobStatus_Enum = (typeof promptBulkJobStatusEnum)[keyof typeof promptBulkJobStatusEnum];
496
+ export type CleanupTestZonosElementSettingMutation = {
497
+ delete_ux_zonosElementsSetting: {
498
+ affected_rows: number;
499
+ } | null;
500
+ };
501
+ export type ZonosElementsSettingQuery = {
502
+ ux_zonosElementsSetting: Array<{
503
+ currentVersion: string;
504
+ previousVersion: string | null;
505
+ storeId: number | null;
506
+ token: string | null;
507
+ }>;
508
+ };
509
+ export type UpdateCacheStoreVersionMutation = {
510
+ insert_ux_zonosElementsSetting: {
511
+ affected_rows: number;
512
+ returning: Array<{
513
+ currentVersion: string;
514
+ previousVersion: string | null;
515
+ storeId: number | null;
516
+ token: string | null;
517
+ }>;
518
+ } | null;
519
+ };
496
520
  export type GetAudienceByAspectKeyQuery = {
497
521
  feature_audienceAspectLink: Array<{
498
522
  audience: {
@@ -508,7 +532,7 @@ export type GetAudienceByAspectKeyQuery = {
508
532
  };
509
533
  export type LocaleCountryMessagesQuery = {
510
534
  locale_countryCodesPage: Array<{
511
- countryCodes: Array<string> | null;
535
+ countryCodes: Array<string>;
512
536
  countryCodesPageMessageLinks: Array<{
513
537
  id: number;
514
538
  message: {
@@ -691,11 +715,20 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
691
715
  LocaleCountryMessages(variables?: {
692
716
  [x: string]: never;
693
717
  } | undefined, requestHeaders?: GraphQLClientRequestHeaders): Promise<LocaleCountryMessagesQuery>;
718
+ UpdateCacheStoreVersion(variables?: {
719
+ [x: string]: never;
720
+ } | undefined, requestHeaders?: GraphQLClientRequestHeaders): Promise<UpdateCacheStoreVersionMutation>;
694
721
  UpdateReserveOrder(variables?: {
695
722
  [x: string]: never;
696
723
  } | undefined, requestHeaders?: GraphQLClientRequestHeaders): Promise<UpdateReserveOrderMutation>;
697
724
  UpsertBigCommerceSettings(variables?: {
698
725
  [x: string]: never;
699
726
  } | undefined, requestHeaders?: GraphQLClientRequestHeaders): Promise<UpsertBigCommerceSettingsMutation>;
727
+ cleanupTestZonosElementSetting(variables?: {
728
+ [x: string]: never;
729
+ } | undefined, requestHeaders?: GraphQLClientRequestHeaders): Promise<CleanupTestZonosElementSettingMutation>;
730
+ zonosElementsSetting(variables?: {
731
+ [x: string]: never;
732
+ } | undefined, requestHeaders?: GraphQLClientRequestHeaders): Promise<ZonosElementsSettingQuery>;
700
733
  };
701
734
  export type Sdk = ReturnType<typeof getSdk>;
@@ -488,6 +488,31 @@ export const promptBulkJobStatusEnum = {
488
488
  export type Prompt_BulkJobStatus_Enum =
489
489
  (typeof promptBulkJobStatusEnum)[keyof typeof promptBulkJobStatusEnum];
490
490
 
491
+ export type CleanupTestZonosElementSettingMutation = {
492
+ delete_ux_zonosElementsSetting: { affected_rows: number } | null;
493
+ };
494
+
495
+ export type ZonosElementsSettingQuery = {
496
+ ux_zonosElementsSetting: Array<{
497
+ currentVersion: string;
498
+ previousVersion: string | null;
499
+ storeId: number | null;
500
+ token: string | null;
501
+ }>;
502
+ };
503
+
504
+ export type UpdateCacheStoreVersionMutation = {
505
+ insert_ux_zonosElementsSetting: {
506
+ affected_rows: number;
507
+ returning: Array<{
508
+ currentVersion: string;
509
+ previousVersion: string | null;
510
+ storeId: number | null;
511
+ token: string | null;
512
+ }>;
513
+ } | null;
514
+ };
515
+
491
516
  export type GetAudienceByAspectKeyQuery = {
492
517
  feature_audienceAspectLink: Array<{
493
518
  audience: {
@@ -501,7 +526,7 @@ export type GetAudienceByAspectKeyQuery = {
501
526
 
502
527
  export type LocaleCountryMessagesQuery = {
503
528
  locale_countryCodesPage: Array<{
504
- countryCodes: Array<string> | null;
529
+ countryCodes: Array<string>;
505
530
  countryCodesPageMessageLinks: Array<{
506
531
  id: number;
507
532
  message: {
@@ -841,6 +866,20 @@ export function getSdk(
841
866
  'query',
842
867
  );
843
868
  },
869
+ UpdateCacheStoreVersion(
870
+ variables?: { [x: string]: never },
871
+ requestHeaders?: GraphQLClientRequestHeaders,
872
+ ): Promise<UpdateCacheStoreVersionMutation> {
873
+ return withWrapper(
874
+ wrappedRequestHeaders =>
875
+ client.request<UpdateCacheStoreVersionMutation>('', variables, {
876
+ ...requestHeaders,
877
+ ...wrappedRequestHeaders,
878
+ }),
879
+ 'UpdateCacheStoreVersion',
880
+ 'mutation',
881
+ );
882
+ },
844
883
  UpdateReserveOrder(
845
884
  variables?: { [x: string]: never },
846
885
  requestHeaders?: GraphQLClientRequestHeaders,
@@ -869,6 +908,35 @@ export function getSdk(
869
908
  'mutation',
870
909
  );
871
910
  },
911
+ cleanupTestZonosElementSetting(
912
+ variables?: { [x: string]: never },
913
+ requestHeaders?: GraphQLClientRequestHeaders,
914
+ ): Promise<CleanupTestZonosElementSettingMutation> {
915
+ return withWrapper(
916
+ wrappedRequestHeaders =>
917
+ client.request<CleanupTestZonosElementSettingMutation>(
918
+ '',
919
+ variables,
920
+ { ...requestHeaders, ...wrappedRequestHeaders },
921
+ ),
922
+ 'cleanupTestZonosElementSetting',
923
+ 'mutation',
924
+ );
925
+ },
926
+ zonosElementsSetting(
927
+ variables?: { [x: string]: never },
928
+ requestHeaders?: GraphQLClientRequestHeaders,
929
+ ): Promise<ZonosElementsSettingQuery> {
930
+ return withWrapper(
931
+ wrappedRequestHeaders =>
932
+ client.request<ZonosElementsSettingQuery>('', variables, {
933
+ ...requestHeaders,
934
+ ...wrappedRequestHeaders,
935
+ }),
936
+ 'zonosElementsSetting',
937
+ 'query',
938
+ );
939
+ },
872
940
  };
873
941
  }
874
942
  export type Sdk = ReturnType<typeof getSdk>;
@@ -3,14 +3,14 @@ import type { StripeConstructor } from '@stripe/stripe-js';
3
3
 
4
4
  /** Need to use relative path so that this declaration file can be correctly bundled */
5
5
  import type { Env } from '../environment';
6
- import type { Zonos } from '../scripts/zonos';
6
+ import type { Zonos } from '../scripts/zonosBase';
7
7
 
8
8
  declare global {
9
9
  // eslint-disable-next-line @typescript-eslint/consistent-type-definitions
10
10
  interface Window {
11
11
  Sentry?: {
12
12
  init: (config: {
13
- allowyUrls?: (string | RegExp)[];
13
+ allowUrls?: (string | RegExp)[];
14
14
  denyUrls?: (string | RegExp)[];
15
15
  dsn: string;
16
16
  environment?: string;
@@ -21,6 +21,14 @@ declare global {
21
21
  };
22
22
  Stripe?: StripeConstructor;
23
23
  Zonos: Zonos;
24
+ /**
25
+ * A flag to determine if the current page is a BigCommerce page
26
+ */
27
+ bcConfig?: unknown;
28
+ /**
29
+ * A flag to determine if the current page is a BigCommerce page
30
+ */
31
+ stencilBootstrap?: unknown;
24
32
  sentryOnLoad?: () => void;
25
33
  }
26
34
 
@@ -1,6 +1,5 @@
1
1
  import type { HelloCurrencyBehavior, HelloEstimateBehavior, HelloMobileLocation, HelloPeekMessageBehavior, HelloRestrictionBehavior, Mode } from "../generated/graphql.customer.types";
2
2
  export type HelloConfig = {
3
- allowedDomains: Array<string>;
4
3
  anchorElementSelector: string;
5
4
  cartUrlPattern: string | null;
6
5
  currencyBehavior: HelloCurrencyBehavior;
@@ -1 +1 @@
1
- export{c as cartStore,a as cartStoreApplySubtotals,b as cartStoreGetShippingTransitInfo,d as cartStoreNextStep,e as cartStorePreviousStep,f as cartStoreReCalculateTotal,g as cartStoreReset,h as cartStoreUpdateItems,i as cartStoreUpdateSelectedShippingOption,j as cartStoreUpdateToErrorState}from"./p-4846796a.js";import"./p-089ba905.js";import"./p-956efa27.js";import"./p-3c6988d7.js";import"./p-55f49f1e.js";import"./p-ff95f098.js";
1
+ export{c as cartStore,a as cartStoreApplySubtotals,b as cartStoreGetShippingTransitInfo,d as cartStoreNextStep,e as cartStorePreviousStep,f as cartStoreReCalculateTotal,g as cartStoreReset,h as cartStoreUpdateItems,i as cartStoreUpdateSelectedShippingOption,j as cartStoreUpdateToErrorState}from"./p-2b41549a.js";import"./p-86f22026.js";import"./p-956efa27.js";import"./p-a244579e.js";import"./p-4b3baf99.js";import"./p-2e1e9074.js";
@@ -1 +1 @@
1
- import{z as o}from"./p-089ba905.js";import{l as s}from"./p-3c6988d7.js";const n=o=>o||window.innerWidth<890,t=n=>{const t=o.checkoutSettings.analyticsProviders.find((o=>"GOOGLE_ANALYTICS"===o.type));t&&"DISABLED"!==(null==t?void 0:t.status)&&"function"==typeof window.gtag&&(s("Zonos submits gtag event","log",n),window.gtag("event",n,{}))};export{n as i,t as s}
1
+ import{z as o}from"./p-86f22026.js";import{l as s}from"./p-a244579e.js";const n=o=>o||window.innerWidth<890,t=n=>{const t=o.checkoutSettings.analyticsProviders.find((o=>"GOOGLE_ANALYTICS"===o.type));t&&"DISABLED"!==(null==t?void 0:t.status)&&"function"==typeof window.gtag&&(s("Zonos submits gtag event","log",n),window.gtag("event",n,{}))};export{n as i,t as s}