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