@zonos/elements 1.3.36 → 1.3.38
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 +6 -6
- package/dist/cjs/{cart-401b6d32.js → cart-c7212410.js} +309 -199
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{submitGtag-bc6af393.js → submitGtag-7a679d92.js} +1 -1
- package/dist/cjs/zonos-address_8.cjs.entry.js +3 -3
- package/dist/cjs/zonos-cart-items_12.cjs.entry.js +2 -2
- package/dist/cjs/zonos-checkout.cjs.entry.js +2 -2
- package/dist/cjs/zonos-controller.cjs.entry.js +2 -2
- package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
- package/dist/cjs/zonos-country-select_3.cjs.entry.js +7 -9
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +35 -14
- package/dist/cjs/zonos-hello.cjs.entry.js +7 -1
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +1 -1
- package/dist/cjs/zonos-notification_2.cjs.entry.js +2 -2
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +4 -6
- package/dist/collection/components/hello/zonos-hello/zonos-hello.js +23 -0
- package/dist/collection/components/hello/zonos-hello-dialog/assets/inclusivePricingIcon.svg +8 -0
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +28 -14
- package/dist/collection/components/main/zonos-controller.js +1 -1
- package/dist/collection/components/store/hello/localization.js +37 -0
- package/dist/collection/components/store/translationStore/strings.arabic.js +13 -10
- package/dist/collection/components/store/translationStore/strings.base.js +13 -10
- package/dist/collection/components/store/translationStore/strings.chinese.js +13 -10
- package/dist/collection/components/store/translationStore/strings.danish.js +13 -10
- package/dist/collection/components/store/translationStore/strings.dutch.js +13 -10
- package/dist/collection/components/store/translationStore/strings.french.js +13 -10
- package/dist/collection/components/store/translationStore/strings.german.js +13 -10
- package/dist/collection/components/store/translationStore/strings.hebrew.js +13 -10
- package/dist/collection/components/store/translationStore/strings.indonesian.js +13 -10
- package/dist/collection/components/store/translationStore/strings.italian.js +13 -10
- package/dist/collection/components/store/translationStore/strings.japanese.js +12 -9
- package/dist/collection/components/store/translationStore/strings.korean.js +13 -10
- package/dist/collection/components/store/translationStore/strings.norwegian.js +13 -10
- package/dist/collection/components/store/translationStore/strings.polish.js +13 -10
- package/dist/collection/components/store/translationStore/strings.portuguese.js +13 -10
- package/dist/collection/components/store/translationStore/strings.russian.js +13 -10
- package/dist/collection/components/store/translationStore/strings.spanish.js +13 -10
- package/dist/collection/components/store/translationStore/strings.swedish.js +13 -10
- package/dist/collection/components/store/translationStore/strings.turkish.js +13 -10
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +13 -10
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +1 -1
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +1 -1
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
- package/dist/collection/components/utils/api/getInclusivePricing.js +15 -0
- package/dist/collection/types/generated/graphql.customer.types.js +65 -9
- package/dist/collection/types/generated/graphql.frontend.types.js +4 -0
- package/dist/esm/{cart-f29968a8.js → cart-eb75b113.js} +309 -199
- package/dist/esm/index.js +4 -4
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{submitGtag-fcfd5cf4.js → submitGtag-0bc0baa0.js} +1 -1
- package/dist/esm/zonos-address_8.entry.js +3 -3
- package/dist/esm/zonos-cart-items_12.entry.js +2 -2
- package/dist/esm/zonos-checkout.entry.js +2 -2
- package/dist/esm/zonos-controller.entry.js +2 -2
- package/dist/esm/zonos-country-flag.entry.js +1 -1
- package/dist/esm/zonos-country-select_3.entry.js +7 -9
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +36 -15
- package/dist/esm/zonos-hello.entry.js +7 -1
- package/dist/esm/zonos-language-select_2.entry.js +1 -1
- package/dist/esm/zonos-notification_2.entry.js +2 -2
- package/dist/esm-es5/cart-eb75b113.js +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{submitGtag-fcfd5cf4.js → submitGtag-0bc0baa0.js} +1 -1
- package/dist/esm-es5/zonos-address_8.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_12.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.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_3.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-language-select_2.entry.js +1 -1
- package/dist/esm-es5/zonos-notification_2.entry.js +1 -1
- package/dist/scripts/index.d.ts +62 -7
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/types/components/hello/zonos-hello/zonos-hello.d.ts +4 -0
- package/dist/types/components/hello/zonos-hello-dialog/zonos-hello-dialog.d.ts +1 -0
- package/dist/types/components/store/hello/localization.d.ts +2 -0
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +8 -5
- package/dist/types/components/store/translationStore/strings.base.d.ts +8 -5
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +8 -5
- package/dist/types/components/store/translationStore/strings.danish.d.ts +8 -5
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +8 -5
- package/dist/types/components/store/translationStore/strings.french.d.ts +8 -5
- package/dist/types/components/store/translationStore/strings.german.d.ts +8 -5
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +8 -5
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +8 -5
- package/dist/types/components/store/translationStore/strings.italian.d.ts +8 -5
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +8 -5
- package/dist/types/components/store/translationStore/strings.korean.d.ts +8 -5
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +8 -5
- package/dist/types/components/store/translationStore/strings.polish.d.ts +8 -5
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +8 -5
- package/dist/types/components/store/translationStore/strings.russian.d.ts +8 -5
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +8 -5
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +8 -5
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +8 -5
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +8 -5
- package/dist/types/components/store/translationStore.d.ts +1 -1
- package/dist/types/components/utils/api/getInclusivePricing.d.ts +8 -0
- package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
- package/dist/types/components.d.ts +4 -0
- package/dist/types/types/generated/graphql.customer.types.d.ts +85 -12
- package/dist/types/types/generated/graphql.customer.types.ts +111 -14
- package/dist/types/types/generated/graphql.frontend.types.d.ts +5 -1
- package/dist/types/types/generated/graphql.frontend.types.ts +7 -1
- package/dist/types/types/hello/HelloConfig.d.ts +6 -0
- package/dist/zonos-elements/assets/inclusivePricingIcon.svg +8 -0
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-4d95b4f4.system.entry.js → p-02405211.system.entry.js} +1 -1
- package/dist/zonos-elements/p-085548f2.entry.js +1 -0
- package/dist/zonos-elements/{p-eea3ec17.entry.js → p-18b28104.entry.js} +1 -1
- package/dist/zonos-elements/{p-2cee5f3a.system.entry.js → p-357322ea.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c9062536.system.entry.js → p-3f5e2e5c.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-38f882ea.system.entry.js → p-467f934c.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5b723a1d.js → p-53acc999.js} +1 -1
- package/dist/zonos-elements/{p-6b06ac3d.entry.js → p-548ac127.entry.js} +1 -1
- package/dist/zonos-elements/{p-f9931ad1.system.entry.js → p-5609876a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-6ec40c8f.entry.js → p-57617755.entry.js} +1 -1
- package/dist/zonos-elements/{p-bf9578d3.entry.js → p-59f37de3.entry.js} +1 -1
- package/dist/zonos-elements/{p-e0709be2.entry.js → p-62ed4236.entry.js} +1 -1
- package/dist/zonos-elements/{p-8363436f.entry.js → p-6f9448bb.entry.js} +1 -1
- package/dist/zonos-elements/{p-1fbf0527.system.js → p-70262120.system.js} +1 -1
- package/dist/zonos-elements/p-878293fe.js +1 -0
- package/dist/zonos-elements/{p-62e21e2b.system.entry.js → p-8acdf43b.system.entry.js} +1 -1
- package/dist/zonos-elements/p-9d29f3f4.system.entry.js +1 -0
- package/dist/zonos-elements/{p-d410ef50.system.entry.js → p-a21ec316.system.entry.js} +1 -1
- package/dist/zonos-elements/p-a8b934c2.entry.js +1 -0
- package/dist/zonos-elements/p-abe8ea12.system.js +1 -0
- package/dist/zonos-elements/{p-1c2de5da.system.js → p-ad37d20e.system.js} +1 -1
- package/dist/zonos-elements/{p-e4ef71bd.entry.js → p-ae04d3ff.entry.js} +1 -1
- package/dist/zonos-elements/{p-891d2c76.system.entry.js → p-b684f8aa.system.entry.js} +1 -1
- package/dist/zonos-elements/p-e0bf9666.system.js +1 -1
- package/dist/zonos-elements/p-e1db1bc9.entry.js +1 -0
- package/dist/zonos-elements/{p-5ce19bce.system.entry.js → p-f06bb776.system.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +5 -3
- package/dist/esm-es5/cart-f29968a8.js +0 -1
- package/dist/zonos-elements/p-2947c138.js +0 -1
- package/dist/zonos-elements/p-60f7bcee.entry.js +0 -1
- package/dist/zonos-elements/p-91635589.system.js +0 -1
- package/dist/zonos-elements/p-952e331c.entry.js +0 -1
- package/dist/zonos-elements/p-c0efa3a3.system.entry.js +0 -1
- package/dist/zonos-elements/p-cfe9c940.entry.js +0 -1
|
@@ -324,6 +324,7 @@ export declare const catalogItemExportJobAction: {
|
|
|
324
324
|
export type CatalogItemExportJobAction = (typeof catalogItemExportJobAction)[keyof typeof catalogItemExportJobAction];
|
|
325
325
|
export declare const catalogItemInclusivePriceStatus: {
|
|
326
326
|
readonly Active: "ACTIVE";
|
|
327
|
+
readonly Archived: "ARCHIVED";
|
|
327
328
|
readonly Failed: "FAILED";
|
|
328
329
|
readonly Ignored: "IGNORED";
|
|
329
330
|
readonly Pending: "PENDING";
|
|
@@ -335,6 +336,11 @@ export declare const catalogItemSource: {
|
|
|
335
336
|
readonly UserProvided: "USER_PROVIDED";
|
|
336
337
|
};
|
|
337
338
|
export type CatalogItemSource = (typeof catalogItemSource)[keyof typeof catalogItemSource];
|
|
339
|
+
export declare const catalogItemUpdateMethod: {
|
|
340
|
+
readonly All: "ALL";
|
|
341
|
+
readonly NonNull: "NON_NULL";
|
|
342
|
+
};
|
|
343
|
+
export type CatalogItemUpdateMethod = (typeof catalogItemUpdateMethod)[keyof typeof catalogItemUpdateMethod];
|
|
338
344
|
export declare const catalogSettingMigrationAction: {
|
|
339
345
|
readonly Evaluate: "EVALUATE";
|
|
340
346
|
readonly Migrate: "MIGRATE";
|
|
@@ -375,6 +381,12 @@ export declare const classificationBulkJobStatus: {
|
|
|
375
381
|
readonly Processing: "PROCESSING";
|
|
376
382
|
};
|
|
377
383
|
export type ClassificationBulkJobStatus = (typeof classificationBulkJobStatus)[keyof typeof classificationBulkJobStatus];
|
|
384
|
+
export declare const classificationCalculateOrigin: {
|
|
385
|
+
readonly All: "ALL";
|
|
386
|
+
readonly Bulk: "BULK";
|
|
387
|
+
readonly Single: "SINGLE";
|
|
388
|
+
};
|
|
389
|
+
export type ClassificationCalculateOrigin = (typeof classificationCalculateOrigin)[keyof typeof classificationCalculateOrigin];
|
|
378
390
|
export declare const classificationCalculateSource: {
|
|
379
391
|
readonly External: "EXTERNAL";
|
|
380
392
|
readonly Internal: "INTERNAL";
|
|
@@ -1276,6 +1288,7 @@ export type EmailTemplateStatus = (typeof emailTemplateStatus)[keyof typeof emai
|
|
|
1276
1288
|
export declare const emailTemplateType: {
|
|
1277
1289
|
readonly AbandonedCart: "ABANDONED_CART";
|
|
1278
1290
|
readonly CatalogExport: "CATALOG_EXPORT";
|
|
1291
|
+
readonly ClassificationExport: "CLASSIFICATION_EXPORT";
|
|
1279
1292
|
readonly ManualClassificationExport: "MANUAL_CLASSIFICATION_EXPORT";
|
|
1280
1293
|
readonly OrderCanceled: "ORDER_CANCELED";
|
|
1281
1294
|
readonly OrderConfirmation: "ORDER_CONFIRMATION";
|
|
@@ -1340,6 +1353,7 @@ export declare const fedExCategoryCode: {
|
|
|
1340
1353
|
};
|
|
1341
1354
|
export type FedExCategoryCode = (typeof fedExCategoryCode)[keyof typeof fedExCategoryCode];
|
|
1342
1355
|
export declare const fulfillmentCenterType: {
|
|
1356
|
+
readonly ConsolidationCenter: "CONSOLIDATION_CENTER";
|
|
1343
1357
|
readonly Primary: "PRIMARY";
|
|
1344
1358
|
readonly Standard: "STANDARD";
|
|
1345
1359
|
};
|
|
@@ -1393,6 +1407,13 @@ export declare const hsCodeProvidedTreatment: {
|
|
|
1393
1407
|
readonly ValidateOnly: "VALIDATE_ONLY";
|
|
1394
1408
|
};
|
|
1395
1409
|
export type HsCodeProvidedTreatment = (typeof hsCodeProvidedTreatment)[keyof typeof hsCodeProvidedTreatment];
|
|
1410
|
+
export declare const hsCodeSource: {
|
|
1411
|
+
readonly Classify: "CLASSIFY";
|
|
1412
|
+
readonly Fallback: "FALLBACK";
|
|
1413
|
+
readonly Hybrid: "HYBRID";
|
|
1414
|
+
readonly UserProvided: "USER_PROVIDED";
|
|
1415
|
+
};
|
|
1416
|
+
export type HsCodeSource = (typeof hsCodeSource)[keyof typeof hsCodeSource];
|
|
1396
1417
|
export declare const hsCodeType: {
|
|
1397
1418
|
readonly Chapter: "CHAPTER";
|
|
1398
1419
|
readonly Export: "EXPORT";
|
|
@@ -1427,16 +1448,11 @@ export type ImageSlot = (typeof imageSlot)[keyof typeof imageSlot];
|
|
|
1427
1448
|
export declare const inclusivePriceCalculateJobStatus: {
|
|
1428
1449
|
readonly Cancelled: "CANCELLED";
|
|
1429
1450
|
readonly Completed: "COMPLETED";
|
|
1451
|
+
readonly CompletedWithErrors: "COMPLETED_WITH_ERRORS";
|
|
1430
1452
|
readonly Failed: "FAILED";
|
|
1431
1453
|
readonly InProgress: "IN_PROGRESS";
|
|
1432
1454
|
};
|
|
1433
1455
|
export type InclusivePriceCalculateJobStatus = (typeof inclusivePriceCalculateJobStatus)[keyof typeof inclusivePriceCalculateJobStatus];
|
|
1434
|
-
export declare const inclusivePriceCalculateJobType: {
|
|
1435
|
-
readonly All: "ALL";
|
|
1436
|
-
readonly CatalogItem: "CATALOG_ITEM";
|
|
1437
|
-
readonly Country: "COUNTRY";
|
|
1438
|
-
};
|
|
1439
|
-
export type InclusivePriceCalculateJobType = (typeof inclusivePriceCalculateJobType)[keyof typeof inclusivePriceCalculateJobType];
|
|
1440
1456
|
export declare const inclusivePriceCatalogValidationJobCompletionStatus: {
|
|
1441
1457
|
readonly Archived: "ARCHIVED";
|
|
1442
1458
|
readonly Completed: "COMPLETED";
|
|
@@ -1451,11 +1467,10 @@ export declare const inclusivePriceCatalogValidationJobComplianceStatus: {
|
|
|
1451
1467
|
};
|
|
1452
1468
|
export type InclusivePriceCatalogValidationJobComplianceStatus = (typeof inclusivePriceCatalogValidationJobComplianceStatus)[keyof typeof inclusivePriceCatalogValidationJobComplianceStatus];
|
|
1453
1469
|
export declare const inclusivePriceHistoryCsvJobStatus: {
|
|
1470
|
+
readonly Completed: "COMPLETED";
|
|
1454
1471
|
readonly Error: "ERROR";
|
|
1455
|
-
readonly
|
|
1456
|
-
readonly
|
|
1457
|
-
readonly ReadyForUpload: "READY_FOR_UPLOAD";
|
|
1458
|
-
readonly Uploading: "UPLOADING";
|
|
1472
|
+
readonly Initialized: "INITIALIZED";
|
|
1473
|
+
readonly Processing: "PROCESSING";
|
|
1459
1474
|
};
|
|
1460
1475
|
export type InclusivePriceHistoryCsvJobStatus = (typeof inclusivePriceHistoryCsvJobStatus)[keyof typeof inclusivePriceHistoryCsvJobStatus];
|
|
1461
1476
|
export declare const inclusivePriceHistorySource: {
|
|
@@ -1470,6 +1485,7 @@ export declare const inclusivePriceSettingAdjustmentStatus: {
|
|
|
1470
1485
|
};
|
|
1471
1486
|
export type InclusivePriceSettingAdjustmentStatus = (typeof inclusivePriceSettingAdjustmentStatus)[keyof typeof inclusivePriceSettingAdjustmentStatus];
|
|
1472
1487
|
export declare const inclusivePriceSettingStatus: {
|
|
1488
|
+
readonly Archived: "ARCHIVED";
|
|
1473
1489
|
readonly Disabled: "DISABLED";
|
|
1474
1490
|
readonly Enabled: "ENABLED";
|
|
1475
1491
|
};
|
|
@@ -1480,7 +1496,9 @@ export declare const inclusivePriceStatus: {
|
|
|
1480
1496
|
};
|
|
1481
1497
|
export type InclusivePriceStatus = (typeof inclusivePriceStatus)[keyof typeof inclusivePriceStatus];
|
|
1482
1498
|
export declare const inclusivePriceSyncJobStatus: {
|
|
1499
|
+
readonly Cancelled: "CANCELLED";
|
|
1483
1500
|
readonly Completed: "COMPLETED";
|
|
1501
|
+
readonly CompletedWithErrors: "COMPLETED_WITH_ERRORS";
|
|
1484
1502
|
readonly Failed: "FAILED";
|
|
1485
1503
|
readonly InProgress: "IN_PROGRESS";
|
|
1486
1504
|
readonly Initialized: "INITIALIZED";
|
|
@@ -1609,7 +1627,11 @@ export type ItemUnitOfMeasure = (typeof itemUnitOfMeasure)[keyof typeof itemUnit
|
|
|
1609
1627
|
export declare const itemValueSource: {
|
|
1610
1628
|
readonly ApiRequest: "API_REQUEST";
|
|
1611
1629
|
readonly Catalog: "CATALOG";
|
|
1630
|
+
readonly Classify: "CLASSIFY";
|
|
1631
|
+
readonly Fallback: "FALLBACK";
|
|
1632
|
+
readonly Hybrid: "HYBRID";
|
|
1612
1633
|
readonly OrganizationSetting: "ORGANIZATION_SETTING";
|
|
1634
|
+
readonly UserProvided: "USER_PROVIDED";
|
|
1613
1635
|
};
|
|
1614
1636
|
export type ItemValueSource = (typeof itemValueSource)[keyof typeof itemValueSource];
|
|
1615
1637
|
export declare const labelAmountType: {
|
|
@@ -1933,6 +1955,14 @@ export declare const orderCompleteBillingMethod: {
|
|
|
1933
1955
|
readonly Legacy: "LEGACY";
|
|
1934
1956
|
};
|
|
1935
1957
|
export type OrderCompleteBillingMethod = (typeof orderCompleteBillingMethod)[keyof typeof orderCompleteBillingMethod];
|
|
1958
|
+
export declare const orderNoteType: {
|
|
1959
|
+
readonly Comment: "COMMENT";
|
|
1960
|
+
readonly NotificationSent: "NOTIFICATION_SENT";
|
|
1961
|
+
readonly OrderChange: "ORDER_CHANGE";
|
|
1962
|
+
readonly Shipment: "SHIPMENT";
|
|
1963
|
+
readonly Status: "STATUS";
|
|
1964
|
+
};
|
|
1965
|
+
export type OrderNoteType = (typeof orderNoteType)[keyof typeof orderNoteType];
|
|
1936
1966
|
export declare const orderRefundSubtotalType: {
|
|
1937
1967
|
readonly DutyTaxFee: "DUTY_TAX_FEE";
|
|
1938
1968
|
readonly Item: "ITEM";
|
|
@@ -2062,6 +2092,11 @@ export declare const pddpStatus: {
|
|
|
2062
2092
|
readonly Disabled: "DISABLED";
|
|
2063
2093
|
};
|
|
2064
2094
|
export type PddpStatus = (typeof pddpStatus)[keyof typeof pddpStatus];
|
|
2095
|
+
export declare const pddpType: {
|
|
2096
|
+
readonly CanadaPost: "CANADA_POST";
|
|
2097
|
+
readonly Ipc: "IPC";
|
|
2098
|
+
};
|
|
2099
|
+
export type PddpType = (typeof pddpType)[keyof typeof pddpType];
|
|
2065
2100
|
export declare const pickupBuildingType: {
|
|
2066
2101
|
readonly Apartment: "APARTMENT";
|
|
2067
2102
|
readonly Building: "BUILDING";
|
|
@@ -2123,6 +2158,13 @@ export declare const roundingType: {
|
|
|
2123
2158
|
readonly None: "NONE";
|
|
2124
2159
|
};
|
|
2125
2160
|
export type RoundingType = (typeof roundingType)[keyof typeof roundingType];
|
|
2161
|
+
export declare const searchIndex: {
|
|
2162
|
+
readonly Catalog: "CATALOG";
|
|
2163
|
+
readonly Orders: "ORDERS";
|
|
2164
|
+
readonly Quotes: "QUOTES";
|
|
2165
|
+
readonly Shipments: "SHIPMENTS";
|
|
2166
|
+
};
|
|
2167
|
+
export type SearchIndex = (typeof searchIndex)[keyof typeof searchIndex];
|
|
2126
2168
|
export declare const serviceLevelAvailability: {
|
|
2127
2169
|
readonly Contracted: "CONTRACTED";
|
|
2128
2170
|
readonly Disabled: "DISABLED";
|
|
@@ -2169,6 +2211,11 @@ export declare const shipmentRatingBatteryPackingType: {
|
|
|
2169
2211
|
readonly BatteryPackagedWithEquipment: "BATTERY_PACKAGED_WITH_EQUIPMENT";
|
|
2170
2212
|
};
|
|
2171
2213
|
export type ShipmentRatingBatteryPackingType = (typeof shipmentRatingBatteryPackingType)[keyof typeof shipmentRatingBatteryPackingType];
|
|
2214
|
+
export declare const shipmentRatingRateType: {
|
|
2215
|
+
readonly LabelEnabled: "LABEL_ENABLED";
|
|
2216
|
+
readonly Zone: "ZONE";
|
|
2217
|
+
};
|
|
2218
|
+
export type ShipmentRatingRateType = (typeof shipmentRatingRateType)[keyof typeof shipmentRatingRateType];
|
|
2172
2219
|
export declare const shipmentRatingSignatureOptionType: {
|
|
2173
2220
|
readonly Adult: "ADULT";
|
|
2174
2221
|
readonly Default: "DEFAULT";
|
|
@@ -2206,6 +2253,10 @@ export declare const shipmentSpecialService: {
|
|
|
2206
2253
|
export type ShipmentSpecialService = (typeof shipmentSpecialService)[keyof typeof shipmentSpecialService];
|
|
2207
2254
|
export declare const shipmentStatusType: {
|
|
2208
2255
|
readonly Created: "CREATED";
|
|
2256
|
+
readonly Delivered: "DELIVERED";
|
|
2257
|
+
readonly DeliveredToConsolidationCenter: "DELIVERED_TO_CONSOLIDATION_CENTER";
|
|
2258
|
+
readonly InTransit: "IN_TRANSIT";
|
|
2259
|
+
readonly InTransitToConsolidationCenter: "IN_TRANSIT_TO_CONSOLIDATION_CENTER";
|
|
2209
2260
|
readonly Voided: "VOIDED";
|
|
2210
2261
|
};
|
|
2211
2262
|
export type ShipmentStatusType = (typeof shipmentStatusType)[keyof typeof shipmentStatusType];
|
|
@@ -2337,8 +2388,16 @@ export declare const taxMethodType: {
|
|
|
2337
2388
|
readonly Consignment: "CONSIGNMENT";
|
|
2338
2389
|
readonly Default: "DEFAULT";
|
|
2339
2390
|
readonly Domestic: "DOMESTIC";
|
|
2391
|
+
readonly SellerOfRecord: "SELLER_OF_RECORD";
|
|
2340
2392
|
};
|
|
2341
2393
|
export type TaxMethodType = (typeof taxMethodType)[keyof typeof taxMethodType];
|
|
2394
|
+
export declare const thirdPartyAccountType: {
|
|
2395
|
+
readonly Dhl: "DHL";
|
|
2396
|
+
readonly Fedex: "FEDEX";
|
|
2397
|
+
readonly Ups: "UPS";
|
|
2398
|
+
readonly Usps: "USPS";
|
|
2399
|
+
};
|
|
2400
|
+
export type ThirdPartyAccountType = (typeof thirdPartyAccountType)[keyof typeof thirdPartyAccountType];
|
|
2342
2401
|
export declare const tokenTypeCategory: {
|
|
2343
2402
|
readonly Auxiliary: "AUXILIARY";
|
|
2344
2403
|
readonly Functional: "FUNCTIONAL";
|
|
@@ -2444,6 +2503,7 @@ export declare const webhookType: {
|
|
|
2444
2503
|
readonly OrderCanceled: "ORDER_CANCELED";
|
|
2445
2504
|
readonly OrderCreated: "ORDER_CREATED";
|
|
2446
2505
|
readonly OrderStatusChanged: "ORDER_STATUS_CHANGED";
|
|
2506
|
+
readonly OrderUpdated: "ORDER_UPDATED";
|
|
2447
2507
|
readonly ShipmentCanceled: "SHIPMENT_CANCELED";
|
|
2448
2508
|
readonly ShipmentCreated: "SHIPMENT_CREATED";
|
|
2449
2509
|
};
|
|
@@ -2656,8 +2716,8 @@ export type FulfillmentCenterQuery = {
|
|
|
2656
2716
|
propertyType: PropertyType | null;
|
|
2657
2717
|
} | null;
|
|
2658
2718
|
};
|
|
2659
|
-
type: FulfillmentCenterType
|
|
2660
|
-
}
|
|
2719
|
+
type: FulfillmentCenterType;
|
|
2720
|
+
}> | null;
|
|
2661
2721
|
};
|
|
2662
2722
|
export type CheckItemRestrictionsMutation = {
|
|
2663
2723
|
itemRestrictionApply: {
|
|
@@ -2806,6 +2866,16 @@ export type GetCheckoutSessionQuery = {
|
|
|
2806
2866
|
} | null;
|
|
2807
2867
|
};
|
|
2808
2868
|
};
|
|
2869
|
+
export type GetInclusivePriceSettingEnabledByCountryQuery = {
|
|
2870
|
+
inclusivePriceSettings: {
|
|
2871
|
+
edges: Array<{
|
|
2872
|
+
node: {
|
|
2873
|
+
id: string;
|
|
2874
|
+
status: InclusivePriceSettingStatus;
|
|
2875
|
+
};
|
|
2876
|
+
}>;
|
|
2877
|
+
} | null;
|
|
2878
|
+
};
|
|
2809
2879
|
export type ShippingZonesQuery = {
|
|
2810
2880
|
shippingZones: Array<{
|
|
2811
2881
|
countryCodes: Array<CountryCode> | null;
|
|
@@ -3329,6 +3399,9 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
3329
3399
|
getCheckoutSession(variables?: {
|
|
3330
3400
|
[x: string]: never;
|
|
3331
3401
|
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<GetCheckoutSessionQuery>;
|
|
3402
|
+
getInclusivePriceSettingEnabledByCountry(variables?: {
|
|
3403
|
+
[x: string]: never;
|
|
3404
|
+
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<GetInclusivePriceSettingEnabledByCountryQuery>;
|
|
3332
3405
|
getOrder(variables?: {
|
|
3333
3406
|
[x: string]: never;
|
|
3334
3407
|
}, requestHeaders?: GraphQLClientRequestHeaders): Promise<GetOrderQuery>;
|
|
@@ -394,6 +394,7 @@ export type CatalogItemExportJobAction =
|
|
|
394
394
|
|
|
395
395
|
export const catalogItemInclusivePriceStatus = {
|
|
396
396
|
Active: 'ACTIVE',
|
|
397
|
+
Archived: 'ARCHIVED',
|
|
397
398
|
Failed: 'FAILED',
|
|
398
399
|
Ignored: 'IGNORED',
|
|
399
400
|
Pending: 'PENDING',
|
|
@@ -411,6 +412,14 @@ export const catalogItemSource = {
|
|
|
411
412
|
export type CatalogItemSource =
|
|
412
413
|
(typeof catalogItemSource)[keyof typeof catalogItemSource];
|
|
413
414
|
|
|
415
|
+
export const catalogItemUpdateMethod = {
|
|
416
|
+
All: 'ALL',
|
|
417
|
+
NonNull: 'NON_NULL',
|
|
418
|
+
} as const;
|
|
419
|
+
|
|
420
|
+
export type CatalogItemUpdateMethod =
|
|
421
|
+
(typeof catalogItemUpdateMethod)[keyof typeof catalogItemUpdateMethod];
|
|
422
|
+
|
|
414
423
|
export const catalogSettingMigrationAction = {
|
|
415
424
|
Evaluate: 'EVALUATE',
|
|
416
425
|
Migrate: 'MIGRATE',
|
|
@@ -456,6 +465,7 @@ export const checkoutVisibilityStatus = {
|
|
|
456
465
|
|
|
457
466
|
export type CheckoutVisibilityStatus =
|
|
458
467
|
(typeof checkoutVisibilityStatus)[keyof typeof checkoutVisibilityStatus];
|
|
468
|
+
|
|
459
469
|
export const classificationBulkJobStatus = {
|
|
460
470
|
Classified: 'CLASSIFIED',
|
|
461
471
|
Completed: 'COMPLETED',
|
|
@@ -467,6 +477,14 @@ export const classificationBulkJobStatus = {
|
|
|
467
477
|
export type ClassificationBulkJobStatus =
|
|
468
478
|
(typeof classificationBulkJobStatus)[keyof typeof classificationBulkJobStatus];
|
|
469
479
|
|
|
480
|
+
export const classificationCalculateOrigin = {
|
|
481
|
+
All: 'ALL',
|
|
482
|
+
Bulk: 'BULK',
|
|
483
|
+
Single: 'SINGLE',
|
|
484
|
+
} as const;
|
|
485
|
+
|
|
486
|
+
export type ClassificationCalculateOrigin =
|
|
487
|
+
(typeof classificationCalculateOrigin)[keyof typeof classificationCalculateOrigin];
|
|
470
488
|
export const classificationCalculateSource = {
|
|
471
489
|
External: 'EXTERNAL',
|
|
472
490
|
Internal: 'INTERNAL',
|
|
@@ -1465,6 +1483,7 @@ export type EmailTemplateStatus =
|
|
|
1465
1483
|
export const emailTemplateType = {
|
|
1466
1484
|
AbandonedCart: 'ABANDONED_CART',
|
|
1467
1485
|
CatalogExport: 'CATALOG_EXPORT',
|
|
1486
|
+
ClassificationExport: 'CLASSIFICATION_EXPORT',
|
|
1468
1487
|
ManualClassificationExport: 'MANUAL_CLASSIFICATION_EXPORT',
|
|
1469
1488
|
OrderCanceled: 'ORDER_CANCELED',
|
|
1470
1489
|
OrderConfirmation: 'ORDER_CONFIRMATION',
|
|
@@ -1548,6 +1567,7 @@ export type FedExCategoryCode =
|
|
|
1548
1567
|
(typeof fedExCategoryCode)[keyof typeof fedExCategoryCode];
|
|
1549
1568
|
|
|
1550
1569
|
export const fulfillmentCenterType = {
|
|
1570
|
+
ConsolidationCenter: 'CONSOLIDATION_CENTER',
|
|
1551
1571
|
Primary: 'PRIMARY',
|
|
1552
1572
|
Standard: 'STANDARD',
|
|
1553
1573
|
} as const;
|
|
@@ -1623,6 +1643,14 @@ export const hsCodeProvidedTreatment = {
|
|
|
1623
1643
|
|
|
1624
1644
|
export type HsCodeProvidedTreatment =
|
|
1625
1645
|
(typeof hsCodeProvidedTreatment)[keyof typeof hsCodeProvidedTreatment];
|
|
1646
|
+
export const hsCodeSource = {
|
|
1647
|
+
Classify: 'CLASSIFY',
|
|
1648
|
+
Fallback: 'FALLBACK',
|
|
1649
|
+
Hybrid: 'HYBRID',
|
|
1650
|
+
UserProvided: 'USER_PROVIDED',
|
|
1651
|
+
} as const;
|
|
1652
|
+
|
|
1653
|
+
export type HsCodeSource = (typeof hsCodeSource)[keyof typeof hsCodeSource];
|
|
1626
1654
|
export const hsCodeType = {
|
|
1627
1655
|
Chapter: 'CHAPTER',
|
|
1628
1656
|
Export: 'EXPORT',
|
|
@@ -1664,20 +1692,13 @@ export type ImageSlot = (typeof imageSlot)[keyof typeof imageSlot];
|
|
|
1664
1692
|
export const inclusivePriceCalculateJobStatus = {
|
|
1665
1693
|
Cancelled: 'CANCELLED',
|
|
1666
1694
|
Completed: 'COMPLETED',
|
|
1695
|
+
CompletedWithErrors: 'COMPLETED_WITH_ERRORS',
|
|
1667
1696
|
Failed: 'FAILED',
|
|
1668
1697
|
InProgress: 'IN_PROGRESS',
|
|
1669
1698
|
} as const;
|
|
1670
1699
|
|
|
1671
1700
|
export type InclusivePriceCalculateJobStatus =
|
|
1672
1701
|
(typeof inclusivePriceCalculateJobStatus)[keyof typeof inclusivePriceCalculateJobStatus];
|
|
1673
|
-
export const inclusivePriceCalculateJobType = {
|
|
1674
|
-
All: 'ALL',
|
|
1675
|
-
CatalogItem: 'CATALOG_ITEM',
|
|
1676
|
-
Country: 'COUNTRY',
|
|
1677
|
-
} as const;
|
|
1678
|
-
|
|
1679
|
-
export type InclusivePriceCalculateJobType =
|
|
1680
|
-
(typeof inclusivePriceCalculateJobType)[keyof typeof inclusivePriceCalculateJobType];
|
|
1681
1702
|
|
|
1682
1703
|
export const inclusivePriceCatalogValidationJobCompletionStatus = {
|
|
1683
1704
|
Archived: 'ARCHIVED',
|
|
@@ -1698,11 +1719,10 @@ export type InclusivePriceCatalogValidationJobComplianceStatus =
|
|
|
1698
1719
|
(typeof inclusivePriceCatalogValidationJobComplianceStatus)[keyof typeof inclusivePriceCatalogValidationJobComplianceStatus];
|
|
1699
1720
|
|
|
1700
1721
|
export const inclusivePriceHistoryCsvJobStatus = {
|
|
1722
|
+
Completed: 'COMPLETED',
|
|
1701
1723
|
Error: 'ERROR',
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
ReadyForUpload: 'READY_FOR_UPLOAD',
|
|
1705
|
-
Uploading: 'UPLOADING',
|
|
1724
|
+
Initialized: 'INITIALIZED',
|
|
1725
|
+
Processing: 'PROCESSING',
|
|
1706
1726
|
} as const;
|
|
1707
1727
|
|
|
1708
1728
|
export type InclusivePriceHistoryCsvJobStatus =
|
|
@@ -1726,6 +1746,7 @@ export type InclusivePriceSettingAdjustmentStatus =
|
|
|
1726
1746
|
(typeof inclusivePriceSettingAdjustmentStatus)[keyof typeof inclusivePriceSettingAdjustmentStatus];
|
|
1727
1747
|
|
|
1728
1748
|
export const inclusivePriceSettingStatus = {
|
|
1749
|
+
Archived: 'ARCHIVED',
|
|
1729
1750
|
Disabled: 'DISABLED',
|
|
1730
1751
|
Enabled: 'ENABLED',
|
|
1731
1752
|
} as const;
|
|
@@ -1742,7 +1763,9 @@ export type InclusivePriceStatus =
|
|
|
1742
1763
|
(typeof inclusivePriceStatus)[keyof typeof inclusivePriceStatus];
|
|
1743
1764
|
|
|
1744
1765
|
export const inclusivePriceSyncJobStatus = {
|
|
1766
|
+
Cancelled: 'CANCELLED',
|
|
1745
1767
|
Completed: 'COMPLETED',
|
|
1768
|
+
CompletedWithErrors: 'COMPLETED_WITH_ERRORS',
|
|
1746
1769
|
Failed: 'FAILED',
|
|
1747
1770
|
InProgress: 'IN_PROGRESS',
|
|
1748
1771
|
Initialized: 'INITIALIZED',
|
|
@@ -1900,7 +1923,11 @@ export type ItemUnitOfMeasure =
|
|
|
1900
1923
|
export const itemValueSource = {
|
|
1901
1924
|
ApiRequest: 'API_REQUEST',
|
|
1902
1925
|
Catalog: 'CATALOG',
|
|
1926
|
+
Classify: 'CLASSIFY',
|
|
1927
|
+
Fallback: 'FALLBACK',
|
|
1928
|
+
Hybrid: 'HYBRID',
|
|
1903
1929
|
OrganizationSetting: 'ORGANIZATION_SETTING',
|
|
1930
|
+
UserProvided: 'USER_PROVIDED',
|
|
1904
1931
|
} as const;
|
|
1905
1932
|
|
|
1906
1933
|
export type ItemValueSource =
|
|
@@ -2300,6 +2327,16 @@ export const orderCompleteBillingMethod = {
|
|
|
2300
2327
|
export type OrderCompleteBillingMethod =
|
|
2301
2328
|
(typeof orderCompleteBillingMethod)[keyof typeof orderCompleteBillingMethod];
|
|
2302
2329
|
|
|
2330
|
+
export const orderNoteType = {
|
|
2331
|
+
Comment: 'COMMENT',
|
|
2332
|
+
NotificationSent: 'NOTIFICATION_SENT',
|
|
2333
|
+
OrderChange: 'ORDER_CHANGE',
|
|
2334
|
+
Shipment: 'SHIPMENT',
|
|
2335
|
+
Status: 'STATUS',
|
|
2336
|
+
} as const;
|
|
2337
|
+
|
|
2338
|
+
export type OrderNoteType = (typeof orderNoteType)[keyof typeof orderNoteType];
|
|
2339
|
+
|
|
2303
2340
|
export const orderRefundSubtotalType = {
|
|
2304
2341
|
DutyTaxFee: 'DUTY_TAX_FEE',
|
|
2305
2342
|
Item: 'ITEM',
|
|
@@ -2473,6 +2510,13 @@ export const pddpStatus = {
|
|
|
2473
2510
|
|
|
2474
2511
|
export type PddpStatus = (typeof pddpStatus)[keyof typeof pddpStatus];
|
|
2475
2512
|
|
|
2513
|
+
export const pddpType = {
|
|
2514
|
+
CanadaPost: 'CANADA_POST',
|
|
2515
|
+
Ipc: 'IPC',
|
|
2516
|
+
} as const;
|
|
2517
|
+
|
|
2518
|
+
export type PddpType = (typeof pddpType)[keyof typeof pddpType];
|
|
2519
|
+
|
|
2476
2520
|
export const pickupBuildingType = {
|
|
2477
2521
|
Apartment: 'APARTMENT',
|
|
2478
2522
|
Building: 'BUILDING',
|
|
@@ -2552,6 +2596,15 @@ export const roundingType = {
|
|
|
2552
2596
|
|
|
2553
2597
|
export type RoundingType = (typeof roundingType)[keyof typeof roundingType];
|
|
2554
2598
|
|
|
2599
|
+
export const searchIndex = {
|
|
2600
|
+
Catalog: 'CATALOG',
|
|
2601
|
+
Orders: 'ORDERS',
|
|
2602
|
+
Quotes: 'QUOTES',
|
|
2603
|
+
Shipments: 'SHIPMENTS',
|
|
2604
|
+
} as const;
|
|
2605
|
+
|
|
2606
|
+
export type SearchIndex = (typeof searchIndex)[keyof typeof searchIndex];
|
|
2607
|
+
|
|
2555
2608
|
export const serviceLevelAvailability = {
|
|
2556
2609
|
Contracted: 'CONTRACTED',
|
|
2557
2610
|
Disabled: 'DISABLED',
|
|
@@ -2616,6 +2669,13 @@ export const shipmentRatingBatteryPackingType = {
|
|
|
2616
2669
|
export type ShipmentRatingBatteryPackingType =
|
|
2617
2670
|
(typeof shipmentRatingBatteryPackingType)[keyof typeof shipmentRatingBatteryPackingType];
|
|
2618
2671
|
|
|
2672
|
+
export const shipmentRatingRateType = {
|
|
2673
|
+
LabelEnabled: 'LABEL_ENABLED',
|
|
2674
|
+
Zone: 'ZONE',
|
|
2675
|
+
} as const;
|
|
2676
|
+
|
|
2677
|
+
export type ShipmentRatingRateType =
|
|
2678
|
+
(typeof shipmentRatingRateType)[keyof typeof shipmentRatingRateType];
|
|
2619
2679
|
export const shipmentRatingSignatureOptionType = {
|
|
2620
2680
|
Adult: 'ADULT',
|
|
2621
2681
|
Default: 'DEFAULT',
|
|
@@ -2661,6 +2721,10 @@ export type ShipmentSpecialService =
|
|
|
2661
2721
|
(typeof shipmentSpecialService)[keyof typeof shipmentSpecialService];
|
|
2662
2722
|
export const shipmentStatusType = {
|
|
2663
2723
|
Created: 'CREATED',
|
|
2724
|
+
Delivered: 'DELIVERED',
|
|
2725
|
+
DeliveredToConsolidationCenter: 'DELIVERED_TO_CONSOLIDATION_CENTER',
|
|
2726
|
+
InTransit: 'IN_TRANSIT',
|
|
2727
|
+
InTransitToConsolidationCenter: 'IN_TRANSIT_TO_CONSOLIDATION_CENTER',
|
|
2664
2728
|
Voided: 'VOIDED',
|
|
2665
2729
|
} as const;
|
|
2666
2730
|
|
|
@@ -2673,6 +2737,7 @@ export const shipmentType = {
|
|
|
2673
2737
|
} as const;
|
|
2674
2738
|
|
|
2675
2739
|
export type ShipmentType = (typeof shipmentType)[keyof typeof shipmentType];
|
|
2740
|
+
|
|
2676
2741
|
export const shippingPaymentType = {
|
|
2677
2742
|
Sender: 'SENDER',
|
|
2678
2743
|
ThirdParty: 'THIRD_PARTY',
|
|
@@ -2834,9 +2899,19 @@ export const taxMethodType = {
|
|
|
2834
2899
|
Consignment: 'CONSIGNMENT',
|
|
2835
2900
|
Default: 'DEFAULT',
|
|
2836
2901
|
Domestic: 'DOMESTIC',
|
|
2902
|
+
SellerOfRecord: 'SELLER_OF_RECORD',
|
|
2837
2903
|
} as const;
|
|
2838
2904
|
|
|
2839
2905
|
export type TaxMethodType = (typeof taxMethodType)[keyof typeof taxMethodType];
|
|
2906
|
+
export const thirdPartyAccountType = {
|
|
2907
|
+
Dhl: 'DHL',
|
|
2908
|
+
Fedex: 'FEDEX',
|
|
2909
|
+
Ups: 'UPS',
|
|
2910
|
+
Usps: 'USPS',
|
|
2911
|
+
} as const;
|
|
2912
|
+
|
|
2913
|
+
export type ThirdPartyAccountType =
|
|
2914
|
+
(typeof thirdPartyAccountType)[keyof typeof thirdPartyAccountType];
|
|
2840
2915
|
export const tokenTypeCategory = {
|
|
2841
2916
|
Auxiliary: 'AUXILIARY',
|
|
2842
2917
|
Functional: 'FUNCTIONAL',
|
|
@@ -2962,6 +3037,7 @@ export const webhookType = {
|
|
|
2962
3037
|
OrderCanceled: 'ORDER_CANCELED',
|
|
2963
3038
|
OrderCreated: 'ORDER_CREATED',
|
|
2964
3039
|
OrderStatusChanged: 'ORDER_STATUS_CHANGED',
|
|
3040
|
+
OrderUpdated: 'ORDER_UPDATED',
|
|
2965
3041
|
ShipmentCanceled: 'SHIPMENT_CANCELED',
|
|
2966
3042
|
ShipmentCreated: 'SHIPMENT_CREATED',
|
|
2967
3043
|
} as const;
|
|
@@ -3154,8 +3230,8 @@ export type FulfillmentCenterQuery = {
|
|
|
3154
3230
|
propertyType: PropertyType | null;
|
|
3155
3231
|
} | null;
|
|
3156
3232
|
};
|
|
3157
|
-
type: FulfillmentCenterType
|
|
3158
|
-
}
|
|
3233
|
+
type: FulfillmentCenterType;
|
|
3234
|
+
}> | null;
|
|
3159
3235
|
};
|
|
3160
3236
|
|
|
3161
3237
|
export type CheckItemRestrictionsMutation = {
|
|
@@ -3296,6 +3372,12 @@ export type GetCheckoutSessionQuery = {
|
|
|
3296
3372
|
checkoutSession: { order: { id: string } | null };
|
|
3297
3373
|
};
|
|
3298
3374
|
|
|
3375
|
+
export type GetInclusivePriceSettingEnabledByCountryQuery = {
|
|
3376
|
+
inclusivePriceSettings: {
|
|
3377
|
+
edges: Array<{ node: { id: string; status: InclusivePriceSettingStatus } }>;
|
|
3378
|
+
} | null;
|
|
3379
|
+
};
|
|
3380
|
+
|
|
3299
3381
|
export type ShippingZonesQuery = {
|
|
3300
3382
|
shippingZones: Array<{
|
|
3301
3383
|
countryCodes: Array<CountryCode> | null;
|
|
@@ -3960,6 +4042,21 @@ export function getSdk(
|
|
|
3960
4042
|
'query',
|
|
3961
4043
|
);
|
|
3962
4044
|
},
|
|
4045
|
+
getInclusivePriceSettingEnabledByCountry(
|
|
4046
|
+
variables?: { [x: string]: never },
|
|
4047
|
+
requestHeaders?: GraphQLClientRequestHeaders,
|
|
4048
|
+
): Promise<GetInclusivePriceSettingEnabledByCountryQuery> {
|
|
4049
|
+
return withWrapper(
|
|
4050
|
+
wrappedRequestHeaders =>
|
|
4051
|
+
client.request<GetInclusivePriceSettingEnabledByCountryQuery>(
|
|
4052
|
+
'',
|
|
4053
|
+
variables,
|
|
4054
|
+
{ ...requestHeaders, ...wrappedRequestHeaders },
|
|
4055
|
+
),
|
|
4056
|
+
'getInclusivePriceSettingEnabledByCountry',
|
|
4057
|
+
'query',
|
|
4058
|
+
);
|
|
4059
|
+
},
|
|
3963
4060
|
getOrder(
|
|
3964
4061
|
variables?: { [x: string]: never },
|
|
3965
4062
|
requestHeaders?: GraphQLClientRequestHeaders,
|
|
@@ -80,6 +80,8 @@ export declare const errorProjectNameEnum: {
|
|
|
80
80
|
};
|
|
81
81
|
export declare const featureAspectKeyEnum: {
|
|
82
82
|
readonly Checkout_2_0: "checkout_2_0";
|
|
83
|
+
readonly ClassifyBulk: "classify_bulk";
|
|
84
|
+
readonly ClassifyBulkExportViewConfidenceScore: "classify_bulk_export_view_confidence_score";
|
|
83
85
|
readonly ClassifySingleRequest: "classify_single_request";
|
|
84
86
|
readonly ComConsolidation: "com_consolidation";
|
|
85
87
|
readonly DashboardCheckout_2Settings: "dashboard_checkout_2_settings";
|
|
@@ -103,6 +105,8 @@ export type Feature_AspectKey_Enum = (typeof featureAspectKeyEnum)[keyof typeof
|
|
|
103
105
|
export declare const featureAudienceNameEnum: {
|
|
104
106
|
readonly AccountsReceivable: "accounts_receivable";
|
|
105
107
|
readonly CheckoutSales: "checkout_sales";
|
|
108
|
+
readonly ClassifyBulkMerchant: "classify_bulk_merchant";
|
|
109
|
+
readonly ClassifyBulkMerchantExportConfidenceScore: "classify_bulk_merchant_export_confidence_score";
|
|
106
110
|
readonly CustomerSuccess: "customer_success";
|
|
107
111
|
readonly DashboardLabelBetaMerchant: "dashboard_label_beta_merchant";
|
|
108
112
|
readonly Designer: "designer";
|
|
@@ -562,7 +566,7 @@ export type GetAudienceByAspectKeyQuery = {
|
|
|
562
566
|
};
|
|
563
567
|
export type LocaleCountryMessagesQuery = {
|
|
564
568
|
locale_countryCodesPage: Array<{
|
|
565
|
-
countryCodes: Array<string
|
|
569
|
+
countryCodes: Array<string>;
|
|
566
570
|
countryCodesPageMessageLinks: Array<{
|
|
567
571
|
id: number;
|
|
568
572
|
message: {
|
|
@@ -58,6 +58,9 @@ export const errorProjectNameEnum = {
|
|
|
58
58
|
|
|
59
59
|
export const featureAspectKeyEnum = {
|
|
60
60
|
Checkout_2_0: 'checkout_2_0',
|
|
61
|
+
ClassifyBulk: 'classify_bulk',
|
|
62
|
+
ClassifyBulkExportViewConfidenceScore:
|
|
63
|
+
'classify_bulk_export_view_confidence_score',
|
|
61
64
|
ClassifySingleRequest: 'classify_single_request',
|
|
62
65
|
ComConsolidation: 'com_consolidation',
|
|
63
66
|
DashboardCheckout_2Settings: 'dashboard_checkout_2_settings',
|
|
@@ -84,6 +87,9 @@ export type Feature_AspectKey_Enum =
|
|
|
84
87
|
export const featureAudienceNameEnum = {
|
|
85
88
|
AccountsReceivable: 'accounts_receivable',
|
|
86
89
|
CheckoutSales: 'checkout_sales',
|
|
90
|
+
ClassifyBulkMerchant: 'classify_bulk_merchant',
|
|
91
|
+
ClassifyBulkMerchantExportConfidenceScore:
|
|
92
|
+
'classify_bulk_merchant_export_confidence_score',
|
|
87
93
|
CustomerSuccess: 'customer_success',
|
|
88
94
|
DashboardLabelBetaMerchant: 'dashboard_label_beta_merchant',
|
|
89
95
|
Designer: 'designer',
|
|
@@ -565,7 +571,7 @@ export type GetAudienceByAspectKeyQuery = {
|
|
|
565
571
|
|
|
566
572
|
export type LocaleCountryMessagesQuery = {
|
|
567
573
|
locale_countryCodesPage: Array<{
|
|
568
|
-
countryCodes: Array<string
|
|
574
|
+
countryCodes: Array<string>;
|
|
569
575
|
countryCodesPageMessageLinks: Array<{
|
|
570
576
|
id: number;
|
|
571
577
|
message: {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { CountryCode, CurrencyCode, HelloCurrencyBehavior, HelloMobileLocation, HelloPeekMessageBehavior, HelloRestrictionBehavior, Mode } from "../generated/graphql.customer.types";
|
|
2
2
|
export type CountryOverrideBehavior = 'URL_PARAM' | 'SESSION';
|
|
3
3
|
export type ShowForCountries = 'ALL' | 'ONLY_SHIPPABLE' | CountryCode[];
|
|
4
|
+
export type ShowCountryList = 'ALL' | 'ONLY_SHIPPABLE' | CountryCode[];
|
|
4
5
|
export type HelloConfig = {
|
|
5
6
|
anchorElementSelector: string;
|
|
6
7
|
cartUrlPattern: string | null;
|
|
@@ -24,6 +25,11 @@ export type HelloConfig = {
|
|
|
24
25
|
productListUrlPattern: string | null;
|
|
25
26
|
productTitleElementSelector: string | null;
|
|
26
27
|
restrictionBehavior: HelloRestrictionBehavior;
|
|
28
|
+
/**
|
|
29
|
+
* The countries to include in the country list dropdown of the Hello widget.
|
|
30
|
+
* @default ONLY_SHIPPABLE
|
|
31
|
+
*/
|
|
32
|
+
showCountryList?: ShowCountryList;
|
|
27
33
|
/**
|
|
28
34
|
* The countries to show the widget for.
|
|
29
35
|
* @default ONLY_SHIPPABLE
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
3
|
+
d="M4.04505 6.64123C2.19006 8.49622 2.19006 11.5038 4.04505 13.3587L11.2929 20.6066C11.6834 20.9971 12.3166 20.9971 12.7071 20.6066L19.955 13.3587C21.8099 11.5038 21.8099 8.49622 19.955 6.64123L17.8336 4.51991C17.4431 4.12939 16.8099 4.12939 16.4194 4.51991L13.5241 7.41527C12.5864 6.86157 11.4136 6.86157 10.4759 7.41527L7.58059 4.51991C7.19006 4.12939 6.5569 4.12939 6.16637 4.51991L4.04505 6.64123ZM5.10571 12.2981C3.83651 11.0289 3.83651 8.9711 5.10571 7.70189L6.87348 5.93413L9.70191 8.76255C10.1056 9.16622 10.6991 9.12 11.0641 8.82749C11.6091 8.39083 12.3909 8.39082 12.9359 8.82749C13.301 9.12 13.8944 9.16622 14.2981 8.76255L17.1265 5.93413L18.8943 7.70189C20.1635 8.9711 20.1635 11.0289 18.8943 12.2981L12 19.1924L5.10571 12.2981Z"
|
|
4
|
+
fill="#0F1015" />
|
|
5
|
+
<path
|
|
6
|
+
d="M10.0333 3.28075C9.63566 3.39679 9.40739 3.8132 9.52343 4.21083C9.63947 4.60846 10.0559 4.83673 10.4535 4.72069C11.4618 4.42644 12.5383 4.42644 13.5466 4.72069C13.9442 4.83673 14.3606 4.60846 14.4766 4.21083C14.5927 3.81321 14.3644 3.39679 13.9668 3.28075C12.6841 2.90642 11.316 2.90642 10.0333 3.28075Z"
|
|
7
|
+
fill="#0F1015" />
|
|
8
|
+
</svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as e,a as n}from"./p-eaa335e1.js";const t=["jsdelivr","unpkg","vercel"],o=e=>{const n=t.indexOf(e);return t[n+1]||null},s="https://js.stripe.com/v3",r=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,i="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used";let l=null;const c=Promise.resolve().then((()=>{return e=null,null!==l||(l=new Promise(((t,o)=>{if("undefined"!=typeof window&&"undefined"!=typeof document)if(window.Stripe&&e&&console.warn(i),window.Stripe)t(window.Stripe);else try{let l=(()=>{const e=document.querySelectorAll(`script[src^="${s}"]`);for(let n=0;n<e.length;n++){const t=e[n];if(t&&r.test(t.src))return t}return null})();l&&e?console.warn(i):l||(l=(e=>{const t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",o=document.createElement("script");o.src=`${s}${t}`;const r=document.head||document.body;return r?(r.appendChild(o),o):(n("Expected document.body not to be null. Stripe.js requires a <body> element."),null)})(e)),null==l||l.addEventListener("load",(()=>{window.Stripe?t(window.Stripe):o(new Error("Stripe.js not available"))})),null==l||l.addEventListener("error",(()=>{o(new Error("Failed to load Stripe.js"))}))}catch(e){return void o(e)}else t(null)}))),l;var e}));let d=!1;var u;c.catch((e=>{d||console.warn(e)}));const a=(()=>{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",".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})(),m="https://v1.3.
|
|
1
|
+
import{l as e,a as n}from"./p-eaa335e1.js";const t=["jsdelivr","unpkg","vercel"],o=e=>{const n=t.indexOf(e);return t[n+1]||null},s="https://js.stripe.com/v3",r=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,i="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used";let l=null;const c=Promise.resolve().then((()=>{return e=null,null!==l||(l=new Promise(((t,o)=>{if("undefined"!=typeof window&&"undefined"!=typeof document)if(window.Stripe&&e&&console.warn(i),window.Stripe)t(window.Stripe);else try{let l=(()=>{const e=document.querySelectorAll(`script[src^="${s}"]`);for(let n=0;n<e.length;n++){const t=e[n];if(t&&r.test(t.src))return t}return null})();l&&e?console.warn(i):l||(l=(e=>{const t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",o=document.createElement("script");o.src=`${s}${t}`;const r=document.head||document.body;return r?(r.appendChild(o),o):(n("Expected document.body not to be null. Stripe.js requires a <body> element."),null)})(e)),null==l||l.addEventListener("load",(()=>{window.Stripe?t(window.Stripe):o(new Error("Stripe.js not available"))})),null==l||l.addEventListener("error",(()=>{o(new Error("Failed to load Stripe.js"))}))}catch(e){return void o(e)}else t(null)}))),l;var e}));let d=!1;var u;c.catch((e=>{d||console.warn(e)}));const a=(()=>{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",".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})(),m="https://v1.3.38.js.zonos.com",p=a||"https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.38",w="jsdelivr",f="https://rsms.me",h="https://fonts.googleapis.com",v=/^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;class y{}u=y,y.doneInit=!1,y.debug="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosDebug=1/),y.zonosConversionTest="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosConversionTest/),y.isBigCommerce=!1,y.isNpm=!0,y.zonosQaUrl=null,y.version="v1.3.38",y.modeAlerted=!1,y.tempCartData=null,y.getCurrentTimestamp=()=>(new Date).getTime(),y.zonosController=null,y.init=async({appearance:t,checkoutSettings:o,currencyConverter:s,helloSettings:r,onCountryChange:i,overrideCurrencyFormat:l,storeId:c,zonosApiKey:d})=>{u.doneInit||(e(`====== ZONOS DEBUG MODE: on (${u.version}) ======`),d?(u.zonosApiKey=d,u.storeId=c,e("init zonos"),u.injectZonosCdn(),u.injectZonosCss(),u.injectFonts(),u.injectController({config:{appearance:t,checkoutSettings:o,currencyConverter:s,helloSettings:r,onCountryChange:i,overrideCurrencyFormat:l},zonosApiKey:d}),u.doneInit=!0):n("Missing Zonos API key"))},y.displayCurrency=()=>{const e=document.querySelector("zonos-hello");e&&e.displayCurrency()},y.openHelloDialog=e=>{const n=document.querySelector("zonos-hello");n&&n.openHelloDialog(null==e||e)},y.showNotification=e=>{var n;null===(n=u.zonosController)||void 0===n||n.showNotification(e)},y.updateOrganizationName=e=>{var n;null===(n=u.zonosController)||void 0===n||n.updateOrganizationName(e)},y.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)}},y.injectController=({config:t,zonosApiKey:o})=>{var s;if(document.querySelector("zonos-controller"))return;if(null===(s=t.checkoutSettings)||void 0===s?void 0:s.placeOrderButtonSelector){const e=t.checkoutSettings.placeOrderButtonSelector;u.disablePlaceOrderButtons({config:t,disable:!0,placeOrderButtonSelector:e}),new MutationObserver((()=>{u.disablePlaceOrderButtons({config:t,disable:!0,placeOrderButtonSelector:e})})).observe(document.body,{childList:!0,subtree:!0})}const r=document.createElement("zonos-controller");r.config=t,r.zonosApiKey=o,r.addEventListener("stripeInitEvent",(async t=>{const{detail:o}=t;e("loading Stripe");const s=await(async(...e)=>{d=!0;const n=Date.now();return c.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)))})(o.publishableKey);s?(window.Zonos.stripe=s,r.initCheckoutElement(s)):n("API seems to be invalid or missing. Failed to load Stripe")})),document.body.appendChild(r),u.zonosController=r,e("Zonos controller injected!")},y.injectScript=({cdnType:t,isModule:s,theRestUrl:r})=>{const i=`${u.getZonosUrl(t)}/${r}`;if(document.querySelector(`script[src="${i}"]`))return void e(`Zonos script "${i}" already exists in the document`,"warn");const l=document.head||document.body,c=document.createElement("script");s?c.type="module":c.noModule=!0,c.src=i,c.crossOrigin="anonymous",c.onerror=()=>{n(`Failed to load ${c.src}`);const e=o(t);e&&u.injectScript({cdnType:e,isModule:s,theRestUrl:r})},l.appendChild(c)},y.getZonosUrl=n=>{const t=()=>{switch(n){case"jsdelivr":return p;case"unpkg":return"https://unpkg.com/@zonos/elements@1.3.38";default:return m}};return u.isNpm&&(()=>{if("undefined"==typeof window)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);if(!n)return null;if("dev-elements"===n)return"https://dev.elements.zonos.com";const t=`https://${n}.preview.js.zonos.com`;return e(`[ZONOS-WARNING] using '${t}' for loading script`,"warn"),fetch(t).then((()=>{window.sessionStorage.removeItem("zonos--checkout-session-id"),window.sessionStorage.removeItem("zonos--client-secret")})).catch((()=>{alert(`[ZONOS-WARNING] '${t}' 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,o=`${n}?${e.toString()}`;return window.history.replaceState(window.history.state,"",o),window.location.reload(),null})),t})()||t()},y.injectZonosCdn=()=>{u.injectScript({cdnType:w,isModule:!0,theRestUrl:"dist/zonos-elements/zonos-elements.esm.js"}),u.injectScript({cdnType:w,isModule:!1,theRestUrl:"dist/zonos-elements/zonos-elements.js"}),e("Zonos cdn script injected!")},y.injectStylesheet=({cdnType:e,theRestUrl:t})=>{const s=u.getZonosUrl(e),r=document.head||document.body,i=document.createElement("link");i.rel="preconnect",i.href=`${m}/`,r.appendChild(i);const l=document.createElement("link");l.rel="stylesheet",l.href=`${s}/${t}`,l.onerror=()=>{n(`Failed to load ${l.href}`);const s=o(e);s&&u.injectStylesheet({cdnType:s,theRestUrl:t})},r.appendChild(l)},y.injectZonosCss=()=>{document.querySelector('link[rel="stylesheet"][href*="/dist/zonos-elements/zonos-elements.css"]')?e("Zonos style links already injected","warn"):(u.injectStylesheet({cdnType:w,theRestUrl:"dist/zonos-elements/zonos-elements.css"}),e("Zonos style css injected!"))},y.injectFonts=()=>{if((()=>{const e=document.querySelectorAll(`link[rel="stylesheet"][href^="${f}"]`);for(let n=0;n<e.length;n++){const t=e[n];if(t&&!v.test(t.href))return t}return null})())return void e("Inter font already injected","warn");const n=document.head||document.body,t=document.createElement("link");t.rel="preconnect",t.href=f,n.appendChild(t);const o=document.createElement("link");o.rel="stylesheet",o.href=`${f}/inter/inter.css`,n.appendChild(o),e("Zonos font injected!")},y.setupGoogleFont=e=>{var n;null===(n=u.zonosController)||void 0===n||n.setupGoogleFont(e)},y.injectSupportGoogleFont=n=>{var t;e(`[FONT] injecting ${n}`);const o=null===(t=n.match(/family=(.*?):/))||void 0===t?void 0:t[1],s=document.head||document.body;if(!document.querySelector(`link[rel="preconnect"][href^="${h}"]`)){const e=document.createElement("link");e.rel="preconnect",e.href=h,s.appendChild(e)}if(document.querySelector(`link[rel="stylesheet"][href="${n}"]`))return void e(`[FONT] ${o} font already injected`,"warn");const r=document.createElement("link");r.rel="stylesheet",r.href=n,s.appendChild(r),e(`[FONT] ${o} font injected!`)};export{y as Zonos}
|