@ikas/storefront 5.0.0-beta.2 → 5.0.0-beta.20

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 +2 -3
  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,29 +0,0 @@
1
- import { IkasProductOption } from "./option";
2
- import { IkasProductOptionSelectValueTranslations as IProductOptionSelectValueTranslations, IkasProductOptionTranslations as IProductOptionTranslations, IkasProductOptionSetTranslations as IProductOptionSetTranslations, IkasProductOptionSet as IProductOptionSet } from "@ikas/storefront-models";
3
- export declare class IkasProductOptionSelectValueTranslations implements IProductOptionSelectValueTranslations {
4
- id: string;
5
- value: string | null;
6
- constructor(data: Partial<IProductOptionSelectValueTranslations>);
7
- }
8
- export declare class IkasProductOptionTranslations implements IProductOptionTranslations {
9
- id: string;
10
- name: string | null;
11
- optionalText: string | null;
12
- values: IkasProductOptionSelectValueTranslations[] | null;
13
- constructor(data: Partial<IProductOptionTranslations>);
14
- }
15
- export declare class IkasProductOptionSetTranslations implements IProductOptionSetTranslations {
16
- locale: string;
17
- options: IkasProductOptionTranslations[] | null;
18
- constructor(data: Partial<IProductOptionSetTranslations>);
19
- }
20
- export declare class IkasProductOptionSet implements IProductOptionSet {
21
- id: string;
22
- name: string;
23
- options: IkasProductOption[];
24
- translations: IkasProductOptionSetTranslations[] | null;
25
- constructor(data: Partial<IkasProductOptionSet>);
26
- get displayedOptions(): IkasProductOption[];
27
- get hasValidValues(): boolean;
28
- initOptionValues: () => Promise<void>;
29
- }
@@ -1 +0,0 @@
1
- import{__awaiter as t,__generator as i,__assign as n}from'./../../../../ext/tslib/tslib.es6.js';import{makeAutoObservable as o}from"mobx";import{IkasProductOption as e}from"./option/index.js";import{setChildOptions as r}from"@ikas/storefront-models";import{IkasProductOptionSetFunctions as s}from"@ikas/storefront-model-functions";var u=function(t){this.id=t.id||"",this.value=t.value||null},l=function(t){var i;this.id=t.id||"",this.name=t.name||null,this.optionalText=t.optionalText||null,this.values=(null===(i=t.values)||void 0===i?void 0:i.map((function(t){return new u(t)})))||[]},a=function(t){var i;this.locale=t.locale||"",this.options=(null===(i=t.options)||void 0===i?void 0:i.map((function(t){return new l(t)})))||[]},p=function(){function u(s){var u,l,p=this;this.initOptionValues=function(){return t(p,void 0,void 0,(function(){return i(this,(function(t){return this.options.forEach((function(t){return t.initValues()})),[2]}))}))},this.id=s.id||"",this.name=s.name||"",this.options=(null===(u=s.options)||void 0===u?void 0:u.map((function(t){return new e(n(n({},t),{productOptionSetId:p.id}))})))||[],this.translations=s.translations?null===(l=s.translations)||void 0===l?void 0:l.map((function(t){return new a(t)})):null,this.options.forEach((function(t){return r(p)})),this.initOptionValues(),o(this)}return Object.defineProperty(u.prototype,"displayedOptions",{get:function(){return s.getDisplayedOptions(this)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"hasValidValues",{get:function(){return this.displayedOptions.every((function(t){return t.hasValidValues}))},enumerable:!1,configurable:!0}),u}();export{u as IkasProductOptionSelectValueTranslations,p as IkasProductOptionSet,a as IkasProductOptionSetTranslations,l as IkasProductOptionTranslations};
@@ -1,70 +0,0 @@
1
- import { IkasProductOptionSelectType, IkasProductOptionType, IkasProductOptionOtherPrice as IProductOptionOtherPrice, IkasProductOptionSelectValue as IProductOptionSelectValue, IkasProductOptionSelectSettings as IProductOptionSelectSettings, IkasProductOptionDateSettings as IProductOptionDateSettings, IkasProductOptionTextSettings as IProductOptionTextSettings, IkasProductOptionFileSettings as IProductOptionFileSettings, IkasProductOption as IProductOption } from "@ikas/storefront-models";
2
- import { IkasImage } from "../../../image";
3
- export declare class IkasProductOptionOtherPrice implements IProductOptionOtherPrice {
4
- currencyCode: string;
5
- price: number;
6
- constructor(data: IProductOptionOtherPrice);
7
- }
8
- export declare class IkasProductOptionSelectValue implements IProductOptionSelectValue {
9
- id: string;
10
- order: number;
11
- value: string;
12
- price: number | null;
13
- otherPrices: IkasProductOptionOtherPrice[] | null;
14
- thumbnailImageId: string | null;
15
- colorCode: string | null;
16
- thumbnailImage: IkasImage | null;
17
- constructor(data?: Partial<IProductOptionSelectValue>);
18
- }
19
- export declare class IkasProductOptionSelectSettings implements IProductOptionSelectSettings {
20
- type: IkasProductOptionSelectType;
21
- minSelect: number | null;
22
- maxSelect: number | null;
23
- values: IkasProductOptionSelectValue[];
24
- constructor(data?: Partial<IProductOptionSelectSettings>);
25
- }
26
- export declare class IkasProductOptionDateSettings implements IProductOptionDateSettings {
27
- min: Date | null;
28
- max: Date | null;
29
- minRelativeNextDate: number | null;
30
- maxRelativeNextDate: number | null;
31
- constructor(data: Partial<IProductOptionDateSettings>);
32
- }
33
- export declare class IkasProductOptionTextSettings implements IProductOptionTextSettings {
34
- min: number | null;
35
- max: number | null;
36
- constructor(data?: Partial<IProductOptionTextSettings>);
37
- }
38
- export declare class IkasProductOptionFileSettings {
39
- allowedExtensions: string[] | null;
40
- minQuantity: number | null;
41
- maxQuantity: number | null;
42
- constructor(data: Partial<IProductOptionFileSettings>);
43
- }
44
- export declare class IkasProductOption implements IProductOption {
45
- id: string;
46
- productOptionSetId: string;
47
- name: string;
48
- order: number;
49
- type: IkasProductOptionType;
50
- selectSettings: IkasProductOptionSelectSettings | null;
51
- textSettings: IkasProductOptionTextSettings | null;
52
- fileSettings: IkasProductOptionFileSettings | null;
53
- dateSettings: IkasProductOptionDateSettings | null;
54
- price: number | null;
55
- otherPrices: IkasProductOptionOtherPrice[] | null;
56
- isOptional: boolean;
57
- optionalText: string | null;
58
- requiredOptionId: string | null;
59
- requiredOptionValueIds: string[] | null;
60
- childOptions: IkasProductOption[];
61
- private pValues;
62
- constructor(data: Partial<IProductOption>);
63
- get displayedChildOptions(): IkasProductOption[];
64
- productOptionFileUpload: (files: File[]) => Promise<string[]>;
65
- get hasValidValues(): boolean;
66
- get values(): string[];
67
- set values(values: string[]);
68
- initValues: () => void;
69
- }
70
- export { IkasProductOptionSelectType, IkasProductOptionType };
@@ -1 +0,0 @@
1
- import{__awaiter as t,__generator as i}from'./../../../../../ext/tslib/tslib.es6.js';import{IkasProductOptionSelectType as e,IkasProductOptionType as n}from"@ikas/storefront-models";export{IkasProductOptionSelectType,IkasProductOptionType}from"@ikas/storefront-models";import{makeAutoObservable as l}from"mobx";import{IkasImage as s}from"../../../image/index.js";import o from"lodash/sortBy";import{IkasProductOptionFunctions as a}from"@ikas/storefront-model-functions";import{uploadFile as r,getProductOptionFileUrl as u}from"@ikas/storefront-api";var d=function(t){this.currencyCode=t.currencyCode,this.price=t.price},h=function(t){void 0===t&&(t={}),this.id=t.id||"",this.order=t.order||0,this.value=t.value||"",this.price=t.price||null,this.otherPrices=t.otherPrices||null,this.thumbnailImageId=t.thumbnailImageId||null,this.colorCode=t.colorCode||null,this.thumbnailImage=t.thumbnailImage?new s(t.thumbnailImage):t.thumbnailImageId?new s({id:t.thumbnailImageId,isVideo:!1}):null},m=function(t){var i;void 0===t&&(t={}),this.type=t.type||e.BOX,this.minSelect=null!==t.minSelect&&void 0!==t.minSelect?t.minSelect:null,this.maxSelect=null!==t.maxSelect&&void 0!==t.maxSelect?t.maxSelect:null,this.values=o((null===(i=t.values)||void 0===i?void 0:i.map((function(t){return new h(t)})))||[],"order")},c=function(t){this.min=t.min||null,this.max=t.max||null,this.minRelativeNextDate=void 0!==t.minRelativeNextDate?t.minRelativeNextDate:null,this.maxRelativeNextDate=void 0!==t.maxRelativeNextDate?t.maxRelativeNextDate:null},p=function(t){void 0===t&&(t={}),this.min=null!==t.min&&void 0!==t.min?t.min:null,this.max=null!==t.max&&void 0!==t.max?t.max:null},f=function(t){this.allowedExtensions=t.allowedExtensions||null,this.minQuantity=null!==t.minQuantity&&void 0!==t.minQuantity?t.minQuantity:null,this.maxQuantity=null!==t.maxQuantity&&void 0!==t.maxQuantity?t.maxQuantity:null},v=function(){function e(e){var s=this;this.childOptions=[],this.pValues=[],this.productOptionFileUpload=function(e){return t(s,void 0,void 0,(function(){var t,n,l,s,o,a=this;return i(this,(function(i){switch(i.label){case 0:return 0===e.length||this.fileSettings&&this.fileSettings.maxQuantity&&this.fileSettings.maxQuantity<e.length?[2,[]]:[4,Promise.all(e.map((function(t){return u({fileName:t.name,productOptionSetId:a.productOptionSetId,productOptionId:a.id},t)})))];case 1:t=i.sent().filter((function(t){return t.data})),n=[],l=0,s=t,i.label=2;case 2:return l<s.length?(o=s[l],[4,r(o.data,o.data.file)]):[3,5];case 3:i.sent()&&n.push(o.data.optionUrl),i.label=4;case 4:return l++,[3,2];case 5:return[2,n]}}))}))},this.initValues=function(){s.values=[],s.childOptions&&s.childOptions.forEach((function(t){return t.initValues()}))},this.id=e.id||"",this.productOptionSetId=e.productOptionSetId||"",this.name=e.name||"",this.order=e.order||0,this.type=e.type||n.CHOICE,this.selectSettings=e.selectSettings?new m(e.selectSettings||{}):null,this.textSettings=e.textSettings?new p(e.textSettings||{}):null,this.fileSettings=e.fileSettings?new f(e.fileSettings||{}):null,this.dateSettings=e.dateSettings?new c(e.dateSettings||{}):null,this.price=e.price||null,this.otherPrices=e.otherPrices||null,this.isOptional=e.isOptional||!1,this.optionalText=e.optionalText||null,this.requiredOptionId=e.requiredOptionId||null,this.requiredOptionValueIds=e.requiredOptionValueIds||null,this.values=e.values||[],l(this)}return Object.defineProperty(e.prototype,"displayedChildOptions",{get:function(){var t=a.getDisplayedChildOptions(this);return t.map((function(t){return t.displayedChildOptions})),t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasValidValues",{get:function(){return a.hasValidValues(this)&&this.displayedChildOptions.every((function(t){return t.hasValidValues}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"values",{get:function(){return this.pValues},set:function(t){this.pValues=t,t.length||this.childOptions.forEach((function(t){return t.values=[]}))},enumerable:!1,configurable:!0}),e}();export{v as IkasProductOption,c as IkasProductOptionDateSettings,f as IkasProductOptionFileSettings,d as IkasProductOptionOtherPrice,m as IkasProductOptionSelectSettings,h as IkasProductOptionSelectValue,p as IkasProductOptionTextSettings};
@@ -1,6 +0,0 @@
1
- import { IkasProductStar as IProductStar } from "@ikas/storefront-models";
2
- export declare class IkasProductStar implements IProductStar {
3
- count: number;
4
- star: number;
5
- constructor(data: IProductStar);
6
- }
@@ -1 +0,0 @@
1
- var t=function(t){this.count=t.count,this.star=t.star};export{t as IkasProductStar};
@@ -1,8 +0,0 @@
1
- import { IkasGetAvailableStockLocation, IkasProductStockLocations as IProductStockLocations } from "@ikas/storefront-models";
2
- export declare class IkasProductStockLocations implements IProductStockLocations {
3
- stockCount: number;
4
- stockLocation: IkasGetAvailableStockLocation;
5
- variantId: string;
6
- constructor(data: IProductStockLocations);
7
- get fullAddressText(): string;
8
- }
@@ -1 +0,0 @@
1
- var t=function(){function t(t){this.stockCount=t.stockCount,this.stockLocation=t.stockLocation,this.variantId=null==t?void 0:t.variantId}return Object.defineProperty(t.prototype,"fullAddressText",{get:function(){if(!this.stockLocation.address)return"";var t=[];return this.stockLocation.address.address&&t.push(this.stockLocation.address.address),this.stockLocation.address.postalCode&&t.push(this.stockLocation.address.postalCode),this.stockLocation.address.district&&this.stockLocation.address.district.name&&t.push(this.stockLocation.address.district.name),this.stockLocation.address.city&&this.stockLocation.address.city.name&&t.push(this.stockLocation.address.city.name),this.stockLocation.address.state&&this.stockLocation.address.state.name&&"Default"!==this.stockLocation.address.state.name&&t.push(this.stockLocation.address.state.name),this.stockLocation.address.country&&this.stockLocation.address.country.name&&t.push(this.stockLocation.address.country.name),t.join(", ")},enumerable:!1,configurable:!0}),t}();export{t as IkasProductStockLocations};
@@ -1,6 +0,0 @@
1
- import { IkasProductTag as IProductTag } from "@ikas/storefront-models";
2
- export declare class IkasProductTag implements IProductTag {
3
- id: string;
4
- name: string;
5
- constructor(data: IProductTag);
6
- }
@@ -1 +0,0 @@
1
- var i=function(i){this.id=i.id,this.name=i.name};export{i as IkasProductTag};
@@ -1,31 +0,0 @@
1
- import { IkasProductPrice } from "./price";
2
- import { IkasVariantValue } from "../../variant-type/variant-value";
3
- import { IkasProductAttributeMap, IkasProductAttributeValue } from "../attribute-value";
4
- import { IkasProductCampaign } from "../campaign";
5
- import { IkasProductImage } from "../image";
6
- import { IkasProductVariant as IProductVariant } from "@ikas/storefront-models";
7
- import { IkasProductVariantUnit } from "./unit";
8
- export declare class IkasProductVariant implements IProductVariant {
9
- id: string;
10
- sku: string | null;
11
- barcodeList: string[] | null;
12
- variantValues: IkasVariantValue[];
13
- attributes: IkasProductAttributeValue[];
14
- price: IkasProductPrice;
15
- stock: number;
16
- isActive: boolean;
17
- productId: string;
18
- sellIfOutOfStock: boolean;
19
- images: IkasProductImage[] | null;
20
- campaigns?: IkasProductCampaign[];
21
- unit: IkasProductVariantUnit | null;
22
- private _backInStockReminderSaved;
23
- constructor(data?: Partial<IProductVariant>);
24
- get mainImage(): IkasProductImage | undefined;
25
- get hasStock(): boolean;
26
- get isBackInStockEnabled(): boolean;
27
- get isBackInStockCustomerLoginRequired(): boolean | null | undefined;
28
- get isBackInStockReminderSaved(): boolean;
29
- get groupedAttributeValues(): IkasProductAttributeMap[];
30
- saveBackInStockReminder(email: string): Promise<boolean>;
31
- }
@@ -1 +0,0 @@
1
- import{__awaiter as t,__generator as e}from'./../../../../ext/tslib/tslib.es6.js';import{IkasProductPrice as i}from"./price/index.js";import{IkasVariantValue as r}from"../../variant-type/variant-value/index.js";import{IkasProductAttributeValue as n}from"../attribute-value/index.js";import{IkasProductImage as o}from"../image/index.js";import{IkasProductVariantFunctions as a}from"@ikas/storefront-model-functions";import{IkasStorefrontConfig as s}from"@ikas/storefront-config";import{saveProductBackInStockRemind as u,listProductBackInStockRemind as c}from"@ikas/storefront-api";import d from"lodash/groupBy";import p from"lodash/sortBy";import{IkasProductVariantUnit as m}from"./unit/index.js";var f=function(){function f(t){void 0===t&&(t={}),this._backInStockReminderSaved=!1,this.id=t.id||Date.now()+"",this.productId=t.productId||"",this.sku=t.sku||null,this.barcodeList=t.barcodeList||[],this.variantValues=t.variantValues?t.variantValues.map((function(t){return new r(t)})):[],this.images=t.images?t.images.map((function(t){return new o(t)})):[],this.attributes=t.attributes?t.attributes.map((function(t){return new n(t)})):[],this.price=t.price?new i(t.price):new i,this.stock=t.stock||0,this.isActive=void 0===t.isActive||t.isActive,this.campaigns=t.campaigns||[],this.unit=t.unit?new m(t.unit):null,this.sellIfOutOfStock=t.sellIfOutOfStock||!1,this.images=p(this.images,"order")}return Object.defineProperty(f.prototype,"mainImage",{get:function(){var t=a.getMainImage(this);return t?new o(t):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"hasStock",{get:function(){return a.hasStock(this)},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"isBackInStockEnabled",{get:function(){return s.isBackInStockEnabled()},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"isBackInStockCustomerLoginRequired",{get:function(){return s.isCustomerLoginRequiredForBackInStock()},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"isBackInStockReminderSaved",{get:function(){return this._backInStockReminderSaved},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"groupedAttributeValues",{get:function(){var t,e=d(this.attributes,"productAttributeId");return(null===(t=this.attributes)||void 0===t?void 0:t.map((function(t){var i=t.productAttributeId;if(i){var r=e[i];return(null==r?void 0:r.length)&&r[0].productAttribute?{attribute:r[0].productAttribute,values:r}:void 0}})).filter((function(t){return!!t})))||[]},enumerable:!1,configurable:!0}),f.prototype.saveBackInStockReminder=function(i){var r;return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,c({email:{eq:i},productId:{eq:this.productId},variantId:{eq:this.id}})];case 1:return(t=e.sent())&&(null===(r=t.data)||void 0===r?void 0:r.length)?(this._backInStockReminderSaved=!0,[2,!1]):[3,2];case 2:return[4,u({input:{email:i,productId:this.productId,variantId:this.id}})];case 3:return e.sent().isSuccess?(this._backInStockReminderSaved=!0,[2,!0]):(this._backInStockReminderSaved=!1,[2,!1]);case 4:return[2]}}))}))},f}();export{f as IkasProductVariant};
@@ -1,19 +0,0 @@
1
- import { IkasProductPrice as IProductPrice } from "@ikas/storefront-models";
2
- export declare class IkasProductPrice implements IProductPrice {
3
- buyPrice: number | null;
4
- currency: string | null;
5
- currencySymbol: string | null;
6
- discountPrice: number | null;
7
- priceListId: string | null;
8
- sellPrice: number;
9
- unitPrice: number | null;
10
- constructor(data?: IProductPrice);
11
- get finalPrice(): number;
12
- get formattedFinalPrice(): string;
13
- get formattedBuyPrice(): string;
14
- get formattedDiscountPrice(): string;
15
- get formattedSellPrice(): string;
16
- get hasDiscount(): boolean;
17
- get discountAmount(): number;
18
- get discountPercentage(): string | 0;
19
- }
@@ -1 +0,0 @@
1
- import{IkasProductPriceFunctions as e}from"@ikas/storefront-model-functions";import{formatCurrency as r}from"../../../../../utils/currency.js";var t=function(){function t(e){var r,t,i,n,u,c,o;this.buyPrice=null,this.currency=null,this.currencySymbol=null,this.discountPrice=null,this.priceListId=null,this.unitPrice=null,this.buyPrice=null!==(r=null==e?void 0:e.buyPrice)&&void 0!==r?r:null,this.currency=null!==(t=null==e?void 0:e.currency)&&void 0!==t?t:null,this.currencySymbol=null!==(i=null==e?void 0:e.currencySymbol)&&void 0!==i?i:"",this.discountPrice=null!==(n=null==e?void 0:e.discountPrice)&&void 0!==n?n:null,this.priceListId=null!==(u=null==e?void 0:e.priceListId)&&void 0!==u?u:null,this.sellPrice=null!==(c=null==e?void 0:e.sellPrice)&&void 0!==c?c:0,this.unitPrice=null!==(o=null==e?void 0:e.unitPrice)&&void 0!==o?o:null}return Object.defineProperty(t.prototype,"finalPrice",{get:function(){return e.getFinalPrice(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"formattedFinalPrice",{get:function(){return r(this.finalPrice,this.currency||"",this.currencySymbol||"")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"formattedBuyPrice",{get:function(){return r(this.buyPrice||0,this.currency||"",this.currencySymbol||"")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"formattedDiscountPrice",{get:function(){return r(this.discountPrice||0,this.currency||"",this.currencySymbol||"")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"formattedSellPrice",{get:function(){return r(this.sellPrice||0,this.currency||"",this.currencySymbol||"")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasDiscount",{get:function(){return e.hasDiscount(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"discountAmount",{get:function(){return e.getDiscountAmount(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"discountPercentage",{get:function(){return e.getDiscountPercentage(this)},enumerable:!1,configurable:!0}),t}();export{t as IkasProductPrice};
@@ -1,6 +0,0 @@
1
- import { IkasProductUnitType, IkasProductVariantUnit as IProductVariantUnit } from "@ikas/storefront-models";
2
- export declare class IkasProductVariantUnit implements IProductVariantUnit {
3
- amount: number | null;
4
- type: IkasProductUnitType;
5
- constructor(data: IProductVariantUnit);
6
- }
@@ -1 +0,0 @@
1
- var t=function(t){this.amount=t.amount,this.type=t.type};export{t as IkasProductVariantUnit};
@@ -1,8 +0,0 @@
1
- import { IkasVariantType } from "../../variant-type";
2
- import { IkasProductVariantType as IProductVariantType } from "@ikas/storefront-models";
3
- export declare class IkasProductVariantType implements IProductVariantType {
4
- order: number;
5
- variantType: IkasVariantType;
6
- variantValueIds: string[];
7
- constructor(data: Partial<IkasProductVariantType>);
8
- }
@@ -1 +0,0 @@
1
- import{IkasVariantType as a}from"../../variant-type/index.js";var r=function(r){this.order=r.order||0,this.variantType=r.variantType?new a(r.variantType):new a,this.variantValueIds=r.variantValueIds||[]};export{r as IkasProductVariantType};
@@ -1,63 +0,0 @@
1
- import { IkasProduct } from "../product";
2
- import { IkasRaffleDateRangeField as IRaffleDateRangeField, IkasRaffle as IRaffle, IkasRaffleMetaData as IRaffleMetaData, IkasRaffleParticipant as IRaffleParticipant, IkasRaffleAppliedProduct as IRaffleAppliedProduct, IkasRaffleVerificationType, IkasRaffleMetadataTargetType, IkasRaffleParticipantStatus } from "@ikas/storefront-models";
3
- export { IkasRaffleVerificationType, IkasRaffleMetadataTargetType };
4
- export declare class IkasRaffleDateRangeField implements IRaffleDateRangeField {
5
- start: number | null;
6
- end: number | null;
7
- constructor(data: Partial<IkasRaffleDateRangeField>);
8
- }
9
- export declare class IkasRaffle implements IRaffle {
10
- id: string;
11
- createdAt: number;
12
- updatedAt: number;
13
- deleted: boolean | null;
14
- dateRange: IkasRaffleDateRangeField | null;
15
- metadata: IkasRaffleMetaData | null;
16
- name: string;
17
- requiredCustomerAccount: boolean;
18
- status: boolean;
19
- variants: IkasRaffleAppliedProduct[] | null;
20
- verificationType: IkasRaffleVerificationType;
21
- products: IkasProduct[];
22
- constructor(data?: Partial<IkasRaffle>);
23
- get isRaffleAvailable(): boolean | 0 | null | undefined;
24
- }
25
- export declare class IkasRaffleMetaData implements IRaffleMetaData {
26
- id: string;
27
- createdAt: number;
28
- updatedAt: number;
29
- deleted: boolean | null;
30
- description: string | null;
31
- pageTitle: string | null;
32
- slug: string;
33
- targetId: string | null;
34
- targetType: IkasRaffleMetadataTargetType | null;
35
- canonicals: string[] | null;
36
- disableIndex: boolean | null;
37
- constructor(data: Partial<IkasRaffleMetaData>);
38
- }
39
- export declare class IkasRaffleParticipant implements IRaffleParticipant {
40
- id: string | null;
41
- createdAt: number | null;
42
- updatedAt: number | null;
43
- deleted: boolean | null;
44
- customerId: string | null;
45
- raffleId: string;
46
- firstName: string;
47
- lastName: string;
48
- fullName: string | null;
49
- email: string;
50
- applicationDate: number;
51
- phone: string | null;
52
- isDeliveredCargo: boolean | null;
53
- raffle: IkasRaffle | null;
54
- status: IkasRaffleParticipantStatus | null;
55
- extraData: Record<string, any> | null;
56
- appliedProduct: IkasRaffleAppliedProduct;
57
- constructor(data: Partial<IkasRaffleParticipant>);
58
- }
59
- export declare class IkasRaffleAppliedProduct implements IRaffleAppliedProduct {
60
- productId: string;
61
- variantId: string;
62
- constructor(data: Partial<IkasRaffleAppliedProduct>);
63
- }
@@ -1 +0,0 @@
1
- import{makeAutoObservable as t}from"mobx";import{IkasProduct as e}from"../product/index.js";import{IkasRaffleVerificationType as i,IkasRaffleMetadataTargetType as a}from"@ikas/storefront-models";export{IkasRaffleMetadataTargetType,IkasRaffleVerificationType}from"@ikas/storefront-models";import{IkasRaffleFunctions as s}from"@ikas/storefront-model-functions";var l=function(e){this.start=e.start||null,this.end=e.end||null,t(this)},n=function(){function t(t){var a,s;void 0===t&&(t={}),this.id=t.id||Date.now()+"",this.createdAt=t.createdAt||Date.now(),this.updatedAt=t.updatedAt||Date.now(),this.deleted=t.deleted||null,this.name=t.name||"",this.requiredCustomerAccount=t.requiredCustomerAccount||!1,this.status=t.status||!1,this.verificationType=t.verificationType||i.EMAIL,this.dateRange=t.dateRange?new l(t.dateRange):null,this.metadata=t.metadata?new d(t.metadata):null,this.variants=(null===(a=t.variants)||void 0===a?void 0:a.map((function(t){return new o(t)})))||[],this.products=(null===(s=t.products)||void 0===s?void 0:s.map((function(t){return new e(t)})))||[]}return Object.defineProperty(t.prototype,"isRaffleAvailable",{get:function(){return s.isRaffleAvailable(this)},enumerable:!1,configurable:!0}),t}(),d=function(e){var i,s;this.canonicals=null,this.disableIndex=null,this.id=e.id||Date.now()+"",this.createdAt=e.createdAt||Date.now(),this.updatedAt=e.updatedAt||Date.now(),this.deleted=e.deleted||null,this.description=e.description||"",this.pageTitle=e.pageTitle||"",this.slug=e.slug||"",this.targetId=e.targetId||"",this.targetType=e.targetType||a.RAFFLE,this.canonicals=null!==(i=e.canonicals)&&void 0!==i?i:null,this.disableIndex=null!==(s=e.disableIndex)&&void 0!==s?s:null,t(this)},r=function(e){this.id=null,this.createdAt=null,this.updatedAt=null,this.deleted=null,this.customerId=null,this.fullName=null,this.phone=null,this.extraData=null,this.id=e.id||null,this.createdAt=e.createdAt||Date.now(),this.updatedAt=e.updatedAt||Date.now(),this.deleted=e.deleted||!1,this.customerId=e.customerId||null,this.raffleId=e.raffleId||"",this.firstName=e.firstName||"",this.lastName=e.lastName||"",this.fullName=e.fullName||null,this.email=e.email||"",this.applicationDate=e.applicationDate||0,this.phone=e.phone||null,this.isDeliveredCargo=e.isDeliveredCargo||!1,this.raffle=e.raffle?new n(e.raffle):null,this.status=e.status||null,this.extraData=e.extraData||{},this.appliedProduct=new o(e.appliedProduct||{}),t(this)},o=function(e){this.productId=e.productId||"",this.variantId=e.variantId||"",t(this)};export{n as IkasRaffle,o as IkasRaffleAppliedProduct,l as IkasRaffleDateRangeField,d as IkasRaffleMetaData,r as IkasRaffleParticipant};
@@ -1,19 +0,0 @@
1
- import { IkasSalesChannel as ISalesChannel, IkasSalesChannelStockLocation as ISalesChannelStockLocation, IkasSalesChannelPaymentGateway as ISalesChannelPaymentGateway } from "@ikas/storefront-models";
2
- export declare class IkasSalesChannel implements ISalesChannel {
3
- id: string;
4
- name: string;
5
- priceListId: string | null;
6
- stockLocations: IkasSalesChannelStockLocation[] | null;
7
- paymentGateways: IkasSalesChannelPaymentGateway[] | null;
8
- constructor(data: ISalesChannel);
9
- }
10
- export declare class IkasSalesChannelStockLocation implements ISalesChannelStockLocation {
11
- id: string;
12
- order: number;
13
- constructor(data: ISalesChannelStockLocation);
14
- }
15
- export declare class IkasSalesChannelPaymentGateway implements ISalesChannelPaymentGateway {
16
- id: string;
17
- order: number;
18
- constructor(data: ISalesChannelStockLocation);
19
- }
@@ -1 +0,0 @@
1
- import{makeAutoObservable as i}from"mobx";var t=function(t){var o,e;this.priceListId=null,this.stockLocations=null,this.paymentGateways=null,this.id=t.id,this.name=t.name,this.priceListId=t.priceListId||null,this.stockLocations=(null===(o=t.stockLocations)||void 0===o?void 0:o.map((function(i){return new n(i)})))||null,this.paymentGateways=(null===(e=t.paymentGateways)||void 0===e?void 0:e.map((function(i){return new s(i)})))||null,i(this)},n=function(t){this.id=t.id,this.order=t.order,i(this)},s=function(t){this.id=t.id,this.order=t.order,i(this)};export{t as IkasSalesChannel,s as IkasSalesChannelPaymentGateway,n as IkasSalesChannelStockLocation};
@@ -1,11 +0,0 @@
1
- import { IkasBaseModel } from "../base";
2
- import { IkasState as IState } from "@ikas/storefront-models";
3
- import { IkasLocationTranslations } from "./location-translations";
4
- export declare class IkasState extends IkasBaseModel implements IState {
5
- countryId: string;
6
- name: string;
7
- stateCode: string | null;
8
- locationTranslations?: IkasLocationTranslations | null;
9
- native: string | null;
10
- constructor(data: IState);
11
- }
@@ -1 +0,0 @@
1
- import{__extends as n}from'./../../../ext/tslib/tslib.es6.js';import{IkasBaseModel as t}from"../base/index.js";import{makeObservable as o,observable as a}from"mobx";var i=function(t){function i(n){var i=t.call(this,n)||this;return i.locationTranslations=null,i.native=null,i.countryId=n.countryId,i.name=n.name,i.stateCode=n.stateCode,i.locationTranslations=n.locationTranslations||null,i.native=n.native||null,o(i,{countryId:a,name:a,stateCode:a,native:a,locationTranslations:a}),i}return n(i,t),i}(t);export{i as IkasState};
@@ -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 { IkasStockLocationAddressCity as IStockLocationAddressCity } from "@ikas/storefront-models";
2
- export declare class IkasStockLocationAddressCity implements IStockLocationAddressCity {
3
- code: string | null;
4
- id: string | null;
5
- name: string;
6
- constructor(data: IStockLocationAddressCity);
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 IkasStockLocationAddressCity};
@@ -1,7 +0,0 @@
1
- import { IkasStockLocationAddressCountry as IStockLocationAddressCountry } from "@ikas/storefront-models";
2
- export declare class IkasStockLocationAddressCountry implements IStockLocationAddressCountry {
3
- code: string | null;
4
- id: string | null;
5
- name: string;
6
- constructor(data: IStockLocationAddressCountry);
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 IkasStockLocationAddressCountry};
@@ -1,7 +0,0 @@
1
- import { IkasStockLocationAddressDistrict as IStockLocationAddressDistrict } from "@ikas/storefront-models";
2
- export declare class IkasStockLocationAddressDistrict implements IStockLocationAddressDistrict {
3
- code: string | null;
4
- id: string | null;
5
- name: string | null;
6
- constructor(data: IStockLocationAddressDistrict);
7
- }
@@ -1 +0,0 @@
1
- import{makeAutoObservable as i}from"mobx";var t=function(t){this.code=null,this.id=null,this.name=null,this.code=t.code,this.id=t.id,this.name=t.name,i(this)};export{t as IkasStockLocationAddressDistrict};
@@ -1,15 +0,0 @@
1
- import { IkasStockLocationAddressCity } from "./city";
2
- import { IkasStockLocationAddressCountry } from "./country";
3
- import { IkasStockLocationAddressDistrict } from "./district";
4
- import { IkasStockLocationAddressState } from "./state";
5
- import { IkasStockLocationAddress as IStockLocationAddress } from "@ikas/storefront-models";
6
- export declare class IkasStockLocationAddress implements IStockLocationAddress {
7
- address: string | null;
8
- city: IkasStockLocationAddressCity | null;
9
- country: IkasStockLocationAddressCountry | null;
10
- district: IkasStockLocationAddressDistrict | null;
11
- state: IkasStockLocationAddressState | null;
12
- phone: string | null;
13
- postalCode: string | null;
14
- constructor(data: IStockLocationAddress);
15
- }
@@ -1 +0,0 @@
1
- import{IkasStockLocationAddressCity as t}from"./city/index.js";import{IkasStockLocationAddressCountry as i}from"./country/index.js";import{IkasStockLocationAddressDistrict as s}from"./district/index.js";import{IkasStockLocationAddressState as n}from"./state/index.js";import{makeAutoObservable as l}from"mobx";var o=function(o){this.address=null,this.city=null,this.country=null,this.district=null,this.state=null,this.phone=null,this.postalCode=null,this.address=o.address||null,this.city=o.city?new t(o.city):null,this.country=o.country?new i(o.country):null,this.district=o.district?new s(o.district):null,this.state=o.state?new n(o.state):null,this.phone=o.phone||null,this.postalCode=o.postalCode||null,l(this)};export{o as IkasStockLocationAddress};
@@ -1,7 +0,0 @@
1
- import { IkasStockLocationAddressState as IStockLocationAddressState } from "@ikas/storefront-models";
2
- export declare class IkasStockLocationAddressState implements IStockLocationAddressState {
3
- code: string | null;
4
- id: string | null;
5
- name: string | null;
6
- constructor(data: IStockLocationAddressState);
7
- }
@@ -1 +0,0 @@
1
- import{makeAutoObservable as i}from"mobx";var t=function(t){this.code=null,this.id=null,this.name=null,this.code=t.code,this.id=t.id,this.name=t.name,i(this)};export{t as IkasStockLocationAddressState};
@@ -1,10 +0,0 @@
1
- import { IkasStockLocationType } from "..";
2
- import { IkasStockLocationAddress } from "../address";
3
- import { IkasAvailableStockLocation as IAvailableStockLocation } from "@ikas/storefront-models";
4
- export declare class IkasAvailableStockLocation implements IAvailableStockLocation {
5
- address: IkasStockLocationAddress | null;
6
- id: string;
7
- name: string;
8
- type: IkasStockLocationType | null;
9
- constructor(data: IAvailableStockLocation);
10
- }
@@ -1 +0,0 @@
1
- import{IkasStockLocationAddress as s}from"../address/index.js";import{makeAutoObservable as d}from"mobx";var e=function(e){this.address=e.address?new s(e.address):null,this.id=e.id,this.name=e.name,this.type=e.type||null,d(this)};export{e as IkasAvailableStockLocation};
@@ -1,14 +0,0 @@
1
- import { IkasStockLocationDeliveryTime, IkasStockLocationType, IkasStockLocation as IStockLocation } from "@ikas/storefront-models";
2
- import { IkasStockLocationAddress } from "./address";
3
- export declare class IkasStockLocation implements IStockLocation {
4
- address: IkasStockLocationAddress | null;
5
- deliveryTime: IkasStockLocationDeliveryTime | null;
6
- description: string | null;
7
- isRemindOutOfStockEnabled: boolean | null;
8
- name: string;
9
- outOfStockMailList: string[] | null;
10
- type: IkasStockLocationType | null;
11
- id: string;
12
- constructor(data: IStockLocation);
13
- }
14
- export { IkasStockLocationDeliveryTime, IkasStockLocationType };
@@ -1 +0,0 @@
1
- export{IkasStockLocationDeliveryTime,IkasStockLocationType}from"@ikas/storefront-models";import{makeAutoObservable as i}from"mobx";import{IkasStockLocationAddress as t}from"./address/index.js";var s=function(s){this.address=null,this.deliveryTime=null,this.description=null,this.isRemindOutOfStockEnabled=null,this.outOfStockMailList=null,this.type=null,this.address=s.address?new t(s.address):null,this.deliveryTime=s.deliveryTime||null,this.description=s.description||null,this.isRemindOutOfStockEnabled=s.isRemindOutOfStockEnabled||null,this.name=s.name,this.outOfStockMailList=s.outOfStockMailList||null,this.type=s.type||null,this.id=s.id,i(this)};export{s as IkasStockLocation};
@@ -1,9 +0,0 @@
1
- import { IkasStorefrontDomain as IStorefrontDomain } from "@ikas/storefront-models";
2
- export declare class IkasStorefrontDomain implements IStorefrontDomain {
3
- id: string;
4
- merchantDomainId: string;
5
- name: string;
6
- redirectDomainName: string | null;
7
- isDefault: boolean | null;
8
- constructor(data: IStorefrontDomain);
9
- }
@@ -1 +0,0 @@
1
- import{makeAutoObservable as i}from"mobx";var t=function(t){this.redirectDomainName=null,this.isDefault=null,this.id=t.id,this.merchantDomainId=t.merchantDomainId,this.name=t.name,this.redirectDomainName=t.redirectDomainName,this.isDefault=t.isDefault,i(this)};export{t as IkasStorefrontDomain};
@@ -1,30 +0,0 @@
1
- import { IkasStorefrontLocalization } from "./localization";
2
- import { IkasStorefrontDomain } from "./domain";
3
- import { IkasStorefrontRouting } from "./routing";
4
- import { IkasStorefrontTheme } from "./theme";
5
- import { IkasStorefrontStatus } from "@ikas/storefront-models";
6
- import { IkasStorefront as IStorefront } from "@ikas/storefront-models";
7
- import { IkasStorefontMetaTemplates } from "./meta-templates";
8
- export declare class IkasStorefront implements IStorefront {
9
- id: string;
10
- name: string;
11
- status: IkasStorefrontStatus;
12
- mainStorefrontThemeId: string | null;
13
- metaTemplates: IkasStorefontMetaTemplates[] | null;
14
- pickUpStockLocationIds: string[] | null;
15
- emailSettingsId: string | null;
16
- salesChannelId: string | null;
17
- fbpId: string | null;
18
- gtmId: string | null;
19
- analytics4Id: string | null;
20
- universalAnalyticsId: string | null;
21
- tiktokPixelId: string | null;
22
- token: string | null;
23
- robotsTxt: string | null;
24
- localizations: IkasStorefrontLocalization[];
25
- routings: IkasStorefrontRouting[];
26
- domains: IkasStorefrontDomain[];
27
- themes: IkasStorefrontTheme[];
28
- constructor(data?: Partial<IkasStorefront>);
29
- }
30
- export { IkasStorefrontStatus };
@@ -1 +0,0 @@
1
- import{IkasStorefrontLocalization as t}from"./localization/index.js";import{IkasStorefrontDomain as i}from"./domain/index.js";import{IkasStorefrontRouting as n}from"./routing/index.js";import{IkasStorefrontTheme as s}from"./theme/index.js";import{IkasStorefrontStatus as o}from"@ikas/storefront-models";export{IkasStorefrontStatus}from"@ikas/storefront-models";import{makeAutoObservable as e}from"mobx";import{IkasStorefontMetaTemplates as a}from"./meta-templates/index.js";var l=function(l){void 0===l&&(l={}),this.id=l.id||"",this.name=l.name||"",this.status=l.status||o.WAITING,this.mainStorefrontThemeId=l.mainStorefrontThemeId||null,this.pickUpStockLocationIds=l.pickUpStockLocationIds||null,this.emailSettingsId=l.emailSettingsId||null,this.salesChannelId=l.salesChannelId||null,this.gtmId=l.gtmId||null,this.fbpId=l.fbpId||null,this.analytics4Id=l.analytics4Id||null,this.universalAnalyticsId=l.universalAnalyticsId||null,this.tiktokPixelId=l.tiktokPixelId||null,this.token=l.token||null,this.robotsTxt=l.robotsTxt||null,this.metaTemplates=l.metaTemplates?l.metaTemplates.map((function(t){return new a(t)})):null,this.localizations=l.localizations?l.localizations.map((function(i){return new t(i)})):[],this.routings=l.routings?l.routings.map((function(t){return new n(t)})):[],this.domains=l.domains?l.domains.map((function(t){return new i(t)})):[],this.themes=l.themes?l.themes.map((function(t){return new s(t)})):[],e(this)};export{l as IkasStorefront};
@@ -1,8 +0,0 @@
1
- import { IkasStorefrontLocalization as IStorefrontLocalization } from "@ikas/storefront-models";
2
- export declare class IkasStorefrontLocalization implements IStorefrontLocalization {
3
- id: string;
4
- isDefault: boolean;
5
- locale: string;
6
- name: string;
7
- constructor(data: IStorefrontLocalization);
8
- }
@@ -1 +0,0 @@
1
- import{makeAutoObservable as i}from"mobx";var t=function(t){this.id=t.id,this.isDefault=t.isDefault,this.locale=t.locale,this.name=t.name,i(this)};export{t as IkasStorefrontLocalization};
@@ -1,8 +0,0 @@
1
- import { IkasStorefontMetaTemplates as IStorefontMetaTemplates, StorefrontPageTypesEnum } from "@ikas/storefront-models";
2
- export declare class IkasStorefontMetaTemplates implements IStorefontMetaTemplates {
3
- descriptionTemplate: string | null;
4
- locale: string | null;
5
- pageType: StorefrontPageTypesEnum | null;
6
- titleTemplate: string | null;
7
- constructor(data: IStorefontMetaTemplates);
8
- }
@@ -1 +0,0 @@
1
- import{makeAutoObservable as e}from"mobx";var t=function(t){this.descriptionTemplate=t.descriptionTemplate,this.locale=t.locale,this.pageType=t.pageType,this.titleTemplate=t.titleTemplate,e(this)};export{t as IkasStorefontMetaTemplates};
@@ -1,6 +0,0 @@
1
- import { IkasStorefrontDynamicCurrencySettings as IStorefrontDynamicCurrencySettings } from "@ikas/storefront-models";
2
- export declare class IkasStorefrontDynamicCurrencySettings implements IStorefrontDynamicCurrencySettings {
3
- roundingFormat: string | null;
4
- targetCurrencyCode: string;
5
- constructor(data: IStorefrontDynamicCurrencySettings);
6
- }
@@ -1 +0,0 @@
1
- import{makeAutoObservable as r}from"mobx";var t=function(t){this.roundingFormat=null,this.roundingFormat=t.roundingFormat||null,this.targetCurrencyCode=t.targetCurrencyCode,r(this)};export{t as IkasStorefrontDynamicCurrencySettings};
@@ -1,14 +0,0 @@
1
- import { IkasStorefrontDynamicCurrencySettings } from "./dynamic-currency";
2
- import { IkasStorefrontRouting as IStorefrontRouting } from "@ikas/storefront-models";
3
- export declare class IkasStorefrontRouting implements IStorefrontRouting {
4
- id: string;
5
- countryCodes: string[] | null;
6
- domain: string | null;
7
- locale: string;
8
- path: string | null;
9
- priceListId: string | null;
10
- dynamicCurrencySettings: IkasStorefrontDynamicCurrencySettings | null;
11
- currencyCode: string | null;
12
- currencySymbol: string | null;
13
- constructor(data: IStorefrontRouting);
14
- }
@@ -1 +0,0 @@
1
- import{makeAutoObservable as i}from"mobx";var t=function(t){this.id=t.id,this.countryCodes=t.countryCodes,this.domain=t.domain,this.locale=t.locale,this.path=t.path,this.priceListId=t.priceListId,this.dynamicCurrencySettings=t.dynamicCurrencySettings,this.currencyCode=t.currencyCode,this.currencySymbol=t.currencySymbol,i(this)};export{t as IkasStorefrontRouting};
@@ -1,10 +0,0 @@
1
- import { IkasStorefrontTheme as IStorefrontTheme, IkasStorefrontThemeStatus } from "@ikas/storefront-models";
2
- export declare class IkasStorefrontTheme implements IkasStorefrontTheme {
3
- id: string;
4
- isMainTheme: boolean;
5
- name: string;
6
- status: IkasStorefrontThemeStatus;
7
- themeId: string;
8
- themeVersionId: string;
9
- constructor(data: IStorefrontTheme);
10
- }
@@ -1 +0,0 @@
1
- import{makeAutoObservable as t}from"mobx";var e=function(e){this.id=e.id,this.isMainTheme=e.isMainTheme,this.name=e.name,this.status=e.status,this.themeId=e.themeId,this.themeVersionId=e.themeVersionId,t(this)};export{e as IkasStorefrontTheme};