@zonos/elements 1.2.4-alpha.8 → 1.3.3-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +80 -1
- package/dist/cjs/{cart-90f7c8c0.js → cart-cfa5d5fd.js} +4 -4
- package/dist/cjs/{getBorderRadius-bf4a4276.js → getBorderRadius-c3c63ee6.js} +1 -1
- package/dist/cjs/index.cjs.js +5 -5
- package/dist/cjs/{isDarkColor-ff6ff183.js → isDarkColor-fc8c294a.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{localization-9caf3397.js → localization-4746acf7.js} +2 -2
- package/dist/cjs/{submitGtag-b141b45d.js → submitGtag-ca175427.js} +2 -2
- package/dist/cjs/zonos-address_2.cjs.entry.js +5 -5
- package/dist/cjs/zonos-badge.cjs.entry.js +1 -1
- package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
- package/dist/cjs/zonos-button_2.cjs.entry.js +3 -3
- package/dist/cjs/zonos-card_2.cjs.entry.js +1 -1
- package/dist/cjs/zonos-cart-items_10.cjs.entry.js +45 -16
- package/dist/cjs/zonos-checkout.cjs.entry.js +14 -9
- package/dist/cjs/zonos-controller.cjs.entry.js +14 -54
- package/dist/cjs/zonos-country-flag_4.cjs.entry.js +3 -3
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +2 -2
- package/dist/cjs/zonos-hello.cjs.entry.js +8 -5
- package/dist/cjs/zonos-icon.cjs.entry.js +1 -1
- package/dist/cjs/zonos-notification.cjs.entry.js +1 -1
- package/dist/cjs/zonos-payment.cjs.entry.js +5 -5
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +2 -2
- package/dist/cjs/zonos-text.cjs.entry.js +1 -1
- package/dist/cjs/{zonosStore-b43ef5db.js → zonosStore-10d1d6ff.js} +0 -8
- package/dist/collection/__tests__/build-utils/urlCheckOne.js +4 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +43 -10
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +8 -3
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.css +4 -4
- package/dist/collection/components/hello/zonos-hello/zonos-hello.js +6 -3
- package/dist/collection/components/main/zonos-controller.js +35 -54
- package/dist/collection/components/store/zonosStore.js +0 -8
- package/dist/collection/components/utils/api/{getZonosSetting.js → getZonosSettings.js} +2 -2
- package/dist/collection/components/utils/handleFetch.js +1 -1
- package/dist/collection/environment.js +14 -3
- package/dist/collection/scripts/{zonos.js → zonosBase.js} +23 -19
- package/dist/collection/types/generated/graphql.customer.types.js +65 -0
- package/dist/collection/types/generated/graphql.frontend.types.js +9 -0
- package/dist/components/localization.js +1 -1
- package/dist/components/zonos-checkout-finish2.js +40 -10
- package/dist/components/zonos-checkout.js +8 -3
- package/dist/components/zonos-controller.js +11 -50
- package/dist/components/zonos-dialog2.js +1 -1
- package/dist/components/zonos-hello.js +6 -3
- package/dist/components/zonosStore.js +0 -8
- package/dist/esm/{cart-b439be00.js → cart-d81b92ea.js} +4 -4
- package/dist/esm/{getBorderRadius-178a0a05.js → getBorderRadius-77e97943.js} +1 -1
- package/dist/esm/index.js +5 -5
- package/dist/esm/{isDarkColor-416d6047.js → isDarkColor-69090b29.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{localization-a51ccbc2.js → localization-0c5b29fd.js} +2 -2
- package/dist/esm/{submitGtag-521826a2.js → submitGtag-8a0fbd41.js} +2 -2
- package/dist/esm/zonos-address_2.entry.js +5 -5
- package/dist/esm/zonos-badge.entry.js +1 -1
- package/dist/esm/zonos-banner.entry.js +1 -1
- package/dist/esm/zonos-button_2.entry.js +3 -3
- package/dist/esm/zonos-card_2.entry.js +1 -1
- package/dist/esm/zonos-cart-items_10.entry.js +45 -16
- package/dist/esm/zonos-checkout.entry.js +14 -9
- package/dist/esm/zonos-controller.entry.js +14 -54
- package/dist/esm/zonos-country-flag_4.entry.js +3 -3
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +2 -2
- package/dist/esm/zonos-hello.entry.js +8 -5
- package/dist/esm/zonos-icon.entry.js +1 -1
- package/dist/esm/zonos-notification.entry.js +1 -1
- package/dist/esm/zonos-payment.entry.js +5 -5
- package/dist/esm/zonos-shipping-rich-radio.entry.js +2 -2
- package/dist/esm/zonos-text.entry.js +1 -1
- package/dist/esm/{zonosStore-61e74f58.js → zonosStore-34f07ee8.js} +0 -8
- package/dist/esm-es5/{cart-b439be00.js → cart-d81b92ea.js} +1 -1
- package/dist/esm-es5/{getBorderRadius-178a0a05.js → getBorderRadius-77e97943.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{isDarkColor-416d6047.js → isDarkColor-69090b29.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{localization-a51ccbc2.js → localization-0c5b29fd.js} +1 -1
- package/dist/esm-es5/{submitGtag-521826a2.js → submitGtag-8a0fbd41.js} +1 -1
- package/dist/esm-es5/zonos-address_2.entry.js +1 -1
- package/dist/esm-es5/zonos-badge.entry.js +1 -1
- package/dist/esm-es5/zonos-banner.entry.js +1 -1
- package/dist/esm-es5/zonos-button_2.entry.js +1 -1
- package/dist/esm-es5/zonos-card_2.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_10.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag_4.entry.js +1 -1
- package/dist/esm-es5/zonos-elements.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-icon.entry.js +1 -1
- package/dist/esm-es5/zonos-notification.entry.js +1 -1
- package/dist/esm-es5/zonos-payment.entry.js +1 -1
- package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
- package/dist/esm-es5/zonos-text.entry.js +1 -1
- package/dist/esm-es5/{zonosStore-61e74f58.js → zonosStore-34f07ee8.js} +1 -1
- package/dist/scripts/extractZonosQaUrl.js +1 -30
- package/dist/scripts/loadStripe.js +1 -118
- package/dist/scripts/loadZonos.js +1 -565
- package/dist/scripts/stripe.js +1 -126
- package/dist/scripts/zonos.js +1 -565
- package/dist/scripts/zonosBase.js +1 -0
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.d.ts +3 -3
- package/dist/types/components/main/zonos-controller.d.ts +5 -2
- package/dist/types/components/store/zonosStore.d.ts +1 -3
- package/dist/types/components/utils/api/{getZonosSetting.d.ts → getZonosSettings.d.ts} +1 -1
- package/dist/types/components.d.ts +6 -2
- package/dist/types/scripts/{zonos.d.ts → zonosBase.d.ts} +6 -3
- package/dist/types/types/LogErrorRequestBody.d.ts +5 -0
- package/dist/types/types/checkout/CheckoutConfig.d.ts +3 -2
- package/dist/types/types/generated/graphql.customer.types.d.ts +80 -0
- package/dist/types/types/generated/graphql.customer.types.ts +114 -0
- package/dist/types/types/generated/graphql.frontend.types.d.ts +33 -0
- package/dist/types/types/generated/graphql.frontend.types.ts +68 -0
- package/dist/types/types/global.d.ts +10 -2
- package/dist/types/types/hello/HelloConfig.d.ts +0 -1
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/p-02175f85.entry.js +1 -0
- package/dist/zonos-elements/{p-1685c8df.js → p-06a332cd.js} +1 -1
- package/dist/zonos-elements/{p-4ed71bd7.entry.js → p-124857ae.entry.js} +1 -1
- package/dist/zonos-elements/p-17ef815f.entry.js +1 -0
- package/dist/zonos-elements/{p-e98be2d0.system.entry.js → p-1f494581.system.entry.js} +1 -1
- package/dist/zonos-elements/p-24fbe845.system.js +1 -1
- package/dist/zonos-elements/{p-4846796a.js → p-2b41549a.js} +1 -1
- package/dist/zonos-elements/p-2e1e9074.js +1 -0
- package/dist/zonos-elements/{p-2801d868.entry.js → p-3509ffaa.entry.js} +1 -1
- package/dist/zonos-elements/{p-1d4a970b.entry.js → p-3c8763a7.entry.js} +1 -1
- package/dist/zonos-elements/{p-49f09b91.entry.js → p-3e7444c6.entry.js} +1 -1
- package/dist/zonos-elements/{p-55f49f1e.js → p-4b3baf99.js} +1 -1
- package/dist/zonos-elements/{p-a504f64f.system.js → p-5066955b.system.js} +1 -1
- package/dist/zonos-elements/{p-e5ae22a9.system.entry.js → p-53ea93c2.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-f367f2fe.system.entry.js → p-5bada106.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-f141519c.system.entry.js → p-72cfaee2.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-b85be1ab.system.js → p-7730250d.system.js} +1 -1
- package/dist/zonos-elements/p-80748529.system.entry.js +1 -0
- package/dist/zonos-elements/{p-089ba905.js → p-86f22026.js} +1 -1
- package/dist/zonos-elements/{p-a0e36ed3.entry.js → p-88600956.entry.js} +1 -1
- package/dist/zonos-elements/{p-89c210d6.entry.js → p-8b1cb8a4.entry.js} +1 -1
- package/dist/zonos-elements/p-8bd04aaa.entry.js +1 -0
- package/dist/zonos-elements/{p-47390db7.system.entry.js → p-935fa685.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-639396bb.entry.js → p-9c1f19b6.entry.js} +1 -1
- package/dist/zonos-elements/{p-4d93275c.entry.js → p-a063c4b7.entry.js} +1 -1
- package/dist/zonos-elements/p-a174d834.system.js +1 -0
- package/dist/zonos-elements/{p-3c6988d7.js → p-a244579e.js} +1 -1
- package/dist/zonos-elements/{p-24eed2a8.system.js → p-a54d8db3.system.js} +1 -1
- package/dist/zonos-elements/{p-e1f6ab97.entry.js → p-ab00288a.entry.js} +1 -1
- package/dist/zonos-elements/{p-b51de536.system.js → p-ab179c88.system.js} +1 -1
- package/dist/zonos-elements/{p-4bee0bff.system.entry.js → p-b3a71ae4.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d856a200.system.entry.js → p-b3e034bb.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-3cea383b.system.entry.js → p-bb7de2c4.system.entry.js} +1 -1
- package/dist/zonos-elements/p-c0494ed6.entry.js +1 -0
- package/dist/zonos-elements/{p-da060b1c.system.js → p-c1665c4f.system.js} +1 -1
- package/dist/zonos-elements/{p-2f43da39.system.entry.js → p-c1e298d5.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-8c5595d9.system.entry.js → p-c520d819.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c9348bb0.system.entry.js → p-ca875e60.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-b4601210.system.entry.js → p-ccd1794a.system.entry.js} +1 -1
- package/dist/zonos-elements/p-e2c7adaa.system.entry.js +1 -0
- package/dist/zonos-elements/{p-b6148206.entry.js → p-e3bca405.entry.js} +1 -1
- package/dist/zonos-elements/{p-a376a37f.entry.js → p-e58cc024.entry.js} +1 -1
- package/dist/zonos-elements/{p-938803f4.entry.js → p-e6556b0d.entry.js} +1 -1
- package/dist/zonos-elements/{p-d2217f09.system.js → p-ed074fbf.system.js} +1 -1
- package/dist/zonos-elements/{p-560aa686.system.entry.js → p-f1e9b431.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-4a15c5c7.system.entry.js → p-fbc09dae.system.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +9 -6
- package/dist/types/types/online-store/OnlineStoreConfig.d.ts +0 -3
- package/dist/zonos-elements/p-06fb9d1f.system.entry.js +0 -1
- package/dist/zonos-elements/p-19942abb.system.entry.js +0 -1
- package/dist/zonos-elements/p-494c77a7.entry.js +0 -1
- package/dist/zonos-elements/p-8c48b75e.system.js +0 -1
- package/dist/zonos-elements/p-a3a8b5e7.entry.js +0 -1
- package/dist/zonos-elements/p-afe26069.entry.js +0 -1
- package/dist/zonos-elements/p-e9b832c5.entry.js +0 -1
- package/dist/zonos-elements/p-ff95f098.js +0 -1
- /package/dist/collection/types/{online-store/OnlineStoreConfig.js → LogErrorRequestBody.js} +0 -0
|
@@ -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/
|
|
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/
|
|
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
|
};
|
|
@@ -82,6 +82,11 @@ export declare const addressResult: {
|
|
|
82
82
|
readonly Valid: "VALID";
|
|
83
83
|
};
|
|
84
84
|
export type AddressResult = (typeof addressResult)[keyof typeof addressResult];
|
|
85
|
+
export declare const alcoholRecipientType: {
|
|
86
|
+
readonly Consumer: "CONSUMER";
|
|
87
|
+
readonly Licensee: "LICENSEE";
|
|
88
|
+
};
|
|
89
|
+
export type AlcoholRecipientType = (typeof alcoholRecipientType)[keyof typeof alcoholRecipientType];
|
|
85
90
|
export type AmountRange = {
|
|
86
91
|
max?: InputMaybe<Scalars['Decimal']['input']>;
|
|
87
92
|
min?: InputMaybe<Scalars['Decimal']['input']>;
|
|
@@ -101,6 +106,17 @@ export declare const bankAccountType: {
|
|
|
101
106
|
readonly Savings: "SAVINGS";
|
|
102
107
|
};
|
|
103
108
|
export type BankAccountType = (typeof bankAccountType)[keyof typeof bankAccountType];
|
|
109
|
+
export declare const batteryMaterialType: {
|
|
110
|
+
readonly LithiumIon: "LITHIUM_ION";
|
|
111
|
+
readonly LithiumMetal: "LITHIUM_METAL";
|
|
112
|
+
};
|
|
113
|
+
export type BatteryMaterialType = (typeof batteryMaterialType)[keyof typeof batteryMaterialType];
|
|
114
|
+
export declare const batteryPackingType: {
|
|
115
|
+
readonly BatteryInsideEquipment: "BATTERY_INSIDE_EQUIPMENT";
|
|
116
|
+
readonly BatteryOnly: "BATTERY_ONLY";
|
|
117
|
+
readonly BatteryPackagedWithEquipment: "BATTERY_PACKAGED_WITH_EQUIPMENT";
|
|
118
|
+
};
|
|
119
|
+
export type BatteryPackingType = (typeof batteryPackingType)[keyof typeof batteryPackingType];
|
|
104
120
|
export declare const billingOptionCode: {
|
|
105
121
|
readonly DdpAndDdu: "DDP_AND_DDU";
|
|
106
122
|
readonly ShipperOnly: "SHIPPER_ONLY";
|
|
@@ -127,11 +143,21 @@ export declare const carrierAccountApiUsage: {
|
|
|
127
143
|
readonly Rating: "RATING";
|
|
128
144
|
};
|
|
129
145
|
export type CarrierAccountApiUsage = (typeof carrierAccountApiUsage)[keyof typeof carrierAccountApiUsage];
|
|
146
|
+
export declare const carrierAccountIntegrationType: {
|
|
147
|
+
readonly Rest: "REST";
|
|
148
|
+
readonly Soap: "SOAP";
|
|
149
|
+
};
|
|
150
|
+
export type CarrierAccountIntegrationType = (typeof carrierAccountIntegrationType)[keyof typeof carrierAccountIntegrationType];
|
|
130
151
|
export declare const carrierAccountRateType: {
|
|
131
152
|
readonly Negotiated: "NEGOTIATED";
|
|
132
153
|
readonly Retail: "RETAIL";
|
|
133
154
|
};
|
|
134
155
|
export type CarrierAccountRateType = (typeof carrierAccountRateType)[keyof typeof carrierAccountRateType];
|
|
156
|
+
export declare const carrierAccountRegistrationType: {
|
|
157
|
+
readonly Other: "OTHER";
|
|
158
|
+
readonly Zonos: "ZONOS";
|
|
159
|
+
};
|
|
160
|
+
export type CarrierAccountRegistrationType = (typeof carrierAccountRegistrationType)[keyof typeof carrierAccountRegistrationType];
|
|
135
161
|
export declare const carrierAccountUsageCategoryCode: {
|
|
136
162
|
readonly Shipping: "SHIPPING";
|
|
137
163
|
};
|
|
@@ -1039,6 +1065,13 @@ export declare const deMinimisType: {
|
|
|
1039
1065
|
readonly Tax: "TAX";
|
|
1040
1066
|
};
|
|
1041
1067
|
export type DeMinimisType = (typeof deMinimisType)[keyof typeof deMinimisType];
|
|
1068
|
+
export declare const deleteJobStatus: {
|
|
1069
|
+
readonly Completed: "COMPLETED";
|
|
1070
|
+
readonly Error: "ERROR";
|
|
1071
|
+
readonly Initialized: "INITIALIZED";
|
|
1072
|
+
readonly Processing: "PROCESSING";
|
|
1073
|
+
};
|
|
1074
|
+
export type DeleteJobStatus = (typeof deleteJobStatus)[keyof typeof deleteJobStatus];
|
|
1042
1075
|
export declare const deliveryType: {
|
|
1043
1076
|
readonly Consolidated: "CONSOLIDATED";
|
|
1044
1077
|
readonly Courier: "COURIER";
|
|
@@ -1164,6 +1197,13 @@ export declare const exchangeRateType: {
|
|
|
1164
1197
|
readonly MidMarket: "MID_MARKET";
|
|
1165
1198
|
};
|
|
1166
1199
|
export type ExchangeRateType = (typeof exchangeRateType)[keyof typeof exchangeRateType];
|
|
1200
|
+
export declare const exportJobStatus: {
|
|
1201
|
+
readonly Completed: "COMPLETED";
|
|
1202
|
+
readonly Error: "ERROR";
|
|
1203
|
+
readonly Initialized: "INITIALIZED";
|
|
1204
|
+
readonly Processing: "PROCESSING";
|
|
1205
|
+
};
|
|
1206
|
+
export type ExportJobStatus = (typeof exportJobStatus)[keyof typeof exportJobStatus];
|
|
1167
1207
|
export declare const externalServiceTokenType: {
|
|
1168
1208
|
readonly StripePublishableToken: "STRIPE_PUBLISHABLE_TOKEN";
|
|
1169
1209
|
};
|
|
@@ -1418,6 +1458,13 @@ export declare const landedCostAdjustmentType: {
|
|
|
1418
1458
|
readonly Shipping: "SHIPPING";
|
|
1419
1459
|
};
|
|
1420
1460
|
export type LandedCostAdjustmentType = (typeof landedCostAdjustmentType)[keyof typeof landedCostAdjustmentType];
|
|
1461
|
+
export declare const landedCostBillingPartyType: {
|
|
1462
|
+
readonly Customer: "CUSTOMER";
|
|
1463
|
+
readonly Merchant: "MERCHANT";
|
|
1464
|
+
readonly ThirdParty: "THIRD_PARTY";
|
|
1465
|
+
readonly Zonos: "ZONOS";
|
|
1466
|
+
};
|
|
1467
|
+
export type LandedCostBillingPartyType = (typeof landedCostBillingPartyType)[keyof typeof landedCostBillingPartyType];
|
|
1421
1468
|
export declare const landedCostCalculationMethod: {
|
|
1422
1469
|
readonly Dap: "DAP";
|
|
1423
1470
|
readonly Ddp: "DDP";
|
|
@@ -1447,6 +1494,7 @@ export declare const landedCostFeeType: {
|
|
|
1447
1494
|
readonly Item: "ITEM";
|
|
1448
1495
|
readonly Other: "OTHER";
|
|
1449
1496
|
readonly Shipping: "SHIPPING";
|
|
1497
|
+
readonly Tax: "TAX";
|
|
1450
1498
|
readonly ZonosLandedCostGuarantee: "ZONOS_LANDED_COST_GUARANTEE";
|
|
1451
1499
|
};
|
|
1452
1500
|
export type LandedCostFeeType = (typeof landedCostFeeType)[keyof typeof landedCostFeeType];
|
|
@@ -1798,6 +1846,7 @@ export declare const shipmentAmountType: {
|
|
|
1798
1846
|
export type ShipmentAmountType = (typeof shipmentAmountType)[keyof typeof shipmentAmountType];
|
|
1799
1847
|
export declare const shipmentCartonSpecialService: {
|
|
1800
1848
|
readonly Alcohol: "ALCOHOL";
|
|
1849
|
+
readonly Battery: "BATTERY";
|
|
1801
1850
|
readonly BatteryInsideEquipment: "BATTERY_INSIDE_EQUIPMENT";
|
|
1802
1851
|
readonly BatteryOnly: "BATTERY_ONLY";
|
|
1803
1852
|
readonly BatteryPackagedWithEquipment: "BATTERY_PACKAGED_WITH_EQUIPMENT";
|
|
@@ -1828,6 +1877,11 @@ export declare const shipmentStatusType: {
|
|
|
1828
1877
|
readonly Voided: "VOIDED";
|
|
1829
1878
|
};
|
|
1830
1879
|
export type ShipmentStatusType = (typeof shipmentStatusType)[keyof typeof shipmentStatusType];
|
|
1880
|
+
export declare const shipmentType: {
|
|
1881
|
+
readonly Domestic: "DOMESTIC";
|
|
1882
|
+
readonly International: "INTERNATIONAL";
|
|
1883
|
+
};
|
|
1884
|
+
export type ShipmentType = (typeof shipmentType)[keyof typeof shipmentType];
|
|
1831
1885
|
export declare const shippingPaymentType: {
|
|
1832
1886
|
readonly Sender: "SENDER";
|
|
1833
1887
|
readonly ThirdParty: "THIRD_PARTY";
|
|
@@ -1838,6 +1892,14 @@ export declare const shippingRateCalculation: {
|
|
|
1838
1892
|
readonly PerUnit: "PER_UNIT";
|
|
1839
1893
|
};
|
|
1840
1894
|
export type ShippingRateCalculation = (typeof shippingRateCalculation)[keyof typeof shippingRateCalculation];
|
|
1895
|
+
export declare const signatureOptionType: {
|
|
1896
|
+
readonly Adult: "ADULT";
|
|
1897
|
+
readonly Default: "DEFAULT";
|
|
1898
|
+
readonly Direct: "DIRECT";
|
|
1899
|
+
readonly Indirect: "INDIRECT";
|
|
1900
|
+
readonly None: "NONE";
|
|
1901
|
+
};
|
|
1902
|
+
export type SignatureOptionType = (typeof signatureOptionType)[keyof typeof signatureOptionType];
|
|
1841
1903
|
export declare const stripeActiveStatus: {
|
|
1842
1904
|
readonly Active: "ACTIVE";
|
|
1843
1905
|
readonly Inactive: "INACTIVE";
|
|
@@ -1992,9 +2054,19 @@ export declare const wcoVersion: {
|
|
|
1992
2054
|
readonly Wco_1997: "WCO_1997";
|
|
1993
2055
|
readonly Wco_2002: "WCO_2002";
|
|
1994
2056
|
readonly Wco_2007: "WCO_2007";
|
|
2057
|
+
readonly Wco_2012: "WCO_2012";
|
|
1995
2058
|
readonly Wco_2017: "WCO_2017";
|
|
1996
2059
|
readonly Wco_2022: "WCO_2022";
|
|
1997
2060
|
readonly Wco_2027: "WCO_2027";
|
|
2061
|
+
readonly Wco_2032: "WCO_2032";
|
|
2062
|
+
readonly Wco_2037: "WCO_2037";
|
|
2063
|
+
readonly Wco_2042: "WCO_2042";
|
|
2064
|
+
readonly Wco_2047: "WCO_2047";
|
|
2065
|
+
readonly Wco_2052: "WCO_2052";
|
|
2066
|
+
readonly Wco_2057: "WCO_2057";
|
|
2067
|
+
readonly Wco_2062: "WCO_2062";
|
|
2068
|
+
readonly Wco_2067: "WCO_2067";
|
|
2069
|
+
readonly Wco_2072: "WCO_2072";
|
|
1998
2070
|
};
|
|
1999
2071
|
export type WcoVersion = (typeof wcoVersion)[keyof typeof wcoVersion];
|
|
2000
2072
|
export declare const weightUnitCode: {
|
|
@@ -2774,6 +2846,11 @@ export type OrderUpdateAccountOrderNumberMutation = {
|
|
|
2774
2846
|
accountOrderNumber: string | null;
|
|
2775
2847
|
};
|
|
2776
2848
|
};
|
|
2849
|
+
export type GetCheckoutPlaceOrderButtonSelectorQuery = {
|
|
2850
|
+
checkoutSettings: {
|
|
2851
|
+
placeOrderButtonSelector: string | null;
|
|
2852
|
+
} | null;
|
|
2853
|
+
};
|
|
2777
2854
|
export type SdkFunctionWrapper = <T>(action: (requestHeaders?: Record<string, string>) => Promise<T>, operationName: string, operationType?: string) => Promise<T>;
|
|
2778
2855
|
export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): {
|
|
2779
2856
|
BulkClassify(variables?: {
|
|
@@ -2815,5 +2892,8 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
2815
2892
|
ZonosSettings(variables?: {
|
|
2816
2893
|
[x: string]: never;
|
|
2817
2894
|
} | undefined, requestHeaders?: GraphQLClientRequestHeaders): Promise<ZonosSettingsQuery>;
|
|
2895
|
+
getCheckoutPlaceOrderButtonSelector(variables?: {
|
|
2896
|
+
[x: string]: never;
|
|
2897
|
+
} | undefined, requestHeaders?: GraphQLClientRequestHeaders): Promise<GetCheckoutPlaceOrderButtonSelectorQuery>;
|
|
2818
2898
|
};
|
|
2819
2899
|
export type Sdk = ReturnType<typeof getSdk>;
|
|
@@ -62,6 +62,13 @@ export const addressResult = {
|
|
|
62
62
|
} as const;
|
|
63
63
|
|
|
64
64
|
export type AddressResult = (typeof addressResult)[keyof typeof addressResult];
|
|
65
|
+
export const alcoholRecipientType = {
|
|
66
|
+
Consumer: 'CONSUMER',
|
|
67
|
+
Licensee: 'LICENSEE',
|
|
68
|
+
} as const;
|
|
69
|
+
|
|
70
|
+
export type AlcoholRecipientType =
|
|
71
|
+
(typeof alcoholRecipientType)[keyof typeof alcoholRecipientType];
|
|
65
72
|
export type AmountRange = {
|
|
66
73
|
max?: InputMaybe<Scalars['Decimal']['input']>;
|
|
67
74
|
min?: InputMaybe<Scalars['Decimal']['input']>;
|
|
@@ -90,6 +97,22 @@ export const bankAccountType = {
|
|
|
90
97
|
export type BankAccountType =
|
|
91
98
|
(typeof bankAccountType)[keyof typeof bankAccountType];
|
|
92
99
|
|
|
100
|
+
export const batteryMaterialType = {
|
|
101
|
+
LithiumIon: 'LITHIUM_ION',
|
|
102
|
+
LithiumMetal: 'LITHIUM_METAL',
|
|
103
|
+
} as const;
|
|
104
|
+
|
|
105
|
+
export type BatteryMaterialType =
|
|
106
|
+
(typeof batteryMaterialType)[keyof typeof batteryMaterialType];
|
|
107
|
+
export const batteryPackingType = {
|
|
108
|
+
BatteryInsideEquipment: 'BATTERY_INSIDE_EQUIPMENT',
|
|
109
|
+
BatteryOnly: 'BATTERY_ONLY',
|
|
110
|
+
BatteryPackagedWithEquipment: 'BATTERY_PACKAGED_WITH_EQUIPMENT',
|
|
111
|
+
} as const;
|
|
112
|
+
|
|
113
|
+
export type BatteryPackingType =
|
|
114
|
+
(typeof batteryPackingType)[keyof typeof batteryPackingType];
|
|
115
|
+
|
|
93
116
|
export const billingOptionCode = {
|
|
94
117
|
DdpAndDdu: 'DDP_AND_DDU',
|
|
95
118
|
ShipperOnly: 'SHIPPER_ONLY',
|
|
@@ -127,6 +150,13 @@ export const carrierAccountApiUsage = {
|
|
|
127
150
|
export type CarrierAccountApiUsage =
|
|
128
151
|
(typeof carrierAccountApiUsage)[keyof typeof carrierAccountApiUsage];
|
|
129
152
|
|
|
153
|
+
export const carrierAccountIntegrationType = {
|
|
154
|
+
Rest: 'REST',
|
|
155
|
+
Soap: 'SOAP',
|
|
156
|
+
} as const;
|
|
157
|
+
|
|
158
|
+
export type CarrierAccountIntegrationType =
|
|
159
|
+
(typeof carrierAccountIntegrationType)[keyof typeof carrierAccountIntegrationType];
|
|
130
160
|
export const carrierAccountRateType = {
|
|
131
161
|
Negotiated: 'NEGOTIATED',
|
|
132
162
|
Retail: 'RETAIL',
|
|
@@ -134,6 +164,13 @@ export const carrierAccountRateType = {
|
|
|
134
164
|
|
|
135
165
|
export type CarrierAccountRateType =
|
|
136
166
|
(typeof carrierAccountRateType)[keyof typeof carrierAccountRateType];
|
|
167
|
+
export const carrierAccountRegistrationType = {
|
|
168
|
+
Other: 'OTHER',
|
|
169
|
+
Zonos: 'ZONOS',
|
|
170
|
+
} as const;
|
|
171
|
+
|
|
172
|
+
export type CarrierAccountRegistrationType =
|
|
173
|
+
(typeof carrierAccountRegistrationType)[keyof typeof carrierAccountRegistrationType];
|
|
137
174
|
|
|
138
175
|
export const carrierAccountUsageCategoryCode = {
|
|
139
176
|
Shipping: 'SHIPPING',
|
|
@@ -1140,6 +1177,16 @@ export const deMinimisType = {
|
|
|
1140
1177
|
} as const;
|
|
1141
1178
|
|
|
1142
1179
|
export type DeMinimisType = (typeof deMinimisType)[keyof typeof deMinimisType];
|
|
1180
|
+
export const deleteJobStatus = {
|
|
1181
|
+
Completed: 'COMPLETED',
|
|
1182
|
+
Error: 'ERROR',
|
|
1183
|
+
Initialized: 'INITIALIZED',
|
|
1184
|
+
Processing: 'PROCESSING',
|
|
1185
|
+
} as const;
|
|
1186
|
+
|
|
1187
|
+
export type DeleteJobStatus =
|
|
1188
|
+
(typeof deleteJobStatus)[keyof typeof deleteJobStatus];
|
|
1189
|
+
|
|
1143
1190
|
export const deliveryType = {
|
|
1144
1191
|
Consolidated: 'CONSOLIDATED',
|
|
1145
1192
|
Courier: 'COURIER',
|
|
@@ -1302,6 +1349,15 @@ export const exchangeRateType = {
|
|
|
1302
1349
|
|
|
1303
1350
|
export type ExchangeRateType =
|
|
1304
1351
|
(typeof exchangeRateType)[keyof typeof exchangeRateType];
|
|
1352
|
+
export const exportJobStatus = {
|
|
1353
|
+
Completed: 'COMPLETED',
|
|
1354
|
+
Error: 'ERROR',
|
|
1355
|
+
Initialized: 'INITIALIZED',
|
|
1356
|
+
Processing: 'PROCESSING',
|
|
1357
|
+
} as const;
|
|
1358
|
+
|
|
1359
|
+
export type ExportJobStatus =
|
|
1360
|
+
(typeof exportJobStatus)[keyof typeof exportJobStatus];
|
|
1305
1361
|
|
|
1306
1362
|
export const externalServiceTokenType = {
|
|
1307
1363
|
StripePublishableToken: 'STRIPE_PUBLISHABLE_TOKEN',
|
|
@@ -1635,6 +1691,15 @@ export const landedCostAdjustmentType = {
|
|
|
1635
1691
|
|
|
1636
1692
|
export type LandedCostAdjustmentType =
|
|
1637
1693
|
(typeof landedCostAdjustmentType)[keyof typeof landedCostAdjustmentType];
|
|
1694
|
+
export const landedCostBillingPartyType = {
|
|
1695
|
+
Customer: 'CUSTOMER',
|
|
1696
|
+
Merchant: 'MERCHANT',
|
|
1697
|
+
ThirdParty: 'THIRD_PARTY',
|
|
1698
|
+
Zonos: 'ZONOS',
|
|
1699
|
+
} as const;
|
|
1700
|
+
|
|
1701
|
+
export type LandedCostBillingPartyType =
|
|
1702
|
+
(typeof landedCostBillingPartyType)[keyof typeof landedCostBillingPartyType];
|
|
1638
1703
|
export const landedCostCalculationMethod = {
|
|
1639
1704
|
Dap: 'DAP',
|
|
1640
1705
|
Ddp: 'DDP',
|
|
@@ -1669,6 +1734,7 @@ export const landedCostFeeType = {
|
|
|
1669
1734
|
Item: 'ITEM',
|
|
1670
1735
|
Other: 'OTHER',
|
|
1671
1736
|
Shipping: 'SHIPPING',
|
|
1737
|
+
Tax: 'TAX',
|
|
1672
1738
|
ZonosLandedCostGuarantee: 'ZONOS_LANDED_COST_GUARANTEE',
|
|
1673
1739
|
} as const;
|
|
1674
1740
|
|
|
@@ -2103,6 +2169,7 @@ export type ShipmentAmountType =
|
|
|
2103
2169
|
|
|
2104
2170
|
export const shipmentCartonSpecialService = {
|
|
2105
2171
|
Alcohol: 'ALCOHOL',
|
|
2172
|
+
Battery: 'BATTERY',
|
|
2106
2173
|
BatteryInsideEquipment: 'BATTERY_INSIDE_EQUIPMENT',
|
|
2107
2174
|
BatteryOnly: 'BATTERY_ONLY',
|
|
2108
2175
|
BatteryPackagedWithEquipment: 'BATTERY_PACKAGED_WITH_EQUIPMENT',
|
|
@@ -2144,6 +2211,12 @@ export const shipmentStatusType = {
|
|
|
2144
2211
|
export type ShipmentStatusType =
|
|
2145
2212
|
(typeof shipmentStatusType)[keyof typeof shipmentStatusType];
|
|
2146
2213
|
|
|
2214
|
+
export const shipmentType = {
|
|
2215
|
+
Domestic: 'DOMESTIC',
|
|
2216
|
+
International: 'INTERNATIONAL',
|
|
2217
|
+
} as const;
|
|
2218
|
+
|
|
2219
|
+
export type ShipmentType = (typeof shipmentType)[keyof typeof shipmentType];
|
|
2147
2220
|
export const shippingPaymentType = {
|
|
2148
2221
|
Sender: 'SENDER',
|
|
2149
2222
|
ThirdParty: 'THIRD_PARTY',
|
|
@@ -2160,6 +2233,17 @@ export const shippingRateCalculation = {
|
|
|
2160
2233
|
export type ShippingRateCalculation =
|
|
2161
2234
|
(typeof shippingRateCalculation)[keyof typeof shippingRateCalculation];
|
|
2162
2235
|
|
|
2236
|
+
export const signatureOptionType = {
|
|
2237
|
+
Adult: 'ADULT',
|
|
2238
|
+
Default: 'DEFAULT',
|
|
2239
|
+
Direct: 'DIRECT',
|
|
2240
|
+
Indirect: 'INDIRECT',
|
|
2241
|
+
None: 'NONE',
|
|
2242
|
+
} as const;
|
|
2243
|
+
|
|
2244
|
+
export type SignatureOptionType =
|
|
2245
|
+
(typeof signatureOptionType)[keyof typeof signatureOptionType];
|
|
2246
|
+
|
|
2163
2247
|
export const stripeActiveStatus = {
|
|
2164
2248
|
Active: 'ACTIVE',
|
|
2165
2249
|
Inactive: 'INACTIVE',
|
|
@@ -2167,6 +2251,7 @@ export const stripeActiveStatus = {
|
|
|
2167
2251
|
|
|
2168
2252
|
export type StripeActiveStatus =
|
|
2169
2253
|
(typeof stripeActiveStatus)[keyof typeof stripeActiveStatus];
|
|
2254
|
+
|
|
2170
2255
|
export const stripeBillingFrequency = {
|
|
2171
2256
|
Day: 'DAY',
|
|
2172
2257
|
Month: 'MONTH',
|
|
@@ -2350,9 +2435,19 @@ export const wcoVersion = {
|
|
|
2350
2435
|
Wco_1997: 'WCO_1997',
|
|
2351
2436
|
Wco_2002: 'WCO_2002',
|
|
2352
2437
|
Wco_2007: 'WCO_2007',
|
|
2438
|
+
Wco_2012: 'WCO_2012',
|
|
2353
2439
|
Wco_2017: 'WCO_2017',
|
|
2354
2440
|
Wco_2022: 'WCO_2022',
|
|
2355
2441
|
Wco_2027: 'WCO_2027',
|
|
2442
|
+
Wco_2032: 'WCO_2032',
|
|
2443
|
+
Wco_2037: 'WCO_2037',
|
|
2444
|
+
Wco_2042: 'WCO_2042',
|
|
2445
|
+
Wco_2047: 'WCO_2047',
|
|
2446
|
+
Wco_2052: 'WCO_2052',
|
|
2447
|
+
Wco_2057: 'WCO_2057',
|
|
2448
|
+
Wco_2062: 'WCO_2062',
|
|
2449
|
+
Wco_2067: 'WCO_2067',
|
|
2450
|
+
Wco_2072: 'WCO_2072',
|
|
2356
2451
|
} as const;
|
|
2357
2452
|
|
|
2358
2453
|
export type WcoVersion = (typeof wcoVersion)[keyof typeof wcoVersion];
|
|
@@ -3081,6 +3176,10 @@ export type OrderUpdateAccountOrderNumberMutation = {
|
|
|
3081
3176
|
orderUpdateAccountOrderNumber: { accountOrderNumber: string | null };
|
|
3082
3177
|
};
|
|
3083
3178
|
|
|
3179
|
+
export type GetCheckoutPlaceOrderButtonSelectorQuery = {
|
|
3180
|
+
checkoutSettings: { placeOrderButtonSelector: string | null } | null;
|
|
3181
|
+
};
|
|
3182
|
+
|
|
3084
3183
|
export type SdkFunctionWrapper = <T>(
|
|
3085
3184
|
action: (requestHeaders?: Record<string, string>) => Promise<T>,
|
|
3086
3185
|
operationName: string,
|
|
@@ -3280,6 +3379,21 @@ export function getSdk(
|
|
|
3280
3379
|
'query',
|
|
3281
3380
|
);
|
|
3282
3381
|
},
|
|
3382
|
+
getCheckoutPlaceOrderButtonSelector(
|
|
3383
|
+
variables?: { [x: string]: never },
|
|
3384
|
+
requestHeaders?: GraphQLClientRequestHeaders,
|
|
3385
|
+
): Promise<GetCheckoutPlaceOrderButtonSelectorQuery> {
|
|
3386
|
+
return withWrapper(
|
|
3387
|
+
wrappedRequestHeaders =>
|
|
3388
|
+
client.request<GetCheckoutPlaceOrderButtonSelectorQuery>(
|
|
3389
|
+
'',
|
|
3390
|
+
variables,
|
|
3391
|
+
{ ...requestHeaders, ...wrappedRequestHeaders },
|
|
3392
|
+
),
|
|
3393
|
+
'getCheckoutPlaceOrderButtonSelector',
|
|
3394
|
+
'query',
|
|
3395
|
+
);
|
|
3396
|
+
},
|
|
3283
3397
|
};
|
|
3284
3398
|
}
|
|
3285
3399
|
export type Sdk = ReturnType<typeof getSdk>;
|
|
@@ -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: {
|
|
@@ -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: {
|
|
@@ -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/
|
|
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
|
-
|
|
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;
|