@ikas/storefront 5.0.0-beta.17 → 5.0.0-beta.19

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 (539) hide show
  1. package/build/analytics/analytics.d.ts +32 -37
  2. package/build/analytics/analytics.js +1 -1
  3. package/build/analytics/events.js +1 -1
  4. package/build/analytics/facebookPixel.d.ts +11 -15
  5. package/build/analytics/facebookPixel.js +1 -1
  6. package/build/analytics/googleAnalytics.d.ts +10 -13
  7. package/build/analytics/googleAnalytics.js +1 -1
  8. package/build/analytics/googleTagManager.d.ts +188 -191
  9. package/build/analytics/googleTagManager.js +1 -1
  10. package/build/analytics/googleUniversal.d.ts +5 -8
  11. package/build/analytics/googleUniversal.js +1 -1
  12. package/build/analytics/head/index.js +1 -1
  13. package/build/analytics/ikas.d.ts +33 -40
  14. package/build/analytics/ikas.js +1 -1
  15. package/build/analytics/index.d.ts +1 -1
  16. package/build/analytics/tiktokPixel.d.ts +9 -12
  17. package/build/analytics/tiktokPixel.js +1 -1
  18. package/build/components/checkout/components/address-form/index.js +1 -1
  19. package/build/components/checkout/components/address-form/model.d.ts +6 -6
  20. package/build/components/checkout/components/address-form/model.js +1 -1
  21. package/build/components/checkout/components/cart-summary/cart-item/index.js +1 -1
  22. package/build/components/checkout/components/cart-summary/index.js +1 -1
  23. package/build/components/checkout/components/customer-addresses/index.js +1 -1
  24. package/build/components/checkout/components/customer-addresses/model.d.ts +4 -1
  25. package/build/components/checkout/components/customer-addresses/model.js +1 -1
  26. package/build/components/checkout/components/delivery-methods/index.js +1 -1
  27. package/build/components/checkout/components/epaykolay-button/index.d.ts +5 -0
  28. package/build/components/checkout/components/epaykolay-button/index.js +1 -0
  29. package/build/components/checkout/components/epaykolay-button/style.module.scss.js +1 -0
  30. package/build/components/checkout/components/error/customer-login-required-error/index.js +1 -1
  31. package/build/components/checkout/components/error/index.js +1 -1
  32. package/build/components/checkout/components/error/no-shipping-error/index.js +1 -1
  33. package/build/components/checkout/components/error/payment-error/index.d.ts +1 -1
  34. package/build/components/checkout/components/error/payment-error/index.js +1 -1
  35. package/build/components/checkout/components/error/stock-error/index.d.ts +2 -1
  36. package/build/components/checkout/components/error/stock-error/index.js +1 -1
  37. package/build/components/checkout/components/error/unknown-error/index.d.ts +1 -1
  38. package/build/components/checkout/components/error/unknown-error/index.js +1 -1
  39. package/build/components/checkout/components/expandable-section/index.js +1 -1
  40. package/build/components/checkout/components/form-item/index.js +1 -1
  41. package/build/components/checkout/components/klarna/index.js +1 -1
  42. package/build/components/checkout/components/master-pass/credit-card-form/index.js +1 -1
  43. package/build/components/checkout/components/master-pass/link-card-to-client/index.js +1 -1
  44. package/build/components/checkout/components/master-pass/modal-otp/index.js +1 -1
  45. package/build/components/checkout/components/offer-product/index.d.ts +2 -1
  46. package/build/components/checkout/components/offer-product/index.js +1 -1
  47. package/build/components/checkout/components/paypal/index.d.ts +7 -0
  48. package/build/components/checkout/components/paypal/index.js +1 -0
  49. package/build/components/checkout/components/paypal/style.module.scss.js +1 -0
  50. package/build/components/checkout/components/quick-registration/completed.js +1 -1
  51. package/build/components/checkout/components/quick-registration/index.js +1 -1
  52. package/build/components/checkout/components/quick-registration/model.js +1 -1
  53. package/build/components/checkout/components/svg/epaykolay.d.ts +6 -0
  54. package/build/components/checkout/components/svg/epaykolay.js +1 -0
  55. package/build/components/checkout/index.d.ts +1 -1
  56. package/build/components/checkout/index.js +1 -1
  57. package/build/components/checkout/model.d.ts +22 -44
  58. package/build/components/checkout/model.js +1 -1
  59. package/build/components/checkout/modelMasterPass.d.ts +13 -23
  60. package/build/components/checkout/modelMasterPass.js +1 -1
  61. package/build/components/checkout/steps/step-info/index.js +1 -1
  62. package/build/components/checkout/steps/step-payment/billing-address/index.js +1 -1
  63. package/build/components/checkout/steps/step-payment/index.js +1 -1
  64. package/build/components/checkout/steps/step-payment/payment-gateways/index.js +1 -1
  65. package/build/components/checkout/steps/step-payment/payment-gateways/installments/index.js +1 -1
  66. package/build/components/checkout/steps/step-payment/style.module.scss.js +1 -1
  67. package/build/components/checkout/steps/step-shipping/index.js +1 -1
  68. package/build/components/checkout/steps/step-success/index.js +1 -1
  69. package/build/components/checkout/style.module.scss.js +1 -1
  70. package/build/components/checkout/types.d.ts +29 -0
  71. package/build/components/checkout/types.js +1 -0
  72. package/build/components/google-captcha/index.js +1 -1
  73. package/build/components/image/index.d.ts +1 -1
  74. package/build/components/image/index.js +1 -1
  75. package/build/components/link/index.js +1 -1
  76. package/build/components/page/ThemeComponent.js +1 -1
  77. package/build/components/page/functions.d.ts +3 -0
  78. package/build/components/page/functions.js +1 -0
  79. package/build/components/page/head.d.ts +1 -1
  80. package/build/components/page/head.js +1 -1
  81. package/build/components/page/index.d.ts +4 -3
  82. package/build/components/page/index.js +1 -1
  83. package/build/components/page-editor/ThemeComponentEditor.js +1 -1
  84. package/build/components/page-editor/index.js +1 -1
  85. package/build/components/page-editor/model.d.ts +5 -1
  86. package/build/components/page-editor/model.js +1 -1
  87. package/build/ext/@ikas/fe-api-client/build/utils/api.js +1 -1
  88. package/build/hooks/index.d.ts +0 -1
  89. package/build/hooks/useCustomerReviews.d.ts +3 -4
  90. package/build/hooks/useCustomerReviews.js +1 -1
  91. package/build/index.d.ts +2 -0
  92. package/build/index.js +1 -1
  93. package/build/model-helpers/index.d.ts +5 -0
  94. package/build/model-helpers/order/line-item/option/value/functions.d.ts +3 -0
  95. package/build/model-helpers/order/line-item/option/value/functions.js +1 -0
  96. package/build/model-helpers/product/attribute-value/functions.d.ts +2 -0
  97. package/build/model-helpers/product/attribute-value/functions.js +1 -0
  98. package/build/model-helpers/product/functions.d.ts +10 -0
  99. package/build/model-helpers/product/functions.js +1 -0
  100. package/build/model-helpers/product/option-set/option/functions.d.ts +2 -0
  101. package/build/model-helpers/product/option-set/option/functions.js +1 -0
  102. package/build/model-helpers/product/variant/functions.d.ts +2 -0
  103. package/build/model-helpers/product/variant/functions.js +1 -0
  104. package/build/models/data/checkout/index.d.ts +4 -21
  105. package/build/models/data/index.d.ts +7 -138
  106. package/build/models/data/localized-customer-address/functions.d.ts +65 -0
  107. package/build/models/data/localized-customer-address/functions.js +1 -0
  108. package/build/models/data/localized-customer-address/index.d.ts +6 -0
  109. package/build/models/data/localized-order-address/functions.d.ts +63 -0
  110. package/build/models/data/localized-order-address/functions.js +1 -0
  111. package/build/models/data/localized-order-address/index.d.ts +6 -0
  112. package/build/models/data/review-form/index.d.ts +6 -0
  113. package/build/models/data/theme-json/component/index.d.ts +1 -0
  114. package/build/models/data/theme-json/component/index.js +1 -1
  115. package/build/models/data/theme-json/custom-data/index.d.ts +1 -2
  116. package/build/models/data/theme-json/custom-data/index.js +1 -1
  117. package/build/models/data/theme-json/settings/color/index.js +1 -1
  118. package/build/models/index.d.ts +1 -0
  119. package/build/models/ui/blog-category-list/functions.d.ts +6 -0
  120. package/build/models/ui/blog-category-list/functions.js +1 -0
  121. package/build/models/ui/blog-category-list/index.d.ts +8 -42
  122. package/build/models/ui/blog-category-list/index.js +1 -1
  123. package/build/models/ui/blog-list/functions.d.ts +6 -0
  124. package/build/models/ui/blog-list/functions.js +1 -0
  125. package/build/models/ui/blog-list/index.d.ts +9 -45
  126. package/build/models/ui/blog-list/index.js +1 -1
  127. package/build/models/ui/brand-list/functions.d.ts +8 -0
  128. package/build/models/ui/brand-list/functions.js +1 -0
  129. package/build/models/ui/brand-list/index.d.ts +9 -48
  130. package/build/models/ui/brand-list/index.js +1 -1
  131. package/build/models/ui/category-list/functions.d.ts +8 -0
  132. package/build/models/ui/category-list/functions.js +1 -0
  133. package/build/models/ui/category-list/index.d.ts +9 -48
  134. package/build/models/ui/category-list/index.js +1 -1
  135. package/build/models/ui/customer-review-list/functions.d.ts +7 -0
  136. package/build/models/ui/customer-review-list/functions.js +1 -0
  137. package/build/models/ui/customer-review-list/index.d.ts +8 -40
  138. package/build/models/ui/customer-review-summary-list/functions.d.ts +7 -0
  139. package/build/models/ui/customer-review-summary-list/functions.js +1 -0
  140. package/build/models/ui/customer-review-summary-list/index.d.ts +7 -39
  141. package/build/models/ui/index.d.ts +17 -10
  142. package/build/models/ui/list-commons/index.d.ts +13 -0
  143. package/build/models/ui/list-commons/index.js +1 -0
  144. package/build/models/ui/navigation-link/index.d.ts +3 -3
  145. package/build/models/ui/navigation-link/index.js +1 -1
  146. package/build/models/ui/product-attribute-detail/index.d.ts +1 -1
  147. package/build/models/ui/product-attribute-detail/index.js +1 -1
  148. package/build/models/ui/product-attribute-list/index.js +1 -1
  149. package/build/models/ui/product-list/functions.d.ts +32 -0
  150. package/build/models/ui/product-list/functions.js +1 -0
  151. package/build/models/ui/product-list/index.d.ts +18 -110
  152. package/build/models/ui/product-list/index.js +1 -1
  153. package/build/models/ui/raffle-list/functions.d.ts +6 -0
  154. package/build/models/ui/raffle-list/functions.js +1 -0
  155. package/build/models/ui/raffle-list/index.d.ts +14 -50
  156. package/build/models/ui/validator/form/account-info.js +1 -1
  157. package/build/models/ui/validator/form/address.js +1 -1
  158. package/build/models/ui/validator/form/contact-form.js +1 -1
  159. package/build/models/ui/validator/form/customer-review.js +1 -1
  160. package/build/models/ui/validator/form/forgot-password.js +1 -1
  161. package/build/models/ui/validator/form/ikas-address.d.ts +32 -20
  162. package/build/models/ui/validator/form/ikas-address.js +1 -1
  163. package/build/models/ui/validator/form/login.js +1 -1
  164. package/build/models/ui/validator/form/raffle-form.js +1 -1
  165. package/build/models/ui/validator/form/recover-password.js +1 -1
  166. package/build/models/ui/validator/form/register.d.ts +10 -1
  167. package/build/models/ui/validator/form/register.js +1 -1
  168. package/build/page-data-init/index.d.ts +7 -18
  169. package/build/page-data-init/index.js +1 -1
  170. package/build/pages/account/activate.d.ts +4 -0
  171. package/build/pages/account/activate.js +1 -0
  172. package/build/pages/checkout.js +1 -1
  173. package/build/pages/index.d.ts +1 -0
  174. package/build/store/analytics/index.d.ts +9 -0
  175. package/build/store/analytics/index.js +1 -0
  176. package/build/store/base/functions.d.ts +7 -0
  177. package/build/store/base/functions.js +1 -0
  178. package/build/store/{base.d.ts → base/index.d.ts} +7 -17
  179. package/build/store/base/index.js +1 -0
  180. package/build/store/base/public.d.ts +1 -0
  181. package/build/store/base/public.js +1 -0
  182. package/build/store/cart/functions.d.ts +24 -0
  183. package/build/store/cart/functions.js +1 -0
  184. package/build/store/cart/index.d.ts +7 -28
  185. package/build/store/cart/index.js +1 -1
  186. package/build/store/cart/public.d.ts +1 -0
  187. package/build/store/cart/public.js +1 -0
  188. package/build/store/customer/account-auth/data.d.ts +4 -0
  189. package/build/store/customer/account-auth/data.js +1 -0
  190. package/build/store/customer/account-auth/functions.d.ts +24 -0
  191. package/build/store/customer/account-auth/functions.js +1 -0
  192. package/build/store/customer/account-auth/public.d.ts +1 -0
  193. package/build/store/customer/captcha/data.d.ts +3 -0
  194. package/build/store/customer/captcha/data.js +1 -0
  195. package/build/store/customer/captcha/functions.d.ts +5 -0
  196. package/build/store/customer/captcha/functions.js +1 -0
  197. package/build/store/customer/captcha/public.d.ts +1 -0
  198. package/build/store/customer/consent/data.d.ts +3 -0
  199. package/build/store/customer/consent/data.js +1 -0
  200. package/build/store/customer/consent/functions.d.ts +6 -0
  201. package/build/store/customer/consent/functions.js +1 -0
  202. package/build/store/customer/consent/public.d.ts +1 -0
  203. package/build/store/customer/functions.d.ts +4 -0
  204. package/build/store/customer/functions.js +1 -0
  205. package/build/store/customer/index.d.ts +8 -82
  206. package/build/store/customer/index.js +1 -1
  207. package/build/store/customer/marketing/data.d.ts +3 -0
  208. package/build/store/customer/marketing/data.js +1 -0
  209. package/build/store/customer/marketing/functions.d.ts +5 -0
  210. package/build/store/customer/marketing/functions.js +1 -0
  211. package/build/store/customer/marketing/public.d.ts +1 -0
  212. package/build/store/customer/order/data.d.ts +4 -0
  213. package/build/store/customer/order/data.js +1 -0
  214. package/build/store/customer/order/functions.d.ts +11 -0
  215. package/build/store/customer/order/functions.js +1 -0
  216. package/build/store/customer/order/public.d.ts +1 -0
  217. package/build/store/customer/product/data.d.ts +17 -0
  218. package/build/store/customer/product/data.js +1 -0
  219. package/build/store/customer/product/functions.d.ts +20 -0
  220. package/build/store/customer/product/functions.js +1 -0
  221. package/build/store/customer/product/public.d.ts +1 -0
  222. package/build/store/customer/public.d.ts +8 -0
  223. package/build/store/customer/public.js +1 -0
  224. package/build/store/customer/raffle/functions.d.ts +1 -0
  225. package/build/store/customer/raffle/functions.js +1 -0
  226. package/build/store/customer/raffle/public.d.ts +1 -0
  227. package/build/store/index.d.ts +9 -4
  228. package/build/utils/constants.js +1 -1
  229. package/build/utils/helper.d.ts +1 -1
  230. package/build/utils/helper.js +1 -1
  231. package/build/utils/index.d.ts +1 -2
  232. package/package.json +17 -13
  233. package/build/ext/@builder.io/partytown/integration/index.mjs.js +0 -1
  234. package/build/ext/@builder.io/partytown/react/index.mjs.js +0 -1
  235. package/build/hooks/useStore.d.ts +0 -2
  236. package/build/hooks/useStore.js +0 -1
  237. package/build/models/data/base/index.d.ts +0 -8
  238. package/build/models/data/base/index.js +0 -1
  239. package/build/models/data/blog/category/index.d.ts +0 -12
  240. package/build/models/data/blog/category/index.js +0 -1
  241. package/build/models/data/blog/content/index.d.ts +0 -6
  242. package/build/models/data/blog/content/index.js +0 -1
  243. package/build/models/data/blog/index.d.ts +0 -27
  244. package/build/models/data/blog/index.js +0 -1
  245. package/build/models/data/blog/meta-data/index.d.ts +0 -16
  246. package/build/models/data/blog/meta-data/index.js +0 -1
  247. package/build/models/data/blog/tag/index.d.ts +0 -6
  248. package/build/models/data/blog/tag/index.js +0 -1
  249. package/build/models/data/blog/writer/index.d.ts +0 -6
  250. package/build/models/data/blog/writer/index.js +0 -1
  251. package/build/models/data/brand/index.d.ts +0 -26
  252. package/build/models/data/brand/index.js +0 -1
  253. package/build/models/data/brand/translation/index.d.ts +0 -7
  254. package/build/models/data/brand/translation/index.js +0 -1
  255. package/build/models/data/campaign-offer/index.d.ts +0 -21
  256. package/build/models/data/campaign-offer/index.js +0 -1
  257. package/build/models/data/campaign-offer/product/index.d.ts +0 -25
  258. package/build/models/data/campaign-offer/product/index.js +0 -1
  259. package/build/models/data/cart/available-shipping-method/index.d.ts +0 -10
  260. package/build/models/data/cart/available-shipping-method/index.js +0 -1
  261. package/build/models/data/cart/campaign-offer/index.d.ts +0 -16
  262. package/build/models/data/cart/campaign-offer/index.js +0 -1
  263. package/build/models/data/cart/index.d.ts +0 -14
  264. package/build/models/data/cart/index.js +0 -1
  265. package/build/models/data/category/index.d.ts +0 -22
  266. package/build/models/data/category/index.js +0 -1
  267. package/build/models/data/category/path-item/index.d.ts +0 -14
  268. package/build/models/data/category/path-item/index.js +0 -1
  269. package/build/models/data/category/translations/index.d.ts +0 -7
  270. package/build/models/data/category/translations/index.js +0 -1
  271. package/build/models/data/checkout/country-settings-model.d.ts +0 -141
  272. package/build/models/data/checkout/country-settings-model.js +0 -1
  273. package/build/models/data/checkout/index.js +0 -1
  274. package/build/models/data/checkout-settings/index.d.ts +0 -21
  275. package/build/models/data/checkout-settings/index.js +0 -1
  276. package/build/models/data/checkout-settings/option/index.d.ts +0 -6
  277. package/build/models/data/checkout-settings/option/index.js +0 -1
  278. package/build/models/data/checkout-settings/price/index.d.ts +0 -7
  279. package/build/models/data/checkout-settings/price/index.js +0 -1
  280. package/build/models/data/city/index.d.ts +0 -12
  281. package/build/models/data/city/index.js +0 -1
  282. package/build/models/data/contact-form/index.d.ts +0 -9
  283. package/build/models/data/contact-form/index.js +0 -1
  284. package/build/models/data/country/index.d.ts +0 -18
  285. package/build/models/data/country/index.js +0 -1
  286. package/build/models/data/country/location-translations/index.d.ts +0 -7
  287. package/build/models/data/customer/address/city/index.d.ts +0 -7
  288. package/build/models/data/customer/address/city/index.js +0 -1
  289. package/build/models/data/customer/address/country/index.d.ts +0 -9
  290. package/build/models/data/customer/address/country/index.js +0 -1
  291. package/build/models/data/customer/address/district/index.d.ts +0 -7
  292. package/build/models/data/customer/address/district/index.js +0 -1
  293. package/build/models/data/customer/address/ikas-localized-customer-address.d.ts +0 -50
  294. package/build/models/data/customer/address/ikas-localized-customer-address.js +0 -1
  295. package/build/models/data/customer/address/index.d.ts +0 -40
  296. package/build/models/data/customer/address/index.js +0 -1
  297. package/build/models/data/customer/address/state/index.d.ts +0 -7
  298. package/build/models/data/customer/address/state/index.js +0 -1
  299. package/build/models/data/customer/attribute/index.d.ts +0 -18
  300. package/build/models/data/customer/attribute/index.js +0 -1
  301. package/build/models/data/customer/attribute/option/index.d.ts +0 -9
  302. package/build/models/data/customer/attribute/option/index.js +0 -1
  303. package/build/models/data/customer/attribute/sales-channel/index.d.ts +0 -8
  304. package/build/models/data/customer/attribute/sales-channel/index.js +0 -1
  305. package/build/models/data/customer/attribute/translation/index.d.ts +0 -9
  306. package/build/models/data/customer/attribute/translation/index.js +0 -1
  307. package/build/models/data/customer/attribute/translation/option/index.d.ts +0 -6
  308. package/build/models/data/customer/attribute/translation/option/index.js +0 -1
  309. package/build/models/data/customer/attribute/value/index.d.ts +0 -11
  310. package/build/models/data/customer/attribute/value/index.js +0 -1
  311. package/build/models/data/customer/index.d.ts +0 -38
  312. package/build/models/data/customer/index.js +0 -1
  313. package/build/models/data/customer/review/index.d.ts +0 -24
  314. package/build/models/data/customer/review/index.js +0 -1
  315. package/build/models/data/customer/review/settings/index.d.ts +0 -6
  316. package/build/models/data/customer/review/settings/index.js +0 -1
  317. package/build/models/data/customer/review/summary/index.d.ts +0 -10
  318. package/build/models/data/customer/review/summary/index.js +0 -1
  319. package/build/models/data/customer/review/summary/star/index.d.ts +0 -6
  320. package/build/models/data/customer/review/summary/star/index.js +0 -1
  321. package/build/models/data/district/index.d.ts +0 -12
  322. package/build/models/data/district/index.js +0 -1
  323. package/build/models/data/favorite-product/index.d.ts +0 -7
  324. package/build/models/data/favorite-product/index.js +0 -1
  325. package/build/models/data/filter-category/index.d.ts +0 -12
  326. package/build/models/data/filter-category/index.js +0 -1
  327. package/build/models/data/html-meta-data/index.d.ts +0 -28
  328. package/build/models/data/html-meta-data/index.js +0 -1
  329. package/build/models/data/html-meta-data/translations/index.d.ts +0 -7
  330. package/build/models/data/html-meta-data/translations/index.js +0 -1
  331. package/build/models/data/image/index.d.ts +0 -10
  332. package/build/models/data/image/index.js +0 -1
  333. package/build/models/data/last-viewed-product/index.d.ts +0 -6
  334. package/build/models/data/last-viewed-product/index.js +0 -1
  335. package/build/models/data/merchant-settings/index.d.ts +0 -12
  336. package/build/models/data/merchant-settings/index.js +0 -1
  337. package/build/models/data/order/address/city/index.d.ts +0 -7
  338. package/build/models/data/order/address/city/index.js +0 -1
  339. package/build/models/data/order/address/country/index.d.ts +0 -9
  340. package/build/models/data/order/address/country/index.js +0 -1
  341. package/build/models/data/order/address/district/index.d.ts +0 -7
  342. package/build/models/data/order/address/district/index.js +0 -1
  343. package/build/models/data/order/address/ikas-localized-order-address.d.ts +0 -32
  344. package/build/models/data/order/address/ikas-localized-order-address.js +0 -1
  345. package/build/models/data/order/address/index.d.ts +0 -37
  346. package/build/models/data/order/address/index.js +0 -1
  347. package/build/models/data/order/address/state/index.d.ts +0 -7
  348. package/build/models/data/order/address/state/index.js +0 -1
  349. package/build/models/data/order/adjustment/applied-order-line/index.d.ts +0 -8
  350. package/build/models/data/order/adjustment/applied-order-line/index.js +0 -1
  351. package/build/models/data/order/adjustment/index.d.ts +0 -15
  352. package/build/models/data/order/adjustment/index.js +0 -1
  353. package/build/models/data/order/customer/index.d.ts +0 -11
  354. package/build/models/data/order/customer/index.js +0 -1
  355. package/build/models/data/order/gift-line/index.d.ts +0 -6
  356. package/build/models/data/order/gift-line/index.js +0 -1
  357. package/build/models/data/order/index.d.ts +0 -69
  358. package/build/models/data/order/index.js +0 -1
  359. package/build/models/data/order/invoice/index.d.ts +0 -12
  360. package/build/models/data/order/invoice/index.js +0 -1
  361. package/build/models/data/order/line-item/base-unit/index.d.ts +0 -9
  362. package/build/models/data/order/line-item/base-unit/index.js +0 -1
  363. package/build/models/data/order/line-item/base-unit/unit-type/index.d.ts +0 -6
  364. package/build/models/data/order/line-item/base-unit/unit-type/index.js +0 -1
  365. package/build/models/data/order/line-item/discount/index.d.ts +0 -11
  366. package/build/models/data/order/line-item/discount/index.js +0 -1
  367. package/build/models/data/order/line-item/index.d.ts +0 -46
  368. package/build/models/data/order/line-item/index.js +0 -1
  369. package/build/models/data/order/line-item/option/index.d.ts +0 -10
  370. package/build/models/data/order/line-item/option/index.js +0 -1
  371. package/build/models/data/order/line-item/option/value/index.d.ts +0 -9
  372. package/build/models/data/order/line-item/option/value/index.js +0 -1
  373. package/build/models/data/order/line-item/variant/brand/index.d.ts +0 -6
  374. package/build/models/data/order/line-item/variant/brand/index.js +0 -1
  375. package/build/models/data/order/line-item/variant/category/index.d.ts +0 -12
  376. package/build/models/data/order/line-item/variant/category/index.js +0 -1
  377. package/build/models/data/order/line-item/variant/index.d.ts +0 -32
  378. package/build/models/data/order/line-item/variant/index.js +0 -1
  379. package/build/models/data/order/line-item/variant/price/index.d.ts +0 -10
  380. package/build/models/data/order/line-item/variant/price/index.js +0 -1
  381. package/build/models/data/order/line-item/variant/tag/index.d.ts +0 -6
  382. package/build/models/data/order/line-item/variant/tag/index.js +0 -1
  383. package/build/models/data/order/line-item/variant/unit/index.d.ts +0 -6
  384. package/build/models/data/order/line-item/variant/unit/index.js +0 -1
  385. package/build/models/data/order/line-item/variant/value/index.d.ts +0 -11
  386. package/build/models/data/order/line-item/variant/value/index.js +0 -1
  387. package/build/models/data/order/package/index.d.ts +0 -16
  388. package/build/models/data/order/package/index.js +0 -1
  389. package/build/models/data/order/package/tracking-info/index.d.ts +0 -9
  390. package/build/models/data/order/package/tracking-info/index.js +0 -1
  391. package/build/models/data/order/payment-method/index.d.ts +0 -9
  392. package/build/models/data/order/payment-method/index.js +0 -1
  393. package/build/models/data/order/refund/index.d.ts +0 -7
  394. package/build/models/data/order/refund/index.js +0 -1
  395. package/build/models/data/order/refund/line-item/index.d.ts +0 -6
  396. package/build/models/data/order/refund/line-item/index.js +0 -1
  397. package/build/models/data/order/refund/settings/index.d.ts +0 -7
  398. package/build/models/data/order/refund/settings/index.js +0 -1
  399. package/build/models/data/order/shipping-line/index.d.ts +0 -12
  400. package/build/models/data/order/shipping-line/index.js +0 -1
  401. package/build/models/data/order/tax-line/index.d.ts +0 -6
  402. package/build/models/data/order/tax-line/index.js +0 -1
  403. package/build/models/data/order/transaction/error/index.d.ts +0 -7
  404. package/build/models/data/order/transaction/error/index.js +0 -1
  405. package/build/models/data/order/transaction/index.d.ts +0 -26
  406. package/build/models/data/order/transaction/index.js +0 -1
  407. package/build/models/data/order/transaction/payment-method-detail/index.d.ts +0 -13
  408. package/build/models/data/order/transaction/payment-method-detail/index.js +0 -1
  409. package/build/models/data/order/transaction/payment-method-detail/installment-price/index.d.ts +0 -9
  410. package/build/models/data/order/transaction/payment-method-detail/installment-price/index.js +0 -1
  411. package/build/models/data/payment-gateway/additional-price/index.d.ts +0 -9
  412. package/build/models/data/payment-gateway/additional-price/index.js +0 -1
  413. package/build/models/data/payment-gateway/index.d.ts +0 -31
  414. package/build/models/data/payment-gateway/index.js +0 -1
  415. package/build/models/data/payment-gateway/settings/index.d.ts +0 -10
  416. package/build/models/data/payment-gateway/settings/index.js +0 -1
  417. package/build/models/data/payment-gateway/translation/index.d.ts +0 -7
  418. package/build/models/data/payment-gateway/translation/index.js +0 -1
  419. package/build/models/data/product/attribute/index.d.ts +0 -15
  420. package/build/models/data/product/attribute/index.js +0 -1
  421. package/build/models/data/product/attribute/option/index.d.ts +0 -6
  422. package/build/models/data/product/attribute/option/index.js +0 -1
  423. package/build/models/data/product/attribute/table-cell/index.d.ts +0 -6
  424. package/build/models/data/product/attribute/table-cell/index.js +0 -1
  425. package/build/models/data/product/attribute/table-template/index.d.ts +0 -7
  426. package/build/models/data/product/attribute/table-template/index.js +0 -1
  427. package/build/models/data/product/attribute/translation/index.d.ts +0 -13
  428. package/build/models/data/product/attribute/translation/index.js +0 -1
  429. package/build/models/data/product/attribute-value/index.d.ts +0 -28
  430. package/build/models/data/product/attribute-value/index.js +0 -1
  431. package/build/models/data/product/back-in-stock-settings/index.d.ts +0 -5
  432. package/build/models/data/product/back-in-stock-settings/index.js +0 -1
  433. package/build/models/data/product/base-unit/index.d.ts +0 -12
  434. package/build/models/data/product/base-unit/index.js +0 -1
  435. package/build/models/data/product/campaign/data/index.d.ts +0 -27
  436. package/build/models/data/product/campaign/data/index.js +0 -1
  437. package/build/models/data/product/campaign/filter/index.d.ts +0 -7
  438. package/build/models/data/product/campaign/filter/index.js +0 -1
  439. package/build/models/data/product/campaign/index.d.ts +0 -7
  440. package/build/models/data/product/campaign/index.js +0 -1
  441. package/build/models/data/product/campaign/product-buyx-then-gety/index.d.ts +0 -20
  442. package/build/models/data/product/campaign/product-buyx-then-gety/index.js +0 -1
  443. package/build/models/data/product/campaign/product-campaign-date-range-field/index.d.ts +0 -6
  444. package/build/models/data/product/campaign/product-campaign-date-range-field/index.js +0 -1
  445. package/build/models/data/product/campaign/product-fixed-discount/index.d.ts +0 -14
  446. package/build/models/data/product/campaign/product-fixed-discount/index.js +0 -1
  447. package/build/models/data/product/filter/index.d.ts +0 -82
  448. package/build/models/data/product/filter/index.js +0 -1
  449. package/build/models/data/product/image/index.d.ts +0 -10
  450. package/build/models/data/product/image/index.js +0 -1
  451. package/build/models/data/product/index.d.ts +0 -77
  452. package/build/models/data/product/index.js +0 -1
  453. package/build/models/data/product/option-set/index.d.ts +0 -29
  454. package/build/models/data/product/option-set/index.js +0 -1
  455. package/build/models/data/product/option-set/option/index.d.ts +0 -70
  456. package/build/models/data/product/option-set/option/index.js +0 -1
  457. package/build/models/data/product/star/index.d.ts +0 -6
  458. package/build/models/data/product/star/index.js +0 -1
  459. package/build/models/data/product/stock-location/index.d.ts +0 -8
  460. package/build/models/data/product/stock-location/index.js +0 -1
  461. package/build/models/data/product/tag/index.d.ts +0 -6
  462. package/build/models/data/product/tag/index.js +0 -1
  463. package/build/models/data/product/variant/index.d.ts +0 -31
  464. package/build/models/data/product/variant/index.js +0 -1
  465. package/build/models/data/product/variant/price/index.d.ts +0 -19
  466. package/build/models/data/product/variant/price/index.js +0 -1
  467. package/build/models/data/product/variant/unit/index.d.ts +0 -6
  468. package/build/models/data/product/variant/unit/index.js +0 -1
  469. package/build/models/data/product/variant-type/index.d.ts +0 -8
  470. package/build/models/data/product/variant-type/index.js +0 -1
  471. package/build/models/data/raffle/index.d.ts +0 -63
  472. package/build/models/data/raffle/index.js +0 -1
  473. package/build/models/data/sales-channel/index.d.ts +0 -19
  474. package/build/models/data/sales-channel/index.js +0 -1
  475. package/build/models/data/state/index.d.ts +0 -11
  476. package/build/models/data/state/index.js +0 -1
  477. package/build/models/data/state/location-translations/index.d.ts +0 -7
  478. package/build/models/data/stock-location/address/city/index.d.ts +0 -7
  479. package/build/models/data/stock-location/address/city/index.js +0 -1
  480. package/build/models/data/stock-location/address/country/index.d.ts +0 -7
  481. package/build/models/data/stock-location/address/country/index.js +0 -1
  482. package/build/models/data/stock-location/address/district/index.d.ts +0 -7
  483. package/build/models/data/stock-location/address/district/index.js +0 -1
  484. package/build/models/data/stock-location/address/index.d.ts +0 -15
  485. package/build/models/data/stock-location/address/index.js +0 -1
  486. package/build/models/data/stock-location/address/state/index.d.ts +0 -7
  487. package/build/models/data/stock-location/address/state/index.js +0 -1
  488. package/build/models/data/stock-location/available/index.d.ts +0 -10
  489. package/build/models/data/stock-location/available/index.js +0 -1
  490. package/build/models/data/stock-location/index.d.ts +0 -14
  491. package/build/models/data/stock-location/index.js +0 -1
  492. package/build/models/data/storefront/domain/index.d.ts +0 -9
  493. package/build/models/data/storefront/domain/index.js +0 -1
  494. package/build/models/data/storefront/index.d.ts +0 -30
  495. package/build/models/data/storefront/index.js +0 -1
  496. package/build/models/data/storefront/localization/index.d.ts +0 -8
  497. package/build/models/data/storefront/localization/index.js +0 -1
  498. package/build/models/data/storefront/meta-templates/index.d.ts +0 -8
  499. package/build/models/data/storefront/meta-templates/index.js +0 -1
  500. package/build/models/data/storefront/routing/dynamic-currency/index.d.ts +0 -6
  501. package/build/models/data/storefront/routing/dynamic-currency/index.js +0 -1
  502. package/build/models/data/storefront/routing/index.d.ts +0 -14
  503. package/build/models/data/storefront/routing/index.js +0 -1
  504. package/build/models/data/storefront/theme/index.d.ts +0 -10
  505. package/build/models/data/storefront/theme/index.js +0 -1
  506. package/build/models/data/storefront/theme-localization/index.d.ts +0 -15
  507. package/build/models/data/storefront/theme-localization/index.js +0 -1
  508. package/build/models/data/variant-type/index.d.ts +0 -13
  509. package/build/models/data/variant-type/index.js +0 -1
  510. package/build/models/data/variant-type/variant-value/index.d.ts +0 -12
  511. package/build/models/data/variant-type/variant-value/index.js +0 -1
  512. package/build/models/ui/customer-review-list/index.js +0 -1
  513. package/build/models/ui/customer-review-summary-list/index.js +0 -1
  514. package/build/models/ui/raffle-list/index.js +0 -1
  515. package/build/store/base.js +0 -1
  516. package/build/store/blog/index.d.ts +0 -26
  517. package/build/store/blog/index.js +0 -1
  518. package/build/store/brand/index.d.ts +0 -12
  519. package/build/store/brand/index.js +0 -1
  520. package/build/store/cart/api.d.ts +0 -10
  521. package/build/store/cart/api.js +0 -1
  522. package/build/store/category/index.d.ts +0 -12
  523. package/build/store/category/index.js +0 -1
  524. package/build/store/checkout/index.d.ts +0 -16
  525. package/build/store/checkout/index.js +0 -1
  526. package/build/store/customer/api.d.ts +0 -54
  527. package/build/store/customer/api.js +0 -1
  528. package/build/store/html-meta-data/index.d.ts +0 -6
  529. package/build/store/html-meta-data/index.js +0 -1
  530. package/build/store/location/index.d.ts +0 -9
  531. package/build/store/location/index.js +0 -1
  532. package/build/store/merchant/index.d.ts +0 -6
  533. package/build/store/product/index.d.ts +0 -47
  534. package/build/store/product/index.js +0 -1
  535. package/build/store/raffle/index.d.ts +0 -15
  536. package/build/store/raffle/index.js +0 -1
  537. package/build/store/storefront/index.d.ts +0 -5
  538. package/build/utils/currency.d.ts +0 -7
  539. package/build/utils/currency.js +0 -1
@@ -1,27 +0,0 @@
1
- import { IkasBaseModel } from "../base";
2
- import { IkasImage } from "../image";
3
- import { IkasBlogTag } from "./tag";
4
- import { IkasBlogContent } from "./content";
5
- import { IkasBlogMetaData } from "./meta-data";
6
- import { IkasBlogWriter } from "./writer";
7
- import { IkasBlogCategory } from "./category";
8
- import { IkasBlog as IBlog } from "@ikas/storefront-models";
9
- export declare class IkasBlog extends IkasBaseModel implements IBlog {
10
- blogContent: IkasBlogContent;
11
- categoryId: string;
12
- imageId: string;
13
- isPublished: boolean;
14
- locale: string | null;
15
- metadata: IkasBlogMetaData;
16
- publishedAt: number | null;
17
- shortDescription: string;
18
- storefrontId: string;
19
- tagIds: string[] | null;
20
- tags: IkasBlogTag[] | null;
21
- title: string;
22
- writer: IkasBlogWriter;
23
- image?: IkasImage | null;
24
- category: IkasBlogCategory;
25
- constructor(data: IBlog);
26
- get href(): string;
27
- }
@@ -1 +0,0 @@
1
- import{__extends as t}from'./../../../ext/tslib/tslib.es6.js';import{IkasBaseModel as e}from"../base/index.js";import{IkasImage as o}from"../image/index.js";import{IkasBlogTag as r}from"./tag/index.js";import{IkasBlogContent as i}from"./content/index.js";import{IkasBlogMetaData as n}from"./meta-data/index.js";import{IkasBlogWriter as l}from"./writer/index.js";import{IkasBlogCategory as a}from"./category/index.js";import{IkasBlogFunctions as s}from"@ikas/storefront-model-functions";var m=function(e){function m(t){var s,m=this;return(m=e.call(this,t)||this).locale=null,m.publishedAt=null,m.tagIds=null,m.tags=null,m.image=null,m.blogContent=new i(t.blogContent),m.categoryId=t.categoryId,m.imageId=t.imageId,m.isPublished=t.isPublished,m.locale=t.locale||null,m.metadata=new n(t.metadata),m.publishedAt=t.publishedAt||null,m.shortDescription=t.shortDescription,m.storefrontId=t.storefrontId,m.tagIds=t.tagIds||null,m.tags=(null===(s=t.tags)||void 0===s?void 0:s.map((function(t){return new r(t)})))||null,m.title=t.title,m.writer=new l(t.writer),m.image=t.image?new o(t.image):null,m.category=new a(t.category),m}return t(m,e),Object.defineProperty(m.prototype,"href",{get:function(){return s.getIkasBlogHref(this)},enumerable:!1,configurable:!0}),m}(e);export{m as IkasBlog};
@@ -1,16 +0,0 @@
1
- import { IkasBaseModel } from "../../base";
2
- import { IkasBlogMetaData as IBlogMetaData } from "@ikas/storefront-models";
3
- export declare class IkasBlogMetaData extends IkasBaseModel implements IBlogMetaData {
4
- canonicals?: string[] | null;
5
- description?: string | null;
6
- disableIndex?: boolean | null;
7
- pageTitle?: string | null;
8
- slug: string;
9
- targetId?: string | null;
10
- targetType?: IkasBlogMetaDataTargetType | null;
11
- constructor(data: IBlogMetaData);
12
- }
13
- export declare enum IkasBlogMetaDataTargetType {
14
- BLOG = "BLOG",
15
- BLOG_CATEGORY = "BLOG_CATEGORY"
16
- }
@@ -1 +0,0 @@
1
- import{__extends as l}from'./../../../../ext/tslib/tslib.es6.js';import{IkasBaseModel as n}from"../../base/index.js";var e,t=function(n){function e(l){var e=n.call(this,l)||this;return e.canonicals=null,e.description=null,e.disableIndex=null,e.pageTitle=null,e.targetId=null,e.targetType=null,e.canonicals=l.canonicals||null,e.description=l.description||null,e.disableIndex=l.disableIndex||null,e.pageTitle=l.pageTitle||null,e.slug=l.slug,e.targetId=l.targetId||null,e.targetType=l.targetType||null,e}return l(e,n),e}(n);!function(l){l.BLOG="BLOG",l.BLOG_CATEGORY="BLOG_CATEGORY"}(e||(e={}));export{t as IkasBlogMetaData,e as IkasBlogMetaDataTargetType};
@@ -1,6 +0,0 @@
1
- import { IkasBaseModel } from "../../base";
2
- import { IkasBlogTag as IBlogTag } from "@ikas/storefront-models";
3
- export declare class IkasBlogTag extends IkasBaseModel implements IBlogTag {
4
- name: string;
5
- constructor(data: IBlogTag);
6
- }
@@ -1 +0,0 @@
1
- import{__extends as r}from'./../../../../ext/tslib/tslib.es6.js';import{IkasBaseModel as t}from"../../base/index.js";var e=function(t){function e(r){var e=t.call(this,r)||this;return e.name=r.name,e}return r(e,t),e}(t);export{e as IkasBlogTag};
@@ -1,6 +0,0 @@
1
- import { IkasBlogWriter as IBlogWriter } from "@ikas/storefront-models";
2
- export declare class IkasBlogWriter implements IBlogWriter {
3
- firstName: string;
4
- lastName: string;
5
- constructor(data: IBlogWriter);
6
- }
@@ -1 +0,0 @@
1
- var t=function(t){this.firstName=t.firstName,this.lastName=t.lastName};export{t as IkasBlogWriter};
@@ -1,26 +0,0 @@
1
- import { IkasImage } from "../image";
2
- import { IkasHTMLMetaData } from "../html-meta-data";
3
- import { IkasBaseModel } from "../base";
4
- import { IkasProductBrandTranslation } from "./translation";
5
- import { IkasBrand as IBrand } from "@ikas/storefront-models";
6
- export declare class IkasBrand extends IkasBaseModel implements IBrand {
7
- description: string | null;
8
- imageId: string | null;
9
- name: string;
10
- metaData: IkasHTMLMetaData | null;
11
- orderType: IkasBrandOrderType | null;
12
- image?: IkasImage | null;
13
- translations?: IkasProductBrandTranslation[] | null;
14
- constructor(data: IBrand);
15
- get href(): string;
16
- }
17
- export declare enum IkasBrandOrderType {
18
- BEST_SELLER = "BEST_SELLER",
19
- HIGHEST_DISCOUNT_RATIO = "HIGHEST_DISCOUNT_RATIO",
20
- HIGHEST_PRICE = "HIGHEST_PRICE",
21
- LOWEST_DISCOUNT_RATIO = "LOWEST_DISCOUNT_RATIO",
22
- LOWEST_PRICE = "LOWEST_PRICE",
23
- MANUALLY = "MANUALLY",
24
- NEWEST = "NEWEST",
25
- OLDEST = "OLDEST"
26
- }
@@ -1 +0,0 @@
1
- import{__extends as n}from'./../../../ext/tslib/tslib.es6.js';import{IkasImage as e}from"../image/index.js";import{IkasBaseModel as t}from"../base/index.js";import{IkasProductBrandTranslation as r}from"./translation/index.js";import{IkasBrandFunctions as i}from"@ikas/storefront-model-functions";var l,o=function(t){function l(n){var i,l=this;return(l=t.call(this,n)||this).description=null,l.imageId=null,l.metaData=null,l.orderType=null,l.image=null,l.translations=null,l.description=n.description||null,l.imageId=n.imageId||null,l.name=n.name,l.metaData=n.metaData||null,l.orderType=n.orderType||null,l.image=n.image?new e(n.image):null,l.translations=(null===(i=n.translations)||void 0===i?void 0:i.map((function(n){return new r(n)})))||null,l}return n(l,t),Object.defineProperty(l.prototype,"href",{get:function(){return i.getIkasBrandHref(this)},enumerable:!1,configurable:!0}),l}(t);!function(n){n.BEST_SELLER="BEST_SELLER",n.HIGHEST_DISCOUNT_RATIO="HIGHEST_DISCOUNT_RATIO",n.HIGHEST_PRICE="HIGHEST_PRICE",n.LOWEST_DISCOUNT_RATIO="LOWEST_DISCOUNT_RATIO",n.LOWEST_PRICE="LOWEST_PRICE",n.MANUALLY="MANUALLY",n.NEWEST="NEWEST",n.OLDEST="OLDEST"}(l||(l={}));export{o as IkasBrand,l as IkasBrandOrderType};
@@ -1,7 +0,0 @@
1
- import { IkasProductBrandTranslation as IProductBrandTranslation } from "@ikas/storefront-models";
2
- export declare class IkasProductBrandTranslation implements IProductBrandTranslation {
3
- description: string | null;
4
- locale: string;
5
- name: string | null;
6
- constructor(data: IProductBrandTranslation);
7
- }
@@ -1 +0,0 @@
1
- var i=function(i){this.description=null,this.name=null,this.description=i.description||null,this.locale=i.locale,this.name=i.name||null};export{i as IkasProductBrandTranslation};
@@ -1,21 +0,0 @@
1
- import { IkasCampaignOfferProduct } from "./product";
2
- import { IkasCampaignOffer as ICampaignOffer, IkasCampaignOfferTriggerSettings as ICampaignOfferTriggerSettings, IkasCampaignOfferFollowUpActionType, IkasCampaignOfferTargetPageType, IkasCampaignOfferType, IkasCampaignOfferTriggerFilterType } from "@ikas/storefront-models";
3
- import { IkasBaseModel } from "../base";
4
- export declare class IkasCampaignOffer extends IkasBaseModel implements ICampaignOffer {
5
- availableSalesChannelIds: string[];
6
- endDate: any | null;
7
- followUpActionType: IkasCampaignOfferFollowUpActionType;
8
- minimumRequiredCartAmount: number | null;
9
- name: string;
10
- offers: IkasCampaignOfferProduct[];
11
- startDate: any | null;
12
- targetPageTypes: IkasCampaignOfferTargetPageType[];
13
- triggerSettings: IkasCampaignOfferTriggerSettings;
14
- type: IkasCampaignOfferType;
15
- constructor(data?: Partial<ICampaignOffer>);
16
- }
17
- export declare class IkasCampaignOfferTriggerSettings implements ICampaignOfferTriggerSettings {
18
- filterType: IkasCampaignOfferTriggerFilterType;
19
- valueList: string[];
20
- constructor(data?: Partial<ICampaignOfferTriggerSettings>);
21
- }
@@ -1 +0,0 @@
1
- import{__extends as e}from'./../../../ext/tslib/tslib.es6.js';import{IkasCampaignOfferProduct as t}from"./product/index.js";import{IkasCampaignOfferFollowUpActionType as i,IkasCampaignOfferType as r,IkasCampaignOfferTriggerFilterType as n}from"@ikas/storefront-models";import{IkasBaseModel as a}from"../base/index.js";import{makeObservable as o,observable as s}from"mobx";var l=function(n){function a(e){void 0===e&&(e={});var a=n.call(this,e)||this;return a.availableSalesChannelIds=e.availableSalesChannelIds||[],a.endDate=e.endDate||null,a.followUpActionType=e.followUpActionType||i.DO_NOTHING,a.minimumRequiredCartAmount=void 0!==e.minimumRequiredCartAmount&&null!==e.minimumRequiredCartAmount?e.minimumRequiredCartAmount:null,a.name=e.name||"",a.offers=e.offers?e.offers.map((function(e){return new t(e)})):[],a.startDate=e.startDate||null,a.targetPageTypes=e.targetPageTypes||[],a.triggerSettings=e.triggerSettings?new m(e.triggerSettings):new m,a.type=e.type||r.CROSS_SELL,o(a,{availableSalesChannelIds:s,endDate:s,followUpActionType:s,minimumRequiredCartAmount:s,name:s,offers:s,startDate:s,targetPageTypes:s,triggerSettings:s,type:s}),a}return e(a,n),a}(a),m=function(e){void 0===e&&(e={}),this.filterType=e.filterType||n.ALL_PRODUCTS,this.valueList=e.valueList||[],o(this,{filterType:s,valueList:s})};export{l as IkasCampaignOffer,m as IkasCampaignOfferTriggerSettings};
@@ -1,25 +0,0 @@
1
- import { IkasAmountType } from "../../order/adjustment";
2
- import { IkasCampaignOfferProduct as ICampaignOfferProduct, IkasCampaignOfferProductApplicablePriceEnum, IkasCampaignOfferProductShowCriteria, IkasCampaignOfferProductTranslation as ICampaignOfferProductTranslation } from "@ikas/storefront-models";
3
- export declare class IkasCampaignOfferProduct implements ICampaignOfferProduct {
4
- applicablePrice: IkasCampaignOfferProductApplicablePriceEnum | null;
5
- countdownMinutes: number | null;
6
- description: string | null;
7
- discountAmount: number | null;
8
- discountType: IkasAmountType | null;
9
- excludedVariantIdList: string[] | null;
10
- id: string;
11
- order: number;
12
- productId: string;
13
- showCriteria: IkasCampaignOfferProductShowCriteria | null;
14
- skipOfferIfProductExistsInCart: boolean | null;
15
- title: string;
16
- translations: IkasCampaignOfferProductTranslation[] | null;
17
- constructor(data?: Partial<ICampaignOfferProduct>);
18
- }
19
- export declare class IkasCampaignOfferProductTranslation implements ICampaignOfferProductTranslation {
20
- description: string | null;
21
- locale: string;
22
- title: string;
23
- constructor(data?: Partial<ICampaignOfferProductTranslation>);
24
- }
25
- export { IkasCampaignOfferProductShowCriteria };
@@ -1 +0,0 @@
1
- export{IkasCampaignOfferProductShowCriteria}from"@ikas/storefront-models";import{makeAutoObservable as t}from"mobx";var i=function(i){void 0===i&&(i={}),this.applicablePrice=i.applicablePrice||null,this.countdownMinutes=void 0!==i.countdownMinutes&&null!==i.countdownMinutes?i.countdownMinutes:null,this.description=i.description||null,this.discountAmount=void 0!==i.discountAmount&&null!==i.discountAmount?i.discountAmount:null,this.discountType=i.discountType||null,this.excludedVariantIdList=i.excludedVariantIdList||null,this.id=i.id||"",this.order=i.order||0,this.productId=i.productId||"",this.showCriteria=i.showCriteria||null,this.skipOfferIfProductExistsInCart=void 0!==i.skipOfferIfProductExistsInCart&&null!==i.skipOfferIfProductExistsInCart?i.skipOfferIfProductExistsInCart:null,this.title=i.title||"",this.translations=i.translations?i.translations.map((function(t){return new n(t)})):null,t(this)},n=function(i){void 0===i&&(i={}),this.description=i.description||null,this.locale=i.locale||"",this.title=i.title||"",t(this)};export{i as IkasCampaignOfferProduct,n as IkasCampaignOfferProductTranslation};
@@ -1,10 +0,0 @@
1
- import { IkasAvailableShippingMethod as IAvailableShippingMethod, IkasShippingMethod } from "@ikas/storefront-models";
2
- export declare class IkasAvailableShippingMethod implements IAvailableShippingMethod {
3
- price: number;
4
- rateName: string;
5
- shippingMethod: IkasShippingMethod;
6
- shippingSettingsId: string;
7
- shippingZoneRateId: string;
8
- constructor(data: IAvailableShippingMethod);
9
- }
10
- export { IkasShippingMethod };
@@ -1 +0,0 @@
1
- export{IkasShippingMethod}from"@ikas/storefront-models";import{makeAutoObservable as i}from"mobx";var t=function(t){this.price=t.price,this.rateName=t.rateName,this.shippingMethod=t.shippingMethod,this.shippingSettingsId=t.shippingSettingsId,this.shippingZoneRateId=t.shippingZoneRateId,i(this)};export{t as IkasAvailableShippingMethod};
@@ -1,16 +0,0 @@
1
- import { IkasCampaignOfferTargetPageType, IkasCartCampaignOfferStatus, IkasCartCampaignOffer as ICartCampaignOffer } from "@ikas/storefront-models";
2
- import { IkasBaseModel } from "../../base";
3
- import { IkasCampaignOffer } from "../../campaign-offer";
4
- export declare class IkasCartCampaignOffer extends IkasBaseModel implements ICartCampaignOffer {
5
- appliedOrderLineId: string | null;
6
- campaignOfferId: string;
7
- campaignOffer: IkasCampaignOffer | null;
8
- campaignOfferProductId: string | null;
9
- offerEndDate: number | null;
10
- offerStartDate: number;
11
- status: IkasCartCampaignOfferStatus;
12
- targetPageTypes: IkasCampaignOfferTargetPageType[];
13
- triggerSourceOrderLineId: string;
14
- constructor(data: ICartCampaignOffer);
15
- }
16
- export { IkasCampaignOfferTargetPageType, IkasCartCampaignOfferStatus };
@@ -1 +0,0 @@
1
- import{__extends as e}from'./../../../../ext/tslib/tslib.es6.js';export{IkasCampaignOfferTargetPageType,IkasCartCampaignOfferStatus}from"@ikas/storefront-models";import{makeObservable as r,observable as a}from"mobx";import{IkasBaseModel as t}from"../../base/index.js";import{IkasCampaignOffer as f}from"../../campaign-offer/index.js";var n=function(t){function n(e){var n=t.call(this,e)||this;return n.appliedOrderLineId=null,n.campaignOfferProductId=null,n.offerEndDate=null,n.appliedOrderLineId=e.appliedOrderLineId||null,n.campaignOfferId=e.campaignOfferId,n.campaignOffer=e.campaignOffer?new f(e.campaignOffer):null,n.campaignOfferProductId=e.campaignOfferProductId||null,n.offerEndDate=e.offerEndDate||null,n.offerStartDate=e.offerStartDate,n.status=e.status,n.targetPageTypes=e.targetPageTypes,n.triggerSourceOrderLineId=e.triggerSourceOrderLineId,r(n,{appliedOrderLineId:a,campaignOfferId:a,campaignOffer:a,campaignOfferProductId:a,offerEndDate:a,offerStartDate:a,status:a,targetPageTypes:a,triggerSourceOrderLineId:a}),n}return e(n,t),n}(t);export{n as IkasCartCampaignOffer};
@@ -1,14 +0,0 @@
1
- import { IkasCartCampaignOffer } from "./campaign-offer";
2
- import { IkasAvailableShippingMethod } from "./available-shipping-method";
3
- import { IkasOrder } from "../order";
4
- import { IkasCart as ICart, IkasCartCreatedBy } from "@ikas/storefront-models";
5
- export declare class IkasCart extends IkasOrder implements ICart {
6
- availableShippingMethods: IkasAvailableShippingMethod[] | null;
7
- campaignOffers: IkasCartCampaignOffer[] | null;
8
- couponCode: string | null;
9
- createdBy: IkasCartCreatedBy | null;
10
- shippingSettingsId: string | null;
11
- shippingZoneRateId: string | null;
12
- stockLocationId: string | null;
13
- constructor(data: Partial<ICart>, removeObservableAddresses?: boolean);
14
- }
@@ -1 +0,0 @@
1
- import{__extends as n}from'./../../../ext/tslib/tslib.es6.js';import{IkasCartCampaignOffer as i}from"./campaign-offer/index.js";import{IkasAvailableShippingMethod as o}from"./available-shipping-method/index.js";import{IkasOrder as e}from"../order/index.js";import{makeObservable as t,observable as l}from"mobx";var p=function(e){function p(n,p){var a,s,d=this;return(d=e.call(this,n,p)||this).availableShippingMethods=null,d.campaignOffers=null,d.couponCode=null,d.shippingSettingsId=null,d.shippingZoneRateId=null,d.stockLocationId=null,d.availableShippingMethods=(null===(a=n.availableShippingMethods)||void 0===a?void 0:a.map((function(n){return new o(n)})))||null,d.campaignOffers=(null===(s=n.campaignOffers)||void 0===s?void 0:s.map((function(n){return new i(n)})))||null,d.couponCode=n.couponCode||null,d.createdBy=n.createdBy||null,d.shippingSettingsId=n.shippingSettingsId||null,d.shippingZoneRateId=n.shippingZoneRateId||null,d.stockLocationId=n.stockLocationId||null,t(d,{availableShippingMethods:l,campaignOffers:l,couponCode:l,createdBy:l,shippingSettingsId:l,shippingZoneRateId:l,stockLocationId:l}),d}return n(p,e),p}(e);export{p as IkasCart};
@@ -1,22 +0,0 @@
1
- import { IkasImage } from "../image";
2
- import { IkasHTMLMetaData } from "../html-meta-data";
3
- import { IkasBaseModel } from "../base";
4
- import { IkasCategoryPathItem } from "./path-item";
5
- import { IkasCategoryTranslation } from "./translations";
6
- import { IkasCategory as ICategory, IkasCategoryProductsOrderType } from "@ikas/storefront-models";
7
- export declare class IkasCategory extends IkasBaseModel implements ICategory {
8
- categoryPath: string[] | null;
9
- description: string | null;
10
- imageId: string | null;
11
- name: string;
12
- parentId: string | null;
13
- metaData: IkasHTMLMetaData | null;
14
- categoryPathItems: IkasCategoryPathItem[];
15
- orderType: IkasCategoryProductsOrderType | null;
16
- image?: IkasImage | null;
17
- translations?: IkasCategoryTranslation[] | null;
18
- constructor(data: ICategory);
19
- get href(): string;
20
- get path(): IkasCategoryPathItem[];
21
- }
22
- export { IkasCategoryProductsOrderType as IkasCategoryOrderType };
@@ -1 +0,0 @@
1
- import{__extends as e}from'./../../../ext/tslib/tslib.es6.js';import{IkasImage as t}from"../image/index.js";import{IkasBaseModel as r}from"../base/index.js";import{IkasCategoryPathItem as n}from"./path-item/index.js";import{IkasCategoryTranslation as a}from"./translations/index.js";export{IkasCategoryProductsOrderType as IkasCategoryOrderType}from"@ikas/storefront-models";import{IkasCategoryFunctions as o}from"@ikas/storefront-model-functions";var i=function(r){function i(e){var o,i,l=this;return(l=r.call(this,e)||this).categoryPath=null,l.description=null,l.imageId=null,l.parentId=null,l.metaData=null,l.orderType=null,l.image=null,l.translations=null,l.categoryPath=e.categoryPath||null,l.description=e.description||null,l.imageId=e.imageId||null,l.name=e.name,l.parentId=e.parentId||null,l.metaData=e.metaData||null,l.categoryPathItems=(null===(o=e.categoryPathItems)||void 0===o?void 0:o.map((function(e){return new n(e)})))||[],l.orderType=e.orderType,l.image=e.image?new t(e.image):null,l.translations=(null===(i=e.translations)||void 0===i?void 0:i.map((function(e){return new a(e)})))||null,l}return e(i,r),Object.defineProperty(i.prototype,"href",{get:function(){return o.getIkasCategoryHref(this)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"path",{get:function(){return this.categoryPathItems},enumerable:!1,configurable:!0}),i}(r);export{i as IkasCategory};
@@ -1,14 +0,0 @@
1
- import { IkasHTMLMetaData } from "../../html-meta-data";
2
- import { IkasBaseModel } from "../../base";
3
- import { IkasCategoryPathItem as ICategoryPathItem } from "@ikas/storefront-models";
4
- import { IkasCategoryTranslation } from "../translations";
5
- export declare class IkasCategoryPathItem extends IkasBaseModel implements ICategoryPathItem {
6
- metaData: IkasHTMLMetaData | null;
7
- description: string | null;
8
- imageId: string | null;
9
- name: string;
10
- translations?: IkasCategoryTranslation[] | null;
11
- constructor(data: ICategoryPathItem);
12
- get slug(): string | undefined;
13
- get href(): string;
14
- }
@@ -1 +0,0 @@
1
- import{__extends as t}from'./../../../../ext/tslib/tslib.es6.js';import{IkasHTMLMetaData as e}from"../../html-meta-data/index.js";import{IkasBaseModel as n}from"../../base/index.js";import{IkasCategoryPathItemFunctions as r}from"@ikas/storefront-model-functions";var a=function(n){function a(t){var r=n.call(this,t)||this;return r.translations=null,r.metaData=t.metaData?new e(t.metaData):null,r.description=t.description||null,r.imageId=t.imageId||null,r.name=t.name,r.translations=t.translations||null,r}return t(a,n),Object.defineProperty(a.prototype,"slug",{get:function(){return r.getIkasCategoryPathItemSlug(this)},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"href",{get:function(){return r.getIkasCategoryPathItemHref(this)},enumerable:!1,configurable:!0}),a}(n);export{a as IkasCategoryPathItem};
@@ -1,7 +0,0 @@
1
- import { IkasCategoryTranslation as ICategoryTranslation } from "@ikas/storefront-models";
2
- export declare class IkasCategoryTranslation implements ICategoryTranslation {
3
- description: string | null;
4
- locale: string;
5
- name: string | null;
6
- constructor(data: ICategoryTranslation);
7
- }
@@ -1 +0,0 @@
1
- var i=function(i){this.description=null,this.name=null,this.description=i.description||null,this.locale=i.locale,this.name=i.name||null};export{i as IkasCategoryTranslation};
@@ -1,141 +0,0 @@
1
- import { IkasCheckoutRequirement, IkasCheckoutSettings, IkasOrderAddress } from "@ikas/storefront-models";
2
- export interface CountrySettingsModelConstructorData {
3
- checkoutSettings?: IkasCheckoutSettings;
4
- }
5
- export default class CountrySettingsModel {
6
- private _initialized;
7
- private _addressFormCountrySettings;
8
- private _addressFormCountryLabels;
9
- private checkoutSettings?;
10
- constructor(data?: CountrySettingsModelConstructorData);
11
- init(): Promise<void>;
12
- get initialized(): boolean;
13
- waitUntilInitialized(): Promise<unknown>;
14
- getCountrySettings(country: string): IkasAddressFormCountrySettings;
15
- getCountryLabels(country: string): IkasAddressFormCountryLabels;
16
- getFieldSettings(country: string): {
17
- firstName: AddressFormField;
18
- lastName: AddressFormField;
19
- identityNumber: AddressFormField;
20
- phone: AddressFormField;
21
- addressLine1: AddressFormField;
22
- addressLine2: AddressFormField;
23
- postalCode: AddressFormField;
24
- country: AddressFormField;
25
- state: AddressFormField;
26
- city: AddressFormField;
27
- district: AddressFormField;
28
- company?: AddressFormField | undefined;
29
- taxOffice?: AddressFormField | undefined;
30
- taxNumber?: AddressFormField | undefined;
31
- };
32
- getFieldLabels(country: string): IkasAddressFormLabels | undefined;
33
- getAddressFormatView(addressFormat: string): AddressFormItem[][];
34
- getBillingFormatView(billingFormat: string): BillingAddressFormItem[][];
35
- getAddressFormat(country: string): AddressFormItem[][];
36
- getBillingFormat(country: string): BillingAddressFormItem[][];
37
- getAddressFormatIgnoreCountry(country: string): AddressFormItem[][];
38
- getValidationResult(address: IkasOrderAddress): {
39
- firstName: ErrorType;
40
- lastName: ErrorType;
41
- addressLine1: ErrorType;
42
- addressLine2: ErrorType;
43
- country: ErrorType;
44
- state: ErrorType;
45
- city: ErrorType;
46
- district: ErrorType;
47
- phone: ErrorType;
48
- postalCode: ErrorType;
49
- identityNumber: ErrorType;
50
- } | undefined;
51
- isValidAddress(address: IkasOrderAddress): boolean;
52
- isValidField(field: string, fieldSettings: AddressFormField | undefined, checkoutRequirement?: IkasCheckoutRequirement | null): ErrorType;
53
- isFreeTextCity(country: string): boolean;
54
- isFreeTextDistrict(country: string): boolean;
55
- getAddressFormCountrySettings(): Promise<void>;
56
- getAddressFormCountryLabels(): Promise<void>;
57
- validatePhoneNumber(str: string): boolean;
58
- validateByRegexString(str: string, regexStr: string): boolean;
59
- }
60
- export declare type ErrorType = {
61
- hasError: boolean;
62
- isInvalid: boolean;
63
- isEmpty: boolean;
64
- };
65
- export declare type IkasAddressFormCountrySettings = {
66
- id: string;
67
- addressFormat: string;
68
- billingFormat: string;
69
- code: string;
70
- iso2: string;
71
- iso3: string;
72
- phoneCode: string;
73
- fields: IkasAddressFormFields;
74
- };
75
- export declare type IkasAddressFormFields = {
76
- firstName?: AddressFormField;
77
- lastName?: AddressFormField;
78
- identityNumber?: AddressFormField;
79
- addressLine1?: AddressFormField;
80
- addressLine2?: AddressFormField;
81
- postalCode?: AddressFormField;
82
- country?: AddressFormField;
83
- state?: AddressFormField;
84
- city?: AddressFormField;
85
- district?: AddressFormField;
86
- phone?: AddressFormField;
87
- company?: AddressFormField;
88
- taxOffice?: AddressFormField;
89
- taxNumber?: AddressFormField;
90
- };
91
- export declare type AddressFormField = {
92
- required?: boolean;
93
- type?: IkasAddressFormInputType;
94
- regex?: string;
95
- };
96
- export declare enum IkasAddressFormInputType {
97
- TEXT = "text",
98
- DROPDOWN = "dropdown"
99
- }
100
- export declare type IkasAddressFormCountryLabels = {
101
- name: string;
102
- fields: IkasAddressFormLabels;
103
- };
104
- export declare type IkasAddressFormLabels = {
105
- firstName?: AddressFormLabel;
106
- lastName?: AddressFormLabel;
107
- identityNumber?: AddressFormLabel;
108
- addressLine1?: AddressFormLabel;
109
- addressLine2?: AddressFormLabel;
110
- postalCode?: AddressFormLabel;
111
- country?: AddressFormLabel;
112
- state?: AddressFormLabel;
113
- city?: AddressFormLabel;
114
- district?: AddressFormLabel;
115
- phone?: AddressFormLabel;
116
- company?: AddressFormLabel;
117
- taxOffice?: AddressFormLabel;
118
- taxNumber?: AddressFormLabel;
119
- };
120
- export declare type AddressFormLabel = {
121
- placeholder?: string;
122
- label?: string;
123
- };
124
- export declare enum AddressFormItem {
125
- FIRSTNAME = "firstName",
126
- LASTNAME = "lastName",
127
- IDENTITY_NUMBER = "identityNumber",
128
- ADDRESS_LINE_1 = "addressLine1",
129
- ADDRESS_LINE_2 = "addressLine2",
130
- POSTAL_CODE = "postalCode",
131
- COUNTRY = "country",
132
- STATE = "state",
133
- CITY = "city",
134
- DISTRICT = "district",
135
- PHONE = "phone"
136
- }
137
- export declare enum BillingAddressFormItem {
138
- COMPANY = "company",
139
- TAX_OFFICE = "taxOffice",
140
- TAX_NUMBER = "taxNumber"
141
- }
@@ -1 +0,0 @@
1
- import{__awaiter as t,__assign as e,__generator as i}from'./../../../ext/tslib/tslib.es6.js';import{makeAutoObservable as r}from"mobx";import{IkasStorefrontConfig as n}from"@ikas/storefront-config";import{IkasCheckoutRequirement as s}from"@ikas/storefront-models";import o from"lodash/difference";import{COUNTRY_FORMS_LOCALES as d}from"../../../utils/constants.js";var u,a,l,c=function(){function l(t){void 0===t&&(t={}),this._initialized=!1,this.checkoutSettings=t.checkoutSettings,this.init(),r(this)}return l.prototype.init=function(){return t(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,this.getAddressFormCountrySettings()];case 1:return t.sent(),[4,this.getAddressFormCountryLabels()];case 2:return t.sent(),this._initialized=!0,[2]}}))}))},Object.defineProperty(l.prototype,"initialized",{get:function(){return this._initialized},enumerable:!1,configurable:!0}),l.prototype.waitUntilInitialized=function(){var t=this;return new Promise((function(e){var i=setInterval((function(){t.initialized&&(clearInterval(i),e(null))}),100)}))},l.prototype.getCountrySettings=function(t){return this._addressFormCountrySettings.countrySettings[t]},l.prototype.getCountryLabels=function(t){return this._addressFormCountryLabels.countryLabels[t]},l.prototype.getFieldSettings=function(t){var i,r,n,o,d,u,a,l,c=this.getCountrySettings(t),h=e(e({},c.fields),{firstName:{required:!0},lastName:{required:!0},identityNumber:e(e({},c.fields.identityNumber),{required:(null===(i=c.fields.identityNumber)||void 0===i?void 0:i.required)||!1}),phone:e(e({},c.fields.phone),{required:(null===(r=c.fields.phone)||void 0===r?void 0:r.required)||!1}),addressLine1:{required:!0},addressLine2:e(e({},c.fields.addressLine2),{required:(null===(n=c.fields.addressLine2)||void 0===n?void 0:n.required)||!1}),postalCode:e(e({},c.fields.postalCode),{required:(null===(o=c.fields.postalCode)||void 0===o?void 0:o.required)||!1}),country:e(e({},c.fields.country),{required:(null===(d=c.fields.country)||void 0===d?void 0:d.required)||!1}),state:e(e({},c.fields.state),{required:(null===(u=c.fields.state)||void 0===u?void 0:u.required)||!1}),city:e(e({},c.fields.city),{required:(null===(a=c.fields.city)||void 0===a?void 0:a.required)||!1}),district:e(e({},c.fields.district),{required:(null===(l=c.fields.district)||void 0===l?void 0:l.required)||!1})});return this.checkoutSettings&&(this.checkoutSettings.phoneRequirement&&(h.phone.required=this.checkoutSettings.phoneRequirement===s.MANDATORY),this.checkoutSettings.postalCodeRequirement&&(h.postalCode.required=this.checkoutSettings.postalCodeRequirement===s.MANDATORY),this.checkoutSettings.identityNumberRequirement&&(h.identityNumber.required=this.checkoutSettings.identityNumberRequirement===s.MANDATORY)),h},l.prototype.getFieldLabels=function(t){var e=this.getCountryLabels(t);if(e)return e.fields},l.prototype.getAddressFormatView=function(t){return this._addressFormCountrySettings.addressFormats[t]},l.prototype.getBillingFormatView=function(t){return this._addressFormCountrySettings.billingFormats[t]},l.prototype.getAddressFormat=function(t){var e=this.getCountrySettings(t),i=this.getAddressFormatView(e.addressFormat);if(this.checkoutSettings&&i){var r=[];return this.checkoutSettings.identityNumberRequirement===s.INVISIBLE&&r.push(a.IDENTITY_NUMBER),this.checkoutSettings.postalCodeRequirement===s.INVISIBLE&&r.push(a.POSTAL_CODE),this.checkoutSettings.phoneRequirement===s.INVISIBLE&&r.push(a.PHONE),i.map((function(t){return o(t,r)}))||[]}return i},l.prototype.getBillingFormat=function(t){var e=this.getCountrySettings(t);return this.getBillingFormatView(e.billingFormat)},l.prototype.getAddressFormatIgnoreCountry=function(t){return this.getAddressFormat(t).map((function(t){return o(t,[a.COUNTRY])}))},l.prototype.getValidationResult=function(t){var e,i,r,n,o,d,u,a,l=this.getFieldSettings((null===(e=t.country)||void 0===e?void 0:e.iso2)||"TR");if(l){var c=!!t.phone&&t.phone.length>=10&&this.validatePhoneNumber(t.phone);return{firstName:this.isValidField(t.firstName,l.firstName),lastName:this.isValidField(t.lastName,l.lastName),addressLine1:this.isValidField(t.addressLine1,l.addressLine1),addressLine2:this.isValidField(t.addressLine2||"",l.addressLine2),country:this.isValidField((null===(i=t.country)||void 0===i?void 0:i.name)||"",l.country),state:this.isValidField((null===(r=t.state)||void 0===r?void 0:r.name)||"",l.state),city:this.isValidField((null===(n=t.city)||void 0===n?void 0:n.name)||"",l.city),district:this.isValidField((null===(o=t.district)||void 0===o?void 0:o.name)||"",l.district),phone:(null===(d=l.phone)||void 0===d?void 0:d.regex)?this.isValidField(t.phone||"",l.phone,this.checkoutSettings?this.checkoutSettings.phoneRequirement:void 0):(null===(u=this.checkoutSettings)||void 0===u?void 0:u.phoneRequirement)===s.MANDATORY||(null===(a=this.checkoutSettings)||void 0===a?void 0:a.phoneRequirement)===s.OPTIONAL&&t.phone?{hasError:!c,isInvalid:!c,isEmpty:!t.phone}:{hasError:!1,isInvalid:!1,isEmpty:!1},postalCode:this.isValidField(t.postalCode||"",l.postalCode,this.checkoutSettings?this.checkoutSettings.postalCodeRequirement:void 0),identityNumber:this.isValidField(t.identityNumber||"",l.identityNumber,this.checkoutSettings?this.checkoutSettings.identityNumberRequirement:void 0)}}},l.prototype.isValidAddress=function(t){var e=this.getValidationResult(t);return!!e&&Object.values(e).every((function(t){return!t.hasError}))},l.prototype.isValidField=function(t,e,i){var r=!1,n=!1,o=i?i===s.MANDATORY:(null==e?void 0:e.required)||!1,d=!!(null==e?void 0:e.regex)||!1;return o&&!d&&(n=!t),o&&d&&(n=!t,r=!this.validateByRegexString(t,e.regex)),!o&&d&&t&&(r=!this.validateByRegexString(t,e.regex)),{hasError:r||n,isInvalid:r,isEmpty:n}},l.prototype.isFreeTextCity=function(t){var e=this.getFieldSettings(t);return e&&e.city&&e.city.type===u.TEXT},l.prototype.isFreeTextDistrict=function(t){var e=this.getFieldSettings(t);return e&&e.district&&e.district.type===u.TEXT},l.prototype.getAddressFormCountrySettings=function(){return t(this,void 0,void 0,(function(){var t;return i(this,(function(e){switch(e.label){case 0:return"https://cdn.myikas.com/sf/static/location/settings.json",[4,fetch("https://cdn.myikas.com/sf/static/location/settings.json")];case 1:return[4,e.sent().json()];case 2:return t=e.sent(),this._addressFormCountrySettings=t,[2]}}))}))},l.prototype.getAddressFormCountryLabels=function(){return t(this,void 0,void 0,(function(){var t,e,r;return i(this,(function(i){switch(i.label){case 0:return t=n.getCurrentLocale(),d.find((function(e){return e===t}))||(t="en"),e="https://cdn.myikas.com/sf/static/location/".concat(t,".json"),[4,fetch(e)];case 1:return[4,i.sent().json()];case 2:return r=i.sent(),this._addressFormCountryLabels=r,[2]}}))}))},l.prototype.validatePhoneNumber=function(t){return/^\+?\d+$/.test(t)},l.prototype.validateByRegexString=function(t,e){return new RegExp(e).test(t)},l}();!function(t){t.TEXT="text",t.DROPDOWN="dropdown"}(u||(u={})),function(t){t.FIRSTNAME="firstName",t.LASTNAME="lastName",t.IDENTITY_NUMBER="identityNumber",t.ADDRESS_LINE_1="addressLine1",t.ADDRESS_LINE_2="addressLine2",t.POSTAL_CODE="postalCode",t.COUNTRY="country",t.STATE="state",t.CITY="city",t.DISTRICT="district",t.PHONE="phone"}(a||(a={})),function(t){t.COMPANY="company",t.TAX_OFFICE="taxOffice",t.TAX_NUMBER="taxNumber"}(l||(l={}));export{a as AddressFormItem,l as BillingAddressFormItem,u as IkasAddressFormInputType,c as default};
@@ -1 +0,0 @@
1
- import{__extends as e,__assign as t}from'./../../../ext/tslib/tslib.es6.js';import{IkasCart as r}from"../cart/index.js";import{IkasCheckoutFunctions as i,IkasOrderFunctions as a}from"@ikas/storefront-model-functions";import{formatCurrency as n}from"../../../utils/currency.js";import{makeObservable as o,observable as l,computed as s}from"mobx";import{formatDate as d}from"../../../utils/helper.js";import c from"../order/address/ikas-localized-order-address.js";var u=function(r){function u(e,i){var a=r.call(this,e,!0)||this;return a.appliedCouponCode=null,a.selectedPaymentGateway=null,a.masterPassPaymentGateway=null,a.billingAddress=null,a.shippingAddress=null,a.appliedCouponCode=e.couponCode,a.selectedPaymentGateway=e.selectedPaymentGateway,a.masterPassPaymentGateway=e.masterPassPaymentGateway,a.billingAddress=e.billingAddress?new c(t({countrySettings:i},e.billingAddress)):null,a.shippingAddress=e.shippingAddress?new c(t({countrySettings:i},e.shippingAddress)):null,o(a,{appliedCouponCode:l,selectedPaymentGateway:l,masterPassPaymentGateway:l,billingAddress:l,shippingAddress:l,isComplete:s,$totalFinalPrice:s,$totalFinalPriceTaxModifier:s,$totalTax:s,$formattedTotalTax:s,$formattedTotalFinalPrice:s}),a}return e(u,r),Object.defineProperty(u.prototype,"isComplete",{get:function(){return i.isComplete(this)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"$totalFinalPrice",{get:function(){return this.selectedPaymentGateway?i.getTotalFinalPrice(this,this.selectedPaymentGateway):this.totalFinalPrice},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"$totalFinalPriceTaxModifier",{get:function(){return this.$totalFinalPrice/this.totalFinalPrice},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"$totalTax",{get:function(){return a.getTotalTax(this)*this.$totalFinalPriceTaxModifier},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"$formattedTotalTax",{get:function(){return n(this.$totalTax,this.currencyCode,this.currencySymbol||"")},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"$formattedTotalFinalPrice",{get:function(){return n(this.$totalFinalPrice,this.currencyCode,this.currencySymbol)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"dateStr",{get:function(){var e=new Date;return e.setTime(this.updatedAt),d(e)},enumerable:!1,configurable:!0}),u}(r);export{u as IkasCheckout};
@@ -1,21 +0,0 @@
1
- import { IkasCheckoutSettings as ICheckoutSettings, IkasCheckoutRequirement } from "@ikas/storefront-models";
2
- import { IkasBaseModel } from "../base";
3
- import { IkasCheckoutOption } from "./option";
4
- import { IkasCheckoutSettingsPrice } from "./price";
5
- export declare class IkasCheckoutSettings extends IkasBaseModel implements ICheckoutSettings {
6
- giftPackagePriceList: IkasCheckoutSettingsPrice[] | null;
7
- identityNumberRequirement: IkasCheckoutRequirement | null;
8
- isAccountRequired: boolean;
9
- isGiftPackageEnabled: boolean | null;
10
- isQuickRegistrationEnabled: boolean | null;
11
- isShowPostalCode: boolean | null;
12
- isTermsAndConditionsDefaultChecked: boolean | null;
13
- options: IkasCheckoutOption[] | null;
14
- phoneRequirement: IkasCheckoutRequirement;
15
- postalCodeRequirement: IkasCheckoutRequirement | null;
16
- showCheckoutNote: boolean | null;
17
- showTermsAndConditionsCheckbox: boolean;
18
- storefrontId: string;
19
- constructor(data: ICheckoutSettings);
20
- }
21
- export { IkasCheckoutRequirement };
@@ -1 +0,0 @@
1
- import{__extends as e}from'./../../../ext/tslib/tslib.es6.js';export{IkasCheckoutRequirement}from"@ikas/storefront-models";import{IkasBaseModel as i}from"../base/index.js";import{IkasCheckoutOption as o}from"./option/index.js";import{IkasCheckoutSettingsPrice as t}from"./price/index.js";var n=function(i){function n(e){var n,s,r=this;return(r=i.call(this,e)||this).giftPackagePriceList=null,r.identityNumberRequirement=null,r.isGiftPackageEnabled=null,r.isShowPostalCode=null,r.isTermsAndConditionsDefaultChecked=null,r.options=null,r.postalCodeRequirement=null,r.showCheckoutNote=null,r.giftPackagePriceList=(null===(n=e.giftPackagePriceList)||void 0===n?void 0:n.map((function(e){return new t(e)})))||null,r.identityNumberRequirement=e.identityNumberRequirement,r.isAccountRequired=e.isAccountRequired,r.isGiftPackageEnabled=e.isGiftPackageEnabled,r.isQuickRegistrationEnabled=e.isQuickRegistrationEnabled,r.isShowPostalCode=e.isShowPostalCode,r.isTermsAndConditionsDefaultChecked=e.isTermsAndConditionsDefaultChecked,r.options=(null===(s=e.options)||void 0===s?void 0:s.map((function(e){return new o(e)})))||null,r.phoneRequirement=e.phoneRequirement,r.postalCodeRequirement=e.postalCodeRequirement||null,r.showCheckoutNote=e.showCheckoutNote||null,r.showTermsAndConditionsCheckbox=e.showTermsAndConditionsCheckbox,r.storefrontId=e.storefrontId,r}return e(n,i),n}(i);export{n as IkasCheckoutSettings};
@@ -1,6 +0,0 @@
1
- import { IkasCheckoutOption as ICheckoutOption } from "@ikas/storefront-models";
2
- export declare class IkasCheckoutOption implements ICheckoutOption {
3
- name: string;
4
- required: boolean;
5
- constructor(data: ICheckoutOption);
6
- }
@@ -1 +0,0 @@
1
- var e=function(e){this.name=e.name,this.required=e.required};export{e as IkasCheckoutOption};
@@ -1,7 +0,0 @@
1
- import { IkasCheckoutSettingsPrice as ICheckoutSettingsPrice } from "@ikas/storefront-models";
2
- export declare class IkasCheckoutSettingsPrice implements ICheckoutSettingsPrice {
3
- currencyCode: string;
4
- currencySymbol: string | null;
5
- price: number;
6
- constructor(data: ICheckoutSettingsPrice);
7
- }
@@ -1 +0,0 @@
1
- var r=function(r){this.currencyCode=r.currencyCode,this.currencySymbol=r.currencySymbol||null,this.price=r.price};export{r as IkasCheckoutSettingsPrice};
@@ -1,12 +0,0 @@
1
- import { IkasBaseModel } from "../base";
2
- import { IkasCity as ICity } from "@ikas/storefront-models";
3
- export declare class IkasCity extends IkasBaseModel implements ICity {
4
- cityCode: string | null;
5
- countryId: string;
6
- latitude: string | null;
7
- longitude: string | null;
8
- name: string;
9
- order: number | null;
10
- stateId: string;
11
- constructor(data: ICity);
12
- }
@@ -1 +0,0 @@
1
- import{__extends as t}from'./../../../ext/tslib/tslib.es6.js';import{IkasBaseModel as e}from"../base/index.js";var o=function(e){function o(t){var o=e.call(this,t)||this;return o.cityCode=null,o.latitude=null,o.longitude=null,o.order=null,o.cityCode=t.cityCode,o.countryId=t.countryId,o.latitude=t.latitude,o.longitude=t.longitude,o.name=t.name,o.order=t.order,o.stateId=t.stateId,o}return t(o,e),o}(e);export{o as IkasCity};
@@ -1,9 +0,0 @@
1
- import { IkasContactForm as IContactForm } from "@ikas/storefront-models";
2
- export declare class IkasContactForm implements IContactForm {
3
- email: string;
4
- firstName: string;
5
- lastName: string;
6
- message: string;
7
- referer: string;
8
- constructor(data: IContactForm);
9
- }
@@ -1 +0,0 @@
1
- import{makeAutoObservable as e}from"mobx";var s=function(s){this.email=s.email,this.firstName=s.firstName,this.lastName=s.lastName,this.message=s.message,this.referer=s.referer,e(this)};export{s as IkasContactForm};
@@ -1,18 +0,0 @@
1
- import { IkasBaseModel } from "../base";
2
- import { IkasLocationTranslations } from "./location-translations";
3
- import { IkasCountry as ICountry } from "@ikas/storefront-models";
4
- export declare class IkasCountry extends IkasBaseModel implements ICountry {
5
- capital: string | null;
6
- currency: string | null;
7
- emoji: string | null;
8
- emojiString: string | null;
9
- iso2: string | null;
10
- iso3: string | null;
11
- locationTranslations?: IkasLocationTranslations | null;
12
- name: string;
13
- native: string | null;
14
- phoneCode: string | null;
15
- region: string | null;
16
- subregion: string | null;
17
- constructor(data: ICountry);
18
- }
@@ -1 +0,0 @@
1
- import{__extends as n}from'./../../../ext/tslib/tslib.es6.js';import{IkasBaseModel as l}from"../base/index.js";import{makeObservable as o,observable as i}from"mobx";var e=function(l){function e(n){var e=l.call(this,n)||this;return e.capital=null,e.currency=null,e.emoji=null,e.emojiString=null,e.iso2=null,e.iso3=null,e.locationTranslations=null,e.native=null,e.phoneCode=null,e.region=null,e.subregion=null,e.capital=n.capital||null,e.currency=n.currency||null,e.emoji=n.emoji||null,e.emojiString=n.emojiString||null,e.iso2=n.iso2||null,e.iso3=n.iso3||null,e.locationTranslations=n.locationTranslations||null,e.name=n.name||"",e.native=n.native||null,e.phoneCode=n.phoneCode||null,e.region=n.region||null,e.subregion=n.subregion||null,o(e,{capital:i,currency:i,emoji:i,emojiString:i,iso2:i,iso3:i,locationTranslations:i,name:i,native:i,phoneCode:i,region:i,subregion:i}),e}return n(e,l),e}(l);export{e as IkasCountry};
@@ -1,7 +0,0 @@
1
- import { IkasLocationTranslations as ILocationTranslations } from "@ikas/storefront-models";
2
- export declare class IkasLocationTranslations implements ILocationTranslations {
3
- de: string | null;
4
- en: string;
5
- tr: string;
6
- constructor(data: ILocationTranslations);
7
- }
@@ -1,7 +0,0 @@
1
- import { IkasCustomerAddressCity as ICustomerAddressCity } from "@ikas/storefront-models";
2
- export declare class IkasCustomerAddressCity implements ICustomerAddressCity {
3
- code: string | null;
4
- id: string | null;
5
- name: string;
6
- constructor(data: ICustomerAddressCity);
7
- }
@@ -1 +0,0 @@
1
- import{makeAutoObservable as i}from"mobx";var t=function(t){this.code=null,this.id=null,this.code=t.code,this.id=t.id,this.name=t.name,i(this)};export{t as IkasCustomerAddressCity};
@@ -1,9 +0,0 @@
1
- import { IkasCustomerAddressCountry as ICustomerAddressCountry } from "@ikas/storefront-models";
2
- export declare class IkasCustomerAddressCountry implements ICustomerAddressCountry {
3
- code: string | null;
4
- id: string | null;
5
- iso2: string | null;
6
- iso3: string | null;
7
- name: string;
8
- constructor(data: ICustomerAddressCountry);
9
- }
@@ -1 +0,0 @@
1
- import{makeAutoObservable as i}from"mobx";var s=function(s){this.code=null,this.id=null,this.iso2=null,this.iso3=null,this.code=s.code,this.id=s.id,this.iso2=s.iso2,this.iso3=s.iso3,this.name=s.name,i(this)};export{s as IkasCustomerAddressCountry};