@liquidcommerce/elements-sdk 2.6.0-beta.11 → 2.6.0-beta.111
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 +99 -2518
- package/dist/index.checkout.esm.js +18212 -0
- package/dist/index.esm.js +26222 -20637
- package/dist/ssr-stub.checkout.esm.js +17 -0
- package/dist/ssr-stub.esm.js +269 -0
- package/dist/types/auto-initialize/checkout.d.ts +2 -0
- package/dist/types/auto-initialize/shared-utils.d.ts +50 -0
- package/dist/types/{elements-base-client.d.ts → clients/base.d.ts} +15 -2
- package/dist/types/clients/builder.d.ts +3 -0
- package/dist/types/clients/checkout.d.ts +6 -0
- package/dist/types/{elements-client-helper.d.ts → clients/helpers.d.ts} +2 -1
- package/dist/types/clients/main.d.ts +3 -0
- package/dist/types/constants/core.constant.d.ts +13 -18
- package/dist/types/core/a11y/announcer.service.d.ts +16 -0
- package/dist/types/core/a11y/focus-manager.service.d.ts +21 -0
- package/dist/types/core/a11y/focusable.d.ts +5 -0
- package/dist/types/core/a11y/glyph-button.d.ts +8 -0
- package/dist/types/core/a11y/index.d.ts +6 -0
- package/dist/types/core/a11y/required.d.ts +1 -0
- package/dist/types/core/a11y/single-select.d.ts +20 -0
- package/dist/types/core/api/api-client.service.d.ts +19 -18
- package/dist/types/core/api/api-result.d.ts +19 -0
- package/dist/types/core/api/auth-client.service.d.ts +37 -13
- package/dist/types/core/api/http-client.service.d.ts +0 -8
- package/dist/types/core/base-component.service.d.ts +4 -1
- package/dist/types/core/client/actions/base-action.service.d.ts +22 -0
- package/dist/types/core/client/actions/client-address-action.service.d.ts +18 -0
- package/dist/types/core/client/actions/client-cart-action.service.d.ts +38 -0
- package/dist/types/core/client/actions/client-checkout-action.service.d.ts +69 -0
- package/dist/types/core/client/actions/client-product-action.service.d.ts +15 -0
- package/dist/types/core/client/client-action.service.d.ts +6 -74
- package/dist/types/core/client/client-config.service.d.ts +8 -5
- package/dist/types/core/debug-panel/debug-panel.styles.d.ts +1 -1
- package/dist/types/core/google-tag-manager.service.d.ts +3 -1
- package/dist/types/core/logger/logger.service.d.ts +1 -1
- package/dist/types/core/pubsub/interfaces/address.interface.d.ts +3 -0
- package/dist/types/core/pubsub/interfaces/cart.interface.d.ts +1 -1
- package/dist/types/core/pubsub/interfaces/checkout.interface.d.ts +36 -51
- package/dist/types/core/pubsub/interfaces/core.interface.d.ts +11 -6
- package/dist/types/core/pubsub/pubsub.service.d.ts +1 -2
- package/dist/types/core/singleton-manager.service.d.ts +12 -8
- package/dist/types/core/store/interfaces/cart.interface.d.ts +2 -3
- package/dist/types/core/store/interfaces/checkout.interface.d.ts +19 -108
- package/dist/types/core/store/interfaces/core.interface.d.ts +12 -2
- package/dist/types/core/store/interfaces/metadata.interface.d.ts +11 -0
- package/dist/types/core/store/interfaces/product-list.interface.d.ts +30 -0
- package/dist/types/core/store/interfaces/product.interface.d.ts +1 -0
- package/dist/types/core/store/store.constant.d.ts +5 -0
- package/dist/types/core/store/store.service.d.ts +1 -0
- package/dist/types/core/telemetry/telemetry.service.d.ts +1 -0
- package/dist/types/enums/core.enum.d.ts +39 -2
- package/dist/types/enums/index.d.ts +0 -1
- package/dist/types/index.checkout.d.ts +8 -0
- package/dist/types/index.checkout.umd.d.ts +4 -0
- package/dist/types/index.d.ts +8 -3
- package/dist/types/interfaces/api/cart.interface.d.ts +12 -7
- package/dist/types/interfaces/api/checkout.interface.d.ts +239 -0
- package/dist/types/interfaces/api/index.d.ts +5 -0
- package/dist/types/interfaces/api/product-list.interface.d.ts +15 -6
- package/dist/types/interfaces/api/product.interface.d.ts +10 -4
- package/dist/types/interfaces/client.interface.d.ts +72 -0
- package/dist/types/interfaces/component.interface.d.ts +7 -0
- package/dist/types/interfaces/config.interface.d.ts +40 -0
- package/dist/types/interfaces/configs/address.interface.d.ts +1 -1
- package/dist/types/interfaces/configs/cart.interface.d.ts +1 -1
- package/dist/types/interfaces/configs/checkout.interface.d.ts +2 -1
- package/dist/types/interfaces/configs/global.interface.d.ts +9 -3
- package/dist/types/interfaces/configs/index.d.ts +1 -0
- package/dist/types/interfaces/configs/product-list.interface.d.ts +49 -0
- package/dist/types/interfaces/configs/product.interface.d.ts +5 -1
- package/dist/types/interfaces/injection.interface.d.ts +50 -0
- package/dist/types/modules/address/address-display.component.d.ts +3 -1
- package/dist/types/modules/address/address-input.component.d.ts +10 -1
- package/dist/types/modules/address/address.command.d.ts +2 -1
- package/dist/types/modules/address/styles/register-styles.d.ts +1 -0
- package/dist/types/modules/cart/cart.commands.d.ts +4 -4
- package/dist/types/modules/cart/components/cart-body.component.d.ts +1 -0
- package/dist/types/modules/cart/components/cart-item-quantity-price.component.d.ts +5 -0
- package/dist/types/modules/cart/components/cart-item.component.d.ts +6 -0
- package/dist/types/modules/cart/styles/register-styles.d.ts +1 -0
- package/dist/types/modules/checkout/checkout.commands.d.ts +34 -11
- package/dist/types/modules/checkout/checkout.component.d.ts +6 -1
- package/dist/types/modules/checkout/components/checkout-billing.component.d.ts +5 -2
- package/dist/types/modules/checkout/components/checkout-completed.component.d.ts +5 -0
- package/dist/types/modules/checkout/components/checkout-header.component.d.ts +1 -0
- package/dist/types/modules/checkout/components/checkout-item-quantity.component.d.ts +4 -0
- package/dist/types/modules/checkout/components/checkout-items.component.d.ts +4 -3
- package/dist/types/modules/checkout/components/checkout-order-summary.component.d.ts +2 -0
- package/dist/types/modules/checkout/components/checkout-payment.component.d.ts +2 -1
- package/dist/types/modules/checkout/components/checkout-place-order-button.component.d.ts +2 -0
- package/dist/types/modules/checkout/components/checkout-presale-countdown.component.d.ts +15 -1
- package/dist/types/modules/checkout/components/checkout-presale-expired.component.d.ts +7 -1
- package/dist/types/modules/checkout/components/checkout-send-as-gift.component.d.ts +3 -0
- package/dist/types/modules/checkout/components/checkout-stripe-form.component.d.ts +4 -2
- package/dist/types/modules/checkout/components/checkout-tips.component.d.ts +4 -2
- package/dist/types/modules/checkout/components/promo-pc-gc.component.d.ts +0 -2
- package/dist/types/modules/checkout/components/required-fields-legend.d.ts +1 -0
- package/dist/types/modules/checkout/constant.d.ts +3 -0
- package/dist/types/modules/checkout/payment-session-error.d.ts +4 -0
- package/dist/types/modules/checkout/styles/register-styles.d.ts +1 -0
- package/dist/types/modules/product/components/components.d.ts +26 -2
- package/dist/types/modules/product/components/product-add-to-cart-section.component.d.ts +7 -1
- package/dist/types/modules/product/components/product-description.component.d.ts +1 -0
- package/dist/types/modules/product/components/product-drawer.component.d.ts +6 -0
- package/dist/types/modules/product/components/product-image-carousel.component.d.ts +5 -0
- package/dist/types/modules/product/components/product-options.component.d.ts +2 -1
- package/dist/types/modules/product/components/product-retailers-carousel.component.d.ts +6 -0
- package/dist/types/modules/product/components/product-retailers-popup-list.component.d.ts +12 -2
- package/dist/types/modules/product/product.commands.d.ts +5 -5
- package/dist/types/modules/product/styles/register-styles.d.ts +1 -0
- package/dist/types/modules/product-list/components/card-components/index.d.ts +5 -0
- package/dist/types/modules/product-list/components/card-components/product-badge.d.ts +9 -0
- package/dist/types/modules/product-list/components/card-components/product-button.d.ts +11 -0
- package/dist/types/modules/product-list/components/card-components/product-price-and-personalization.d.ts +14 -0
- package/dist/types/modules/product-list/components/card-components/product-quantity-selector.d.ts +11 -0
- package/dist/types/modules/product-list/components/card-components/product-sizes-list.d.ts +14 -0
- package/dist/types/modules/product-list/components/filter-components/index.d.ts +7 -0
- package/dist/types/modules/product-list/components/filter-components/product-list-apply-filter-button.d.ts +1 -0
- package/dist/types/modules/product-list/components/{product-list-filters-subcomponents/product-list-checkbox-filter.components.d.ts → filter-components/product-list-checkbox-filter.d.ts} +1 -0
- package/dist/types/modules/product-list/components/filter-components/product-list-chip.d.ts +5 -0
- package/dist/types/modules/product-list/components/filter-components/product-list-filters-chips.d.ts +13 -0
- package/dist/types/modules/product-list/components/filter-components/product-list-fulfillment-filter.d.ts +15 -0
- package/dist/types/modules/product-list/components/{product-list-filters-subcomponents/product-list-price-filter.components.d.ts → filter-components/product-list-price-filter.d.ts} +2 -1
- package/dist/types/modules/product-list/components/filter-components/product-list-toggle-filters.d.ts +7 -0
- package/dist/types/modules/product-list/components/index.d.ts +6 -2
- package/dist/types/modules/product-list/components/product-list-card-loading.component.d.ts +3 -1
- package/dist/types/modules/product-list/components/product-list-card.component.d.ts +37 -31
- package/dist/types/modules/product-list/components/product-list-engraving.component.d.ts +12 -0
- package/dist/types/modules/product-list/components/product-list-filters.component.d.ts +58 -36
- package/dist/types/modules/product-list/components/product-list-product-engraving-lines.component.d.ts +22 -0
- package/dist/types/modules/product-list/components/product-list-product-pre-cart.component.d.ts +53 -0
- package/dist/types/modules/product-list/components/product-list-search.component.d.ts +25 -0
- package/dist/types/modules/product-list/product-list-filter.registry.d.ts +42 -0
- package/dist/types/modules/product-list/product-list-filter.utils.d.ts +7 -0
- package/dist/types/modules/product-list/product-list-order.utils.d.ts +3 -0
- package/dist/types/modules/product-list/product-list-query-params.utils.d.ts +3 -0
- package/dist/types/modules/product-list/product-list.commands.d.ts +22 -7
- package/dist/types/modules/product-list/product-list.component.d.ts +23 -47
- package/dist/types/modules/product-list/product-list.constants.d.ts +38 -0
- package/dist/types/modules/product-list/product-list.interface.d.ts +17 -28
- package/dist/types/modules/product-list/styles/product-list-card.style.d.ts +1 -0
- package/dist/types/modules/product-list/styles/product-list-filters.style.d.ts +1 -0
- package/dist/types/modules/product-list/styles/register-styles.d.ts +1 -0
- package/dist/types/modules/theme-provider/constants/component-groupings.d.ts +1 -0
- package/dist/types/modules/theme-provider/constants/css-variable-mappings.d.ts +1 -1
- package/dist/types/modules/theme-provider/services/style-registry.service.d.ts +16 -0
- package/dist/types/modules/theme-provider/services/stylesheet-generator.service.d.ts +0 -1
- package/dist/types/modules/theme-provider/styles/register-styles.d.ts +1 -0
- package/dist/types/modules/theme-provider/theme-provider.service.d.ts +2 -2
- package/dist/types/modules/ui-components/alert/alert.component.d.ts +1 -1
- package/dist/types/modules/ui-components/buttons/buttons-open-cart.component.d.ts +5 -0
- package/dist/types/modules/ui-components/drawer/drawer.component.d.ts +15 -0
- package/dist/types/modules/ui-components/engraving/engraving-form.component.d.ts +8 -1
- package/dist/types/modules/ui-components/engraving/engraving-view.component.d.ts +7 -1
- package/dist/types/modules/ui-components/input/index.d.ts +0 -1
- package/dist/types/modules/ui-components/input/input.component.d.ts +14 -1
- package/dist/types/modules/ui-components/lce-element/lce-element.component.d.ts +2 -1
- package/dist/types/modules/ui-components/promo-code-ticker/promo-code-ticker.component.d.ts +1 -1
- package/dist/types/modules/ui-components/ui.commands.d.ts +7 -1
- package/dist/types/ssr/stub.checkout.d.ts +6 -0
- package/dist/types/ssr/stub.d.ts +10 -0
- package/dist/types/static/icon/arrow-right.icon.d.ts +1 -1
- package/dist/types/static/icon/bag.icon.d.ts +1 -1
- package/dist/types/static/icon/check.icon.d.ts +2 -0
- package/dist/types/static/icon/checkbox.icon.d.ts +1 -1
- package/dist/types/static/icon/chevron-down.icon.d.ts +1 -1
- package/dist/types/static/icon/chevron-left.icon.d.ts +1 -1
- package/dist/types/static/icon/chevron-up.icon.d.ts +1 -1
- package/dist/types/static/icon/close.icon.d.ts +1 -1
- package/dist/types/static/icon/error-info.icon.d.ts +1 -1
- package/dist/types/static/icon/filter.icon.d.ts +1 -1
- package/dist/types/static/icon/icon.a11y.d.ts +1 -0
- package/dist/types/static/icon/icon.types.d.ts +1 -0
- package/dist/types/static/icon/index.d.ts +2 -0
- package/dist/types/static/icon/info.icon.d.ts +1 -1
- package/dist/types/static/icon/loading-spinner.icon.d.ts +1 -1
- package/dist/types/static/icon/search.icon.d.ts +1 -1
- package/dist/types/static/icon/success.icon.d.ts +1 -1
- package/dist/types/static/icon/trash.icon.d.ts +1 -1
- package/dist/types/static/icon/warning.icon.d.ts +1 -1
- package/dist/types/utils/dom-compat.d.ts +2 -0
- package/dist/types/utils/format.d.ts +5 -14
- package/dist/types/utils/image-bg-removal.d.ts +3 -0
- package/dist/types/utils/product-selection.d.ts +16 -0
- package/dist/types/utils/product.d.ts +18 -0
- package/dist/types/utils/timezone.d.ts +6 -0
- package/docs/v1/README.md +213 -0
- package/docs/v1/api/actions/address-actions.md +286 -0
- package/docs/v1/api/actions/cart-actions.md +364 -0
- package/docs/v1/api/actions/checkout-actions.md +527 -0
- package/docs/v1/api/actions/product-actions.md +204 -0
- package/docs/v1/api/client.md +596 -0
- package/docs/v1/api/configuration.md +557 -0
- package/docs/v1/api/injection-methods.md +331 -0
- package/docs/v1/api/typescript-types.md +424 -0
- package/docs/v1/api/ui-helpers.md +200 -0
- package/docs/v1/examples/advanced-patterns.md +199 -0
- package/docs/v1/examples/checkout-flow.md +90 -0
- package/docs/v1/examples/custom-theming.md +63 -0
- package/docs/v1/examples/multi-product-page.md +90 -0
- package/docs/v1/examples/simple-product-page.md +89 -0
- package/docs/v1/getting-started/concepts.md +521 -0
- package/docs/v1/getting-started/installation.md +349 -0
- package/docs/v1/getting-started/quick-start.md +410 -0
- package/docs/v1/guides/accessibility.md +219 -0
- package/docs/v1/guides/address-component.md +435 -0
- package/docs/v1/guides/best-practices.md +365 -0
- package/docs/v1/guides/cart-component.md +757 -0
- package/docs/v1/guides/checkout-component.md +670 -0
- package/docs/v1/guides/events.md +939 -0
- package/docs/v1/guides/product-component.md +736 -0
- package/docs/v1/guides/product-list-component.md +730 -0
- package/docs/v1/guides/theming.md +229 -0
- package/docs/v1/integration/angular.md +39 -0
- package/docs/v1/integration/laravel.md +41 -0
- package/docs/v1/integration/nextjs.md +69 -0
- package/docs/v1/integration/proxy-setup.md +106 -0
- package/docs/v1/integration/react.md +64 -0
- package/docs/v1/integration/vanilla-js.md +84 -0
- package/docs/v1/integration/vue.md +58 -0
- package/docs/v1/reference/analytics.md +107 -0
- package/docs/v1/reference/browser-support.md +47 -0
- package/docs/v1/reference/error-handling.md +83 -0
- package/docs/v1/reference/performance.md +52 -0
- package/docs/v1/reference/telemetry.md +85 -0
- package/docs/v1/reference/troubleshooting.md +135 -0
- package/package.json +75 -45
- package/dist/types/elements-builder-client.d.ts +0 -2
- package/dist/types/elements-client.d.ts +0 -2
- package/dist/types/enums/cloud.enum.d.ts +0 -97
- package/dist/types/interfaces/cloud/checkout.interface.d.ts +0 -218
- package/dist/types/interfaces/cloud/core.interface.d.ts +0 -22
- package/dist/types/interfaces/cloud/index.d.ts +0 -3
- package/dist/types/interfaces/cloud/retailer.interface.d.ts +0 -67
- package/dist/types/interfaces/cloud/user.interface.d.ts +0 -100
- package/dist/types/interfaces/core.interface.d.ts +0 -111
- package/dist/types/modules/checkout/components/checkout.type.d.ts +0 -4
- package/dist/types/modules/product-list/components/product-list-filters-subcomponents/index.d.ts +0 -6
- package/dist/types/modules/product-list/components/product-list-filters-subcomponents/product-list-apply-filter-button.component.d.ts +0 -1
- package/dist/types/modules/product-list/components/product-list-filters-subcomponents/product-list-delivery-options-filter.components.d.ts +0 -16
- package/dist/types/modules/product-list/components/product-list-filters-subcomponents/product-list-search.component.d.ts +0 -16
- package/dist/types/modules/product-list/components/product-list-filters-subcomponents/product-list-toggle-filters.components.d.ts +0 -18
- package/dist/types/modules/theme-provider/styles/address/index.d.ts +0 -1
- package/dist/types/modules/theme-provider/styles/cart/index.d.ts +0 -1
- package/dist/types/modules/theme-provider/styles/checkout/index.d.ts +0 -1
- package/dist/types/modules/theme-provider/styles/product/index.d.ts +0 -3
- package/dist/types/modules/theme-provider/styles/product-list/index.d.ts +0 -1
- package/dist/types/modules/theme-provider/styles/ui/index.d.ts +0 -3
- package/dist/types/modules/ui-components/input/birthdate-input.component.d.ts +0 -53
- package/dist/types/utils/helper.d.ts +0 -28
- package/docs/ACTIONS.md +0 -1300
- package/docs/BROWSER_SUPPORT.md +0 -279
- package/docs/CONFIGURATION.md +0 -853
- package/docs/DOCUMENTATION_INDEX.md +0 -311
- package/docs/EVENTS.md +0 -798
- package/docs/PROXY.md +0 -228
- package/docs/THEMING.md +0 -592
- package/docs/TROUBLESHOOTING.md +0 -793
- package/umd/elements.js +0 -1
- /package/dist/types/{auto-initialize.d.ts → auto-initialize/main.d.ts} +0 -0
- /package/dist/types/modules/{theme-provider/styles/address → address/styles}/address.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/cart → cart/styles}/cart.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/checkout → checkout/styles}/checkout.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/product → product/styles}/image-carousel.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/product → product/styles}/product.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/product → product/styles}/retailers.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/product-list → product-list/styles}/product-list.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/ui → ui-components/styles}/drawer.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/ui → ui-components/styles}/loading.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/ui → ui-components/styles}/promo-code-ticker.style.d.ts +0 -0
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "LiquidCommerce Elements SDK",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"author": "LiquidCommerce Team",
|
|
6
|
-
"version": "2.6.0-beta.
|
|
6
|
+
"version": "2.6.0-beta.111",
|
|
7
7
|
"homepage": "https://docs.liquidcommerce.co/elements-sdk",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
@@ -13,22 +13,28 @@
|
|
|
13
13
|
"url": "https://github.com/liquidcommerce/elements-sdk/issues"
|
|
14
14
|
},
|
|
15
15
|
"module": "./dist/index.esm.js",
|
|
16
|
-
"browser": "./umd/elements.js",
|
|
17
16
|
"types": "./dist/types/index.d.ts",
|
|
18
|
-
"packageManager": "pnpm@
|
|
17
|
+
"packageManager": "pnpm@11.24.0",
|
|
19
18
|
"exports": {
|
|
20
19
|
".": {
|
|
21
20
|
"types": "./dist/types/index.d.ts",
|
|
21
|
+
"node": "./dist/ssr-stub.esm.js",
|
|
22
|
+
"browser": "./dist/index.esm.js",
|
|
22
23
|
"import": "./dist/index.esm.js",
|
|
23
|
-
"browser": "./umd/elements.js",
|
|
24
24
|
"default": "./dist/index.esm.js"
|
|
25
25
|
},
|
|
26
|
+
"./checkout": {
|
|
27
|
+
"types": "./dist/types/index.checkout.d.ts",
|
|
28
|
+
"node": "./dist/ssr-stub.checkout.esm.js",
|
|
29
|
+
"browser": "./dist/index.checkout.esm.js",
|
|
30
|
+
"import": "./dist/index.checkout.esm.js",
|
|
31
|
+
"default": "./dist/index.checkout.esm.js"
|
|
32
|
+
},
|
|
26
33
|
"./package.json": "./package.json"
|
|
27
34
|
},
|
|
28
35
|
"files": [
|
|
29
36
|
"dist",
|
|
30
|
-
"
|
|
31
|
-
"docs",
|
|
37
|
+
"docs/v1",
|
|
32
38
|
"README.md",
|
|
33
39
|
"LICENSE"
|
|
34
40
|
],
|
|
@@ -39,77 +45,101 @@
|
|
|
39
45
|
"type": "module",
|
|
40
46
|
"sideEffects": [
|
|
41
47
|
"dist/index.esm.js",
|
|
48
|
+
"dist/index.checkout.esm.js",
|
|
42
49
|
"umd/elements.js",
|
|
43
|
-
"
|
|
44
|
-
"src/index.umd.ts"
|
|
50
|
+
"umd/elements-checkout.js"
|
|
45
51
|
],
|
|
46
52
|
"scripts": {
|
|
47
53
|
"build": "rollup -c",
|
|
48
|
-
"build:
|
|
54
|
+
"build:checkout": "rollup -c rollup.config.checkout.mjs",
|
|
55
|
+
"build:all": "pnpm build && pnpm build:checkout",
|
|
56
|
+
"build:demo-site": "pnpm build:all && mkdir -p demo-site/sdk && cp umd/elements.js umd/elements-checkout.js demo-site/sdk/",
|
|
49
57
|
"dev": "rollup -c -w",
|
|
50
58
|
"type-check": "tsc --noEmit",
|
|
51
59
|
"lint": "pnpm biome lint --write",
|
|
52
60
|
"format": "biome format --write",
|
|
53
61
|
"check": "pnpm biome check --write .",
|
|
54
|
-
"fl": "pnpm check && pnpm
|
|
62
|
+
"fl": "pnpm check && pnpm tsc --noEmit",
|
|
55
63
|
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
|
|
56
|
-
"clean": "rm -rf dist umd node_modules && pnpm install && pnpm build",
|
|
64
|
+
"clean": "rm -rf dist umd node_modules && pnpm install && pnpm build:all",
|
|
57
65
|
"prepublishOnly": "pnpm run build",
|
|
58
66
|
"deprecate:old": "npm deprecate @liquidcommerceteam/elements-sdk@\"*\" \"Package moved to @liquidcommerce/elements-sdk\"",
|
|
59
|
-
"prepare": "husky"
|
|
67
|
+
"prepare": "husky",
|
|
68
|
+
"test": "vitest run",
|
|
69
|
+
"test:browser": "playwright test"
|
|
60
70
|
},
|
|
61
71
|
"keywords": [
|
|
62
72
|
"liquidcommerce",
|
|
73
|
+
"vesper",
|
|
74
|
+
"vesper-commerce",
|
|
75
|
+
"accelpay",
|
|
76
|
+
"reservebar",
|
|
77
|
+
"minibar",
|
|
63
78
|
"alcohol",
|
|
64
79
|
"beverage",
|
|
65
|
-
"alcohol tech",
|
|
66
80
|
"elements",
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
81
|
+
"alcohol-ecommerce",
|
|
82
|
+
"ecommerce",
|
|
83
|
+
"ecommerce-sdk",
|
|
84
|
+
"headless-commerce",
|
|
85
|
+
"embeddable-commerce",
|
|
86
|
+
"embeddable-components",
|
|
87
|
+
"web-components",
|
|
88
|
+
"custom-elements",
|
|
89
|
+
"shadow-dom",
|
|
90
|
+
"framework-agnostic",
|
|
91
|
+
"typescript",
|
|
92
|
+
"zero-dependencies",
|
|
93
|
+
"product-display",
|
|
94
|
+
"product-list",
|
|
95
|
+
"shopping-cart",
|
|
96
|
+
"cart-drawer",
|
|
97
|
+
"checkout",
|
|
98
|
+
"hosted-checkout",
|
|
99
|
+
"stripe",
|
|
100
|
+
"payments",
|
|
101
|
+
"promo-codes",
|
|
102
|
+
"gift-cards",
|
|
103
|
+
"address-autocomplete",
|
|
104
|
+
"delivery",
|
|
105
|
+
"shipping",
|
|
106
|
+
"pickup",
|
|
107
|
+
"presale",
|
|
108
|
+
"fulfillment",
|
|
109
|
+
"theming"
|
|
71
110
|
],
|
|
72
111
|
"devDependencies": {
|
|
73
|
-
"@biomejs/biome": "2.
|
|
74
|
-
"@commitlint/cli": "^
|
|
75
|
-
"@commitlint/config-conventional": "^
|
|
112
|
+
"@biomejs/biome": "^2.5.11",
|
|
113
|
+
"@commitlint/cli": "^21.2.2",
|
|
114
|
+
"@commitlint/config-conventional": "^21.2.2",
|
|
115
|
+
"@playwright/test": "1.60.0",
|
|
76
116
|
"@rollup/plugin-alias": "^6.0.0",
|
|
77
|
-
"@rollup/plugin-commonjs": "^29.0.
|
|
117
|
+
"@rollup/plugin-commonjs": "^29.0.3",
|
|
78
118
|
"@rollup/plugin-json": "^6.1.0",
|
|
79
119
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
80
120
|
"@rollup/plugin-replace": "^6.0.3",
|
|
81
|
-
"@rollup/plugin-terser": "^0.
|
|
82
|
-
"@semantic-release/changelog": "^
|
|
121
|
+
"@rollup/plugin-terser": "^1.0.0",
|
|
122
|
+
"@semantic-release/changelog": "^7.0.0",
|
|
83
123
|
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
84
|
-
"@semantic-release/git": "^
|
|
85
|
-
"@semantic-release/github": "^12.0.
|
|
86
|
-
"@semantic-release/npm": "^13.1.
|
|
87
|
-
"@semantic-release/release-notes-generator": "^14.1.
|
|
124
|
+
"@semantic-release/git": "^11.0.1",
|
|
125
|
+
"@semantic-release/github": "^12.0.9",
|
|
126
|
+
"@semantic-release/npm": "^13.1.5",
|
|
127
|
+
"@semantic-release/release-notes-generator": "^14.1.1",
|
|
88
128
|
"@types/core-js": "^2.5.8",
|
|
89
|
-
"@types/node": "^
|
|
90
|
-
"conventional-changelog
|
|
129
|
+
"@types/node": "^26.4.0",
|
|
130
|
+
"conventional-changelog": "8.1.3",
|
|
91
131
|
"husky": "^9.1.7",
|
|
132
|
+
"jsdom": "26.1.0",
|
|
92
133
|
"process": "^0.11.10",
|
|
93
|
-
"rollup": "^4.
|
|
134
|
+
"rollup": "^4.63.1",
|
|
94
135
|
"rollup-obfuscator": "^4.1.1",
|
|
95
|
-
"rollup-plugin-typescript2": "^0.
|
|
96
|
-
"semantic-release": "^25.0.
|
|
136
|
+
"rollup-plugin-typescript2": "^0.37.0",
|
|
137
|
+
"semantic-release": "^25.0.9",
|
|
97
138
|
"ts-node": "^10.9.2",
|
|
98
|
-
"typescript": "
|
|
139
|
+
"typescript": "6.0.3",
|
|
140
|
+
"vitest": "2.1.9"
|
|
99
141
|
},
|
|
100
142
|
"engines": {
|
|
101
143
|
"node": ">=22"
|
|
102
|
-
},
|
|
103
|
-
"pnpm": {
|
|
104
|
-
"peerDependencyRules": {
|
|
105
|
-
"ignoreMissing": []
|
|
106
|
-
},
|
|
107
|
-
"onlyBuiltDependencies": [
|
|
108
|
-
"@biomejs/biome",
|
|
109
|
-
"javascript-obfuscator"
|
|
110
|
-
],
|
|
111
|
-
"overrides": {
|
|
112
|
-
"@conventional-changelog/git-client@<2.0.0": ">=2.0.0"
|
|
113
|
-
}
|
|
114
144
|
}
|
|
115
145
|
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import type { ILiquidCommerceElementsBuilderClient, ILiquidCommerceElementsBuilderConfig } from '@/interfaces/core.interface';
|
|
2
|
-
export declare function ElementsBuilder(apiKey: string, config: ILiquidCommerceElementsBuilderConfig): Promise<ILiquidCommerceElementsBuilderClient | null>;
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
export declare enum DAYS_OF_WEEK {
|
|
2
|
-
MONDAY = "monday",
|
|
3
|
-
TUESDAY = "tuesday",
|
|
4
|
-
WEDNESDAY = "wednesday",
|
|
5
|
-
THURSDAY = "thursday",
|
|
6
|
-
FRIDAY = "friday",
|
|
7
|
-
SATURDAY = "saturday",
|
|
8
|
-
SUNDAY = "sunday"
|
|
9
|
-
}
|
|
10
|
-
export declare const CART_EVENT_ENUM: {
|
|
11
|
-
readonly OOS: "OutOfStock";
|
|
12
|
-
readonly ITEMS_NOT_ADDED: "ItemsNotAdded";
|
|
13
|
-
readonly ITEMS_REQUESTED_NOT_ADDED: "ItemsRequestedNotAdded";
|
|
14
|
-
readonly ITEM_NOT_ENGRAVED: "ItemEngravingError";
|
|
15
|
-
readonly ADDRESS_CHANGE: "AddressChange";
|
|
16
|
-
readonly LOCATION_AVAILABILITY: "LocationAvailability";
|
|
17
|
-
readonly PARTNER_PRODUCT_CONFIGS: "PartnerProductConfigs";
|
|
18
|
-
readonly REMOVED_EXISTING_ITEMS: "RemovedExistingCartItems";
|
|
19
|
-
readonly RETAILER_MIN: "RetailerMinNotMet";
|
|
20
|
-
readonly NO_ITEMS_IN_CART: "NoItemsInCart";
|
|
21
|
-
readonly INVALID_ID: "InvalidId";
|
|
22
|
-
readonly NO_ID: "NoId";
|
|
23
|
-
readonly CART_CHECKOUT_PROCESSED: "CartCheckoutProcessed";
|
|
24
|
-
readonly NEW_CART: "NewCart";
|
|
25
|
-
readonly DEFAULT: "CartError";
|
|
26
|
-
readonly ITEM_QTY_CHANGE: "ItemQuantityChange";
|
|
27
|
-
readonly ITEM_ID_NOT_FOUND: "ItemIdNotFound";
|
|
28
|
-
readonly ITEMS_REMOVED: "ItemsRemoved";
|
|
29
|
-
readonly COUPON_PROCESSING_ERROR: "CouponProcessingError";
|
|
30
|
-
readonly COUPON_NOT_FOUND: "CouponNotFound";
|
|
31
|
-
readonly COUPON_EXPIRED: "CouponExpired";
|
|
32
|
-
readonly NO_APPLICABLE_DISCOUNT: "NoApplicableDiscount";
|
|
33
|
-
readonly COUPON_NOT_STARTED: "CouponNotStarted";
|
|
34
|
-
readonly MINIMUM_ORDER_VALUE_NOT_MET: "MinimumOrderValueNotMet";
|
|
35
|
-
readonly MINIMUM_ORDER_UNITS_NOT_MET: "MinimumOrderUnitsNotMet";
|
|
36
|
-
readonly MINIMUM_DISTINCT_ITEMS_NOT_MET: "MinimumDistinctItemsNotMet";
|
|
37
|
-
readonly QUOTA_EXCEEDED: "QuotaExceeded";
|
|
38
|
-
readonly USER_LIMIT_EXCEEDED: "UserLimitExceeded";
|
|
39
|
-
readonly NOT_FIRST_PURCHASE: "NotFirstPurchase";
|
|
40
|
-
readonly INVALID_COUPON: "InvalidCoupon";
|
|
41
|
-
readonly INVALID_MEMBERSHIP: "InvalidMembership";
|
|
42
|
-
readonly INVALID_DOMAIN: "InvalidDomain";
|
|
43
|
-
readonly INVALID_REQUIREMENTS: "InvalidRequirements";
|
|
44
|
-
readonly INVALID_ORGANIZATION: "InvalidOrganization";
|
|
45
|
-
readonly PRODUCT_NOT_ELIGIBLE: "ProductNotEligible";
|
|
46
|
-
readonly NOT_ENOUGH_PREVIOUS_ORDERS: "NotEnoughPreviousOrders";
|
|
47
|
-
readonly PRESALE_ITEMS_NOT_ALLOWED: "PresaleItemsNotAllowed";
|
|
48
|
-
readonly PRESALE_LIMIT_EXCEEDED: "PresaleLimitExceeded";
|
|
49
|
-
readonly PRESALE_NOT_STARTED: "PresaleNotStarted";
|
|
50
|
-
readonly PRESALE_EXPIRED: "PresaleExpired";
|
|
51
|
-
readonly PRESALE_MIXED_CART: "PresaleMixedCart";
|
|
52
|
-
readonly RETAILER_DOES_NOT_ALLOW_PROMOS: "RetailerDoesNotAllowPromos";
|
|
53
|
-
readonly RETAILERS_DO_NOT_ALLOW_PROMOS: "RetailersDoNotAllowPromos";
|
|
54
|
-
};
|
|
55
|
-
export type CartEventEnum = (typeof CART_EVENT_ENUM)[keyof typeof CART_EVENT_ENUM];
|
|
56
|
-
export declare const CHECKOUT_EVENT_ENUM: {
|
|
57
|
-
readonly ERROR_PROCESSING_GIFT_CARDS: "ErrorProcessingGiftCards";
|
|
58
|
-
readonly INVALID_GIFT_CARD_CODE: "InvalidGiftCardCodes";
|
|
59
|
-
readonly INVALID_GIFT_CARD_PARTNER: "InvalidGiftCardPartner";
|
|
60
|
-
readonly INACTIVE_GIFT_CARD: "InactiveGiftCard";
|
|
61
|
-
readonly GIFT_CARD_ALREADY_IN_USE: "GiftCardAlreadyInUse";
|
|
62
|
-
readonly GIFT_CARD_EXPIRED: "GiftCardExpired";
|
|
63
|
-
readonly GIFT_CARD_BALANCE_DEPLETED: "GiftCardBalanceDepleted";
|
|
64
|
-
readonly RETAILER_ONDEMAND_HOURS_NOT_AVAILABLE: "RetailerOnDemandHoursNotAvailable";
|
|
65
|
-
readonly ITEM_QTY_CHANGE: "ItemQuantityChange";
|
|
66
|
-
readonly MAX_QUANTITY_PER_ORDER_EXCEEDED: "MaxQuantityPerOrderExceeded";
|
|
67
|
-
readonly RETAILER_DOES_NOT_ALLOW_PROMOS: "RetailerDoesNotAllowPromos";
|
|
68
|
-
readonly RETAILERS_DO_NOT_ALLOW_PROMOS: "RetailersDoNotAllowPromos";
|
|
69
|
-
readonly RETAILER_DOES_NOT_ALLOW_GIFT_CARDS: "RetailerDoesNotAllowGiftCards";
|
|
70
|
-
readonly RETAILERS_DO_NOT_ALLOW_GIFT_CARDS: "RetailersDoNotAllowGiftCards";
|
|
71
|
-
};
|
|
72
|
-
export type CheckoutEventEnum = (typeof CHECKOUT_EVENT_ENUM)[keyof typeof CHECKOUT_EVENT_ENUM];
|
|
73
|
-
export declare const ENUM_ADDRESS_TYPE: {
|
|
74
|
-
readonly SHIPPING: "shipping";
|
|
75
|
-
readonly BILLING: "billing";
|
|
76
|
-
};
|
|
77
|
-
export type AddressType = (typeof ENUM_ADDRESS_TYPE)[keyof typeof ENUM_ADDRESS_TYPE];
|
|
78
|
-
export declare const ENUM_FILTER_KEYS: {
|
|
79
|
-
readonly BRANDS: "brands";
|
|
80
|
-
readonly FLAVOR: "flavor";
|
|
81
|
-
readonly FULFILLMENT: "fulfillment";
|
|
82
|
-
readonly TAGS: "tags";
|
|
83
|
-
readonly REGION: "region";
|
|
84
|
-
readonly VARIETY: "variety";
|
|
85
|
-
readonly ENGRAVING: "engraving";
|
|
86
|
-
readonly PRICE: "price";
|
|
87
|
-
readonly PRESALE: "presale";
|
|
88
|
-
readonly AVAILABILITY: "availability";
|
|
89
|
-
readonly CATEGORIES: "categories";
|
|
90
|
-
readonly SIZES: "sizes";
|
|
91
|
-
readonly COLORS: "colors";
|
|
92
|
-
readonly APPELLATION: "appellation";
|
|
93
|
-
readonly COUNTRY: "country";
|
|
94
|
-
readonly VINTAGE: "vintage";
|
|
95
|
-
readonly MATERIALS: "materials";
|
|
96
|
-
readonly COLLECTION_TAGS: "collectionTags";
|
|
97
|
-
};
|
|
@@ -1,218 +0,0 @@
|
|
|
1
|
-
import type { CheckoutEventEnum } from '@/enums';
|
|
2
|
-
import type { IAddressAddress } from '@/interfaces/api/address.interface';
|
|
3
|
-
import type { ICartItemAttributes } from '@/interfaces/api/cart.interface';
|
|
4
|
-
import type { ICoreParams } from '@/interfaces/cloud/core.interface';
|
|
5
|
-
import type { IRetailerExpectation } from './retailer.interface';
|
|
6
|
-
export interface ICheckoutRecipient {
|
|
7
|
-
firstName?: string;
|
|
8
|
-
lastName?: string;
|
|
9
|
-
email?: string;
|
|
10
|
-
phone?: string;
|
|
11
|
-
birthDate?: string;
|
|
12
|
-
hasAgeVerify?: boolean;
|
|
13
|
-
}
|
|
14
|
-
export interface IBillingAddress {
|
|
15
|
-
firstName?: string;
|
|
16
|
-
lastName?: string;
|
|
17
|
-
email?: string;
|
|
18
|
-
phone?: string;
|
|
19
|
-
one?: string;
|
|
20
|
-
two?: string;
|
|
21
|
-
city?: string;
|
|
22
|
-
state?: string;
|
|
23
|
-
zip?: string;
|
|
24
|
-
country?: string;
|
|
25
|
-
}
|
|
26
|
-
export interface ICheckoutCustomer {
|
|
27
|
-
id?: string;
|
|
28
|
-
email?: string;
|
|
29
|
-
firstName?: string;
|
|
30
|
-
lastName?: string;
|
|
31
|
-
company?: string;
|
|
32
|
-
phone?: string;
|
|
33
|
-
profileImage?: string;
|
|
34
|
-
birthDate?: string;
|
|
35
|
-
hasAgeVerify?: boolean;
|
|
36
|
-
createdAt?: Date;
|
|
37
|
-
updatedAt?: Date;
|
|
38
|
-
}
|
|
39
|
-
interface ICheckoutBaseAddress {
|
|
40
|
-
id?: string;
|
|
41
|
-
one?: string;
|
|
42
|
-
two?: string;
|
|
43
|
-
city?: string;
|
|
44
|
-
state?: string;
|
|
45
|
-
zip?: string;
|
|
46
|
-
country?: string;
|
|
47
|
-
}
|
|
48
|
-
export type ICheckoutBillingAddress = ICheckoutBaseAddress & Omit<ICheckoutCustomer, 'birthDate' | 'id' | 'createdAt' | 'hasAgeVerify' | 'updatedAt' | 'profileImage'>;
|
|
49
|
-
export interface ICheckoutGiftOptionsRecipient {
|
|
50
|
-
name?: string;
|
|
51
|
-
email?: string;
|
|
52
|
-
phone?: string;
|
|
53
|
-
}
|
|
54
|
-
export interface ICheckoutGiftOptions {
|
|
55
|
-
message?: string;
|
|
56
|
-
recipient?: ICheckoutGiftOptionsRecipient;
|
|
57
|
-
}
|
|
58
|
-
export interface ICheckoutMarketingPreferences {
|
|
59
|
-
canEmail?: boolean;
|
|
60
|
-
canSms?: boolean;
|
|
61
|
-
}
|
|
62
|
-
export interface ICheckoutDeliveryTip {
|
|
63
|
-
fulfillmentId: string;
|
|
64
|
-
tip: number;
|
|
65
|
-
}
|
|
66
|
-
export interface ICheckoutDeliveryInstructions {
|
|
67
|
-
fulfillmentId: string;
|
|
68
|
-
instructions: string;
|
|
69
|
-
}
|
|
70
|
-
export interface ICheckoutPrepareParams extends ICoreParams {
|
|
71
|
-
cartId: string;
|
|
72
|
-
customer?: ICheckoutCustomer | string;
|
|
73
|
-
recipient?: ICheckoutRecipient;
|
|
74
|
-
hasAgeVerify?: boolean;
|
|
75
|
-
shippingAddressTwo?: string;
|
|
76
|
-
billingAddress?: ICheckoutBillingAddress | IBillingAddress;
|
|
77
|
-
hasSubstitutionPolicy?: boolean;
|
|
78
|
-
isGift?: boolean;
|
|
79
|
-
billingSameAsShipping?: boolean;
|
|
80
|
-
giftOptions?: ICheckoutGiftOptions;
|
|
81
|
-
marketingPreferences?: ICheckoutMarketingPreferences;
|
|
82
|
-
deliveryTips?: ICheckoutDeliveryTip[];
|
|
83
|
-
deliveryInstructions?: ICheckoutDeliveryInstructions[];
|
|
84
|
-
acceptedAccountCreation?: boolean;
|
|
85
|
-
scheduledDelivery?: string;
|
|
86
|
-
payment?: string;
|
|
87
|
-
promoCode?: string;
|
|
88
|
-
giftCards?: string[];
|
|
89
|
-
}
|
|
90
|
-
export interface ICheckoutTotalAmountsDiscounts {
|
|
91
|
-
products: number;
|
|
92
|
-
delivery: number;
|
|
93
|
-
shipping: number;
|
|
94
|
-
engraving: number;
|
|
95
|
-
service: number;
|
|
96
|
-
}
|
|
97
|
-
export interface ICheckoutTotalAmountsTaxes {
|
|
98
|
-
bag: number;
|
|
99
|
-
bottleDeposits: number;
|
|
100
|
-
retailDelivery: number;
|
|
101
|
-
products: number;
|
|
102
|
-
delivery: number;
|
|
103
|
-
shipping: number;
|
|
104
|
-
}
|
|
105
|
-
export interface ICheckoutTotalAmountsDetails {
|
|
106
|
-
taxes: ICheckoutTotalAmountsTaxes;
|
|
107
|
-
discounts: ICheckoutTotalAmountsDiscounts;
|
|
108
|
-
}
|
|
109
|
-
export interface ICheckoutTotalAmounts {
|
|
110
|
-
subtotal: number;
|
|
111
|
-
engraving: number;
|
|
112
|
-
service: number;
|
|
113
|
-
shipping: number;
|
|
114
|
-
delivery: number;
|
|
115
|
-
platform: number;
|
|
116
|
-
discounts: number;
|
|
117
|
-
giftCards: number;
|
|
118
|
-
tax: number;
|
|
119
|
-
tip: number;
|
|
120
|
-
total: number;
|
|
121
|
-
details: ICheckoutTotalAmountsDetails;
|
|
122
|
-
}
|
|
123
|
-
export interface ICheckoutFulfillment extends ICheckoutTotalAmounts {
|
|
124
|
-
id: string;
|
|
125
|
-
scheduledFor?: string | Date;
|
|
126
|
-
type: 'shipping' | 'onDemand';
|
|
127
|
-
expectation: IRetailerExpectation;
|
|
128
|
-
items: string[];
|
|
129
|
-
}
|
|
130
|
-
export interface ICheckoutRetailer extends ICheckoutTotalAmounts {
|
|
131
|
-
id: string;
|
|
132
|
-
name: string;
|
|
133
|
-
address?: IAddressAddress;
|
|
134
|
-
fulfillments: ICheckoutFulfillment[];
|
|
135
|
-
}
|
|
136
|
-
export interface ICheckoutItem {
|
|
137
|
-
variantId: string;
|
|
138
|
-
cartItemId: string;
|
|
139
|
-
liquidId: string;
|
|
140
|
-
retailerId: string;
|
|
141
|
-
fulfillmentId: string;
|
|
142
|
-
salsifyPid?: string;
|
|
143
|
-
salsifyGrouping: string;
|
|
144
|
-
name: string;
|
|
145
|
-
catPath: string;
|
|
146
|
-
volume: string;
|
|
147
|
-
uom: string;
|
|
148
|
-
proof: string;
|
|
149
|
-
abv: string;
|
|
150
|
-
containerType: string;
|
|
151
|
-
container: string;
|
|
152
|
-
size: string;
|
|
153
|
-
pack: boolean;
|
|
154
|
-
packDesc: string;
|
|
155
|
-
mainImage: string;
|
|
156
|
-
image: string;
|
|
157
|
-
brand: string;
|
|
158
|
-
partNumber: string;
|
|
159
|
-
upc: string;
|
|
160
|
-
sku: string;
|
|
161
|
-
price: number;
|
|
162
|
-
unitPrice: number;
|
|
163
|
-
quantity: number;
|
|
164
|
-
tax: number;
|
|
165
|
-
unitTax: number;
|
|
166
|
-
bottleDeposits: number;
|
|
167
|
-
attributes: ICartItemAttributes;
|
|
168
|
-
}
|
|
169
|
-
export interface ICheckoutGiftCard {
|
|
170
|
-
code: string;
|
|
171
|
-
applied: number;
|
|
172
|
-
balance: number;
|
|
173
|
-
}
|
|
174
|
-
export interface ICheckoutEvents {
|
|
175
|
-
type: CheckoutEventEnum;
|
|
176
|
-
message: string;
|
|
177
|
-
}
|
|
178
|
-
export interface ICheckoutAttributesPromoCode {
|
|
179
|
-
value: string;
|
|
180
|
-
discount: number;
|
|
181
|
-
freeDelivery: boolean;
|
|
182
|
-
freeServiceFee: boolean;
|
|
183
|
-
freeShipping: boolean;
|
|
184
|
-
}
|
|
185
|
-
export interface ICheckoutPrepareResponse {
|
|
186
|
-
token: string;
|
|
187
|
-
cartId: string;
|
|
188
|
-
customer: ICheckoutCustomer;
|
|
189
|
-
hasAgeVerify: boolean;
|
|
190
|
-
hasSubstitutionPolicy: boolean;
|
|
191
|
-
isGift: boolean;
|
|
192
|
-
createdAt: string;
|
|
193
|
-
updatedAt: string;
|
|
194
|
-
billingSameAsShipping: boolean;
|
|
195
|
-
acceptedAccountCreation?: boolean;
|
|
196
|
-
giftOptions: ICheckoutGiftOptions;
|
|
197
|
-
marketingPreferences: ICheckoutMarketingPreferences;
|
|
198
|
-
shippingAddress: IAddressAddress;
|
|
199
|
-
billingAddress: ICheckoutBillingAddress;
|
|
200
|
-
amounts: ICheckoutTotalAmounts;
|
|
201
|
-
items: ICheckoutItem[];
|
|
202
|
-
retailers: ICheckoutRetailer[];
|
|
203
|
-
payment?: string;
|
|
204
|
-
giftCards: ICheckoutGiftCard[];
|
|
205
|
-
events: ICheckoutEvents[];
|
|
206
|
-
promoCode: ICheckoutAttributesPromoCode;
|
|
207
|
-
isPresaleLocked: boolean;
|
|
208
|
-
presaleExpiresAt: string | null;
|
|
209
|
-
}
|
|
210
|
-
export interface ICheckoutCompleteParams extends ICoreParams {
|
|
211
|
-
token: string;
|
|
212
|
-
payment: string;
|
|
213
|
-
}
|
|
214
|
-
export interface ICheckoutCompleteResponse {
|
|
215
|
-
legacyOrderNumber: string;
|
|
216
|
-
referenceId: string;
|
|
217
|
-
}
|
|
218
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export interface ICoreParams {
|
|
2
|
-
refresh?: boolean;
|
|
3
|
-
isLean?: boolean;
|
|
4
|
-
isLegacy?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export interface ILiquidPaymentToken {
|
|
7
|
-
id?: string;
|
|
8
|
-
type?: string;
|
|
9
|
-
card?: {
|
|
10
|
-
brand: string | null;
|
|
11
|
-
country: string | null;
|
|
12
|
-
expMonth: number | null;
|
|
13
|
-
expYear: number | null;
|
|
14
|
-
last4: string | null;
|
|
15
|
-
funding: string | null;
|
|
16
|
-
};
|
|
17
|
-
created?: number;
|
|
18
|
-
error?: {
|
|
19
|
-
message: string;
|
|
20
|
-
code?: string;
|
|
21
|
-
};
|
|
22
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import type { FulfillmentType } from '@/enums';
|
|
2
|
-
import type { DAYS_OF_WEEK } from '@/enums/cloud.enum';
|
|
3
|
-
import type { IAddressAddress, IAddressCoordinates } from '@/interfaces/api/address.interface';
|
|
4
|
-
export interface IRetailerTimes {
|
|
5
|
-
startsAt: string;
|
|
6
|
-
endsAt: string;
|
|
7
|
-
}
|
|
8
|
-
export interface IRetailerHoursConfig {
|
|
9
|
-
active: boolean;
|
|
10
|
-
times: IRetailerTimes[];
|
|
11
|
-
}
|
|
12
|
-
export type RetailerHours = {
|
|
13
|
-
[day in DAYS_OF_WEEK]: IRetailerHoursConfig;
|
|
14
|
-
};
|
|
15
|
-
export interface IRetailerExpectation {
|
|
16
|
-
detail: string;
|
|
17
|
-
short: string;
|
|
18
|
-
engraving: string;
|
|
19
|
-
}
|
|
20
|
-
export interface IRetailerFreeDelivery {
|
|
21
|
-
min: number;
|
|
22
|
-
active: boolean;
|
|
23
|
-
}
|
|
24
|
-
export interface IFeeShippingConfig {
|
|
25
|
-
maxQuantity: number;
|
|
26
|
-
fee: number;
|
|
27
|
-
active: boolean;
|
|
28
|
-
min: number;
|
|
29
|
-
}
|
|
30
|
-
export interface IRetailerFeeShipping {
|
|
31
|
-
individual: IFeeShippingConfig;
|
|
32
|
-
pack: IFeeShippingConfig;
|
|
33
|
-
free: IRetailerFreeDelivery;
|
|
34
|
-
}
|
|
35
|
-
export interface IRetailerFeeDelivery {
|
|
36
|
-
min: number;
|
|
37
|
-
fee: number;
|
|
38
|
-
free: IRetailerFreeDelivery;
|
|
39
|
-
}
|
|
40
|
-
export type IRetailerFees = IRetailerFeeShipping | IRetailerFeeDelivery;
|
|
41
|
-
export interface IRetailerFulfillments {
|
|
42
|
-
id: string;
|
|
43
|
-
type: FulfillmentType;
|
|
44
|
-
deliveryFee?: number;
|
|
45
|
-
shippingFee?: number;
|
|
46
|
-
engravingFee?: number;
|
|
47
|
-
subtotal?: number;
|
|
48
|
-
timezone?: string;
|
|
49
|
-
fees: IRetailerFees;
|
|
50
|
-
expectation: IRetailerExpectation;
|
|
51
|
-
canEngrave?: boolean;
|
|
52
|
-
hours: RetailerHours;
|
|
53
|
-
breaks: IRetailerTimes[];
|
|
54
|
-
items: string[];
|
|
55
|
-
}
|
|
56
|
-
export interface IRetailer {
|
|
57
|
-
name: string;
|
|
58
|
-
id: string;
|
|
59
|
-
platformFee?: number;
|
|
60
|
-
deliveryFee?: number;
|
|
61
|
-
shippingFee?: number;
|
|
62
|
-
engravingFee?: number;
|
|
63
|
-
subtotal?: number;
|
|
64
|
-
total?: number;
|
|
65
|
-
address?: IAddressAddress & IAddressCoordinates;
|
|
66
|
-
fulfillments: IRetailerFulfillments[];
|
|
67
|
-
}
|