@liquidcommerce/elements-sdk 2.6.0-beta.1 → 2.6.0-beta.100

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (274) hide show
  1. package/README.md +99 -2517
  2. package/dist/index.checkout.esm.js +17794 -0
  3. package/dist/index.esm.js +26010 -20601
  4. package/dist/ssr-stub.checkout.esm.js +18 -0
  5. package/dist/ssr-stub.esm.js +270 -0
  6. package/dist/types/auto-initialize/checkout.d.ts +2 -0
  7. package/dist/types/auto-initialize/shared-utils.d.ts +50 -0
  8. package/dist/types/{elements-base-client.d.ts → clients/base.d.ts} +15 -2
  9. package/dist/types/clients/builder.d.ts +3 -0
  10. package/dist/types/clients/checkout.d.ts +6 -0
  11. package/dist/types/{elements-client-helper.d.ts → clients/helpers.d.ts} +2 -1
  12. package/dist/types/clients/main.d.ts +3 -0
  13. package/dist/types/constants/core.constant.d.ts +13 -6
  14. package/dist/types/core/a11y/announcer.service.d.ts +16 -0
  15. package/dist/types/core/a11y/focus-manager.service.d.ts +21 -0
  16. package/dist/types/core/a11y/focusable.d.ts +5 -0
  17. package/dist/types/core/a11y/glyph-button.d.ts +8 -0
  18. package/dist/types/core/a11y/index.d.ts +5 -0
  19. package/dist/types/core/a11y/single-select.d.ts +16 -0
  20. package/dist/types/core/api/api-client.service.d.ts +23 -22
  21. package/dist/types/core/api/api-result.d.ts +19 -0
  22. package/dist/types/core/api/auth-client.service.d.ts +39 -26
  23. package/dist/types/core/api/http-client.service.d.ts +0 -8
  24. package/dist/types/core/base-component.service.d.ts +4 -1
  25. package/dist/types/core/client/actions/base-action.service.d.ts +22 -0
  26. package/dist/types/core/client/actions/client-address-action.service.d.ts +18 -0
  27. package/dist/types/core/client/actions/client-cart-action.service.d.ts +38 -0
  28. package/dist/types/core/client/actions/client-checkout-action.service.d.ts +69 -0
  29. package/dist/types/core/client/actions/client-product-action.service.d.ts +15 -0
  30. package/dist/types/core/client/client-action.service.d.ts +6 -67
  31. package/dist/types/core/client/client-config.service.d.ts +9 -5
  32. package/dist/types/core/command/base-command.service.d.ts +2 -2
  33. package/dist/types/core/command/common-command.service.d.ts +2 -1
  34. package/dist/types/core/google-tag-manager.service.d.ts +15 -11
  35. package/dist/types/core/logger/logger.service.d.ts +1 -1
  36. package/dist/types/core/pubsub/interfaces/address.interface.d.ts +6 -12
  37. package/dist/types/core/pubsub/interfaces/cart.interface.d.ts +27 -64
  38. package/dist/types/core/pubsub/interfaces/checkout.interface.d.ts +45 -50
  39. package/dist/types/core/pubsub/interfaces/core.interface.d.ts +11 -6
  40. package/dist/types/core/pubsub/interfaces/product.interface.d.ts +16 -81
  41. package/dist/types/core/pubsub/pubsub.service.d.ts +1 -2
  42. package/dist/types/core/singleton-manager.service.d.ts +12 -8
  43. package/dist/types/core/store/interfaces/address.interface.d.ts +3 -12
  44. package/dist/types/core/store/interfaces/cart.interface.d.ts +16 -55
  45. package/dist/types/core/store/interfaces/checkout.interface.d.ts +18 -108
  46. package/dist/types/core/store/interfaces/core.interface.d.ts +16 -5
  47. package/dist/types/core/store/interfaces/metadata.interface.d.ts +11 -0
  48. package/dist/types/core/store/interfaces/product-list.interface.d.ts +30 -0
  49. package/dist/types/core/store/interfaces/product.interface.d.ts +13 -66
  50. package/dist/types/core/store/store.constant.d.ts +6 -1
  51. package/dist/types/core/store/store.service.d.ts +1 -0
  52. package/dist/types/core/telemetry/telemetry.interface.d.ts +0 -1
  53. package/dist/types/core/telemetry/telemetry.service.d.ts +1 -0
  54. package/dist/types/enums/core.enum.d.ts +40 -1
  55. package/dist/types/enums/index.d.ts +0 -1
  56. package/dist/types/index.checkout.d.ts +8 -0
  57. package/dist/types/index.checkout.umd.d.ts +4 -0
  58. package/dist/types/index.d.ts +8 -3
  59. package/dist/types/interfaces/api/address.interface.d.ts +28 -0
  60. package/dist/types/interfaces/api/cart.interface.d.ts +96 -0
  61. package/dist/types/interfaces/api/checkout.interface.d.ts +239 -0
  62. package/dist/types/interfaces/{cloud → api}/index.d.ts +1 -3
  63. package/dist/types/interfaces/api/product-list.interface.d.ts +39 -0
  64. package/dist/types/interfaces/api/product.interface.d.ts +112 -0
  65. package/dist/types/interfaces/client.interface.d.ts +72 -0
  66. package/dist/types/interfaces/component.interface.d.ts +7 -0
  67. package/dist/types/interfaces/config.interface.d.ts +40 -0
  68. package/dist/types/interfaces/configs/address.interface.d.ts +1 -1
  69. package/dist/types/interfaces/configs/cart.interface.d.ts +1 -1
  70. package/dist/types/interfaces/configs/checkout.interface.d.ts +2 -1
  71. package/dist/types/interfaces/configs/configurations.interface.d.ts +5 -5
  72. package/dist/types/interfaces/configs/global.interface.d.ts +10 -3
  73. package/dist/types/interfaces/configs/index.d.ts +1 -0
  74. package/dist/types/interfaces/configs/product-list.interface.d.ts +49 -0
  75. package/dist/types/interfaces/configs/product.interface.d.ts +4 -1
  76. package/dist/types/interfaces/injection.interface.d.ts +49 -0
  77. package/dist/types/modules/address/address-display.component.d.ts +3 -1
  78. package/dist/types/modules/address/address-input.component.d.ts +10 -1
  79. package/dist/types/modules/address/address.command.d.ts +4 -4
  80. package/dist/types/modules/address/address.interface.d.ts +0 -7
  81. package/dist/types/modules/address/styles/register-styles.d.ts +1 -0
  82. package/dist/types/modules/cart/cart.commands.d.ts +4 -5
  83. package/dist/types/modules/cart/components/cart-body.component.d.ts +3 -1
  84. package/dist/types/modules/cart/components/cart-footer.component.d.ts +0 -1
  85. package/dist/types/modules/cart/components/cart-fulfillment.component.d.ts +0 -2
  86. package/dist/types/modules/cart/components/cart-item-quantity-price.component.d.ts +5 -0
  87. package/dist/types/modules/cart/components/cart-item.component.d.ts +6 -0
  88. package/dist/types/modules/cart/styles/register-styles.d.ts +1 -0
  89. package/dist/types/modules/checkout/checkout.commands.d.ts +27 -10
  90. package/dist/types/modules/checkout/checkout.component.d.ts +2 -0
  91. package/dist/types/modules/checkout/components/checkout-billing.component.d.ts +2 -2
  92. package/dist/types/modules/checkout/components/checkout-completed.component.d.ts +5 -0
  93. package/dist/types/modules/checkout/components/checkout-header.component.d.ts +1 -0
  94. package/dist/types/modules/checkout/components/checkout-item-quantity.component.d.ts +4 -0
  95. package/dist/types/modules/checkout/components/checkout-items.component.d.ts +4 -3
  96. package/dist/types/modules/checkout/components/checkout-payment.component.d.ts +2 -1
  97. package/dist/types/modules/checkout/components/checkout-place-order-button.component.d.ts +2 -0
  98. package/dist/types/modules/checkout/components/checkout-presale-countdown.component.d.ts +14 -1
  99. package/dist/types/modules/checkout/components/checkout-presale-expired.component.d.ts +7 -1
  100. package/dist/types/modules/checkout/components/checkout-stripe-form.component.d.ts +2 -1
  101. package/dist/types/modules/checkout/components/checkout-tips.component.d.ts +2 -2
  102. package/dist/types/modules/checkout/components/promo-pc-gc.component.d.ts +0 -2
  103. package/dist/types/modules/checkout/constant.d.ts +3 -0
  104. package/dist/types/modules/checkout/styles/register-styles.d.ts +1 -0
  105. package/dist/types/modules/product/components/components.d.ts +7 -4
  106. package/dist/types/modules/product/components/product-add-to-cart-section.component.d.ts +7 -1
  107. package/dist/types/modules/product/components/product-description.component.d.ts +1 -0
  108. package/dist/types/modules/product/components/product-drawer.component.d.ts +6 -0
  109. package/dist/types/modules/product/components/product-image-carousel.component.d.ts +5 -0
  110. package/dist/types/modules/product/components/product-options.component.d.ts +2 -1
  111. package/dist/types/modules/product/components/product-retailers-carousel.component.d.ts +4 -0
  112. package/dist/types/modules/product/components/product-retailers-popup-list.component.d.ts +10 -2
  113. package/dist/types/modules/product/product.commands.d.ts +7 -7
  114. package/dist/types/modules/product/styles/register-styles.d.ts +1 -0
  115. package/dist/types/modules/product-list/components/card-components/index.d.ts +5 -0
  116. package/dist/types/modules/product-list/components/card-components/product-badge.d.ts +9 -0
  117. package/dist/types/modules/product-list/components/card-components/product-button.d.ts +11 -0
  118. package/dist/types/modules/product-list/components/card-components/product-price-and-personalization.d.ts +14 -0
  119. package/dist/types/modules/product-list/components/card-components/product-quantity-selector.d.ts +11 -0
  120. package/dist/types/modules/product-list/components/card-components/product-sizes-list.d.ts +14 -0
  121. package/dist/types/modules/product-list/components/filter-components/index.d.ts +7 -0
  122. package/dist/types/modules/product-list/components/filter-components/product-list-apply-filter-button.d.ts +1 -0
  123. package/dist/types/modules/product-list/components/filter-components/product-list-checkbox-filter.d.ts +7 -0
  124. package/dist/types/modules/product-list/components/filter-components/product-list-chip.d.ts +5 -0
  125. package/dist/types/modules/product-list/components/filter-components/product-list-filters-chips.d.ts +13 -0
  126. package/dist/types/modules/product-list/components/filter-components/product-list-fulfillment-filter.d.ts +15 -0
  127. package/dist/types/modules/product-list/components/filter-components/product-list-price-filter.d.ts +22 -0
  128. package/dist/types/modules/product-list/components/filter-components/product-list-toggle-filters.d.ts +7 -0
  129. package/dist/types/modules/product-list/components/index.d.ts +6 -0
  130. package/dist/types/modules/product-list/components/product-list-card-loading.component.d.ts +3 -1
  131. package/dist/types/modules/product-list/components/product-list-card.component.d.ts +36 -30
  132. package/dist/types/modules/product-list/components/product-list-engraving.component.d.ts +12 -0
  133. package/dist/types/modules/product-list/components/product-list-filters.component.d.ts +56 -14
  134. package/dist/types/modules/product-list/components/product-list-product-engraving-lines.component.d.ts +22 -0
  135. package/dist/types/modules/product-list/components/product-list-product-pre-cart.component.d.ts +53 -0
  136. package/dist/types/modules/product-list/components/product-list-search.component.d.ts +25 -0
  137. package/dist/types/modules/product-list/product-list-filter.utils.d.ts +8 -0
  138. package/dist/types/modules/product-list/product-list-query-params.utils.d.ts +3 -0
  139. package/dist/types/modules/product-list/product-list.commands.d.ts +23 -7
  140. package/dist/types/modules/product-list/product-list.component.d.ts +17 -39
  141. package/dist/types/modules/product-list/product-list.constants.d.ts +38 -0
  142. package/dist/types/modules/product-list/product-list.interface.d.ts +65 -0
  143. package/dist/types/modules/product-list/styles/product-list-card.style.d.ts +1 -0
  144. package/dist/types/modules/product-list/styles/product-list-filters.style.d.ts +1 -0
  145. package/dist/types/modules/product-list/styles/register-styles.d.ts +1 -0
  146. package/dist/types/modules/theme-provider/constants/component-groupings.d.ts +1 -0
  147. package/dist/types/modules/theme-provider/constants/css-variable-mappings.d.ts +1 -1
  148. package/dist/types/modules/theme-provider/services/style-registry.service.d.ts +16 -0
  149. package/dist/types/modules/theme-provider/services/stylesheet-generator.service.d.ts +0 -1
  150. package/dist/types/modules/theme-provider/styles/register-styles.d.ts +1 -0
  151. package/dist/types/modules/theme-provider/theme-provider.service.d.ts +2 -2
  152. package/dist/types/modules/ui-components/alert/alert.component.d.ts +1 -1
  153. package/dist/types/modules/ui-components/buttons/buttons-open-cart.component.d.ts +5 -0
  154. package/dist/types/modules/ui-components/drawer/drawer.component.d.ts +15 -0
  155. package/dist/types/modules/ui-components/engraving/engraving-form.component.d.ts +8 -1
  156. package/dist/types/modules/ui-components/engraving/engraving-view.component.d.ts +7 -1
  157. package/dist/types/modules/ui-components/input/index.d.ts +0 -1
  158. package/dist/types/modules/ui-components/input/input.component.d.ts +14 -1
  159. package/dist/types/modules/ui-components/lce-element/lce-element.component.d.ts +2 -1
  160. package/dist/types/modules/ui-components/promo-code-ticker/promo-code-ticker.component.d.ts +1 -1
  161. package/dist/types/modules/ui-components/purchase-min-alert/index.d.ts +0 -1
  162. package/dist/types/modules/ui-components/ui.commands.d.ts +7 -1
  163. package/dist/types/ssr/stub.checkout.d.ts +6 -0
  164. package/dist/types/ssr/stub.d.ts +10 -0
  165. package/dist/types/static/icon/arrow-right.icon.d.ts +1 -1
  166. package/dist/types/static/icon/bag.icon.d.ts +1 -1
  167. package/dist/types/static/icon/check.icon.d.ts +2 -0
  168. package/dist/types/static/icon/checkbox.icon.d.ts +1 -1
  169. package/dist/types/static/icon/chevron-down.icon.d.ts +1 -1
  170. package/dist/types/static/icon/chevron-left.icon.d.ts +1 -1
  171. package/dist/types/static/icon/chevron-up.icon.d.ts +2 -0
  172. package/dist/types/static/icon/close.icon.d.ts +1 -1
  173. package/dist/types/static/icon/error-info.icon.d.ts +1 -1
  174. package/dist/types/static/icon/filter.icon.d.ts +2 -0
  175. package/dist/types/static/icon/icon.a11y.d.ts +1 -0
  176. package/dist/types/static/icon/icon.types.d.ts +1 -0
  177. package/dist/types/static/icon/index.d.ts +3 -0
  178. package/dist/types/static/icon/info.icon.d.ts +1 -1
  179. package/dist/types/static/icon/loading-spinner.icon.d.ts +1 -1
  180. package/dist/types/static/icon/search.icon.d.ts +1 -1
  181. package/dist/types/static/icon/success.icon.d.ts +1 -1
  182. package/dist/types/static/icon/trash.icon.d.ts +1 -1
  183. package/dist/types/static/icon/warning.icon.d.ts +1 -1
  184. package/dist/types/utils/dom-compat.d.ts +2 -0
  185. package/dist/types/utils/format.d.ts +4 -14
  186. package/dist/types/utils/image-bg-removal.d.ts +3 -0
  187. package/dist/types/utils/product-selection.d.ts +16 -0
  188. package/dist/types/utils/product.d.ts +15 -0
  189. package/docs/v1/README.md +213 -0
  190. package/docs/v1/api/actions/address-actions.md +286 -0
  191. package/docs/v1/api/actions/cart-actions.md +364 -0
  192. package/docs/v1/api/actions/checkout-actions.md +527 -0
  193. package/docs/v1/api/actions/product-actions.md +204 -0
  194. package/docs/v1/api/client.md +596 -0
  195. package/docs/v1/api/configuration.md +555 -0
  196. package/docs/v1/api/injection-methods.md +292 -0
  197. package/docs/v1/api/typescript-types.md +423 -0
  198. package/docs/v1/api/ui-helpers.md +200 -0
  199. package/docs/v1/examples/advanced-patterns.md +199 -0
  200. package/docs/v1/examples/checkout-flow.md +90 -0
  201. package/docs/v1/examples/custom-theming.md +63 -0
  202. package/docs/v1/examples/multi-product-page.md +90 -0
  203. package/docs/v1/examples/simple-product-page.md +89 -0
  204. package/docs/v1/getting-started/concepts.md +521 -0
  205. package/docs/v1/getting-started/installation.md +349 -0
  206. package/docs/v1/getting-started/quick-start.md +410 -0
  207. package/docs/v1/guides/accessibility.md +173 -0
  208. package/docs/v1/guides/address-component.md +435 -0
  209. package/docs/v1/guides/best-practices.md +365 -0
  210. package/docs/v1/guides/cart-component.md +757 -0
  211. package/docs/v1/guides/checkout-component.md +670 -0
  212. package/docs/v1/guides/events.md +939 -0
  213. package/docs/v1/guides/product-component.md +735 -0
  214. package/docs/v1/guides/product-list-component.md +630 -0
  215. package/docs/v1/guides/theming.md +228 -0
  216. package/docs/v1/integration/angular.md +39 -0
  217. package/docs/v1/integration/laravel.md +41 -0
  218. package/docs/v1/integration/nextjs.md +69 -0
  219. package/docs/v1/integration/proxy-setup.md +106 -0
  220. package/docs/v1/integration/react.md +64 -0
  221. package/docs/v1/integration/vanilla-js.md +84 -0
  222. package/docs/v1/integration/vue.md +58 -0
  223. package/docs/v1/reference/analytics.md +108 -0
  224. package/docs/v1/reference/browser-support.md +47 -0
  225. package/docs/v1/reference/error-handling.md +83 -0
  226. package/docs/v1/reference/performance.md +52 -0
  227. package/docs/v1/reference/telemetry.md +85 -0
  228. package/docs/v1/reference/troubleshooting.md +135 -0
  229. package/package.json +69 -45
  230. package/dist/types/elements-builder-client.d.ts +0 -2
  231. package/dist/types/elements-client.d.ts +0 -2
  232. package/dist/types/enums/cloud.enum.d.ts +0 -77
  233. package/dist/types/interfaces/cloud/address.interface.d.ts +0 -36
  234. package/dist/types/interfaces/cloud/cart.interface.d.ts +0 -132
  235. package/dist/types/interfaces/cloud/catalog.interface.d.ts +0 -43
  236. package/dist/types/interfaces/cloud/checkout.interface.d.ts +0 -214
  237. package/dist/types/interfaces/cloud/core.interface.d.ts +0 -22
  238. package/dist/types/interfaces/cloud/product.interface.d.ts +0 -158
  239. package/dist/types/interfaces/cloud/retailer.interface.d.ts +0 -67
  240. package/dist/types/interfaces/cloud/user.interface.d.ts +0 -100
  241. package/dist/types/interfaces/core.interface.d.ts +0 -111
  242. package/dist/types/modules/cart/cart.commands.helper.d.ts +0 -9
  243. package/dist/types/modules/checkout/components/checkout.type.d.ts +0 -4
  244. package/dist/types/modules/product/utils/helpers.d.ts +0 -3
  245. package/dist/types/modules/product/utils/retailer-hours.d.ts +0 -9
  246. package/dist/types/modules/theme-provider/styles/address/index.d.ts +0 -1
  247. package/dist/types/modules/theme-provider/styles/cart/index.d.ts +0 -1
  248. package/dist/types/modules/theme-provider/styles/checkout/index.d.ts +0 -1
  249. package/dist/types/modules/theme-provider/styles/product/index.d.ts +0 -3
  250. package/dist/types/modules/theme-provider/styles/product-list/index.d.ts +0 -1
  251. package/dist/types/modules/theme-provider/styles/ui/index.d.ts +0 -3
  252. package/dist/types/modules/ui-components/input/birthdate-input.component.d.ts +0 -53
  253. package/dist/types/modules/ui-components/purchase-min-alert/helpers.d.ts +0 -7
  254. package/dist/types/utils/helper.d.ts +0 -27
  255. package/docs/ACTIONS.md +0 -1300
  256. package/docs/BROWSER_SUPPORT.md +0 -279
  257. package/docs/CONFIGURATION.md +0 -853
  258. package/docs/DOCUMENTATION_INDEX.md +0 -311
  259. package/docs/EVENTS.md +0 -798
  260. package/docs/PROXY.md +0 -228
  261. package/docs/THEMING.md +0 -589
  262. package/docs/TROUBLESHOOTING.md +0 -793
  263. package/umd/elements.js +0 -1
  264. /package/dist/types/{auto-initialize.d.ts → auto-initialize/main.d.ts} +0 -0
  265. /package/dist/types/modules/{theme-provider/styles/address → address/styles}/address.style.d.ts +0 -0
  266. /package/dist/types/modules/{theme-provider/styles/cart → cart/styles}/cart.style.d.ts +0 -0
  267. /package/dist/types/modules/{theme-provider/styles/checkout → checkout/styles}/checkout.style.d.ts +0 -0
  268. /package/dist/types/modules/{theme-provider/styles/product → product/styles}/image-carousel.style.d.ts +0 -0
  269. /package/dist/types/modules/{theme-provider/styles/product → product/styles}/product.style.d.ts +0 -0
  270. /package/dist/types/modules/{theme-provider/styles/product → product/styles}/retailers.style.d.ts +0 -0
  271. /package/dist/types/modules/{theme-provider/styles/product-list → product-list/styles}/product-list.style.d.ts +0 -0
  272. /package/dist/types/modules/{theme-provider/styles/ui → ui-components/styles}/drawer.style.d.ts +0 -0
  273. /package/dist/types/modules/{theme-provider/styles/ui → ui-components/styles}/loading.style.d.ts +0 -0
  274. /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.1",
6
+ "version": "2.6.0-beta.100",
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@10.0.0",
17
+ "packageManager": "pnpm@11.18.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
- "umd",
31
- "docs",
37
+ "docs/v1",
32
38
  "README.md",
33
39
  "LICENSE"
34
40
  ],
@@ -39,78 +45,96 @@
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
- "src/index.ts",
44
- "src/index.umd.ts"
50
+ "umd/elements-checkout.js"
45
51
  ],
46
52
  "scripts": {
47
53
  "build": "rollup -c",
48
- "build:dev": "rollup -c --environment NODE_ENV:development",
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 build:dev",
62
+ "fl": "pnpm check && pnpm tsc --noEmit",
55
63
  "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
56
- "clean": "rm -rf dist umd",
57
- "clean:hard": "rm -rf dist umd node_modules && pnpm install && pnpm build",
64
+ "clean": "rm -rf dist umd node_modules && pnpm install && pnpm build:all",
58
65
  "prepublishOnly": "pnpm run build",
59
66
  "deprecate:old": "npm deprecate @liquidcommerceteam/elements-sdk@\"*\" \"Package moved to @liquidcommerce/elements-sdk\"",
60
67
  "prepare": "husky"
61
68
  },
62
69
  "keywords": [
63
70
  "liquidcommerce",
71
+ "vesper",
72
+ "vesper-commerce",
73
+ "accelpay",
74
+ "reservebar",
75
+ "minibar",
64
76
  "alcohol",
65
77
  "beverage",
66
- "alcohol tech",
67
78
  "elements",
68
- "custom web components",
69
- "embeddable components",
70
- "embeddable web components",
71
- "embeddable commerce"
79
+ "alcohol-ecommerce",
80
+ "ecommerce",
81
+ "ecommerce-sdk",
82
+ "headless-commerce",
83
+ "embeddable-commerce",
84
+ "embeddable-components",
85
+ "web-components",
86
+ "custom-elements",
87
+ "shadow-dom",
88
+ "framework-agnostic",
89
+ "typescript",
90
+ "zero-dependencies",
91
+ "product-display",
92
+ "product-list",
93
+ "shopping-cart",
94
+ "cart-drawer",
95
+ "checkout",
96
+ "hosted-checkout",
97
+ "stripe",
98
+ "payments",
99
+ "promo-codes",
100
+ "gift-cards",
101
+ "address-autocomplete",
102
+ "delivery",
103
+ "shipping",
104
+ "pickup",
105
+ "presale",
106
+ "fulfillment",
107
+ "theming"
72
108
  ],
73
109
  "devDependencies": {
74
- "@biomejs/biome": "2.3.5",
75
- "@commitlint/cli": "^20.1.0",
76
- "@commitlint/config-conventional": "^20.0.0",
110
+ "@biomejs/biome": "^2.5.6",
111
+ "@commitlint/cli": "^21.2.1",
112
+ "@commitlint/config-conventional": "^21.2.0",
77
113
  "@rollup/plugin-alias": "^6.0.0",
78
- "@rollup/plugin-commonjs": "^29.0.0",
114
+ "@rollup/plugin-commonjs": "^29.0.3",
79
115
  "@rollup/plugin-json": "^6.1.0",
80
116
  "@rollup/plugin-node-resolve": "^16.0.3",
81
117
  "@rollup/plugin-replace": "^6.0.3",
82
- "@rollup/plugin-terser": "^0.4.4",
83
- "@semantic-release/changelog": "^6.0.3",
118
+ "@rollup/plugin-terser": "^1.0.0",
119
+ "@semantic-release/changelog": "^7.0.0",
84
120
  "@semantic-release/commit-analyzer": "^13.0.1",
85
- "@semantic-release/git": "^10.0.1",
86
- "@semantic-release/github": "^12.0.2",
87
- "@semantic-release/npm": "^13.1.2",
88
- "@semantic-release/release-notes-generator": "^14.1.0",
121
+ "@semantic-release/git": "^11.0.1",
122
+ "@semantic-release/github": "^12.0.9",
123
+ "@semantic-release/npm": "^13.1.5",
124
+ "@semantic-release/release-notes-generator": "^14.1.1",
89
125
  "@types/core-js": "^2.5.8",
90
- "@types/node": "^24.10.1",
91
- "conventional-changelog-cli": "^5.0.0",
126
+ "@types/node": "^26.1.2",
127
+ "conventional-changelog": "8.1.0",
92
128
  "husky": "^9.1.7",
93
129
  "process": "^0.11.10",
94
- "rollup": "^4.53.3",
130
+ "rollup": "^4.62.3",
95
131
  "rollup-obfuscator": "^4.1.1",
96
- "rollup-plugin-typescript2": "^0.36.0",
97
- "semantic-release": "^25.0.2",
132
+ "rollup-plugin-typescript2": "^0.37.0",
133
+ "semantic-release": "^25.0.8",
98
134
  "ts-node": "^10.9.2",
99
- "typescript": "^5.9.3"
135
+ "typescript": "6.0.3"
100
136
  },
101
137
  "engines": {
102
138
  "node": ">=22"
103
- },
104
- "pnpm": {
105
- "peerDependencyRules": {
106
- "ignoreMissing": []
107
- },
108
- "onlyBuiltDependencies": [
109
- "@biomejs/biome",
110
- "javascript-obfuscator"
111
- ],
112
- "overrides": {
113
- "@conventional-changelog/git-client@<2.0.0": ">=2.0.0"
114
- }
115
139
  }
116
140
  }
@@ -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,2 +0,0 @@
1
- import type { ILiquidCommerceElementsClient, ILiquidCommerceElementsConfig } from '@/interfaces/core.interface';
2
- export declare function Elements(apiKey: string, config: ILiquidCommerceElementsConfig): Promise<ILiquidCommerceElementsClient | null>;
@@ -1,77 +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];
@@ -1,36 +0,0 @@
1
- import type { ICoreParams } from './core.interface';
2
- export interface IAddress {
3
- id?: string;
4
- one: string;
5
- two: string;
6
- city: string;
7
- state: string;
8
- zip: string;
9
- country?: string;
10
- }
11
- export interface ICoords {
12
- lat: number;
13
- long: number;
14
- }
15
- export interface ILoc {
16
- address?: IAddress;
17
- coords?: ICoords;
18
- }
19
- export interface ILocBase extends ICoreParams {
20
- loc?: ILoc;
21
- }
22
- export interface IAddressAutocompleteParams extends ICoreParams {
23
- input: string;
24
- }
25
- export interface IAddressAutocompleteResult {
26
- id: string;
27
- description: string;
28
- }
29
- export interface IAddressDetailsParams extends ICoreParams {
30
- id: string;
31
- }
32
- export interface IAddressDetailsResult {
33
- formattedAddress: string;
34
- coords: ICoords;
35
- address: Omit<IAddress, 'id'>;
36
- }
@@ -1,132 +0,0 @@
1
- import type { CartEventEnum } from '@/enums';
2
- import type { ILoc, ILocBase } from './address.interface';
3
- import type { IProduct, IProductPresale } from './product.interface';
4
- import type { IRetailer } from './retailer.interface';
5
- export interface ICartItemEngraving {
6
- isEngravable: boolean;
7
- hasEngraving: boolean;
8
- fee: number;
9
- maxCharsPerLine: number;
10
- maxLines: number;
11
- location: string;
12
- lines: string[];
13
- }
14
- export interface ICartItemGiftCart {
15
- sender: string;
16
- message: string;
17
- recipients: string[];
18
- sendDate: string;
19
- }
20
- export interface ICartItemAttributes {
21
- engraving: ICartItemEngraving;
22
- presale: IProductPresale;
23
- giftCard: ICartItemGiftCart;
24
- }
25
- export interface ICartItem extends Partial<Omit<IProduct, 'attributes'>> {
26
- id: string;
27
- retailerId: string;
28
- fulfillmentId: string;
29
- variantId: string;
30
- liquidId: string;
31
- salsifyGrouping: string;
32
- salsifyPid?: string;
33
- partNumber: string;
34
- upc: string;
35
- sku: string;
36
- name: string;
37
- brand: string;
38
- size: string;
39
- volume: string;
40
- uom: string;
41
- abv: string;
42
- proof: string;
43
- catPath: string;
44
- pack: boolean;
45
- packDesc: string;
46
- container: string;
47
- containerType: string;
48
- quantity: number;
49
- maxQuantity: number;
50
- unitPrice: number;
51
- price: number;
52
- scheduledFor: string | Date;
53
- availableAt: string | Date;
54
- images: string[];
55
- mainImage: string;
56
- attributes: ICartItemAttributes;
57
- }
58
- export interface ICartAttributesPromoCode {
59
- value: string;
60
- discount: number;
61
- freeDelivery: boolean;
62
- freeServiceFee: boolean;
63
- freeShipping: boolean;
64
- }
65
- export interface ICartAttributesAmountsFees {
66
- shipping: number;
67
- onDemand: number;
68
- }
69
- export interface ICartAttributesAmountsDiscounts {
70
- shipping: number;
71
- onDemand: number;
72
- engraving: number;
73
- service: number;
74
- products: number;
75
- }
76
- export interface ICartAttributesAmounts {
77
- fees: ICartAttributesAmountsFees;
78
- discounts: ICartAttributesAmountsDiscounts;
79
- }
80
- export interface ICartAttributes {
81
- promoCode: ICartAttributesPromoCode;
82
- amounts: ICartAttributesAmounts;
83
- }
84
- export interface ICartRetailer extends IRetailer {
85
- platformFee: number;
86
- engravingFee: number;
87
- deliveryFee: number;
88
- shippingFee: number;
89
- subtotal: number;
90
- total: number;
91
- }
92
- export interface ICartEvent {
93
- type: CartEventEnum;
94
- message: string;
95
- items?: Array<Partial<ICartItem>>;
96
- }
97
- export interface ICart {
98
- id: string;
99
- quantity: number;
100
- platformFee: number;
101
- deliveryFee: number;
102
- engravingFee: number;
103
- shippingFee: number;
104
- discounts: number;
105
- giftCardTotal: number;
106
- subtotal: number;
107
- total: number;
108
- isPresaleLocked: boolean;
109
- presaleExpiresAt: string | null;
110
- createdAt: string | Date;
111
- updatedAt: string | Date;
112
- items: ICartItem[];
113
- loc: ILoc;
114
- retailers: ICartRetailer[];
115
- attributes: ICartAttributes;
116
- events: ICartEvent[];
117
- }
118
- export interface ICartUpdateItem {
119
- id?: string;
120
- upc?: string;
121
- partNumber: string;
122
- sku?: string;
123
- quantity: number;
124
- fulfillmentId: string;
125
- engravingLines?: string[];
126
- scheduledFor?: string | Date;
127
- }
128
- export interface ICartUpdateParams extends ILocBase {
129
- id: string;
130
- items: ICartUpdateItem[];
131
- promoCode?: string;
132
- }
@@ -1,43 +0,0 @@
1
- import type { IProduct } from '@/interfaces/cloud/product.interface';
2
- import type { ILocBase } from './address.interface';
3
- import type { IRetailer } from './retailer.interface';
4
- export declare enum ENUM_NAVIGATION_ORDER_DIRECTION_TYPE {
5
- ASC = "asc",
6
- DESC = "desc"
7
- }
8
- export declare enum ENUM_ORDER_BY {
9
- PRICE = "price"
10
- }
11
- export interface ICatalogParams extends ILocBase {
12
- search?: string;
13
- pageToken?: string;
14
- entity?: string;
15
- page?: number;
16
- perPage?: number;
17
- visitorId?: string;
18
- retailers?: string[];
19
- orderBy?: ENUM_ORDER_BY;
20
- orderDirection?: ENUM_NAVIGATION_ORDER_DIRECTION_TYPE;
21
- filters?: Array<Record<any, any>>;
22
- }
23
- export interface ICatalog {
24
- retailers?: IRetailer[];
25
- products?: IProduct[];
26
- navigation?: INavigationSchema;
27
- }
28
- export interface ICursorSchema {
29
- nextPageToken: string;
30
- previousPageToken: string;
31
- }
32
- export interface INavigationSchema {
33
- id: string;
34
- correctedQuery: string;
35
- attributionToken: string;
36
- currentPage: number;
37
- totalPages: number;
38
- totalCount: number;
39
- availableOrderBy: ENUM_ORDER_BY[];
40
- availableOrderDirection: ENUM_NAVIGATION_ORDER_DIRECTION_TYPE[];
41
- cursor: ICursorSchema;
42
- filters: any[];
43
- }
@@ -1,214 +0,0 @@
1
- import type { CheckoutEventEnum } from '@/enums';
2
- import type { ICoreParams } from '@/interfaces/cloud/core.interface';
3
- import type { IAddress } from './address.interface';
4
- import type { ICartAttributesPromoCode, ICartItemAttributes } from './cart.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?: IAddress;
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 ICheckoutPrepareResponse {
179
- token: string;
180
- cartId: string;
181
- customer: ICheckoutCustomer;
182
- hasAgeVerify: boolean;
183
- hasSubstitutionPolicy: boolean;
184
- isGift: boolean;
185
- createdAt: string;
186
- updatedAt: string;
187
- billingSameAsShipping: boolean;
188
- acceptedAccountCreation?: boolean;
189
- giftOptions: ICheckoutGiftOptions;
190
- marketingPreferences: ICheckoutMarketingPreferences;
191
- shippingAddress: IAddress;
192
- billingAddress: ICheckoutBillingAddress;
193
- amounts: ICheckoutTotalAmounts;
194
- items: ICheckoutItem[];
195
- retailers: ICheckoutRetailer[];
196
- payment?: string;
197
- giftCards: ICheckoutGiftCard[];
198
- events: ICheckoutEvents[];
199
- promoCode: ICartAttributesPromoCode;
200
- isPresaleLocked: boolean;
201
- presaleExpiresAt: string | null;
202
- }
203
- export interface ICheckoutCompleteParams extends ICoreParams {
204
- token: string;
205
- payment: string;
206
- }
207
- export interface ICheckoutCompleteResponse {
208
- order: {
209
- number: string;
210
- legacyOrderNumber: string;
211
- referenceId: string;
212
- };
213
- }
214
- export {};