@ikas/bp-storefront 0.15.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 (996) hide show
  1. package/dist/_virtual/URL-impl.js +1 -0
  2. package/dist/_virtual/URL.js +1 -0
  3. package/dist/_virtual/_commonjsHelpers.js +1 -0
  4. package/dist/_virtual/_nodeUtil.js +1 -0
  5. package/dist/_virtual/fetch-npm-node.js +1 -0
  6. package/dist/_virtual/index.js +1 -0
  7. package/dist/_virtual/index.mjs.js +1 -0
  8. package/dist/_virtual/isBuffer.js +1 -0
  9. package/dist/_virtual/public-api.js +1 -0
  10. package/dist/_virtual/url-state-machine.js +1 -0
  11. package/dist/_virtual/utils.js +1 -0
  12. package/dist/analytics/analytics-functions/addToCart.js +1 -0
  13. package/dist/analytics/analytics-functions/addToWishlist.js +1 -0
  14. package/dist/analytics/analytics-functions/completeRegistration.js +1 -0
  15. package/dist/analytics/analytics-functions/contactForm.js +1 -0
  16. package/dist/analytics/analytics-functions/createEmailSubscription.js +1 -0
  17. package/dist/analytics/analytics-functions/customerLogin.js +1 -0
  18. package/dist/analytics/analytics-functions/customerLogout.js +1 -0
  19. package/dist/analytics/analytics-functions/customerVisit.js +1 -0
  20. package/dist/analytics/analytics-functions/helpers.js +1 -0
  21. package/dist/analytics/analytics-functions/pageView.js +1 -0
  22. package/dist/analytics/analytics-functions/productView.js +1 -0
  23. package/dist/analytics/analytics-functions/removeFromCart.js +1 -0
  24. package/dist/analytics/analytics-functions/search.js +1 -0
  25. package/dist/analytics/analytics-functions/viewBrand.js +1 -0
  26. package/dist/analytics/analytics-functions/viewCart.js +1 -0
  27. package/dist/analytics/analytics-functions/viewCategory.js +1 -0
  28. package/dist/analytics/analytics-functions/viewListing.js +1 -0
  29. package/dist/analytics/analytics-functions/viewSearchResults.js +1 -0
  30. package/dist/analytics/analytics-functions/viewStorefrontPopup.js +1 -0
  31. package/dist/analytics/analytics.js +1 -0
  32. package/dist/analytics/events.js +1 -0
  33. package/dist/analytics/facebook/addToCart.js +1 -0
  34. package/dist/analytics/facebook/addToWishlist.js +1 -0
  35. package/dist/analytics/facebook/completeRegistration.js +1 -0
  36. package/dist/analytics/facebook/contactForm.js +1 -0
  37. package/dist/analytics/facebook/pageView.js +1 -0
  38. package/dist/analytics/facebook/productView.js +1 -0
  39. package/dist/analytics/facebook/search.js +1 -0
  40. package/dist/analytics/facebook/utils.js +1 -0
  41. package/dist/analytics/facebook/viewCart.js +1 -0
  42. package/dist/analytics/facebook/viewCategory.js +1 -0
  43. package/dist/analytics/google-analytics/addToCart.js +1 -0
  44. package/dist/analytics/google-analytics/productView.js +1 -0
  45. package/dist/analytics/google-analytics/removeFromCart.js +1 -0
  46. package/dist/analytics/google-analytics/search.js +1 -0
  47. package/dist/analytics/google-analytics/utils.js +1 -0
  48. package/dist/analytics/google-analytics/viewCart.js +1 -0
  49. package/dist/analytics/google-tag-manager/addToCart.js +1 -0
  50. package/dist/analytics/google-tag-manager/completeRegistration.js +1 -0
  51. package/dist/analytics/google-tag-manager/customerLogin.js +1 -0
  52. package/dist/analytics/google-tag-manager/customerLogout.js +1 -0
  53. package/dist/analytics/google-tag-manager/customerVisit.js +1 -0
  54. package/dist/analytics/google-tag-manager/pageView.js +1 -0
  55. package/dist/analytics/google-tag-manager/productView.js +1 -0
  56. package/dist/analytics/google-tag-manager/removeFromCart.js +1 -0
  57. package/dist/analytics/google-tag-manager/search.js +1 -0
  58. package/dist/analytics/google-tag-manager/utils.js +1 -0
  59. package/dist/analytics/google-tag-manager/viewCart.js +1 -0
  60. package/dist/analytics/google-tag-manager/viewCategory.js +1 -0
  61. package/dist/analytics/ikas/analytics.js +1 -0
  62. package/dist/analytics/tiktok/addToCart.js +1 -0
  63. package/dist/analytics/tiktok/addToWishlist.js +1 -0
  64. package/dist/analytics/tiktok/completeRegistration.js +1 -0
  65. package/dist/analytics/tiktok/contactForm.js +1 -0
  66. package/dist/analytics/tiktok/identify.js +1 -0
  67. package/dist/analytics/tiktok/pageView.js +1 -0
  68. package/dist/analytics/tiktok/productView.js +1 -0
  69. package/dist/analytics/tiktok/search.js +1 -0
  70. package/dist/analytics/tiktok/utils.js +1 -0
  71. package/dist/analytics/tiktok/viewCategory.js +1 -0
  72. package/dist/analytics/utils.js +1 -0
  73. package/dist/ext/animejs/lib/anime.esm.js +9 -0
  74. package/dist/ext/isomorphic-fetch/fetch-npm-node.js +1 -0
  75. package/dist/ext/lodash/_DataView.js +1 -0
  76. package/dist/ext/lodash/_Hash.js +1 -0
  77. package/dist/ext/lodash/_ListCache.js +1 -0
  78. package/dist/ext/lodash/_Map.js +1 -0
  79. package/dist/ext/lodash/_MapCache.js +1 -0
  80. package/dist/ext/lodash/_Promise.js +1 -0
  81. package/dist/ext/lodash/_Set.js +1 -0
  82. package/dist/ext/lodash/_SetCache.js +1 -0
  83. package/dist/ext/lodash/_Stack.js +1 -0
  84. package/dist/ext/lodash/_Symbol.js +1 -0
  85. package/dist/ext/lodash/_Uint8Array.js +1 -0
  86. package/dist/ext/lodash/_WeakMap.js +1 -0
  87. package/dist/ext/lodash/_apply.js +1 -0
  88. package/dist/ext/lodash/_arrayFilter.js +1 -0
  89. package/dist/ext/lodash/_arrayLikeKeys.js +1 -0
  90. package/dist/ext/lodash/_arrayMap.js +1 -0
  91. package/dist/ext/lodash/_arrayPush.js +1 -0
  92. package/dist/ext/lodash/_arraySome.js +1 -0
  93. package/dist/ext/lodash/_assocIndexOf.js +1 -0
  94. package/dist/ext/lodash/_baseEach.js +1 -0
  95. package/dist/ext/lodash/_baseFlatten.js +1 -0
  96. package/dist/ext/lodash/_baseFor.js +1 -0
  97. package/dist/ext/lodash/_baseForOwn.js +1 -0
  98. package/dist/ext/lodash/_baseGet.js +1 -0
  99. package/dist/ext/lodash/_baseGetAllKeys.js +1 -0
  100. package/dist/ext/lodash/_baseGetTag.js +1 -0
  101. package/dist/ext/lodash/_baseHasIn.js +1 -0
  102. package/dist/ext/lodash/_baseIsArguments.js +1 -0
  103. package/dist/ext/lodash/_baseIsEqual.js +1 -0
  104. package/dist/ext/lodash/_baseIsEqualDeep.js +1 -0
  105. package/dist/ext/lodash/_baseIsMatch.js +1 -0
  106. package/dist/ext/lodash/_baseIsNative.js +1 -0
  107. package/dist/ext/lodash/_baseIsTypedArray.js +1 -0
  108. package/dist/ext/lodash/_baseIteratee.js +1 -0
  109. package/dist/ext/lodash/_baseKeys.js +1 -0
  110. package/dist/ext/lodash/_baseMap.js +1 -0
  111. package/dist/ext/lodash/_baseMatches.js +1 -0
  112. package/dist/ext/lodash/_baseMatchesProperty.js +1 -0
  113. package/dist/ext/lodash/_baseOrderBy.js +1 -0
  114. package/dist/ext/lodash/_baseProperty.js +1 -0
  115. package/dist/ext/lodash/_basePropertyDeep.js +1 -0
  116. package/dist/ext/lodash/_baseRest.js +1 -0
  117. package/dist/ext/lodash/_baseSetToString.js +1 -0
  118. package/dist/ext/lodash/_baseSortBy.js +1 -0
  119. package/dist/ext/lodash/_baseTimes.js +1 -0
  120. package/dist/ext/lodash/_baseToString.js +1 -0
  121. package/dist/ext/lodash/_baseUnary.js +1 -0
  122. package/dist/ext/lodash/_cacheHas.js +1 -0
  123. package/dist/ext/lodash/_castPath.js +1 -0
  124. package/dist/ext/lodash/_compareAscending.js +1 -0
  125. package/dist/ext/lodash/_compareMultiple.js +1 -0
  126. package/dist/ext/lodash/_coreJsData.js +1 -0
  127. package/dist/ext/lodash/_createBaseEach.js +1 -0
  128. package/dist/ext/lodash/_createBaseFor.js +1 -0
  129. package/dist/ext/lodash/_defineProperty.js +1 -0
  130. package/dist/ext/lodash/_equalArrays.js +1 -0
  131. package/dist/ext/lodash/_equalByTag.js +1 -0
  132. package/dist/ext/lodash/_equalObjects.js +1 -0
  133. package/dist/ext/lodash/_freeGlobal.js +1 -0
  134. package/dist/ext/lodash/_getAllKeys.js +1 -0
  135. package/dist/ext/lodash/_getMapData.js +1 -0
  136. package/dist/ext/lodash/_getMatchData.js +1 -0
  137. package/dist/ext/lodash/_getNative.js +1 -0
  138. package/dist/ext/lodash/_getRawTag.js +1 -0
  139. package/dist/ext/lodash/_getSymbols.js +1 -0
  140. package/dist/ext/lodash/_getTag.js +1 -0
  141. package/dist/ext/lodash/_getValue.js +1 -0
  142. package/dist/ext/lodash/_hasPath.js +1 -0
  143. package/dist/ext/lodash/_hashClear.js +1 -0
  144. package/dist/ext/lodash/_hashDelete.js +1 -0
  145. package/dist/ext/lodash/_hashGet.js +1 -0
  146. package/dist/ext/lodash/_hashHas.js +1 -0
  147. package/dist/ext/lodash/_hashSet.js +1 -0
  148. package/dist/ext/lodash/_isFlattenable.js +1 -0
  149. package/dist/ext/lodash/_isIndex.js +1 -0
  150. package/dist/ext/lodash/_isIterateeCall.js +1 -0
  151. package/dist/ext/lodash/_isKey.js +1 -0
  152. package/dist/ext/lodash/_isKeyable.js +1 -0
  153. package/dist/ext/lodash/_isMasked.js +1 -0
  154. package/dist/ext/lodash/_isPrototype.js +1 -0
  155. package/dist/ext/lodash/_isStrictComparable.js +1 -0
  156. package/dist/ext/lodash/_listCacheClear.js +1 -0
  157. package/dist/ext/lodash/_listCacheDelete.js +1 -0
  158. package/dist/ext/lodash/_listCacheGet.js +1 -0
  159. package/dist/ext/lodash/_listCacheHas.js +1 -0
  160. package/dist/ext/lodash/_listCacheSet.js +1 -0
  161. package/dist/ext/lodash/_mapCacheClear.js +1 -0
  162. package/dist/ext/lodash/_mapCacheDelete.js +1 -0
  163. package/dist/ext/lodash/_mapCacheGet.js +1 -0
  164. package/dist/ext/lodash/_mapCacheHas.js +1 -0
  165. package/dist/ext/lodash/_mapCacheSet.js +1 -0
  166. package/dist/ext/lodash/_mapToArray.js +1 -0
  167. package/dist/ext/lodash/_matchesStrictComparable.js +1 -0
  168. package/dist/ext/lodash/_memoizeCapped.js +1 -0
  169. package/dist/ext/lodash/_nativeCreate.js +1 -0
  170. package/dist/ext/lodash/_nativeKeys.js +1 -0
  171. package/dist/ext/lodash/_nodeUtil.js +1 -0
  172. package/dist/ext/lodash/_objectToString.js +1 -0
  173. package/dist/ext/lodash/_overArg.js +1 -0
  174. package/dist/ext/lodash/_overRest.js +1 -0
  175. package/dist/ext/lodash/_root.js +1 -0
  176. package/dist/ext/lodash/_setCacheAdd.js +1 -0
  177. package/dist/ext/lodash/_setCacheHas.js +1 -0
  178. package/dist/ext/lodash/_setToArray.js +1 -0
  179. package/dist/ext/lodash/_setToString.js +1 -0
  180. package/dist/ext/lodash/_shortOut.js +1 -0
  181. package/dist/ext/lodash/_stackClear.js +1 -0
  182. package/dist/ext/lodash/_stackDelete.js +1 -0
  183. package/dist/ext/lodash/_stackGet.js +1 -0
  184. package/dist/ext/lodash/_stackHas.js +1 -0
  185. package/dist/ext/lodash/_stackSet.js +1 -0
  186. package/dist/ext/lodash/_stringToPath.js +1 -0
  187. package/dist/ext/lodash/_toKey.js +1 -0
  188. package/dist/ext/lodash/_toSource.js +1 -0
  189. package/dist/ext/lodash/constant.js +1 -0
  190. package/dist/ext/lodash/eq.js +1 -0
  191. package/dist/ext/lodash/get.js +1 -0
  192. package/dist/ext/lodash/hasIn.js +1 -0
  193. package/dist/ext/lodash/identity.js +1 -0
  194. package/dist/ext/lodash/isArguments.js +1 -0
  195. package/dist/ext/lodash/isArray.js +1 -0
  196. package/dist/ext/lodash/isArrayLike.js +1 -0
  197. package/dist/ext/lodash/isBuffer.js +1 -0
  198. package/dist/ext/lodash/isFunction.js +1 -0
  199. package/dist/ext/lodash/isLength.js +1 -0
  200. package/dist/ext/lodash/isObject.js +1 -0
  201. package/dist/ext/lodash/isObjectLike.js +1 -0
  202. package/dist/ext/lodash/isSymbol.js +1 -0
  203. package/dist/ext/lodash/isTypedArray.js +1 -0
  204. package/dist/ext/lodash/keys.js +1 -0
  205. package/dist/ext/lodash/memoize.js +1 -0
  206. package/dist/ext/lodash/property.js +1 -0
  207. package/dist/ext/lodash/sortBy.js +1 -0
  208. package/dist/ext/lodash/stubArray.js +1 -0
  209. package/dist/ext/lodash/stubFalse.js +1 -0
  210. package/dist/ext/lodash/toString.js +1 -0
  211. package/dist/ext/mobx/dist/mobx.esm.js +1 -0
  212. package/dist/ext/node-fetch/lib/index.mjs.js +1 -0
  213. package/dist/ext/tr46/index.js +1 -0
  214. package/dist/ext/tr46/lib/mappingTable.json.js +1 -0
  215. package/dist/ext/tslib/tslib.es6.mjs.js +1 -0
  216. package/dist/ext/uuid/dist/esm-browser/md5.js +1 -0
  217. package/dist/ext/uuid/dist/esm-browser/native.js +1 -0
  218. package/dist/ext/uuid/dist/esm-browser/parse.js +1 -0
  219. package/dist/ext/uuid/dist/esm-browser/regex.js +1 -0
  220. package/dist/ext/uuid/dist/esm-browser/rng.js +1 -0
  221. package/dist/ext/uuid/dist/esm-browser/sha1.js +1 -0
  222. package/dist/ext/uuid/dist/esm-browser/stringify.js +1 -0
  223. package/dist/ext/uuid/dist/esm-browser/v3.js +1 -0
  224. package/dist/ext/uuid/dist/esm-browser/v35.js +1 -0
  225. package/dist/ext/uuid/dist/esm-browser/v4.js +1 -0
  226. package/dist/ext/uuid/dist/esm-browser/v5.js +1 -0
  227. package/dist/ext/uuid/dist/esm-browser/validate.js +1 -0
  228. package/dist/ext/webidl-conversions/lib/index.js +1 -0
  229. package/dist/ext/whatwg-url/lib/URL-impl.js +1 -0
  230. package/dist/ext/whatwg-url/lib/URL.js +1 -0
  231. package/dist/ext/whatwg-url/lib/public-api.js +1 -0
  232. package/dist/ext/whatwg-url/lib/url-state-machine.js +1 -0
  233. package/dist/ext/whatwg-url/lib/utils.js +1 -0
  234. package/dist/externals/index.js +1 -0
  235. package/dist/functions/api/blog/index.js +1 -0
  236. package/dist/functions/api/brand/index.js +1 -0
  237. package/dist/functions/api/cart/index.js +1 -0
  238. package/dist/functions/api/category/index.js +1 -0
  239. package/dist/functions/api/checkout/index.js +1 -0
  240. package/dist/functions/api/customer/index.js +1 -0
  241. package/dist/functions/api/file/index.js +1 -0
  242. package/dist/functions/api/location/index.js +1 -0
  243. package/dist/functions/api/loyalty/index.js +1 -0
  244. package/dist/functions/api/popup/index.js +1 -0
  245. package/dist/functions/api/product/index.js +1 -0
  246. package/dist/functions/models/attribute-detail/index.js +1 -0
  247. package/dist/functions/models/attribute-list/index.js +1 -0
  248. package/dist/functions/models/base/index.js +1 -0
  249. package/dist/functions/models/blog/category/index.js +1 -0
  250. package/dist/functions/models/blog/category/init.js +1 -0
  251. package/dist/functions/models/blog/index.js +1 -0
  252. package/dist/functions/models/blog/init.js +1 -0
  253. package/dist/functions/models/blog-category-list/index.js +1 -0
  254. package/dist/functions/models/blog-category-list/init.js +1 -0
  255. package/dist/functions/models/blog-list/index.js +1 -0
  256. package/dist/functions/models/blog-list/init.js +1 -0
  257. package/dist/functions/models/brand/index.js +1 -0
  258. package/dist/functions/models/brand/init.js +1 -0
  259. package/dist/functions/models/brand-list/index.js +1 -0
  260. package/dist/functions/models/brand-list/init.js +1 -0
  261. package/dist/functions/models/campaign-offer/index.js +1 -0
  262. package/dist/functions/models/category/index.js +1 -0
  263. package/dist/functions/models/category/init.js +1 -0
  264. package/dist/functions/models/category/path-item/index.js +1 -0
  265. package/dist/functions/models/category/path-item/init.js +1 -0
  266. package/dist/functions/models/category-list/index.js +1 -0
  267. package/dist/functions/models/category-list/init.js +1 -0
  268. package/dist/functions/models/checkout/index.js +1 -0
  269. package/dist/functions/models/country/init.js +1 -0
  270. package/dist/functions/models/customer/address/index.js +1 -0
  271. package/dist/functions/models/customer/attribute/index.js +1 -0
  272. package/dist/functions/models/customer/attribute/init.js +1 -0
  273. package/dist/functions/models/customer/index.js +1 -0
  274. package/dist/functions/models/customer/review/index.js +1 -0
  275. package/dist/functions/models/customer/review/init.js +1 -0
  276. package/dist/functions/models/customer-review-list/index.js +1 -0
  277. package/dist/functions/models/customer-review-list/init.js +1 -0
  278. package/dist/functions/models/customer-review-summary-list/index.js +1 -0
  279. package/dist/functions/models/customer-review-summary-list/init.js +1 -0
  280. package/dist/functions/models/filter-category/index.js +1 -0
  281. package/dist/functions/models/html-meta-data/init.js +1 -0
  282. package/dist/functions/models/ikas-theme/date-picker.js +1 -0
  283. package/dist/functions/models/image/index.js +1 -0
  284. package/dist/functions/models/merchant-settings/init.js +1 -0
  285. package/dist/functions/models/order/address/index.js +1 -0
  286. package/dist/functions/models/order/adjustment/index.js +1 -0
  287. package/dist/functions/models/order/gift-package/index.js +1 -0
  288. package/dist/functions/models/order/index.js +1 -0
  289. package/dist/functions/models/order/line-item/index.js +1 -0
  290. package/dist/functions/models/order/line-item/variant/bundle-product/bundle-variant/index.js +1 -0
  291. package/dist/functions/models/order/line-item/variant/index.js +1 -0
  292. package/dist/functions/models/order/line-item/variant/value/index.js +1 -0
  293. package/dist/functions/models/order/transaction/index.js +1 -0
  294. package/dist/functions/models/payment-gateway/index.js +1 -0
  295. package/dist/functions/models/payment-gateway/init.js +1 -0
  296. package/dist/functions/models/product/attribute/init.js +1 -0
  297. package/dist/functions/models/product/attribute-value/index.js +1 -0
  298. package/dist/functions/models/product/attribute-value/init.js +1 -0
  299. package/dist/functions/models/product/campaign-offer/index.js +1 -0
  300. package/dist/functions/models/product/campaign-offer/init.js +1 -0
  301. package/dist/functions/models/product/campaign-offer/product/init.js +1 -0
  302. package/dist/functions/models/product/filter/index.js +1 -0
  303. package/dist/functions/models/product/group/init.js +1 -0
  304. package/dist/functions/models/product/image/init.js +1 -0
  305. package/dist/functions/models/product/index.js +1 -0
  306. package/dist/functions/models/product/init.js +1 -0
  307. package/dist/functions/models/product/option-set/index.js +1 -0
  308. package/dist/functions/models/product/option-set/init.js +1 -0
  309. package/dist/functions/models/product/option-set/option/index.js +1 -0
  310. package/dist/functions/models/product/option-set/option/init.js +1 -0
  311. package/dist/functions/models/product/variant/index.js +1 -0
  312. package/dist/functions/models/product/variant/init.js +1 -0
  313. package/dist/functions/models/product/variant/price/index.js +1 -0
  314. package/dist/functions/models/product/variant-type/init.js +1 -0
  315. package/dist/functions/models/product-list/index.js +1 -0
  316. package/dist/functions/models/raffle/index.js +1 -0
  317. package/dist/functions/models/raffle/init.js +1 -0
  318. package/dist/functions/models/state/init.js +1 -0
  319. package/dist/functions/models/validator/account-info/index.js +1 -0
  320. package/dist/functions/models/validator/address/index.js +1 -0
  321. package/dist/functions/models/validator/back-in-stock-notification/index.js +1 -0
  322. package/dist/functions/models/validator/contact-form/index.js +1 -0
  323. package/dist/functions/models/validator/coupon-code-form/index.js +1 -0
  324. package/dist/functions/models/validator/customer-review/index.js +1 -0
  325. package/dist/functions/models/validator/forgot-password/index.js +1 -0
  326. package/dist/functions/models/validator/index.js +1 -0
  327. package/dist/functions/models/validator/login/index.js +1 -0
  328. package/dist/functions/models/validator/newsletter-subscription/index.js +1 -0
  329. package/dist/functions/models/validator/order-tracking/index.js +1 -0
  330. package/dist/functions/models/validator/recover-password/index.js +1 -0
  331. package/dist/functions/models/validator/register/index.js +1 -0
  332. package/dist/functions/models/validator/sms-login/index.js +1 -0
  333. package/dist/functions/models/validator/verify-phone-number/index.js +1 -0
  334. package/dist/functions/models/variant-type/index.js +1 -0
  335. package/dist/functions/models/variant-type/init.js +1 -0
  336. package/dist/functions/models/variant-type/variant-value/index.js +1 -0
  337. package/dist/functions/others/index.js +1 -0
  338. package/dist/functions/stores/base/index.js +1 -0
  339. package/dist/functions/stores/cart/index.js +1 -0
  340. package/dist/functions/stores/customer/index.js +1 -0
  341. package/dist/i18n/index.js +1 -0
  342. package/dist/index.js +1 -0
  343. package/dist/packages/storefront-api/src/__api/mutations/activateCustomer.js +1 -0
  344. package/dist/packages/storefront-api/src/__api/mutations/addItemToCart.js +1 -0
  345. package/dist/packages/storefront-api/src/__api/mutations/createAdyenBalancePlatformPaymentSession.js +1 -0
  346. package/dist/packages/storefront-api/src/__api/mutations/createCustomerReview.js +1 -0
  347. package/dist/packages/storefront-api/src/__api/mutations/createKlarnaClientToken.js +1 -0
  348. package/dist/packages/storefront-api/src/__api/mutations/createOrderRefundRequest.js +1 -0
  349. package/dist/packages/storefront-api/src/__api/mutations/createPayWithIkasSessionUrl.js +1 -0
  350. package/dist/packages/storefront-api/src/__api/mutations/createPaypalOrder.js +1 -0
  351. package/dist/packages/storefront-api/src/__api/mutations/createSaleTransactionWithCart.js +1 -0
  352. package/dist/packages/storefront-api/src/__api/mutations/createStripePaymentIntent.js +1 -0
  353. package/dist/packages/storefront-api/src/__api/mutations/customerDeactivate.js +1 -0
  354. package/dist/packages/storefront-api/src/__api/mutations/customerForgotPassword.js +1 -0
  355. package/dist/packages/storefront-api/src/__api/mutations/customerLogin.js +1 -0
  356. package/dist/packages/storefront-api/src/__api/mutations/customerRecoverPassword.js +1 -0
  357. package/dist/packages/storefront-api/src/__api/mutations/customerRefreshToken.js +1 -0
  358. package/dist/packages/storefront-api/src/__api/mutations/getOrderLineFile.js +1 -0
  359. package/dist/packages/storefront-api/src/__api/mutations/getPaypalClientId.js +1 -0
  360. package/dist/packages/storefront-api/src/__api/mutations/registerCustomer.js +1 -0
  361. package/dist/packages/storefront-api/src/__api/mutations/removeLoyaltyPointsFromCart.js +1 -0
  362. package/dist/packages/storefront-api/src/__api/mutations/resendCustomerActivationMail.js +1 -0
  363. package/dist/packages/storefront-api/src/__api/mutations/resendCustomerPhoneVerificationCode.js +1 -0
  364. package/dist/packages/storefront-api/src/__api/mutations/retrieveInstallmentInfo.js +1 -0
  365. package/dist/packages/storefront-api/src/__api/mutations/saveCart.js +1 -0
  366. package/dist/packages/storefront-api/src/__api/mutations/saveCartCouponCode.js +1 -0
  367. package/dist/packages/storefront-api/src/__api/mutations/saveCustomerFormData.js +1 -0
  368. package/dist/packages/storefront-api/src/__api/mutations/saveFavoriteProduct.js +1 -0
  369. package/dist/packages/storefront-api/src/__api/mutations/saveLastViewedProducts.js +1 -0
  370. package/dist/packages/storefront-api/src/__api/mutations/saveMyCustomer.js +1 -0
  371. package/dist/packages/storefront-api/src/__api/mutations/saveProductBackInStockRemind.js +1 -0
  372. package/dist/packages/storefront-api/src/__api/mutations/sendContactFormToMerchant.js +1 -0
  373. package/dist/packages/storefront-api/src/__api/mutations/subscribeToMarketingNotifications.js +1 -0
  374. package/dist/packages/storefront-api/src/__api/mutations/updateCartCampaignOffer.js +1 -0
  375. package/dist/packages/storefront-api/src/__api/mutations/useLoyaltyPoints.js +1 -0
  376. package/dist/packages/storefront-api/src/__api/mutations/validateCustomerPhoneVerificationCode.js +1 -0
  377. package/dist/packages/storefront-api/src/__api/mutations/validateOTPCode.js +1 -0
  378. package/dist/packages/storefront-api/src/__api/queries/checkCartStocks.js +1 -0
  379. package/dist/packages/storefront-api/src/__api/queries/checkCustomerEmail.js +1 -0
  380. package/dist/packages/storefront-api/src/__api/queries/checkStocks.js +1 -0
  381. package/dist/packages/storefront-api/src/__api/queries/customerSocialLogin.js +1 -0
  382. package/dist/packages/storefront-api/src/__api/queries/exportCustomerPersonalData.js +1 -0
  383. package/dist/packages/storefront-api/src/__api/queries/getAvailableShippingCountries.js +1 -0
  384. package/dist/packages/storefront-api/src/__api/queries/getAvailableShippingZones.js +1 -0
  385. package/dist/packages/storefront-api/src/__api/queries/getAvailableStockLocations.js +1 -0
  386. package/dist/packages/storefront-api/src/__api/queries/getCartById.js +1 -0
  387. package/dist/packages/storefront-api/src/__api/queries/getCustomerOrders.js +1 -0
  388. package/dist/packages/storefront-api/src/__api/queries/getDigitalProductFileDownloadUrl.js +1 -0
  389. package/dist/packages/storefront-api/src/__api/queries/getLastViewedProducts.js +1 -0
  390. package/dist/packages/storefront-api/src/__api/queries/getLoyaltyCustomerInfo.js +1 -0
  391. package/dist/packages/storefront-api/src/__api/queries/getMyCountry.js +1 -0
  392. package/dist/packages/storefront-api/src/__api/queries/getMyCustomer.js +1 -0
  393. package/dist/packages/storefront-api/src/__api/queries/getOrderByEmail.js +1 -0
  394. package/dist/packages/storefront-api/src/__api/queries/getProductCampaigns.js +1 -0
  395. package/dist/packages/storefront-api/src/__api/queries/getProductFilterData.js +1 -0
  396. package/dist/packages/storefront-api/src/__api/queries/getProductOptionFileUrl.js +1 -0
  397. package/dist/packages/storefront-api/src/__api/queries/getRelatedProducts.js +1 -0
  398. package/dist/packages/storefront-api/src/__api/queries/getStorefrontWidgetSettings.js +1 -0
  399. package/dist/packages/storefront-api/src/__api/queries/getSuggestedProducts.js +1 -0
  400. package/dist/packages/storefront-api/src/__api/queries/getVariantStockLocations.js +1 -0
  401. package/dist/packages/storefront-api/src/__api/queries/isFavoriteProduct.js +1 -0
  402. package/dist/packages/storefront-api/src/__api/queries/listBlog.js +1 -0
  403. package/dist/packages/storefront-api/src/__api/queries/listBlogCategory.js +1 -0
  404. package/dist/packages/storefront-api/src/__api/queries/listBlogMetadata.js +1 -0
  405. package/dist/packages/storefront-api/src/__api/queries/listCampaignOffer.js +1 -0
  406. package/dist/packages/storefront-api/src/__api/queries/listCategory.js +1 -0
  407. package/dist/packages/storefront-api/src/__api/queries/listCheckoutSettings.js +1 -0
  408. package/dist/packages/storefront-api/src/__api/queries/listCity.js +1 -0
  409. package/dist/packages/storefront-api/src/__api/queries/listCountry.js +1 -0
  410. package/dist/packages/storefront-api/src/__api/queries/listCustomerAttribute.js +1 -0
  411. package/dist/packages/storefront-api/src/__api/queries/listCustomerReviewSummary.js +1 -0
  412. package/dist/packages/storefront-api/src/__api/queries/listCustomerReviews.js +1 -0
  413. package/dist/packages/storefront-api/src/__api/queries/listCustomerSettings.js +1 -0
  414. package/dist/packages/storefront-api/src/__api/queries/listDistrict.js +1 -0
  415. package/dist/packages/storefront-api/src/__api/queries/listEarningMethods.js +1 -0
  416. package/dist/packages/storefront-api/src/__api/queries/listFavoriteProducts.js +1 -0
  417. package/dist/packages/storefront-api/src/__api/queries/listLoyaltyProgramPointHistory.js +1 -0
  418. package/dist/packages/storefront-api/src/__api/queries/listLoyaltyProgramTiers.js +1 -0
  419. package/dist/packages/storefront-api/src/__api/queries/listOrderRefundSettings.js +1 -0
  420. package/dist/packages/storefront-api/src/__api/queries/listOrderTransactions.js +1 -0
  421. package/dist/packages/storefront-api/src/__api/queries/listPaymentGateway.js +1 -0
  422. package/dist/packages/storefront-api/src/__api/queries/listProductAttribute.js +1 -0
  423. package/dist/packages/storefront-api/src/__api/queries/listProductBackInStockRemind.js +1 -0
  424. package/dist/packages/storefront-api/src/__api/queries/listProductBrand.js +1 -0
  425. package/dist/packages/storefront-api/src/__api/queries/listProductFile.js +1 -0
  426. package/dist/packages/storefront-api/src/__api/queries/listProductOptionSet.js +1 -0
  427. package/dist/packages/storefront-api/src/__api/queries/listSpendingMethodsByCartId.js +1 -0
  428. package/dist/packages/storefront-api/src/__api/queries/listState.js +1 -0
  429. package/dist/packages/storefront-api/src/__api/queries/listStockLocation.js +1 -0
  430. package/dist/packages/storefront-api/src/__api/queries/listStorefrontPopup.js +1 -0
  431. package/dist/packages/storefront-api/src/__api/queries/searchProducts.js +1 -0
  432. package/dist/packages/storefront-api/src/index.js +1 -0
  433. package/dist/packages/storefront-api-client/ext/tslib/tslib.es6.js +15 -0
  434. package/dist/packages/storefront-api-client/src/config/index.js +1 -0
  435. package/dist/packages/storefront-api-client/src/utils/api.js +1 -0
  436. package/dist/packages/storefront-api-client/src/utils/fetch-query.js +1 -0
  437. package/dist/packages/storefront-config/src/index.js +1 -0
  438. package/dist/packages/storefront-models/src/models/merchant-settings/index.js +1 -0
  439. package/dist/router/index.js +1 -0
  440. package/dist/storefront/src/analytics/analytics-functions/addToCart.d.ts +2 -0
  441. package/dist/storefront/src/analytics/analytics-functions/addToWishlist.d.ts +1 -0
  442. package/dist/storefront/src/analytics/analytics-functions/completeRegistration.d.ts +2 -0
  443. package/dist/storefront/src/analytics/analytics-functions/contactForm.d.ts +2 -0
  444. package/dist/storefront/src/analytics/analytics-functions/createEmailSubscription.d.ts +1 -0
  445. package/dist/storefront/src/analytics/analytics-functions/customerLogin.d.ts +1 -0
  446. package/dist/storefront/src/analytics/analytics-functions/customerLogout.d.ts +1 -0
  447. package/dist/storefront/src/analytics/analytics-functions/customerVisit.d.ts +1 -0
  448. package/dist/storefront/src/analytics/analytics-functions/helpers.d.ts +12 -0
  449. package/dist/storefront/src/analytics/analytics-functions/index.d.ts +18 -0
  450. package/dist/storefront/src/analytics/analytics-functions/pageView.d.ts +2 -0
  451. package/dist/storefront/src/analytics/analytics-functions/productView.d.ts +2 -0
  452. package/dist/storefront/src/analytics/analytics-functions/removeFromCart.d.ts +2 -0
  453. package/dist/storefront/src/analytics/analytics-functions/search.d.ts +1 -0
  454. package/dist/storefront/src/analytics/analytics-functions/viewBrand.d.ts +2 -0
  455. package/dist/storefront/src/analytics/analytics-functions/viewCart.d.ts +2 -0
  456. package/dist/storefront/src/analytics/analytics-functions/viewCategory.d.ts +2 -0
  457. package/dist/storefront/src/analytics/analytics-functions/viewListing.d.ts +2 -0
  458. package/dist/storefront/src/analytics/analytics-functions/viewSearchResults.d.ts +2 -0
  459. package/dist/storefront/src/analytics/analytics-functions/viewStorefrontPopup.d.ts +2 -0
  460. package/dist/storefront/src/analytics/analytics.d.ts +5 -0
  461. package/dist/storefront/src/analytics/events.d.ts +15 -0
  462. package/dist/storefront/src/analytics/facebook/addToCart.d.ts +2 -0
  463. package/dist/storefront/src/analytics/facebook/addToWishlist.d.ts +1 -0
  464. package/dist/storefront/src/analytics/facebook/completeRegistration.d.ts +1 -0
  465. package/dist/storefront/src/analytics/facebook/contactForm.d.ts +1 -0
  466. package/dist/storefront/src/analytics/facebook/pageView.d.ts +1 -0
  467. package/dist/storefront/src/analytics/facebook/productView.d.ts +2 -0
  468. package/dist/storefront/src/analytics/facebook/purchase.d.ts +2 -0
  469. package/dist/storefront/src/analytics/facebook/search.d.ts +1 -0
  470. package/dist/storefront/src/analytics/facebook/utils.d.ts +3 -0
  471. package/dist/storefront/src/analytics/facebook/viewCart.d.ts +2 -0
  472. package/dist/storefront/src/analytics/facebook/viewCategory.d.ts +1 -0
  473. package/dist/storefront/src/analytics/google-analytics/addToCart.d.ts +2 -0
  474. package/dist/storefront/src/analytics/google-analytics/productView.d.ts +2 -0
  475. package/dist/storefront/src/analytics/google-analytics/removeFromCart.d.ts +2 -0
  476. package/dist/storefront/src/analytics/google-analytics/search.d.ts +1 -0
  477. package/dist/storefront/src/analytics/google-analytics/utils.d.ts +16 -0
  478. package/dist/storefront/src/analytics/google-analytics/viewCart.d.ts +2 -0
  479. package/dist/storefront/src/analytics/google-tag-manager/addToCart.d.ts +22 -0
  480. package/dist/storefront/src/analytics/google-tag-manager/completeRegistration.d.ts +5 -0
  481. package/dist/storefront/src/analytics/google-tag-manager/customerLogin.d.ts +4 -0
  482. package/dist/storefront/src/analytics/google-tag-manager/customerLogout.d.ts +3 -0
  483. package/dist/storefront/src/analytics/google-tag-manager/customerVisit.d.ts +4 -0
  484. package/dist/storefront/src/analytics/google-tag-manager/disableHTML.d.ts +1 -0
  485. package/dist/storefront/src/analytics/google-tag-manager/pageView.d.ts +4 -0
  486. package/dist/storefront/src/analytics/google-tag-manager/productView.d.ts +30 -0
  487. package/dist/storefront/src/analytics/google-tag-manager/removeFromCart.d.ts +22 -0
  488. package/dist/storefront/src/analytics/google-tag-manager/search.d.ts +4 -0
  489. package/dist/storefront/src/analytics/google-tag-manager/utils.d.ts +16 -0
  490. package/dist/storefront/src/analytics/google-tag-manager/viewCart.d.ts +7 -0
  491. package/dist/storefront/src/analytics/google-tag-manager/viewCategory.d.ts +14 -0
  492. package/dist/storefront/src/analytics/ikas/analytics.d.ts +28 -0
  493. package/dist/storefront/src/analytics/tiktok/addToCart.d.ts +2 -0
  494. package/dist/storefront/src/analytics/tiktok/addToWishlist.d.ts +1 -0
  495. package/dist/storefront/src/analytics/tiktok/completeRegistration.d.ts +1 -0
  496. package/dist/storefront/src/analytics/tiktok/contactForm.d.ts +1 -0
  497. package/dist/storefront/src/analytics/tiktok/identify.d.ts +1 -0
  498. package/dist/storefront/src/analytics/tiktok/pageView.d.ts +1 -0
  499. package/dist/storefront/src/analytics/tiktok/productView.d.ts +2 -0
  500. package/dist/storefront/src/analytics/tiktok/search.d.ts +1 -0
  501. package/dist/storefront/src/analytics/tiktok/utils.d.ts +2 -0
  502. package/dist/storefront/src/analytics/tiktok/viewCategory.d.ts +2 -0
  503. package/dist/storefront/src/analytics/utils.d.ts +43 -0
  504. package/dist/storefront/src/externals/index.d.ts +6 -0
  505. package/dist/storefront/src/functions/api/blog/index.d.ts +26 -0
  506. package/dist/storefront/src/functions/api/brand/index.d.ts +11 -0
  507. package/dist/storefront/src/functions/api/cart/index.d.ts +14 -0
  508. package/dist/storefront/src/functions/api/category/index.d.ts +10 -0
  509. package/dist/storefront/src/functions/api/checkout/index.d.ts +32 -0
  510. package/dist/storefront/src/functions/api/customer/index.d.ts +204 -0
  511. package/dist/storefront/src/functions/api/file/index.d.ts +10 -0
  512. package/dist/storefront/src/functions/api/html-meta-data/index.d.ts +4 -0
  513. package/dist/storefront/src/functions/api/location/index.d.ts +13 -0
  514. package/dist/storefront/src/functions/api/loyalty/index.d.ts +15 -0
  515. package/dist/storefront/src/functions/api/masterpass/index.d.ts +2 -0
  516. package/dist/storefront/src/functions/api/merchant/index.d.ts +4 -0
  517. package/dist/storefront/src/functions/api/popup/index.d.ts +4 -0
  518. package/dist/storefront/src/functions/api/product/index.d.ts +55 -0
  519. package/dist/storefront/src/functions/api/raffle/index.d.ts +15 -0
  520. package/dist/storefront/src/functions/api/storefront/index.d.ts +3 -0
  521. package/dist/storefront/src/functions/models/attribute-detail/index.d.ts +21 -0
  522. package/dist/storefront/src/functions/models/attribute-list/index.d.ts +21 -0
  523. package/dist/storefront/src/functions/models/base/index.d.ts +18 -0
  524. package/dist/storefront/src/functions/models/blog/category/index.d.ts +33 -0
  525. package/dist/storefront/src/functions/models/blog/category/init.d.ts +17 -0
  526. package/dist/storefront/src/functions/models/blog/index.d.ts +35 -0
  527. package/dist/storefront/src/functions/models/blog/init.d.ts +17 -0
  528. package/dist/storefront/src/functions/models/blog-category-list/index.d.ts +149 -0
  529. package/dist/storefront/src/functions/models/blog-category-list/init.d.ts +17 -0
  530. package/dist/storefront/src/functions/models/blog-list/index.d.ts +149 -0
  531. package/dist/storefront/src/functions/models/blog-list/init.d.ts +17 -0
  532. package/dist/storefront/src/functions/models/brand/index.d.ts +18 -0
  533. package/dist/storefront/src/functions/models/brand/init.d.ts +18 -0
  534. package/dist/storefront/src/functions/models/brand-list/index.d.ts +149 -0
  535. package/dist/storefront/src/functions/models/brand-list/init.d.ts +17 -0
  536. package/dist/storefront/src/functions/models/campaign-offer/index.d.ts +55 -0
  537. package/dist/storefront/src/functions/models/category/index.d.ts +35 -0
  538. package/dist/storefront/src/functions/models/category/init.d.ts +18 -0
  539. package/dist/storefront/src/functions/models/category/path-item/index.d.ts +35 -0
  540. package/dist/storefront/src/functions/models/category/path-item/init.d.ts +18 -0
  541. package/dist/storefront/src/functions/models/category-list/index.d.ts +149 -0
  542. package/dist/storefront/src/functions/models/category-list/init.d.ts +17 -0
  543. package/dist/storefront/src/functions/models/checkout/index.d.ts +39 -0
  544. package/dist/storefront/src/functions/models/country/init.d.ts +20 -0
  545. package/dist/storefront/src/functions/models/customer/address/index.d.ts +106 -0
  546. package/dist/storefront/src/functions/models/customer/attribute/index.d.ts +39 -0
  547. package/dist/storefront/src/functions/models/customer/attribute/init.d.ts +19 -0
  548. package/dist/storefront/src/functions/models/customer/index.d.ts +47 -0
  549. package/dist/storefront/src/functions/models/customer/review/index.d.ts +18 -0
  550. package/dist/storefront/src/functions/models/customer/review/init.d.ts +18 -0
  551. package/dist/storefront/src/functions/models/customer-review-list/index.d.ts +141 -0
  552. package/dist/storefront/src/functions/models/customer-review-list/init.d.ts +17 -0
  553. package/dist/storefront/src/functions/models/customer-review-summary-list/index.d.ts +106 -0
  554. package/dist/storefront/src/functions/models/customer-review-summary-list/init.d.ts +17 -0
  555. package/dist/storefront/src/functions/models/filter-category/index.d.ts +35 -0
  556. package/dist/storefront/src/functions/models/html-meta-data/init.d.ts +38 -0
  557. package/dist/storefront/src/functions/models/ikas-theme/date-picker.d.ts +379 -0
  558. package/dist/storefront/src/functions/models/image/index.d.ts +56 -0
  559. package/dist/storefront/src/functions/models/index.d.ts +84 -0
  560. package/dist/storefront/src/functions/models/merchant-settings/init.d.ts +18 -0
  561. package/dist/storefront/src/functions/models/order/address/index.d.ts +93 -0
  562. package/dist/storefront/src/functions/models/order/adjustment/index.d.ts +56 -0
  563. package/dist/storefront/src/functions/models/order/gift-package/index.d.ts +19 -0
  564. package/dist/storefront/src/functions/models/order/index.d.ts +428 -0
  565. package/dist/storefront/src/functions/models/order/line-item/index.d.ts +307 -0
  566. package/dist/storefront/src/functions/models/order/line-item/option/value/index.d.ts +37 -0
  567. package/dist/storefront/src/functions/models/order/line-item/variant/bundle-product/bundle-variant/index.d.ts +20 -0
  568. package/dist/storefront/src/functions/models/order/line-item/variant/index.d.ts +37 -0
  569. package/dist/storefront/src/functions/models/order/line-item/variant/value/index.d.ts +35 -0
  570. package/dist/storefront/src/functions/models/order/package/index.d.ts +20 -0
  571. package/dist/storefront/src/functions/models/order/transaction/index.d.ts +37 -0
  572. package/dist/storefront/src/functions/models/payment-gateway/index.d.ts +31 -0
  573. package/dist/storefront/src/functions/models/payment-gateway/init.d.ts +20 -0
  574. package/dist/storefront/src/functions/models/product/attribute/init.d.ts +17 -0
  575. package/dist/storefront/src/functions/models/product/attribute-value/index.d.ts +52 -0
  576. package/dist/storefront/src/functions/models/product/attribute-value/init.d.ts +16 -0
  577. package/dist/storefront/src/functions/models/product/campaign-offer/index.d.ts +18 -0
  578. package/dist/storefront/src/functions/models/product/campaign-offer/init.d.ts +18 -0
  579. package/dist/storefront/src/functions/models/product/campaign-offer/product/init.d.ts +17 -0
  580. package/dist/storefront/src/functions/models/product/filter/index.d.ts +344 -0
  581. package/dist/storefront/src/functions/models/product/filter/settings/init.d.ts +22 -0
  582. package/dist/storefront/src/functions/models/product/group/init.d.ts +35 -0
  583. package/dist/storefront/src/functions/models/product/image/init.d.ts +16 -0
  584. package/dist/storefront/src/functions/models/product/index.d.ts +1055 -0
  585. package/dist/storefront/src/functions/models/product/init.d.ts +57 -0
  586. package/dist/storefront/src/functions/models/product/option-set/index.d.ts +84 -0
  587. package/dist/storefront/src/functions/models/product/option-set/init.d.ts +19 -0
  588. package/dist/storefront/src/functions/models/product/option-set/option/index.d.ts +449 -0
  589. package/dist/storefront/src/functions/models/product/option-set/option/init.d.ts +17 -0
  590. package/dist/storefront/src/functions/models/product/stock-location/index.d.ts +17 -0
  591. package/dist/storefront/src/functions/models/product/variant/index.d.ts +868 -0
  592. package/dist/storefront/src/functions/models/product/variant/init.d.ts +16 -0
  593. package/dist/storefront/src/functions/models/product/variant/price/index.d.ts +70 -0
  594. package/dist/storefront/src/functions/models/product/variant-type/init.d.ts +17 -0
  595. package/dist/storefront/src/functions/models/product-list/index.d.ts +669 -0
  596. package/dist/storefront/src/functions/models/raffle/index.d.ts +19 -0
  597. package/dist/storefront/src/functions/models/raffle/init.d.ts +20 -0
  598. package/dist/storefront/src/functions/models/state/init.d.ts +20 -0
  599. package/dist/storefront/src/functions/models/validator/account-info/index.d.ts +87 -0
  600. package/dist/storefront/src/functions/models/validator/address/index.d.ts +333 -0
  601. package/dist/storefront/src/functions/models/validator/back-in-stock-notification/index.d.ts +54 -0
  602. package/dist/storefront/src/functions/models/validator/contact-form/index.d.ts +121 -0
  603. package/dist/storefront/src/functions/models/validator/coupon-code-form/index.d.ts +72 -0
  604. package/dist/storefront/src/functions/models/validator/customer-review/index.d.ts +88 -0
  605. package/dist/storefront/src/functions/models/validator/forgot-password/index.d.ts +53 -0
  606. package/dist/storefront/src/functions/models/validator/index.d.ts +54 -0
  607. package/dist/storefront/src/functions/models/validator/login/index.d.ts +70 -0
  608. package/dist/storefront/src/functions/models/validator/newsletter-subscription/index.d.ts +70 -0
  609. package/dist/storefront/src/functions/models/validator/order-tracking/index.d.ts +70 -0
  610. package/dist/storefront/src/functions/models/validator/recover-password/index.d.ts +70 -0
  611. package/dist/storefront/src/functions/models/validator/register/index.d.ts +297 -0
  612. package/dist/storefront/src/functions/models/validator/sms-login/index.d.ts +171 -0
  613. package/dist/storefront/src/functions/models/validator/verify-phone-number/index.d.ts +69 -0
  614. package/dist/storefront/src/functions/models/variant-type/index.d.ts +37 -0
  615. package/dist/storefront/src/functions/models/variant-type/init.d.ts +18 -0
  616. package/dist/storefront/src/functions/models/variant-type/variant-value/index.d.ts +91 -0
  617. package/dist/storefront/src/functions/others/index.d.ts +18 -0
  618. package/dist/storefront/src/functions/stores/base/index.d.ts +18 -0
  619. package/dist/storefront/src/functions/stores/cart/index.d.ts +547 -0
  620. package/dist/storefront/src/functions/stores/customer/index.d.ts +1919 -0
  621. package/dist/storefront/src/functions/stores/index.d.ts +3 -0
  622. package/dist/storefront/src/i18n/index.d.ts +9 -0
  623. package/dist/storefront/src/index.d.ts +28 -0
  624. package/dist/storefront/src/router/index.d.ts +161 -0
  625. package/dist/storefront/src/stores/base/index.d.ts +11 -0
  626. package/dist/storefront/src/stores/cart/index.d.ts +9 -0
  627. package/dist/storefront/src/stores/customer/index.d.ts +44 -0
  628. package/dist/storefront/src/theme/infinite-scroller/index.d.ts +3 -0
  629. package/dist/storefront/src/theme/overlay/index.d.ts +5 -0
  630. package/dist/storefront/src/theme/slider/index.d.ts +8 -0
  631. package/dist/storefront/src/theme/styles/index.d.ts +7 -0
  632. package/dist/storefront/src/utils/blueprint.d.ts +4 -0
  633. package/dist/storefront/src/utils/currency.d.ts +7 -0
  634. package/dist/storefront/src/utils/fetch.d.ts +7 -0
  635. package/dist/storefront/src/utils/helper.d.ts +21 -0
  636. package/dist/storefront/src/utils/object-wrapper.d.ts +9 -0
  637. package/dist/storefront-api/src/__api/mutations/activateCustomer.d.ts +6 -0
  638. package/dist/storefront-api/src/__api/mutations/addItemToCart.d.ts +6 -0
  639. package/dist/storefront-api/src/__api/mutations/createAdyenBalancePlatformPaymentSession.d.ts +6 -0
  640. package/dist/storefront-api/src/__api/mutations/createCustomerReview.d.ts +6 -0
  641. package/dist/storefront-api/src/__api/mutations/createKlarnaClientToken.d.ts +6 -0
  642. package/dist/storefront-api/src/__api/mutations/createOrderRefundRequest.d.ts +6 -0
  643. package/dist/storefront-api/src/__api/mutations/createPayWithIkasSessionUrl.d.ts +6 -0
  644. package/dist/storefront-api/src/__api/mutations/createPaypalOrder.d.ts +7 -0
  645. package/dist/storefront-api/src/__api/mutations/createSaleTransactionWithCart.d.ts +6 -0
  646. package/dist/storefront-api/src/__api/mutations/createStripePaymentIntent.d.ts +6 -0
  647. package/dist/storefront-api/src/__api/mutations/customerDeactivate.d.ts +5 -0
  648. package/dist/storefront-api/src/__api/mutations/customerForgotPassword.d.ts +7 -0
  649. package/dist/storefront-api/src/__api/mutations/customerLogin.d.ts +9 -0
  650. package/dist/storefront-api/src/__api/mutations/customerRecoverPassword.d.ts +8 -0
  651. package/dist/storefront-api/src/__api/mutations/customerRefreshToken.d.ts +6 -0
  652. package/dist/storefront-api/src/__api/mutations/getOrderLineFile.d.ts +6 -0
  653. package/dist/storefront-api/src/__api/mutations/getPaypalClientId.d.ts +6 -0
  654. package/dist/storefront-api/src/__api/mutations/registerCustomer.d.ts +20 -0
  655. package/dist/storefront-api/src/__api/mutations/removeLoyaltyPointsFromCart.d.ts +7 -0
  656. package/dist/storefront-api/src/__api/mutations/resendCustomerActivationMail.d.ts +6 -0
  657. package/dist/storefront-api/src/__api/mutations/resendCustomerPhoneVerificationCode.d.ts +6 -0
  658. package/dist/storefront-api/src/__api/mutations/retrieveInstallmentInfo.d.ts +6 -0
  659. package/dist/storefront-api/src/__api/mutations/saveCart.d.ts +6 -0
  660. package/dist/storefront-api/src/__api/mutations/saveCartCouponCode.d.ts +7 -0
  661. package/dist/storefront-api/src/__api/mutations/saveCustomerFormData.d.ts +6 -0
  662. package/dist/storefront-api/src/__api/mutations/saveFavoriteProduct.d.ts +8 -0
  663. package/dist/storefront-api/src/__api/mutations/saveLastViewedProducts.d.ts +6 -0
  664. package/dist/storefront-api/src/__api/mutations/saveMyCustomer.d.ts +6 -0
  665. package/dist/storefront-api/src/__api/mutations/saveProductBackInStockRemind.d.ts +6 -0
  666. package/dist/storefront-api/src/__api/mutations/sendContactFormToMerchant.d.ts +12 -0
  667. package/dist/storefront-api/src/__api/mutations/subscribeToMarketingNotifications.d.ts +6 -0
  668. package/dist/storefront-api/src/__api/mutations/updateCartCampaignOffer.d.ts +6 -0
  669. package/dist/storefront-api/src/__api/mutations/useLoyaltyPoints.d.ts +6 -0
  670. package/dist/storefront-api/src/__api/mutations/validateCustomerPhoneVerificationCode.d.ts +7 -0
  671. package/dist/storefront-api/src/__api/mutations/validateOTPCode.d.ts +8 -0
  672. package/dist/storefront-api/src/__api/queries/checkCartStocks.d.ts +7 -0
  673. package/dist/storefront-api/src/__api/queries/checkCustomerEmail.d.ts +8 -0
  674. package/dist/storefront-api/src/__api/queries/checkStocks.d.ts +7 -0
  675. package/dist/storefront-api/src/__api/queries/customerSocialLogin.d.ts +6 -0
  676. package/dist/storefront-api/src/__api/queries/exportCustomerPersonalData.d.ts +2 -0
  677. package/dist/storefront-api/src/__api/queries/getAvailableShippingCountries.d.ts +5 -0
  678. package/dist/storefront-api/src/__api/queries/getAvailableShippingZones.d.ts +6 -0
  679. package/dist/storefront-api/src/__api/queries/getAvailableStockLocations.d.ts +8 -0
  680. package/dist/storefront-api/src/__api/queries/getCartById.d.ts +9 -0
  681. package/dist/storefront-api/src/__api/queries/getCustomerOrders.d.ts +6 -0
  682. package/dist/storefront-api/src/__api/queries/getDigitalProductFileDownloadUrl.d.ts +6 -0
  683. package/dist/storefront-api/src/__api/queries/getLastViewedProducts.d.ts +6 -0
  684. package/dist/storefront-api/src/__api/queries/getLoyaltyCustomerInfo.d.ts +6 -0
  685. package/dist/storefront-api/src/__api/queries/getMyCountry.d.ts +2 -0
  686. package/dist/storefront-api/src/__api/queries/getMyCustomer.d.ts +3 -0
  687. package/dist/storefront-api/src/__api/queries/getOrderByEmail.d.ts +7 -0
  688. package/dist/storefront-api/src/__api/queries/getProductCampaigns.d.ts +6 -0
  689. package/dist/storefront-api/src/__api/queries/getProductFilterData.d.ts +7 -0
  690. package/dist/storefront-api/src/__api/queries/getProductOptionFileUrl.d.ts +8 -0
  691. package/dist/storefront-api/src/__api/queries/getRelatedProducts.d.ts +16 -0
  692. package/dist/storefront-api/src/__api/queries/getStorefrontWidgetSettings.d.ts +3 -0
  693. package/dist/storefront-api/src/__api/queries/getSuggestedProducts.d.ts +16 -0
  694. package/dist/storefront-api/src/__api/queries/getVariantStockLocations.d.ts +7 -0
  695. package/dist/storefront-api/src/__api/queries/isFavoriteProduct.d.ts +5 -0
  696. package/dist/storefront-api/src/__api/queries/listBlog.d.ts +14 -0
  697. package/dist/storefront-api/src/__api/queries/listBlogCategory.d.ts +11 -0
  698. package/dist/storefront-api/src/__api/queries/listBlogMetadata.d.ts +12 -0
  699. package/dist/storefront-api/src/__api/queries/listCampaignOffer.d.ts +6 -0
  700. package/dist/storefront-api/src/__api/queries/listCategory.d.ts +12 -0
  701. package/dist/storefront-api/src/__api/queries/listCheckoutSettings.d.ts +8 -0
  702. package/dist/storefront-api/src/__api/queries/listCity.d.ts +11 -0
  703. package/dist/storefront-api/src/__api/queries/listCountry.d.ts +12 -0
  704. package/dist/storefront-api/src/__api/queries/listCustomerAttribute.d.ts +3 -0
  705. package/dist/storefront-api/src/__api/queries/listCustomerReviewSummary.d.ts +8 -0
  706. package/dist/storefront-api/src/__api/queries/listCustomerReviews.d.ts +15 -0
  707. package/dist/storefront-api/src/__api/queries/listCustomerSettings.d.ts +7 -0
  708. package/dist/storefront-api/src/__api/queries/listDistrict.d.ts +12 -0
  709. package/dist/storefront-api/src/__api/queries/listEarningMethods.d.ts +3 -0
  710. package/dist/storefront-api/src/__api/queries/listFavoriteProducts.d.ts +3 -0
  711. package/dist/storefront-api/src/__api/queries/listLoyaltyProgramPointHistory.d.ts +6 -0
  712. package/dist/storefront-api/src/__api/queries/listLoyaltyProgramTiers.d.ts +3 -0
  713. package/dist/storefront-api/src/__api/queries/listOrderRefundSettings.d.ts +9 -0
  714. package/dist/storefront-api/src/__api/queries/listOrderTransactions.d.ts +8 -0
  715. package/dist/storefront-api/src/__api/queries/listPaymentGateway.d.ts +11 -0
  716. package/dist/storefront-api/src/__api/queries/listProductAttribute.d.ts +9 -0
  717. package/dist/storefront-api/src/__api/queries/listProductBackInStockRemind.d.ts +11 -0
  718. package/dist/storefront-api/src/__api/queries/listProductBrand.d.ts +11 -0
  719. package/dist/storefront-api/src/__api/queries/listProductFile.d.ts +6 -0
  720. package/dist/storefront-api/src/__api/queries/listProductOptionSet.d.ts +8 -0
  721. package/dist/storefront-api/src/__api/queries/listSpendingMethodsByCartId.d.ts +6 -0
  722. package/dist/storefront-api/src/__api/queries/listState.d.ts +11 -0
  723. package/dist/storefront-api/src/__api/queries/listStockLocation.d.ts +7 -0
  724. package/dist/storefront-api/src/__api/queries/listStorefrontPopup.d.ts +6 -0
  725. package/dist/storefront-api/src/__api/queries/searchProducts.d.ts +6 -0
  726. package/dist/storefront-api/src/__api/types/index.d.ts +3532 -0
  727. package/dist/storefront-api/src/index.d.ts +7 -0
  728. package/dist/storefront-api-client/src/config/index.d.ts +32 -0
  729. package/dist/storefront-api-client/src/index.d.ts +4 -0
  730. package/dist/storefront-api-client/src/utils/api.d.ts +40 -0
  731. package/dist/storefront-api-client/src/utils/fetch-query.d.ts +9 -0
  732. package/dist/storefront-config/src/index.d.ts +130 -0
  733. package/dist/storefront-models/src/index.d.ts +220 -0
  734. package/dist/storefront-models/src/models/_theme/styles.d.ts +34 -0
  735. package/dist/storefront-models/src/models/attribute-detail/index.d.ts +6 -0
  736. package/dist/storefront-models/src/models/attribute-list/index.d.ts +6 -0
  737. package/dist/storefront-models/src/models/base/index.d.ts +6 -0
  738. package/dist/storefront-models/src/models/blog/category/index.d.ts +12 -0
  739. package/dist/storefront-models/src/models/blog/content/index.d.ts +7 -0
  740. package/dist/storefront-models/src/models/blog/index.d.ts +27 -0
  741. package/dist/storefront-models/src/models/blog/meta-data/index.d.ts +14 -0
  742. package/dist/storefront-models/src/models/blog/tag/index.d.ts +7 -0
  743. package/dist/storefront-models/src/models/blog/writer/index.d.ts +4 -0
  744. package/dist/storefront-models/src/models/blog-category-list/index.d.ts +14 -0
  745. package/dist/storefront-models/src/models/blog-list/index.d.ts +15 -0
  746. package/dist/storefront-models/src/models/blueprint/prop-value/attribute-list.d.ts +6 -0
  747. package/dist/storefront-models/src/models/blueprint/prop-value/attribute.d.ts +6 -0
  748. package/dist/storefront-models/src/models/blueprint/prop-value/blog-category-list.d.ts +6 -0
  749. package/dist/storefront-models/src/models/blueprint/prop-value/blog-category.d.ts +4 -0
  750. package/dist/storefront-models/src/models/blueprint/prop-value/blog-list.d.ts +8 -0
  751. package/dist/storefront-models/src/models/blueprint/prop-value/blog.d.ts +4 -0
  752. package/dist/storefront-models/src/models/blueprint/prop-value/boolean.d.ts +3 -0
  753. package/dist/storefront-models/src/models/blueprint/prop-value/brand-list.d.ts +8 -0
  754. package/dist/storefront-models/src/models/blueprint/prop-value/brand.d.ts +4 -0
  755. package/dist/storefront-models/src/models/blueprint/prop-value/category-list.d.ts +7 -0
  756. package/dist/storefront-models/src/models/blueprint/prop-value/category.d.ts +4 -0
  757. package/dist/storefront-models/src/models/blueprint/prop-value/color.d.ts +3 -0
  758. package/dist/storefront-models/src/models/blueprint/prop-value/component-list.d.ts +4 -0
  759. package/dist/storefront-models/src/models/blueprint/prop-value/component.d.ts +8 -0
  760. package/dist/storefront-models/src/models/blueprint/prop-value/date.d.ts +3 -0
  761. package/dist/storefront-models/src/models/blueprint/prop-value/enum.d.ts +3 -0
  762. package/dist/storefront-models/src/models/blueprint/prop-value/image-list.d.ts +4 -0
  763. package/dist/storefront-models/src/models/blueprint/prop-value/image.d.ts +5 -0
  764. package/dist/storefront-models/src/models/blueprint/prop-value/index.d.ts +29 -0
  765. package/dist/storefront-models/src/models/blueprint/prop-value/link-list.d.ts +4 -0
  766. package/dist/storefront-models/src/models/blueprint/prop-value/link.d.ts +15 -0
  767. package/dist/storefront-models/src/models/blueprint/prop-value/number-range.d.ts +4 -0
  768. package/dist/storefront-models/src/models/blueprint/prop-value/number.d.ts +3 -0
  769. package/dist/storefront-models/src/models/blueprint/prop-value/product-list.d.ts +16 -0
  770. package/dist/storefront-models/src/models/blueprint/prop-value/product.d.ts +5 -0
  771. package/dist/storefront-models/src/models/blueprint/prop-value/raffle-list.d.ts +5 -0
  772. package/dist/storefront-models/src/models/blueprint/prop-value/raffle.d.ts +4 -0
  773. package/dist/storefront-models/src/models/blueprint/prop-value/rich-text.d.ts +3 -0
  774. package/dist/storefront-models/src/models/blueprint/prop-value/text.d.ts +3 -0
  775. package/dist/storefront-models/src/models/blueprint/prop-value/video.d.ts +9 -0
  776. package/dist/storefront-models/src/models/brand/index.d.ts +17 -0
  777. package/dist/storefront-models/src/models/brand/translation/index.d.ts +5 -0
  778. package/dist/storefront-models/src/models/brand-list/index.d.ts +16 -0
  779. package/dist/storefront-models/src/models/campaign-offer/index.d.ts +21 -0
  780. package/dist/storefront-models/src/models/campaign-offer/product/index.d.ts +23 -0
  781. package/dist/storefront-models/src/models/cart/available-shipping-method/estimated-delivery-time/index.d.ts +5 -0
  782. package/dist/storefront-models/src/models/cart/available-shipping-method/index.d.ts +10 -0
  783. package/dist/storefront-models/src/models/cart/campaign-offer/index.d.ts +17 -0
  784. package/dist/storefront-models/src/models/cart/index.d.ts +13 -0
  785. package/dist/storefront-models/src/models/category/conditions/index.d.ts +9 -0
  786. package/dist/storefront-models/src/models/category/index.d.ts +24 -0
  787. package/dist/storefront-models/src/models/category/path-item/index.d.ts +13 -0
  788. package/dist/storefront-models/src/models/category/translations/index.d.ts +5 -0
  789. package/dist/storefront-models/src/models/category-list/index.d.ts +16 -0
  790. package/dist/storefront-models/src/models/checkout/index.d.ts +10 -0
  791. package/dist/storefront-models/src/models/checkout-settings/index.d.ts +24 -0
  792. package/dist/storefront-models/src/models/checkout-settings/option/index.d.ts +4 -0
  793. package/dist/storefront-models/src/models/checkout-settings/price/index.d.ts +6 -0
  794. package/dist/storefront-models/src/models/city/index.d.ts +13 -0
  795. package/dist/storefront-models/src/models/contact-form/index.d.ts +8 -0
  796. package/dist/storefront-models/src/models/country/index.d.ts +19 -0
  797. package/dist/storefront-models/src/models/customer/address/city/index.d.ts +5 -0
  798. package/dist/storefront-models/src/models/customer/address/country/index.d.ts +7 -0
  799. package/dist/storefront-models/src/models/customer/address/district/index.d.ts +5 -0
  800. package/dist/storefront-models/src/models/customer/address/index.d.ts +30 -0
  801. package/dist/storefront-models/src/models/customer/address/region/index.d.ts +7 -0
  802. package/dist/storefront-models/src/models/customer/address/state/index.d.ts +5 -0
  803. package/dist/storefront-models/src/models/customer/attribute/index.d.ts +17 -0
  804. package/dist/storefront-models/src/models/customer/attribute/option/index.d.ts +7 -0
  805. package/dist/storefront-models/src/models/customer/attribute/sales-channel/index.d.ts +8 -0
  806. package/dist/storefront-models/src/models/customer/attribute/translation/index.d.ts +7 -0
  807. package/dist/storefront-models/src/models/customer/attribute/translation/option/index.d.ts +4 -0
  808. package/dist/storefront-models/src/models/customer/attribute/value/index.d.ts +9 -0
  809. package/dist/storefront-models/src/models/customer/index.d.ts +45 -0
  810. package/dist/storefront-models/src/models/customer/price-list-rule/filter/index.d.ts +5 -0
  811. package/dist/storefront-models/src/models/customer/price-list-rule/index.d.ts +8 -0
  812. package/dist/storefront-models/src/models/customer/review/index.d.ts +26 -0
  813. package/dist/storefront-models/src/models/customer/review/settings/index.d.ts +4 -0
  814. package/dist/storefront-models/src/models/customer/review/summary/index.d.ts +11 -0
  815. package/dist/storefront-models/src/models/customer/review/summary/star/index.d.ts +4 -0
  816. package/dist/storefront-models/src/models/customer-form-data-input/customer-register-subscription-input/index.d.ts +5 -0
  817. package/dist/storefront-models/src/models/customer-form-data-input/index.d.ts +13 -0
  818. package/dist/storefront-models/src/models/customer-review-form/index.d.ts +6 -0
  819. package/dist/storefront-models/src/models/customer-review-list/index.d.ts +13 -0
  820. package/dist/storefront-models/src/models/customer-review-summary-list/index.d.ts +11 -0
  821. package/dist/storefront-models/src/models/customer-settings/index.d.ts +10 -0
  822. package/dist/storefront-models/src/models/district/index.d.ts +13 -0
  823. package/dist/storefront-models/src/models/favorite-product/index.d.ts +10 -0
  824. package/dist/storefront-models/src/models/filter-category/index.d.ts +12 -0
  825. package/dist/storefront-models/src/models/html-meta-data/index.d.ts +23 -0
  826. package/dist/storefront-models/src/models/html-meta-data/translations/index.d.ts +6 -0
  827. package/dist/storefront-models/src/models/ikas-theme/date-picker/index.d.ts +7 -0
  828. package/dist/storefront-models/src/models/image/index.d.ts +6 -0
  829. package/dist/storefront-models/src/models/image-list/index.d.ts +4 -0
  830. package/dist/storefront-models/src/models/language-option/index.d.ts +8 -0
  831. package/dist/storefront-models/src/models/last-viewed-product/index.d.ts +4 -0
  832. package/dist/storefront-models/src/models/locale-option/index.d.ts +9 -0
  833. package/dist/storefront-models/src/models/location-translations/index.d.ts +5 -0
  834. package/dist/storefront-models/src/models/loyalty-program/customer-info/index.d.ts +17 -0
  835. package/dist/storefront-models/src/models/loyalty-program/earning-method/index.d.ts +33 -0
  836. package/dist/storefront-models/src/models/loyalty-program/index.d.ts +25 -0
  837. package/dist/storefront-models/src/models/loyalty-program/point-history/index.d.ts +16 -0
  838. package/dist/storefront-models/src/models/loyalty-program/spending-method/index.d.ts +17 -0
  839. package/dist/storefront-models/src/models/loyalty-program/tier/index.d.ts +15 -0
  840. package/dist/storefront-models/src/models/merchant-settings/address/city/index.d.ts +5 -0
  841. package/dist/storefront-models/src/models/merchant-settings/address/country/index.d.ts +7 -0
  842. package/dist/storefront-models/src/models/merchant-settings/address/district/index.d.ts +5 -0
  843. package/dist/storefront-models/src/models/merchant-settings/address/index.d.ts +21 -0
  844. package/dist/storefront-models/src/models/merchant-settings/address/state/index.d.ts +5 -0
  845. package/dist/storefront-models/src/models/merchant-settings/address/type/index.d.ts +1 -0
  846. package/dist/storefront-models/src/models/merchant-settings/index.d.ts +24 -0
  847. package/dist/storefront-models/src/models/navigation-link/index.d.ts +9 -0
  848. package/dist/storefront-models/src/models/navigation-link-list/index.d.ts +4 -0
  849. package/dist/storefront-models/src/models/number-range/index.d.ts +4 -0
  850. package/dist/storefront-models/src/models/order/address/city/index.d.ts +5 -0
  851. package/dist/storefront-models/src/models/order/address/country/index.d.ts +7 -0
  852. package/dist/storefront-models/src/models/order/address/district/index.d.ts +5 -0
  853. package/dist/storefront-models/src/models/order/address/index.d.ts +24 -0
  854. package/dist/storefront-models/src/models/order/address/region/index.d.ts +7 -0
  855. package/dist/storefront-models/src/models/order/address/state/index.d.ts +5 -0
  856. package/dist/storefront-models/src/models/order/adjustment/applied-order-line/index.d.ts +6 -0
  857. package/dist/storefront-models/src/models/order/adjustment/index.d.ts +17 -0
  858. package/dist/storefront-models/src/models/order/customer/index.d.ts +9 -0
  859. package/dist/storefront-models/src/models/order/gift-line/index.d.ts +6 -0
  860. package/dist/storefront-models/src/models/order/index.d.ts +51 -0
  861. package/dist/storefront-models/src/models/order/invoice/index.d.ts +10 -0
  862. package/dist/storefront-models/src/models/order/line-item/base-unit/index.d.ts +7 -0
  863. package/dist/storefront-models/src/models/order/line-item/base-unit/unit-type/index.d.ts +4 -0
  864. package/dist/storefront-models/src/models/order/line-item/discount/index.d.ts +9 -0
  865. package/dist/storefront-models/src/models/order/line-item/index.d.ts +28 -0
  866. package/dist/storefront-models/src/models/order/line-item/option/index.d.ts +9 -0
  867. package/dist/storefront-models/src/models/order/line-item/option/value/index.d.ts +5 -0
  868. package/dist/storefront-models/src/models/order/line-item/variant/brand/index.d.ts +4 -0
  869. package/dist/storefront-models/src/models/order/line-item/variant/bundle-product/bundle-variant/index.d.ts +29 -0
  870. package/dist/storefront-models/src/models/order/line-item/variant/bundle-product/index.d.ts +13 -0
  871. package/dist/storefront-models/src/models/order/line-item/variant/category/index.d.ts +9 -0
  872. package/dist/storefront-models/src/models/order/line-item/variant/index.d.ts +31 -0
  873. package/dist/storefront-models/src/models/order/line-item/variant/price/index.d.ts +8 -0
  874. package/dist/storefront-models/src/models/order/line-item/variant/tag/index.d.ts +4 -0
  875. package/dist/storefront-models/src/models/order/line-item/variant/unit/index.d.ts +5 -0
  876. package/dist/storefront-models/src/models/order/line-item/variant/value/index.d.ts +7 -0
  877. package/dist/storefront-models/src/models/order/package/index.d.ts +31 -0
  878. package/dist/storefront-models/src/models/order/package/tracking-info/index.d.ts +7 -0
  879. package/dist/storefront-models/src/models/order/payment-method/index.d.ts +8 -0
  880. package/dist/storefront-models/src/models/order/refund/index.d.ts +5 -0
  881. package/dist/storefront-models/src/models/order/refund/line-item/index.d.ts +4 -0
  882. package/dist/storefront-models/src/models/order/refund/settings/index.d.ts +5 -0
  883. package/dist/storefront-models/src/models/order/shipping-line/index.d.ts +11 -0
  884. package/dist/storefront-models/src/models/order/tax-line/index.d.ts +4 -0
  885. package/dist/storefront-models/src/models/order/transaction/error/index.d.ts +5 -0
  886. package/dist/storefront-models/src/models/order/transaction/index.d.ts +26 -0
  887. package/dist/storefront-models/src/models/order/transaction/payment-method-detail/index.d.ts +14 -0
  888. package/dist/storefront-models/src/models/order/transaction/payment-method-detail/installment-price/index.d.ts +7 -0
  889. package/dist/storefront-models/src/models/payment-gateway/additional-price/index.d.ts +8 -0
  890. package/dist/storefront-models/src/models/payment-gateway/index.d.ts +30 -0
  891. package/dist/storefront-models/src/models/payment-gateway/settings/index.d.ts +7 -0
  892. package/dist/storefront-models/src/models/payment-gateway/translation/index.d.ts +5 -0
  893. package/dist/storefront-models/src/models/product/attribute/index.d.ts +13 -0
  894. package/dist/storefront-models/src/models/product/attribute/option/index.d.ts +4 -0
  895. package/dist/storefront-models/src/models/product/attribute/table-cell/index.d.ts +4 -0
  896. package/dist/storefront-models/src/models/product/attribute/table-template/index.d.ts +5 -0
  897. package/dist/storefront-models/src/models/product/attribute/translation/index.d.ts +10 -0
  898. package/dist/storefront-models/src/models/product/attribute-value/index.d.ts +21 -0
  899. package/dist/storefront-models/src/models/product/back-in-stock-settings/index.d.ts +3 -0
  900. package/dist/storefront-models/src/models/product/base-unit/index.d.ts +10 -0
  901. package/dist/storefront-models/src/models/product/campaign/data/index.d.ts +27 -0
  902. package/dist/storefront-models/src/models/product/campaign/filter/index.d.ts +5 -0
  903. package/dist/storefront-models/src/models/product/campaign/index.d.ts +5 -0
  904. package/dist/storefront-models/src/models/product/campaign/product-buyx-then-gety/index.d.ts +16 -0
  905. package/dist/storefront-models/src/models/product/campaign/product-campaign-date-range-field/index.d.ts +4 -0
  906. package/dist/storefront-models/src/models/product/campaign/product-fixed-discount/index.d.ts +11 -0
  907. package/dist/storefront-models/src/models/product/campaign-offer/index.d.ts +11 -0
  908. package/dist/storefront-models/src/models/product/filter/index.d.ts +58 -0
  909. package/dist/storefront-models/src/models/product/group/index.d.ts +11 -0
  910. package/dist/storefront-models/src/models/product/group/order/index.d.ts +4 -0
  911. package/dist/storefront-models/src/models/product/group/translation/index.d.ts +9 -0
  912. package/dist/storefront-models/src/models/product/group/value/index.d.ts +5 -0
  913. package/dist/storefront-models/src/models/product/image/index.d.ts +9 -0
  914. package/dist/storefront-models/src/models/product/index.d.ts +88 -0
  915. package/dist/storefront-models/src/models/product/option-set/index.d.ts +21 -0
  916. package/dist/storefront-models/src/models/product/option-set/option/index.d.ts +67 -0
  917. package/dist/storefront-models/src/models/product/sales-channel/index.d.ts +9 -0
  918. package/dist/storefront-models/src/models/product/star/index.d.ts +4 -0
  919. package/dist/storefront-models/src/models/product/stock-location/index.d.ts +26 -0
  920. package/dist/storefront-models/src/models/product/tag/index.d.ts +4 -0
  921. package/dist/storefront-models/src/models/product/variant/bundle-settings/bundle-product/index.d.ts +14 -0
  922. package/dist/storefront-models/src/models/product/variant/bundle-settings/index.d.ts +6 -0
  923. package/dist/storefront-models/src/models/product/variant/index.d.ts +31 -0
  924. package/dist/storefront-models/src/models/product/variant/price/index.d.ts +11 -0
  925. package/dist/storefront-models/src/models/product/variant/price/product-campaign-price/index.d.ts +4 -0
  926. package/dist/storefront-models/src/models/product/variant/unit/index.d.ts +5 -0
  927. package/dist/storefront-models/src/models/product/variant-type/index.d.ts +6 -0
  928. package/dist/storefront-models/src/models/product-file/index.d.ts +6 -0
  929. package/dist/storefront-models/src/models/product-list/index.d.ts +53 -0
  930. package/dist/storefront-models/src/models/product-list/suggestion/index.d.ts +6 -0
  931. package/dist/storefront-models/src/models/product-option-file/index.d.ts +5 -0
  932. package/dist/storefront-models/src/models/raffle/index.d.ts +58 -0
  933. package/dist/storefront-models/src/models/raffle-list/index.d.ts +16 -0
  934. package/dist/storefront-models/src/models/sales-channel/index.d.ts +15 -0
  935. package/dist/storefront-models/src/models/shipping-zone/index.d.ts +7 -0
  936. package/dist/storefront-models/src/models/shipping-zone/state/city/district/index.d.ts +5 -0
  937. package/dist/storefront-models/src/models/shipping-zone/state/city/district/region/index.d.ts +7 -0
  938. package/dist/storefront-models/src/models/shipping-zone/state/city/index.d.ts +6 -0
  939. package/dist/storefront-models/src/models/shipping-zone/state/index.d.ts +7 -0
  940. package/dist/storefront-models/src/models/state/index.d.ts +12 -0
  941. package/dist/storefront-models/src/models/stock-location/address/city/index.d.ts +5 -0
  942. package/dist/storefront-models/src/models/stock-location/address/country/index.d.ts +7 -0
  943. package/dist/storefront-models/src/models/stock-location/address/district/index.d.ts +5 -0
  944. package/dist/storefront-models/src/models/stock-location/address/index.d.ts +13 -0
  945. package/dist/storefront-models/src/models/stock-location/address/state/index.d.ts +5 -0
  946. package/dist/storefront-models/src/models/stock-location/available/index.d.ts +8 -0
  947. package/dist/storefront-models/src/models/stock-location/index.d.ts +13 -0
  948. package/dist/storefront-models/src/models/storefront/b2b-settings/index.d.ts +7 -0
  949. package/dist/storefront-models/src/models/storefront/domain/index.d.ts +7 -0
  950. package/dist/storefront-models/src/models/storefront/index-page-seo-setting/index.d.ts +15 -0
  951. package/dist/storefront-models/src/models/storefront/index.d.ts +33 -0
  952. package/dist/storefront-models/src/models/storefront/localization/index.d.ts +6 -0
  953. package/dist/storefront-models/src/models/storefront/meta-templates/index.d.ts +7 -0
  954. package/dist/storefront-models/src/models/storefront/routing/dynamic-currency/index.d.ts +4 -0
  955. package/dist/storefront-models/src/models/storefront/routing/index.d.ts +12 -0
  956. package/dist/storefront-models/src/models/storefront/settings/index.d.ts +20 -0
  957. package/dist/storefront-models/src/models/storefront/theme/index.d.ts +9 -0
  958. package/dist/storefront-models/src/models/storefront/theme-localization/index.d.ts +11 -0
  959. package/dist/storefront-models/src/models/storefront-popup/index.d.ts +27 -0
  960. package/dist/storefront-models/src/models/storefront-popup/storefront-popup-analytics/index.d.ts +5 -0
  961. package/dist/storefront-models/src/models/storefront-popup/storefront-popup-date-filter/index.d.ts +4 -0
  962. package/dist/storefront-models/src/models/storefront-popup/storefront-popup-display-filter/index.d.ts +6 -0
  963. package/dist/storefront-models/src/models/storefront-popup/storefront-popup-display-settings/index.d.ts +7 -0
  964. package/dist/storefront-models/src/models/storefront-popup/storefront-popup-page-filter/index.d.ts +6 -0
  965. package/dist/storefront-models/src/models/storefront-popup/storefront-popup-page-filter/storefront-popup-page-filter-data/index.d.ts +5 -0
  966. package/dist/storefront-models/src/models/storefront-popup/storefront-popup-routing/index.d.ts +4 -0
  967. package/dist/storefront-models/src/models/storefront-widget-settings/index.d.ts +10 -0
  968. package/dist/storefront-models/src/models/theme/index.d.ts +2 -0
  969. package/dist/storefront-models/src/models/validator/account-info/index.d.ts +7 -0
  970. package/dist/storefront-models/src/models/validator/address/index.d.ts +42 -0
  971. package/dist/storefront-models/src/models/validator/back-in-stock-notification/index.d.ts +6 -0
  972. package/dist/storefront-models/src/models/validator/contact-form/index.d.ts +8 -0
  973. package/dist/storefront-models/src/models/validator/coupon-code-form/index.d.ts +4 -0
  974. package/dist/storefront-models/src/models/validator/customer-review/index.d.ts +7 -0
  975. package/dist/storefront-models/src/models/validator/forgot-password/index.d.ts +4 -0
  976. package/dist/storefront-models/src/models/validator/index.d.ts +42 -0
  977. package/dist/storefront-models/src/models/validator/login/index.d.ts +5 -0
  978. package/dist/storefront-models/src/models/validator/newsletter-subscription/index.d.ts +5 -0
  979. package/dist/storefront-models/src/models/validator/order-tracking/index.d.ts +5 -0
  980. package/dist/storefront-models/src/models/validator/recover-password/index.d.ts +5 -0
  981. package/dist/storefront-models/src/models/validator/register/index.d.ts +12 -0
  982. package/dist/storefront-models/src/models/validator/sms-login/index.d.ts +15 -0
  983. package/dist/storefront-models/src/models/validator/verify-phone-number/index.d.ts +7 -0
  984. package/dist/storefront-models/src/models/variant-type/index.d.ts +18 -0
  985. package/dist/storefront-models/src/models/variant-type/variant-value/index.d.ts +7 -0
  986. package/dist/storefront-models/src/models/video/index.d.ts +9 -0
  987. package/dist/stores/base/index.js +1 -0
  988. package/dist/stores/cart/index.js +1 -0
  989. package/dist/stores/customer/index.js +1 -0
  990. package/dist/theme/styles/index.js +1 -0
  991. package/dist/utils/blueprint.js +1 -0
  992. package/dist/utils/currency.js +1 -0
  993. package/dist/utils/fetch.js +1 -0
  994. package/dist/utils/helper.js +1 -0
  995. package/dist/utils/object-wrapper.js +1 -0
  996. package/package.json +60 -0
@@ -0,0 +1,1919 @@
1
+ import type { SaveCustomerFormDataInput } from "../../../../../storefront-api/src";
2
+ import { APIResponse } from "../../../../../storefront-api-client/src";
3
+ import { AccountInfoForm, AddressForm, ContactForm, CouponCodeForm, ForgotPasswordForm, IkasContactForm, IkasCustomer, IkasCustomerAddress, IkasCustomerAttributeValue, IkasCustomerReviewForm, IkasFavoriteProduct, IkasOrder, IkasOrderTransaction, IkasProduct, IkasProductFile, LoginForm, NewsletterSubscriptionForm, OrderTrackingForm, RecoverPasswordForm, RegisterForm, SmsLoginForm, VerifyPhoneNumberForm } from "../../../../../storefront-models/src";
4
+ import { IkasCustomerStore } from "../../../stores/customer";
5
+ import { IkasLoginError, IkasRegisterError } from "../../api/customer";
6
+ export type SocialLoginProvider = "facebook" | "google" | "twitch";
7
+ /**
8
+ * Initialize the customer store by loading tokens, refreshing authentication, and fetching customer data.
9
+ *
10
+ * @ai-category Customer, Authentication
11
+ * @ai-related waitForCustomerStoreInit, hasCustomer, logout
12
+ *
13
+ * @param customerStore - The customer store instance
14
+ * @returns Promise that resolves when initialization is complete
15
+ *
16
+ * @example
17
+ * ```typescript
18
+ * import { customerStore, initCustomerStore } from "@ikas/bp-storefront";
19
+ *
20
+ * async function bootstrap() {
21
+ * await initCustomerStore(customerStore);
22
+ * console.log("Customer store initialized");
23
+ * }
24
+ * ```
25
+ */
26
+ export declare function initCustomerStore(customerStore: IkasCustomerStore): Promise<void>;
27
+ /**
28
+ * Check whether a customer is eligible to create an email subscription.
29
+ *
30
+ * @ai-category Customer, Registration
31
+ * @ai-related createEmailSubscription, getNewsletterSubscriptionForm
32
+ *
33
+ * @param customerStore - The customer store instance
34
+ * @returns True if the customer can create an email subscription, false otherwise
35
+ *
36
+ * @example
37
+ * ```typescript
38
+ * import { customerStore, canCustomerCreateEmailSubscription } from "@ikas/bp-storefront";
39
+ *
40
+ * function NewsletterBanner() {
41
+ * const canSubscribe = canCustomerCreateEmailSubscription(customerStore);
42
+ * if (!canSubscribe) return null;
43
+ *
44
+ * return <div>Subscribe to our newsletter!</div>;
45
+ * }
46
+ * ```
47
+ */
48
+ export declare function canCustomerCreateEmailSubscription(customerStore: IkasCustomerStore): boolean;
49
+ /**
50
+ * Convert the current customer data to an analytics-compatible customer object, including consent status.
51
+ *
52
+ * @ai-category Customer
53
+ * @ai-related hasCustomer, getCustomerConsentGranted
54
+ *
55
+ * @param customerStore - The customer store instance
56
+ * @returns An analytics customer object with consent information
57
+ *
58
+ * @example
59
+ * ```typescript
60
+ * import { customerStore, customerToAnalyticsCustomer } from "@ikas/bp-storefront";
61
+ *
62
+ * function trackEvent() {
63
+ * const analyticsCustomer = customerToAnalyticsCustomer(customerStore);
64
+ * sendAnalyticsEvent("page_view", { customer: analyticsCustomer });
65
+ * }
66
+ * ```
67
+ */
68
+ export declare function customerToAnalyticsCustomer(customerStore: IkasCustomerStore): any;
69
+ /**
70
+ * Initiate social login (OAuth) with a provider.
71
+ * Redirects user to the provider's login page.
72
+ *
73
+ * @ai-category Customer
74
+ * @ai-related handleSocialLogin, customerLogin
75
+ *
76
+ * @param customerStore - The customer store instance
77
+ * @param provider - The social login provider ("facebook", "google", or "twitch")
78
+ *
79
+ * @example
80
+ * ```typescript
81
+ * import { customerStore, socialLogin } from "@ikas/bp-storefront";
82
+ *
83
+ * function SocialLoginButtons() {
84
+ * return (
85
+ * <div>
86
+ * <button onClick={() => socialLogin(customerStore, "google")}>
87
+ * Login with Google
88
+ * </button>
89
+ * <button onClick={() => socialLogin(customerStore, "facebook")}>
90
+ * Login with Facebook
91
+ * </button>
92
+ * </div>
93
+ * );
94
+ * }
95
+ * ```
96
+ */
97
+ export declare function socialLogin(customerStore: IkasCustomerStore, provider: SocialLoginProvider): Promise<void>;
98
+ /**
99
+ * Handle the social login callback after OAuth redirect.
100
+ * Call this on your login page to complete social authentication.
101
+ *
102
+ * @ai-category Customer
103
+ * @ai-related socialLogin, customerLogin
104
+ *
105
+ * @param customerStore - The customer store instance
106
+ * @returns Object with status ("success" or "fail") and optional message
107
+ *
108
+ * @example
109
+ * ```typescript
110
+ * import { customerStore, handleSocialLogin } from "@ikas/bp-storefront";
111
+ * import { useEffect, useState } from "react";
112
+ *
113
+ * function LoginPage() {
114
+ * const [error, setError] = useState<string | null>(null);
115
+ *
116
+ * useEffect(() => {
117
+ * async function checkSocialLogin() {
118
+ * const result = await handleSocialLogin(customerStore);
119
+ * if (result.status === "success") {
120
+ * // Redirect to account page
121
+ * Router.navigateToPage("ACCOUNT");
122
+ * } else if (result.message) {
123
+ * setError(result.message);
124
+ * }
125
+ * }
126
+ * checkSocialLogin();
127
+ * }, []);
128
+ *
129
+ * return error ? <p className="error">{error}</p> : null;
130
+ * }
131
+ * ```
132
+ */
133
+ export declare function handleSocialLogin(customerStore: IkasCustomerStore): Promise<HandleSocialLoginReturnType>;
134
+ /**
135
+ * Complete social login authentication using a token received from the OAuth provider callback.
136
+ *
137
+ * @ai-category Customer, Authentication, Login
138
+ * @ai-related socialLogin, handleSocialLogin, customerLogin
139
+ *
140
+ * @param customerStore - The customer store instance
141
+ * @param token - The social login token from the OAuth callback
142
+ * @returns True if login was successful, false otherwise
143
+ *
144
+ * @example
145
+ * ```typescript
146
+ * import { customerStore, socialLoginToken } from "@ikas/bp-storefront";
147
+ *
148
+ * async function completeSocialAuth(token: string) {
149
+ * const success = await socialLoginToken(customerStore, token);
150
+ * if (success) {
151
+ * Router.navigateToPage("ACCOUNT");
152
+ * } else {
153
+ * showToast("Social login failed");
154
+ * }
155
+ * }
156
+ * ```
157
+ */
158
+ export declare function socialLoginToken(customerStore: IkasCustomerStore, token: string): Promise<boolean>;
159
+ /**
160
+ * Delete a customer address from their address list.
161
+ *
162
+ * @ai-category Customer, Address
163
+ * @ai-related saveCustomer, getEmptyAddressForm
164
+ *
165
+ * @param customerStore - The customer store instance
166
+ * @param address - The address object to delete
167
+ * @returns True if the address was successfully deleted, false otherwise
168
+ *
169
+ * @example
170
+ * ```typescript
171
+ * import { customerStore, deleteCustomerAddress } from "@ikas/bp-storefront";
172
+ * import { IkasCustomerAddress } from "@ikas/bp-storefront-models";
173
+ *
174
+ * async function handleDeleteAddress(address: IkasCustomerAddress) {
175
+ * const success = await deleteCustomerAddress(customerStore, address);
176
+ * if (success) {
177
+ * showToast("Address deleted");
178
+ * } else {
179
+ * showToast("Failed to delete address");
180
+ * }
181
+ * }
182
+ * ```
183
+ */
184
+ export declare function deleteCustomerAddress(customerStore: IkasCustomerStore, address: IkasCustomerAddress): Promise<boolean>;
185
+ /**
186
+ * Submit a refund request for an order based on the refund quantities set on each line item.
187
+ *
188
+ * @ai-category Customer
189
+ * @ai-related getOrder, getOrders, getOrderRefundSettings
190
+ *
191
+ * @param customerStore - The customer store instance
192
+ * @param order - The order to request a refund for
193
+ * @param email - Optional email address for guest order refunds
194
+ * @returns True if the refund request was successfully submitted, false otherwise
195
+ *
196
+ * @example
197
+ * ```typescript
198
+ * import { customerStore, refundOrder, getOrder } from "@ikas/bp-storefront";
199
+ *
200
+ * async function handleRefundRequest(orderId: string) {
201
+ * const order = await getOrder(customerStore, orderId);
202
+ * if (!order) return;
203
+ *
204
+ * const success = await refundOrder(customerStore, order);
205
+ * if (success) {
206
+ * showToast("Refund request submitted");
207
+ * } else {
208
+ * showToast("Refund request failed");
209
+ * }
210
+ * }
211
+ * ```
212
+ */
213
+ export declare function refundOrder(customerStore: IkasCustomerStore, order: IkasOrder, email?: string | null): Promise<boolean>;
214
+ /**
215
+ * Login a customer with email/password or phone.
216
+ *
217
+ * @ai-category Customer
218
+ * @ai-related logout, socialLogin, getLoginForm
219
+ *
220
+ * @param customerStore - The customer store instance
221
+ * @param email - Customer email address
222
+ * @param password - Customer password
223
+ * @param phone - Optional phone number for SMS login
224
+ * @returns Object with isSuccess flag and errorCodes array
225
+ *
226
+ * @example
227
+ * ```typescript
228
+ * import { customerStore, customerLogin, getLoginForm } from "@ikas/bp-storefront";
229
+ *
230
+ * async function handleLogin() {
231
+ * const form = getLoginForm(customerStore);
232
+ *
233
+ * const result = await customerLogin(
234
+ * customerStore,
235
+ * form.email.value,
236
+ * form.password.value
237
+ * );
238
+ *
239
+ * if (result.isSuccess) {
240
+ * Router.navigateToPage("ACCOUNT");
241
+ * } else {
242
+ * // Handle errors
243
+ * if (result.errorCodes.includes("WRONG_PASSWORD")) {
244
+ * showToast("Invalid password");
245
+ * } else if (result.errorCodes.includes("CUSTOMER_NOT_FOUND")) {
246
+ * showToast("Email not found");
247
+ * }
248
+ * }
249
+ * }
250
+ * ```
251
+ */
252
+ export declare function customerLogin(customerStore: IkasCustomerStore, email?: string, password?: string, phone?: string): Promise<{
253
+ isSuccess: boolean;
254
+ errorCodes: IkasLoginError[];
255
+ otpSend: boolean | null;
256
+ flowId: string | null;
257
+ } | {
258
+ isSuccess: boolean;
259
+ errorCodes: IkasLoginError[];
260
+ otpSend?: undefined;
261
+ flowId?: undefined;
262
+ }>;
263
+ /**
264
+ * Logout the current customer.
265
+ * Clears customer data, tokens, and cart.
266
+ *
267
+ * @ai-category Customer
268
+ * @ai-related customerLogin, hasCustomer
269
+ *
270
+ * @param customerStore - The customer store instance
271
+ *
272
+ * @example
273
+ * ```typescript
274
+ * import { customerStore, logout } from "@ikas/bp-storefront";
275
+ *
276
+ * async function handleLogout() {
277
+ * await logout(customerStore);
278
+ * Router.navigateToPage("INDEX");
279
+ * showToast("You have been logged out");
280
+ * }
281
+ * ```
282
+ */
283
+ export declare function logout(customerStore: IkasCustomerStore): Promise<void>;
284
+ /**
285
+ * Register a new customer account with the provided details.
286
+ *
287
+ * @ai-category Customer, Registration
288
+ * @ai-related customerLogin, getRegisterForm, activateCustomer
289
+ *
290
+ * @param customerStore - The customer store instance
291
+ * @param firstName - Customer's first name
292
+ * @param lastName - Customer's last name
293
+ * @param email - Customer's email address
294
+ * @param password - Optional password for the account
295
+ * @param isMarketingAccepted - Whether the customer accepts marketing communications
296
+ * @param attributes - Optional custom customer attributes
297
+ * @param phone - Optional phone number
298
+ * @param flowId - Optional flow ID for multi-step registration
299
+ * @returns Object with isSuccess flag and errorCodes array
300
+ *
301
+ * @example
302
+ * ```typescript
303
+ * import { customerStore, register, getRegisterForm } from "@ikas/bp-storefront";
304
+ *
305
+ * async function handleRegister() {
306
+ * const form = getRegisterForm(customerStore);
307
+ * const result = await register(
308
+ * customerStore,
309
+ * form.firstName.value,
310
+ * form.lastName.value,
311
+ * form.email.value,
312
+ * form.password.value,
313
+ * form.isMarketingAccepted.value
314
+ * );
315
+ *
316
+ * if (result.isSuccess) {
317
+ * Router.navigateToPage("ACCOUNT");
318
+ * } else {
319
+ * console.error("Registration errors:", result.errorCodes);
320
+ * }
321
+ * }
322
+ * ```
323
+ */
324
+ export declare function register(customerStore: IkasCustomerStore, firstName: string, lastName: string, email: string, password?: string, isMarketingAccepted?: boolean, attributes?: IkasCustomerAttributeValue[], phone?: string | null, flowId?: string | null): Promise<{
325
+ isSuccess: boolean;
326
+ errorCodes: IkasRegisterError[];
327
+ }>;
328
+ /**
329
+ * Activate a customer account using the activation token from the URL query parameters.
330
+ *
331
+ * @ai-category Customer, Registration
332
+ * @ai-related register, resendCustomerActivationMail
333
+ *
334
+ * @param customerStore - The customer store instance
335
+ * @returns True if the customer was successfully activated, false otherwise
336
+ *
337
+ * @example
338
+ * ```typescript
339
+ * import { customerStore, activateCustomer } from "@ikas/bp-storefront";
340
+ *
341
+ * async function ActivationPage() {
342
+ * const isActivated = await activateCustomer(customerStore);
343
+ * if (isActivated) {
344
+ * showToast("Your account has been activated!");
345
+ * Router.navigateToPage("LOGIN");
346
+ * } else {
347
+ * showToast("Activation failed. Please try again.");
348
+ * }
349
+ * }
350
+ * ```
351
+ */
352
+ export declare function activateCustomer(customerStore: IkasCustomerStore): Promise<boolean>;
353
+ /**
354
+ * Resend the customer account activation email.
355
+ *
356
+ * @ai-category Customer, Registration
357
+ * @ai-related activateCustomer, register
358
+ *
359
+ * @param customerStore - The customer store instance
360
+ * @param email - The email address to resend the activation mail to
361
+ * @returns True if the activation email was successfully resent, false otherwise
362
+ *
363
+ * @example
364
+ * ```typescript
365
+ * import { customerStore, resendCustomerActivationMail } from "@ikas/bp-storefront";
366
+ *
367
+ * async function handleResendActivation(email: string) {
368
+ * const success = await resendCustomerActivationMail(customerStore, email);
369
+ * if (success) {
370
+ * showToast("Activation email sent. Check your inbox.");
371
+ * } else {
372
+ * showToast("Failed to send activation email.");
373
+ * }
374
+ * }
375
+ * ```
376
+ */
377
+ export declare function resendCustomerActivationMail(customerStore: IkasCustomerStore, email: string): Promise<boolean>;
378
+ /**
379
+ * Validate a phone verification code submitted by the customer.
380
+ *
381
+ * @ai-category Customer, PhoneVerification
382
+ * @ai-related resendCustomerPhoneVerificationCode, getVerifyPhoneNumberForm
383
+ *
384
+ * @param customerStore - The customer store instance
385
+ * @param verificationCode - The verification code entered by the customer
386
+ * @param otpInfo - Optional OTP info string for the verification flow
387
+ * @returns Verification result data if successful, false otherwise
388
+ *
389
+ * @example
390
+ * ```typescript
391
+ * import { customerStore, validateCustomerPhoneVerificationCode } from "@ikas/bp-storefront";
392
+ *
393
+ * async function handleVerifyPhone(code: string) {
394
+ * const result = await validateCustomerPhoneVerificationCode(customerStore, code);
395
+ * if (result) {
396
+ * showToast("Phone number verified!");
397
+ * } else {
398
+ * showToast("Invalid verification code.");
399
+ * }
400
+ * }
401
+ * ```
402
+ */
403
+ export declare function validateCustomerPhoneVerificationCode(customerStore: IkasCustomerStore, verificationCode: string, otpInfo?: string | null): Promise<boolean>;
404
+ /**
405
+ * Validate a one-time password (OTP) code during registration or login flows.
406
+ *
407
+ * @ai-category Customer, Authentication, PhoneVerification
408
+ * @ai-related validateCustomerPhoneVerificationCode, register, customerLogin
409
+ *
410
+ * @param customerStore - The customer store instance
411
+ * @param verificationCode - The OTP code entered by the customer
412
+ * @param otpInfo - Optional OTP info string for the verification flow
413
+ * @returns Object with isSuccess flag, optional otpSend/flowId, and errorCodes array
414
+ *
415
+ * @example
416
+ * ```typescript
417
+ * import { customerStore, validateOTPCode } from "@ikas/bp-storefront";
418
+ *
419
+ * async function handleOTPValidation(code: string, otpInfo: string) {
420
+ * const result = await validateOTPCode(customerStore, code, otpInfo);
421
+ * if (result.isSuccess && !result.otpSend) {
422
+ * Router.navigateToPage("ACCOUNT");
423
+ * } else if (result.isSuccess && result.otpSend) {
424
+ * showToast("Additional verification required");
425
+ * } else {
426
+ * console.error("OTP errors:", result.errorCodes);
427
+ * }
428
+ * }
429
+ * ```
430
+ */
431
+ export declare function validateOTPCode(customerStore: IkasCustomerStore, verificationCode: string, otpInfo?: string | null): Promise<{
432
+ isSuccess: boolean;
433
+ errorCodes: IkasRegisterError[];
434
+ otpSend?: undefined;
435
+ flowId?: undefined;
436
+ } | {
437
+ isSuccess: boolean;
438
+ otpSend: boolean;
439
+ flowId: string | null;
440
+ errorCodes: IkasRegisterError[];
441
+ }>;
442
+ /**
443
+ * Resend the phone verification code to the customer's phone number.
444
+ *
445
+ * @ai-category Customer, PhoneVerification
446
+ * @ai-related validateCustomerPhoneVerificationCode, getVerifyPhoneNumberForm
447
+ *
448
+ * @param customerStore - The customer store instance
449
+ * @returns Verification data if successfully resent, false otherwise
450
+ *
451
+ * @example
452
+ * ```typescript
453
+ * import { customerStore, resendCustomerPhoneVerificationCode } from "@ikas/bp-storefront";
454
+ *
455
+ * async function handleResendCode() {
456
+ * const result = await resendCustomerPhoneVerificationCode(customerStore);
457
+ * if (result) {
458
+ * showToast("Verification code resent");
459
+ * } else {
460
+ * showToast("Failed to resend code");
461
+ * }
462
+ * }
463
+ * ```
464
+ */
465
+ export declare function resendCustomerPhoneVerificationCode(customerStore: IkasCustomerStore): Promise<boolean>;
466
+ /**
467
+ * Submit a contact form to the merchant, triggering analytics and captcha verification.
468
+ *
469
+ * @ai-category Customer
470
+ * @ai-related getContactForm, clearContactForm
471
+ *
472
+ * @param customerStore - The customer store instance
473
+ * @param input - The contact form data to submit
474
+ * @returns True if the contact form was successfully sent, false otherwise
475
+ *
476
+ * @example
477
+ * ```typescript
478
+ * import { customerStore, saveContactForm, getContactForm } from "@ikas/bp-storefront";
479
+ *
480
+ * async function handleContactSubmit() {
481
+ * const form = getContactForm(customerStore);
482
+ * const success = await saveContactForm(customerStore, {
483
+ * name: form.name.value,
484
+ * email: form.email.value,
485
+ * message: form.message.value,
486
+ * });
487
+ * if (success) {
488
+ * showToast("Message sent!");
489
+ * }
490
+ * }
491
+ * ```
492
+ */
493
+ export declare function saveContactForm(customerStore: IkasCustomerStore, input: IkasContactForm): Promise<boolean>;
494
+ /**
495
+ * Check whether an email address is already registered in the system.
496
+ *
497
+ * @ai-category Customer, Authentication
498
+ * @ai-related register, customerLogin
499
+ *
500
+ * @param customerStore - The customer store instance
501
+ * @param email - The email address to check
502
+ * @returns True if the email already exists, false otherwise
503
+ *
504
+ * @example
505
+ * ```typescript
506
+ * import { customerStore, checkEmail } from "@ikas/bp-storefront";
507
+ *
508
+ * async function handleEmailCheck(email: string) {
509
+ * const exists = await checkEmail(customerStore, email);
510
+ * if (exists) {
511
+ * showToast("This email is already registered. Please login.");
512
+ * }
513
+ * }
514
+ * ```
515
+ */
516
+ export declare function checkEmail(customerStore: IkasCustomerStore, email: string): Promise<boolean>;
517
+ /**
518
+ * Send a forgot-password email to the customer so they can reset their password.
519
+ *
520
+ * @ai-category Customer, Password
521
+ * @ai-related recoverPassword, getForgotPasswordForm
522
+ *
523
+ * @param customerStore - The customer store instance
524
+ * @param email - The email address to send the password reset to
525
+ * @returns The response data if successful, false otherwise
526
+ *
527
+ * @example
528
+ * ```typescript
529
+ * import { customerStore, forgotPassword, getForgotPasswordForm } from "@ikas/bp-storefront";
530
+ *
531
+ * async function handleForgotPassword() {
532
+ * const form = getForgotPasswordForm(customerStore);
533
+ * const result = await forgotPassword(customerStore, form.email.value);
534
+ * if (result) {
535
+ * showToast("Password reset email sent!");
536
+ * } else {
537
+ * showToast("Failed to send password reset email.");
538
+ * }
539
+ * }
540
+ * ```
541
+ */
542
+ export declare function forgotPassword(customerStore: IkasCustomerStore, email: string): Promise<boolean | undefined>;
543
+ /**
544
+ * Recover (reset) the customer's password using a token from the forgot-password email.
545
+ *
546
+ * @ai-category Customer, Password
547
+ * @ai-related forgotPassword, getRecoverPasswordForm
548
+ *
549
+ * @param customerStore - The customer store instance
550
+ * @param password - The new password
551
+ * @param passwordAgain - The new password confirmation
552
+ * @param token - The password recovery token from the email link
553
+ * @returns True if the password was successfully reset, false otherwise
554
+ *
555
+ * @example
556
+ * ```typescript
557
+ * import { customerStore, recoverPassword, getRecoverPasswordForm } from "@ikas/bp-storefront";
558
+ *
559
+ * async function handleRecoverPassword(token: string) {
560
+ * const form = getRecoverPasswordForm(customerStore);
561
+ * const success = await recoverPassword(
562
+ * customerStore,
563
+ * form.password.value,
564
+ * form.passwordAgain.value,
565
+ * token
566
+ * );
567
+ * if (success) {
568
+ * showToast("Password reset successfully!");
569
+ * Router.navigateToPage("LOGIN");
570
+ * }
571
+ * }
572
+ * ```
573
+ */
574
+ export declare function recoverPassword(customerStore: IkasCustomerStore, password: string, passwordAgain: string, token: string): Promise<boolean>;
575
+ /**
576
+ * Save (update) the customer's profile data including addresses, attributes, and personal information.
577
+ *
578
+ * @ai-category Customer, Account
579
+ * @ai-related deleteCustomerAddress, getAccountInfoForm, hasCustomer
580
+ *
581
+ * @param customerStore - The customer store instance
582
+ * @param customer - The customer object with updated data to save
583
+ * @returns True if the customer was successfully saved, false otherwise
584
+ *
585
+ * @example
586
+ * ```typescript
587
+ * import { customerStore, saveCustomer } from "@ikas/bp-storefront";
588
+ *
589
+ * async function handleSaveProfile() {
590
+ * const customer = { ...customerStore.customer! };
591
+ * customer.firstName = "Jane";
592
+ * customer.lastName = "Doe";
593
+ *
594
+ * const success = await saveCustomer(customerStore, customer);
595
+ * if (success) {
596
+ * showToast("Profile updated!");
597
+ * }
598
+ * }
599
+ * ```
600
+ */
601
+ export declare function saveCustomer(customerStore: IkasCustomerStore, customer: IkasCustomer): Promise<boolean>;
602
+ /**
603
+ * Get the customer's order history.
604
+ *
605
+ * @ai-category Customer
606
+ * @ai-related getOrder, waitForCustomerStoreInit
607
+ *
608
+ * @param customerStore - The customer store instance
609
+ * @returns Array of customer orders
610
+ *
611
+ * @example
612
+ * ```typescript
613
+ * import { customerStore, getOrders, waitForCustomerStoreInit } from "@ikas/bp-storefront";
614
+ *
615
+ * async function loadOrderHistory() {
616
+ * await waitForCustomerStoreInit(customerStore);
617
+ *
618
+ * if (!customerStore.customer) {
619
+ * Router.navigateToPage("LOGIN");
620
+ * return [];
621
+ * }
622
+ *
623
+ * const orders = await getOrders(customerStore);
624
+ * return orders;
625
+ * }
626
+ * ```
627
+ */
628
+ export declare function getOrders(customerStore: IkasCustomerStore): Promise<IkasOrder[]>;
629
+ /**
630
+ * Get a specific order by ID.
631
+ *
632
+ * @ai-category Customer
633
+ * @ai-related getOrders, getOrderByEmail
634
+ *
635
+ * @param customerStore - The customer store instance
636
+ * @param id - The order ID
637
+ * @returns The order object, or null if not found
638
+ *
639
+ * @example
640
+ * ```typescript
641
+ * import { customerStore, getOrder } from "@ikas/bp-storefront";
642
+ *
643
+ * async function loadOrderDetail(orderId: string) {
644
+ * const order = await getOrder(customerStore, orderId);
645
+ *
646
+ * if (!order) {
647
+ * showToast("Order not found");
648
+ * return null;
649
+ * }
650
+ *
651
+ * return order;
652
+ * }
653
+ * ```
654
+ */
655
+ export declare function getOrder(customerStore: IkasCustomerStore, id: string): Promise<IkasOrder | null>;
656
+ /**
657
+ * Get an order by email and order number, for guest order tracking.
658
+ *
659
+ * @ai-category Customer
660
+ * @ai-related getOrder, getOrders, getOrderTrackingForm
661
+ *
662
+ * @param customerStore - The customer store instance
663
+ * @param email - The email address used for the order
664
+ * @param orderNumber - The order number to look up
665
+ * @returns The order object if found, or null
666
+ *
667
+ * @example
668
+ * ```typescript
669
+ * import { customerStore, getOrderByEmail, getOrderTrackingForm } from "@ikas/bp-storefront";
670
+ *
671
+ * async function handleOrderTracking() {
672
+ * const form = getOrderTrackingForm(customerStore);
673
+ * const order = await getOrderByEmail(
674
+ * customerStore,
675
+ * form.email.value,
676
+ * form.orderNumber.value
677
+ * );
678
+ * if (order) {
679
+ * displayOrderDetails(order);
680
+ * } else {
681
+ * showToast("Order not found");
682
+ * }
683
+ * }
684
+ * ```
685
+ */
686
+ export declare function getOrderByEmail(customerStore: IkasCustomerStore, email: string, orderNumber: string): Promise<IkasOrder | null>;
687
+ /**
688
+ * Retrieve payment transactions for an order, checkout, or transaction ID.
689
+ *
690
+ * @ai-category Customer
691
+ * @ai-related getOrder, getOrderByEmail
692
+ *
693
+ * @param customerStore - The customer store instance
694
+ * @param params - Filter parameters containing orderId, checkoutId, or id
695
+ * @returns Array of order transactions
696
+ *
697
+ * @example
698
+ * ```typescript
699
+ * import { customerStore, getOrderTransactions } from "@ikas/bp-storefront";
700
+ *
701
+ * async function loadTransactions(orderId: string) {
702
+ * const transactions = await getOrderTransactions(customerStore, { orderId });
703
+ * transactions.forEach(tx => {
704
+ * console.log(tx.id, tx.amount);
705
+ * });
706
+ * }
707
+ * ```
708
+ */
709
+ export declare function getOrderTransactions(customerStore: IkasCustomerStore, params?: GetOrderTransactionParams): Promise<IkasOrderTransaction[]>;
710
+ /**
711
+ * Get the list of favorite product IDs for the current customer.
712
+ *
713
+ * @ai-category Customer, ProductList
714
+ * @ai-related getFavoriteProducts, addProductToFavorites, isFavoriteProduct
715
+ *
716
+ * @param customerStore - The customer store instance
717
+ * @returns Array of favorite product objects with product IDs
718
+ *
719
+ * @example
720
+ * ```typescript
721
+ * import { customerStore, getFavoriteProductsIds } from "@ikas/bp-storefront";
722
+ *
723
+ * async function loadFavoriteIds() {
724
+ * const favorites = await getFavoriteProductsIds(customerStore);
725
+ * const productIds = favorites.map(f => f.productId);
726
+ * console.log("Favorite product IDs:", productIds);
727
+ * }
728
+ * ```
729
+ */
730
+ export declare function getFavoriteProductsIds(customerStore: IkasCustomerStore): Promise<IkasFavoriteProduct[]>;
731
+ /**
732
+ * Get the customer's favorite/wishlist products.
733
+ *
734
+ * @ai-category Customer, ProductList
735
+ * @ai-related addProductToFavorites, removeProductFromFavorites, isFavoriteProduct
736
+ *
737
+ * @param customerStore - The customer store instance
738
+ * @returns Array of favorite products
739
+ *
740
+ * @example
741
+ * ```typescript
742
+ * import { customerStore, getFavoriteProducts } from "@ikas/bp-storefront";
743
+ *
744
+ * async function loadWishlist() {
745
+ * const favorites = await getFavoriteProducts(customerStore);
746
+ *
747
+ * if (favorites.length === 0) {
748
+ * return <p>Your wishlist is empty</p>;
749
+ * }
750
+ *
751
+ * return favorites.map(product => (
752
+ * <ProductCard key={product.id} product={product} />
753
+ * ));
754
+ * }
755
+ * ```
756
+ */
757
+ export declare function getFavoriteProducts(customerStore: IkasCustomerStore): Promise<IkasProduct[]>;
758
+ /**
759
+ * Add a product to customer's favorites/wishlist.
760
+ * Requires customer to be logged in.
761
+ *
762
+ * @ai-category Customer, ProductList
763
+ * @ai-related getFavoriteProducts, removeProductFromFavorites, isFavoriteProduct
764
+ *
765
+ * @param customerStore - The customer store instance
766
+ * @param productId - The product ID to add
767
+ * @returns True if successful
768
+ *
769
+ * @example
770
+ * ```typescript
771
+ * import { customerStore, addProductToFavorites } from "@ikas/bp-storefront";
772
+ * import { IkasProduct } from "@ikas/bp-storefront-models";
773
+ *
774
+ * async function handleAddToWishlist(product: IkasProduct) {
775
+ * if (!customerStore.customer) {
776
+ * Router.navigateToPage("LOGIN");
777
+ * return;
778
+ * }
779
+ *
780
+ * await addProductToFavorites(customerStore, product.id);
781
+ * showToast("Added to wishlist!");
782
+ * }
783
+ * ```
784
+ */
785
+ export declare function addProductToFavorites(customerStore: IkasCustomerStore, productId: string): Promise<boolean>;
786
+ /**
787
+ * Remove a product from customer's favorites/wishlist.
788
+ *
789
+ * @ai-category Customer, ProductList
790
+ * @ai-related getFavoriteProducts, addProductToFavorites, isFavoriteProduct
791
+ *
792
+ * @param customerStore - The customer store instance
793
+ * @param productId - The product ID to remove
794
+ * @returns True if successful
795
+ *
796
+ * @example
797
+ * ```typescript
798
+ * import { customerStore, removeProductFromFavorites } from "@ikas/bp-storefront";
799
+ *
800
+ * async function handleRemoveFromWishlist(productId: string) {
801
+ * await removeProductFromFavorites(customerStore, productId);
802
+ * showToast("Removed from wishlist");
803
+ * }
804
+ * ```
805
+ */
806
+ export declare function removeProductFromFavorites(customerStore: IkasCustomerStore, productId: string): Promise<boolean>;
807
+ /**
808
+ * Check if a product is in the customer's favorites list.
809
+ *
810
+ * @ai-category Customer, ProductList
811
+ * @ai-related addProductToFavorites, removeProductFromFavorites
812
+ *
813
+ * @param customerStore - The customer store instance
814
+ * @param productId - The product ID to check
815
+ * @returns True if product is in favorites
816
+ *
817
+ * @example
818
+ * ```typescript
819
+ * import { customerStore, isFavoriteProduct } from "@ikas/bp-storefront";
820
+ *
821
+ * function FavoriteIcon({ productId }: { productId: string }) {
822
+ * const isFavorite = isFavoriteProduct(customerStore, productId);
823
+ *
824
+ * return (
825
+ * <span className={isFavorite ? "heart-filled" : "heart-empty"}>
826
+ * ♥
827
+ * </span>
828
+ * );
829
+ * }
830
+ * ```
831
+ */
832
+ export declare function isFavoriteProduct(customerStore: IkasCustomerStore, productId: string): Promise<boolean>;
833
+ /**
834
+ * Create a marketing email subscription for the given email address.
835
+ *
836
+ * @ai-category Customer, Registration
837
+ * @ai-related canCustomerCreateEmailSubscription, getNewsletterSubscriptionForm, saveCustomerFormData
838
+ *
839
+ * @param customerStore - The customer store instance
840
+ * @param email - The email address to subscribe
841
+ * @returns The API response object
842
+ *
843
+ * @example
844
+ * ```typescript
845
+ * import { customerStore, createEmailSubscription } from "@ikas/bp-storefront";
846
+ *
847
+ * async function handleSubscribe(email: string) {
848
+ * const response = await createEmailSubscription(customerStore, email);
849
+ * if (response.isSuccess) {
850
+ * showToast("Subscribed to newsletter!");
851
+ * }
852
+ * }
853
+ * ```
854
+ */
855
+ export declare function createEmailSubscription(customerStore: IkasCustomerStore, email: string): Promise<APIResponse<undefined> | APIResponse<boolean>>;
856
+ /**
857
+ * Save customer form data (e.g., newsletter subscription form) and trigger analytics events.
858
+ *
859
+ * @ai-category Customer, Registration
860
+ * @ai-related createEmailSubscription, canCustomerCreateEmailSubscription
861
+ *
862
+ * @param customerStore - The customer store instance
863
+ * @param input - The form data input to save
864
+ * @returns True if the form data was successfully saved, false otherwise
865
+ *
866
+ * @example
867
+ * ```typescript
868
+ * import { customerStore, saveCustomerFormData } from "@ikas/bp-storefront";
869
+ *
870
+ * async function handleFormSubmit(formData: SaveCustomerFormDataInput) {
871
+ * const success = await saveCustomerFormData(customerStore, formData);
872
+ * if (success) {
873
+ * showToast("Form submitted successfully!");
874
+ * }
875
+ * }
876
+ * ```
877
+ */
878
+ export declare function saveCustomerFormData(customerStore: IkasCustomerStore, input: SaveCustomerFormDataInput): Promise<boolean>;
879
+ /**
880
+ * Submit a product review from the customer.
881
+ *
882
+ * @ai-category Customer
883
+ * @ai-related hasCustomer, getOrder
884
+ *
885
+ * @param customerStore - The customer store instance
886
+ * @param input - The review form data including rating and comment
887
+ * @returns The created review data, or undefined if review settings are not configured
888
+ *
889
+ * @example
890
+ * ```typescript
891
+ * import { customerStore, sendReview } from "@ikas/bp-storefront";
892
+ *
893
+ * async function handleSubmitReview(productId: string, rating: number, comment: string) {
894
+ * const result = await sendReview(customerStore, {
895
+ * productId,
896
+ * rating,
897
+ * body: comment,
898
+ * author: customerStore.customer?.firstName || "Anonymous",
899
+ * });
900
+ * if (result) {
901
+ * showToast("Review submitted!");
902
+ * }
903
+ * }
904
+ * ```
905
+ */
906
+ export declare function sendReview(customerStore: IkasCustomerStore, input: IkasCustomerReviewForm): Promise<import("../../../../../storefront-models/src").IkasCustomerReview | undefined>;
907
+ /**
908
+ * Deactivate (delete) the current customer's account after password verification.
909
+ *
910
+ * @ai-category Customer, Account
911
+ * @ai-related hasCustomer, logout
912
+ *
913
+ * @param customerStore - The customer store instance
914
+ * @param password - The customer's current password for verification
915
+ * @returns The API response, or undefined if no customer is logged in
916
+ *
917
+ * @example
918
+ * ```typescript
919
+ * import { customerStore, deactivateCustomer, logout } from "@ikas/bp-storefront";
920
+ *
921
+ * async function handleDeleteAccount(password: string) {
922
+ * const result = await deactivateCustomer(customerStore, password);
923
+ * if (result?.isSuccess) {
924
+ * await logout(customerStore);
925
+ * showToast("Account deleted successfully");
926
+ * Router.navigateToPage("INDEX");
927
+ * }
928
+ * }
929
+ * ```
930
+ */
931
+ export declare function deactivateCustomer(customerStore: IkasCustomerStore, password: string): Promise<APIResponse<undefined> | APIResponse<boolean> | undefined>;
932
+ /**
933
+ * Export the current customer's personal data (GDPR data export).
934
+ *
935
+ * @ai-category Customer, Account
936
+ * @ai-related hasCustomer, deactivateCustomer
937
+ *
938
+ * @param customerStore - The customer store instance
939
+ * @returns The API response with exported data, or undefined if no customer is logged in
940
+ *
941
+ * @example
942
+ * ```typescript
943
+ * import { customerStore, exportCustomerPersonalData } from "@ikas/bp-storefront";
944
+ *
945
+ * async function handleExportData() {
946
+ * const result = await exportCustomerPersonalData(customerStore);
947
+ * if (result?.isSuccess) {
948
+ * showToast("Your data export has been sent to your email");
949
+ * }
950
+ * }
951
+ * ```
952
+ */
953
+ export declare function exportCustomerPersonalData(customerStore: IkasCustomerStore): Promise<APIResponse<undefined> | APIResponse<string> | undefined>;
954
+ /**
955
+ * Handle the customer granting consent (e.g., cookie/data consent) and persist it locally.
956
+ *
957
+ * @ai-category Customer
958
+ * @ai-related getCustomerConsentGranted, removeCustomerConsent
959
+ *
960
+ * @param customerStore - The customer store instance
961
+ *
962
+ * @example
963
+ * ```typescript
964
+ * import { customerStore, handleCustomerConsentGrant } from "@ikas/bp-storefront";
965
+ *
966
+ * function ConsentBanner() {
967
+ * return (
968
+ * <div>
969
+ * <p>We use cookies to improve your experience.</p>
970
+ * <button onClick={() => handleCustomerConsentGrant(customerStore)}>
971
+ * Accept
972
+ * </button>
973
+ * </div>
974
+ * );
975
+ * }
976
+ * ```
977
+ */
978
+ export declare function handleCustomerConsentGrant(customerStore: IkasCustomerStore): void;
979
+ /**
980
+ * Wait for customer store to finish initialization.
981
+ * Use this before checking customer.customer to ensure data is loaded.
982
+ *
983
+ * @ai-category Customer
984
+ * @ai-related hasCustomer, getOrders
985
+ *
986
+ * @param customerStore - The customer store instance
987
+ * @returns Promise that resolves when customer store is initialized
988
+ *
989
+ * @example
990
+ * ```typescript
991
+ * import { customerStore, waitForCustomerStoreInit } from "@ikas/bp-storefront";
992
+ *
993
+ * async function initializePage() {
994
+ * await waitForCustomerStoreInit(customerStore);
995
+ *
996
+ * if (customerStore.customer) {
997
+ * // Customer is logged in
998
+ * console.log("Welcome,", customerStore.customer.firstName);
999
+ * } else {
1000
+ * // Not logged in
1001
+ * Router.navigateToPage("LOGIN");
1002
+ * }
1003
+ * }
1004
+ * ```
1005
+ */
1006
+ export declare function waitForCustomerStoreInit(customerStore: IkasCustomerStore): Promise<unknown>;
1007
+ /**
1008
+ * Wait for the captcha token to be initialized before proceeding with captcha-protected operations.
1009
+ *
1010
+ * @ai-category Customer, Authentication
1011
+ * @ai-related setCaptchaToken
1012
+ *
1013
+ * @param customerStore - The customer store instance
1014
+ * @returns Promise that resolves when the captcha token is available
1015
+ *
1016
+ * @example
1017
+ * ```typescript
1018
+ * import { customerStore, waitForCaptchaTokenInit } from "@ikas/bp-storefront";
1019
+ *
1020
+ * async function ensureCaptchaReady() {
1021
+ * await waitForCaptchaTokenInit(customerStore);
1022
+ * console.log("Captcha token is ready");
1023
+ * }
1024
+ * ```
1025
+ */
1026
+ export declare function waitForCaptchaTokenInit(customerStore: IkasCustomerStore): Promise<unknown>;
1027
+ /**
1028
+ * Fetch and resolve all custom customer attributes, linking attribute values to their definitions and options.
1029
+ *
1030
+ * @ai-category Customer, Account
1031
+ * @ai-related saveCustomer, hasCustomer
1032
+ *
1033
+ * @param customerStore - The customer store instance
1034
+ * @returns Array of customer attribute definitions
1035
+ *
1036
+ * @example
1037
+ * ```typescript
1038
+ * import { customerStore, getCustomerAttributes } from "@ikas/bp-storefront";
1039
+ *
1040
+ * async function loadCustomerProfile() {
1041
+ * const attributes = await getCustomerAttributes(customerStore);
1042
+ * attributes.forEach(attr => {
1043
+ * console.log(attr.name, attr.type);
1044
+ * });
1045
+ * }
1046
+ * ```
1047
+ */
1048
+ export declare function getCustomerAttributes(customerStore: IkasCustomerStore): Promise<import("../../../../../storefront-models/src").IkasCustomerAttribute[]>;
1049
+ /**
1050
+ * Get digital product files associated with an order by their file IDs.
1051
+ *
1052
+ * @ai-category Customer
1053
+ * @ai-related getDigitalProductFileDownloadUrl, getOrder
1054
+ *
1055
+ * @param customerStore - The customer store instance
1056
+ * @param fileIds - Array of product file IDs to retrieve
1057
+ * @returns Array of product file objects
1058
+ *
1059
+ * @example
1060
+ * ```typescript
1061
+ * import { customerStore, getOrderProductFiles } from "@ikas/bp-storefront";
1062
+ *
1063
+ * async function loadDigitalFiles(fileIds: string[]) {
1064
+ * const files = await getOrderProductFiles(customerStore, fileIds);
1065
+ * files.forEach(file => {
1066
+ * console.log(file.name, file.variantId);
1067
+ * });
1068
+ * }
1069
+ * ```
1070
+ */
1071
+ export declare function getOrderProductFiles(customerStore: IkasCustomerStore, fileIds: string[]): Promise<IkasProductFile[]>;
1072
+ /**
1073
+ * Download a digital product file by fetching its download URL and triggering a browser download.
1074
+ *
1075
+ * @ai-category Customer
1076
+ * @ai-related getOrderProductFiles, getOrder
1077
+ *
1078
+ * @param customerStore - The customer store instance
1079
+ * @param order - The order containing the digital product
1080
+ * @param productFile - The product file to download
1081
+ *
1082
+ * @example
1083
+ * ```typescript
1084
+ * import { customerStore, getDigitalProductFileDownloadUrl } from "@ikas/bp-storefront";
1085
+ * import { IkasOrder, IkasProductFile } from "@ikas/bp-storefront-models";
1086
+ *
1087
+ * async function handleDownload(order: IkasOrder, file: IkasProductFile) {
1088
+ * await getDigitalProductFileDownloadUrl(customerStore, order, file);
1089
+ * // Download is triggered automatically in the browser
1090
+ * }
1091
+ * ```
1092
+ */
1093
+ export declare function getDigitalProductFileDownloadUrl(customerStore: IkasCustomerStore, order: IkasOrder, productFile: IkasProductFile): Promise<void>;
1094
+ /**
1095
+ * Fetch and cache the order refund settings for the store.
1096
+ *
1097
+ * @ai-category Customer
1098
+ * @ai-related refundOrder, getOrder
1099
+ *
1100
+ * @param customerStore - The customer store instance
1101
+ *
1102
+ * @example
1103
+ * ```typescript
1104
+ * import { customerStore, getOrderRefundSettings } from "@ikas/bp-storefront";
1105
+ *
1106
+ * async function loadRefundPolicy() {
1107
+ * await getOrderRefundSettings(customerStore);
1108
+ * const settings = customerStore._refundSettings;
1109
+ * if (settings) {
1110
+ * console.log("Refund settings loaded");
1111
+ * }
1112
+ * }
1113
+ * ```
1114
+ */
1115
+ export declare function getOrderRefundSettings(customerStore: IkasCustomerStore): Promise<void>;
1116
+ /**
1117
+ * Set the captcha token on the customer store, typically called from a captcha widget callback.
1118
+ *
1119
+ * @ai-category Customer, Authentication
1120
+ * @ai-related waitForCaptchaTokenInit
1121
+ *
1122
+ * @param customerStore - The customer store instance
1123
+ * @param token - The captcha token string from the captcha widget
1124
+ *
1125
+ * @example
1126
+ * ```typescript
1127
+ * import { customerStore, setCaptchaToken } from "@ikas/bp-storefront";
1128
+ *
1129
+ * function onCaptchaVerified(token: string) {
1130
+ * setCaptchaToken(customerStore, token);
1131
+ * }
1132
+ * ```
1133
+ */
1134
+ export declare function setCaptchaToken(customerStore: IkasCustomerStore, token: string): void;
1135
+ /**
1136
+ * Store the last viewed products snapshot and its API response for caching purposes.
1137
+ *
1138
+ * @ai-category Customer
1139
+ * @ai-related getLastViewedProducts, customerStore_onProductView
1140
+ *
1141
+ * @param customerStore - The customer store instance
1142
+ * @param response - The API response containing last viewed products data
1143
+ *
1144
+ * @example
1145
+ * ```typescript
1146
+ * import { customerStore, setSavedLastViewedProductsResponse } from "@ikas/bp-storefront";
1147
+ *
1148
+ * function cacheViewedProducts(response: APIResponse<any>) {
1149
+ * setSavedLastViewedProductsResponse(customerStore, response);
1150
+ * }
1151
+ * ```
1152
+ */
1153
+ export declare function setSavedLastViewedProductsResponse(customerStore: IkasCustomerStore, response: APIResponse<any>): void;
1154
+ /**
1155
+ * Get the list of last viewed products for the customer, fetching from API for logged-in users or local storage for guests.
1156
+ *
1157
+ * @ai-category Customer
1158
+ * @ai-related customerStore_onProductView, setSavedLastViewedProductsResponse
1159
+ *
1160
+ * @param customerStore - The customer store instance
1161
+ * @returns Array of last viewed product objects with productId and variantId
1162
+ *
1163
+ * @example
1164
+ * ```typescript
1165
+ * import { customerStore, getLastViewedProducts } from "@ikas/bp-storefront";
1166
+ *
1167
+ * async function loadRecentlyViewed() {
1168
+ * const products = await getLastViewedProducts(customerStore);
1169
+ * products.forEach(p => {
1170
+ * console.log("Viewed product:", p.productId);
1171
+ * });
1172
+ * }
1173
+ * ```
1174
+ */
1175
+ export declare function getLastViewedProducts(customerStore: IkasCustomerStore): Promise<import("../../../../../storefront-models/src").IkasLastViewedProduct[]>;
1176
+ /**
1177
+ * Record a product view event, saving it to the API for logged-in users or local storage for guests.
1178
+ *
1179
+ * @ai-category Customer
1180
+ * @ai-related getLastViewedProducts, setSavedLastViewedProductsResponse
1181
+ *
1182
+ * @param customerStore - The customer store instance
1183
+ * @param productId - The viewed product's ID
1184
+ * @param variantId - The viewed product variant's ID
1185
+ *
1186
+ * @example
1187
+ * ```typescript
1188
+ * import { customerStore, customerStore_onProductView } from "@ikas/bp-storefront";
1189
+ *
1190
+ * function ProductPage({ productId, variantId }: { productId: string; variantId: string }) {
1191
+ * useEffect(() => {
1192
+ * customerStore_onProductView(customerStore, productId, variantId);
1193
+ * }, [productId, variantId]);
1194
+ *
1195
+ * return <div>Product Details</div>;
1196
+ * }
1197
+ * ```
1198
+ */
1199
+ export declare function customerStore_onProductView(customerStore: IkasCustomerStore, productId: string, variantId: string): Promise<void>;
1200
+ /**
1201
+ * Check whether the customer has granted consent (e.g., cookie/data consent).
1202
+ *
1203
+ * @ai-category Customer
1204
+ * @ai-related handleCustomerConsentGrant, removeCustomerConsent
1205
+ *
1206
+ * @param customerStore - The customer store instance
1207
+ * @returns True if consent has been granted
1208
+ *
1209
+ * @example
1210
+ * ```typescript
1211
+ * import { customerStore, getCustomerConsentGranted } from "@ikas/bp-storefront";
1212
+ *
1213
+ * function ConsentBanner() {
1214
+ * const hasConsent = getCustomerConsentGranted(customerStore);
1215
+ * if (hasConsent) return null;
1216
+ *
1217
+ * return <div>Please accept cookies to continue.</div>;
1218
+ * }
1219
+ * ```
1220
+ */
1221
+ export declare function getCustomerConsentGranted(customerStore: IkasCustomerStore): boolean;
1222
+ /**
1223
+ * Remove the customer's stored consent from local storage.
1224
+ *
1225
+ * @ai-category Customer
1226
+ * @ai-related getCustomerConsentGranted, handleCustomerConsentGrant
1227
+ *
1228
+ * @param customerStore - The customer store instance
1229
+ *
1230
+ * @example
1231
+ * ```typescript
1232
+ * import { customerStore, removeCustomerConsent } from "@ikas/bp-storefront";
1233
+ *
1234
+ * function handleRevokeConsent() {
1235
+ * removeCustomerConsent(customerStore);
1236
+ * showToast("Consent revoked");
1237
+ * }
1238
+ * ```
1239
+ */
1240
+ export declare function removeCustomerConsent(customerStore: IkasCustomerStore): void;
1241
+ /**
1242
+ * Check if a customer is currently logged in.
1243
+ *
1244
+ * @ai-category Customer
1245
+ * @ai-related waitForCustomerStoreInit, customerLogin, logout
1246
+ *
1247
+ * @param customerStore - The customer store instance
1248
+ * @returns True if customer is logged in
1249
+ *
1250
+ * @example
1251
+ * ```typescript
1252
+ * import { customerStore, hasCustomer } from "@ikas/bp-storefront";
1253
+ *
1254
+ * function AuthButton() {
1255
+ * if (hasCustomer(customerStore)) {
1256
+ * return <button onClick={() => logout(customerStore)}>Logout</button>;
1257
+ * }
1258
+ * return <button onClick={() => Router.navigateToPage("LOGIN")}>Login</button>;
1259
+ * }
1260
+ * ```
1261
+ */
1262
+ export declare function hasCustomer(customerStore: IkasCustomerStore): boolean;
1263
+ export type GetOrderTransactionParams = {
1264
+ checkoutId?: string;
1265
+ id?: string;
1266
+ orderId?: string;
1267
+ };
1268
+ type HandleSocialLoginReturnType = {
1269
+ status?: "fail" | "success";
1270
+ message?: string;
1271
+ };
1272
+ /**
1273
+ * Get or initialize the account info form with validation for updating customer profile details.
1274
+ *
1275
+ * @ai-category Customer, Account
1276
+ * @ai-related clearAccountInfoForm, saveCustomer
1277
+ *
1278
+ * @param customerStore - The customer store instance
1279
+ * @returns The account info form object with validated fields
1280
+ *
1281
+ * @example
1282
+ * ```typescript
1283
+ * import { customerStore, getAccountInfoForm } from "@ikas/bp-storefront";
1284
+ *
1285
+ * function AccountInfoPage() {
1286
+ * const form = getAccountInfoForm(customerStore);
1287
+ *
1288
+ * return (
1289
+ * <form>
1290
+ * <input
1291
+ * value={form.firstName.value}
1292
+ * onChange={e => form.firstName.value = e.target.value}
1293
+ * />
1294
+ * <input
1295
+ * value={form.lastName.value}
1296
+ * onChange={e => form.lastName.value = e.target.value}
1297
+ * />
1298
+ * </form>
1299
+ * );
1300
+ * }
1301
+ * ```
1302
+ */
1303
+ export declare function getAccountInfoForm(customerStore: IkasCustomerStore): AccountInfoForm;
1304
+ /**
1305
+ * Clear the cached account info form, forcing a fresh form on next retrieval.
1306
+ *
1307
+ * @ai-category Customer, Account
1308
+ * @ai-related getAccountInfoForm
1309
+ *
1310
+ * @param customerStore - The customer store instance
1311
+ *
1312
+ * @example
1313
+ * ```typescript
1314
+ * import { customerStore, clearAccountInfoForm } from "@ikas/bp-storefront";
1315
+ *
1316
+ * function handleAccountInfoReset() {
1317
+ * clearAccountInfoForm(customerStore);
1318
+ * }
1319
+ * ```
1320
+ */
1321
+ export declare function clearAccountInfoForm(customerStore: IkasCustomerStore): void;
1322
+ /**
1323
+ * Get or initialize the contact form with validation for submitting messages to the merchant.
1324
+ *
1325
+ * @ai-category Customer
1326
+ * @ai-related clearContactForm, saveContactForm
1327
+ *
1328
+ * @param customerStore - The customer store instance
1329
+ * @returns The contact form object with validated fields
1330
+ *
1331
+ * @example
1332
+ * ```typescript
1333
+ * import { customerStore, getContactForm } from "@ikas/bp-storefront";
1334
+ *
1335
+ * function ContactPage() {
1336
+ * const form = getContactForm(customerStore);
1337
+ *
1338
+ * return (
1339
+ * <form>
1340
+ * <input
1341
+ * value={form.name.value}
1342
+ * onChange={e => form.name.value = e.target.value}
1343
+ * />
1344
+ * <textarea
1345
+ * value={form.message.value}
1346
+ * onChange={e => form.message.value = e.target.value}
1347
+ * />
1348
+ * </form>
1349
+ * );
1350
+ * }
1351
+ * ```
1352
+ */
1353
+ export declare function getContactForm(customerStore: IkasCustomerStore): ContactForm;
1354
+ /**
1355
+ * Clear the cached contact form, forcing a fresh form on next retrieval.
1356
+ *
1357
+ * @ai-category Customer
1358
+ * @ai-related getContactForm
1359
+ *
1360
+ * @param customerStore - The customer store instance
1361
+ *
1362
+ * @example
1363
+ * ```typescript
1364
+ * import { customerStore, clearContactForm } from "@ikas/bp-storefront";
1365
+ *
1366
+ * function handleContactFormReset() {
1367
+ * clearContactForm(customerStore);
1368
+ * }
1369
+ * ```
1370
+ */
1371
+ export declare function clearContactForm(customerStore: IkasCustomerStore): void;
1372
+ /**
1373
+ * Get or initialize the coupon code form with validation for applying discount codes.
1374
+ *
1375
+ * @ai-category Customer
1376
+ * @ai-related clearCouponCodeForm
1377
+ *
1378
+ * @param customerStore - The customer store instance
1379
+ * @returns The coupon code form object with validated fields
1380
+ *
1381
+ * @example
1382
+ * ```typescript
1383
+ * import { customerStore, getCouponCodeForm } from "@ikas/bp-storefront";
1384
+ *
1385
+ * function CouponInput() {
1386
+ * const form = getCouponCodeForm(customerStore);
1387
+ *
1388
+ * return (
1389
+ * <input
1390
+ * placeholder="Enter coupon code"
1391
+ * value={form.code.value}
1392
+ * onChange={e => form.code.value = e.target.value}
1393
+ * />
1394
+ * );
1395
+ * }
1396
+ * ```
1397
+ */
1398
+ export declare function getCouponCodeForm(customerStore: IkasCustomerStore): CouponCodeForm;
1399
+ /**
1400
+ * Clear the cached coupon code form, forcing a fresh form on next retrieval.
1401
+ *
1402
+ * @ai-category Customer
1403
+ * @ai-related getCouponCodeForm
1404
+ *
1405
+ * @param customerStore - The customer store instance
1406
+ *
1407
+ * @example
1408
+ * ```typescript
1409
+ * import { customerStore, clearCouponCodeForm } from "@ikas/bp-storefront";
1410
+ *
1411
+ * function handleCouponReset() {
1412
+ * clearCouponCodeForm(customerStore);
1413
+ * }
1414
+ * ```
1415
+ */
1416
+ export declare function clearCouponCodeForm(customerStore: IkasCustomerStore): void;
1417
+ /**
1418
+ * Get or initialize the forgot password form with validation for requesting a password reset.
1419
+ *
1420
+ * @ai-category Customer, Password
1421
+ * @ai-related clearForgotPasswordForm, forgotPassword
1422
+ *
1423
+ * @param customerStore - The customer store instance
1424
+ * @returns The forgot password form object with validated fields
1425
+ *
1426
+ * @example
1427
+ * ```typescript
1428
+ * import { customerStore, getForgotPasswordForm, forgotPassword } from "@ikas/bp-storefront";
1429
+ *
1430
+ * function ForgotPasswordPage() {
1431
+ * const form = getForgotPasswordForm(customerStore);
1432
+ *
1433
+ * const handleSubmit = async () => {
1434
+ * const result = await forgotPassword(customerStore, form.email.value);
1435
+ * if (result) {
1436
+ * showToast("Check your email for reset instructions");
1437
+ * }
1438
+ * };
1439
+ *
1440
+ * return (
1441
+ * <form>
1442
+ * <input
1443
+ * type="email"
1444
+ * value={form.email.value}
1445
+ * onChange={e => form.email.value = e.target.value}
1446
+ * />
1447
+ * <button onClick={handleSubmit}>Reset Password</button>
1448
+ * </form>
1449
+ * );
1450
+ * }
1451
+ * ```
1452
+ */
1453
+ export declare function getForgotPasswordForm(customerStore: IkasCustomerStore): ForgotPasswordForm;
1454
+ /**
1455
+ * Clear the cached forgot password form, forcing a fresh form on next retrieval.
1456
+ *
1457
+ * @ai-category Customer, Password
1458
+ * @ai-related getForgotPasswordForm
1459
+ *
1460
+ * @param customerStore - The customer store instance
1461
+ *
1462
+ * @example
1463
+ * ```typescript
1464
+ * import { customerStore, clearForgotPasswordForm } from "@ikas/bp-storefront";
1465
+ *
1466
+ * function handleForgotPasswordReset() {
1467
+ * clearForgotPasswordForm(customerStore);
1468
+ * }
1469
+ * ```
1470
+ */
1471
+ export declare function clearForgotPasswordForm(customerStore: IkasCustomerStore): void;
1472
+ /**
1473
+ * Get the login form with validation.
1474
+ * The form has email and password fields with built-in validation.
1475
+ *
1476
+ * @ai-category Customer
1477
+ * @ai-related customerLogin, clearLoginForm
1478
+ *
1479
+ * @param customerStore - The customer store instance
1480
+ * @returns Login form object with validated fields
1481
+ *
1482
+ * @example
1483
+ * ```typescript
1484
+ * import { customerStore, getLoginForm, customerLogin } from "@ikas/bp-storefront";
1485
+ *
1486
+ * function LoginForm() {
1487
+ * const form = getLoginForm(customerStore);
1488
+ *
1489
+ * const handleSubmit = async () => {
1490
+ * // Validate form
1491
+ * if (!form.email.value || !form.password.value) {
1492
+ * return;
1493
+ * }
1494
+ *
1495
+ * const result = await customerLogin(
1496
+ * customerStore,
1497
+ * form.email.value,
1498
+ * form.password.value
1499
+ * );
1500
+ *
1501
+ * if (result.isSuccess) {
1502
+ * Router.navigateToPage("ACCOUNT");
1503
+ * }
1504
+ * };
1505
+ *
1506
+ * return (
1507
+ * <form>
1508
+ * <input
1509
+ * type="email"
1510
+ * value={form.email.value}
1511
+ * onChange={e => form.email.value = e.target.value}
1512
+ * />
1513
+ * <input
1514
+ * type="password"
1515
+ * value={form.password.value}
1516
+ * onChange={e => form.password.value = e.target.value}
1517
+ * />
1518
+ * <button onClick={handleSubmit}>Login</button>
1519
+ * </form>
1520
+ * );
1521
+ * }
1522
+ * ```
1523
+ */
1524
+ export declare function getLoginForm(customerStore: IkasCustomerStore): LoginForm;
1525
+ /**
1526
+ * Get or initialize the SMS login form with validation for phone-based authentication.
1527
+ *
1528
+ * @ai-category Customer, Login, PhoneVerification
1529
+ * @ai-related getLoginForm, customerLogin, getVerifyPhoneNumberForm
1530
+ *
1531
+ * @param customerStore - The customer store instance
1532
+ * @returns The SMS login form object with validated fields
1533
+ *
1534
+ * @example
1535
+ * ```typescript
1536
+ * import { customerStore, getSmsLoginForm, customerLogin } from "@ikas/bp-storefront";
1537
+ *
1538
+ * function SmsLoginPage() {
1539
+ * const form = getSmsLoginForm(customerStore);
1540
+ *
1541
+ * const handleSubmit = async () => {
1542
+ * const result = await customerLogin(
1543
+ * customerStore,
1544
+ * undefined,
1545
+ * undefined,
1546
+ * form.phone.value
1547
+ * );
1548
+ * if (result.isSuccess) {
1549
+ * Router.navigateToPage("ACCOUNT");
1550
+ * }
1551
+ * };
1552
+ *
1553
+ * return (
1554
+ * <form>
1555
+ * <input
1556
+ * value={form.phone.value}
1557
+ * onChange={e => form.phone.value = e.target.value}
1558
+ * />
1559
+ * <button onClick={handleSubmit}>Login with SMS</button>
1560
+ * </form>
1561
+ * );
1562
+ * }
1563
+ * ```
1564
+ */
1565
+ export declare function getSmsLoginForm(customerStore: IkasCustomerStore): SmsLoginForm;
1566
+ /**
1567
+ * Get or initialize the phone number verification form with validation for entering a verification code.
1568
+ *
1569
+ * @ai-category Customer, PhoneVerification
1570
+ * @ai-related validateCustomerPhoneVerificationCode, resendCustomerPhoneVerificationCode, getSmsLoginForm
1571
+ *
1572
+ * @param customerStore - The customer store instance
1573
+ * @returns The verify phone number form object with validated fields
1574
+ *
1575
+ * @example
1576
+ * ```typescript
1577
+ * import { customerStore, getVerifyPhoneNumberForm, validateCustomerPhoneVerificationCode } from "@ikas/bp-storefront";
1578
+ *
1579
+ * function VerifyPhonePage() {
1580
+ * const form = getVerifyPhoneNumberForm(customerStore);
1581
+ *
1582
+ * const handleVerify = async () => {
1583
+ * const result = await validateCustomerPhoneVerificationCode(
1584
+ * customerStore,
1585
+ * form.verificationCode.value
1586
+ * );
1587
+ * if (result) {
1588
+ * showToast("Phone verified!");
1589
+ * }
1590
+ * };
1591
+ *
1592
+ * return (
1593
+ * <form>
1594
+ * <input
1595
+ * value={form.verificationCode.value}
1596
+ * onChange={e => form.verificationCode.value = e.target.value}
1597
+ * />
1598
+ * <button onClick={handleVerify}>Verify</button>
1599
+ * </form>
1600
+ * );
1601
+ * }
1602
+ * ```
1603
+ */
1604
+ export declare function getVerifyPhoneNumberForm(customerStore: IkasCustomerStore): VerifyPhoneNumberForm;
1605
+ /**
1606
+ * Clear the cached login form, forcing a fresh form on next retrieval.
1607
+ *
1608
+ * @ai-category Customer, Login
1609
+ * @ai-related getLoginForm
1610
+ *
1611
+ * @param customerStore - The customer store instance
1612
+ *
1613
+ * @example
1614
+ * ```typescript
1615
+ * import { customerStore, clearLoginForm } from "@ikas/bp-storefront";
1616
+ *
1617
+ * function handleLoginFormReset() {
1618
+ * clearLoginForm(customerStore);
1619
+ * }
1620
+ * ```
1621
+ */
1622
+ export declare function clearLoginForm(customerStore: IkasCustomerStore): void;
1623
+ /**
1624
+ * Get or initialize the newsletter subscription form with validation for email subscription.
1625
+ *
1626
+ * @ai-category Customer, Registration
1627
+ * @ai-related clearNewsletterSubscriptionForm, createEmailSubscription, canCustomerCreateEmailSubscription
1628
+ *
1629
+ * @param customerStore - The customer store instance
1630
+ * @returns The newsletter subscription form object with validated fields
1631
+ *
1632
+ * @example
1633
+ * ```typescript
1634
+ * import { customerStore, getNewsletterSubscriptionForm, createEmailSubscription } from "@ikas/bp-storefront";
1635
+ *
1636
+ * function NewsletterForm() {
1637
+ * const form = getNewsletterSubscriptionForm(customerStore);
1638
+ *
1639
+ * const handleSubscribe = async () => {
1640
+ * const response = await createEmailSubscription(customerStore, form.email.value);
1641
+ * if (response.isSuccess) {
1642
+ * showToast("Subscribed!");
1643
+ * }
1644
+ * };
1645
+ *
1646
+ * return (
1647
+ * <form>
1648
+ * <input
1649
+ * type="email"
1650
+ * value={form.email.value}
1651
+ * onChange={e => form.email.value = e.target.value}
1652
+ * />
1653
+ * <button onClick={handleSubscribe}>Subscribe</button>
1654
+ * </form>
1655
+ * );
1656
+ * }
1657
+ * ```
1658
+ */
1659
+ export declare function getNewsletterSubscriptionForm(customerStore: IkasCustomerStore): NewsletterSubscriptionForm;
1660
+ /**
1661
+ * Clear the cached newsletter subscription form, forcing a fresh form on next retrieval.
1662
+ *
1663
+ * @ai-category Customer, Registration
1664
+ * @ai-related getNewsletterSubscriptionForm
1665
+ *
1666
+ * @param customerStore - The customer store instance
1667
+ *
1668
+ * @example
1669
+ * ```typescript
1670
+ * import { customerStore, clearNewsletterSubscriptionForm } from "@ikas/bp-storefront";
1671
+ *
1672
+ * function handleNewsletterReset() {
1673
+ * clearNewsletterSubscriptionForm(customerStore);
1674
+ * }
1675
+ * ```
1676
+ */
1677
+ export declare function clearNewsletterSubscriptionForm(customerStore: IkasCustomerStore): void;
1678
+ /**
1679
+ * Get or initialize the order tracking form with validation for looking up orders by email and order number.
1680
+ *
1681
+ * @ai-category Customer
1682
+ * @ai-related clearOrderTrackingForm, getOrderByEmail
1683
+ *
1684
+ * @param customerStore - The customer store instance
1685
+ * @returns The order tracking form object with validated fields
1686
+ *
1687
+ * @example
1688
+ * ```typescript
1689
+ * import { customerStore, getOrderTrackingForm, getOrderByEmail } from "@ikas/bp-storefront";
1690
+ *
1691
+ * function OrderTrackingPage() {
1692
+ * const form = getOrderTrackingForm(customerStore);
1693
+ *
1694
+ * const handleTrack = async () => {
1695
+ * const order = await getOrderByEmail(
1696
+ * customerStore,
1697
+ * form.email.value,
1698
+ * form.orderNumber.value
1699
+ * );
1700
+ * if (order) {
1701
+ * displayOrderDetails(order);
1702
+ * }
1703
+ * };
1704
+ *
1705
+ * return (
1706
+ * <form>
1707
+ * <input
1708
+ * type="email"
1709
+ * value={form.email.value}
1710
+ * onChange={e => form.email.value = e.target.value}
1711
+ * />
1712
+ * <input
1713
+ * value={form.orderNumber.value}
1714
+ * onChange={e => form.orderNumber.value = e.target.value}
1715
+ * />
1716
+ * <button onClick={handleTrack}>Track Order</button>
1717
+ * </form>
1718
+ * );
1719
+ * }
1720
+ * ```
1721
+ */
1722
+ export declare function getOrderTrackingForm(customerStore: IkasCustomerStore): OrderTrackingForm;
1723
+ /**
1724
+ * Clear the cached order tracking form, forcing a fresh form on next retrieval.
1725
+ *
1726
+ * @ai-category Customer
1727
+ * @ai-related getOrderTrackingForm
1728
+ *
1729
+ * @param customerStore - The customer store instance
1730
+ *
1731
+ * @example
1732
+ * ```typescript
1733
+ * import { customerStore, clearOrderTrackingForm } from "@ikas/bp-storefront";
1734
+ *
1735
+ * function handleOrderTrackingReset() {
1736
+ * clearOrderTrackingForm(customerStore);
1737
+ * }
1738
+ * ```
1739
+ */
1740
+ export declare function clearOrderTrackingForm(customerStore: IkasCustomerStore): void;
1741
+ /**
1742
+ * Get or initialize the recover password form with validation for setting a new password.
1743
+ *
1744
+ * @ai-category Customer, Password
1745
+ * @ai-related clearRecoverPasswordForm, recoverPassword
1746
+ *
1747
+ * @param customerStore - The customer store instance
1748
+ * @returns The recover password form object with validated fields
1749
+ *
1750
+ * @example
1751
+ * ```typescript
1752
+ * import { customerStore, getRecoverPasswordForm, recoverPassword } from "@ikas/bp-storefront";
1753
+ *
1754
+ * function RecoverPasswordPage({ token }: { token: string }) {
1755
+ * const form = getRecoverPasswordForm(customerStore);
1756
+ *
1757
+ * const handleSubmit = async () => {
1758
+ * const success = await recoverPassword(
1759
+ * customerStore,
1760
+ * form.password.value,
1761
+ * form.passwordAgain.value,
1762
+ * token
1763
+ * );
1764
+ * if (success) {
1765
+ * showToast("Password changed successfully!");
1766
+ * Router.navigateToPage("LOGIN");
1767
+ * }
1768
+ * };
1769
+ *
1770
+ * return (
1771
+ * <form>
1772
+ * <input
1773
+ * type="password"
1774
+ * value={form.password.value}
1775
+ * onChange={e => form.password.value = e.target.value}
1776
+ * />
1777
+ * <input
1778
+ * type="password"
1779
+ * value={form.passwordAgain.value}
1780
+ * onChange={e => form.passwordAgain.value = e.target.value}
1781
+ * />
1782
+ * <button onClick={handleSubmit}>Set New Password</button>
1783
+ * </form>
1784
+ * );
1785
+ * }
1786
+ * ```
1787
+ */
1788
+ export declare function getRecoverPasswordForm(customerStore: IkasCustomerStore): RecoverPasswordForm;
1789
+ /**
1790
+ * Clear the cached recover password form, forcing a fresh form on next retrieval.
1791
+ *
1792
+ * @ai-category Customer, Password
1793
+ * @ai-related getRecoverPasswordForm
1794
+ *
1795
+ * @param customerStore - The customer store instance
1796
+ *
1797
+ * @example
1798
+ * ```typescript
1799
+ * import { customerStore, clearRecoverPasswordForm } from "@ikas/bp-storefront";
1800
+ *
1801
+ * function handleRecoverPasswordReset() {
1802
+ * clearRecoverPasswordForm(customerStore);
1803
+ * }
1804
+ * ```
1805
+ */
1806
+ export declare function clearRecoverPasswordForm(customerStore: IkasCustomerStore): void;
1807
+ /**
1808
+ * Get the registration form with validation.
1809
+ *
1810
+ * @ai-category Customer
1811
+ * @ai-related register, clearRegisterForm
1812
+ *
1813
+ * @param customerStore - The customer store instance
1814
+ * @returns Register form object with validated fields
1815
+ *
1816
+ * @example
1817
+ * ```typescript
1818
+ * import { customerStore, getRegisterForm, register } from "@ikas/bp-storefront";
1819
+ *
1820
+ * function RegisterForm() {
1821
+ * const form = getRegisterForm(customerStore);
1822
+ *
1823
+ * const handleSubmit = async () => {
1824
+ * const result = await register(
1825
+ * customerStore,
1826
+ * form.firstName.value,
1827
+ * form.lastName.value,
1828
+ * form.email.value,
1829
+ * form.password.value,
1830
+ * form.isMarketingAccepted.value
1831
+ * );
1832
+ *
1833
+ * if (result.isSuccess) {
1834
+ * Router.navigateToPage("ACCOUNT");
1835
+ * }
1836
+ * };
1837
+ *
1838
+ * return <form>...</form>;
1839
+ * }
1840
+ * ```
1841
+ */
1842
+ export declare function getRegisterForm(customerStore: IkasCustomerStore): RegisterForm;
1843
+ /**
1844
+ * Clear the cached register form, forcing a fresh form on next retrieval.
1845
+ *
1846
+ * @ai-category Customer, Registration
1847
+ * @ai-related getRegisterForm
1848
+ *
1849
+ * @param customerStore - The customer store instance
1850
+ *
1851
+ * @example
1852
+ * ```typescript
1853
+ * import { customerStore, clearRegisterForm } from "@ikas/bp-storefront";
1854
+ *
1855
+ * function handleRegisterFormReset() {
1856
+ * clearRegisterForm(customerStore);
1857
+ * }
1858
+ * ```
1859
+ */
1860
+ export declare function clearRegisterForm(customerStore: IkasCustomerStore): void;
1861
+ /**
1862
+ * Create and return a new, empty address form with validation, wrapped in MobX observability.
1863
+ *
1864
+ * @ai-category Customer, Address
1865
+ * @ai-related deleteCustomerAddress, saveCustomer
1866
+ *
1867
+ * @param customerStore - The customer store instance
1868
+ * @returns A new observable address form object with validated fields
1869
+ *
1870
+ * @example
1871
+ * ```typescript
1872
+ * import { customerStore, getEmptyAddressForm, saveCustomer } from "@ikas/bp-storefront";
1873
+ *
1874
+ * function AddAddressPage() {
1875
+ * const form = getEmptyAddressForm(customerStore);
1876
+ *
1877
+ * const handleSave = async () => {
1878
+ * const customer = { ...customerStore.customer! };
1879
+ * customer.addresses = [...(customer.addresses || []), formToAddress(form)];
1880
+ * await saveCustomer(customerStore, customer);
1881
+ * };
1882
+ *
1883
+ * return (
1884
+ * <form>
1885
+ * <input
1886
+ * value={form.addressLine1.value}
1887
+ * onChange={e => form.addressLine1.value = e.target.value}
1888
+ * />
1889
+ * <button onClick={handleSave}>Save Address</button>
1890
+ * </form>
1891
+ * );
1892
+ * }
1893
+ * ```
1894
+ */
1895
+ export declare function getEmptyAddressForm(customerStore: IkasCustomerStore): AddressForm;
1896
+ /**
1897
+ * Get the order details for the current order detail page based on the URL path.
1898
+ *
1899
+ * @ai-category Customer
1900
+ * @ai-related getOrder, getOrders
1901
+ *
1902
+ * @param customerStore - The customer store instance
1903
+ * @returns The order object for the current page, or undefined if not on an order detail page
1904
+ *
1905
+ * @example
1906
+ * ```typescript
1907
+ * import { customerStore, getOrderDetailsOfPage } from "@ikas/bp-storefront";
1908
+ *
1909
+ * async function OrderDetailPage() {
1910
+ * const order = await getOrderDetailsOfPage(customerStore);
1911
+ * if (!order) {
1912
+ * return <p>Order not found</p>;
1913
+ * }
1914
+ * return <OrderDetails order={order} />;
1915
+ * }
1916
+ * ```
1917
+ */
1918
+ export declare function getOrderDetailsOfPage(customerStore: IkasCustomerStore): Promise<IkasOrder | null | undefined>;
1919
+ export {};