@ikas/storefront-models 4.0.0-alpha.10

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 (437) hide show
  1. package/build-cjs/_virtual/_tslib.js +2 -0
  2. package/build-cjs/_virtual/_tslib.js.map +1 -0
  3. package/build-cjs/index.d.ts +156 -0
  4. package/build-cjs/index.js +2 -0
  5. package/build-cjs/index.js.map +1 -0
  6. package/build-cjs/models/base/index.d.ts +6 -0
  7. package/build-cjs/models/base/init.d.ts +6 -0
  8. package/build-cjs/models/base/init.js +2 -0
  9. package/build-cjs/models/base/init.js.map +1 -0
  10. package/build-cjs/models/blog/category/index.d.ts +9 -0
  11. package/build-cjs/models/blog/category/init.d.ts +11 -0
  12. package/build-cjs/models/blog/category/init.js +2 -0
  13. package/build-cjs/models/blog/category/init.js.map +1 -0
  14. package/build-cjs/models/blog/content/index.d.ts +4 -0
  15. package/build-cjs/models/blog/index.d.ts +24 -0
  16. package/build-cjs/models/blog/init.d.ts +2 -0
  17. package/build-cjs/models/blog/init.js +2 -0
  18. package/build-cjs/models/blog/init.js.map +1 -0
  19. package/build-cjs/models/blog/meta-data/index.d.ts +14 -0
  20. package/build-cjs/models/blog/meta-data/index.js +2 -0
  21. package/build-cjs/models/blog/meta-data/index.js.map +1 -0
  22. package/build-cjs/models/blog/tag/index.d.ts +4 -0
  23. package/build-cjs/models/blog/writer/index.d.ts +4 -0
  24. package/build-cjs/models/brand/index.d.ts +23 -0
  25. package/build-cjs/models/brand/index.js +2 -0
  26. package/build-cjs/models/brand/index.js.map +1 -0
  27. package/build-cjs/models/brand/init.d.ts +2 -0
  28. package/build-cjs/models/brand/init.js +2 -0
  29. package/build-cjs/models/brand/init.js.map +1 -0
  30. package/build-cjs/models/brand/translation/index.d.ts +5 -0
  31. package/build-cjs/models/campaign-offer/index.d.ts +37 -0
  32. package/build-cjs/models/campaign-offer/index.js +2 -0
  33. package/build-cjs/models/campaign-offer/index.js.map +1 -0
  34. package/build-cjs/models/campaign-offer/product/index.d.ts +24 -0
  35. package/build-cjs/models/campaign-offer/product/index.js +2 -0
  36. package/build-cjs/models/campaign-offer/product/index.js.map +1 -0
  37. package/build-cjs/models/cart/available-shipping-method/index.d.ts +12 -0
  38. package/build-cjs/models/cart/available-shipping-method/index.js +2 -0
  39. package/build-cjs/models/cart/available-shipping-method/index.js.map +1 -0
  40. package/build-cjs/models/cart/campaign-offer/index.d.ts +19 -0
  41. package/build-cjs/models/cart/campaign-offer/index.js +2 -0
  42. package/build-cjs/models/cart/campaign-offer/index.js.map +1 -0
  43. package/build-cjs/models/cart/index.d.ts +11 -0
  44. package/build-cjs/models/category/index.d.ts +27 -0
  45. package/build-cjs/models/category/index.js +2 -0
  46. package/build-cjs/models/category/index.js.map +1 -0
  47. package/build-cjs/models/category/init.d.ts +2 -0
  48. package/build-cjs/models/category/init.js +2 -0
  49. package/build-cjs/models/category/init.js.map +1 -0
  50. package/build-cjs/models/category/path-item/index.d.ts +8 -0
  51. package/build-cjs/models/category/translations/index.d.ts +5 -0
  52. package/build-cjs/models/checkout/index.d.ts +2 -0
  53. package/build-cjs/models/checkout-settings/index.d.ts +22 -0
  54. package/build-cjs/models/checkout-settings/index.js +2 -0
  55. package/build-cjs/models/checkout-settings/index.js.map +1 -0
  56. package/build-cjs/models/checkout-settings/option/index.d.ts +4 -0
  57. package/build-cjs/models/checkout-settings/price/index.d.ts +4 -0
  58. package/build-cjs/models/city/index.d.ts +10 -0
  59. package/build-cjs/models/contact-form/index.d.ts +7 -0
  60. package/build-cjs/models/country/index.d.ts +14 -0
  61. package/build-cjs/models/customer/address/city/index.d.ts +5 -0
  62. package/build-cjs/models/customer/address/country/index.d.ts +7 -0
  63. package/build-cjs/models/customer/address/district/index.d.ts +5 -0
  64. package/build-cjs/models/customer/address/index.d.ts +25 -0
  65. package/build-cjs/models/customer/address/state/index.d.ts +5 -0
  66. package/build-cjs/models/customer/attribute/index.d.ts +20 -0
  67. package/build-cjs/models/customer/attribute/index.js +2 -0
  68. package/build-cjs/models/customer/attribute/index.js.map +1 -0
  69. package/build-cjs/models/customer/attribute/init.d.ts +2 -0
  70. package/build-cjs/models/customer/attribute/init.js +2 -0
  71. package/build-cjs/models/customer/attribute/init.js.map +1 -0
  72. package/build-cjs/models/customer/attribute/option/index.d.ts +7 -0
  73. package/build-cjs/models/customer/attribute/sales-channel/index.d.ts +16 -0
  74. package/build-cjs/models/customer/attribute/sales-channel/index.js +2 -0
  75. package/build-cjs/models/customer/attribute/sales-channel/index.js.map +1 -0
  76. package/build-cjs/models/customer/attribute/translation/index.d.ts +7 -0
  77. package/build-cjs/models/customer/attribute/translation/option/index.d.ts +4 -0
  78. package/build-cjs/models/customer/attribute/value/index.d.ts +9 -0
  79. package/build-cjs/models/customer/index.d.ts +43 -0
  80. package/build-cjs/models/customer/index.js +2 -0
  81. package/build-cjs/models/customer/index.js.map +1 -0
  82. package/build-cjs/models/customer/review/index.d.ts +24 -0
  83. package/build-cjs/models/customer/review/index.js +2 -0
  84. package/build-cjs/models/customer/review/index.js.map +1 -0
  85. package/build-cjs/models/customer/review/init.d.ts +2 -0
  86. package/build-cjs/models/customer/review/init.js +2 -0
  87. package/build-cjs/models/customer/review/init.js.map +1 -0
  88. package/build-cjs/models/customer/review/settings/index.d.ts +4 -0
  89. package/build-cjs/models/customer/review/summary/index.d.ts +8 -0
  90. package/build-cjs/models/customer/review/summary/star/index.d.ts +4 -0
  91. package/build-cjs/models/district/index.d.ts +10 -0
  92. package/build-cjs/models/favorite-product/index.d.ts +5 -0
  93. package/build-cjs/models/filter-category/index.d.ts +8 -0
  94. package/build-cjs/models/html-meta-data/index.d.ts +25 -0
  95. package/build-cjs/models/html-meta-data/index.js +2 -0
  96. package/build-cjs/models/html-meta-data/index.js.map +1 -0
  97. package/build-cjs/models/html-meta-data/init.d.ts +3 -0
  98. package/build-cjs/models/html-meta-data/init.js +2 -0
  99. package/build-cjs/models/html-meta-data/init.js.map +1 -0
  100. package/build-cjs/models/html-meta-data/translations/index.d.ts +5 -0
  101. package/build-cjs/models/image/index.d.ts +4 -0
  102. package/build-cjs/models/last-viewed-product/index.d.ts +4 -0
  103. package/build-cjs/models/merchant-settings/index.d.ts +21 -0
  104. package/build-cjs/models/merchant-settings/index.js +2 -0
  105. package/build-cjs/models/merchant-settings/index.js.map +1 -0
  106. package/build-cjs/models/merchant-settings/init.d.ts +2 -0
  107. package/build-cjs/models/merchant-settings/init.js +2 -0
  108. package/build-cjs/models/merchant-settings/init.js.map +1 -0
  109. package/build-cjs/models/order/address/city/index.d.ts +5 -0
  110. package/build-cjs/models/order/address/country/index.d.ts +7 -0
  111. package/build-cjs/models/order/address/district/index.d.ts +5 -0
  112. package/build-cjs/models/order/address/index.d.ts +22 -0
  113. package/build-cjs/models/order/address/state/index.d.ts +5 -0
  114. package/build-cjs/models/order/adjustment/applied-order-line/index.d.ts +6 -0
  115. package/build-cjs/models/order/adjustment/index.d.ts +21 -0
  116. package/build-cjs/models/order/adjustment/index.js +2 -0
  117. package/build-cjs/models/order/adjustment/index.js.map +1 -0
  118. package/build-cjs/models/order/customer/index.d.ts +9 -0
  119. package/build-cjs/models/order/gift-line/index.d.ts +4 -0
  120. package/build-cjs/models/order/index.d.ts +84 -0
  121. package/build-cjs/models/order/index.js +2 -0
  122. package/build-cjs/models/order/index.js.map +1 -0
  123. package/build-cjs/models/order/invoice/index.d.ts +14 -0
  124. package/build-cjs/models/order/invoice/index.js +2 -0
  125. package/build-cjs/models/order/invoice/index.js.map +1 -0
  126. package/build-cjs/models/order/line-item/discount/index.d.ts +9 -0
  127. package/build-cjs/models/order/line-item/index.d.ts +32 -0
  128. package/build-cjs/models/order/line-item/index.js +2 -0
  129. package/build-cjs/models/order/line-item/index.js.map +1 -0
  130. package/build-cjs/models/order/line-item/option/index.d.ts +9 -0
  131. package/build-cjs/models/order/line-item/option/value/index.d.ts +5 -0
  132. package/build-cjs/models/order/line-item/variant/brand/index.d.ts +4 -0
  133. package/build-cjs/models/order/line-item/variant/category/index.d.ts +9 -0
  134. package/build-cjs/models/order/line-item/variant/index.d.ts +23 -0
  135. package/build-cjs/models/order/line-item/variant/price/index.d.ts +7 -0
  136. package/build-cjs/models/order/line-item/variant/value/index.d.ts +7 -0
  137. package/build-cjs/models/order/package/index.d.ts +26 -0
  138. package/build-cjs/models/order/package/index.js +2 -0
  139. package/build-cjs/models/order/package/index.js.map +1 -0
  140. package/build-cjs/models/order/package/tracking-info/index.d.ts +7 -0
  141. package/build-cjs/models/order/payment-method/index.d.ts +8 -0
  142. package/build-cjs/models/order/refund/index.d.ts +5 -0
  143. package/build-cjs/models/order/refund/line-item/index.d.ts +4 -0
  144. package/build-cjs/models/order/refund/settings/index.d.ts +5 -0
  145. package/build-cjs/models/order/shipping-line/index.d.ts +11 -0
  146. package/build-cjs/models/order/tax-line/index.d.ts +4 -0
  147. package/build-cjs/models/order/transaction/error/index.d.ts +5 -0
  148. package/build-cjs/models/order/transaction/index.d.ts +34 -0
  149. package/build-cjs/models/order/transaction/index.js +2 -0
  150. package/build-cjs/models/order/transaction/index.js.map +1 -0
  151. package/build-cjs/models/order/transaction/payment-method-detail/index.d.ts +22 -0
  152. package/build-cjs/models/order/transaction/payment-method-detail/index.js +2 -0
  153. package/build-cjs/models/order/transaction/payment-method-detail/index.js.map +1 -0
  154. package/build-cjs/models/order/transaction/payment-method-detail/installment-price/index.d.ts +7 -0
  155. package/build-cjs/models/payment-gateway/additional-price/index.d.ts +14 -0
  156. package/build-cjs/models/payment-gateway/additional-price/index.js +2 -0
  157. package/build-cjs/models/payment-gateway/additional-price/index.js.map +1 -0
  158. package/build-cjs/models/payment-gateway/index.d.ts +42 -0
  159. package/build-cjs/models/payment-gateway/index.js +2 -0
  160. package/build-cjs/models/payment-gateway/index.js.map +1 -0
  161. package/build-cjs/models/payment-gateway/init.d.ts +2 -0
  162. package/build-cjs/models/payment-gateway/init.js +2 -0
  163. package/build-cjs/models/payment-gateway/init.js.map +1 -0
  164. package/build-cjs/models/payment-gateway/settings/index.d.ts +11 -0
  165. package/build-cjs/models/payment-gateway/settings/index.js +2 -0
  166. package/build-cjs/models/payment-gateway/settings/index.js.map +1 -0
  167. package/build-cjs/models/payment-gateway/translation/index.d.ts +5 -0
  168. package/build-cjs/models/product/attribute/index.d.ts +22 -0
  169. package/build-cjs/models/product/attribute/index.js +2 -0
  170. package/build-cjs/models/product/attribute/index.js.map +1 -0
  171. package/build-cjs/models/product/attribute/init.d.ts +2 -0
  172. package/build-cjs/models/product/attribute/init.js +2 -0
  173. package/build-cjs/models/product/attribute/init.js.map +1 -0
  174. package/build-cjs/models/product/attribute/option/index.d.ts +4 -0
  175. package/build-cjs/models/product/attribute/table-cell/index.d.ts +4 -0
  176. package/build-cjs/models/product/attribute/table-template/index.d.ts +5 -0
  177. package/build-cjs/models/product/attribute/translation/index.d.ts +10 -0
  178. package/build-cjs/models/product/attribute-value/index.d.ts +21 -0
  179. package/build-cjs/models/product/attribute-value/init.d.ts +2 -0
  180. package/build-cjs/models/product/attribute-value/init.js +2 -0
  181. package/build-cjs/models/product/attribute-value/init.js.map +1 -0
  182. package/build-cjs/models/product/back-in-stock-settings/index.d.ts +3 -0
  183. package/build-cjs/models/product/campaign/data/index.d.ts +39 -0
  184. package/build-cjs/models/product/campaign/data/index.js +2 -0
  185. package/build-cjs/models/product/campaign/data/index.js.map +1 -0
  186. package/build-cjs/models/product/campaign/filter/index.d.ts +11 -0
  187. package/build-cjs/models/product/campaign/filter/index.js +2 -0
  188. package/build-cjs/models/product/campaign/filter/index.js.map +1 -0
  189. package/build-cjs/models/product/campaign/index.d.ts +5 -0
  190. package/build-cjs/models/product/campaign/product-buyx-then-gety/index.d.ts +16 -0
  191. package/build-cjs/models/product/campaign/product-campaign-date-range-field/index.d.ts +4 -0
  192. package/build-cjs/models/product/campaign/product-fixed-discount/index.d.ts +11 -0
  193. package/build-cjs/models/product/filter/index.d.ts +81 -0
  194. package/build-cjs/models/product/filter/index.js +2 -0
  195. package/build-cjs/models/product/filter/index.js.map +1 -0
  196. package/build-cjs/models/product/image/index.d.ts +8 -0
  197. package/build-cjs/models/product/image/init.d.ts +2 -0
  198. package/build-cjs/models/product/image/init.js +2 -0
  199. package/build-cjs/models/product/image/init.js.map +1 -0
  200. package/build-cjs/models/product/index.d.ts +39 -0
  201. package/build-cjs/models/product/index.js +2 -0
  202. package/build-cjs/models/product/index.js.map +1 -0
  203. package/build-cjs/models/product/init.d.ts +2 -0
  204. package/build-cjs/models/product/init.js +2 -0
  205. package/build-cjs/models/product/init.js.map +1 -0
  206. package/build-cjs/models/product/option-set/index.d.ts +21 -0
  207. package/build-cjs/models/product/option-set/init.d.ts +6 -0
  208. package/build-cjs/models/product/option-set/init.js +2 -0
  209. package/build-cjs/models/product/option-set/init.js.map +1 -0
  210. package/build-cjs/models/product/option-set/option/index.d.ts +70 -0
  211. package/build-cjs/models/product/option-set/option/index.js +2 -0
  212. package/build-cjs/models/product/option-set/option/index.js.map +1 -0
  213. package/build-cjs/models/product/option-set/option/init.d.ts +2 -0
  214. package/build-cjs/models/product/option-set/option/init.js +2 -0
  215. package/build-cjs/models/product/option-set/option/init.js.map +1 -0
  216. package/build-cjs/models/product/tag/index.d.ts +4 -0
  217. package/build-cjs/models/product/variant/index.d.ts +19 -0
  218. package/build-cjs/models/product/variant/init.d.ts +2 -0
  219. package/build-cjs/models/product/variant/init.js +2 -0
  220. package/build-cjs/models/product/variant/init.js.map +1 -0
  221. package/build-cjs/models/product/variant/price/index.d.ts +7 -0
  222. package/build-cjs/models/product/variant-type/index.d.ts +5 -0
  223. package/build-cjs/models/product/variant-type/init.d.ts +2 -0
  224. package/build-cjs/models/product/variant-type/init.js +2 -0
  225. package/build-cjs/models/product/variant-type/init.js.map +1 -0
  226. package/build-cjs/models/raffle/index.d.ts +62 -0
  227. package/build-cjs/models/raffle/index.js +2 -0
  228. package/build-cjs/models/raffle/index.js.map +1 -0
  229. package/build-cjs/models/raffle/init.d.ts +2 -0
  230. package/build-cjs/models/raffle/init.js +2 -0
  231. package/build-cjs/models/raffle/init.js.map +1 -0
  232. package/build-cjs/models/sales-channel/index.d.ts +15 -0
  233. package/build-cjs/models/state/index.d.ts +6 -0
  234. package/build-cjs/models/stock-location/address/city/index.d.ts +5 -0
  235. package/build-cjs/models/stock-location/address/country/index.d.ts +5 -0
  236. package/build-cjs/models/stock-location/address/district/index.d.ts +5 -0
  237. package/build-cjs/models/stock-location/address/index.d.ts +13 -0
  238. package/build-cjs/models/stock-location/address/state/index.d.ts +5 -0
  239. package/build-cjs/models/stock-location/available/index.d.ts +8 -0
  240. package/build-cjs/models/stock-location/index.d.ts +23 -0
  241. package/build-cjs/models/stock-location/index.js +2 -0
  242. package/build-cjs/models/stock-location/index.js.map +1 -0
  243. package/build-cjs/models/storefront/domain/index.d.ts +7 -0
  244. package/build-cjs/models/storefront/index.d.ts +26 -0
  245. package/build-cjs/models/storefront/index.js +2 -0
  246. package/build-cjs/models/storefront/index.js.map +1 -0
  247. package/build-cjs/models/storefront/localization/index.d.ts +6 -0
  248. package/build-cjs/models/storefront/routing/dynamic-currency/index.d.ts +4 -0
  249. package/build-cjs/models/storefront/routing/index.d.ts +10 -0
  250. package/build-cjs/models/storefront/theme/index.d.ts +12 -0
  251. package/build-cjs/models/storefront/theme/index.js +2 -0
  252. package/build-cjs/models/storefront/theme/index.js.map +1 -0
  253. package/build-cjs/models/storefront/theme-localization/index.d.ts +11 -0
  254. package/build-cjs/models/theme-json/component/index.d.ts +17 -0
  255. package/build-cjs/models/theme-json/component/prop/index.d.ts +60 -0
  256. package/build-cjs/models/theme-json/component/prop/index.js +2 -0
  257. package/build-cjs/models/theme-json/component/prop/index.js.map +1 -0
  258. package/build-cjs/models/theme-json/custom-data/index.d.ts +37 -0
  259. package/build-cjs/models/theme-json/index.d.ts +11 -0
  260. package/build-cjs/models/theme-json/page/component/index.d.ts +5 -0
  261. package/build-cjs/models/theme-json/page/index.d.ts +43 -0
  262. package/build-cjs/models/theme-json/page/index.js +2 -0
  263. package/build-cjs/models/theme-json/page/index.js.map +1 -0
  264. package/build-cjs/models/theme-json/settings/color/index.d.ts +12 -0
  265. package/build-cjs/models/theme-json/settings/favicon/index.d.ts +3 -0
  266. package/build-cjs/models/theme-json/settings/font-family/index.d.ts +4 -0
  267. package/build-cjs/models/theme-json/settings/index.d.ts +14 -0
  268. package/build-cjs/models/theme-json/settings/index.js +2 -0
  269. package/build-cjs/models/theme-json/settings/index.js.map +1 -0
  270. package/build-cjs/models/variant-type/index.d.ts +21 -0
  271. package/build-cjs/models/variant-type/index.js +2 -0
  272. package/build-cjs/models/variant-type/index.js.map +1 -0
  273. package/build-cjs/models/variant-type/init.d.ts +2 -0
  274. package/build-cjs/models/variant-type/init.js +2 -0
  275. package/build-cjs/models/variant-type/init.js.map +1 -0
  276. package/build-cjs/models/variant-type/variant-value/index.d.ts +9 -0
  277. package/build-cjs/models/variant-type/variant-value/init.d.ts +2 -0
  278. package/build-cjs/models/variant-type/variant-value/init.js +2 -0
  279. package/build-cjs/models/variant-type/variant-value/init.js.map +1 -0
  280. package/package.json +32 -0
  281. package/src/index.ts +213 -0
  282. package/src/models/base/index.ts +6 -0
  283. package/src/models/base/init.ts +14 -0
  284. package/src/models/blog/category/index.ts +11 -0
  285. package/src/models/blog/category/init.ts +33 -0
  286. package/src/models/blog/content/index.ts +5 -0
  287. package/src/models/blog/index.ts +26 -0
  288. package/src/models/blog/init.ts +7 -0
  289. package/src/models/blog/meta-data/index.ts +16 -0
  290. package/src/models/blog/tag/index.ts +5 -0
  291. package/src/models/blog/writer/index.ts +4 -0
  292. package/src/models/brand/index.ts +26 -0
  293. package/src/models/brand/init.ts +27 -0
  294. package/src/models/brand/translation/index.ts +5 -0
  295. package/src/models/campaign-offer/index.ts +43 -0
  296. package/src/models/campaign-offer/product/index.ts +27 -0
  297. package/src/models/cart/available-shipping-method/index.ts +13 -0
  298. package/src/models/cart/campaign-offer/index.ts +24 -0
  299. package/src/models/cart/index.ts +12 -0
  300. package/src/models/category/index.ts +30 -0
  301. package/src/models/category/init.ts +33 -0
  302. package/src/models/category/path-item/index.ts +9 -0
  303. package/src/models/category/translations/index.ts +5 -0
  304. package/src/models/checkout/index.ts +3 -0
  305. package/src/models/checkout-settings/index.ts +24 -0
  306. package/src/models/checkout-settings/option/index.ts +4 -0
  307. package/src/models/checkout-settings/price/index.ts +4 -0
  308. package/src/models/city/index.ts +11 -0
  309. package/src/models/contact-form/index.ts +7 -0
  310. package/src/models/country/index.ts +15 -0
  311. package/src/models/customer/address/city/index.ts +5 -0
  312. package/src/models/customer/address/country/index.ts +7 -0
  313. package/src/models/customer/address/district/index.ts +5 -0
  314. package/src/models/customer/address/index.tsx +27 -0
  315. package/src/models/customer/address/state/index.ts +5 -0
  316. package/src/models/customer/attribute/index.ts +22 -0
  317. package/src/models/customer/attribute/init.ts +34 -0
  318. package/src/models/customer/attribute/option/index.ts +7 -0
  319. package/src/models/customer/attribute/sales-channel/index.ts +18 -0
  320. package/src/models/customer/attribute/translation/index.ts +8 -0
  321. package/src/models/customer/attribute/translation/option/index.ts +4 -0
  322. package/src/models/customer/attribute/value/index.ts +12 -0
  323. package/src/models/customer/index.ts +48 -0
  324. package/src/models/customer/review/index.ts +28 -0
  325. package/src/models/customer/review/init.ts +7 -0
  326. package/src/models/customer/review/settings/index.ts +4 -0
  327. package/src/models/customer/review/summary/index.ts +9 -0
  328. package/src/models/customer/review/summary/star/index.ts +4 -0
  329. package/src/models/district/index.ts +11 -0
  330. package/src/models/favorite-product/index.ts +6 -0
  331. package/src/models/filter-category/index.ts +9 -0
  332. package/src/models/html-meta-data/index.ts +28 -0
  333. package/src/models/html-meta-data/init.ts +27 -0
  334. package/src/models/html-meta-data/translations/index.ts +5 -0
  335. package/src/models/image/index.ts +4 -0
  336. package/src/models/last-viewed-product/index.ts +4 -0
  337. package/src/models/merchant-settings/index.ts +25 -0
  338. package/src/models/merchant-settings/init.ts +7 -0
  339. package/src/models/order/address/city/index.ts +5 -0
  340. package/src/models/order/address/country/index.ts +7 -0
  341. package/src/models/order/address/district/index.ts +5 -0
  342. package/src/models/order/address/index.ts +25 -0
  343. package/src/models/order/address/state/index.ts +5 -0
  344. package/src/models/order/adjustment/applied-order-line/index.ts +6 -0
  345. package/src/models/order/adjustment/index.ts +24 -0
  346. package/src/models/order/customer/index.ts +9 -0
  347. package/src/models/order/gift-line/index.ts +4 -0
  348. package/src/models/order/index.ts +90 -0
  349. package/src/models/order/invoice/index.ts +15 -0
  350. package/src/models/order/line-item/discount/index.ts +10 -0
  351. package/src/models/order/line-item/index.ts +34 -0
  352. package/src/models/order/line-item/option/index.ts +10 -0
  353. package/src/models/order/line-item/option/value/index.ts +5 -0
  354. package/src/models/order/line-item/variant/brand/index.ts +4 -0
  355. package/src/models/order/line-item/variant/category/index.ts +10 -0
  356. package/src/models/order/line-item/variant/index.ts +26 -0
  357. package/src/models/order/line-item/variant/price/index.ts +7 -0
  358. package/src/models/order/line-item/variant/value/index.ts +7 -0
  359. package/src/models/order/package/index.ts +28 -0
  360. package/src/models/order/package/tracking-info/index.ts +7 -0
  361. package/src/models/order/payment-method/index.ts +9 -0
  362. package/src/models/order/refund/index.ts +6 -0
  363. package/src/models/order/refund/line-item/index.ts +4 -0
  364. package/src/models/order/refund/settings/index.ts +5 -0
  365. package/src/models/order/shipping-line/index.ts +12 -0
  366. package/src/models/order/tax-line/index.ts +4 -0
  367. package/src/models/order/transaction/error/index.ts +5 -0
  368. package/src/models/order/transaction/index.ts +39 -0
  369. package/src/models/order/transaction/payment-method-detail/index.ts +25 -0
  370. package/src/models/order/transaction/payment-method-detail/installment-price/index.ts +7 -0
  371. package/src/models/payment-gateway/additional-price/index.ts +16 -0
  372. package/src/models/payment-gateway/index.ts +47 -0
  373. package/src/models/payment-gateway/init.ts +26 -0
  374. package/src/models/payment-gateway/settings/index.ts +12 -0
  375. package/src/models/payment-gateway/translation/index.ts +5 -0
  376. package/src/models/product/attribute/index.ts +24 -0
  377. package/src/models/product/attribute/init.ts +34 -0
  378. package/src/models/product/attribute/option/index.ts +4 -0
  379. package/src/models/product/attribute/table-cell/index.ts +4 -0
  380. package/src/models/product/attribute/table-template/index.ts +6 -0
  381. package/src/models/product/attribute/translation/index.ts +11 -0
  382. package/src/models/product/attribute-value/index.ts +26 -0
  383. package/src/models/product/attribute-value/init.ts +7 -0
  384. package/src/models/product/back-in-stock-settings/index.ts +3 -0
  385. package/src/models/product/campaign/data/index.ts +43 -0
  386. package/src/models/product/campaign/filter/index.ts +12 -0
  387. package/src/models/product/campaign/index.ts +6 -0
  388. package/src/models/product/campaign/product-buyx-then-gety/index.ts +19 -0
  389. package/src/models/product/campaign/product-campaign-date-range-field/index.ts +4 -0
  390. package/src/models/product/campaign/product-fixed-discount/index.ts +13 -0
  391. package/src/models/product/filter/index.ts +96 -0
  392. package/src/models/product/image/index.ts +10 -0
  393. package/src/models/product/image/init.ts +7 -0
  394. package/src/models/product/index.ts +43 -0
  395. package/src/models/product/init.ts +16 -0
  396. package/src/models/product/option-set/index.ts +25 -0
  397. package/src/models/product/option-set/init.ts +77 -0
  398. package/src/models/product/option-set/option/index.ts +81 -0
  399. package/src/models/product/option-set/option/init.ts +13 -0
  400. package/src/models/product/tag/index.ts +4 -0
  401. package/src/models/product/variant/index.ts +20 -0
  402. package/src/models/product/variant/init.ts +10 -0
  403. package/src/models/product/variant/price/index.ts +7 -0
  404. package/src/models/product/variant-type/index.ts +6 -0
  405. package/src/models/product/variant-type/init.ts +15 -0
  406. package/src/models/raffle/index.ts +70 -0
  407. package/src/models/raffle/init.ts +6 -0
  408. package/src/models/sales-channel/index.ts +17 -0
  409. package/src/models/state/index.ts +7 -0
  410. package/src/models/stock-location/address/city/index.ts +5 -0
  411. package/src/models/stock-location/address/country/index.ts +5 -0
  412. package/src/models/stock-location/address/district/index.ts +5 -0
  413. package/src/models/stock-location/address/index.ts +14 -0
  414. package/src/models/stock-location/address/state/index.ts +5 -0
  415. package/src/models/stock-location/available/index.ts +9 -0
  416. package/src/models/stock-location/index.ts +26 -0
  417. package/src/models/storefront/domain/index.ts +7 -0
  418. package/src/models/storefront/index.ts +30 -0
  419. package/src/models/storefront/localization/index.tsx +6 -0
  420. package/src/models/storefront/routing/dynamic-currency/index.ts +4 -0
  421. package/src/models/storefront/routing/index.tsx +11 -0
  422. package/src/models/storefront/theme/index.tsx +13 -0
  423. package/src/models/storefront/theme-localization/index.tsx +13 -0
  424. package/src/models/theme-json/component/index.ts +19 -0
  425. package/src/models/theme-json/component/prop/index.ts +65 -0
  426. package/src/models/theme-json/custom-data/index.ts +46 -0
  427. package/src/models/theme-json/index.ts +12 -0
  428. package/src/models/theme-json/page/component/index.ts +11 -0
  429. package/src/models/theme-json/page/index.ts +46 -0
  430. package/src/models/theme-json/settings/color/index.ts +13 -0
  431. package/src/models/theme-json/settings/favicon/index.ts +3 -0
  432. package/src/models/theme-json/settings/font-family/index.ts +4 -0
  433. package/src/models/theme-json/settings/index.ts +16 -0
  434. package/src/models/variant-type/index.ts +25 -0
  435. package/src/models/variant-type/init.ts +37 -0
  436. package/src/models/variant-type/variant-value/index.ts +12 -0
  437. package/src/models/variant-type/variant-value/init.ts +5 -0
@@ -0,0 +1,43 @@
1
+ import { IkasProductBuyXThenGetY } from "../product-buyx-then-gety";
2
+ import { IkasProductCampaignDateRangeField } from "../product-campaign-date-range-field";
3
+ import { IkasProductFixedDiscount } from "../product-fixed-discount";
4
+
5
+ export type IkasProductCampaignData = {
6
+ applicableCustomerGroupIds: string[] | null;
7
+ applicableCustomerIds: string[] | null;
8
+ applicablePrice: IkasCampaignApplicablePrice;
9
+ buyXThenGetY: IkasProductBuyXThenGetY;
10
+ canCombineWithOtherCampaigns: boolean;
11
+ createdFor: IkasCampaignCreatedFor | null;
12
+ currencyCodes: [string] | null;
13
+ dateRange: IkasProductCampaignDateRangeField | null;
14
+ deleted: boolean;
15
+ fixedDiscount: IkasProductFixedDiscount | null;
16
+ hasCoupon: boolean;
17
+ id: string;
18
+ includeDiscountedProducts: boolean | null;
19
+ salesChannelIds: string[] | null;
20
+ title: string;
21
+ type: IkasCampaignType;
22
+ usageCount: number;
23
+ usageLimit: number | null;
24
+ usageLimitPerCustomer: number | null;
25
+ };
26
+
27
+ export enum IkasCampaignApplicablePrice {
28
+ DISCOUNT_PRICE = "DISCOUNT_PRICE",
29
+ SELL_PRICE = "SELL_PRICE",
30
+ }
31
+
32
+ export enum IkasCampaignCreatedFor {
33
+ ABANDONED_CHECKOUT = "ABANDONED_CHECKOUT",
34
+ CART = "CART",
35
+ CUSTOMER_REVIEW = "CUSTOMER_REVIEW",
36
+ }
37
+
38
+ export enum IkasCampaignType {
39
+ BUY_X_THEN_GET_Y = "BUY_X_THEN_GET_Y",
40
+ FIXED_AMOUNT = "FIXED_AMOUNT",
41
+ FREE_SHIPPING = "FREE_SHIPPING",
42
+ RATIO = "FREE_SHIPPING",
43
+ }
@@ -0,0 +1,12 @@
1
+ export type IkasProductCampaignFilter = {
2
+ idList: string[];
3
+ type: IkasCampaignFilterType;
4
+ };
5
+
6
+ export enum IkasCampaignFilterType {
7
+ CATEGORY = "CATEGORY",
8
+ PRODUCT = "PRODUCT",
9
+ PRODUCT_BRAND = "PRODUCT_BRAND",
10
+ PRODUCT_TAG = "PRODUCT_TAG",
11
+ VARIANT = "VARIANT",
12
+ }
@@ -0,0 +1,6 @@
1
+ import { IkasProductCampaignData } from "./data";
2
+
3
+ export type IkasProductCampaign = {
4
+ campaign: IkasProductCampaignData;
5
+ variantIds: string[];
6
+ };
@@ -0,0 +1,19 @@
1
+ import { IkasProductCampaignFilter } from "../filter";
2
+
3
+ export type IkasProductBuyX = {
4
+ amount: number;
5
+ applyByQuantity: boolean;
6
+ filter: IkasProductCampaignFilter;
7
+ };
8
+
9
+ export type IkasProductGetY = {
10
+ amount: number;
11
+ discountRatio: number;
12
+ filter: IkasProductCampaignFilter;
13
+ };
14
+
15
+ export type IkasProductBuyXThenGetY = {
16
+ buyX: IkasProductBuyX;
17
+ getY: IkasProductGetY;
18
+ maxUsagePerOrder: number;
19
+ };
@@ -0,0 +1,4 @@
1
+ export type IkasProductCampaignDateRangeField = {
2
+ start: number | null;
3
+ end: number | null;
4
+ };
@@ -0,0 +1,13 @@
1
+ import { IkasProductCampaignFilter } from "../filter";
2
+
3
+ export type IkasCampaignMinMaxRangeField = {
4
+ min: number | null;
5
+ max: number | null;
6
+ };
7
+
8
+ export type IkasProductFixedDiscount = {
9
+ amount: number | null;
10
+ filters: IkasProductCampaignFilter | null;
11
+ lineItemQuantityRange: IkasCampaignMinMaxRangeField | null;
12
+ priceRange: IkasCampaignMinMaxRangeField | null;
13
+ };
@@ -0,0 +1,96 @@
1
+ import { IkasImage } from "../../image";
2
+
3
+ export type IkasProductFilter = {
4
+ id: string;
5
+ key: string;
6
+ name: string;
7
+ order: number;
8
+ type: IkasProductFilterType;
9
+ displayType: IkasProductFilterDisplayType;
10
+ isMultiSelect: boolean;
11
+ isFacetFilter: boolean | null;
12
+ values?: IkasApplicableProductFilterValue[] | null;
13
+ customValues?: string[] | null;
14
+ settings?: IkasProductFilterSettings | null;
15
+
16
+ // Extra
17
+ numberRange?: IkasFilterRangeValue | null; // Selected range value for the number slider
18
+ numberRangeLimit?: IkasFilterRangeValue | null; // Limits for the number range slider
19
+ numberRangeListOptions?: IkasProductFilterNumberRangeListOption[] | null; // List options for the number range select
20
+ };
21
+
22
+ export type IkasApplicableProductFilterValue = {
23
+ id: string;
24
+ key: string;
25
+ name: string;
26
+ colorCode?: string | null;
27
+ thumbnailImageId?: string | null;
28
+ thumbnailImage?: IkasImage | null;
29
+ resultCount?: number | null;
30
+
31
+ // Extra
32
+ isSelected: boolean;
33
+ };
34
+
35
+ export type IkasProductFilterValue = {
36
+ id: string;
37
+ type: IkasProductFilterType;
38
+ displayType: IkasProductFilterDisplayType;
39
+ valueList: string[];
40
+ };
41
+
42
+ export type IkasProductFilterSettings = {
43
+ useAndFilter?: boolean | null;
44
+ showCollapsedOnDesktop: boolean;
45
+ showCollapsedOnMobile: boolean;
46
+ sortType: IkasProductFilterSortType;
47
+ };
48
+
49
+ export type IkasProductFacetInput = {
50
+ id: string;
51
+ type: IkasProductFilterType;
52
+ displayType: IkasProductFilterDisplayType;
53
+ };
54
+
55
+ export enum IkasProductFilterType {
56
+ ATTRIBUTE = "ATTRIBUTE",
57
+ BRAND = "BRAND",
58
+ DISCOUNT_RATIO = "DISCOUNT_RATIO",
59
+ PRICE = "PRICE",
60
+ STOCK_STATUS = "STOCK_STATUS",
61
+ TAG = "TAG",
62
+ VARIANT_TYPE = "VARIANT_TYPE",
63
+ }
64
+
65
+ export enum IkasProductFilterDisplayType {
66
+ BOX = "BOX",
67
+ DATE_RANGE = "DATE_RANGE",
68
+ LIST = "LIST",
69
+ NUMBER_RANGE_LIST = "NUMBER_RANGE_LIST",
70
+ NUMBER_RANGE = "NUMBER_RANGE",
71
+ SWATCH = "SWATCH",
72
+ }
73
+
74
+ export enum IkasProductFilterSortType {
75
+ ALPHABETICAL_ASC = "ALPHABETICAL_ASC",
76
+ ALPHABETICAL_DESC = "ALPHABETICAL_DESC",
77
+ PRODUCT_COUNT_ASC = "PRODUCT_COUNT_ASC",
78
+ PRODUCT_COUNT_DESC = "PRODUCT_COUNT_DESC",
79
+ }
80
+
81
+ export enum IkasProductStockFilterValue {
82
+ IN_STOCK = "in-stock",
83
+ OUT_OF_STOCK = "out-of-stock",
84
+ }
85
+
86
+ export type IkasFilterRangeValue = {
87
+ from: number;
88
+ to: number | undefined | null;
89
+ };
90
+
91
+ export type IkasProductFilterNumberRangeListOption = {
92
+ from: number;
93
+ to: number | undefined | null;
94
+ key: string;
95
+ isSelected: boolean;
96
+ };
@@ -0,0 +1,10 @@
1
+ import { IkasImage } from "../../image";
2
+
3
+ export type IkasProductImage = {
4
+ imageId: string | null;
5
+ isMain: boolean;
6
+ isVideo: boolean | null;
7
+ order: number;
8
+
9
+ image?: IkasImage | null;
10
+ };
@@ -0,0 +1,7 @@
1
+ import { IkasProductImage } from ".";
2
+
3
+ export function initIkasProductImage(productImage: IkasProductImage) {
4
+ productImage.image = productImage.imageId
5
+ ? { id: productImage.imageId, isVideo: productImage.isVideo || false }
6
+ : null;
7
+ }
@@ -0,0 +1,43 @@
1
+ import { IkasCategory } from "../category";
2
+ import { IkasProductVariant } from "./variant";
3
+ import { IkasProductAttributeValue } from "./attribute-value";
4
+ import { IkasProductVariantType } from "./variant-type";
5
+ import { IkasBrand } from "../brand";
6
+ import { IkasHTMLMetaData } from "../html-meta-data";
7
+ import { IkasProductTag } from "./tag";
8
+ import { IkasVariantValue } from "../variant-type/variant-value";
9
+ import { IkasVariantType } from "../variant-type";
10
+
11
+ export type IkasProduct = {
12
+ id: string;
13
+ name: string;
14
+ type: IkasProductType;
15
+ description: string;
16
+ shortDescription: string;
17
+ metaData: IkasHTMLMetaData | null;
18
+ brand: IkasBrand | null;
19
+ categories: IkasCategory[];
20
+ tags: IkasProductTag[] | null;
21
+ variants: IkasProductVariant[];
22
+ attributes: IkasProductAttributeValue[];
23
+ variantTypes: IkasProductVariantType[];
24
+ productOptionSetId: string | null;
25
+ };
26
+
27
+ export enum IkasProductType {
28
+ PHYSICAL = "PHYSICAL",
29
+ DIGITAL = "DIGITAL",
30
+ MEMBERSHIP = "MEMBERSHIP",
31
+ }
32
+
33
+ export type IkasDisplayedVariantValue = {
34
+ variant: IkasProductVariant; // TODO remove?
35
+ variantValue: IkasVariantValue;
36
+ hasStock: boolean;
37
+ isSelected: boolean;
38
+ };
39
+
40
+ export type IkasDisplayedVariantType = {
41
+ variantType: IkasVariantType;
42
+ displayedVariantValues: IkasDisplayedVariantValue[];
43
+ };
@@ -0,0 +1,16 @@
1
+ import type { IkasProduct } from ".";
2
+ import { initIkasProductVariantType } from "./variant-type/init";
3
+ import { initIkasProductVariant } from "./variant/init";
4
+ import { initIkasProductAttributeValue } from "./attribute-value/init";
5
+ import { initIkasBrand } from "../brand/init";
6
+ import { initIkasCategory } from "../category/init";
7
+ import { initIkasHTMLMetaData } from "../html-meta-data/init";
8
+
9
+ export function initIkasProduct(product: IkasProduct, locale: string | null) {
10
+ product.metaData && initIkasHTMLMetaData(product.metaData, locale);
11
+ product.brand && initIkasBrand(product.brand, locale);
12
+ product.categories.forEach((c) => initIkasCategory(c, locale));
13
+ product.variants.forEach(initIkasProductVariant);
14
+ product.attributes.forEach(initIkasProductAttributeValue);
15
+ product.variantTypes.forEach(initIkasProductVariantType);
16
+ }
@@ -0,0 +1,25 @@
1
+ import { IkasProductOption } from "./option";
2
+
3
+ export type IkasProductOptionSelectValueTranslations = {
4
+ id: string;
5
+ value: string | null;
6
+ };
7
+
8
+ export type IkasProductOptionTranslations = {
9
+ id: string;
10
+ name: string | null;
11
+ optionalText: string | null;
12
+ values: IkasProductOptionSelectValueTranslations[] | null;
13
+ };
14
+
15
+ export type IkasProductOptionSetTranslations = {
16
+ locale: string;
17
+ options: IkasProductOptionTranslations[] | null;
18
+ };
19
+
20
+ export type IkasProductOptionSet = {
21
+ id: string;
22
+ name: string;
23
+ options: IkasProductOption[];
24
+ translations?: IkasProductOptionSetTranslations[] | null;
25
+ };
@@ -0,0 +1,77 @@
1
+ import { IkasProductOptionSet, IkasProductOptionSetTranslations } from ".";
2
+ import { IkasProductOption, IkasProductOptionType } from "./option";
3
+ import { initIkasProductOption } from "./option/init";
4
+
5
+ export function initIkasProductOptionSet(
6
+ optionSet: IkasProductOptionSet,
7
+ locale: string | null
8
+ ) {
9
+ optionSet.options.forEach((option) => {
10
+ option.productOptionSetId = optionSet.id;
11
+ initIkasProductOption(option);
12
+ });
13
+
14
+ if (optionSet.translations && locale) {
15
+ setTranslations(optionSet, optionSet.translations, locale);
16
+ delete optionSet.translations;
17
+ }
18
+ setChildOptions(optionSet);
19
+ initOptionValues(optionSet);
20
+ }
21
+
22
+ function setTranslations(
23
+ optionSet: IkasProductOptionSet,
24
+ translations: IkasProductOptionSetTranslations[],
25
+ locale: string
26
+ ) {
27
+ if (translations && translations.some((t) => t.locale === locale)) {
28
+ const localeTranslations = translations.find((t) => t.locale === locale);
29
+
30
+ localeTranslations?.options?.forEach((translatedOption) => {
31
+ const option = optionSet.options.find(
32
+ (o) => o.id === translatedOption.id
33
+ );
34
+
35
+ if (option) {
36
+ option.name = translatedOption.name || option.name;
37
+ option.optionalText =
38
+ translatedOption.optionalText || option.optionalText;
39
+
40
+ if (option.type === IkasProductOptionType.CHOICE) {
41
+ translatedOption.values?.forEach((translatedValue) => {
42
+ const selectValue = option.selectSettings?.values.find(
43
+ (sv) => sv.id === translatedValue.id
44
+ );
45
+ if (selectValue) {
46
+ selectValue.value = translatedValue.value || selectValue.value;
47
+ }
48
+ });
49
+ }
50
+ }
51
+ });
52
+ }
53
+ }
54
+
55
+ export function setChildOptions(optionSet: IkasProductOptionSet) {
56
+ optionSet.options.forEach((option) => {
57
+ const childOptions = optionSet.options.filter(
58
+ (o) => o.requiredOptionId === option.id
59
+ );
60
+ if (childOptions.length) {
61
+ option.childOptions = childOptions;
62
+ }
63
+ });
64
+ }
65
+
66
+ export function initOptionValues(optionSet: IkasProductOptionSet) {
67
+ optionSet.options.forEach((o) => initValues(o));
68
+ }
69
+
70
+ export function initValues(option: IkasProductOption) {
71
+ if (!option.isOptional) {
72
+ option.values = [];
73
+ if (option.childOptions) {
74
+ option.childOptions.forEach((co) => initValues(co));
75
+ }
76
+ }
77
+ }
@@ -0,0 +1,81 @@
1
+ import { IkasImage } from "../../../image";
2
+
3
+ export enum IkasProductOptionSelectType {
4
+ BOX = "BOX",
5
+ SELECT = "SELECT",
6
+ SWATCH = "SWATCH",
7
+ }
8
+
9
+ export enum IkasProductOptionType {
10
+ CHECKBOX = "CHECKBOX",
11
+ CHOICE = "CHOICE",
12
+ COLOR_PICKER = "COLOR_PICKER",
13
+ DATE_PICKER = "DATE_PICKER",
14
+ FILE = "FILE",
15
+ IMAGE = "IMAGE",
16
+ TEXT = "TEXT",
17
+ TEXT_AREA = "TEXT_AREA",
18
+ }
19
+
20
+ export type IkasProductOptionOtherPrice = {
21
+ currencyCode: string;
22
+ price: number;
23
+ };
24
+
25
+ export type IkasProductOptionSelectValue = {
26
+ id: string;
27
+ order: number;
28
+ value: string;
29
+ price: number | null;
30
+ otherPrices: IkasProductOptionOtherPrice[] | null;
31
+ thumbnailImageId: string | null;
32
+ colorCode: string | null;
33
+ thumbnailImage: IkasImage | null;
34
+ };
35
+
36
+ export type IkasProductOptionSelectSettings = {
37
+ type: IkasProductOptionSelectType;
38
+ minSelect: number | null;
39
+ maxSelect: number | null;
40
+ values: IkasProductOptionSelectValue[];
41
+ };
42
+
43
+ export type IkasProductOptionDateSettings = {
44
+ min: Date | null;
45
+ max: Date | null;
46
+ minRelativeNextDate: number | null;
47
+ maxRelativeNextDate: number | null;
48
+ };
49
+
50
+ export type IkasProductOptionTextSettings = {
51
+ min: number | null;
52
+ max: number | null;
53
+ };
54
+
55
+ export type IkasProductOptionFileSettings = {
56
+ allowedExtensions: string[] | null;
57
+ minQuantity: number | null;
58
+ maxQuantity: number | null;
59
+ };
60
+
61
+ export type IkasProductOption = {
62
+ id: string;
63
+ productOptionSetId: string;
64
+ name: string;
65
+ order: number;
66
+ type: IkasProductOptionType;
67
+ selectSettings: IkasProductOptionSelectSettings | null;
68
+ textSettings: IkasProductOptionTextSettings | null;
69
+ fileSettings: IkasProductOptionFileSettings | null;
70
+ dateSettings: IkasProductOptionDateSettings | null;
71
+ price: number | null;
72
+ otherPrices: IkasProductOptionOtherPrice[] | null;
73
+ isOptional: boolean;
74
+ optionalText: string | null;
75
+ requiredOptionId: string | null;
76
+ requiredOptionValueIds: string[] | null;
77
+
78
+ // Extra
79
+ values: string[];
80
+ childOptions: IkasProductOption[];
81
+ };
@@ -0,0 +1,13 @@
1
+ import { IkasProductOption, IkasProductOptionSelectSettings } from ".";
2
+ import _sortBy from "lodash/sortBy";
3
+
4
+ export function initIkasProductOption(option: IkasProductOption) {
5
+ if (option.selectSettings)
6
+ initProductOptionSelectSettings(option.selectSettings);
7
+ }
8
+
9
+ function initProductOptionSelectSettings(
10
+ settings: IkasProductOptionSelectSettings
11
+ ) {
12
+ settings.values = _sortBy(settings.values || [], "order");
13
+ }
@@ -0,0 +1,4 @@
1
+ export type IkasProductTag = {
2
+ id: string;
3
+ name: string;
4
+ };
@@ -0,0 +1,20 @@
1
+ import { IkasProductPrice } from "./price";
2
+ import { IkasVariantValue } from "../../variant-type/variant-value";
3
+ import { IkasProductAttributeValue } from "../attribute-value";
4
+ import { IkasProductCampaign } from "../campaign";
5
+ import { IkasProductImage } from "../image";
6
+
7
+ export type IkasProductVariant = {
8
+ id: string;
9
+ sku: string | null;
10
+ barcodeList: string[] | null;
11
+ variantValues: IkasVariantValue[];
12
+ attributes: IkasProductAttributeValue[];
13
+ price: IkasProductPrice;
14
+ stock: number;
15
+ isActive: boolean;
16
+ productId: string;
17
+ sellIfOutOfStock: boolean;
18
+ images: IkasProductImage[] | null;
19
+ campaigns?: IkasProductCampaign[];
20
+ };
@@ -0,0 +1,10 @@
1
+ import { initIkasProductImage } from "../image/init";
2
+ import { initIkasProductAttributeValue } from "../attribute-value/init";
3
+ import _sortBy from "lodash/sortBy";
4
+ import { IkasProductVariant } from ".";
5
+
6
+ export function initIkasProductVariant(variant: IkasProductVariant) {
7
+ variant.images?.forEach(initIkasProductImage);
8
+ variant.images = _sortBy(variant.images, "order");
9
+ variant.attributes.forEach(initIkasProductAttributeValue);
10
+ }
@@ -0,0 +1,7 @@
1
+ export type IkasProductPrice = {
2
+ buyPrice: number | null;
3
+ currency: string | null;
4
+ discountPrice: number | null;
5
+ priceListId: string | null;
6
+ sellPrice: number;
7
+ };
@@ -0,0 +1,6 @@
1
+ import { IkasVariantType } from "../../variant-type";
2
+
3
+ export type IkasProductVariantType = {
4
+ variantType: IkasVariantType;
5
+ variantValueIds: string[];
6
+ };
@@ -0,0 +1,15 @@
1
+ import { IkasProductVariantType } from ".";
2
+ import { IkasVariantValue } from "../../variant-type/variant-value";
3
+
4
+ export function initIkasProductVariantType(
5
+ variantType: IkasProductVariantType
6
+ ) {
7
+ const orderedVariantValues: IkasVariantValue[] = [];
8
+ variantType.variantValueIds.forEach((vvId) => {
9
+ const variantValue = variantType.variantType.values.find(
10
+ (vv) => vv.id === vvId
11
+ );
12
+ if (variantValue) orderedVariantValues.push(variantValue);
13
+ });
14
+ variantType.variantType.values = orderedVariantValues;
15
+ }
@@ -0,0 +1,70 @@
1
+ import { IkasProduct } from "../product";
2
+
3
+ export type IkasRaffleDateRangeField = {
4
+ start: number | null;
5
+ end: number | null;
6
+ };
7
+
8
+ export enum IkasRaffleVerificationType {
9
+ EMAIL = "EMAIL",
10
+ MERSIS = "MERSIS",
11
+ }
12
+
13
+ export type IkasRaffle = {
14
+ id: string;
15
+ createdAt: number;
16
+ updatedAt: number;
17
+ deleted: boolean | null;
18
+ dateRange: IkasRaffleDateRangeField | null;
19
+ metadata: IkasRaffleMetaData | null;
20
+ name: string;
21
+ participantCount?: number | null;
22
+ requiredCustomerAccount: boolean;
23
+ status: boolean;
24
+ variants: IkasRaffleAppliedProduct[] | null;
25
+ products: IkasProduct[];
26
+ verificationType: IkasRaffleVerificationType;
27
+ isCustomerWinner: boolean | null;
28
+ };
29
+
30
+ export enum IkasRaffleMetadataTargetType {
31
+ RAFFLE = "RAFFLE",
32
+ }
33
+
34
+ export type IkasRaffleMetaData = {
35
+ id: string;
36
+ createdAt: number;
37
+ updatedAt: number;
38
+ deleted: boolean | null;
39
+ description: string | null;
40
+ pageTitle: string | null;
41
+ slug: string;
42
+ targetId: string | null;
43
+ targetType: IkasRaffleMetadataTargetType | null;
44
+ canonicals: string[] | null;
45
+ disableIndex: boolean | null;
46
+ };
47
+
48
+ export type IkasRaffleParticipant = {
49
+ id: string | null;
50
+ createdAt: number | null;
51
+ updatedAt: number | null;
52
+ deleted: boolean | null;
53
+ customerId: string | null;
54
+ raffleId: string;
55
+ firstName: string;
56
+ lastName: string;
57
+ fullName: string | null;
58
+ email: string;
59
+ applicationDate: number;
60
+ phone: string | null;
61
+ isWinner: boolean | null;
62
+
63
+ extraData: Record<string, any> | null;
64
+ appliedProduct: IkasRaffleAppliedProduct;
65
+ };
66
+
67
+ export type IkasRaffleAppliedProduct = {
68
+ productId: string;
69
+ variantId: string;
70
+ };
@@ -0,0 +1,6 @@
1
+ import { IkasRaffle } from ".";
2
+ import { initIkasProduct } from "../product/init";
3
+
4
+ export function initIkasRaffle(raffle: IkasRaffle, locale: string | null) {
5
+ raffle.products.map((p) => initIkasProduct(p, locale));
6
+ }
@@ -0,0 +1,17 @@
1
+ export type IkasSalesChannel = {
2
+ id: string;
3
+ name: string;
4
+ priceListId: string | null;
5
+ stockLocations: IkasSalesChannelStockLocation[] | null;
6
+ paymentGateways: IkasSalesChannelPaymentGateway[] | null;
7
+ };
8
+
9
+ export type IkasSalesChannelStockLocation = {
10
+ id: string;
11
+ order: number;
12
+ };
13
+
14
+ export type IkasSalesChannelPaymentGateway = {
15
+ id: string;
16
+ order: number;
17
+ };
@@ -0,0 +1,7 @@
1
+ import { IkasBaseModel } from "../base";
2
+
3
+ export type IkasState = {
4
+ countryId: string;
5
+ name: string;
6
+ stateCode: string | null;
7
+ } & IkasBaseModel;
@@ -0,0 +1,5 @@
1
+ export type IkasStockLocationAddressCity = {
2
+ code: string | null;
3
+ id: string | null;
4
+ name: string;
5
+ };
@@ -0,0 +1,5 @@
1
+ export type IkasStockLocationAddressCountry = {
2
+ code: string | null;
3
+ id: string | null;
4
+ name: string;
5
+ };
@@ -0,0 +1,5 @@
1
+ export type IkasStockLocationAddressDistrict = {
2
+ code: string | null;
3
+ id: string | null;
4
+ name: string | null;
5
+ };