@ecomiq/core 0.1.9 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (278) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +39 -2
  3. package/dist/_virtual/_rolldown/runtime-C6LprzCP.cjs +22 -0
  4. package/dist/api.cjs +117 -102
  5. package/dist/api.d.cts +33 -37
  6. package/dist/api.d.ts +33 -37
  7. package/dist/api.js +116 -100
  8. package/dist/client.cjs +499 -1676
  9. package/dist/client.d.cts +156 -15
  10. package/dist/client.d.ts +156 -15
  11. package/dist/client.js +500 -1675
  12. package/dist/index.cjs +344 -2092
  13. package/dist/index.d.cts +54 -1127
  14. package/dist/index.d.ts +54 -1127
  15. package/dist/index.js +53 -1895
  16. package/dist/libs/bounded-read-cache-Abmb5VnJ.js +41 -0
  17. package/dist/libs/bounded-read-cache-D4644LJo.cjs +41 -0
  18. package/dist/libs/catalog-link-key-B7l5KZsF.js +9 -0
  19. package/dist/libs/catalog-link-key-CZTHJBGD.cjs +9 -0
  20. package/dist/libs/catalog-link-key.d.cts +2 -0
  21. package/dist/libs/catalog-link-key.d.ts +2 -0
  22. package/dist/libs/graphql-_6Y8lR_Q.js +49 -0
  23. package/dist/libs/graphql-selection-Cj51WkJn.cjs +21 -0
  24. package/dist/libs/graphql-selection-H1RMh6VD.js +21 -0
  25. package/dist/libs/graphql-selection.d.cts +3 -0
  26. package/dist/libs/graphql-selection.d.ts +3 -0
  27. package/dist/libs/graphql-wJH7HaQU.cjs +50 -0
  28. package/dist/libs/graphql.d.cts +24 -0
  29. package/dist/libs/graphql.d.ts +24 -0
  30. package/dist/models/amounts-cKBCecl7.js +5 -0
  31. package/dist/models/amounts-lmg89eJQ.cjs +4 -0
  32. package/dist/models/articles-C-4JvT2Z.js +27 -0
  33. package/dist/models/articles-xHCXLKDK.cjs +30 -0
  34. package/dist/models/articles.d.cts +46 -0
  35. package/dist/models/articles.d.ts +46 -0
  36. package/dist/models/catalog-links-BzJeyBy4.js +80 -0
  37. package/dist/models/catalog-links-c4LADGf_.cjs +88 -0
  38. package/dist/models/catalog-links.d.cts +39 -0
  39. package/dist/models/catalog-links.d.ts +39 -0
  40. package/dist/models/categories-CKkJY8_P.js +42 -0
  41. package/dist/models/categories-DZ5i5kwi.cjs +45 -0
  42. package/dist/models/categories.d.cts +54 -0
  43. package/dist/models/categories.d.ts +54 -0
  44. package/dist/models/collections.cjs +13 -22
  45. package/dist/models/collections.d.cts +23 -56
  46. package/dist/models/collections.d.ts +23 -56
  47. package/dist/models/collections.js +12 -20
  48. package/dist/models/complaint-book-D5INpuI2.cjs +64 -0
  49. package/dist/models/complaint-book-QpQZe7Xl.js +58 -0
  50. package/dist/models/complaint-book.d.cts +71 -0
  51. package/dist/models/complaint-book.d.ts +71 -0
  52. package/dist/models/customer-address.cjs +39 -38
  53. package/dist/models/customer-address.d.cts +59 -158
  54. package/dist/models/customer-address.d.ts +59 -158
  55. package/dist/models/customer-address.js +38 -36
  56. package/dist/models/customer-order.cjs +183 -142
  57. package/dist/models/customer-order.d.cts +474 -857
  58. package/dist/models/customer-order.d.ts +474 -857
  59. package/dist/models/customer-order.js +180 -141
  60. package/dist/models/customer-profile.cjs +121 -118
  61. package/dist/models/customer-profile.d.cts +89 -174
  62. package/dist/models/customer-profile.d.ts +89 -174
  63. package/dist/models/customer-profile.js +121 -116
  64. package/dist/models/customer-registration-C13knqyv.js +28 -0
  65. package/dist/models/customer-registration-EZ0yZgGr.cjs +31 -0
  66. package/dist/models/customer-registration.d.cts +66 -0
  67. package/dist/models/customer-registration.d.ts +66 -0
  68. package/dist/models/customer-session-BiX0TXhO.js +41 -0
  69. package/dist/models/customer-session-JeQiC8Yx.cjs +45 -0
  70. package/dist/models/customer-session.d.cts +61 -0
  71. package/dist/models/customer-session.d.ts +61 -0
  72. package/dist/models/geo.cjs +52 -49
  73. package/dist/models/geo.d.cts +141 -270
  74. package/dist/models/geo.d.ts +141 -270
  75. package/dist/models/geo.js +51 -47
  76. package/dist/models/ids.cjs +8 -11
  77. package/dist/models/ids.d.cts +7 -10
  78. package/dist/models/ids.d.ts +7 -10
  79. package/dist/models/ids.js +7 -9
  80. package/dist/models/order-draft-C-2WRbjl.cjs +41 -0
  81. package/dist/models/order-draft-CSIWRIV0.js +39 -0
  82. package/dist/models/order-draft.d.cts +69 -0
  83. package/dist/models/order-draft.d.ts +69 -0
  84. package/dist/models/order-review--xGlZKtS.cjs +18 -0
  85. package/dist/models/order-review-egGeCaqB.js +17 -0
  86. package/dist/models/order-review.d.cts +22 -0
  87. package/dist/models/order-review.d.ts +22 -0
  88. package/dist/models/order-status-CS_OeSPY.cjs +66 -0
  89. package/dist/models/order-status-CgaLkU0M.js +60 -0
  90. package/dist/models/order-status.d.cts +307 -0
  91. package/dist/models/order-status.d.ts +307 -0
  92. package/dist/models/payment-methods--VUUZpMz.js +17 -0
  93. package/dist/models/payment-methods-CmK08zBM.cjs +19 -0
  94. package/dist/models/payment-methods.d.cts +28 -0
  95. package/dist/models/payment-methods.d.ts +28 -0
  96. package/dist/models/personalization-BPFmkdJ0.js +69 -0
  97. package/dist/models/personalization-CQosKg8O.cjs +77 -0
  98. package/dist/models/personalization.d.cts +83 -0
  99. package/dist/models/personalization.d.ts +83 -0
  100. package/dist/models/products.cjs +218 -194
  101. package/dist/models/products.d.cts +646 -1353
  102. package/dist/models/products.d.ts +646 -1353
  103. package/dist/models/products.js +214 -187
  104. package/dist/models/search.cjs +13 -23
  105. package/dist/models/search.d.cts +21 -51
  106. package/dist/models/search.d.ts +21 -51
  107. package/dist/models/search.js +12 -21
  108. package/dist/models/sellers.cjs +44 -0
  109. package/dist/models/sellers.d.cts +82 -0
  110. package/dist/models/sellers.d.ts +82 -0
  111. package/dist/models/sellers.js +38 -0
  112. package/dist/models/settings.cjs +205 -236
  113. package/dist/models/settings.d.cts +853 -6940
  114. package/dist/models/settings.d.ts +853 -6940
  115. package/dist/models/settings.js +213 -239
  116. package/dist/models/storefront-cart.cjs +152 -118
  117. package/dist/models/storefront-cart.d.cts +277 -706
  118. package/dist/models/storefront-cart.d.ts +277 -706
  119. package/dist/models/storefront-cart.js +148 -117
  120. package/dist/models/storefront-checkout.cjs +212 -297
  121. package/dist/models/storefront-checkout.d.cts +672 -2449
  122. package/dist/models/storefront-checkout.d.ts +672 -2449
  123. package/dist/models/storefront-checkout.js +208 -297
  124. package/dist/models/storefront-reviews.cjs +58 -43
  125. package/dist/models/storefront-reviews.d.cts +71 -139
  126. package/dist/models/storefront-reviews.d.ts +71 -139
  127. package/dist/models/storefront-reviews.js +55 -42
  128. package/dist/models/tracking-CiIAhQW0.js +33 -0
  129. package/dist/models/tracking-wNyzQ6Bp.cjs +36 -0
  130. package/dist/models/tracking.d.cts +26 -0
  131. package/dist/models/tracking.d.ts +26 -0
  132. package/dist/models/urls-B0ZODOwH.cjs +35 -0
  133. package/dist/models/urls-Dt_dTt4Q.js +33 -0
  134. package/dist/models/urls.d.cts +233 -0
  135. package/dist/models/urls.d.ts +233 -0
  136. package/dist/redirects.cjs +113 -0
  137. package/dist/redirects.d.cts +11 -0
  138. package/dist/redirects.d.ts +11 -0
  139. package/dist/redirects.js +108 -0
  140. package/dist/services/article.service-DBsOvflH.js +10 -0
  141. package/dist/services/article.service-zmTkbbPV.cjs +11 -0
  142. package/dist/services/article.service.d.cts +4 -0
  143. package/dist/services/article.service.d.ts +4 -0
  144. package/dist/services/cart.service-B0D8s6jI.cjs +37 -0
  145. package/dist/services/cart.service-yMCz9oQP.js +33 -0
  146. package/dist/services/cart.service.d.cts +572 -0
  147. package/dist/services/cart.service.d.ts +572 -0
  148. package/dist/services/catalog-link.service-BQ2d-EPX.js +8 -0
  149. package/dist/services/catalog-link.service-DiB-OVjn.cjs +8 -0
  150. package/dist/services/category.service-8tieYX2r.js +6 -0
  151. package/dist/services/category.service-BsSJZV2B.cjs +6 -0
  152. package/dist/services/checkout.service-CC-3tm2y.js +60 -0
  153. package/dist/services/checkout.service-CG8KrDNY.cjs +69 -0
  154. package/dist/services/checkout.service.d.cts +475 -0
  155. package/dist/services/checkout.service.d.ts +475 -0
  156. package/dist/services/collection.service-C4QETpuI.js +11 -0
  157. package/dist/services/collection.service-DHGN3rhs.cjs +12 -0
  158. package/dist/services/complaint-book.service-C7TxltQe.cjs +13 -0
  159. package/dist/services/complaint-book.service-DXiVyKdD.js +12 -0
  160. package/dist/services/complaint-book.service.d.cts +4 -0
  161. package/dist/services/complaint-book.service.d.ts +4 -0
  162. package/dist/services/customer-address.service-Ca4qla_R.cjs +51 -0
  163. package/dist/services/customer-address.service-xEThx7cQ.js +47 -0
  164. package/dist/services/customer-address.service.d.cts +19 -0
  165. package/dist/services/customer-address.service.d.ts +19 -0
  166. package/dist/services/customer-order.service-DLGgT0xa.cjs +54 -0
  167. package/dist/services/customer-order.service-qHoRBuyX.js +51 -0
  168. package/dist/services/customer-order.service.d.cts +34 -0
  169. package/dist/services/customer-order.service.d.ts +34 -0
  170. package/dist/services/customer-registration.service-C3BNyCHP.cjs +10 -0
  171. package/dist/services/customer-registration.service-CxcWD2hf.js +9 -0
  172. package/dist/services/customer-registration.service.d.cts +5 -0
  173. package/dist/services/customer-registration.service.d.ts +5 -0
  174. package/dist/services/customer-session.service-4YgfbWRB.js +16 -0
  175. package/dist/services/customer-session.service-Bd8pLC2v.cjs +19 -0
  176. package/dist/services/customer.service-BM0NrOxP.cjs +26 -0
  177. package/dist/services/customer.service-BoU6l2-R.js +25 -0
  178. package/dist/services/customer.service.d.cts +10 -0
  179. package/dist/services/customer.service.d.ts +10 -0
  180. package/dist/services/geo.service-C32R7N8W.js +39 -0
  181. package/dist/services/geo.service-JeTT3Wun.cjs +42 -0
  182. package/dist/services/geo.service.d.cts +10 -0
  183. package/dist/services/geo.service.d.ts +10 -0
  184. package/dist/services/layout.service-BkvLzl1g.cjs +50 -0
  185. package/dist/services/layout.service-DmbeMOkK.js +50 -0
  186. package/dist/services/layout.service.d.cts +9 -0
  187. package/dist/services/layout.service.d.ts +9 -0
  188. package/dist/services/order-draft.service-B0VcmWhn.js +13 -0
  189. package/dist/services/order-draft.service-Dlu6eEkV.cjs +14 -0
  190. package/dist/services/order-draft.service.d.cts +4 -0
  191. package/dist/services/order-draft.service.d.ts +4 -0
  192. package/dist/services/order-review.service-BEr-FB6_.cjs +11 -0
  193. package/dist/services/order-review.service-PdBPUsxE.js +11 -0
  194. package/dist/services/order-review.service.d.cts +7 -0
  195. package/dist/services/order-review.service.d.ts +7 -0
  196. package/dist/services/order-status.service-Cn7dsaJo.cjs +26 -0
  197. package/dist/services/order-status.service-MC9hVpP-.js +23 -0
  198. package/dist/services/order-status.service.d.cts +16 -0
  199. package/dist/services/order-status.service.d.ts +16 -0
  200. package/dist/services/page.service-CWhWCjMQ.js +7 -0
  201. package/dist/services/page.service-DmCSeMiR.cjs +7 -0
  202. package/dist/services/page.service.d.cts +4 -0
  203. package/dist/services/page.service.d.ts +4 -0
  204. package/dist/services/payment-method.service-CEt_nB4R.cjs +7 -0
  205. package/dist/services/payment-method.service-CjKbAsOh.js +7 -0
  206. package/dist/services/payment-method.service.d.cts +4 -0
  207. package/dist/services/payment-method.service.d.ts +4 -0
  208. package/dist/services/product.service-B05Qmbuh.js +35 -0
  209. package/dist/services/product.service-B7OFZWB1.cjs +37 -0
  210. package/dist/services/product.service.d.cts +256 -0
  211. package/dist/services/product.service.d.ts +256 -0
  212. package/dist/services/review.service-CO2icjpu.cjs +46 -0
  213. package/dist/services/review.service-De1YkhFp.js +43 -0
  214. package/dist/services/review.service.d.cts +28 -0
  215. package/dist/services/review.service.d.ts +28 -0
  216. package/dist/services/search.service-Bx1zbTHJ.cjs +10 -0
  217. package/dist/services/search.service-DSBMhaSY.js +10 -0
  218. package/dist/services/search.service.d.cts +9 -0
  219. package/dist/services/search.service.d.ts +9 -0
  220. package/dist/services/seller.service-D11WHhbC.cjs +10 -0
  221. package/dist/services/seller.service-DUptDTv4.js +9 -0
  222. package/dist/services/seller.service.d.cts +42 -0
  223. package/dist/services/seller.service.d.ts +42 -0
  224. package/dist/services/tracking.service-CPK1B69N.js +11 -0
  225. package/dist/services/tracking.service-DqOoi8qr.cjs +11 -0
  226. package/dist/services/tracking.service.d.cts +7 -0
  227. package/dist/services/tracking.service.d.ts +7 -0
  228. package/dist/services/url.service-B-nC14Ue.cjs +19 -0
  229. package/dist/services/url.service-CLW0Tc7S.js +18 -0
  230. package/dist/storefront-cache-revision.cjs +23 -0
  231. package/dist/storefront-cache-revision.d.cts +16 -0
  232. package/dist/storefront-cache-revision.d.ts +16 -0
  233. package/dist/storefront-cache-revision.js +17 -0
  234. package/dist/storefront-routes.cjs +14 -0
  235. package/dist/storefront-routes.d.cts +11 -0
  236. package/dist/storefront-routes.d.ts +11 -0
  237. package/dist/storefront-routes.js +12 -0
  238. package/dist/utils-CDEC5xcY.cjs +139 -0
  239. package/dist/utils-DK7qa54o.js +136 -0
  240. package/dist/utils.d.cts +3 -0
  241. package/dist/utils.d.ts +3 -0
  242. package/dist/video-links-CbRO0m8V.js +47 -0
  243. package/dist/video-links-ClryQjPH.cjs +47 -0
  244. package/dist/video-links.d.cts +7 -0
  245. package/dist/video-links.d.ts +7 -0
  246. package/package.json +28 -11
  247. package/dist/api.cjs.map +0 -1
  248. package/dist/api.js.map +0 -1
  249. package/dist/client-Ba1r_uiO.d.ts +0 -195
  250. package/dist/client-Cqcnv2tC.d.cts +0 -195
  251. package/dist/client.cjs.map +0 -1
  252. package/dist/client.js.map +0 -1
  253. package/dist/index.cjs.map +0 -1
  254. package/dist/index.js.map +0 -1
  255. package/dist/models/collections.cjs.map +0 -1
  256. package/dist/models/collections.js.map +0 -1
  257. package/dist/models/customer-address.cjs.map +0 -1
  258. package/dist/models/customer-address.js.map +0 -1
  259. package/dist/models/customer-order.cjs.map +0 -1
  260. package/dist/models/customer-order.js.map +0 -1
  261. package/dist/models/customer-profile.cjs.map +0 -1
  262. package/dist/models/customer-profile.js.map +0 -1
  263. package/dist/models/geo.cjs.map +0 -1
  264. package/dist/models/geo.js.map +0 -1
  265. package/dist/models/ids.cjs.map +0 -1
  266. package/dist/models/ids.js.map +0 -1
  267. package/dist/models/products.cjs.map +0 -1
  268. package/dist/models/products.js.map +0 -1
  269. package/dist/models/search.cjs.map +0 -1
  270. package/dist/models/search.js.map +0 -1
  271. package/dist/models/settings.cjs.map +0 -1
  272. package/dist/models/settings.js.map +0 -1
  273. package/dist/models/storefront-cart.cjs.map +0 -1
  274. package/dist/models/storefront-cart.js.map +0 -1
  275. package/dist/models/storefront-checkout.cjs.map +0 -1
  276. package/dist/models/storefront-checkout.js.map +0 -1
  277. package/dist/models/storefront-reviews.cjs.map +0 -1
  278. package/dist/models/storefront-reviews.js.map +0 -1
package/dist/index.d.cts CHANGED
@@ -1,1127 +1,54 @@
1
- import { Api } from './api.cjs';
2
- export { ApiError, CreateApiOptions, DEFAULT_API_BASE_URL, DEFAULT_API_VERSION, createApi, resolveApiBaseUrl } from './api.cjs';
3
- export { C as CreateClientOptions, a as CustomerAddressMutationResponse, b as CustomerAddressMutationResponseSchema, c as CustomerAddressRequestOptions, d as CustomerOrderRequestOptions, e as CustomerRequestOptions, S as StorefrontClient, f as createClient, g as createCustomerAddress, h as createStorefrontClient, i as deleteCustomerAddress, j as getCustomerAddresses, k as getCustomerMe, l as getCustomerOrder, m as getCustomerOrders, p as patchCustomer, r as registerCustomer, u as updateCustomerAddress } from './client-Cqcnv2tC.cjs';
4
- export { CartToken, CartTokenSchema, EntityId, EntityIdSchema, NullableEntityIdSchema, OptionalEntityIdSchema } from './models/ids.cjs';
5
- import { CmsPageDetailsDto } from './models/settings.cjs';
6
- export { CmsBlockDto, CmsBlockDtoSchema, CmsBrandingSettingsDtoSchema, CmsContactSettingsDtoSchema, CmsContentChannelSchema, CmsCustomScriptsDtoSchema, CmsMenuDto, CmsMenuDtoSchema, CmsMenuItem, CmsMenuItemSchema, CmsPageDetailsDtoSchema, CmsPageStatusSchema, CmsSectionDto, CmsSectionDtoSchema, CmsSeoSettingsDtoSchema, CmsSiteSettingsDtoSchema, CmsSnapshotDto, CmsSnapshotDtoSchema, CmsSocialLinksDtoSchema, CmsTrackingSettingsDtoSchema, JsonElement, JsonElementSchema, StoreCheckoutCartPageSettingsSchema, StoreCheckoutGeneralSettingsSchema, StoreCheckoutOrderBumpSettingsSchema, StoreCheckoutOrdersAndPaymentsSettingsSchema, StoreCheckoutSettingsSchema, StoreCheckoutShippingSettingsSchema, StoreFeatureFlagsSchema, StoreModel, StoreModelSchema, StoreSettingsSnapshotDto, StoreSettingsSnapshotDtoSchema, StoreThemeSettingsSchema, StoreTypeSchema, StoreVisibilitySchema, StorefrontCheckoutSettingsSchema, StorefrontCmsBrandingSchema, StorefrontCmsContactSchema, StorefrontCmsCustomScriptsSchema, StorefrontCmsPageSchema, StorefrontCmsSeoSchema, StorefrontCmsSettingsSchema, StorefrontCmsSocialLinksSchema, StorefrontCmsTrackingSchema, StorefrontFeaturesEnabledSchema, StorefrontMenu, StorefrontMenuItem, StorefrontMenuItemSchema, StorefrontMenuSchema, StorefrontSettings, StorefrontSettingsSchema, StorefrontStoreSchema, StorefrontStoreTypeSchema, StorefrontThemeConfigSchema, getMenuItems } from './models/settings.cjs';
7
- export { Collection, CollectionSchema, Collections, CollectionsSchema } from './models/collections.cjs';
8
- import { ProductDetailParams, ProductsParamsInput, RelatedProductsParams } from './models/products.cjs';
9
- export { BundleItem, BundleItemSchema, Facet, FacetItem, FacetItemSchema, FacetSchema, PriceTier, PriceTierSchema, Product, ProductDetail, ProductDetailParamsSchema, ProductDetailSchema, ProductImage, ProductImageSchema, ProductPriceTier, ProductPriceTierSchema, ProductSchema, ProductSort, ProductSortSchema, ProductSummariesSchema, ProductSummary, ProductSummarySchema, ProductsParams, ProductsParamsSchema, ProductsResponse, ProductsResponseSchema, RelatedProductsParamsSchema, SearchFilter, SearchFilterSchema, SizeGuide, SizeGuideMeasurement, SizeGuideMeasurementSchema, SizeGuideRow, SizeGuideRowSchema, SizeGuideSchema, SpecItem, SpecItemSchema, Variant, VariantItem, VariantItemSchema, VariantOption, VariantOptionSchema, VariantSchema } from './models/products.cjs';
10
- import { ProductAutocompleteParams } from './models/search.cjs';
11
- export { ProductAutocompleteParamsSchema, ProductSuggestion, ProductSuggestionSchema, ProductSuggestionsSchema } from './models/search.cjs';
12
- import { AddCartItemParams, CreateCartParams, GetCartParams, RemoveCartItemParams, UpdateCartItemQuantityParams } from './models/storefront-cart.cjs';
13
- export { AddCartItemParamsSchema, CartItemModifierSchema, CreateCartParamsSchema, GetCartParamsSchema, RemoveCartItemParamsSchema, StorefrontAddress, StorefrontAddressSchema, StorefrontCart, StorefrontCartBundleItem, StorefrontCartBundleItemSchema, StorefrontCartItem, StorefrontCartItemSchema, StorefrontCartSchema, StorefrontCartShippingMethod, StorefrontCartShippingMethodSchema, StorefrontCartStatusSchema, StorefrontCartTotals, StorefrontCartTotalsSchema, UpdateCartItemQuantityParamsSchema } from './models/storefront-cart.cjs';
14
- import { CartPromotionCodeParams, CartCheckoutParams, CartCheckoutResponse, CartCheckoutReadParams, CartCheckoutReadResponse, GetShippingOptionsParams, ShippingOptionsResponse, CartAddressesParams, CartBuyerParams, PutShippingMethodParams, UploadPaymentReceiptParams, CartPaymentReceiptResponse } from './models/storefront-checkout.cjs';
15
- export { CartAddressWrite, CartAddressWriteSchema, CartAddressesParamsSchema, CartBuyerParamsSchema, CartCheckoutParamsSchema, CartCheckoutPayment, CartCheckoutPaymentActionSchema, CartCheckoutPaymentSchema, CartCheckoutReadParamsSchema, CartCheckoutReadResponseSchema, CartCheckoutResponseSchema, CartPaymentMethod, CartPaymentMethodSchema, CartPaymentReceiptResponseSchema, CartPromotionCodeParamsSchema, CheckoutMetadataValue, CheckoutMetadataValueSchema, GetShippingOptionsParamsSchema, PutShippingMethodParamsSchema, ShippingOptionGroup, ShippingOptionGroupSchema, ShippingOptionsResponseSchema, ShippingRate, ShippingRateSchema, StorefrontOrderBump, StorefrontOrderBumpSchema } from './models/storefront-checkout.cjs';
16
- import { CreateProductReviewParams, ListProductReviewsParams } from './models/storefront-reviews.cjs';
17
- export { CreateProductReviewParamsSchema, ListProductReviewsParamsSchema, StorefrontReview, StorefrontReviewSchema, StorefrontReviews, StorefrontReviewsSchema } from './models/storefront-reviews.cjs';
18
- import { Countries, GetDepartmentsParams, Departments, GetDistrictsParams, Districts, GetProvincesParams, Provinces } from './models/geo.cjs';
19
- export { CountriesSchema, Country, CountrySchema, Department, DepartmentSchema, DepartmentsSchema, District, DistrictSchema, DistrictsSchema, GeoDivision, GeoDivisionSchema, GeoDivisionType, GeoDivisionTypeSchema, GetDepartmentsParamsParsed, GetDepartmentsParamsSchema, GetDistrictsParamsParsed, GetDistrictsParamsSchema, GetProvincesParamsParsed, GetProvincesParamsSchema, Province, ProvinceSchema, ProvincesSchema } from './models/geo.cjs';
20
- export { CustomerAddress, CustomerAddressSchema, CustomerAddressUpsertInput, CustomerAddressUpsertInputSchema, CustomerAddresses, CustomerAddressesSchema, CustomerSavedAddress, toCustomerSavedAddresses } from './models/customer-address.cjs';
21
- export { CustomerMe, CustomerMeSchema, CustomerProfile, CustomerProfilePatch, CustomerProfilePatchSchema, CustomerProfileSchema, CustomerRegisterRequest, CustomerRegisterRequestSchema, customerMeToProfile, customerMeToProfilePatch, customerProfileToPatch } from './models/customer-profile.cjs';
22
- export { CustomerOrderDetail, CustomerOrderDetailSchema, CustomerOrderLineItem, CustomerOrderLineItemSchema, CustomerOrderList, CustomerOrderListItem, CustomerOrderListItemSchema, CustomerOrderListSchema, CustomerOrderPayment, CustomerOrderPaymentSchema, CustomerOrderShippingAddress, CustomerOrderShippingAddressSchema, CustomerOrderStatusTimelineEntry, CustomerOrderStatusTimelineSchema, customerOrderStatusTone, formatCustomerOrderStatus, formatOrderDate, formatOrderDateTime } from './models/customer-order.cjs';
23
- import 'zod';
24
-
25
- declare function getProducts(api: Api, params?: ProductsParamsInput): Promise<{
26
- pageIndex: number;
27
- pageSize: number;
28
- totalCount: number;
29
- totalPages: number;
30
- products: {
31
- status: string;
32
- id: string;
33
- slug: string;
34
- name: string;
35
- imageUrl: string;
36
- productType: string;
37
- price: number;
38
- compareAtPrice: number | null;
39
- variantCount: number;
40
- isAvailable: boolean;
41
- totalInventory: number;
42
- bundleItemsCount: number;
43
- brand: string;
44
- category: string;
45
- collections: string[];
46
- tags: string[];
47
- }[];
48
- filters: {
49
- type: "list" | "price_range";
50
- values: {
51
- value: string;
52
- count: number;
53
- label: string | null;
54
- selected: boolean;
55
- }[];
56
- id: string;
57
- label: string;
58
- min: number | null;
59
- max: number | null;
60
- selectedMin: number | null;
61
- selectedMax: number | null;
62
- }[];
63
- }>;
64
- declare function getProductBySlug(api: Api, slug: string, params?: ProductDetailParams): Promise<{
65
- status: string;
66
- id: string;
67
- slug: string;
68
- name: string;
69
- description: string;
70
- imageUrl: string;
71
- productType: string;
72
- price: number;
73
- compareAtPrice: number | null;
74
- isAvailable: boolean;
75
- totalInventory: number;
76
- brand: string;
77
- category: string;
78
- tags: string[];
79
- images: {
80
- name: string;
81
- url: string;
82
- order: number;
83
- }[];
84
- categoryId: string | null;
85
- specifications: {
86
- key: string;
87
- value: string;
88
- name: string;
89
- }[];
90
- variants: {
91
- options: {
92
- key: string;
93
- value: string;
94
- name: string;
95
- }[];
96
- status: string;
97
- id: string | null;
98
- price: number;
99
- compareAtPrice: number | null;
100
- sku: string;
101
- quantity: number;
102
- images: {
103
- name: string;
104
- url: string;
105
- order: number;
106
- }[];
107
- }[];
108
- bundleItems: {
109
- imageUrl: string | null;
110
- brand: string | null;
111
- productId: string;
112
- sku: string | null;
113
- quantity: number;
114
- variantId: string;
115
- productName: string;
116
- variantName: string | null;
117
- available: number;
118
- allowBackorders: boolean;
119
- requiresShipping: boolean;
120
- }[];
121
- sizeGuide: {
122
- id: string;
123
- slug: string;
124
- name: string;
125
- description: string | null;
126
- imageUrl: string | null;
127
- gender: string;
128
- measurementType: string;
129
- unit: string;
130
- notes: string | null;
131
- rows: {
132
- label: string;
133
- order: number;
134
- sizeKey: string;
135
- measurements: {
136
- key: string;
137
- value: number | null;
138
- name: string;
139
- description: string | null;
140
- min: number | null;
141
- max: number | null;
142
- }[];
143
- }[];
144
- } | null;
145
- priceTiers: {
146
- variantId: string;
147
- minQuantity: number;
148
- maxQuantity: number | null;
149
- unitPrice: number;
150
- }[];
151
- createdAt: string | null;
152
- updatedAt: string | null;
153
- }>;
154
- declare function getRelatedProducts(api: Api, params: RelatedProductsParams): Promise<{
155
- status: string;
156
- id: string;
157
- slug: string;
158
- name: string;
159
- imageUrl: string;
160
- productType: string;
161
- price: number;
162
- compareAtPrice: number | null;
163
- variantCount: number;
164
- isAvailable: boolean;
165
- totalInventory: number;
166
- bundleItemsCount: number;
167
- brand: string;
168
- category: string;
169
- collections: string[];
170
- tags: string[];
171
- }[]>;
172
-
173
- declare function autocompleteProducts(api: Api, params: ProductAutocompleteParams): Promise<{
174
- id: string;
175
- slug: string;
176
- name: string;
177
- imageUrl: string;
178
- }[]>;
179
-
180
- declare function listProductReviews(api: Api, params: ListProductReviewsParams): Promise<{
181
- totalCount: number | null;
182
- data: {
183
- id: string;
184
- productId: string;
185
- isVerifiedPurchase: boolean;
186
- rating: number;
187
- title: string | null;
188
- content: string;
189
- reviewerName: string | null;
190
- createdOn: string;
191
- }[];
192
- hasNextPage: boolean;
193
- nextCursor: string | null;
194
- }>;
195
- declare function createProductReview(api: Api, params: CreateProductReviewParams): Promise<{
196
- id: string;
197
- productId: string;
198
- isVerifiedPurchase: boolean;
199
- rating: number;
200
- title: string | null;
201
- content: string;
202
- reviewerName: string | null;
203
- createdOn: string;
204
- }>;
205
-
206
- declare function createCart(api: Api, params: CreateCartParams): Promise<{
207
- status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
208
- id: string;
209
- phone: string | null;
210
- token: string;
211
- cartNumber: string;
212
- email: string | null;
213
- firstName: string | null;
214
- lastName: string | null;
215
- currencyCode: string;
216
- completedAt: string | null;
217
- shippingAddress: {
218
- name: string | null;
219
- address1: string;
220
- city: string;
221
- countryCode: string;
222
- company: string | null;
223
- address2: string | null;
224
- province: string | null;
225
- postalCode: string | null;
226
- district: string | null;
227
- phone: string | null;
228
- latitude: number | null;
229
- longitude: number | null;
230
- } | null;
231
- billingAddress: {
232
- name: string | null;
233
- address1: string;
234
- city: string;
235
- countryCode: string;
236
- company: string | null;
237
- address2: string | null;
238
- province: string | null;
239
- postalCode: string | null;
240
- district: string | null;
241
- phone: string | null;
242
- latitude: number | null;
243
- longitude: number | null;
244
- } | null;
245
- promotionCodes: string[];
246
- items: {
247
- id: string;
248
- productId: string | null;
249
- quantity: number;
250
- variantId: string | null;
251
- unitPrice: number;
252
- bundleItems: {
253
- imageUrl: string | null;
254
- brand: string | null;
255
- productId: string;
256
- sku: string | null;
257
- quantity: number;
258
- variantId: string;
259
- productName: string;
260
- variantName: string | null;
261
- }[];
262
- title: string;
263
- variantLabel: string | null;
264
- productHandle: string | null;
265
- thumbnail: string | null;
266
- variantSku: string | null;
267
- compareAtUnitPrice: number | null;
268
- }[];
269
- shippingMethods: {
270
- id: string;
271
- name: string;
272
- description: string | null;
273
- sellerId: string | null;
274
- locationId: string | null;
275
- shippingMethodId: string | null;
276
- rateId: string | null;
277
- total: number;
278
- estimatedDays: number | null;
279
- pickupPointId: string | null;
280
- scheduledDate: string | null;
281
- scheduledTime: string | null;
282
- serviceCode: string | null;
283
- shippingProfileId: string | null;
284
- }[];
285
- totals: {
286
- total: number;
287
- subtotal: number;
288
- discountTotal: number;
289
- shippingOriginalTotal: number;
290
- shippingTotal: number;
291
- taxTotal: number;
292
- warrantyTotal: number;
293
- };
294
- }>;
295
- declare function getCart(api: Api, params: GetCartParams): Promise<{
296
- status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
297
- id: string;
298
- phone: string | null;
299
- token: string;
300
- cartNumber: string;
301
- email: string | null;
302
- firstName: string | null;
303
- lastName: string | null;
304
- currencyCode: string;
305
- completedAt: string | null;
306
- shippingAddress: {
307
- name: string | null;
308
- address1: string;
309
- city: string;
310
- countryCode: string;
311
- company: string | null;
312
- address2: string | null;
313
- province: string | null;
314
- postalCode: string | null;
315
- district: string | null;
316
- phone: string | null;
317
- latitude: number | null;
318
- longitude: number | null;
319
- } | null;
320
- billingAddress: {
321
- name: string | null;
322
- address1: string;
323
- city: string;
324
- countryCode: string;
325
- company: string | null;
326
- address2: string | null;
327
- province: string | null;
328
- postalCode: string | null;
329
- district: string | null;
330
- phone: string | null;
331
- latitude: number | null;
332
- longitude: number | null;
333
- } | null;
334
- promotionCodes: string[];
335
- items: {
336
- id: string;
337
- productId: string | null;
338
- quantity: number;
339
- variantId: string | null;
340
- unitPrice: number;
341
- bundleItems: {
342
- imageUrl: string | null;
343
- brand: string | null;
344
- productId: string;
345
- sku: string | null;
346
- quantity: number;
347
- variantId: string;
348
- productName: string;
349
- variantName: string | null;
350
- }[];
351
- title: string;
352
- variantLabel: string | null;
353
- productHandle: string | null;
354
- thumbnail: string | null;
355
- variantSku: string | null;
356
- compareAtUnitPrice: number | null;
357
- }[];
358
- shippingMethods: {
359
- id: string;
360
- name: string;
361
- description: string | null;
362
- sellerId: string | null;
363
- locationId: string | null;
364
- shippingMethodId: string | null;
365
- rateId: string | null;
366
- total: number;
367
- estimatedDays: number | null;
368
- pickupPointId: string | null;
369
- scheduledDate: string | null;
370
- scheduledTime: string | null;
371
- serviceCode: string | null;
372
- shippingProfileId: string | null;
373
- }[];
374
- totals: {
375
- total: number;
376
- subtotal: number;
377
- discountTotal: number;
378
- shippingOriginalTotal: number;
379
- shippingTotal: number;
380
- taxTotal: number;
381
- warrantyTotal: number;
382
- };
383
- }>;
384
- declare function addCartItem(api: Api, params: AddCartItemParams): Promise<{
385
- status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
386
- id: string;
387
- phone: string | null;
388
- token: string;
389
- cartNumber: string;
390
- email: string | null;
391
- firstName: string | null;
392
- lastName: string | null;
393
- currencyCode: string;
394
- completedAt: string | null;
395
- shippingAddress: {
396
- name: string | null;
397
- address1: string;
398
- city: string;
399
- countryCode: string;
400
- company: string | null;
401
- address2: string | null;
402
- province: string | null;
403
- postalCode: string | null;
404
- district: string | null;
405
- phone: string | null;
406
- latitude: number | null;
407
- longitude: number | null;
408
- } | null;
409
- billingAddress: {
410
- name: string | null;
411
- address1: string;
412
- city: string;
413
- countryCode: string;
414
- company: string | null;
415
- address2: string | null;
416
- province: string | null;
417
- postalCode: string | null;
418
- district: string | null;
419
- phone: string | null;
420
- latitude: number | null;
421
- longitude: number | null;
422
- } | null;
423
- promotionCodes: string[];
424
- items: {
425
- id: string;
426
- productId: string | null;
427
- quantity: number;
428
- variantId: string | null;
429
- unitPrice: number;
430
- bundleItems: {
431
- imageUrl: string | null;
432
- brand: string | null;
433
- productId: string;
434
- sku: string | null;
435
- quantity: number;
436
- variantId: string;
437
- productName: string;
438
- variantName: string | null;
439
- }[];
440
- title: string;
441
- variantLabel: string | null;
442
- productHandle: string | null;
443
- thumbnail: string | null;
444
- variantSku: string | null;
445
- compareAtUnitPrice: number | null;
446
- }[];
447
- shippingMethods: {
448
- id: string;
449
- name: string;
450
- description: string | null;
451
- sellerId: string | null;
452
- locationId: string | null;
453
- shippingMethodId: string | null;
454
- rateId: string | null;
455
- total: number;
456
- estimatedDays: number | null;
457
- pickupPointId: string | null;
458
- scheduledDate: string | null;
459
- scheduledTime: string | null;
460
- serviceCode: string | null;
461
- shippingProfileId: string | null;
462
- }[];
463
- totals: {
464
- total: number;
465
- subtotal: number;
466
- discountTotal: number;
467
- shippingOriginalTotal: number;
468
- shippingTotal: number;
469
- taxTotal: number;
470
- warrantyTotal: number;
471
- };
472
- }>;
473
- declare function updateCartItemQuantity(api: Api, params: UpdateCartItemQuantityParams): Promise<{
474
- status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
475
- id: string;
476
- phone: string | null;
477
- token: string;
478
- cartNumber: string;
479
- email: string | null;
480
- firstName: string | null;
481
- lastName: string | null;
482
- currencyCode: string;
483
- completedAt: string | null;
484
- shippingAddress: {
485
- name: string | null;
486
- address1: string;
487
- city: string;
488
- countryCode: string;
489
- company: string | null;
490
- address2: string | null;
491
- province: string | null;
492
- postalCode: string | null;
493
- district: string | null;
494
- phone: string | null;
495
- latitude: number | null;
496
- longitude: number | null;
497
- } | null;
498
- billingAddress: {
499
- name: string | null;
500
- address1: string;
501
- city: string;
502
- countryCode: string;
503
- company: string | null;
504
- address2: string | null;
505
- province: string | null;
506
- postalCode: string | null;
507
- district: string | null;
508
- phone: string | null;
509
- latitude: number | null;
510
- longitude: number | null;
511
- } | null;
512
- promotionCodes: string[];
513
- items: {
514
- id: string;
515
- productId: string | null;
516
- quantity: number;
517
- variantId: string | null;
518
- unitPrice: number;
519
- bundleItems: {
520
- imageUrl: string | null;
521
- brand: string | null;
522
- productId: string;
523
- sku: string | null;
524
- quantity: number;
525
- variantId: string;
526
- productName: string;
527
- variantName: string | null;
528
- }[];
529
- title: string;
530
- variantLabel: string | null;
531
- productHandle: string | null;
532
- thumbnail: string | null;
533
- variantSku: string | null;
534
- compareAtUnitPrice: number | null;
535
- }[];
536
- shippingMethods: {
537
- id: string;
538
- name: string;
539
- description: string | null;
540
- sellerId: string | null;
541
- locationId: string | null;
542
- shippingMethodId: string | null;
543
- rateId: string | null;
544
- total: number;
545
- estimatedDays: number | null;
546
- pickupPointId: string | null;
547
- scheduledDate: string | null;
548
- scheduledTime: string | null;
549
- serviceCode: string | null;
550
- shippingProfileId: string | null;
551
- }[];
552
- totals: {
553
- total: number;
554
- subtotal: number;
555
- discountTotal: number;
556
- shippingOriginalTotal: number;
557
- shippingTotal: number;
558
- taxTotal: number;
559
- warrantyTotal: number;
560
- };
561
- }>;
562
- declare function removeCartItem(api: Api, params: RemoveCartItemParams): Promise<{
563
- status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
564
- id: string;
565
- phone: string | null;
566
- token: string;
567
- cartNumber: string;
568
- email: string | null;
569
- firstName: string | null;
570
- lastName: string | null;
571
- currencyCode: string;
572
- completedAt: string | null;
573
- shippingAddress: {
574
- name: string | null;
575
- address1: string;
576
- city: string;
577
- countryCode: string;
578
- company: string | null;
579
- address2: string | null;
580
- province: string | null;
581
- postalCode: string | null;
582
- district: string | null;
583
- phone: string | null;
584
- latitude: number | null;
585
- longitude: number | null;
586
- } | null;
587
- billingAddress: {
588
- name: string | null;
589
- address1: string;
590
- city: string;
591
- countryCode: string;
592
- company: string | null;
593
- address2: string | null;
594
- province: string | null;
595
- postalCode: string | null;
596
- district: string | null;
597
- phone: string | null;
598
- latitude: number | null;
599
- longitude: number | null;
600
- } | null;
601
- promotionCodes: string[];
602
- items: {
603
- id: string;
604
- productId: string | null;
605
- quantity: number;
606
- variantId: string | null;
607
- unitPrice: number;
608
- bundleItems: {
609
- imageUrl: string | null;
610
- brand: string | null;
611
- productId: string;
612
- sku: string | null;
613
- quantity: number;
614
- variantId: string;
615
- productName: string;
616
- variantName: string | null;
617
- }[];
618
- title: string;
619
- variantLabel: string | null;
620
- productHandle: string | null;
621
- thumbnail: string | null;
622
- variantSku: string | null;
623
- compareAtUnitPrice: number | null;
624
- }[];
625
- shippingMethods: {
626
- id: string;
627
- name: string;
628
- description: string | null;
629
- sellerId: string | null;
630
- locationId: string | null;
631
- shippingMethodId: string | null;
632
- rateId: string | null;
633
- total: number;
634
- estimatedDays: number | null;
635
- pickupPointId: string | null;
636
- scheduledDate: string | null;
637
- scheduledTime: string | null;
638
- serviceCode: string | null;
639
- shippingProfileId: string | null;
640
- }[];
641
- totals: {
642
- total: number;
643
- subtotal: number;
644
- discountTotal: number;
645
- shippingOriginalTotal: number;
646
- shippingTotal: number;
647
- taxTotal: number;
648
- warrantyTotal: number;
649
- };
650
- }>;
651
-
652
- /** GET /v1/carts/{cartToken}/checkout */
653
- declare function getCartCheckout(api: Api, params: CartCheckoutReadParams): Promise<CartCheckoutReadResponse>;
654
- /** GET /v1/carts/{cartToken}/shipping-options?postalCode= */
655
- declare function getShippingOptions(api: Api, params: GetShippingOptionsParams): Promise<ShippingOptionsResponse>;
656
- /** PUT /v1/carts/{cartToken}/shipping-method */
657
- declare function putCartShippingMethod(api: Api, params: PutShippingMethodParams): Promise<{
658
- status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
659
- id: string;
660
- phone: string | null;
661
- token: string;
662
- cartNumber: string;
663
- email: string | null;
664
- firstName: string | null;
665
- lastName: string | null;
666
- currencyCode: string;
667
- completedAt: string | null;
668
- shippingAddress: {
669
- name: string | null;
670
- address1: string;
671
- city: string;
672
- countryCode: string;
673
- company: string | null;
674
- address2: string | null;
675
- province: string | null;
676
- postalCode: string | null;
677
- district: string | null;
678
- phone: string | null;
679
- latitude: number | null;
680
- longitude: number | null;
681
- } | null;
682
- billingAddress: {
683
- name: string | null;
684
- address1: string;
685
- city: string;
686
- countryCode: string;
687
- company: string | null;
688
- address2: string | null;
689
- province: string | null;
690
- postalCode: string | null;
691
- district: string | null;
692
- phone: string | null;
693
- latitude: number | null;
694
- longitude: number | null;
695
- } | null;
696
- promotionCodes: string[];
697
- items: {
698
- id: string;
699
- productId: string | null;
700
- quantity: number;
701
- variantId: string | null;
702
- unitPrice: number;
703
- bundleItems: {
704
- imageUrl: string | null;
705
- brand: string | null;
706
- productId: string;
707
- sku: string | null;
708
- quantity: number;
709
- variantId: string;
710
- productName: string;
711
- variantName: string | null;
712
- }[];
713
- title: string;
714
- variantLabel: string | null;
715
- productHandle: string | null;
716
- thumbnail: string | null;
717
- variantSku: string | null;
718
- compareAtUnitPrice: number | null;
719
- }[];
720
- shippingMethods: {
721
- id: string;
722
- name: string;
723
- description: string | null;
724
- sellerId: string | null;
725
- locationId: string | null;
726
- shippingMethodId: string | null;
727
- rateId: string | null;
728
- total: number;
729
- estimatedDays: number | null;
730
- pickupPointId: string | null;
731
- scheduledDate: string | null;
732
- scheduledTime: string | null;
733
- serviceCode: string | null;
734
- shippingProfileId: string | null;
735
- }[];
736
- totals: {
737
- total: number;
738
- subtotal: number;
739
- discountTotal: number;
740
- shippingOriginalTotal: number;
741
- shippingTotal: number;
742
- taxTotal: number;
743
- warrantyTotal: number;
744
- };
745
- }>;
746
- /** PATCH /v1/carts/{cartToken}/buyer */
747
- declare function patchCartBuyer(api: Api, params: CartBuyerParams): Promise<{
748
- status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
749
- id: string;
750
- phone: string | null;
751
- token: string;
752
- cartNumber: string;
753
- email: string | null;
754
- firstName: string | null;
755
- lastName: string | null;
756
- currencyCode: string;
757
- completedAt: string | null;
758
- shippingAddress: {
759
- name: string | null;
760
- address1: string;
761
- city: string;
762
- countryCode: string;
763
- company: string | null;
764
- address2: string | null;
765
- province: string | null;
766
- postalCode: string | null;
767
- district: string | null;
768
- phone: string | null;
769
- latitude: number | null;
770
- longitude: number | null;
771
- } | null;
772
- billingAddress: {
773
- name: string | null;
774
- address1: string;
775
- city: string;
776
- countryCode: string;
777
- company: string | null;
778
- address2: string | null;
779
- province: string | null;
780
- postalCode: string | null;
781
- district: string | null;
782
- phone: string | null;
783
- latitude: number | null;
784
- longitude: number | null;
785
- } | null;
786
- promotionCodes: string[];
787
- items: {
788
- id: string;
789
- productId: string | null;
790
- quantity: number;
791
- variantId: string | null;
792
- unitPrice: number;
793
- bundleItems: {
794
- imageUrl: string | null;
795
- brand: string | null;
796
- productId: string;
797
- sku: string | null;
798
- quantity: number;
799
- variantId: string;
800
- productName: string;
801
- variantName: string | null;
802
- }[];
803
- title: string;
804
- variantLabel: string | null;
805
- productHandle: string | null;
806
- thumbnail: string | null;
807
- variantSku: string | null;
808
- compareAtUnitPrice: number | null;
809
- }[];
810
- shippingMethods: {
811
- id: string;
812
- name: string;
813
- description: string | null;
814
- sellerId: string | null;
815
- locationId: string | null;
816
- shippingMethodId: string | null;
817
- rateId: string | null;
818
- total: number;
819
- estimatedDays: number | null;
820
- pickupPointId: string | null;
821
- scheduledDate: string | null;
822
- scheduledTime: string | null;
823
- serviceCode: string | null;
824
- shippingProfileId: string | null;
825
- }[];
826
- totals: {
827
- total: number;
828
- subtotal: number;
829
- discountTotal: number;
830
- shippingOriginalTotal: number;
831
- shippingTotal: number;
832
- taxTotal: number;
833
- warrantyTotal: number;
834
- };
835
- }>;
836
- /** PATCH /v1/carts/{cartToken}/addresses */
837
- declare function patchCartAddresses(api: Api, params: CartAddressesParams): Promise<{
838
- status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
839
- id: string;
840
- phone: string | null;
841
- token: string;
842
- cartNumber: string;
843
- email: string | null;
844
- firstName: string | null;
845
- lastName: string | null;
846
- currencyCode: string;
847
- completedAt: string | null;
848
- shippingAddress: {
849
- name: string | null;
850
- address1: string;
851
- city: string;
852
- countryCode: string;
853
- company: string | null;
854
- address2: string | null;
855
- province: string | null;
856
- postalCode: string | null;
857
- district: string | null;
858
- phone: string | null;
859
- latitude: number | null;
860
- longitude: number | null;
861
- } | null;
862
- billingAddress: {
863
- name: string | null;
864
- address1: string;
865
- city: string;
866
- countryCode: string;
867
- company: string | null;
868
- address2: string | null;
869
- province: string | null;
870
- postalCode: string | null;
871
- district: string | null;
872
- phone: string | null;
873
- latitude: number | null;
874
- longitude: number | null;
875
- } | null;
876
- promotionCodes: string[];
877
- items: {
878
- id: string;
879
- productId: string | null;
880
- quantity: number;
881
- variantId: string | null;
882
- unitPrice: number;
883
- bundleItems: {
884
- imageUrl: string | null;
885
- brand: string | null;
886
- productId: string;
887
- sku: string | null;
888
- quantity: number;
889
- variantId: string;
890
- productName: string;
891
- variantName: string | null;
892
- }[];
893
- title: string;
894
- variantLabel: string | null;
895
- productHandle: string | null;
896
- thumbnail: string | null;
897
- variantSku: string | null;
898
- compareAtUnitPrice: number | null;
899
- }[];
900
- shippingMethods: {
901
- id: string;
902
- name: string;
903
- description: string | null;
904
- sellerId: string | null;
905
- locationId: string | null;
906
- shippingMethodId: string | null;
907
- rateId: string | null;
908
- total: number;
909
- estimatedDays: number | null;
910
- pickupPointId: string | null;
911
- scheduledDate: string | null;
912
- scheduledTime: string | null;
913
- serviceCode: string | null;
914
- shippingProfileId: string | null;
915
- }[];
916
- totals: {
917
- total: number;
918
- subtotal: number;
919
- discountTotal: number;
920
- shippingOriginalTotal: number;
921
- shippingTotal: number;
922
- taxTotal: number;
923
- warrantyTotal: number;
924
- };
925
- }>;
926
- /** POST /v1/carts/{cartToken}/checkout */
927
- declare function checkoutCart(api: Api, params: CartCheckoutParams): Promise<CartCheckoutResponse>;
928
- /** POST /v1/carts/{cartToken}/payment-receipt (multipart) */
929
- declare function uploadPaymentReceipt(api: Api, params: UploadPaymentReceiptParams): Promise<CartPaymentReceiptResponse>;
930
- /** POST /v1/carts/{cartToken}/promotion-codes */
931
- declare function addCartPromotionCode(api: Api, params: CartPromotionCodeParams): Promise<{
932
- status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
933
- id: string;
934
- phone: string | null;
935
- token: string;
936
- cartNumber: string;
937
- email: string | null;
938
- firstName: string | null;
939
- lastName: string | null;
940
- currencyCode: string;
941
- completedAt: string | null;
942
- shippingAddress: {
943
- name: string | null;
944
- address1: string;
945
- city: string;
946
- countryCode: string;
947
- company: string | null;
948
- address2: string | null;
949
- province: string | null;
950
- postalCode: string | null;
951
- district: string | null;
952
- phone: string | null;
953
- latitude: number | null;
954
- longitude: number | null;
955
- } | null;
956
- billingAddress: {
957
- name: string | null;
958
- address1: string;
959
- city: string;
960
- countryCode: string;
961
- company: string | null;
962
- address2: string | null;
963
- province: string | null;
964
- postalCode: string | null;
965
- district: string | null;
966
- phone: string | null;
967
- latitude: number | null;
968
- longitude: number | null;
969
- } | null;
970
- promotionCodes: string[];
971
- items: {
972
- id: string;
973
- productId: string | null;
974
- quantity: number;
975
- variantId: string | null;
976
- unitPrice: number;
977
- bundleItems: {
978
- imageUrl: string | null;
979
- brand: string | null;
980
- productId: string;
981
- sku: string | null;
982
- quantity: number;
983
- variantId: string;
984
- productName: string;
985
- variantName: string | null;
986
- }[];
987
- title: string;
988
- variantLabel: string | null;
989
- productHandle: string | null;
990
- thumbnail: string | null;
991
- variantSku: string | null;
992
- compareAtUnitPrice: number | null;
993
- }[];
994
- shippingMethods: {
995
- id: string;
996
- name: string;
997
- description: string | null;
998
- sellerId: string | null;
999
- locationId: string | null;
1000
- shippingMethodId: string | null;
1001
- rateId: string | null;
1002
- total: number;
1003
- estimatedDays: number | null;
1004
- pickupPointId: string | null;
1005
- scheduledDate: string | null;
1006
- scheduledTime: string | null;
1007
- serviceCode: string | null;
1008
- shippingProfileId: string | null;
1009
- }[];
1010
- totals: {
1011
- total: number;
1012
- subtotal: number;
1013
- discountTotal: number;
1014
- shippingOriginalTotal: number;
1015
- shippingTotal: number;
1016
- taxTotal: number;
1017
- warrantyTotal: number;
1018
- };
1019
- }>;
1020
- /** DELETE /v1/carts/{cartToken}/promotion-codes/{code} */
1021
- declare function removeCartPromotionCode(api: Api, params: CartPromotionCodeParams): Promise<{
1022
- status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
1023
- id: string;
1024
- phone: string | null;
1025
- token: string;
1026
- cartNumber: string;
1027
- email: string | null;
1028
- firstName: string | null;
1029
- lastName: string | null;
1030
- currencyCode: string;
1031
- completedAt: string | null;
1032
- shippingAddress: {
1033
- name: string | null;
1034
- address1: string;
1035
- city: string;
1036
- countryCode: string;
1037
- company: string | null;
1038
- address2: string | null;
1039
- province: string | null;
1040
- postalCode: string | null;
1041
- district: string | null;
1042
- phone: string | null;
1043
- latitude: number | null;
1044
- longitude: number | null;
1045
- } | null;
1046
- billingAddress: {
1047
- name: string | null;
1048
- address1: string;
1049
- city: string;
1050
- countryCode: string;
1051
- company: string | null;
1052
- address2: string | null;
1053
- province: string | null;
1054
- postalCode: string | null;
1055
- district: string | null;
1056
- phone: string | null;
1057
- latitude: number | null;
1058
- longitude: number | null;
1059
- } | null;
1060
- promotionCodes: string[];
1061
- items: {
1062
- id: string;
1063
- productId: string | null;
1064
- quantity: number;
1065
- variantId: string | null;
1066
- unitPrice: number;
1067
- bundleItems: {
1068
- imageUrl: string | null;
1069
- brand: string | null;
1070
- productId: string;
1071
- sku: string | null;
1072
- quantity: number;
1073
- variantId: string;
1074
- productName: string;
1075
- variantName: string | null;
1076
- }[];
1077
- title: string;
1078
- variantLabel: string | null;
1079
- productHandle: string | null;
1080
- thumbnail: string | null;
1081
- variantSku: string | null;
1082
- compareAtUnitPrice: number | null;
1083
- }[];
1084
- shippingMethods: {
1085
- id: string;
1086
- name: string;
1087
- description: string | null;
1088
- sellerId: string | null;
1089
- locationId: string | null;
1090
- shippingMethodId: string | null;
1091
- rateId: string | null;
1092
- total: number;
1093
- estimatedDays: number | null;
1094
- pickupPointId: string | null;
1095
- scheduledDate: string | null;
1096
- scheduledTime: string | null;
1097
- serviceCode: string | null;
1098
- shippingProfileId: string | null;
1099
- }[];
1100
- totals: {
1101
- total: number;
1102
- subtotal: number;
1103
- discountTotal: number;
1104
- shippingOriginalTotal: number;
1105
- shippingTotal: number;
1106
- taxTotal: number;
1107
- warrantyTotal: number;
1108
- };
1109
- }>;
1110
-
1111
- /** GET /v1/geo/countries */
1112
- declare function getCountries(api: Api): Promise<Countries>;
1113
- /** GET /v1/geo/departments?countryCode=&source=&search=&limit= */
1114
- declare function getDepartments(api: Api, params: GetDepartmentsParams): Promise<Departments>;
1115
- /** GET /v1/geo/provinces?countryCode=&departmentCode=&source=&search=&limit= */
1116
- declare function getProvinces(api: Api, params: GetProvincesParams): Promise<Provinces>;
1117
- /** GET /v1/geo/districts?countryCode=&provinceCode=&source=&search=&limit= */
1118
- declare function getDistricts(api: Api, params: GetDistrictsParams): Promise<Districts>;
1119
-
1120
- /** GET /v1/pages/{slug} */
1121
- declare function getPageBySlug(api: Api, pageSlug: string): Promise<CmsPageDetailsDto>;
1122
-
1123
- declare function sanitizeHtml(html: string): string;
1124
- /** Convierte HTML en texto plano (metadata, JSON-LD). */
1125
- declare function stripHtml(html: string): string;
1126
-
1127
- export { AddCartItemParams, Api, CartAddressesParams, CartBuyerParams, CartCheckoutParams, CartCheckoutReadParams, CartCheckoutReadResponse, CartCheckoutResponse, CartPaymentReceiptResponse, CartPromotionCodeParams, CmsPageDetailsDto, Countries, CreateCartParams, CreateProductReviewParams, Departments, Districts, GetCartParams, GetDepartmentsParams, GetDistrictsParams, GetProvincesParams, GetShippingOptionsParams, ListProductReviewsParams, ProductAutocompleteParams, ProductDetailParams, ProductsParamsInput, Provinces, PutShippingMethodParams, RelatedProductsParams, RemoveCartItemParams, ShippingOptionsResponse, UpdateCartItemQuantityParams, UploadPaymentReceiptParams, addCartItem, addCartPromotionCode, autocompleteProducts, checkoutCart, createCart, createProductReview, getCart, getCartCheckout, getCountries, getDepartments, getDistricts, getPageBySlug, getProductBySlug, getProducts, getProvinces, getRelatedProducts, getShippingOptions, listProductReviews, patchCartAddresses, patchCartBuyer, putCartShippingMethod, removeCartItem, removeCartPromotionCode, sanitizeHtml, stripHtml, updateCartItemQuantity, uploadPaymentReceipt };
1
+ import { Api, ApiError, CreateApiOptions, DEFAULT_API_BASE_URL, DEFAULT_API_VERSION, createApi, resolveApiBaseUrl } from "./api.cjs";
2
+ import { GraphQLError, GraphQLRequestOptions, GraphQLResponseError, GraphQLVariables } from "./libs/graphql.cjs";
3
+ import { graphQLSelection } from "./libs/graphql-selection.cjs";
4
+ import { CreateClientOptions, StorefrontClient, createClient } from "./client.cjs";
5
+ import { StorefrontLayout } from "./services/layout.service.cjs";
6
+ import { CartToken, CartTokenSchema, EntityId, EntityIdSchema, NullableEntityIdSchema, OptionalEntityIdSchema } from "./models/ids.cjs";
7
+ import { CmsBlockDto, CmsBlockDtoSchema, CmsBrandingSettingsDtoSchema, CmsContactSettingsDtoSchema, CmsContentChannelSchema, CmsCustomScriptsDtoSchema, CmsMenuDto, CmsMenuDtoSchema, CmsMenuItem, CmsMenuItemSchema, CmsPageDetailsDto, CmsPageDetailsDtoSchema, CmsPageStatusSchema, CmsSectionDto, CmsSectionDtoSchema, CmsSeoSettingsDtoSchema, CmsSiteSettingsDtoSchema, CmsSnapshotDto, CmsSnapshotDtoSchema, CmsSocialLinksDtoSchema, CmsTrackingSettingsDtoSchema, JsonElement, JsonElementSchema, STOREFRONT_SETTINGS_SCHEMA_VERSION, StoreBusinessSettingsSchema, StoreCheckoutGeneralSettingsSchema, StoreCheckoutOrderBumpSettingsSchema, StoreCheckoutOrdersAndPaymentsSettingsSchema, StoreCheckoutSettingsSchema, StoreModel, StoreModelSchema, StoreSettingsSnapshotDto, StoreSettingsSnapshotDtoSchema, StoreTypeSchema, StoreVisibilitySchema, StorefrontCheckoutSettingsSchema, StorefrontCmsBrandingSchema, StorefrontCmsContactSchema, StorefrontCmsCustomScriptsSchema, StorefrontCmsPageSchema, StorefrontCmsSeoSchema, StorefrontCmsSettingsSchema, StorefrontCmsSocialLinksSchema, StorefrontCmsTrackingSchema, StorefrontMenu, StorefrontMenuItem, StorefrontMenuItemSchema, StorefrontMenuSchema, StorefrontSettings, StorefrontSettingsSchema, StorefrontStoreSchema, StorefrontStoreTypeSchema, getMenuItems } from "./models/settings.cjs";
8
+ import { catalogLinkKey } from "./libs/catalog-link-key.cjs";
9
+ import { Collection, CollectionSchema, Collections, CollectionsSchema } from "./models/collections.cjs";
10
+ import { CategoryAncestor, CategoryAncestorSchema, CategoryChild, CategoryChildSchema, CategoryDetail, CategoryDetailSchema, CategoryItem, CategoryItemSchema } from "./models/categories.cjs";
11
+ import { SitemapItem, SitemapItemSchema, SitemapPage, SitemapPageSchema, UrlResolution, UrlResolutionOptions, UrlResolutionSchema } from "./models/urls.cjs";
12
+ import { CATALOG_LINK_ID, CATALOG_LINK_MAX_LENGTH, CatalogLink, CatalogLinkReference, CatalogLinkReferenceSchema, CatalogLinkSchema, CatalogLinksResponseSchema, catalogLinkCandidates, isCatalogLinkCandidate, readCatalogLink } from "./models/catalog-links.cjs";
13
+ import { StorefrontPaymentCodeSchema, StorefrontPaymentMethod, StorefrontPaymentMethodSchema, StorefrontPaymentMethods, StorefrontPaymentMethodsSchema } from "./models/payment-methods.cjs";
14
+ import { Article, ArticleSchema, ArticleSummary, ArticleSummarySchema, ArticlesSchema, ListArticlesParams, ListArticlesParamsSchema } from "./models/articles.cjs";
15
+ import { BundleItem, BundleItemSchema, FacetItem, FacetItemSchema, ProductBySlugOptions, ProductDetail, ProductDetailSchema, ProductImage, ProductImageSchema, ProductMediaType, ProductMediaTypeSchema, ProductOptionGroup, ProductOptionGroupSchema, ProductPriceTier, ProductPriceTierSchema, ProductSeller, ProductSellerSchema, ProductSort, ProductSortSchema, ProductSummariesSchema, ProductSummary, ProductSummarySchema, ProductsParams, ProductsParamsInput, ProductsParamsSchema, ProductsResponse, ProductsResponseSchema, RelatedProductsParams, RelatedProductsParamsSchema, SearchFilter, SearchFilterSchema, SizeGuide, SizeGuideMeasurement, SizeGuideMeasurementSchema, SizeGuideRow, SizeGuideRowSchema, SizeGuideSchema, SpecItem, SpecItemSchema, SpecificationTypeSchema, VariantItem, VariantItemSchema } from "./models/products.cjs";
16
+ import { ItemModifier, ItemModifierSchema, ModifierDisplay, ModifierDisplaySchema, ModifierGroupItem, ModifierGroupItemSchema, ModifierOptionItem, ModifierOptionItemSchema, ModifierSelectionType, ModifierSelectionTypeSchema, lineTotal, lineUnitPrice, modifierLabel, modifiersUnitPrice } from "./models/personalization.cjs";
17
+ import { ProductAutocompleteParams, ProductAutocompleteParamsSchema, ProductSuggestion, ProductSuggestionSchema, ProductSuggestionsSchema } from "./models/search.cjs";
18
+ import { AddCartItemParams, AddCartItemParamsSchema, CartItemModifierInput, CartItemModifierOptionSchema, CartItemModifierSchema, CartShippingMethodTypeSchema, CreateCartParams, CreateCartParamsSchema, GetCartParams, GetCartParamsSchema, RemoveCartItemParams, RemoveCartItemParamsSchema, ShippingMethodTargetSelection, ShippingMethodTargetSelectionSchema, StorefrontAddress, StorefrontAddressSchema, StorefrontCart, StorefrontCartBundleItem, StorefrontCartBundleItemSchema, StorefrontCartItem, StorefrontCartItemSchema, StorefrontCartSchema, StorefrontCartShippingMethod, StorefrontCartShippingMethodSchema, StorefrontCartStatusSchema, StorefrontCartTotals, StorefrontCartTotalsSchema, StorefrontInvoiceType, StorefrontInvoiceTypeSchema, UpdateCartItemQuantityParams, UpdateCartItemQuantityParamsSchema } from "./models/storefront-cart.cjs";
19
+ import { CartAddressWrite, CartAddressWriteSchema, CartAddressesParams, CartAddressesParamsSchema, CartBuyerParams, CartBuyerParamsSchema, CartCheckoutParams, CartCheckoutParamsSchema, CartCheckoutPayment, CartCheckoutPaymentActionSchema, CartCheckoutPaymentMethod, CartCheckoutPaymentMethodSchema, CartCheckoutPaymentSchema, CartCheckoutReadParams, CartCheckoutReadParamsSchema, CartCheckoutReadResponse, CartCheckoutReadResponseSchema, CartCheckoutResponse, CartCheckoutResponseSchema, CartPaymentMethod, CartPaymentMethodSchema, CartPaymentReceiptResponse, CartPaymentReceiptResponseSchema, CartPromotionCodeParams, CartPromotionCodeParamsSchema, CheckoutMetadataValue, CheckoutMetadataValueSchema, CheckoutMode, CheckoutModeSchema, CheckoutPaymentCharge, CheckoutPaymentChargeSchema, GetShippingOptionsParams, GetShippingOptionsParamsSchema, PaymentBankAccount, PaymentBankAccountSchema, PutCartPaymentMethodParams, PutCartPaymentMethodParamsSchema, PutShippingMethodParams, PutShippingMethodParamsSchema, ShippingOptionGroup, ShippingOptionGroupSchema, ShippingOptionsResponse, ShippingOptionsResponseSchema, ShippingRate, ShippingRateSchema, StorefrontOrderBump, StorefrontOrderBumpSchema, UploadPaymentReceiptParams } from "./models/storefront-checkout.cjs";
20
+ import { CreateCustomerProductReviewParams, CreateCustomerProductReviewParamsSchema, CreateProductReviewParams, CreateProductReviewParamsSchema, ListProductReviewsParams, ListProductReviewsParamsSchema, ListStoreReviewsParams, ListStoreReviewsParamsSchema, StorefrontReview, StorefrontReviewSchema, StorefrontReviews, StorefrontReviewsSchema, StorefrontStoreReview, StorefrontStoreReviewSchema } from "./models/storefront-reviews.cjs";
21
+ import { Countries, CountriesSchema, Country, CountrySchema, Department, DepartmentSchema, Departments, DepartmentsSchema, District, DistrictSchema, Districts, DistrictsSchema, GeoDivision, GeoDivisionSchema, GeoDivisionType, GeoDivisionTypeSchema, GetDepartmentsParams, GetDepartmentsParamsParsed, GetDepartmentsParamsSchema, GetDistrictsParams, GetDistrictsParamsParsed, GetDistrictsParamsSchema, GetProvincesParams, GetProvincesParamsParsed, GetProvincesParamsSchema, Province, ProvinceSchema, Provinces, ProvincesSchema } from "./models/geo.cjs";
22
+ import { SellerLinkStyle, SellerLinkStyleSchema, SellerLinks, SellerLinksSchema, SellerProfile, SellerProfileSchema, SellerRating, SellerRatingSchema, SellerSummary, SellerSummarySchema, Sellers, SellersSchema } from "./models/sellers.cjs";
23
+ import { CustomerAddress, CustomerAddressSchema, CustomerAddressUpsertInput, CustomerAddressUpsertInputSchema, CustomerAddresses, CustomerAddressesSchema, CustomerSavedAddress, toCustomerSavedAddresses } from "./models/customer-address.cjs";
24
+ import { CustomerMe, CustomerMeSchema, CustomerProfile, CustomerProfilePatch, CustomerProfilePatchSchema, CustomerProfileSchema, customerMeToProfile, customerMeToProfilePatch, customerProfileToPatch } from "./models/customer-profile.cjs";
25
+ import { CustomerAuthConfiguration, CustomerAuthConfigurationSchema, CustomerSession, CustomerSessionCreate, CustomerSessionCreateSchema, CustomerSessionCreated, CustomerSessionCreatedSchema, CustomerSessionProfileSchema, CustomerSessionSchema } from "./models/customer-session.cjs";
26
+ import { CustomerRegistration, CustomerRegistrationFieldModeSchema, CustomerRegistrationFields, CustomerRegistrationFieldsSchema, CustomerRegistrationInput, CustomerRegistrationInputSchema, CustomerRegistrationSchema } from "./models/customer-registration.cjs";
27
+ import { completeCustomerRegistration, getCustomerRegistration } from "./services/customer-registration.service.cjs";
28
+ import { CustomerOrderDetail, CustomerOrderDetailSchema, CustomerOrderLineItem, CustomerOrderLineItemSchema, CustomerOrderList, CustomerOrderListItem, CustomerOrderListItemSchema, CustomerOrderListSchema, CustomerOrderPage, CustomerOrderPageSchema, CustomerOrderPayment, CustomerOrderPaymentSchema, CustomerOrderShipment, CustomerOrderShipmentSchema, CustomerOrderShippingAddress, CustomerOrderShippingAddressSchema, CustomerOrderStatusTimelineEntry, CustomerOrderStatusTimelineSchema, OrderStep, OrderStepSchema, customerOrderStatusTone, formatCustomerOrderStatus, formatOrderDate, formatOrderDateTime } from "./models/customer-order.cjs";
29
+ import { getProductBySlug, getProducts, getRelatedProducts } from "./services/product.service.cjs";
30
+ import { autocompleteProducts } from "./services/search.service.cjs";
31
+ import { createProductReview, listProductReviews } from "./services/review.service.cjs";
32
+ import { addCartItem, createCart, getCart, removeCartItem, updateCartItemQuantity } from "./services/cart.service.cjs";
33
+ import { getPaymentMethods } from "./services/payment-method.service.cjs";
34
+ import { addCartPromotionCode, checkoutCart, getCartCheckout, getShippingOptions, patchCartAddresses, patchCartBuyer, putCartPaymentMethod, putCartShippingMethod, removeCartPromotionCode, uploadPaymentReceipt } from "./services/checkout.service.cjs";
35
+ import { getCountries, getDepartments, getDistricts, getProvinces } from "./services/geo.service.cjs";
36
+ import { getSellerBySlug, getSellers } from "./services/seller.service.cjs";
37
+ import { CustomerAddressCreated, CustomerAddressCreatedSchema, CustomerAddressRequestOptions, createCustomerAddress, deleteCustomerAddress, getCustomerAddresses, updateCustomerAddress } from "./services/customer-address.service.cjs";
38
+ import { CustomerRequestOptions, getCustomerMe, patchCustomer } from "./services/customer.service.cjs";
39
+ import { CustomerOrderCancellationInput, CustomerOrderListOptions, CustomerOrderRequestOptions, CustomerOrderReturnInput, CustomerOrderStatusFilter, getCustomerOrder, getCustomerOrders, requestCustomerOrderCancellation, requestCustomerOrderReturn } from "./services/customer-order.service.cjs";
40
+ import { PublicOrderTracking, PublicOrderTrackingSchema, ShipmentTrackingEventSchema, TRACKING_STATUS_LABELS, formatTrackingStatus } from "./models/tracking.cjs";
41
+ import { TrackingRequestOptions, getOrderTracking } from "./services/tracking.service.cjs";
42
+ import { OrderReviewContext, OrderReviewContextItem, OrderReviewContextItemSchema, OrderReviewContextSchema } from "./models/order-review.cjs";
43
+ import { OrderReviewRequestOptions, getOrderReviewContext } from "./services/order-review.service.cjs";
44
+ import { AuthenticateOrderPaymentInput, AuthenticateOrderPaymentInputSchema, OrderPaymentInReview, OrderPaymentInReviewSchema, OrderPaymentMethod, OrderPaymentMethodSchema, OrderPaymentStart, OrderPaymentStartSchema, OrderStatusView, OrderStatusViewSchema, PaymentAuthentication3DS, PaymentAuthentication3DSSchema, PaymentPublicConfigurationSchema } from "./models/order-status.cjs";
45
+ import { StartOrderPaymentInput, UploadOrderPaymentReceiptInput, authenticateOrderPayment, getOrderStatus, startOrderPayment, uploadOrderPaymentReceipt } from "./services/order-status.service.cjs";
46
+ import { OrderDraft, OrderDraftCheckout, OrderDraftCheckoutSchema, OrderDraftItem, OrderDraftItemSchema, OrderDraftSchema } from "./models/order-draft.cjs";
47
+ import { checkoutOrderDraft, getOrderDraft } from "./services/order-draft.service.cjs";
48
+ import { COMPLAINT_BOOK_ATTACHMENT_TYPES, COMPLAINT_BOOK_MAX_ATTACHMENTS, COMPLAINT_BOOK_MAX_ATTACHMENT_BYTES, ComplaintBook, ComplaintBookDocumentType, ComplaintBookDocumentTypeSchema, ComplaintBookEntry, ComplaintBookEntryInput, ComplaintBookEntryInputSchema, ComplaintBookEntrySchema, ComplaintBookSchema } from "./models/complaint-book.cjs";
49
+ import { createComplaintBookEntry, getComplaintBook } from "./services/complaint-book.service.cjs";
50
+ import { getPageBySlug } from "./services/page.service.cjs";
51
+ import { getArticleBySlug, listArticles } from "./services/article.service.cjs";
52
+ import { sanitizeHtml, stripHtml } from "./utils.cjs";
53
+ import { EmbeddedVideo, embeddedVideo } from "./video-links.cjs";
54
+ export { AddCartItemParams, AddCartItemParamsSchema, type Api, ApiError, Article, ArticleSchema, ArticleSummary, ArticleSummarySchema, ArticlesSchema, AuthenticateOrderPaymentInput, AuthenticateOrderPaymentInputSchema, BundleItem, BundleItemSchema, CATALOG_LINK_ID, CATALOG_LINK_MAX_LENGTH, COMPLAINT_BOOK_ATTACHMENT_TYPES, COMPLAINT_BOOK_MAX_ATTACHMENTS, COMPLAINT_BOOK_MAX_ATTACHMENT_BYTES, CartAddressWrite, CartAddressWriteSchema, CartAddressesParams, CartAddressesParamsSchema, CartBuyerParams, CartBuyerParamsSchema, CartCheckoutParams, CartCheckoutParamsSchema, CartCheckoutPayment, CartCheckoutPaymentActionSchema, CartCheckoutPaymentMethod, CartCheckoutPaymentMethodSchema, CartCheckoutPaymentSchema, CartCheckoutReadParams, CartCheckoutReadParamsSchema, CartCheckoutReadResponse, CartCheckoutReadResponseSchema, CartCheckoutResponse, CartCheckoutResponseSchema, CartItemModifierInput, CartItemModifierOptionSchema, CartItemModifierSchema, CartPaymentMethod, CartPaymentMethodSchema, CartPaymentReceiptResponse, CartPaymentReceiptResponseSchema, CartPromotionCodeParams, CartPromotionCodeParamsSchema, CartShippingMethodTypeSchema, CartToken, CartTokenSchema, CatalogLink, CatalogLinkReference, CatalogLinkReferenceSchema, CatalogLinkSchema, CatalogLinksResponseSchema, CategoryAncestor, CategoryAncestorSchema, CategoryChild, CategoryChildSchema, CategoryDetail, CategoryDetailSchema, CategoryItem, CategoryItemSchema, CheckoutMetadataValue, CheckoutMetadataValueSchema, CheckoutMode, CheckoutModeSchema, CheckoutPaymentCharge, CheckoutPaymentChargeSchema, CmsBlockDto, CmsBlockDtoSchema, CmsBrandingSettingsDtoSchema, CmsContactSettingsDtoSchema, CmsContentChannelSchema, CmsCustomScriptsDtoSchema, CmsMenuDto, CmsMenuDtoSchema, CmsMenuItem, CmsMenuItemSchema, CmsPageDetailsDto, CmsPageDetailsDtoSchema, CmsPageStatusSchema, CmsSectionDto, CmsSectionDtoSchema, CmsSeoSettingsDtoSchema, CmsSiteSettingsDtoSchema, CmsSnapshotDto, CmsSnapshotDtoSchema, CmsSocialLinksDtoSchema, CmsTrackingSettingsDtoSchema, Collection, CollectionSchema, Collections, CollectionsSchema, ComplaintBook, ComplaintBookDocumentType, ComplaintBookDocumentTypeSchema, ComplaintBookEntry, ComplaintBookEntryInput, ComplaintBookEntryInputSchema, ComplaintBookEntrySchema, ComplaintBookSchema, Countries, CountriesSchema, Country, CountrySchema, type CreateApiOptions, CreateCartParams, CreateCartParamsSchema, type CreateClientOptions, CreateCustomerProductReviewParams, CreateCustomerProductReviewParamsSchema, CreateProductReviewParams, CreateProductReviewParamsSchema, CustomerAddress, type CustomerAddressCreated, CustomerAddressCreatedSchema, type CustomerAddressRequestOptions, CustomerAddressSchema, CustomerAddressUpsertInput, CustomerAddressUpsertInputSchema, CustomerAddresses, CustomerAddressesSchema, CustomerAuthConfiguration, CustomerAuthConfigurationSchema, CustomerMe, CustomerMeSchema, type CustomerOrderCancellationInput, CustomerOrderDetail, CustomerOrderDetailSchema, CustomerOrderLineItem, CustomerOrderLineItemSchema, CustomerOrderList, CustomerOrderListItem, CustomerOrderListItemSchema, type CustomerOrderListOptions, CustomerOrderListSchema, CustomerOrderPage, CustomerOrderPageSchema, CustomerOrderPayment, CustomerOrderPaymentSchema, type CustomerOrderRequestOptions, type CustomerOrderReturnInput, CustomerOrderShipment, CustomerOrderShipmentSchema, CustomerOrderShippingAddress, CustomerOrderShippingAddressSchema, type CustomerOrderStatusFilter, CustomerOrderStatusTimelineEntry, CustomerOrderStatusTimelineSchema, CustomerProfile, CustomerProfilePatch, CustomerProfilePatchSchema, CustomerProfileSchema, CustomerRegistration, CustomerRegistrationFieldModeSchema, CustomerRegistrationFields, CustomerRegistrationFieldsSchema, CustomerRegistrationInput, CustomerRegistrationInputSchema, CustomerRegistrationSchema, type CustomerRequestOptions, CustomerSavedAddress, CustomerSession, CustomerSessionCreate, CustomerSessionCreateSchema, CustomerSessionCreated, CustomerSessionCreatedSchema, CustomerSessionProfileSchema, CustomerSessionSchema, DEFAULT_API_BASE_URL, DEFAULT_API_VERSION, Department, DepartmentSchema, Departments, DepartmentsSchema, District, DistrictSchema, Districts, DistrictsSchema, EmbeddedVideo, EntityId, EntityIdSchema, FacetItem, FacetItemSchema, GeoDivision, GeoDivisionSchema, GeoDivisionType, GeoDivisionTypeSchema, GetCartParams, GetCartParamsSchema, GetDepartmentsParams, GetDepartmentsParamsParsed, GetDepartmentsParamsSchema, GetDistrictsParams, GetDistrictsParamsParsed, GetDistrictsParamsSchema, GetProvincesParams, GetProvincesParamsParsed, GetProvincesParamsSchema, GetShippingOptionsParams, GetShippingOptionsParamsSchema, type GraphQLError, type GraphQLRequestOptions, GraphQLResponseError, type GraphQLVariables, ItemModifier, ItemModifierSchema, JsonElement, JsonElementSchema, ListArticlesParams, ListArticlesParamsSchema, ListProductReviewsParams, ListProductReviewsParamsSchema, ListStoreReviewsParams, ListStoreReviewsParamsSchema, ModifierDisplay, ModifierDisplaySchema, ModifierGroupItem, ModifierGroupItemSchema, ModifierOptionItem, ModifierOptionItemSchema, ModifierSelectionType, ModifierSelectionTypeSchema, NullableEntityIdSchema, OptionalEntityIdSchema, OrderDraft, OrderDraftCheckout, OrderDraftCheckoutSchema, OrderDraftItem, OrderDraftItemSchema, OrderDraftSchema, OrderPaymentInReview, OrderPaymentInReviewSchema, OrderPaymentMethod, OrderPaymentMethodSchema, OrderPaymentStart, OrderPaymentStartSchema, OrderReviewContext, OrderReviewContextItem, OrderReviewContextItemSchema, OrderReviewContextSchema, type OrderReviewRequestOptions, OrderStatusView, OrderStatusViewSchema, OrderStep, OrderStepSchema, PaymentAuthentication3DS, PaymentAuthentication3DSSchema, PaymentBankAccount, PaymentBankAccountSchema, PaymentPublicConfigurationSchema, ProductAutocompleteParams, ProductAutocompleteParamsSchema, ProductBySlugOptions, ProductDetail, ProductDetailSchema, ProductImage, ProductImageSchema, ProductMediaType, ProductMediaTypeSchema, ProductOptionGroup, ProductOptionGroupSchema, ProductPriceTier, ProductPriceTierSchema, ProductSeller, ProductSellerSchema, ProductSort, ProductSortSchema, ProductSuggestion, ProductSuggestionSchema, ProductSuggestionsSchema, ProductSummariesSchema, ProductSummary, ProductSummarySchema, ProductsParams, ProductsParamsInput, ProductsParamsSchema, ProductsResponse, ProductsResponseSchema, Province, ProvinceSchema, Provinces, ProvincesSchema, PublicOrderTracking, PublicOrderTrackingSchema, PutCartPaymentMethodParams, PutCartPaymentMethodParamsSchema, PutShippingMethodParams, PutShippingMethodParamsSchema, RelatedProductsParams, RelatedProductsParamsSchema, RemoveCartItemParams, RemoveCartItemParamsSchema, STOREFRONT_SETTINGS_SCHEMA_VERSION, SearchFilter, SearchFilterSchema, SellerLinkStyle, SellerLinkStyleSchema, SellerLinks, SellerLinksSchema, SellerProfile, SellerProfileSchema, SellerRating, SellerRatingSchema, SellerSummary, SellerSummarySchema, Sellers, SellersSchema, ShipmentTrackingEventSchema, ShippingMethodTargetSelection, ShippingMethodTargetSelectionSchema, ShippingOptionGroup, ShippingOptionGroupSchema, ShippingOptionsResponse, ShippingOptionsResponseSchema, ShippingRate, ShippingRateSchema, SitemapItem, SitemapItemSchema, SitemapPage, SitemapPageSchema, SizeGuide, SizeGuideMeasurement, SizeGuideMeasurementSchema, SizeGuideRow, SizeGuideRowSchema, SizeGuideSchema, SpecItem, SpecItemSchema, SpecificationTypeSchema, type StartOrderPaymentInput, StoreBusinessSettingsSchema, StoreCheckoutGeneralSettingsSchema, StoreCheckoutOrderBumpSettingsSchema, StoreCheckoutOrdersAndPaymentsSettingsSchema, StoreCheckoutSettingsSchema, StoreModel, StoreModelSchema, StoreSettingsSnapshotDto, StoreSettingsSnapshotDtoSchema, StoreTypeSchema, StoreVisibilitySchema, StorefrontAddress, StorefrontAddressSchema, StorefrontCart, StorefrontCartBundleItem, StorefrontCartBundleItemSchema, StorefrontCartItem, StorefrontCartItemSchema, StorefrontCartSchema, StorefrontCartShippingMethod, StorefrontCartShippingMethodSchema, StorefrontCartStatusSchema, StorefrontCartTotals, StorefrontCartTotalsSchema, StorefrontCheckoutSettingsSchema, type StorefrontClient, StorefrontCmsBrandingSchema, StorefrontCmsContactSchema, StorefrontCmsCustomScriptsSchema, StorefrontCmsPageSchema, StorefrontCmsSeoSchema, StorefrontCmsSettingsSchema, StorefrontCmsSocialLinksSchema, StorefrontCmsTrackingSchema, StorefrontInvoiceType, StorefrontInvoiceTypeSchema, type StorefrontLayout, StorefrontMenu, StorefrontMenuItem, StorefrontMenuItemSchema, StorefrontMenuSchema, StorefrontOrderBump, StorefrontOrderBumpSchema, StorefrontPaymentCodeSchema, StorefrontPaymentMethod, StorefrontPaymentMethodSchema, StorefrontPaymentMethods, StorefrontPaymentMethodsSchema, StorefrontReview, StorefrontReviewSchema, StorefrontReviews, StorefrontReviewsSchema, StorefrontSettings, StorefrontSettingsSchema, StorefrontStoreReview, StorefrontStoreReviewSchema, StorefrontStoreSchema, StorefrontStoreTypeSchema, TRACKING_STATUS_LABELS, type TrackingRequestOptions, UpdateCartItemQuantityParams, UpdateCartItemQuantityParamsSchema, type UploadOrderPaymentReceiptInput, UploadPaymentReceiptParams, UrlResolution, UrlResolutionOptions, UrlResolutionSchema, VariantItem, VariantItemSchema, addCartItem, addCartPromotionCode, authenticateOrderPayment, autocompleteProducts, catalogLinkCandidates, catalogLinkKey, checkoutCart, checkoutOrderDraft, completeCustomerRegistration, createApi, createCart, createClient, createComplaintBookEntry, createCustomerAddress, createProductReview, customerMeToProfile, customerMeToProfilePatch, customerOrderStatusTone, customerProfileToPatch, deleteCustomerAddress, embeddedVideo, formatCustomerOrderStatus, formatOrderDate, formatOrderDateTime, formatTrackingStatus, getArticleBySlug, getCart, getCartCheckout, getComplaintBook, getCountries, getCustomerAddresses, getCustomerMe, getCustomerOrder, getCustomerOrders, getCustomerRegistration, getDepartments, getDistricts, getMenuItems, getOrderDraft, getOrderReviewContext, getOrderStatus, getOrderTracking, getPageBySlug, getPaymentMethods, getProductBySlug, getProducts, getProvinces, getRelatedProducts, getSellerBySlug, getSellers, getShippingOptions, graphQLSelection, isCatalogLinkCandidate, lineTotal, lineUnitPrice, listArticles, listProductReviews, modifierLabel, modifiersUnitPrice, patchCartAddresses, patchCartBuyer, patchCustomer, putCartPaymentMethod, putCartShippingMethod, readCatalogLink, removeCartItem, removeCartPromotionCode, requestCustomerOrderCancellation, requestCustomerOrderReturn, resolveApiBaseUrl, sanitizeHtml, startOrderPayment, stripHtml, toCustomerSavedAddresses, updateCartItemQuantity, updateCustomerAddress, uploadOrderPaymentReceipt, uploadPaymentReceipt };