@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,139 +1,8 @@
1
- export * from "./base";
2
- export * from "./blog/category";
3
- export * from "./blog/content";
4
- export * from "./blog/meta-data";
5
- export * from "./blog/tag";
6
- export * from "./blog/writer";
7
- export * from "./blog";
8
- export * from "./brand/translation";
9
- export * from "./brand";
10
- export * from "./campaign-offer/product";
11
- export * from "./campaign-offer";
12
- export * from "./cart/available-shipping-method";
13
- export * from "./cart/campaign-offer";
14
- export * from "./cart";
15
- export * from "./category/path-item";
16
- export * from "./category/translations";
17
- export * from "./category";
18
- export * from "./checkout";
19
- export * from "./checkout/country-settings-model";
20
- export * from "./checkout-settings/option";
21
- export * from "./checkout-settings/price";
22
- export * from "./checkout-settings";
23
- export * from "./city";
24
- export * from "./contact-form";
25
- export * from "./country";
26
- export * from "./customer/address/city";
27
- export * from "./customer/address/country";
28
- export * from "./customer/address/district";
29
- export * from "./customer/address/state";
30
- export * from "./customer/address";
31
- export * from "./customer/address/ikas-localized-customer-address";
32
- export * from "./customer/attribute/option";
33
- export * from "./customer/attribute/sales-channel";
34
- export * from "./customer/attribute/translation/option";
35
- export * from "./customer/attribute/translation";
36
- export * from "./customer/attribute/value";
37
- export * from "./customer/attribute";
38
- export * from "./customer/review/settings";
39
- export * from "./customer/review/summary/star";
40
- export * from "./customer/review/summary";
41
- export * from "./customer/review";
42
- export * from "./customer";
43
- export * from "./district";
44
- export * from "./favorite-product";
45
- export * from "./filter-category";
46
- export * from "./html-meta-data/translations";
47
- export * from "./html-meta-data";
48
- export * from "./image";
49
- export * from "./last-viewed-product";
50
- export * from "./merchant-settings";
51
- export * from "./order/address/city";
52
- export * from "./order/address/country";
53
- export * from "./order/address/district";
54
- export * from "./order/address/state";
55
- export * from "./order/address";
56
- export * from "./order/adjustment/applied-order-line";
57
- export * from "./order/adjustment";
58
- export * from "./order/customer";
59
- export * from "./order/gift-line";
60
- export * from "./order/invoice";
61
- export * from "./order/line-item/discount";
62
- export * from "./order/line-item/option/value";
63
- export * from "./order/line-item/option";
64
- export * from "./order/line-item/variant/brand";
65
- export * from "./order/line-item/variant/category";
66
- export * from "./order/line-item/variant/price";
67
- export * from "./order/line-item/variant/value";
68
- export * from "./order/line-item/variant";
69
- export * from "./order/line-item";
70
- export * from "./order/package/tracking-info";
71
- export * from "./order/package";
72
- export * from "./order/payment-method";
73
- export * from "./order/refund/line-item";
74
- export * from "./order/refund/settings";
75
- export * from "./order/refund";
76
- export * from "./order/shipping-line";
77
- export * from "./order/tax-line";
78
- export * from "./order/transaction/error";
79
- export * from "./order/transaction/payment-method-detail/installment-price";
80
- export * from "./order/transaction/payment-method-detail";
81
- export * from "./order/transaction";
82
- export * from "./order";
83
- export * from "./payment-gateway/additional-price";
84
- export * from "./payment-gateway/settings";
85
- export * from "./payment-gateway/translation";
86
- export * from "./payment-gateway";
87
- export * from "./product/attribute/option";
88
- export * from "./product/attribute/table-cell";
89
- export * from "./product/attribute/table-template";
90
- export * from "./product/attribute/translation";
91
- export * from "./product/attribute";
92
- export * from "./product/attribute-value";
93
- export * from "./product/back-in-stock-settings";
94
- export * from "./product/filter";
95
- export * from "./product/campaign/data";
96
- export * from "./product/campaign/filter";
97
- export * from "./product/campaign/product-buyx-then-gety";
98
- export * from "./product/campaign/product-campaign-date-range-field";
99
- export * from "./product/campaign/product-fixed-discount";
100
- export * from "./product/campaign";
101
- export * from "./product/image";
102
- export * from "./product/option-set/option";
103
- export * from "./product/option-set";
104
- export * from "./product/stock-location";
105
- export * from "./product/tag";
106
- export * from "./product/variant/price";
107
- export * from "./product/variant";
108
- export * from "./product/variant-type";
109
- export * from "./product";
110
- export * from "./raffle/";
111
- export * from "./sales-channel";
112
- export * from "./state";
113
- export * from "./stock-location/address/city";
114
- export * from "./stock-location/address/country";
115
- export * from "./stock-location/address/district";
116
- export * from "./stock-location/address/state";
117
- export * from "./stock-location/address";
118
- export * from "./stock-location/available";
119
- export * from "./stock-location";
120
- export * from "./storefront/domain";
121
- export * from "./storefront/localization";
122
- export * from "./storefront/routing/dynamic-currency";
123
- export * from "./storefront/routing";
124
- export * from "./storefront/theme";
125
- export * from "./storefront/theme-localization";
126
- export * from "./storefront";
127
- export * from "./theme-json/component/prop";
128
- export * from "./theme-json/component";
129
- export * from "./theme-json/custom-data";
130
- export * from "./theme-json/page/component";
131
- export * from "./theme-json/page";
132
- export * from "./theme-json/settings/color";
133
- export * from "./theme-json/settings/favicon";
134
- export * from "./theme-json/settings/font-family";
135
- export * from "./theme-json/settings";
136
- export * from "./theme-json";
137
- export * from "./variant-type/variant-value";
138
- export * from "./variant-type";
1
+ export * from "@ikas/storefront-models";
2
+ export * from "./localized-customer-address";
3
+ export * as IkasLocalizedCustomerAddressFunctions from "./localized-customer-address/functions";
4
+ export * from "./localized-order-address";
5
+ export * as IkasLocalizedOrderAddressFunctions from "./localized-order-address/functions";
6
+ export * from "./review-form";
139
7
  export type { IkasSliderPropValueData as IkasSlider } from "@ikas/storefront-providers";
8
+ export { AddressFormItem, BillingFormItem } from "@ikas/localized-address";
@@ -0,0 +1,65 @@
1
+ import { IkasCheckoutSettings, IkasCustomerAddress } from "@ikas/storefront-models";
2
+ import { AddressFormField, ErrorType, IkasAddressFormLabels, AddressFormItem, CustomAddressFormSettings, LocalizedAddressModel } from "@ikas/localized-address";
3
+ import { IkasLocalizedCustomerAddress } from ".";
4
+ import { IkasLocalizedOrderAddress } from "../localized-order-address";
5
+ export declare function createIkasLocalizedCustomerAddress(address: Partial<IkasCustomerAddress>, checkoutSettings?: IkasCheckoutSettings | null, countrySettings?: LocalizedAddressModel): IkasLocalizedCustomerAddress;
6
+ export declare function getCountryCode(address: IkasLocalizedCustomerAddress | IkasLocalizedOrderAddress): string;
7
+ export declare function getInvisibleFields(address: IkasLocalizedCustomerAddress | IkasLocalizedOrderAddress): AddressFormItem[] | undefined;
8
+ export declare function getCustomAddressFormSettings(address: IkasLocalizedCustomerAddress): CustomAddressFormSettings | undefined;
9
+ export declare function getFieldSettings(address: IkasLocalizedCustomerAddress): {
10
+ firstName: AddressFormField;
11
+ lastName: AddressFormField;
12
+ identityNumber: AddressFormField;
13
+ addressLine1: AddressFormField;
14
+ addressLine2: AddressFormField;
15
+ postalCode: AddressFormField;
16
+ country: AddressFormField;
17
+ state: AddressFormField;
18
+ city: AddressFormField;
19
+ district: AddressFormField;
20
+ phone: AddressFormField;
21
+ company: AddressFormField;
22
+ taxOffice: AddressFormField;
23
+ taxNumber: AddressFormField;
24
+ title: AddressFormField;
25
+ } | undefined;
26
+ export declare function getAddressFormat(address: IkasLocalizedCustomerAddress | IkasLocalizedOrderAddress): AddressFormItem[][] | undefined;
27
+ export declare function getAddressFormatIgnoreCountry(address: IkasLocalizedCustomerAddress | IkasLocalizedOrderAddress): AddressFormItem[][] | undefined;
28
+ export declare function getBillingFormat(address: IkasLocalizedCustomerAddress | IkasLocalizedOrderAddress): import("@ikas/localized-address").BillingFormItem[][] | undefined;
29
+ export declare function validateIkasLocalizedCustomerAddress(address: IkasLocalizedCustomerAddress): {
30
+ firstName: ErrorType;
31
+ lastName: ErrorType;
32
+ identityNumber: ErrorType;
33
+ addressLine1: ErrorType;
34
+ addressLine2: ErrorType;
35
+ postalCode: ErrorType;
36
+ country: ErrorType;
37
+ state: ErrorType;
38
+ city: ErrorType;
39
+ district: ErrorType;
40
+ phone: ErrorType;
41
+ company: ErrorType;
42
+ taxOffice: ErrorType;
43
+ taxNumber: ErrorType;
44
+ title: ErrorType;
45
+ } | undefined;
46
+ export declare function isValidLocalizedCustomerAddress(address: IkasLocalizedCustomerAddress): boolean | undefined;
47
+ export declare function getFieldLabels(address: IkasLocalizedCustomerAddress): IkasAddressFormLabels | undefined;
48
+ export declare function isFreeTextCity(address: IkasLocalizedCustomerAddress): boolean | undefined;
49
+ export declare function isFreeTextDistrict(address: IkasLocalizedCustomerAddress): boolean | undefined;
50
+ export declare const addressToParams: (address: IkasCustomerAddress) => {
51
+ firstName: string;
52
+ lastName: string;
53
+ identityNumber: string;
54
+ addressLine1: string;
55
+ addressLine2: string;
56
+ postalCode: string;
57
+ country: string;
58
+ state: string;
59
+ city: string;
60
+ district: string;
61
+ phone: string;
62
+ company: string;
63
+ taxOffice: string;
64
+ taxNumber: string;
65
+ };
@@ -0,0 +1 @@
1
+ import{__assign as t}from'./../../../ext/tslib/tslib.es6.js';import{IkasCheckoutRequirement as e}from"@ikas/storefront-models";import{AddressFormItem as n}from"@ikas/localized-address";function i(t,e,n){return{addressLine1:t.addressLine1||"",addressLine2:t.addressLine2||null,company:t.company||null,firstName:t.firstName||"",id:t.id||"",identityNumber:t.identityNumber||null,isDefault:t.isDefault||!1,lastName:t.lastName||"",phone:t.phone||null,postalCode:t.postalCode||null,taxNumber:t.taxNumber||null,taxOffice:t.taxOffice||null,title:t.title||"",attributes:t.attributes||[],createdAt:t.createdAt||Date.now(),updatedAt:t.updatedAt||Date.now(),country:t.country||null,state:t.state||null,city:t.city||null,district:t.district||null,checkoutSettings:e||null,countrySettings:n||null}}function r(t){var e;return(null===(e=t.country)||void 0===e?void 0:e.iso2)||"TR"}function u(t){if(t.checkoutSettings){var i=[];return t.checkoutSettings.identityNumberRequirement===e.INVISIBLE&&i.push(n.IDENTITY_NUMBER),t.checkoutSettings.postalCodeRequirement===e.INVISIBLE&&i.push(n.POSTAL_CODE),t.checkoutSettings.phoneRequirement===e.INVISIBLE&&i.push(n.PHONE),i}}function s(t){if(t.checkoutSettings){var n={};return t.checkoutSettings.phoneRequirement&&(n.phone={required:t.checkoutSettings.phoneRequirement===e.MANDATORY}),t.checkoutSettings.postalCodeRequirement&&(n.postalCode={required:t.checkoutSettings.postalCodeRequirement===e.MANDATORY}),t.checkoutSettings.identityNumberRequirement&&(n.identityNumber={required:t.checkoutSettings.identityNumberRequirement===e.MANDATORY}),n}}function o(e){if(e.countrySettings){var n=e.countrySettings.getFieldSettings({country:r(e),invisibleAddressFields:u(e),customAddressFormSettings:s(e)});if(n)return t({title:{required:!0}},n)}}function c(t){if(t.countrySettings)return t.countrySettings.getAddressFormat(r(t),u(t))}function d(t){if(t.countrySettings)return t.countrySettings.getAddressFormatIgnoreCountry(r(t),u(t))}function a(t){if(t.countrySettings)return t.countrySettings.getBillingFormat(r(t))}function l(e){if(e.countrySettings){var n=e.countrySettings.getValidationResult({address:S(e),country:r(e),invisibleAddressFields:u(e),customAddressFormSettings:s(e)});if(n)return t({title:{hasError:!e.title,isInvalid:!1,isEmpty:!e.title}},n)}}function m(t){var e=l(t);return e&&Object.values(e).every((function(t){return t}))}function f(t){if(t.countrySettings)return t.countrySettings.getFieldLabels(r(t))}function y(t){if(t.countrySettings)return t.countrySettings.isFreeTextCity(r(t))}function g(t){if(t.countrySettings)return t.countrySettings.isFreeTextDistrict(r(t))}var S=function(t){var e,n,i,r;return{firstName:t.firstName||"",lastName:t.lastName||"",identityNumber:t.identityNumber||"",addressLine1:t.addressLine1||"",addressLine2:t.addressLine2||"",postalCode:t.postalCode||"",country:(null===(e=t.country)||void 0===e?void 0:e.name)||"",state:(null===(n=t.state)||void 0===n?void 0:n.name)||"",city:(null===(i=t.city)||void 0===i?void 0:i.name)||"",district:(null===(r=t.district)||void 0===r?void 0:r.name)||"",phone:t.phone||"",company:t.company||"",taxOffice:t.taxOffice||"",taxNumber:t.taxNumber||""}};export{S as addressToParams,i as createIkasLocalizedCustomerAddress,c as getAddressFormat,d as getAddressFormatIgnoreCountry,a as getBillingFormat,r as getCountryCode,s as getCustomAddressFormSettings,f as getFieldLabels,o as getFieldSettings,u as getInvisibleFields,y as isFreeTextCity,g as isFreeTextDistrict,m as isValidLocalizedCustomerAddress,l as validateIkasLocalizedCustomerAddress};
@@ -0,0 +1,6 @@
1
+ import { LocalizedAddressModel } from "@ikas/localized-address";
2
+ import { IkasCheckoutSettings, IkasCustomerAddress } from "@ikas/storefront-models";
3
+ export declare type IkasLocalizedCustomerAddress = {
4
+ countrySettings: LocalizedAddressModel | null;
5
+ checkoutSettings: IkasCheckoutSettings | null;
6
+ } & IkasCustomerAddress;
@@ -0,0 +1,63 @@
1
+ import { IkasCheckoutSettings, IkasOrderAddress } from "@ikas/storefront-models";
2
+ import { IkasAddressFormLabels, AddressFormItem, CustomAddressFormSettings, LocalizedAddressModel } from "@ikas/localized-address";
3
+ import { IkasLocalizedOrderAddress } from ".";
4
+ import { IkasLocalizedCustomerAddress } from "../localized-customer-address";
5
+ export declare function createIkasLocalizedOrderAddress(address: Partial<IkasOrderAddress>, checkoutSettings?: IkasCheckoutSettings | null, countrySettings?: LocalizedAddressModel): IkasLocalizedOrderAddress;
6
+ export declare function getCountryCode(address: IkasLocalizedOrderAddress | IkasLocalizedCustomerAddress): string;
7
+ export declare function getInvisibleFields(address: IkasLocalizedOrderAddress | IkasLocalizedCustomerAddress): AddressFormItem[] | undefined;
8
+ export declare function getCustomAddressFormSettings(address: IkasLocalizedOrderAddress): CustomAddressFormSettings | undefined;
9
+ export declare function getFieldSettings(address: IkasLocalizedOrderAddress): {
10
+ firstName: import("@ikas/localized-address").AddressFormField;
11
+ lastName: import("@ikas/localized-address").AddressFormField;
12
+ identityNumber: import("@ikas/localized-address").AddressFormField;
13
+ addressLine1: import("@ikas/localized-address").AddressFormField;
14
+ addressLine2: import("@ikas/localized-address").AddressFormField;
15
+ postalCode: import("@ikas/localized-address").AddressFormField;
16
+ country: import("@ikas/localized-address").AddressFormField;
17
+ state: import("@ikas/localized-address").AddressFormField;
18
+ city: import("@ikas/localized-address").AddressFormField;
19
+ district: import("@ikas/localized-address").AddressFormField;
20
+ phone: import("@ikas/localized-address").AddressFormField;
21
+ company: import("@ikas/localized-address").AddressFormField;
22
+ taxOffice: import("@ikas/localized-address").AddressFormField;
23
+ taxNumber: import("@ikas/localized-address").AddressFormField;
24
+ } | undefined;
25
+ export declare function getAddressFormat(address: IkasLocalizedOrderAddress | IkasLocalizedCustomerAddress): AddressFormItem[][] | undefined;
26
+ export declare function getAddressFormatIgnoreCountry(address: IkasLocalizedOrderAddress | IkasLocalizedCustomerAddress): AddressFormItem[][] | undefined;
27
+ export declare function getBillingFormat(address: IkasLocalizedOrderAddress | IkasLocalizedCustomerAddress): import("@ikas/localized-address").BillingFormItem[][] | undefined;
28
+ export declare function validateIkasLocalizedOrderAddress(address: IkasLocalizedOrderAddress): {
29
+ firstName: import("@ikas/localized-address").ErrorType;
30
+ lastName: import("@ikas/localized-address").ErrorType;
31
+ identityNumber: import("@ikas/localized-address").ErrorType;
32
+ addressLine1: import("@ikas/localized-address").ErrorType;
33
+ addressLine2: import("@ikas/localized-address").ErrorType;
34
+ postalCode: import("@ikas/localized-address").ErrorType;
35
+ country: import("@ikas/localized-address").ErrorType;
36
+ state: import("@ikas/localized-address").ErrorType;
37
+ city: import("@ikas/localized-address").ErrorType;
38
+ district: import("@ikas/localized-address").ErrorType;
39
+ phone: import("@ikas/localized-address").ErrorType;
40
+ company: import("@ikas/localized-address").ErrorType;
41
+ taxOffice: import("@ikas/localized-address").ErrorType;
42
+ taxNumber: import("@ikas/localized-address").ErrorType;
43
+ } | undefined;
44
+ export declare function isValidAddress(address: IkasLocalizedOrderAddress): boolean | undefined;
45
+ export declare function getFieldLabels(address: IkasLocalizedOrderAddress): IkasAddressFormLabels | undefined;
46
+ export declare function isFreeTextCity(address: IkasLocalizedOrderAddress): boolean | undefined;
47
+ export declare function isFreeTextDistrict(address: IkasLocalizedOrderAddress): boolean | undefined;
48
+ export declare const addressToParams: (address: IkasOrderAddress) => {
49
+ firstName: string;
50
+ lastName: string;
51
+ identityNumber: string;
52
+ addressLine1: string;
53
+ addressLine2: string;
54
+ postalCode: string;
55
+ country: string;
56
+ state: string;
57
+ city: string;
58
+ district: string;
59
+ phone: string;
60
+ company: string;
61
+ taxOffice: string;
62
+ taxNumber: string;
63
+ };
@@ -0,0 +1 @@
1
+ import{IkasCheckoutRequirement as t}from"@ikas/storefront-models";import{AddressFormItem as e}from"@ikas/localized-address";function n(t,e,n){return{addressLine1:t.addressLine1||"",addressLine2:t.addressLine2||null,company:t.company||null,firstName:t.firstName||"",id:t.id||"",identityNumber:t.identityNumber||null,isDefault:t.isDefault||!1,lastName:t.lastName||"",phone:t.phone||null,postalCode:t.postalCode||null,taxNumber:t.taxNumber||null,taxOffice:t.taxOffice||null,country:t.country||null,state:t.state||null,city:t.city||null,district:t.district||null,checkoutSettings:e||null,countrySettings:n||null}}function i(t){var e;return(null===(e=t.country)||void 0===e?void 0:e.iso2)||"TR"}function r(n){if(n.checkoutSettings){var i=[];return n.checkoutSettings.identityNumberRequirement===t.INVISIBLE&&i.push(e.IDENTITY_NUMBER),n.checkoutSettings.postalCodeRequirement===t.INVISIBLE&&i.push(e.POSTAL_CODE),n.checkoutSettings.phoneRequirement===t.INVISIBLE&&i.push(e.PHONE),i}}function s(e){if(e.checkoutSettings){var n={};return e.checkoutSettings.phoneRequirement&&(n.phone={required:e.checkoutSettings.phoneRequirement===t.MANDATORY}),e.checkoutSettings.postalCodeRequirement&&(n.postalCode={required:e.checkoutSettings.postalCodeRequirement===t.MANDATORY}),e.checkoutSettings.identityNumberRequirement&&(n.identityNumber={required:e.checkoutSettings.identityNumberRequirement===t.MANDATORY}),n}}function u(t){if(t.countrySettings)return t.countrySettings.getFieldSettings({country:i(t),invisibleAddressFields:r(t),customAddressFormSettings:s(t)})}function o(t){if(t.countrySettings)return t.countrySettings.getAddressFormat(i(t),r(t))}function c(t){if(t.countrySettings)return t.countrySettings.getAddressFormatIgnoreCountry(i(t),r(t))}function d(t){if(t.countrySettings)return t.countrySettings.getBillingFormat(i(t))}function a(t){if(t.countrySettings)return t.countrySettings.getValidationResult({address:f(t),country:i(t),invisibleAddressFields:r(t),customAddressFormSettings:s(t)})}function l(t){if(t.countrySettings)return t.countrySettings.isValidAddress({address:f(t),country:i(t),invisibleAddressFields:r(t),customAddressFormSettings:s(t)})}function m(t){if(t.countrySettings)return t.countrySettings.getFieldLabels(i(t))}function y(t){if(t.countrySettings)return t.countrySettings.isFreeTextCity(i(t))}function g(t){if(t.countrySettings)return t.countrySettings.isFreeTextDistrict(i(t))}var f=function(t){var e,n,i,r;return{firstName:t.firstName||"",lastName:t.lastName||"",identityNumber:t.identityNumber||"",addressLine1:t.addressLine1||"",addressLine2:t.addressLine2||"",postalCode:t.postalCode||"",country:(null===(e=t.country)||void 0===e?void 0:e.name)||"",state:(null===(n=t.state)||void 0===n?void 0:n.name)||"",city:(null===(i=t.city)||void 0===i?void 0:i.name)||"",district:(null===(r=t.district)||void 0===r?void 0:r.name)||"",phone:t.phone||"",company:t.company||"",taxOffice:t.taxOffice||"",taxNumber:t.taxNumber||""}};export{f as addressToParams,n as createIkasLocalizedOrderAddress,o as getAddressFormat,c as getAddressFormatIgnoreCountry,d as getBillingFormat,i as getCountryCode,s as getCustomAddressFormSettings,m as getFieldLabels,u as getFieldSettings,r as getInvisibleFields,y as isFreeTextCity,g as isFreeTextDistrict,l as isValidAddress,a as validateIkasLocalizedOrderAddress};
@@ -0,0 +1,6 @@
1
+ import { LocalizedAddressModel } from "@ikas/localized-address";
2
+ import { IkasCheckoutSettings, IkasOrderAddress } from "@ikas/storefront-models";
3
+ export declare type IkasLocalizedOrderAddress = {
4
+ countrySettings: LocalizedAddressModel | null;
5
+ checkoutSettings: IkasCheckoutSettings | null;
6
+ } & IkasOrderAddress;
@@ -0,0 +1,6 @@
1
+ export declare type IkasCustomerReviewForm = {
2
+ comment?: string;
3
+ productId: string;
4
+ star: number;
5
+ title?: string;
6
+ };
@@ -15,6 +15,7 @@ export declare class IkasThemeJsonComponent implements IThemeJsonComponent {
15
15
  [locale: string]: any;
16
16
  };
17
17
  constructor(data: Partial<IkasThemeJsonComponent>);
18
+ get isCommon(): boolean;
18
19
  }
19
20
  export declare class ComponentTranslation {
20
21
  displayName: string | null;
@@ -1 +1 @@
1
- import{makeAutoObservable as i}from"mobx";import{IkasThemeJsonComponentProp as s}from"./prop/index.js";var t=function(t){this.translations={},this.defaultPropValuesTranslations={},this.id=t.id||"",this.dir=t.dir||"",this.displayName=t.displayName||"",this.description=t.description||"",this.props=t.props?t.props.map((function(i){return new s(i)})):[],this.translations=t.translations||{},this.isHeader=t.isHeader||!1,this.isFooter=t.isFooter||!1,this.defaultPropValuesTranslations=t.defaultPropValuesTranslations||{},i(this)},o=function(i){void 0===i&&(i={}),this.displayName=i.displayName||null,this.description=i.description||null};export{o as ComponentTranslation,t as IkasThemeJsonComponent};
1
+ import{makeAutoObservable as i}from"mobx";import{IkasThemeJsonComponentProp as t}from"./prop/index.js";var s=function(){function s(s){this.translations={},this.defaultPropValuesTranslations={},this.id=s.id||"",this.dir=s.dir||"",this.displayName=s.displayName||"",this.description=s.description||"",this.props=s.props?s.props.map((function(i){return new t(i)})):[],this.translations=s.translations||{},this.isHeader=s.isHeader||!1,this.isFooter=s.isFooter||!1,this.defaultPropValuesTranslations=s.defaultPropValuesTranslations||{},i(this)}return Object.defineProperty(s.prototype,"isCommon",{get:function(){return this.isHeader||this.isFooter},enumerable:!1,configurable:!0}),s}();export{s as IkasThemeJsonComponent};
@@ -1,5 +1,4 @@
1
- import { IkasProductAttributeType } from "../../../data/product/attribute";
2
- import { IkasThemeJsonComponentPropType, IkasThemeJsonSliderData, IkasThemeJsonCustomData as IThemeJsonCustomData, IkasThemeJsonEnumOption as IThemeJsonEnumOption, IkasThemeJsonCustomDataTranslation as IThemeJsonCustomDataTranslation, IkasThemeJsonCustomDataEnumOptionTranslation as IThemeJsonCustomDataEnumOptionTranslation } from "@ikas/storefront-models";
1
+ import { IkasThemeJsonComponentPropType, IkasThemeJsonSliderData, IkasThemeJsonCustomData as IThemeJsonCustomData, IkasThemeJsonEnumOption as IThemeJsonEnumOption, IkasThemeJsonCustomDataTranslation as IThemeJsonCustomDataTranslation, IkasThemeJsonCustomDataEnumOptionTranslation as IThemeJsonCustomDataEnumOptionTranslation, IkasProductAttributeType } from "@ikas/storefront-models";
3
2
  export declare class IkasThemeJsonCustomData implements IThemeJsonCustomData {
4
3
  id: string;
5
4
  name?: string | null;
@@ -1 +1 @@
1
- import{__assign as t}from'./../../../../ext/tslib/tslib.es6.js';import i from"lodash/flatten";import{IkasThemeJsonComponentPropType as n}from"@ikas/storefront-models";var e=function(){function e(i){void 0===i&&(i={});var a,o=this;this.translations={},this.customDataId=null,this.id=i.id||"",this.name=i.name||null,this.description=i.description||null,this.typescriptName=i.name||null,this.type=i.type||n.TEXT,this.isRequired=void 0===i.isRequired||i.isRequired,this.translations=i.translations||{},this.key=i.key||null,this.parent=i.parent||null,this.itemCount=i.itemCount||null,this.attributeTypes=i.attributeTypes||null,this.enumOptions=(null===(a=i.enumOptions)||void 0===a?void 0:a.map((function(t){return new s(t)})))||null,this.customDataId=i.customDataId||null,this.sliderData=i.sliderData||{},this.isRoot=i.isRoot||!1,this.nestedData=i.nestedData?i.nestedData.map((function(i){return new e(t(t({},i),{parent:o}))})):null,this.type!==n.STATIC_LIST||this.itemCount||(this.itemCount=1)}return Object.defineProperty(e.prototype,"flat",{get:function(){if(!this.nestedData||!this.nestedData.length)return[this];var t=i(this.nestedData.map((function(t){return t.flat}))),n=[];return n.push(this),n=n.concat(t)},enumerable:!1,configurable:!0}),e.prototype.toJSON=function(){var i=t({},this);return delete i.parent,i},e}(),s=function(t){void 0===t&&(t={}),this.translations={},this.id=t.id||"",this.displayName=t.displayName||"",this.value=t.value||"",this.translations=t.translations||{}},a=function(t){void 0===t&&(t={}),this.name=t.name||null,this.description=t.description||null},o=function(t){void 0===t&&(t={}),this.displayName=t.displayName||null};export{e as IkasThemeJsonCustomData,o as IkasThemeJsonCustomDataEnumOptionTranslation,a as IkasThemeJsonCustomDataTranslation,s as IkasThemeJsonEnumOption};
1
+ import{__assign as t}from'./../../../../ext/tslib/tslib.es6.js';import i from"lodash/flatten";import{IkasThemeJsonComponentPropType as e}from"@ikas/storefront-models";var n=function(){function n(i){void 0===i&&(i={});var a,o=this;this.translations={},this.customDataId=null,this.id=i.id||"",this.name=i.name||null,this.description=i.description||null,this.typescriptName=i.name||null,this.type=i.type||e.TEXT,this.isRequired=void 0===i.isRequired||i.isRequired,this.translations=i.translations||{},this.key=i.key||null,this.parent=i.parent||null,this.itemCount=i.itemCount||null,this.attributeTypes=i.attributeTypes||null,this.enumOptions=(null===(a=i.enumOptions)||void 0===a?void 0:a.map((function(t){return new s(t)})))||null,this.customDataId=i.customDataId||null,this.sliderData=i.sliderData||{},this.isRoot=i.isRoot||!1,this.nestedData=i.nestedData?i.nestedData.map((function(i){return new n(t(t({},i),{parent:o}))})):null,this.type!==e.STATIC_LIST||this.itemCount||(this.itemCount=1)}return Object.defineProperty(n.prototype,"flat",{get:function(){if(!this.nestedData||!this.nestedData.length)return[this];var t=i(this.nestedData.map((function(t){return t.flat}))),e=[];return e.push(this),e=e.concat(t)},enumerable:!1,configurable:!0}),n.prototype.toJSON=function(){var i=t({},this);return delete i.parent,i},n}(),s=function(t){void 0===t&&(t={}),this.translations={},this.id=t.id||"",this.displayName=t.displayName||"",this.value=t.value||"",this.translations=t.translations||{}};export{n as IkasThemeJsonCustomData,s as IkasThemeJsonEnumOption};
@@ -1 +1 @@
1
- import{makeAutoObservable as i}from"mobx";var s=function(s){this.translations={},this.id=s.id||"",this.displayName=s.displayName||"",this.key=s.key||"",this.color=s.color||"",this.translations=s.translations||{},i(this)},t=function(i){void 0===i&&(i={}),this.displayName=i.displayName||null};export{s as IkasThemeJsonColor,t as IkasThemeJsonColorTranslation};
1
+ import{makeAutoObservable as i}from"mobx";var t=function(t){this.translations={},this.id=t.id||"",this.displayName=t.displayName||"",this.key=t.key||"",this.color=t.color||"",this.translations=t.translations||{},i(this)};export{t as IkasThemeJsonColor};
@@ -1,2 +1,3 @@
1
1
  export * from "./data";
2
2
  export * from "./ui";
3
+ export * from "@ikas/storefront-models";
@@ -0,0 +1,6 @@
1
+ import { IkasBlogCategoryList } from ".";
2
+ export declare function createIkasBlogCategoryList(params: Partial<IkasBlogCategoryList>): IkasBlogCategoryList;
3
+ export * from "../list-commons";
4
+ export declare function getPrev(list: IkasBlogCategoryList): Promise<void>;
5
+ export declare function getNext(list: IkasBlogCategoryList): Promise<void>;
6
+ export declare function getPage(list: IkasBlogCategoryList, page: number): Promise<void>;
@@ -0,0 +1 @@
1
+ import{__awaiter as t,__generator as i}from'./../../../ext/tslib/tslib.es6.js';import{observable as a}from"mobx";import{listBlogCategory as n}from"@ikas/storefront-api";import{IkasBlogCategoryListType as o}from"./index.js";import{isStatic as e,hasPrev as r,hasNext as s}from"../list-commons/index.js";export{getPageCount,hasNext,hasPrev,isStatic}from"../list-commons/index.js";function u(t){return a({data:t.data||[],type:t.type||o.ALL,limit:t.limit||20,page:t.page||1,count:t.count||0,initialized:t.initialized||!1,minPage:t.minPage||t.page||1,blogCategoryListPropValue:t.blogCategoryListPropValue||{blogCategoryListType:o.ALL},isLoading:t.isLoading||!1})}function d(a){var n,o,s;return t(this,void 0,void 0,(function(){var t,u,d;return i(this,(function(i){switch(i.label){case 0:if(a.isLoading||e(a)||!r(a))return[2];a.isLoading=!0,i.label=1;case 1:return i.trys.push([1,3,4,5]),t=a.minPage-1,[4,g(a,t,a.limit)];case 2:return u=i.sent(),a.data=(null===(o=null===(n=u.data)||void 0===n?void 0:n.data)||void 0===o?void 0:o.concat(a.data))||a.data,a.count=(null===(s=u.data)||void 0===s?void 0:s.count)||a.count,a.minPage=t,[3,5];case 3:return d=i.sent(),console.log(d),[3,5];case 4:return a.isLoading=!1,[7];case 5:return[2]}}))}))}function l(a){var n,o;return t(this,void 0,void 0,(function(){var t,r;return i(this,(function(i){switch(i.label){case 0:if(a.isLoading||e(a)||!s(a))return[2];a.isLoading=!0,i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,g(a,a.page+1,a.limit)];case 2:return t=i.sent(),a.data=a.data.concat((null===(n=t.data)||void 0===n?void 0:n.data)||[]),a.count=(null===(o=t.data)||void 0===o?void 0:o.count)||a.count,a.page=a.page+1,[3,5];case 3:return r=i.sent(),console.log(r),[3,5];case 4:return a.isLoading=!1,[7];case 5:return[2]}}))}))}function c(a,n){var o,r;return t(this,void 0,void 0,(function(){var t,s;return i(this,(function(i){switch(i.label){case 0:if(a.isLoading||e(a))return[2];a.isLoading=!0,i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,g(a,n,a.limit)];case 2:return t=i.sent(),a.data=(null===(o=t.data)||void 0===o?void 0:o.data)||[],a.count=(null===(r=t.data)||void 0===r?void 0:r.count)||0,a.page=n,a.minPage=n,[3,5];case 3:return s=i.sent(),console.log(s),[3,5];case 4:return a.isLoading=!1,[7];case 5:return[2]}}))}))}function g(a,o,r){return t(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,n({id:e(a)&&a.blogCategoryListPropValue.blogCategoryIds?{in:a.blogCategoryListPropValue.blogCategoryIds}:void 0,pagination:{page:o,limit:r}})];case 1:return[2,t.sent()]}}))}))}export{u as createIkasBlogCategoryList,l as getNext,c as getPage,d as getPrev};
@@ -1,49 +1,15 @@
1
1
  import { IkasBlogCategoryListPropValue } from "@ikas/storefront-providers";
2
2
  import { IkasBlogCategory } from "../../data";
3
- export declare class IkasBlogCategoryList {
3
+ export declare type IkasBlogCategoryList = {
4
4
  data: IkasBlogCategory[];
5
- private _type;
6
- private _limit;
7
- private _page;
8
- private _count;
9
- private _initialized;
10
- private _minPage?;
11
- private _blogCategoryListPropValue;
12
- private _isLoading;
13
- constructor(data: IkasBlogCategoryListParams);
14
- get limit(): number;
15
- get page(): number;
16
- get count(): number;
17
- get pageCount(): number;
18
- get isInitialized(): boolean;
19
- get isStatic(): boolean;
20
- get hasPrev(): boolean;
21
- get hasNext(): boolean;
22
- get isLoading(): boolean;
23
- private listBlogCategories;
24
- getPrev: () => Promise<void>;
25
- getNext: () => Promise<void>;
26
- getPage: (page: number) => Promise<void>;
27
- toJSON(): {
28
- data: IkasBlogCategory[];
29
- type: IkasBlogCategoryListType;
30
- limit: number;
31
- page: number;
32
- count: number;
33
- initialized: boolean;
34
- minPage: number | null | undefined;
35
- blogCategoryListPropValue: IkasBlogCategoryListPropValue;
36
- };
37
- }
38
- export declare type IkasBlogCategoryListParams = {
39
- data?: IkasBlogCategory[];
40
- type?: IkasBlogCategoryListType;
41
- limit?: number;
42
- page?: number;
43
- count?: number;
44
- initialized?: boolean;
45
- minPage?: number;
5
+ type: IkasBlogCategoryListType;
6
+ limit: number;
7
+ page: number;
8
+ count: number;
9
+ initialized: boolean;
10
+ minPage: number;
46
11
  blogCategoryListPropValue: IkasBlogCategoryListPropValue;
12
+ isLoading: boolean;
47
13
  };
48
14
  export declare enum IkasBlogCategoryListType {
49
15
  ALL = "ALL",
@@ -1 +1 @@
1
- import{__awaiter as t,__generator as i}from'./../../../ext/tslib/tslib.es6.js';import{makeAutoObservable as e}from"mobx";import a from"../../../store/blog/index.js";import{IkasBlogCategory as o}from"../../data/blog/category/index.js";import"../../data/blog/content/index.js";import"../../data/blog/meta-data/index.js";import"../../data/blog/tag/index.js";import"../../data/blog/index.js";import"../../data/brand/index.js";import"@ikas/storefront-models";import"../../data/campaign-offer/index.js";import"../../data/cart/campaign-offer/index.js";import"../../data/cart/index.js";import"../../data/category/path-item/index.js";import"../../data/category/index.js";import"../../data/checkout/index.js";import"../../data/checkout/country-settings-model.js";import"../../data/checkout-settings/index.js";import"../../data/city/index.js";import"../../data/country/index.js";import"../../data/customer/address/index.js";import"../../data/customer/address/ikas-localized-customer-address.js";import"../../data/customer/attribute/index.js";import"../../data/customer/review/summary/index.js";import"../../data/customer/review/index.js";import"../../data/customer/index.js";import"../../data/district/index.js";import"../../data/favorite-product/index.js";import"../../data/filter-category/index.js";import"../../data/html-meta-data/index.js";import"../../data/image/index.js";import"../../data/order/address/index.js";import"../../data/order/line-item/option/value/index.js";import"../../data/order/line-item/variant/value/index.js";import"../../data/order/line-item/variant/index.js";import"../../data/order/line-item/index.js";import"../../data/order/package/index.js";import"../../data/order/transaction/index.js";import"../../data/order/index.js";import"../../data/payment-gateway/index.js";import"../../data/product/attribute-value/index.js";import"../../data/product/filter/index.js";import"../../data/product/option-set/option/index.js";import"../../data/product/option-set/index.js";import"../../data/product/stock-location/index.js";import"../../data/product/variant/price/index.js";import"../../data/product/variant/index.js";import"../../data/variant-type/index.js";import"../../data/product/index.js";import"../../data/raffle/index.js";import"../../data/state/index.js";import"../../data/theme-json/index.js";import"../../data/theme-json/custom-data/index.js";import"../../data/variant-type/variant-value/index.js";var r,n=function(){function n(a){var n=this;this._initialized=!1,this._minPage=null,this._isLoading=!1,this.getPrev=function(){return t(n,void 0,void 0,(function(){var t,e,a,o,r,n;return i(this,(function(i){switch(i.label){case 0:if(this.isStatic||this._isLoading||!this.hasPrev)return[2];this._isLoading=!0,i.label=1;case 1:return i.trys.push([1,3,4,5]),t=this._minPage-1,[4,this.listBlogCategories(t,this.limit)];case 2:return e=i.sent(),this.data=(null===(r=null===(o=e.data)||void 0===o?void 0:o.data)||void 0===r?void 0:r.concat(this.data))||this.data,this._count=(null===(n=e.data)||void 0===n?void 0:n.count)||this._count,this._minPage=t,[3,5];case 3:return a=i.sent(),console.log(a),[3,5];case 4:return this._isLoading=!1,[7];case 5:return[2]}}))}))},this.getNext=function(){return t(n,void 0,void 0,(function(){var t,e,a,o;return i(this,(function(i){switch(i.label){case 0:if(this.isStatic||this._isLoading||!this.hasNext)return[2];this._isLoading=!0,i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,this.listBlogCategories(this.page+1,this.limit)];case 2:return t=i.sent(),this.data=this.data.concat((null===(a=t.data)||void 0===a?void 0:a.data)||[]),this._count=(null===(o=t.data)||void 0===o?void 0:o.count)||this._count,this._page=this.page+1,[3,5];case 3:return e=i.sent(),console.log(e),[3,5];case 4:return this._isLoading=!1,[7];case 5:return[2]}}))}))},this.getPage=function(e){return t(n,void 0,void 0,(function(){var t,a,o,r;return i(this,(function(i){switch(i.label){case 0:if(this._isLoading||this.isStatic)return[2];this._isLoading=!0,i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,this.listBlogCategories(e,this.limit)];case 2:return t=i.sent(),this.data=(null===(o=t.data)||void 0===o?void 0:o.data)||[],this._count=(null===(r=t.data)||void 0===r?void 0:r.count)||0,this._page=e,this._minPage=e,[3,5];case 3:return a=i.sent(),console.log(a),[3,5];case 4:return this._isLoading=!1,[7];case 5:return[2]}}))}))},this.data=a.data?a.data.map((function(t){return new o(t)})):[],this._type=a.type||a.blogCategoryListPropValue.blogCategoryListType||r.ALL,this._limit=a.limit||a.blogCategoryListPropValue.initialLimit||20,this._page=a.page||1,this._count=a.count||0,this._initialized=a.initialized||!1,this._minPage=a.minPage,this._blogCategoryListPropValue=a.blogCategoryListPropValue,e(this)}return Object.defineProperty(n.prototype,"limit",{get:function(){return this._limit},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"page",{get:function(){return this._page},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"count",{get:function(){return this._count},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"pageCount",{get:function(){return Math.ceil(this._count/this._limit)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isInitialized",{get:function(){return this._initialized},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isStatic",{get:function(){return this._type===r.STATIC},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hasPrev",{get:function(){return!(this.isStatic||!this._minPage)&&this._minPage>1},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hasNext",{get:function(){return!this.isStatic&&this.page*this.limit<this.count},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isLoading",{get:function(){return this._isLoading},enumerable:!1,configurable:!0}),n.prototype.listBlogCategories=function(e,o){return t(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,a.listBlogCategory({id:this.isStatic&&this._blogCategoryListPropValue.blogCategoryIds?{in:this._blogCategoryListPropValue.blogCategoryIds}:void 0,pagination:{page:e,limit:o}})];case 1:return[2,t.sent()]}}))}))},n.prototype.toJSON=function(){return{data:this.data,type:this._type,limit:this._limit,page:this._page,count:this._count,initialized:this._initialized,minPage:this._minPage,blogCategoryListPropValue:this._blogCategoryListPropValue}},n}();!function(t){t.ALL="ALL",t.STATIC="STATIC"}(r||(r={}));export{n as IkasBlogCategoryList,r as IkasBlogCategoryListType};
1
+ var A;!function(A){A.ALL="ALL",A.STATIC="STATIC"}(A||(A={}));export{A as IkasBlogCategoryListType};
@@ -0,0 +1,6 @@
1
+ import { IkasBlogList } from ".";
2
+ export * from "../list-commons";
3
+ export declare function createIkasBlogList(params: Partial<IkasBlogList>): IkasBlogList;
4
+ export declare function getPrev(list: IkasBlogList): Promise<void>;
5
+ export declare function getNext(list: IkasBlogList): Promise<void>;
6
+ export declare function getPage(list: IkasBlogList, page: number): Promise<void>;
@@ -0,0 +1 @@
1
+ import{__awaiter as t,__generator as i}from'./../../../ext/tslib/tslib.es6.js';import{observable as n}from"mobx";import{listBlog as a}from"@ikas/storefront-api";import{IkasBlogListType as e}from"./index.js";import{isStatic as o,hasPrev as r,hasNext as s}from"../list-commons/index.js";export{getPageCount,hasNext,hasPrev,isStatic}from"../list-commons/index.js";function u(t){return n({data:t.data||[],type:t.type||e.ALL,limit:t.limit||20,page:t.page||1,count:t.count||0,initialized:t.initialized||!1,minPage:t.minPage||t.page||1,blogListPropValue:t.blogListPropValue||{blogListType:e.ALL,categoryId:t.filterCategoryId||null},filterCategoryId:t.filterCategoryId||null,isLoading:t.isLoading||!1})}function d(n){var a,e,s;return t(this,void 0,void 0,(function(){var t,u,d;return i(this,(function(i){switch(i.label){case 0:if(n.isLoading||o(n)||!r(n))return[2];n.isLoading=!0,i.label=1;case 1:return i.trys.push([1,3,4,5]),t=n.minPage-1,[4,g(n,t,n.limit)];case 2:return u=i.sent(),n.data=(null===(e=null===(a=u.data)||void 0===a?void 0:a.data)||void 0===e?void 0:e.concat(n.data))||n.data,n.count=(null===(s=u.data)||void 0===s?void 0:s.count)||n.count,n.minPage=t,[3,5];case 3:return d=i.sent(),console.log(d),[3,5];case 4:return n.isLoading=!1,[7];case 5:return[2]}}))}))}function l(n){var a,e;return t(this,void 0,void 0,(function(){var t,r;return i(this,(function(i){switch(i.label){case 0:if(n.isLoading||o(n)||!s(n))return[2];n.isLoading=!0,i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,g(n,n.page+1,n.limit)];case 2:return t=i.sent(),n.data=n.data.concat((null===(a=t.data)||void 0===a?void 0:a.data)||[]),n.count=(null===(e=t.data)||void 0===e?void 0:e.count)||n.count,n.page=n.page+1,[3,5];case 3:return r=i.sent(),console.log(r),[3,5];case 4:return n.isLoading=!1,[7];case 5:return[2]}}))}))}function c(n,a){var e,r;return t(this,void 0,void 0,(function(){var t,s;return i(this,(function(i){switch(i.label){case 0:if(n.isLoading||o(n))return[2];n.isLoading=!0,i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,g(n,a,n.limit)];case 2:return t=i.sent(),n.data=(null===(e=t.data)||void 0===e?void 0:e.data)||[],n.count=(null===(r=t.data)||void 0===r?void 0:r.count)||0,n.page=a,n.minPage=a,[3,5];case 3:return s=i.sent(),console.log(s),[3,5];case 4:return n.isLoading=!1,[7];case 5:return[2]}}))}))}function g(n,e,r){return t(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,a({id:o(n)&&n.blogListPropValue.blogIds?{in:n.blogListPropValue.blogIds}:void 0,categoryId:n.filterCategoryId?{eq:n.filterCategoryId}:void 0,pagination:{page:e,limit:r}})];case 1:return[2,t.sent()]}}))}))}export{u as createIkasBlogList,l as getNext,c as getPage,d as getPrev};
@@ -1,52 +1,16 @@
1
- import { IkasBlog } from "../../../models/data/blog";
2
1
  import { IkasBlogListPropValue } from "@ikas/storefront-providers";
3
- export declare class IkasBlogList {
2
+ import { IkasBlog } from "@ikas/storefront-models";
3
+ export declare type IkasBlogList = {
4
4
  data: IkasBlog[];
5
- private _type;
6
- private _limit;
7
- private _page;
8
- private _count;
9
- private _initialized;
10
- private _minPage?;
11
- private _blogListPropValue;
12
- private _filterCategoryId;
13
- private _isLoading;
14
- constructor(data: IkasBlogListParams);
15
- get limit(): number;
16
- get page(): number;
17
- get count(): number;
18
- get pageCount(): number;
19
- get isInitialized(): boolean;
20
- get isStatic(): boolean;
21
- get hasPrev(): boolean;
22
- get hasNext(): boolean;
23
- get isLoading(): boolean;
24
- private listBlogs;
25
- getPrev: () => Promise<void>;
26
- getNext: () => Promise<void>;
27
- getPage: (page: number) => Promise<void>;
28
- toJSON(): {
29
- data: IkasBlog[];
30
- type: IkasBlogListType;
31
- limit: number;
32
- page: number;
33
- count: number;
34
- initialized: boolean;
35
- minPage: number | null | undefined;
36
- blogListPropValue: IkasBlogListPropValue;
37
- filterCategoryId: string | null;
38
- };
39
- }
40
- export declare type IkasBlogListParams = {
41
- data?: IkasBlog[];
42
- type?: IkasBlogListType;
43
- limit?: number;
44
- page?: number;
45
- count?: number;
46
- initialized?: boolean;
47
- minPage?: number;
5
+ type: IkasBlogListType;
6
+ limit: number;
7
+ page: number;
8
+ count: number;
9
+ initialized: boolean;
10
+ minPage: number;
48
11
  blogListPropValue: IkasBlogListPropValue;
49
12
  filterCategoryId: string | null;
13
+ isLoading: boolean;
50
14
  };
51
15
  export declare enum IkasBlogListType {
52
16
  ALL = "ALL",
@@ -1 +1 @@
1
- import{__awaiter as t,__generator as i}from'./../../../ext/tslib/tslib.es6.js';import{makeAutoObservable as e}from"mobx";import n from"../../../store/blog/index.js";import{IkasBlog as s}from"../../data/blog/index.js";var o,r=function(){function r(n){var r=this;this._initialized=!1,this._minPage=null,this._filterCategoryId=null,this._isLoading=!1,this.getPrev=function(){return t(r,void 0,void 0,(function(){var t,e,n,s,o,r;return i(this,(function(i){switch(i.label){case 0:if(this.isStatic||this._isLoading||!this.hasPrev)return[2];this._isLoading=!0,i.label=1;case 1:return i.trys.push([1,3,4,5]),t=this._minPage-1,[4,this.listBlogs(t,this.limit)];case 2:return e=i.sent(),n=(null===(o=e.data)||void 0===o?void 0:o.data)||[],this.data=n.concat(this.data),this._count=(null===(r=e.data)||void 0===r?void 0:r.count)||this._count,this._minPage=t,[3,5];case 3:return s=i.sent(),console.log(s),[3,5];case 4:return this._isLoading=!1,[7];case 5:return[2]}}))}))},this.getNext=function(){return t(r,void 0,void 0,(function(){var t,e,n,s,o;return i(this,(function(i){switch(i.label){case 0:if(this.isStatic||this._isLoading||!this.hasNext)return[2];this._isLoading=!0,i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,this.listBlogs(this.page+1,this.limit)];case 2:return t=i.sent(),e=(null===(s=t.data)||void 0===s?void 0:s.data)||[],this.data=this.data.concat(e),this._count=(null===(o=t.data)||void 0===o?void 0:o.count)||this._count,this._page=this.page+1,[3,5];case 3:return n=i.sent(),console.log(n),[3,5];case 4:return this._isLoading=!1,[7];case 5:return[2]}}))}))},this.getPage=function(e){return t(r,void 0,void 0,(function(){var t,n,s,o,r;return i(this,(function(i){switch(i.label){case 0:if(this._isLoading||this.isStatic)return[2];this._isLoading=!0,i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,this.listBlogs(e,this.limit)];case 2:return t=i.sent(),n=(null===(o=t.data)||void 0===o?void 0:o.data)||[],this.data=n,this._count=(null===(r=t.data)||void 0===r?void 0:r.count)||0,this._page=e,this._minPage=e,[3,5];case 3:return s=i.sent(),console.log(s),[3,5];case 4:return this._isLoading=!1,[7];case 5:return[2]}}))}))},this.data=n.data?n.data.map((function(t){return new s(t)})):[],this._type=n.type||n.blogListPropValue.blogListType||o.ALL,this._limit=n.limit||n.blogListPropValue.initialLimit||20,this._page=n.page||1,this._count=n.count||0,this._initialized=n.initialized||!1,this._minPage=n.minPage,this._blogListPropValue=n.blogListPropValue,this._filterCategoryId=n.filterCategoryId||null,e(this)}return Object.defineProperty(r.prototype,"limit",{get:function(){return this._limit},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"page",{get:function(){return this._page},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"count",{get:function(){return this._count},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"pageCount",{get:function(){return Math.ceil(this._count/this._limit)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isInitialized",{get:function(){return this._initialized},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isStatic",{get:function(){return this._type===o.STATIC},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"hasPrev",{get:function(){return!(this.isStatic||!this._minPage)&&this._minPage>1},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"hasNext",{get:function(){return!this.isStatic&&this.page*this.limit<this.count},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isLoading",{get:function(){return this._isLoading},enumerable:!1,configurable:!0}),r.prototype.listBlogs=function(e,s){return t(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,n.listBlog({id:this.isStatic?{in:this._blogListPropValue.blogIds}:void 0,pagination:{page:e,limit:s},categoryId:this._filterCategoryId?{eq:this._filterCategoryId}:void 0})];case 1:return[2,t.sent()]}}))}))},r.prototype.toJSON=function(){return{data:this.data,type:this._type,limit:this._limit,page:this._page,count:this._count,initialized:this._initialized,minPage:this._minPage,blogListPropValue:this._blogListPropValue,filterCategoryId:this._filterCategoryId}},r}();!function(t){t.ALL="ALL",t.STATIC="STATIC",t.CATEGORY="CATEGORY"}(o||(o={}));export{r as IkasBlogList,o as IkasBlogListType};
1
+ var A;!function(A){A.ALL="ALL",A.STATIC="STATIC",A.CATEGORY="CATEGORY"}(A||(A={}));export{A as IkasBlogListType};
@@ -0,0 +1,8 @@
1
+ import { IkasBrandList, IkasBrandListSortType } from "./index";
2
+ export * from "../list-commons";
3
+ export declare function createIkasBrandList(params: IkasBrandList): IkasBrandList;
4
+ export declare function getInitial(list: IkasBrandList): Promise<void>;
5
+ export declare function getPrev(list: IkasBrandList): Promise<void>;
6
+ export declare function getNext(list: IkasBrandList): Promise<void>;
7
+ export declare function getPage(list: IkasBrandList, page: number): Promise<void>;
8
+ export declare function setSortType(list: IkasBrandList, sortType: IkasBrandListSortType): Promise<void>;
@@ -0,0 +1 @@
1
+ import{__awaiter as t,__generator as i}from'./../../../ext/tslib/tslib.es6.js';import{IkasBrandListType as n,IkasBrandListSortType as a}from"./index.js";import{observable as o}from"mobx";import{isStatic as e,hasPrev as r,hasNext as s}from"../list-commons/index.js";export{getPageCount,hasNext,hasPrev,isStatic}from"../list-commons/index.js";import{listProductBrand as d}from"@ikas/storefront-api";function u(t){return o({data:t.data||[],type:t.type||n.ALL,sort:t.sort||a.A_Z,limit:t.limit||20,page:t.page||1,count:t.count||0,initialized:t.initialized||!1,minPage:t.minPage||t.page||1,brandListPropValue:t.brandListPropValue||{brandIds:[]},isLoading:t.isLoading||!1})}function l(n){var a,o,r;return t(this,void 0,void 0,(function(){var t,s;return i(this,(function(i){switch(i.label){case 0:if(n.isLoading)return[2];n.isLoading=!0,i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,d({id:e(n)&&n.brandListPropValue.brandIds?{in:n.brandListPropValue.brandIds}:void 0,pagination:{page:e(n)?void 0:n.page,limit:e(n)?void 0:n.limit},sort:m(n)})];case 2:return t=i.sent(),e(n)?n.data=(null===(a=n.brandListPropValue.brandIds)||void 0===a?void 0:a.map((function(i){var n,a;return null===(a=null===(n=t.data)||void 0===n?void 0:n.data)||void 0===a?void 0:a.find((function(t){return t.id===i}))})).filter((function(t){return!!t})))||[]:n.data=(null===(o=t.data)||void 0===o?void 0:o.data)||[],n.count=(null===(r=t.data)||void 0===r?void 0:r.count)||0,n.initialized=!0,n.minPage=n.page,[3,5];case 3:return s=i.sent(),console.log(s),[3,5];case 4:return n.isLoading=!1,[7];case 5:return[2]}}))}))}function c(n){var a,o,s;return t(this,void 0,void 0,(function(){var t,u,l;return i(this,(function(i){switch(i.label){case 0:if(n.isLoading||e(n)||!r(n))return[2];n.isLoading=!0,i.label=1;case 1:return i.trys.push([1,3,4,5]),t=n.minPage-1,[4,d({pagination:{page:t,limit:n.limit},sort:m(n)})];case 2:return u=i.sent(),n.data=(null===(o=null===(a=u.data)||void 0===a?void 0:a.data)||void 0===o?void 0:o.concat(n.data))||n.data,n.count=(null===(s=u.data)||void 0===s?void 0:s.count)||0,n.minPage=t,[3,5];case 3:return l=i.sent(),console.log(l),[3,5];case 4:return n.isLoading=!1,[7];case 5:return[2]}}))}))}function v(n){var a,o;return t(this,void 0,void 0,(function(){var t,r;return i(this,(function(i){switch(i.label){case 0:if(n.isLoading||e(n)||!s(n))return[2];n.isLoading=!0,i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,d({pagination:{page:n.page+1,limit:n.limit},sort:m(n)})];case 2:return t=i.sent(),n.data=n.data.concat((null===(a=t.data)||void 0===a?void 0:a.data)||[]),n.count=(null===(o=t.data)||void 0===o?void 0:o.count)||n.count,n.page=n.page+1,[3,5];case 3:return r=i.sent(),console.log(r),[3,5];case 4:return n.isLoading=!1,[7];case 5:return[2]}}))}))}function g(n,a){var o,r;return t(this,void 0,void 0,(function(){var t,s;return i(this,(function(i){switch(i.label){case 0:if(n.isLoading||e(n))return[2];n.isLoading=!0,i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,d({pagination:{page:a,limit:n.limit},sort:m(n)})];case 2:return t=i.sent(),n.data=(null===(o=t.data)||void 0===o?void 0:o.data)||[],n.count=(null===(r=t.data)||void 0===r?void 0:r.count)||0,n.page=a,n.minPage=a,[3,5];case 3:return s=i.sent(),console.log(s),[3,5];case 4:return n.isLoading=!1,[7];case 5:return[2]}}))}))}function p(n,a){return t(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return n.sort=a,[4,l(n)];case 1:return t.sent(),[2]}}))}))}function m(t){return t.sort===a.A_Z?"name":"-name"}export{u as createIkasBrandList,l as getInitial,v as getNext,g as getPage,c as getPrev,p as setSortType};