@zonos/elements 1.3.154 → 1.3.156
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/dist/cjs/{cart-0ce9e90b.js → cart-79deb872.js} +3 -3
- package/dist/cjs/{getBorderRadius-7d0772bf.js → getBorderRadius-d3032bda.js} +1 -1
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/{isDarkColor-2acf30d1.js → isDarkColor-9f6c3601.js} +1 -1
- package/dist/cjs/{paypal-d4d0bb3c.js → paypal-e79ca280.js} +3 -3
- package/dist/cjs/zonos-address_8.cjs.entry.js +4 -4
- 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_3.cjs.entry.js +3 -3
- package/dist/cjs/zonos-card.cjs.entry.js +2 -2
- package/dist/cjs/zonos-cart-items_13.cjs.entry.js +14 -8
- package/dist/cjs/zonos-checkout.cjs.entry.js +10 -10
- package/dist/cjs/zonos-collapse.cjs.entry.js +1 -1
- package/dist/cjs/zonos-controller.cjs.entry.js +4 -4
- package/dist/cjs/zonos-country-flag.cjs.entry.js +4 -4
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +4 -4
- package/dist/cjs/zonos-empty-state-payment_4.cjs.entry.js +5 -5
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +4 -4
- package/dist/cjs/zonos-hello.cjs.entry.js +4 -4
- package/dist/cjs/zonos-input.cjs.entry.js +2 -2
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +4 -4
- package/dist/cjs/zonos-logo.cjs.entry.js +1 -1
- 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/zonos-toggle.cjs.entry.js +1 -1
- package/dist/cjs/zonos-v-stack.cjs.entry.js +1 -1
- package/dist/cjs/{zonosStore-46809186.js → zonosStore-0b1d27df.js} +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +5 -5
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +9 -3
- package/dist/collection/components/store/zonosStore.js +1 -1
- package/dist/collection/types/generated/graphql.frontend.types.js +2 -0
- package/dist/collection/types/generated/graphql.internal.types.js +85 -5
- package/dist/esm/{cart-eadc7067.js → cart-aee97bf4.js} +3 -3
- package/dist/esm/{getBorderRadius-b32d4218.js → getBorderRadius-9e3ea1de.js} +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/{isDarkColor-10f38df6.js → isDarkColor-95f3ef90.js} +1 -1
- package/dist/esm/{paypal-897e2b5c.js → paypal-4ed46f2f.js} +3 -3
- package/dist/esm/zonos-address_8.entry.js +4 -4
- package/dist/esm/zonos-badge.entry.js +1 -1
- package/dist/esm/zonos-banner.entry.js +1 -1
- package/dist/esm/zonos-button_3.entry.js +3 -3
- package/dist/esm/zonos-card.entry.js +2 -2
- package/dist/esm/zonos-cart-items_13.entry.js +14 -8
- package/dist/esm/zonos-checkout.entry.js +10 -10
- package/dist/esm/zonos-collapse.entry.js +1 -1
- package/dist/esm/zonos-controller.entry.js +4 -4
- package/dist/esm/zonos-country-flag.entry.js +4 -4
- package/dist/esm/zonos-country-select_4.entry.js +4 -4
- package/dist/esm/zonos-empty-state-payment_4.entry.js +5 -5
- package/dist/esm/zonos-hello-dialog.entry.js +4 -4
- package/dist/esm/zonos-hello.entry.js +4 -4
- package/dist/esm/zonos-input.entry.js +2 -2
- package/dist/esm/zonos-language-select_2.entry.js +4 -4
- package/dist/esm/zonos-logo.entry.js +1 -1
- package/dist/esm/zonos-shipping-rich-radio.entry.js +2 -2
- package/dist/esm/zonos-text.entry.js +1 -1
- package/dist/esm/zonos-toggle.entry.js +1 -1
- package/dist/esm/zonos-v-stack.entry.js +1 -1
- package/dist/esm/{zonosStore-44efd080.js → zonosStore-82bb17e6.js} +1 -1
- package/dist/esm-es5/{cart-eadc7067.js → cart-aee97bf4.js} +1 -1
- package/dist/esm-es5/{getBorderRadius-b32d4218.js → getBorderRadius-9e3ea1de.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{isDarkColor-10f38df6.js → isDarkColor-95f3ef90.js} +1 -1
- package/dist/esm-es5/{paypal-897e2b5c.js → paypal-4ed46f2f.js} +1 -1
- package/dist/esm-es5/zonos-address_8.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_3.entry.js +1 -1
- package/dist/esm-es5/zonos-card.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_13.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-collapse.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
- package/dist/esm-es5/zonos-empty-state-payment_4.entry.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-input.entry.js +1 -1
- package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
- package/dist/esm-es5/zonos-logo.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/zonos-toggle.entry.js +1 -1
- package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
- package/dist/esm-es5/{zonosStore-44efd080.js → zonosStore-82bb17e6.js} +1 -1
- package/dist/scripts/index.d.ts +5 -3
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/types/types/checkout/CheckoutConfig.d.ts +3 -3
- package/dist/types/types/generated/graphql.frontend.types.d.ts +2 -0
- package/dist/types/types/generated/graphql.frontend.types.ts +2 -0
- package/dist/types/types/generated/graphql.internal.types.d.ts +123 -14
- package/dist/types/types/generated/graphql.internal.types.ts +150 -18
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-b5c360af.entry.js → p-0160281f.entry.js} +1 -1
- package/dist/zonos-elements/{p-709c7e9e.entry.js → p-1262ad56.entry.js} +1 -1
- package/dist/zonos-elements/p-130a047c.entry.js +1 -0
- package/dist/zonos-elements/{p-b12fbc07.entry.js → p-13579dba.entry.js} +1 -1
- package/dist/zonos-elements/{p-5784a0fc.system.entry.js → p-194bb37a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-28a516f8.system.js → p-2297c165.system.js} +1 -1
- package/dist/zonos-elements/{p-65dda2b5.system.entry.js → p-28c3f736.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-3a213429.system.entry.js → p-2c45f733.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-fc4ebe6b.system.entry.js → p-30852c16.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-3aa4841a.system.entry.js → p-38967d3a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-11063d30.system.entry.js → p-3a3a2f51.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-aaecde60.system.entry.js → p-3cbac6c3.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-1c2669bb.system.js → p-3fba0e48.system.js} +1 -1
- package/dist/zonos-elements/{p-8a4c6a42.js → p-43b922bf.js} +1 -1
- package/dist/zonos-elements/p-46f6e5e9.system.js +1 -1
- package/dist/zonos-elements/{p-0d767751.entry.js → p-4bbf8931.entry.js} +1 -1
- package/dist/zonos-elements/{p-c015be06.system.js → p-532afee0.system.js} +1 -1
- package/dist/zonos-elements/{p-c36f823b.js → p-5b6c5d04.js} +2 -2
- package/dist/zonos-elements/{p-b6bbdb59.system.entry.js → p-5e867a64.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-41e26cc4.system.entry.js → p-5f761f09.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d642f149.system.entry.js → p-673d24f9.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-cdfca133.entry.js → p-683d1598.entry.js} +1 -1
- package/dist/zonos-elements/{p-86e825f0.system.entry.js → p-6d7dc2a2.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-9cf018c8.system.entry.js → p-7448f4a6.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-619c07c6.system.entry.js → p-75311708.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-8cb90d9e.entry.js → p-75b44616.entry.js} +1 -1
- package/dist/zonos-elements/{p-7c7f0c32.entry.js → p-77026d4a.entry.js} +1 -1
- package/dist/zonos-elements/{p-b2292b70.system.entry.js → p-78ea3d1e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c94d82fb.entry.js → p-7fe8c97d.entry.js} +1 -1
- package/dist/zonos-elements/{p-d2f2c685.entry.js → p-822600bd.entry.js} +1 -1
- package/dist/zonos-elements/{p-dec30fa4.entry.js → p-84b2efef.entry.js} +1 -1
- package/dist/zonos-elements/{p-731187da.system.entry.js → p-84f71520.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e02fd9ae.js → p-86da894d.js} +1 -1
- package/dist/zonos-elements/{p-0028d158.entry.js → p-88fc9989.entry.js} +1 -1
- package/dist/zonos-elements/{p-12546668.system.js → p-972261dc.system.js} +1 -1
- package/dist/zonos-elements/{p-ee871492.system.entry.js → p-9c845327.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-6c578d26.js → p-9fcf4d8c.js} +1 -1
- package/dist/zonos-elements/{p-7140439f.system.entry.js → p-b4d04d26.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-3e20fb8f.entry.js → p-baa22bb3.entry.js} +1 -1
- package/dist/zonos-elements/{p-eb192fa3.system.js → p-bba01622.system.js} +1 -1
- package/dist/zonos-elements/{p-7f288336.entry.js → p-bd1a2003.entry.js} +1 -1
- package/dist/zonos-elements/{p-3ea350e8.entry.js → p-c071a4ca.entry.js} +1 -1
- package/dist/zonos-elements/{p-b0616716.js → p-c285d20c.js} +1 -1
- package/dist/zonos-elements/{p-05013308.entry.js → p-c8fa08b8.entry.js} +1 -1
- package/dist/zonos-elements/{p-91fc6c24.system.entry.js → p-c901ef48.system.entry.js} +1 -1
- package/dist/zonos-elements/p-d1a57d82.system.entry.js +1 -0
- package/dist/zonos-elements/{p-57d31762.system.entry.js → p-d3a452d4.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-cbd5d932.entry.js → p-d3be144d.entry.js} +1 -1
- package/dist/zonos-elements/{p-b288c2ed.entry.js → p-da404f8f.entry.js} +1 -1
- package/dist/zonos-elements/{p-36f97fd9.entry.js → p-e1e17979.entry.js} +1 -1
- package/dist/zonos-elements/{p-3e3e7800.entry.js → p-e477f1b1.entry.js} +1 -1
- package/dist/zonos-elements/{p-5d9c5413.entry.js → p-e47ed595.entry.js} +1 -1
- package/dist/zonos-elements/{p-8fe71612.system.entry.js → p-eefadc0d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-32912caf.system.js → p-fb2a884f.system.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/zonos-elements/p-764e5c78.entry.js +0 -1
- package/dist/zonos-elements/p-b1d2f586.system.entry.js +0 -1
|
@@ -201,6 +201,12 @@ export declare const apiUsageRecordType: {
|
|
|
201
201
|
readonly ShipmentRating: "SHIPMENT_RATING";
|
|
202
202
|
};
|
|
203
203
|
export type ApiUsageRecordType = (typeof apiUsageRecordType)[keyof typeof apiUsageRecordType];
|
|
204
|
+
export declare const auditLogChangeType: {
|
|
205
|
+
readonly Create: "CREATE";
|
|
206
|
+
readonly Delete: "DELETE";
|
|
207
|
+
readonly Update: "UPDATE";
|
|
208
|
+
};
|
|
209
|
+
export type AuditLogChangeType = (typeof auditLogChangeType)[keyof typeof auditLogChangeType];
|
|
204
210
|
export declare const batteryMaterialType: {
|
|
205
211
|
readonly LithiumIon: "LITHIUM_ION";
|
|
206
212
|
readonly LithiumMetal: "LITHIUM_METAL";
|
|
@@ -1251,6 +1257,11 @@ export declare const currencySymbolLocation: {
|
|
|
1251
1257
|
readonly Before: "BEFORE";
|
|
1252
1258
|
};
|
|
1253
1259
|
export type CurrencySymbolLocation = (typeof currencySymbolLocation)[keyof typeof currencySymbolLocation];
|
|
1260
|
+
export declare const currencyVisibilityStatus: {
|
|
1261
|
+
readonly All: "ALL";
|
|
1262
|
+
readonly Destination: "DESTINATION";
|
|
1263
|
+
};
|
|
1264
|
+
export type CurrencyVisibilityStatus = (typeof currencyVisibilityStatus)[keyof typeof currencyVisibilityStatus];
|
|
1254
1265
|
export declare const customsDocumentCarrier: {
|
|
1255
1266
|
readonly Dhl: "DHL";
|
|
1256
1267
|
readonly Fedex: "FEDEX";
|
|
@@ -1394,6 +1405,11 @@ export declare const documentUsage: {
|
|
|
1394
1405
|
readonly PricingDocuments: "PRICING_DOCUMENTS";
|
|
1395
1406
|
};
|
|
1396
1407
|
export type DocumentUsage = (typeof documentUsage)[keyof typeof documentUsage];
|
|
1408
|
+
export declare const domesticCheckoutStatus: {
|
|
1409
|
+
readonly Disabled: "DISABLED";
|
|
1410
|
+
readonly Enabled: "ENABLED";
|
|
1411
|
+
};
|
|
1412
|
+
export type DomesticCheckoutStatus = (typeof domesticCheckoutStatus)[keyof typeof domesticCheckoutStatus];
|
|
1397
1413
|
export declare const dutyTaxFeeConfiguration: {
|
|
1398
1414
|
readonly ExcludeAll: "EXCLUDE_ALL";
|
|
1399
1415
|
readonly ExcludeDuty: "EXCLUDE_DUTY";
|
|
@@ -1450,6 +1466,21 @@ export declare const endOfDayBehavior: {
|
|
|
1450
1466
|
readonly Required: "REQUIRED";
|
|
1451
1467
|
};
|
|
1452
1468
|
export type EndOfDayBehavior = (typeof endOfDayBehavior)[keyof typeof endOfDayBehavior];
|
|
1469
|
+
export declare const entityType: {
|
|
1470
|
+
readonly AppearanceSetting: "APPEARANCE_SETTING";
|
|
1471
|
+
readonly CarrierAccount: "CARRIER_ACCOUNT";
|
|
1472
|
+
readonly CheckoutSetting: "CHECKOUT_SETTING";
|
|
1473
|
+
readonly ExternalFulfillmentSetting: "EXTERNAL_FULFILLMENT_SETTING";
|
|
1474
|
+
readonly FulfillmentCenter: "FULFILLMENT_CENTER";
|
|
1475
|
+
readonly ItemSetting: "ITEM_SETTING";
|
|
1476
|
+
readonly LandedCostSetting: "LANDED_COST_SETTING";
|
|
1477
|
+
readonly RateChart: "RATE_CHART";
|
|
1478
|
+
readonly Rule: "RULE";
|
|
1479
|
+
readonly ShippingProfile: "SHIPPING_PROFILE";
|
|
1480
|
+
readonly ShippingZone: "SHIPPING_ZONE";
|
|
1481
|
+
readonly Unknown: "UNKNOWN";
|
|
1482
|
+
};
|
|
1483
|
+
export type EntityType = (typeof entityType)[keyof typeof entityType];
|
|
1453
1484
|
export declare const errorDetail: {
|
|
1454
1485
|
readonly DeadlineExceeded: "DEADLINE_EXCEEDED";
|
|
1455
1486
|
readonly EnhanceYourCalm: "ENHANCE_YOUR_CALM";
|
|
@@ -1479,6 +1510,8 @@ export type ErrorType = (typeof errorType)[keyof typeof errorType];
|
|
|
1479
1510
|
export declare const exchangeRateType: {
|
|
1480
1511
|
readonly Guaranteed: "GUARANTEED";
|
|
1481
1512
|
readonly MidMarket: "MID_MARKET";
|
|
1513
|
+
readonly ProcessorQuoted: "PROCESSOR_QUOTED";
|
|
1514
|
+
readonly Settled: "SETTLED";
|
|
1482
1515
|
};
|
|
1483
1516
|
export type ExchangeRateType = (typeof exchangeRateType)[keyof typeof exchangeRateType];
|
|
1484
1517
|
export declare const exportJobStatus: {
|
|
@@ -1650,12 +1683,6 @@ export declare const inclusivePriceHistoryCsvJobStatus: {
|
|
|
1650
1683
|
readonly Processing: "PROCESSING";
|
|
1651
1684
|
};
|
|
1652
1685
|
export type InclusivePriceHistoryCsvJobStatus = (typeof inclusivePriceHistoryCsvJobStatus)[keyof typeof inclusivePriceHistoryCsvJobStatus];
|
|
1653
|
-
export declare const inclusivePriceHistorySource: {
|
|
1654
|
-
readonly Platform: "PLATFORM";
|
|
1655
|
-
readonly UserInput: "USER_INPUT";
|
|
1656
|
-
readonly Zonos: "ZONOS";
|
|
1657
|
-
};
|
|
1658
|
-
export type InclusivePriceHistorySource = (typeof inclusivePriceHistorySource)[keyof typeof inclusivePriceHistorySource];
|
|
1659
1686
|
export declare const inclusivePriceSettingAdjustmentStatus: {
|
|
1660
1687
|
readonly Excluded: "EXCLUDED";
|
|
1661
1688
|
readonly Included: "INCLUDED";
|
|
@@ -1753,6 +1780,12 @@ export declare const invoiceStatus: {
|
|
|
1753
1780
|
readonly Voided: "VOIDED";
|
|
1754
1781
|
};
|
|
1755
1782
|
export type InvoiceStatus = (typeof invoiceStatus)[keyof typeof invoiceStatus];
|
|
1783
|
+
export declare const itemAmountTargetType: {
|
|
1784
|
+
readonly MerchantBase: "MERCHANT_BASE";
|
|
1785
|
+
readonly MerchantProvided: "MERCHANT_PROVIDED";
|
|
1786
|
+
readonly ZonosBase: "ZONOS_BASE";
|
|
1787
|
+
};
|
|
1788
|
+
export type ItemAmountTargetType = (typeof itemAmountTargetType)[keyof typeof itemAmountTargetType];
|
|
1756
1789
|
export declare const itemKeyPreference: {
|
|
1757
1790
|
readonly None: "NONE";
|
|
1758
1791
|
readonly ProductId: "PRODUCT_ID";
|
|
@@ -1775,6 +1808,13 @@ export declare const itemRestrictionAction: {
|
|
|
1775
1808
|
readonly RestrictionsApply: "RESTRICTIONS_APPLY";
|
|
1776
1809
|
};
|
|
1777
1810
|
export type ItemRestrictionAction = (typeof itemRestrictionAction)[keyof typeof itemRestrictionAction];
|
|
1811
|
+
export declare const itemRestrictionCarrier: {
|
|
1812
|
+
readonly Dhl: "DHL";
|
|
1813
|
+
readonly Fedex: "FEDEX";
|
|
1814
|
+
readonly Other: "OTHER";
|
|
1815
|
+
readonly Ups: "UPS";
|
|
1816
|
+
};
|
|
1817
|
+
export type ItemRestrictionCarrier = (typeof itemRestrictionCarrier)[keyof typeof itemRestrictionCarrier];
|
|
1778
1818
|
export declare const itemRestrictionType: {
|
|
1779
1819
|
readonly Observation: "OBSERVATION";
|
|
1780
1820
|
readonly Prohibition: "PROHIBITION";
|
|
@@ -1814,6 +1854,7 @@ export declare const itemValueSource: {
|
|
|
1814
1854
|
readonly Fallback: "FALLBACK";
|
|
1815
1855
|
readonly Hybrid: "HYBRID";
|
|
1816
1856
|
readonly OrganizationSetting: "ORGANIZATION_SETTING";
|
|
1857
|
+
readonly TariffCompleted: "TARIFF_COMPLETED";
|
|
1817
1858
|
readonly UserProvided: "USER_PROVIDED";
|
|
1818
1859
|
};
|
|
1819
1860
|
export type ItemValueSource = (typeof itemValueSource)[keyof typeof itemValueSource];
|
|
@@ -2369,6 +2410,11 @@ export declare const pickupCategory: {
|
|
|
2369
2410
|
readonly SameDayCity: "SAME_DAY_CITY";
|
|
2370
2411
|
};
|
|
2371
2412
|
export type PickupCategory = (typeof pickupCategory)[keyof typeof pickupCategory];
|
|
2413
|
+
export declare const pluginCredentialType: {
|
|
2414
|
+
readonly Private: "PRIVATE";
|
|
2415
|
+
readonly Public: "PUBLIC";
|
|
2416
|
+
};
|
|
2417
|
+
export type PluginCredentialType = (typeof pluginCredentialType)[keyof typeof pluginCredentialType];
|
|
2372
2418
|
export declare const priceAdjustmentType: {
|
|
2373
2419
|
readonly Fixed: "FIXED";
|
|
2374
2420
|
readonly Percentage: "PERCENTAGE";
|
|
@@ -2381,6 +2427,12 @@ export declare const processingStatusCode: {
|
|
|
2381
2427
|
readonly Voided: "VOIDED";
|
|
2382
2428
|
};
|
|
2383
2429
|
export type ProcessingStatusCode = (typeof processingStatusCode)[keyof typeof processingStatusCode];
|
|
2430
|
+
export declare const proofOfDeliveryType: {
|
|
2431
|
+
readonly Document: "DOCUMENT";
|
|
2432
|
+
readonly NoSignatureRequired: "NO_SIGNATURE_REQUIRED";
|
|
2433
|
+
readonly Signature: "SIGNATURE";
|
|
2434
|
+
};
|
|
2435
|
+
export type ProofOfDeliveryType = (typeof proofOfDeliveryType)[keyof typeof proofOfDeliveryType];
|
|
2384
2436
|
export declare const propertyType: {
|
|
2385
2437
|
readonly Commercial: "COMMERCIAL";
|
|
2386
2438
|
readonly Residental: "RESIDENTAL";
|
|
@@ -2430,6 +2482,26 @@ export declare const serviceLevelAvailability: {
|
|
|
2430
2482
|
readonly General: "GENERAL";
|
|
2431
2483
|
};
|
|
2432
2484
|
export type ServiceLevelAvailability = (typeof serviceLevelAvailability)[keyof typeof serviceLevelAvailability];
|
|
2485
|
+
export declare const serviceLevelClearanceType: {
|
|
2486
|
+
readonly Consolidated: "CONSOLIDATED";
|
|
2487
|
+
readonly Courier: "COURIER";
|
|
2488
|
+
readonly Postal: "POSTAL";
|
|
2489
|
+
};
|
|
2490
|
+
export type ServiceLevelClearanceType = (typeof serviceLevelClearanceType)[keyof typeof serviceLevelClearanceType];
|
|
2491
|
+
export declare const serviceLevelCountryCompatible: {
|
|
2492
|
+
readonly Compatible: "COMPATIBLE";
|
|
2493
|
+
readonly Force: "FORCE";
|
|
2494
|
+
readonly LcgForce: "LCG_FORCE";
|
|
2495
|
+
readonly NonCompatible: "NON_COMPATIBLE";
|
|
2496
|
+
};
|
|
2497
|
+
export type ServiceLevelCountryCompatible = (typeof serviceLevelCountryCompatible)[keyof typeof serviceLevelCountryCompatible];
|
|
2498
|
+
export declare const serviceLevelCountryDeliveryDuty: {
|
|
2499
|
+
readonly Both: "BOTH";
|
|
2500
|
+
readonly Ddp: "DDP";
|
|
2501
|
+
readonly Ddu: "DDU";
|
|
2502
|
+
readonly None: "NONE";
|
|
2503
|
+
};
|
|
2504
|
+
export type ServiceLevelCountryDeliveryDuty = (typeof serviceLevelCountryDeliveryDuty)[keyof typeof serviceLevelCountryDeliveryDuty];
|
|
2433
2505
|
export declare const shipmentAmountType: {
|
|
2434
2506
|
readonly Buffer: "BUFFER";
|
|
2435
2507
|
readonly Discount: "DISCOUNT";
|
|
@@ -2455,6 +2527,12 @@ export declare const shipmentConsolidationStatus: {
|
|
|
2455
2527
|
readonly Open: "OPEN";
|
|
2456
2528
|
};
|
|
2457
2529
|
export type ShipmentConsolidationStatus = (typeof shipmentConsolidationStatus)[keyof typeof shipmentConsolidationStatus];
|
|
2530
|
+
export declare const shipmentRatingAmountTargetType: {
|
|
2531
|
+
readonly MerchantBase: "MERCHANT_BASE";
|
|
2532
|
+
readonly MerchantProvided: "MERCHANT_PROVIDED";
|
|
2533
|
+
readonly ZonosBase: "ZONOS_BASE";
|
|
2534
|
+
};
|
|
2535
|
+
export type ShipmentRatingAmountTargetType = (typeof shipmentRatingAmountTargetType)[keyof typeof shipmentRatingAmountTargetType];
|
|
2458
2536
|
export type ShipmentRatingBatteryDetail = {
|
|
2459
2537
|
materialType: ShipmentRatingBatteryMaterialType;
|
|
2460
2538
|
packingType: ShipmentRatingBatteryPackingType;
|
|
@@ -2482,6 +2560,11 @@ export declare const shipmentRatingSignatureOptionType: {
|
|
|
2482
2560
|
readonly Indirect: "INDIRECT";
|
|
2483
2561
|
};
|
|
2484
2562
|
export type ShipmentRatingSignatureOptionType = (typeof shipmentRatingSignatureOptionType)[keyof typeof shipmentRatingSignatureOptionType];
|
|
2563
|
+
export declare const shipmentRatingSource: {
|
|
2564
|
+
readonly ApiRequest: "API_REQUEST";
|
|
2565
|
+
readonly Checkout: "CHECKOUT";
|
|
2566
|
+
};
|
|
2567
|
+
export type ShipmentRatingSource = (typeof shipmentRatingSource)[keyof typeof shipmentRatingSource];
|
|
2485
2568
|
export type ShipmentRatingSpecialServiceDetail = {
|
|
2486
2569
|
batteryDetail?: InputMaybe<ShipmentRatingBatteryDetail>;
|
|
2487
2570
|
serviceTypes: Array<ShipmentRatingSpecialServiceType>;
|
|
@@ -2659,6 +2742,7 @@ export declare const taxIdType: {
|
|
|
2659
2742
|
readonly Npwp: "NPWP";
|
|
2660
2743
|
readonly Osr: "OSR";
|
|
2661
2744
|
readonly Pan: "PAN";
|
|
2745
|
+
readonly Pcc: "PCC";
|
|
2662
2746
|
readonly Pccc: "PCCC";
|
|
2663
2747
|
readonly Rfc: "RFC";
|
|
2664
2748
|
readonly Run: "RUN";
|
|
@@ -2696,6 +2780,15 @@ export declare const trackingEventTypeCode: {
|
|
|
2696
2780
|
readonly PreTransit: "PRE_TRANSIT";
|
|
2697
2781
|
};
|
|
2698
2782
|
export type TrackingEventTypeCode = (typeof trackingEventTypeCode)[keyof typeof trackingEventTypeCode];
|
|
2783
|
+
export declare const trackingStatusType: {
|
|
2784
|
+
readonly Cancelled: "CANCELLED";
|
|
2785
|
+
readonly Created: "CREATED";
|
|
2786
|
+
readonly Delivered: "DELIVERED";
|
|
2787
|
+
readonly Exception: "EXCEPTION";
|
|
2788
|
+
readonly InTransit: "IN_TRANSIT";
|
|
2789
|
+
readonly Unknown: "UNKNOWN";
|
|
2790
|
+
};
|
|
2791
|
+
export type TrackingStatusType = (typeof trackingStatusType)[keyof typeof trackingStatusType];
|
|
2699
2792
|
export declare const trackingType: {
|
|
2700
2793
|
readonly Package: "PACKAGE";
|
|
2701
2794
|
readonly Shipment: "SHIPMENT";
|
|
@@ -3172,6 +3265,15 @@ export type FulfillmentCenterQuery = {
|
|
|
3172
3265
|
};
|
|
3173
3266
|
export type PartyInfoQuery = {
|
|
3174
3267
|
party: {
|
|
3268
|
+
location: {
|
|
3269
|
+
administrativeArea: string | null;
|
|
3270
|
+
administrativeAreaCode: string | null;
|
|
3271
|
+
countryCode: CountryCode;
|
|
3272
|
+
line1: string | null;
|
|
3273
|
+
line2: string | null;
|
|
3274
|
+
locality: string | null;
|
|
3275
|
+
postalCode: string | null;
|
|
3276
|
+
} | null;
|
|
3175
3277
|
person: {
|
|
3176
3278
|
email: string | null;
|
|
3177
3279
|
firstName: string | null;
|
|
@@ -3536,14 +3638,15 @@ export type ZonosSettingsQuery = {
|
|
|
3536
3638
|
createdAt: string;
|
|
3537
3639
|
createdBy: string;
|
|
3538
3640
|
customHTML: string;
|
|
3641
|
+
defaultCartExpiration: number;
|
|
3539
3642
|
disabledCountries: Array<CountryCode> | null;
|
|
3540
|
-
updatedAt: string;
|
|
3541
3643
|
externalServiceTokens: Array<{
|
|
3542
3644
|
token: string;
|
|
3543
3645
|
type: ExternalServiceTokenType;
|
|
3544
3646
|
}>;
|
|
3545
|
-
id: string;
|
|
3546
3647
|
mode: Mode;
|
|
3648
|
+
id: string;
|
|
3649
|
+
updatedAt: string;
|
|
3547
3650
|
orderNotifications: {
|
|
3548
3651
|
abandonedCart: {
|
|
3549
3652
|
delay: number;
|
|
@@ -3622,17 +3725,18 @@ export type CheckoutSettingFragment = {
|
|
|
3622
3725
|
createdAt: string;
|
|
3623
3726
|
createdBy: string;
|
|
3624
3727
|
customHTML: string;
|
|
3728
|
+
defaultCartExpiration: number;
|
|
3625
3729
|
disabledCountries: Array<CountryCode> | null;
|
|
3626
|
-
|
|
3627
|
-
status: ExternalPaymentMethodStatus;
|
|
3628
|
-
type: ExternalPaymentMethodType;
|
|
3629
|
-
}> | null;
|
|
3730
|
+
mode: Mode;
|
|
3630
3731
|
externalServiceTokens: Array<{
|
|
3631
3732
|
token: string;
|
|
3632
3733
|
type: ExternalServiceTokenType;
|
|
3633
3734
|
}>;
|
|
3634
3735
|
id: string;
|
|
3635
|
-
|
|
3736
|
+
externalPaymentMethods: Array<{
|
|
3737
|
+
status: ExternalPaymentMethodStatus;
|
|
3738
|
+
type: ExternalPaymentMethodType;
|
|
3739
|
+
}> | null;
|
|
3636
3740
|
orderNotifications: {
|
|
3637
3741
|
abandonedCart: {
|
|
3638
3742
|
delay: number;
|
|
@@ -3932,7 +4036,12 @@ export type CartQuery = {
|
|
|
3932
4036
|
key: string;
|
|
3933
4037
|
value: string;
|
|
3934
4038
|
}>;
|
|
3935
|
-
|
|
4039
|
+
organization: {
|
|
4040
|
+
id: string;
|
|
4041
|
+
references: {
|
|
4042
|
+
storeId: number | null;
|
|
4043
|
+
} | null;
|
|
4044
|
+
} | null;
|
|
3936
4045
|
} | null;
|
|
3937
4046
|
};
|
|
3938
4047
|
export type GetCartOrganizationInfoQuery = {
|
|
@@ -217,6 +217,15 @@ export const apiUsageRecordType = {
|
|
|
217
217
|
export type ApiUsageRecordType =
|
|
218
218
|
(typeof apiUsageRecordType)[keyof typeof apiUsageRecordType];
|
|
219
219
|
|
|
220
|
+
export const auditLogChangeType = {
|
|
221
|
+
Create: 'CREATE',
|
|
222
|
+
Delete: 'DELETE',
|
|
223
|
+
Update: 'UPDATE',
|
|
224
|
+
} as const;
|
|
225
|
+
|
|
226
|
+
export type AuditLogChangeType =
|
|
227
|
+
(typeof auditLogChangeType)[keyof typeof auditLogChangeType];
|
|
228
|
+
|
|
220
229
|
export const batteryMaterialType = {
|
|
221
230
|
LithiumIon: 'LITHIUM_ION',
|
|
222
231
|
LithiumMetal: 'LITHIUM_METAL',
|
|
@@ -515,7 +524,6 @@ export const catalogItemSource = {
|
|
|
515
524
|
|
|
516
525
|
export type CatalogItemSource =
|
|
517
526
|
(typeof catalogItemSource)[keyof typeof catalogItemSource];
|
|
518
|
-
|
|
519
527
|
export const catalogItemUpdateMethod = {
|
|
520
528
|
All: 'ALL',
|
|
521
529
|
NonNull: 'NON_NULL',
|
|
@@ -1432,6 +1440,13 @@ export const currencySymbolLocation = {
|
|
|
1432
1440
|
|
|
1433
1441
|
export type CurrencySymbolLocation =
|
|
1434
1442
|
(typeof currencySymbolLocation)[keyof typeof currencySymbolLocation];
|
|
1443
|
+
export const currencyVisibilityStatus = {
|
|
1444
|
+
All: 'ALL',
|
|
1445
|
+
Destination: 'DESTINATION',
|
|
1446
|
+
} as const;
|
|
1447
|
+
|
|
1448
|
+
export type CurrencyVisibilityStatus =
|
|
1449
|
+
(typeof currencyVisibilityStatus)[keyof typeof currencyVisibilityStatus];
|
|
1435
1450
|
|
|
1436
1451
|
export const customsDocumentCarrier = {
|
|
1437
1452
|
Dhl: 'DHL',
|
|
@@ -1619,6 +1634,13 @@ export const documentUsage = {
|
|
|
1619
1634
|
} as const;
|
|
1620
1635
|
|
|
1621
1636
|
export type DocumentUsage = (typeof documentUsage)[keyof typeof documentUsage];
|
|
1637
|
+
export const domesticCheckoutStatus = {
|
|
1638
|
+
Disabled: 'DISABLED',
|
|
1639
|
+
Enabled: 'ENABLED',
|
|
1640
|
+
} as const;
|
|
1641
|
+
|
|
1642
|
+
export type DomesticCheckoutStatus =
|
|
1643
|
+
(typeof domesticCheckoutStatus)[keyof typeof domesticCheckoutStatus];
|
|
1622
1644
|
|
|
1623
1645
|
export const dutyTaxFeeConfiguration = {
|
|
1624
1646
|
ExcludeAll: 'EXCLUDE_ALL',
|
|
@@ -1694,6 +1716,22 @@ export const endOfDayBehavior = {
|
|
|
1694
1716
|
|
|
1695
1717
|
export type EndOfDayBehavior =
|
|
1696
1718
|
(typeof endOfDayBehavior)[keyof typeof endOfDayBehavior];
|
|
1719
|
+
export const entityType = {
|
|
1720
|
+
AppearanceSetting: 'APPEARANCE_SETTING',
|
|
1721
|
+
CarrierAccount: 'CARRIER_ACCOUNT',
|
|
1722
|
+
CheckoutSetting: 'CHECKOUT_SETTING',
|
|
1723
|
+
ExternalFulfillmentSetting: 'EXTERNAL_FULFILLMENT_SETTING',
|
|
1724
|
+
FulfillmentCenter: 'FULFILLMENT_CENTER',
|
|
1725
|
+
ItemSetting: 'ITEM_SETTING',
|
|
1726
|
+
LandedCostSetting: 'LANDED_COST_SETTING',
|
|
1727
|
+
RateChart: 'RATE_CHART',
|
|
1728
|
+
Rule: 'RULE',
|
|
1729
|
+
ShippingProfile: 'SHIPPING_PROFILE',
|
|
1730
|
+
ShippingZone: 'SHIPPING_ZONE',
|
|
1731
|
+
Unknown: 'UNKNOWN',
|
|
1732
|
+
} as const;
|
|
1733
|
+
|
|
1734
|
+
export type EntityType = (typeof entityType)[keyof typeof entityType];
|
|
1697
1735
|
export const errorDetail = {
|
|
1698
1736
|
DeadlineExceeded: 'DEADLINE_EXCEEDED',
|
|
1699
1737
|
EnhanceYourCalm: 'ENHANCE_YOUR_CALM',
|
|
@@ -1726,6 +1764,8 @@ export type ErrorType = (typeof errorType)[keyof typeof errorType];
|
|
|
1726
1764
|
export const exchangeRateType = {
|
|
1727
1765
|
Guaranteed: 'GUARANTEED',
|
|
1728
1766
|
MidMarket: 'MID_MARKET',
|
|
1767
|
+
ProcessorQuoted: 'PROCESSOR_QUOTED',
|
|
1768
|
+
Settled: 'SETTLED',
|
|
1729
1769
|
} as const;
|
|
1730
1770
|
|
|
1731
1771
|
export type ExchangeRateType =
|
|
@@ -1962,15 +2002,6 @@ export const inclusivePriceHistoryCsvJobStatus = {
|
|
|
1962
2002
|
export type InclusivePriceHistoryCsvJobStatus =
|
|
1963
2003
|
(typeof inclusivePriceHistoryCsvJobStatus)[keyof typeof inclusivePriceHistoryCsvJobStatus];
|
|
1964
2004
|
|
|
1965
|
-
export const inclusivePriceHistorySource = {
|
|
1966
|
-
Platform: 'PLATFORM',
|
|
1967
|
-
UserInput: 'USER_INPUT',
|
|
1968
|
-
Zonos: 'ZONOS',
|
|
1969
|
-
} as const;
|
|
1970
|
-
|
|
1971
|
-
export type InclusivePriceHistorySource =
|
|
1972
|
-
(typeof inclusivePriceHistorySource)[keyof typeof inclusivePriceHistorySource];
|
|
1973
|
-
|
|
1974
2005
|
export const inclusivePriceSettingAdjustmentStatus = {
|
|
1975
2006
|
Excluded: 'EXCLUDED',
|
|
1976
2007
|
Included: 'INCLUDED',
|
|
@@ -2090,6 +2121,14 @@ export const invoiceStatus = {
|
|
|
2090
2121
|
} as const;
|
|
2091
2122
|
|
|
2092
2123
|
export type InvoiceStatus = (typeof invoiceStatus)[keyof typeof invoiceStatus];
|
|
2124
|
+
export const itemAmountTargetType = {
|
|
2125
|
+
MerchantBase: 'MERCHANT_BASE',
|
|
2126
|
+
MerchantProvided: 'MERCHANT_PROVIDED',
|
|
2127
|
+
ZonosBase: 'ZONOS_BASE',
|
|
2128
|
+
} as const;
|
|
2129
|
+
|
|
2130
|
+
export type ItemAmountTargetType =
|
|
2131
|
+
(typeof itemAmountTargetType)[keyof typeof itemAmountTargetType];
|
|
2093
2132
|
|
|
2094
2133
|
export const itemKeyPreference = {
|
|
2095
2134
|
None: 'NONE',
|
|
@@ -2122,6 +2161,16 @@ export const itemRestrictionAction = {
|
|
|
2122
2161
|
export type ItemRestrictionAction =
|
|
2123
2162
|
(typeof itemRestrictionAction)[keyof typeof itemRestrictionAction];
|
|
2124
2163
|
|
|
2164
|
+
export const itemRestrictionCarrier = {
|
|
2165
|
+
Dhl: 'DHL',
|
|
2166
|
+
Fedex: 'FEDEX',
|
|
2167
|
+
Other: 'OTHER',
|
|
2168
|
+
Ups: 'UPS',
|
|
2169
|
+
} as const;
|
|
2170
|
+
|
|
2171
|
+
export type ItemRestrictionCarrier =
|
|
2172
|
+
(typeof itemRestrictionCarrier)[keyof typeof itemRestrictionCarrier];
|
|
2173
|
+
|
|
2125
2174
|
export const itemRestrictionType = {
|
|
2126
2175
|
Observation: 'OBSERVATION',
|
|
2127
2176
|
Prohibition: 'PROHIBITION',
|
|
@@ -2168,6 +2217,7 @@ export const itemValueSource = {
|
|
|
2168
2217
|
Fallback: 'FALLBACK',
|
|
2169
2218
|
Hybrid: 'HYBRID',
|
|
2170
2219
|
OrganizationSetting: 'ORGANIZATION_SETTING',
|
|
2220
|
+
TariffCompleted: 'TARIFF_COMPLETED',
|
|
2171
2221
|
UserProvided: 'USER_PROVIDED',
|
|
2172
2222
|
} as const;
|
|
2173
2223
|
|
|
@@ -2875,6 +2925,13 @@ export const pickupCategory = {
|
|
|
2875
2925
|
|
|
2876
2926
|
export type PickupCategory =
|
|
2877
2927
|
(typeof pickupCategory)[keyof typeof pickupCategory];
|
|
2928
|
+
export const pluginCredentialType = {
|
|
2929
|
+
Private: 'PRIVATE',
|
|
2930
|
+
Public: 'PUBLIC',
|
|
2931
|
+
} as const;
|
|
2932
|
+
|
|
2933
|
+
export type PluginCredentialType =
|
|
2934
|
+
(typeof pluginCredentialType)[keyof typeof pluginCredentialType];
|
|
2878
2935
|
export const priceAdjustmentType = {
|
|
2879
2936
|
Fixed: 'FIXED',
|
|
2880
2937
|
Percentage: 'PERCENTAGE',
|
|
@@ -2891,6 +2948,14 @@ export const processingStatusCode = {
|
|
|
2891
2948
|
|
|
2892
2949
|
export type ProcessingStatusCode =
|
|
2893
2950
|
(typeof processingStatusCode)[keyof typeof processingStatusCode];
|
|
2951
|
+
export const proofOfDeliveryType = {
|
|
2952
|
+
Document: 'DOCUMENT',
|
|
2953
|
+
NoSignatureRequired: 'NO_SIGNATURE_REQUIRED',
|
|
2954
|
+
Signature: 'SIGNATURE',
|
|
2955
|
+
} as const;
|
|
2956
|
+
|
|
2957
|
+
export type ProofOfDeliveryType =
|
|
2958
|
+
(typeof proofOfDeliveryType)[keyof typeof proofOfDeliveryType];
|
|
2894
2959
|
export const propertyType = {
|
|
2895
2960
|
Commercial: 'COMMERCIAL',
|
|
2896
2961
|
Residental: 'RESIDENTAL',
|
|
@@ -2957,6 +3022,32 @@ export const serviceLevelAvailability = {
|
|
|
2957
3022
|
|
|
2958
3023
|
export type ServiceLevelAvailability =
|
|
2959
3024
|
(typeof serviceLevelAvailability)[keyof typeof serviceLevelAvailability];
|
|
3025
|
+
export const serviceLevelClearanceType = {
|
|
3026
|
+
Consolidated: 'CONSOLIDATED',
|
|
3027
|
+
Courier: 'COURIER',
|
|
3028
|
+
Postal: 'POSTAL',
|
|
3029
|
+
} as const;
|
|
3030
|
+
|
|
3031
|
+
export type ServiceLevelClearanceType =
|
|
3032
|
+
(typeof serviceLevelClearanceType)[keyof typeof serviceLevelClearanceType];
|
|
3033
|
+
export const serviceLevelCountryCompatible = {
|
|
3034
|
+
Compatible: 'COMPATIBLE',
|
|
3035
|
+
Force: 'FORCE',
|
|
3036
|
+
LcgForce: 'LCG_FORCE',
|
|
3037
|
+
NonCompatible: 'NON_COMPATIBLE',
|
|
3038
|
+
} as const;
|
|
3039
|
+
|
|
3040
|
+
export type ServiceLevelCountryCompatible =
|
|
3041
|
+
(typeof serviceLevelCountryCompatible)[keyof typeof serviceLevelCountryCompatible];
|
|
3042
|
+
export const serviceLevelCountryDeliveryDuty = {
|
|
3043
|
+
Both: 'BOTH',
|
|
3044
|
+
Ddp: 'DDP',
|
|
3045
|
+
Ddu: 'DDU',
|
|
3046
|
+
None: 'NONE',
|
|
3047
|
+
} as const;
|
|
3048
|
+
|
|
3049
|
+
export type ServiceLevelCountryDeliveryDuty =
|
|
3050
|
+
(typeof serviceLevelCountryDeliveryDuty)[keyof typeof serviceLevelCountryDeliveryDuty];
|
|
2960
3051
|
|
|
2961
3052
|
export const shipmentAmountType = {
|
|
2962
3053
|
Buffer: 'BUFFER',
|
|
@@ -2992,6 +3083,14 @@ export const shipmentConsolidationStatus = {
|
|
|
2992
3083
|
export type ShipmentConsolidationStatus =
|
|
2993
3084
|
(typeof shipmentConsolidationStatus)[keyof typeof shipmentConsolidationStatus];
|
|
2994
3085
|
|
|
3086
|
+
export const shipmentRatingAmountTargetType = {
|
|
3087
|
+
MerchantBase: 'MERCHANT_BASE',
|
|
3088
|
+
MerchantProvided: 'MERCHANT_PROVIDED',
|
|
3089
|
+
ZonosBase: 'ZONOS_BASE',
|
|
3090
|
+
} as const;
|
|
3091
|
+
|
|
3092
|
+
export type ShipmentRatingAmountTargetType =
|
|
3093
|
+
(typeof shipmentRatingAmountTargetType)[keyof typeof shipmentRatingAmountTargetType];
|
|
2995
3094
|
export type ShipmentRatingBatteryDetail = {
|
|
2996
3095
|
materialType: ShipmentRatingBatteryMaterialType;
|
|
2997
3096
|
packingType: ShipmentRatingBatteryPackingType;
|
|
@@ -3029,6 +3128,13 @@ export const shipmentRatingSignatureOptionType = {
|
|
|
3029
3128
|
|
|
3030
3129
|
export type ShipmentRatingSignatureOptionType =
|
|
3031
3130
|
(typeof shipmentRatingSignatureOptionType)[keyof typeof shipmentRatingSignatureOptionType];
|
|
3131
|
+
export const shipmentRatingSource = {
|
|
3132
|
+
ApiRequest: 'API_REQUEST',
|
|
3133
|
+
Checkout: 'CHECKOUT',
|
|
3134
|
+
} as const;
|
|
3135
|
+
|
|
3136
|
+
export type ShipmentRatingSource =
|
|
3137
|
+
(typeof shipmentRatingSource)[keyof typeof shipmentRatingSource];
|
|
3032
3138
|
export type ShipmentRatingSpecialServiceDetail = {
|
|
3033
3139
|
batteryDetail?: InputMaybe<ShipmentRatingBatteryDetail>;
|
|
3034
3140
|
serviceTypes: Array<ShipmentRatingSpecialServiceType>;
|
|
@@ -3259,6 +3365,7 @@ export const taxIdType = {
|
|
|
3259
3365
|
Npwp: 'NPWP',
|
|
3260
3366
|
Osr: 'OSR',
|
|
3261
3367
|
Pan: 'PAN',
|
|
3368
|
+
Pcc: 'PCC',
|
|
3262
3369
|
Pccc: 'PCCC',
|
|
3263
3370
|
Rfc: 'RFC',
|
|
3264
3371
|
Run: 'RUN',
|
|
@@ -3306,6 +3413,17 @@ export const trackingEventTypeCode = {
|
|
|
3306
3413
|
export type TrackingEventTypeCode =
|
|
3307
3414
|
(typeof trackingEventTypeCode)[keyof typeof trackingEventTypeCode];
|
|
3308
3415
|
|
|
3416
|
+
export const trackingStatusType = {
|
|
3417
|
+
Cancelled: 'CANCELLED',
|
|
3418
|
+
Created: 'CREATED',
|
|
3419
|
+
Delivered: 'DELIVERED',
|
|
3420
|
+
Exception: 'EXCEPTION',
|
|
3421
|
+
InTransit: 'IN_TRANSIT',
|
|
3422
|
+
Unknown: 'UNKNOWN',
|
|
3423
|
+
} as const;
|
|
3424
|
+
|
|
3425
|
+
export type TrackingStatusType =
|
|
3426
|
+
(typeof trackingStatusType)[keyof typeof trackingStatusType];
|
|
3309
3427
|
export const trackingType = {
|
|
3310
3428
|
Package: 'PACKAGE',
|
|
3311
3429
|
Shipment: 'SHIPMENT',
|
|
@@ -3748,6 +3866,15 @@ export type FulfillmentCenterQuery = {
|
|
|
3748
3866
|
|
|
3749
3867
|
export type PartyInfoQuery = {
|
|
3750
3868
|
party: {
|
|
3869
|
+
location: {
|
|
3870
|
+
administrativeArea: string | null;
|
|
3871
|
+
administrativeAreaCode: string | null;
|
|
3872
|
+
countryCode: CountryCode;
|
|
3873
|
+
line1: string | null;
|
|
3874
|
+
line2: string | null;
|
|
3875
|
+
locality: string | null;
|
|
3876
|
+
postalCode: string | null;
|
|
3877
|
+
} | null;
|
|
3751
3878
|
person: {
|
|
3752
3879
|
email: string | null;
|
|
3753
3880
|
firstName: string | null;
|
|
@@ -4068,14 +4195,15 @@ export type ZonosSettingsQuery = {
|
|
|
4068
4195
|
createdAt: string;
|
|
4069
4196
|
createdBy: string;
|
|
4070
4197
|
customHTML: string;
|
|
4198
|
+
defaultCartExpiration: number;
|
|
4071
4199
|
disabledCountries: Array<CountryCode> | null;
|
|
4072
|
-
updatedAt: string;
|
|
4073
4200
|
externalServiceTokens: Array<{
|
|
4074
4201
|
token: string;
|
|
4075
4202
|
type: ExternalServiceTokenType;
|
|
4076
4203
|
}>;
|
|
4077
|
-
id: string;
|
|
4078
4204
|
mode: Mode;
|
|
4205
|
+
id: string;
|
|
4206
|
+
updatedAt: string;
|
|
4079
4207
|
orderNotifications: {
|
|
4080
4208
|
abandonedCart: {
|
|
4081
4209
|
delay: number;
|
|
@@ -4150,17 +4278,18 @@ export type CheckoutSettingFragment = {
|
|
|
4150
4278
|
createdAt: string;
|
|
4151
4279
|
createdBy: string;
|
|
4152
4280
|
customHTML: string;
|
|
4281
|
+
defaultCartExpiration: number;
|
|
4153
4282
|
disabledCountries: Array<CountryCode> | null;
|
|
4154
|
-
|
|
4155
|
-
status: ExternalPaymentMethodStatus;
|
|
4156
|
-
type: ExternalPaymentMethodType;
|
|
4157
|
-
}> | null;
|
|
4283
|
+
mode: Mode;
|
|
4158
4284
|
externalServiceTokens: Array<{
|
|
4159
4285
|
token: string;
|
|
4160
4286
|
type: ExternalServiceTokenType;
|
|
4161
4287
|
}>;
|
|
4162
4288
|
id: string;
|
|
4163
|
-
|
|
4289
|
+
externalPaymentMethods: Array<{
|
|
4290
|
+
status: ExternalPaymentMethodStatus;
|
|
4291
|
+
type: ExternalPaymentMethodType;
|
|
4292
|
+
}> | null;
|
|
4164
4293
|
orderNotifications: {
|
|
4165
4294
|
abandonedCart: {
|
|
4166
4295
|
delay: number;
|
|
@@ -4450,7 +4579,10 @@ export type CartQuery = {
|
|
|
4450
4579
|
sku: string | null;
|
|
4451
4580
|
}>;
|
|
4452
4581
|
metadata: Array<{ key: string; value: string }>;
|
|
4453
|
-
|
|
4582
|
+
organization: {
|
|
4583
|
+
id: string;
|
|
4584
|
+
references: { storeId: number | null } | null;
|
|
4585
|
+
} | null;
|
|
4454
4586
|
} | null;
|
|
4455
4587
|
};
|
|
4456
4588
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as e,a as n,l as t,h as o,b as i}from"./p-f0c8150e.js";import{s as r,c as l}from"./p-c9035262.js";export{c as checkoutHiddenBtnSelector,d as domesticRedirectedBtnSelector}from"./p-c9035262.js";export{c as countryRequireTaxId,s as shipToTaxIdLabels}from"./p-5bd927f2.js";const a=["jsdelivr","cdnjs","unpkg","vercel"],u="jsdelivr",m=e=>{const n=a.indexOf(e);return a[n+1]||null},p=()=>{const e=window&&window.location.href.includes("forceLoadCdn");if("undefined"==typeof window||e)return null;const n=(e=>{if(!e)return null;const n=new URL(e).searchParams.get("zonosQaUrl");return n?/[^a-zA-Z0-9-_]+/.test(n)?null:n:null})(window.location.href),o="https://v1.3.154.js.zonos.com";if(!n&&(o.includes("test.")||o.includes("test-")))return o;if(!n&&["dev.demo.elements.zonos.com"].includes(window.location.hostname))return"https://dev.elements.zonos.com";if(!n)return null;if("dev-elements"===n)return"https://dev.elements.zonos.com";const s=`https://${n}.preview.js.zonos.com`;return t(`[ZONOS-WARNING] using '${s}' for loading elements script`,"warn"),fetch(s).then((()=>{window.sessionStorage.removeItem("zonos--checkout-session-id"),window.sessionStorage.removeItem("zonos--client-secret")})).catch((()=>{alert(`[ZONOS-WARNING] '${s}' IS NO LONGER AVAILABLE. REMOVING zonosQaUrl PARAM AND RELOADING THE PAGE`);const e=new URLSearchParams(window.location.search);e.delete("zonosQaUrl");const{pathname:n}=window.location,t=`${n}?${e.toString()}`;return window.history.replaceState(window.history.state,"",t),window.location.reload(),null})),s},w="https://js.stripe.com/v3",f=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,h="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used";let v=null;const y=Promise.resolve().then((()=>{return e=null,null!==v||(v=new Promise(((n,t)=>{if("undefined"!=typeof window&&"undefined"!=typeof document)if(window.Stripe&&e&&console.warn(h),window.Stripe)n(window.Stripe);else try{let o=(()=>{const e=document.querySelectorAll(`script[src^="${w}"]`);for(let n=0;n<e.length;n++){const t=e[n];if(t&&f.test(t.src))return t}return null})();o&&e?console.warn(h):o||(o=(e=>{const n=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",t=document.createElement("script");t.src=`${w}${n}`;const o=document.head||document.body;return o?(o.appendChild(t),t):(i("Expected document.body not to be null. Stripe.js requires a <body> element."),null)})(e)),null==o||o.addEventListener("load",(()=>{window.Stripe?n(window.Stripe):t(new Error("Stripe.js not available"))})),null==o||o.addEventListener("error",(()=>{t(new Error("Failed to load Stripe.js"))}))}catch(e){return void t(e)}else n(null)}))),v;var e}));let z=!1;var g;y.catch((e=>{z||console.warn(e)}));const j=(()=>{if("undefined"==typeof document)return null;const e=document.querySelector('script[src*="/zonos.js"]'),{currentLoadScriptUrl:n,isWhiteListed:t}=(({loadScriptSrc:e})=>{if(!e)return{currentLoadScriptUrl:"",isForceLoadVersionDomain:!1,isWhiteListed:!1};const n=new URL(e).origin,t=["dev.elements.zonos.com","dev.assets-checkout.zonos.com",".js.zonos.com","zonos-elements-test-git","zonos-elements-git"].some((e=>n.includes(e))),o=["qa.js.zonos.com"].some((e=>n.includes(e)));return{currentLoadScriptUrl:n,isForceLoadVersionDomain:o,isWhiteListed:t}})({loadScriptSrc:null==e?void 0:e.src});return t?n:null})(),S="https://v1.3.154.js.zonos.com",O=j||"https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.154",k="https://fonts.googleapis.com",b=/^https:\/\/fonts\.googleapis\.com/;class ${}g=$,$.doneInit=!1,$.debug="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosDebug=1/),$.zonosConversionTest="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosConversionTest/),$._paypalMockResponse=null,$.isBigCommerce=!1,$.releaseDate="1738078957290",$.isLegacyCheckout=!1,$.domain="undefined"!=typeof window?window.location!=window.parent.location&&document.referrer||document.location.hostname:"",$.showBaseForeign="undefined"!=typeof window&&window.location.search.includes("zonosShowBaseForeign"),$.isNpm=!0,$.zonosQaUrl=null,$.zonosQaUrlApi=null,$.version="v1.3.154",$.modeAlerted=!1,$.cartData=null,$.paypal=null,$.getCurrentTimestamp=()=>(new Date).getTime(),$.zonosController=null,$.init=async s=>{const{appearance:c,checkoutSettings:d,currencyConverter:a,helloSettings:u,onCountryChange:m,overrideCurrencyFormat:w,storeId:f,zonosApiKey:h}=s;if(g.cartId=new URLSearchParams(window.location.search).get("tempCartUUID"),g.doneInit)return;if(t(`====== ZONOS DEBUG MODE: on (${g.version}) ======`),g.zonosApiKey=h,g.storeId=f,g.isNpm){t("====== ZONOS LOADING FROM NPM ======");const c=p();if(c&&!window.isZonosPreview){t(`====== RE-INJECT "zonos.js" FROM PRVIEW: ${c} ======`,"info");const e=document.createElement("script");return e.src=`${c}/dist/scripts/zonos.js`,document.head.appendChild(e),e.addEventListener("load",(()=>{window.Zonos.isNpm=g.isNpm,window.Zonos.isBigCommerce=g.isBigCommerce,window.Zonos.isLegacyCheckout=g.isLegacyCheckout,window.Zonos.init(s)})),e.addEventListener("error",(()=>{alert(`[ZONOS - loadZonos] Failed to load "loadZonos.js" from zonosQaUrl: ${c}`)})),void(window.isZonosPreview=!0)}if(!h&&!g.cartId)return void i("Zonos API key is required unless `tempCartUUID` is provided in url query params.");if(!g.cartData&&g.cartId){t("Initialize cart data");const e=await r(g.cartId);if(!e)return void i("Failed to get cart data");g.cartData=e.cartData,g.zonosApiKey=e.zonosApiKey}const d=await(async()=>{const s=e(),r=n();if(!s&&!r||!window.Zonos.zonosApiKey)return null;if(t("[ZONOS - loadZonos] Attempt test public credential","info"),window.Zonos.zonosApiKey.includes("credential_test"))return t("[ZONOS - loadZonos] Test mode is enabled but the API key is already a test key","info"),null;const{errors:c,json:d}=await o("/api/get-test-public-credential");if(c.length||!d)return i("[ZONOS - loadZonos] Failed to get test public credential. Keep using production key",c),null;const l=d.publicCredential;return l?(t(`[ZONOS - loadZonos] Retrieve new test public token ${l}`,"info"),l):(i("[ZONOS - loadZonos] No test public key credential. Keep using production key"),null)})();d&&(g.zonosApiKey=d)}const v=new URL(window.location.href).searchParams.get("payment_intent_client_secret")||sessionStorage.getItem("zonos--client-secret");if(g.cartId&&g.cartData||v){t("Cart data or stripe client secret is available, inject hidden button and trigger checkout");const e=document.createElement("button");e.style.display="none",e.id=`${l}`,document.body.appendChild(e)}t("init zonos"),g.injectCustomScriptForHostedCheckout(),g.injectZonosCdn(),g.injectZonosCss(),g.injectFonts(),g.injectController({config:{appearance:c,checkoutSettings:d,currencyConverter:a,helloSettings:u,onCountryChange:m,overrideCurrencyFormat:w}}),g.doneInit=!0},$.injectCustomScriptForHostedCheckout=()=>{const e=g.cartData,n=(null==e?void 0:e.metadata)||[],o=n.find((e=>"customHeaderScript"===e.key)),s=n.find((e=>"customFooterScript"===e.key));if(window.Zonos.isLegacyCheckout&&(o||s)){if(o){t("Injecting custom header script");const e=document.createElement("script");e.textContent=o.value,document.head.appendChild(e)}if(s){t("Injecting custom footer script");const e=document.createElement("script");e.textContent=s.value,document.body.appendChild(e)}}else t("Skip injecting custom script for hosted checkout","info",{footerScript:s,headerScript:o,isLegacyCheckout:window.Zonos.isLegacyCheckout})},$.displayCurrency=()=>{const e=document.querySelector("zonos-hello");e&&e.displayCurrency()},$.openHelloDialog=e=>{const n=document.querySelector("zonos-hello");n&&n.openHelloDialog(null==e||e)},$.showNotification=e=>{var n;null===(n=g.zonosController)||void 0===n||n.showNotification(e)},$.updateOrganizationName=e=>{var n;null===(n=g.zonosController)||void 0===n||n.updateOrganizationName(e)},$.disablePlaceOrderButtons=({autoEnable:e=!0,config:n,disable:t,placeOrderButtonSelector:o})=>{var s;if(!(null===(s=n.checkoutSettings)||void 0===s?void 0:s.disablePlaceOrderButtonActivation)&&o){const n=document.querySelectorAll(o),s=e=>{e.target.getAttribute("disabled")&&(e.preventDefault(),e.stopPropagation())};n.forEach((e=>{e.getAttribute("data-zonos-checkout-attached")||(t?(e.setAttribute("disabled","true"),e.addEventListener("click",s)):(e.removeAttribute("disabled"),e.removeEventListener("click",s)))})),e&&t&&setTimeout((()=>{n.forEach((e=>{e.removeAttribute("disabled"),e.removeEventListener("click",s)}))}),5e3)}},$.injectController=({config:e})=>{var n;if(document.querySelector("zonos-controller"))return;if(null===(n=e.checkoutSettings)||void 0===n?void 0:n.placeOrderButtonSelector){const n=e.checkoutSettings.placeOrderButtonSelector;g.disablePlaceOrderButtons({config:e,disable:!0,placeOrderButtonSelector:n}),new MutationObserver((()=>{g.disablePlaceOrderButtons({config:e,disable:!0,placeOrderButtonSelector:n})})).observe(document.body,{childList:!0,subtree:!0})}const o=document.createElement("zonos-controller");o.config=e,o.zonosApiKey=g.zonosApiKey||"",o.addEventListener("stripeInitEvent",(async e=>{const{detail:n}=e;t("loading Stripe");const s=await(async(...e)=>{z=!0;const n=Date.now();return y.then((t=>((e,n,t)=>{if(null===e)return null;const o=e.apply(void 0,n);return((e,n)=>{e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",startTime:n})})(o,t),o})(t,e,n)))})(n.publishableKey);s?(window.Zonos.stripe=s,o.initCheckoutElement(s)):i("API seems to be invalid or missing. Failed to load Stripe")})),document.body.appendChild(o),g.zonosController=o,t("Zonos controller injected!")},$.injectScript=({cdnType:e,isModule:n,theRestUrl:o})=>{const s=`${g.getZonosUrl(e)}/${o}`;if(document.querySelector(`script[src="${s}"]`))return void t(`Zonos script "${s}" already exists in the document`,"warn");const r=document.head||document.body,c=document.createElement("script");n?c.type="module":c.noModule=!0,c.src=s,c.crossOrigin="anonymous",c.onerror=()=>{i(`Failed to load ${c.src}`);const t=m(e);t&&g.injectScript({cdnType:t,isModule:n,theRestUrl:o})},r.appendChild(c)},$.getZonosUrl=e=>{const n=()=>{switch(e){case"jsdelivr":return O;case"unpkg":return"https://unpkg.com/@zonos/elements@1.3.154";case"cdnjs":return"https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.154";case"vercel":return S}};return g.isNpm&&p()||n()},$.injectZonosCdn=()=>{g.injectScript({cdnType:u,isModule:!0,theRestUrl:"dist/zonos-elements/zonos-elements.esm.js"}),g.injectScript({cdnType:u,isModule:!1,theRestUrl:"dist/zonos-elements/zonos-elements.js"}),t("Zonos cdn script injected!")},$.injectStylesheet=({cdnType:e,theRestUrl:n})=>{const t=g.getZonosUrl(e),o=document.head||document.body,s=document.createElement("link");s.rel="preconnect",s.href=`${S}/`,o.appendChild(s);const r=document.createElement("link");r.rel="stylesheet",r.href=`${t}/${n}`,r.onerror=()=>{i(`Failed to load ${r.href}`);const t=m(e);t&&g.injectStylesheet({cdnType:t,theRestUrl:n})},o.appendChild(r)},$.injectZonosCss=()=>{document.querySelector('link[rel="stylesheet"][href*="/dist/zonos-elements/zonos-elements.css"]')?t("Zonos style links already injected","warn"):(g.injectStylesheet({cdnType:u,theRestUrl:"dist/zonos-elements/zonos-elements.css"}),t("Zonos style css injected!"))},$.injectFonts=()=>{if((()=>{const e=document.querySelectorAll(`link[rel="stylesheet"][href^="${k}"]`);for(let n=0;n<e.length;n++){const t=e[n];if(t&&!b.test(t.href))return t}return null})())return void t("Inter font already injected","warn");const e=document.head||document.body,n=document.createElement("link");n.rel="preconnect",n.href=k,e.appendChild(n);const o=document.createElement("link");o.rel="stylesheet",o.href=`${k}/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap`,e.appendChild(o),t("Zonos font injected!")},$.setupGoogleFont=e=>{var n;null===(n=g.zonosController)||void 0===n||n.setupGoogleFont(e)},$.injectSupportGoogleFont=e=>{var n;t(`[FONT] injecting ${e}`);const o=null===(n=e.match(/family=(.*?):/))||void 0===n?void 0:n[1],s=document.head||document.body;if(!document.querySelector(`link[rel="preconnect"][href^="${k}"]`)){const e=document.createElement("link");e.rel="preconnect",e.href=k,s.appendChild(e)}if(document.querySelector(`link[rel="stylesheet"][href="${e}"]`))return void t(`[FONT] ${o} font already injected`,"warn");const i=document.createElement("link");i.rel="stylesheet",i.href=e,s.appendChild(i),t(`[FONT] ${o} font injected!`)};export{$ as Zonos}
|
|
1
|
+
import{g as e,a as n,l as t,h as o,b as i}from"./p-f0c8150e.js";import{s as r,c as l}from"./p-c9035262.js";export{c as checkoutHiddenBtnSelector,d as domesticRedirectedBtnSelector}from"./p-c9035262.js";export{c as countryRequireTaxId,s as shipToTaxIdLabels}from"./p-5bd927f2.js";const a=["jsdelivr","cdnjs","unpkg","vercel"],u="jsdelivr",m=e=>{const n=a.indexOf(e);return a[n+1]||null},p=()=>{const e=window&&window.location.href.includes("forceLoadCdn");if("undefined"==typeof window||e)return null;const n=(e=>{if(!e)return null;const n=new URL(e).searchParams.get("zonosQaUrl");return n?/[^a-zA-Z0-9-_]+/.test(n)?null:n:null})(window.location.href),o="https://v1.3.156.js.zonos.com";if(!n&&(o.includes("test.")||o.includes("test-")))return o;if(!n&&["dev.demo.elements.zonos.com"].includes(window.location.hostname))return"https://dev.elements.zonos.com";if(!n)return null;if("dev-elements"===n)return"https://dev.elements.zonos.com";const s=`https://${n}.preview.js.zonos.com`;return t(`[ZONOS-WARNING] using '${s}' for loading elements script`,"warn"),fetch(s).then((()=>{window.sessionStorage.removeItem("zonos--checkout-session-id"),window.sessionStorage.removeItem("zonos--client-secret")})).catch((()=>{alert(`[ZONOS-WARNING] '${s}' IS NO LONGER AVAILABLE. REMOVING zonosQaUrl PARAM AND RELOADING THE PAGE`);const e=new URLSearchParams(window.location.search);e.delete("zonosQaUrl");const{pathname:n}=window.location,t=`${n}?${e.toString()}`;return window.history.replaceState(window.history.state,"",t),window.location.reload(),null})),s},w="https://js.stripe.com/v3",f=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,h="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used";let v=null;const y=Promise.resolve().then((()=>{return e=null,null!==v||(v=new Promise(((n,t)=>{if("undefined"!=typeof window&&"undefined"!=typeof document)if(window.Stripe&&e&&console.warn(h),window.Stripe)n(window.Stripe);else try{let o=(()=>{const e=document.querySelectorAll(`script[src^="${w}"]`);for(let n=0;n<e.length;n++){const t=e[n];if(t&&f.test(t.src))return t}return null})();o&&e?console.warn(h):o||(o=(e=>{const n=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",t=document.createElement("script");t.src=`${w}${n}`;const o=document.head||document.body;return o?(o.appendChild(t),t):(i("Expected document.body not to be null. Stripe.js requires a <body> element."),null)})(e)),null==o||o.addEventListener("load",(()=>{window.Stripe?n(window.Stripe):t(new Error("Stripe.js not available"))})),null==o||o.addEventListener("error",(()=>{t(new Error("Failed to load Stripe.js"))}))}catch(e){return void t(e)}else n(null)}))),v;var e}));let z=!1;var g;y.catch((e=>{z||console.warn(e)}));const j=(()=>{if("undefined"==typeof document)return null;const e=document.querySelector('script[src*="/zonos.js"]'),{currentLoadScriptUrl:n,isWhiteListed:t}=(({loadScriptSrc:e})=>{if(!e)return{currentLoadScriptUrl:"",isForceLoadVersionDomain:!1,isWhiteListed:!1};const n=new URL(e).origin,t=["dev.elements.zonos.com","dev.assets-checkout.zonos.com",".js.zonos.com","zonos-elements-test-git","zonos-elements-git"].some((e=>n.includes(e))),o=["qa.js.zonos.com"].some((e=>n.includes(e)));return{currentLoadScriptUrl:n,isForceLoadVersionDomain:o,isWhiteListed:t}})({loadScriptSrc:null==e?void 0:e.src});return t?n:null})(),S="https://v1.3.156.js.zonos.com",O=j||"https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.156",k="https://fonts.googleapis.com",b=/^https:\/\/fonts\.googleapis\.com/;class ${}g=$,$.doneInit=!1,$.debug="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosDebug=1/),$.zonosConversionTest="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosConversionTest/),$._paypalMockResponse=null,$.isBigCommerce=!1,$.releaseDate="1738253974051",$.isLegacyCheckout=!1,$.domain="undefined"!=typeof window?window.location!=window.parent.location&&document.referrer||document.location.hostname:"",$.showBaseForeign="undefined"!=typeof window&&window.location.search.includes("zonosShowBaseForeign"),$.isNpm=!0,$.zonosQaUrl=null,$.zonosQaUrlApi=null,$.version="v1.3.156",$.modeAlerted=!1,$.cartData=null,$.paypal=null,$.getCurrentTimestamp=()=>(new Date).getTime(),$.zonosController=null,$.init=async s=>{const{appearance:c,checkoutSettings:d,currencyConverter:a,helloSettings:u,onCountryChange:m,overrideCurrencyFormat:w,storeId:f,zonosApiKey:h}=s;if(g.cartId=new URLSearchParams(window.location.search).get("tempCartUUID"),g.doneInit)return;if(t(`====== ZONOS DEBUG MODE: on (${g.version}) ======`),g.zonosApiKey=h,g.storeId=f,g.isNpm){t("====== ZONOS LOADING FROM NPM ======");const c=p();if(c&&!window.isZonosPreview){t(`====== RE-INJECT "zonos.js" FROM PRVIEW: ${c} ======`,"info");const e=document.createElement("script");return e.src=`${c}/dist/scripts/zonos.js`,document.head.appendChild(e),e.addEventListener("load",(()=>{window.Zonos.isNpm=g.isNpm,window.Zonos.isBigCommerce=g.isBigCommerce,window.Zonos.isLegacyCheckout=g.isLegacyCheckout,window.Zonos.init(s)})),e.addEventListener("error",(()=>{alert(`[ZONOS - loadZonos] Failed to load "loadZonos.js" from zonosQaUrl: ${c}`)})),void(window.isZonosPreview=!0)}if(!h&&!g.cartId)return void i("Zonos API key is required unless `tempCartUUID` is provided in url query params.");if(!g.cartData&&g.cartId){t("Initialize cart data");const e=await r(g.cartId);if(!e)return void i("Failed to get cart data");g.cartData=e.cartData,g.zonosApiKey=e.zonosApiKey}const d=await(async()=>{const s=e(),r=n();if(!s&&!r||!window.Zonos.zonosApiKey)return null;if(t("[ZONOS - loadZonos] Attempt test public credential","info"),window.Zonos.zonosApiKey.includes("credential_test"))return t("[ZONOS - loadZonos] Test mode is enabled but the API key is already a test key","info"),null;const{errors:c,json:d}=await o("/api/get-test-public-credential");if(c.length||!d)return i("[ZONOS - loadZonos] Failed to get test public credential. Keep using production key",c),null;const l=d.publicCredential;return l?(t(`[ZONOS - loadZonos] Retrieve new test public token ${l}`,"info"),l):(i("[ZONOS - loadZonos] No test public key credential. Keep using production key"),null)})();d&&(g.zonosApiKey=d)}const v=new URL(window.location.href).searchParams.get("payment_intent_client_secret")||sessionStorage.getItem("zonos--client-secret");if(g.cartId&&g.cartData||v){t("Cart data or stripe client secret is available, inject hidden button and trigger checkout");const e=document.createElement("button");e.style.display="none",e.id=`${l}`,document.body.appendChild(e)}t("init zonos"),g.injectCustomScriptForHostedCheckout(),g.injectZonosCdn(),g.injectZonosCss(),g.injectFonts(),g.injectController({config:{appearance:c,checkoutSettings:d,currencyConverter:a,helloSettings:u,onCountryChange:m,overrideCurrencyFormat:w}}),g.doneInit=!0},$.injectCustomScriptForHostedCheckout=()=>{const e=g.cartData,n=(null==e?void 0:e.metadata)||[],o=n.find((e=>"customHeaderScript"===e.key)),s=n.find((e=>"customFooterScript"===e.key));if(window.Zonos.isLegacyCheckout&&(o||s)){if(o){t("Injecting custom header script");const e=document.createElement("script");e.textContent=o.value,document.head.appendChild(e)}if(s){t("Injecting custom footer script");const e=document.createElement("script");e.textContent=s.value,document.body.appendChild(e)}}else t("Skip injecting custom script for hosted checkout","info",{footerScript:s,headerScript:o,isLegacyCheckout:window.Zonos.isLegacyCheckout})},$.displayCurrency=()=>{const e=document.querySelector("zonos-hello");e&&e.displayCurrency()},$.openHelloDialog=e=>{const n=document.querySelector("zonos-hello");n&&n.openHelloDialog(null==e||e)},$.showNotification=e=>{var n;null===(n=g.zonosController)||void 0===n||n.showNotification(e)},$.updateOrganizationName=e=>{var n;null===(n=g.zonosController)||void 0===n||n.updateOrganizationName(e)},$.disablePlaceOrderButtons=({autoEnable:e=!0,config:n,disable:t,placeOrderButtonSelector:o})=>{var s;if(!(null===(s=n.checkoutSettings)||void 0===s?void 0:s.disablePlaceOrderButtonActivation)&&o){const n=document.querySelectorAll(o),s=e=>{e.target.getAttribute("disabled")&&(e.preventDefault(),e.stopPropagation())};n.forEach((e=>{e.getAttribute("data-zonos-checkout-attached")||(t?(e.setAttribute("disabled","true"),e.addEventListener("click",s)):(e.removeAttribute("disabled"),e.removeEventListener("click",s)))})),e&&t&&setTimeout((()=>{n.forEach((e=>{e.removeAttribute("disabled"),e.removeEventListener("click",s)}))}),5e3)}},$.injectController=({config:e})=>{var n;if(document.querySelector("zonos-controller"))return;if(null===(n=e.checkoutSettings)||void 0===n?void 0:n.placeOrderButtonSelector){const n=e.checkoutSettings.placeOrderButtonSelector;g.disablePlaceOrderButtons({config:e,disable:!0,placeOrderButtonSelector:n}),new MutationObserver((()=>{g.disablePlaceOrderButtons({config:e,disable:!0,placeOrderButtonSelector:n})})).observe(document.body,{childList:!0,subtree:!0})}const o=document.createElement("zonos-controller");o.config=e,o.zonosApiKey=g.zonosApiKey||"",o.addEventListener("stripeInitEvent",(async e=>{const{detail:n}=e;t("loading Stripe");const s=await(async(...e)=>{z=!0;const n=Date.now();return y.then((t=>((e,n,t)=>{if(null===e)return null;const o=e.apply(void 0,n);return((e,n)=>{e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",startTime:n})})(o,t),o})(t,e,n)))})(n.publishableKey);s?(window.Zonos.stripe=s,o.initCheckoutElement(s)):i("API seems to be invalid or missing. Failed to load Stripe")})),document.body.appendChild(o),g.zonosController=o,t("Zonos controller injected!")},$.injectScript=({cdnType:e,isModule:n,theRestUrl:o})=>{const s=`${g.getZonosUrl(e)}/${o}`;if(document.querySelector(`script[src="${s}"]`))return void t(`Zonos script "${s}" already exists in the document`,"warn");const r=document.head||document.body,c=document.createElement("script");n?c.type="module":c.noModule=!0,c.src=s,c.crossOrigin="anonymous",c.onerror=()=>{i(`Failed to load ${c.src}`);const t=m(e);t&&g.injectScript({cdnType:t,isModule:n,theRestUrl:o})},r.appendChild(c)},$.getZonosUrl=e=>{const n=()=>{switch(e){case"jsdelivr":return O;case"unpkg":return"https://unpkg.com/@zonos/elements@1.3.156";case"cdnjs":return"https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.156";case"vercel":return S}};return g.isNpm&&p()||n()},$.injectZonosCdn=()=>{g.injectScript({cdnType:u,isModule:!0,theRestUrl:"dist/zonos-elements/zonos-elements.esm.js"}),g.injectScript({cdnType:u,isModule:!1,theRestUrl:"dist/zonos-elements/zonos-elements.js"}),t("Zonos cdn script injected!")},$.injectStylesheet=({cdnType:e,theRestUrl:n})=>{const t=g.getZonosUrl(e),o=document.head||document.body,s=document.createElement("link");s.rel="preconnect",s.href=`${S}/`,o.appendChild(s);const r=document.createElement("link");r.rel="stylesheet",r.href=`${t}/${n}`,r.onerror=()=>{i(`Failed to load ${r.href}`);const t=m(e);t&&g.injectStylesheet({cdnType:t,theRestUrl:n})},o.appendChild(r)},$.injectZonosCss=()=>{document.querySelector('link[rel="stylesheet"][href*="/dist/zonos-elements/zonos-elements.css"]')?t("Zonos style links already injected","warn"):(g.injectStylesheet({cdnType:u,theRestUrl:"dist/zonos-elements/zonos-elements.css"}),t("Zonos style css injected!"))},$.injectFonts=()=>{if((()=>{const e=document.querySelectorAll(`link[rel="stylesheet"][href^="${k}"]`);for(let n=0;n<e.length;n++){const t=e[n];if(t&&!b.test(t.href))return t}return null})())return void t("Inter font already injected","warn");const e=document.head||document.body,n=document.createElement("link");n.rel="preconnect",n.href=k,e.appendChild(n);const o=document.createElement("link");o.rel="stylesheet",o.href=`${k}/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap`,e.appendChild(o),t("Zonos font injected!")},$.setupGoogleFont=e=>{var n;null===(n=g.zonosController)||void 0===n||n.setupGoogleFont(e)},$.injectSupportGoogleFont=e=>{var n;t(`[FONT] injecting ${e}`);const o=null===(n=e.match(/family=(.*?):/))||void 0===n?void 0:n[1],s=document.head||document.body;if(!document.querySelector(`link[rel="preconnect"][href^="${k}"]`)){const e=document.createElement("link");e.rel="preconnect",e.href=k,s.appendChild(e)}if(document.querySelector(`link[rel="stylesheet"][href="${e}"]`))return void t(`[FONT] ${o} font already injected`,"warn");const i=document.createElement("link");i.rel="stylesheet",i.href=e,s.appendChild(i),t(`[FONT] ${o} font injected!`)};export{$ as Zonos}
|