@ikas/storefront-models 4.0.0-alpha.49 → 4.0.0-alpha.50

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 (407) hide show
  1. package/package.json +5 -5
  2. package/{build/index.d.ts → src/index.ts} +229 -170
  3. package/src/models/base/index.ts +6 -0
  4. package/src/models/base/init.ts +14 -0
  5. package/{build/models/blog/category/index.d.ts → src/models/blog/category/index.ts} +11 -9
  6. package/src/models/blog/category/init.ts +33 -0
  7. package/{build/models/blog/tag/index.d.ts → src/models/blog/content/index.ts} +5 -4
  8. package/src/models/blog/index.ts +26 -0
  9. package/src/models/blog/init.ts +7 -0
  10. package/src/models/blog/meta-data/index.ts +16 -0
  11. package/src/models/blog/tag/index.ts +5 -0
  12. package/src/models/blog/writer/index.ts +4 -0
  13. package/src/models/brand/index.ts +26 -0
  14. package/src/models/brand/init.ts +27 -0
  15. package/src/models/brand/translation/index.ts +5 -0
  16. package/src/models/campaign-offer/index.ts +43 -0
  17. package/src/models/campaign-offer/product/index.ts +27 -0
  18. package/src/models/cart/available-shipping-method/index.ts +13 -0
  19. package/src/models/cart/campaign-offer/index.ts +24 -0
  20. package/src/models/cart/index.ts +12 -0
  21. package/src/models/category/index.ts +30 -0
  22. package/src/models/category/init.ts +37 -0
  23. package/src/models/category/path-item/index.ts +11 -0
  24. package/src/models/category/path-item/init.ts +25 -0
  25. package/src/models/category/translations/index.ts +5 -0
  26. package/src/models/checkout/index.ts +3 -0
  27. package/src/models/checkout-settings/index.ts +24 -0
  28. package/src/models/checkout-settings/option/index.ts +4 -0
  29. package/src/models/checkout-settings/price/index.ts +5 -0
  30. package/src/models/city/index.ts +11 -0
  31. package/src/models/contact-form/index.ts +7 -0
  32. package/src/models/country/index.ts +17 -0
  33. package/src/models/country/init.ts +16 -0
  34. package/src/models/country/location-translations/index.ts +5 -0
  35. package/src/models/customer/address/city/index.ts +5 -0
  36. package/src/models/customer/address/country/index.ts +7 -0
  37. package/src/models/customer/address/district/index.ts +5 -0
  38. package/src/models/customer/address/index.ts +27 -0
  39. package/src/models/customer/address/state/index.ts +5 -0
  40. package/src/models/customer/attribute/index.ts +22 -0
  41. package/src/models/customer/attribute/init.ts +34 -0
  42. package/src/models/customer/attribute/option/index.ts +7 -0
  43. package/src/models/customer/attribute/sales-channel/index.ts +18 -0
  44. package/src/models/customer/attribute/translation/index.ts +8 -0
  45. package/src/models/customer/attribute/translation/option/index.ts +4 -0
  46. package/src/models/customer/attribute/value/index.ts +12 -0
  47. package/src/models/customer/index.ts +48 -0
  48. package/src/models/customer/review/index.ts +28 -0
  49. package/src/models/customer/review/init.ts +7 -0
  50. package/src/models/customer/review/settings/index.ts +4 -0
  51. package/src/models/customer/review/summary/index.ts +9 -0
  52. package/src/models/customer/review/summary/star/index.ts +4 -0
  53. package/src/models/district/index.ts +11 -0
  54. package/src/models/favorite-product/index.ts +6 -0
  55. package/src/models/filter-category/index.ts +9 -0
  56. package/src/models/html-meta-data/index.ts +28 -0
  57. package/src/models/html-meta-data/init.ts +27 -0
  58. package/src/models/html-meta-data/translations/index.ts +5 -0
  59. package/src/models/image/index.ts +4 -0
  60. package/src/models/last-viewed-product/index.ts +4 -0
  61. package/src/models/merchant-settings/address/city/index.ts +5 -0
  62. package/src/models/merchant-settings/address/country/index.ts +7 -0
  63. package/src/models/merchant-settings/address/district/index.ts +5 -0
  64. package/src/models/merchant-settings/address/index.ts +22 -0
  65. package/src/models/merchant-settings/address/state/index.ts +5 -0
  66. package/src/models/merchant-settings/address/type/index.ts +4 -0
  67. package/src/models/merchant-settings/index.ts +28 -0
  68. package/src/models/merchant-settings/init.ts +7 -0
  69. package/src/models/order/address/city/index.ts +5 -0
  70. package/src/models/order/address/country/index.ts +7 -0
  71. package/src/models/order/address/district/index.ts +5 -0
  72. package/src/models/order/address/index.ts +25 -0
  73. package/src/models/order/address/state/index.ts +5 -0
  74. package/src/models/order/adjustment/applied-order-line/index.ts +6 -0
  75. package/src/models/order/adjustment/index.ts +24 -0
  76. package/src/models/order/customer/index.ts +9 -0
  77. package/src/models/order/gift-line/index.ts +4 -0
  78. package/src/models/order/index.ts +92 -0
  79. package/src/models/order/invoice/index.ts +15 -0
  80. package/src/models/order/line-item/base-unit/index.ts +22 -0
  81. package/src/models/order/line-item/base-unit/unit-type/index.ts +4 -0
  82. package/src/models/order/line-item/discount/index.ts +10 -0
  83. package/src/models/order/line-item/index.ts +37 -0
  84. package/src/models/order/line-item/option/index.ts +10 -0
  85. package/src/models/order/line-item/option/value/index.ts +5 -0
  86. package/src/models/order/line-item/variant/brand/index.ts +4 -0
  87. package/src/models/order/line-item/variant/category/index.ts +10 -0
  88. package/src/models/order/line-item/variant/index.ts +30 -0
  89. package/src/models/order/line-item/variant/price/index.ts +8 -0
  90. package/src/models/order/line-item/variant/unit/index.ts +6 -0
  91. package/src/models/order/line-item/variant/value/index.ts +7 -0
  92. package/src/models/order/package/index.ts +28 -0
  93. package/src/models/order/package/tracking-info/index.ts +7 -0
  94. package/src/models/order/payment-method/index.ts +9 -0
  95. package/src/models/order/refund/index.ts +6 -0
  96. package/src/models/order/refund/line-item/index.ts +4 -0
  97. package/src/models/order/refund/settings/index.ts +5 -0
  98. package/src/models/order/shipping-line/index.ts +12 -0
  99. package/src/models/order/tax-line/index.ts +4 -0
  100. package/src/models/order/transaction/error/index.ts +5 -0
  101. package/src/models/order/transaction/index.ts +37 -0
  102. package/src/models/order/transaction/payment-method-detail/index.ts +25 -0
  103. package/src/models/order/transaction/payment-method-detail/installment-price/index.ts +7 -0
  104. package/src/models/payment-gateway/additional-price/index.ts +16 -0
  105. package/src/models/payment-gateway/index.ts +47 -0
  106. package/src/models/payment-gateway/init.ts +26 -0
  107. package/src/models/payment-gateway/settings/index.ts +12 -0
  108. package/src/models/payment-gateway/translation/index.ts +5 -0
  109. package/src/models/product/attribute/index.ts +26 -0
  110. package/src/models/product/attribute/init.ts +34 -0
  111. package/src/models/product/attribute/option/index.ts +4 -0
  112. package/src/models/product/attribute/table-cell/index.ts +4 -0
  113. package/src/models/product/attribute/table-template/index.ts +6 -0
  114. package/src/models/product/attribute/translation/index.ts +11 -0
  115. package/src/models/product/attribute-value/index.ts +26 -0
  116. package/src/models/product/attribute-value/init.ts +7 -0
  117. package/src/models/product/back-in-stock-settings/index.ts +3 -0
  118. package/src/models/product/base-unit/index.ts +12 -0
  119. package/src/models/product/campaign/data/index.ts +43 -0
  120. package/src/models/product/campaign/filter/index.ts +12 -0
  121. package/src/models/product/campaign/index.ts +6 -0
  122. package/src/models/product/campaign/product-buyx-then-gety/index.ts +19 -0
  123. package/src/models/product/campaign/product-campaign-date-range-field/index.ts +4 -0
  124. package/src/models/product/campaign/product-fixed-discount/index.ts +13 -0
  125. package/src/models/product/filter/index.ts +98 -0
  126. package/src/models/product/image/index.ts +10 -0
  127. package/src/models/product/image/init.ts +7 -0
  128. package/src/models/product/index.ts +45 -0
  129. package/src/models/product/init.ts +16 -0
  130. package/src/models/product/option-set/index.ts +25 -0
  131. package/src/models/product/option-set/init.ts +77 -0
  132. package/src/models/product/option-set/option/index.ts +81 -0
  133. package/src/models/product/option-set/option/init.ts +13 -0
  134. package/src/models/product/tag/index.ts +4 -0
  135. package/src/models/product/variant/index.ts +22 -0
  136. package/src/models/product/variant/init.ts +10 -0
  137. package/src/models/product/variant/price/index.ts +9 -0
  138. package/src/models/product/variant/unit/index.ts +6 -0
  139. package/src/models/product/variant-type/index.ts +7 -0
  140. package/src/models/product/variant-type/init.ts +15 -0
  141. package/src/models/product-option-file/index.ts +5 -0
  142. package/src/models/raffle/index.ts +77 -0
  143. package/src/models/raffle/init.ts +6 -0
  144. package/src/models/sales-channel/index.ts +17 -0
  145. package/src/models/state/index.ts +7 -0
  146. package/src/models/stock-location/address/city/index.ts +5 -0
  147. package/src/models/stock-location/address/country/index.ts +5 -0
  148. package/src/models/stock-location/address/district/index.ts +5 -0
  149. package/src/models/stock-location/address/index.ts +14 -0
  150. package/src/models/stock-location/address/state/index.ts +5 -0
  151. package/src/models/stock-location/available/index.ts +9 -0
  152. package/src/models/stock-location/index.ts +26 -0
  153. package/src/models/storefront/domain/index.ts +7 -0
  154. package/src/models/storefront/index.ts +31 -0
  155. package/src/models/storefront/localization/index.tsx +6 -0
  156. package/src/models/storefront/routing/dynamic-currency/index.ts +4 -0
  157. package/src/models/storefront/routing/index.tsx +13 -0
  158. package/src/models/storefront/theme/index.tsx +13 -0
  159. package/src/models/storefront/theme-localization/index.tsx +13 -0
  160. package/src/models/theme-json/component/index.ts +19 -0
  161. package/src/models/theme-json/component/prop/index.ts +65 -0
  162. package/src/models/theme-json/custom-data/index.ts +46 -0
  163. package/src/models/theme-json/index.ts +12 -0
  164. package/src/models/theme-json/page/component/index.ts +11 -0
  165. package/src/models/theme-json/page/index.ts +46 -0
  166. package/src/models/theme-json/settings/color/index.ts +13 -0
  167. package/src/models/theme-json/settings/favicon/index.ts +3 -0
  168. package/src/models/theme-json/settings/font-family/index.ts +4 -0
  169. package/src/models/theme-json/settings/index.ts +16 -0
  170. package/src/models/variant-type/index.ts +25 -0
  171. package/src/models/variant-type/init.ts +37 -0
  172. package/src/models/variant-type/variant-value/index.ts +12 -0
  173. package/src/models/variant-type/variant-value/init.ts +5 -0
  174. package/build/_virtual/_tslib.js +0 -1
  175. package/build/index.js +0 -1
  176. package/build/models/base/index.d.ts +0 -6
  177. package/build/models/base/init.d.ts +0 -6
  178. package/build/models/base/init.js +0 -1
  179. package/build/models/blog/category/init.d.ts +0 -11
  180. package/build/models/blog/category/init.js +0 -1
  181. package/build/models/blog/content/index.d.ts +0 -4
  182. package/build/models/blog/index.d.ts +0 -24
  183. package/build/models/blog/init.d.ts +0 -2
  184. package/build/models/blog/init.js +0 -1
  185. package/build/models/blog/meta-data/index.d.ts +0 -14
  186. package/build/models/blog/meta-data/index.js +0 -1
  187. package/build/models/blog/writer/index.d.ts +0 -4
  188. package/build/models/brand/index.d.ts +0 -23
  189. package/build/models/brand/index.js +0 -1
  190. package/build/models/brand/init.d.ts +0 -2
  191. package/build/models/brand/init.js +0 -1
  192. package/build/models/brand/translation/index.d.ts +0 -5
  193. package/build/models/campaign-offer/index.d.ts +0 -37
  194. package/build/models/campaign-offer/index.js +0 -1
  195. package/build/models/campaign-offer/product/index.d.ts +0 -24
  196. package/build/models/campaign-offer/product/index.js +0 -1
  197. package/build/models/cart/available-shipping-method/index.d.ts +0 -12
  198. package/build/models/cart/available-shipping-method/index.js +0 -1
  199. package/build/models/cart/campaign-offer/index.d.ts +0 -19
  200. package/build/models/cart/campaign-offer/index.js +0 -1
  201. package/build/models/cart/index.d.ts +0 -11
  202. package/build/models/category/index.d.ts +0 -27
  203. package/build/models/category/index.js +0 -1
  204. package/build/models/category/init.d.ts +0 -2
  205. package/build/models/category/init.js +0 -1
  206. package/build/models/category/path-item/index.d.ts +0 -10
  207. package/build/models/category/path-item/init.d.ts +0 -2
  208. package/build/models/category/path-item/init.js +0 -1
  209. package/build/models/category/translations/index.d.ts +0 -5
  210. package/build/models/checkout/index.d.ts +0 -2
  211. package/build/models/checkout-settings/index.d.ts +0 -22
  212. package/build/models/checkout-settings/index.js +0 -1
  213. package/build/models/checkout-settings/option/index.d.ts +0 -4
  214. package/build/models/checkout-settings/price/index.d.ts +0 -5
  215. package/build/models/city/index.d.ts +0 -10
  216. package/build/models/contact-form/index.d.ts +0 -7
  217. package/build/models/country/index.d.ts +0 -16
  218. package/build/models/country/init.d.ts +0 -2
  219. package/build/models/country/init.js +0 -1
  220. package/build/models/country/location-translations/index.d.ts +0 -5
  221. package/build/models/customer/address/city/index.d.ts +0 -5
  222. package/build/models/customer/address/country/index.d.ts +0 -7
  223. package/build/models/customer/address/district/index.d.ts +0 -5
  224. package/build/models/customer/address/index.d.ts +0 -25
  225. package/build/models/customer/address/state/index.d.ts +0 -5
  226. package/build/models/customer/attribute/index.d.ts +0 -20
  227. package/build/models/customer/attribute/index.js +0 -1
  228. package/build/models/customer/attribute/init.d.ts +0 -2
  229. package/build/models/customer/attribute/init.js +0 -1
  230. package/build/models/customer/attribute/option/index.d.ts +0 -7
  231. package/build/models/customer/attribute/sales-channel/index.d.ts +0 -16
  232. package/build/models/customer/attribute/sales-channel/index.js +0 -1
  233. package/build/models/customer/attribute/translation/index.d.ts +0 -7
  234. package/build/models/customer/attribute/translation/option/index.d.ts +0 -4
  235. package/build/models/customer/attribute/value/index.d.ts +0 -9
  236. package/build/models/customer/index.d.ts +0 -43
  237. package/build/models/customer/index.js +0 -1
  238. package/build/models/customer/review/index.d.ts +0 -24
  239. package/build/models/customer/review/index.js +0 -1
  240. package/build/models/customer/review/init.d.ts +0 -2
  241. package/build/models/customer/review/init.js +0 -1
  242. package/build/models/customer/review/settings/index.d.ts +0 -4
  243. package/build/models/customer/review/summary/index.d.ts +0 -8
  244. package/build/models/customer/review/summary/star/index.d.ts +0 -4
  245. package/build/models/district/index.d.ts +0 -10
  246. package/build/models/favorite-product/index.d.ts +0 -5
  247. package/build/models/filter-category/index.d.ts +0 -8
  248. package/build/models/html-meta-data/index.d.ts +0 -25
  249. package/build/models/html-meta-data/index.js +0 -1
  250. package/build/models/html-meta-data/init.d.ts +0 -3
  251. package/build/models/html-meta-data/init.js +0 -1
  252. package/build/models/html-meta-data/translations/index.d.ts +0 -5
  253. package/build/models/image/index.d.ts +0 -4
  254. package/build/models/last-viewed-product/index.d.ts +0 -4
  255. package/build/models/merchant-settings/address/city/index.d.ts +0 -5
  256. package/build/models/merchant-settings/address/country/index.d.ts +0 -7
  257. package/build/models/merchant-settings/address/district/index.d.ts +0 -5
  258. package/build/models/merchant-settings/address/index.d.ts +0 -21
  259. package/build/models/merchant-settings/address/state/index.d.ts +0 -5
  260. package/build/models/merchant-settings/address/type/index.d.ts +0 -4
  261. package/build/models/merchant-settings/address/type/index.js +0 -1
  262. package/build/models/merchant-settings/index.d.ts +0 -24
  263. package/build/models/merchant-settings/index.js +0 -1
  264. package/build/models/merchant-settings/init.d.ts +0 -2
  265. package/build/models/merchant-settings/init.js +0 -1
  266. package/build/models/order/address/city/index.d.ts +0 -5
  267. package/build/models/order/address/country/index.d.ts +0 -7
  268. package/build/models/order/address/district/index.d.ts +0 -5
  269. package/build/models/order/address/index.d.ts +0 -22
  270. package/build/models/order/address/state/index.d.ts +0 -5
  271. package/build/models/order/adjustment/applied-order-line/index.d.ts +0 -6
  272. package/build/models/order/adjustment/index.d.ts +0 -21
  273. package/build/models/order/adjustment/index.js +0 -1
  274. package/build/models/order/customer/index.d.ts +0 -9
  275. package/build/models/order/gift-line/index.d.ts +0 -4
  276. package/build/models/order/index.d.ts +0 -86
  277. package/build/models/order/index.js +0 -1
  278. package/build/models/order/invoice/index.d.ts +0 -14
  279. package/build/models/order/invoice/index.js +0 -1
  280. package/build/models/order/line-item/base-unit/index.d.ts +0 -20
  281. package/build/models/order/line-item/base-unit/index.js +0 -1
  282. package/build/models/order/line-item/base-unit/unit-type/index.d.ts +0 -4
  283. package/build/models/order/line-item/discount/index.d.ts +0 -9
  284. package/build/models/order/line-item/index.d.ts +0 -35
  285. package/build/models/order/line-item/index.js +0 -1
  286. package/build/models/order/line-item/option/index.d.ts +0 -9
  287. package/build/models/order/line-item/option/value/index.d.ts +0 -5
  288. package/build/models/order/line-item/variant/brand/index.d.ts +0 -4
  289. package/build/models/order/line-item/variant/category/index.d.ts +0 -9
  290. package/build/models/order/line-item/variant/index.d.ts +0 -27
  291. package/build/models/order/line-item/variant/price/index.d.ts +0 -8
  292. package/build/models/order/line-item/variant/unit/index.d.ts +0 -5
  293. package/build/models/order/line-item/variant/value/index.d.ts +0 -7
  294. package/build/models/order/package/index.d.ts +0 -26
  295. package/build/models/order/package/index.js +0 -1
  296. package/build/models/order/package/tracking-info/index.d.ts +0 -7
  297. package/build/models/order/payment-method/index.d.ts +0 -8
  298. package/build/models/order/refund/index.d.ts +0 -5
  299. package/build/models/order/refund/line-item/index.d.ts +0 -4
  300. package/build/models/order/refund/settings/index.d.ts +0 -5
  301. package/build/models/order/shipping-line/index.d.ts +0 -11
  302. package/build/models/order/tax-line/index.d.ts +0 -4
  303. package/build/models/order/transaction/error/index.d.ts +0 -5
  304. package/build/models/order/transaction/index.d.ts +0 -34
  305. package/build/models/order/transaction/index.js +0 -1
  306. package/build/models/order/transaction/payment-method-detail/index.d.ts +0 -22
  307. package/build/models/order/transaction/payment-method-detail/index.js +0 -1
  308. package/build/models/order/transaction/payment-method-detail/installment-price/index.d.ts +0 -7
  309. package/build/models/payment-gateway/additional-price/index.d.ts +0 -14
  310. package/build/models/payment-gateway/additional-price/index.js +0 -1
  311. package/build/models/payment-gateway/index.d.ts +0 -42
  312. package/build/models/payment-gateway/index.js +0 -1
  313. package/build/models/payment-gateway/init.d.ts +0 -2
  314. package/build/models/payment-gateway/init.js +0 -1
  315. package/build/models/payment-gateway/settings/index.d.ts +0 -11
  316. package/build/models/payment-gateway/settings/index.js +0 -1
  317. package/build/models/payment-gateway/translation/index.d.ts +0 -5
  318. package/build/models/product/attribute/index.d.ts +0 -24
  319. package/build/models/product/attribute/index.js +0 -1
  320. package/build/models/product/attribute/init.d.ts +0 -2
  321. package/build/models/product/attribute/init.js +0 -1
  322. package/build/models/product/attribute/option/index.d.ts +0 -4
  323. package/build/models/product/attribute/table-cell/index.d.ts +0 -4
  324. package/build/models/product/attribute/table-template/index.d.ts +0 -5
  325. package/build/models/product/attribute/translation/index.d.ts +0 -10
  326. package/build/models/product/attribute-value/index.d.ts +0 -21
  327. package/build/models/product/attribute-value/init.d.ts +0 -2
  328. package/build/models/product/attribute-value/init.js +0 -1
  329. package/build/models/product/back-in-stock-settings/index.d.ts +0 -3
  330. package/build/models/product/base-unit/index.d.ts +0 -10
  331. package/build/models/product/campaign/data/index.d.ts +0 -39
  332. package/build/models/product/campaign/data/index.js +0 -1
  333. package/build/models/product/campaign/filter/index.d.ts +0 -11
  334. package/build/models/product/campaign/filter/index.js +0 -1
  335. package/build/models/product/campaign/index.d.ts +0 -5
  336. package/build/models/product/campaign/product-buyx-then-gety/index.d.ts +0 -16
  337. package/build/models/product/campaign/product-campaign-date-range-field/index.d.ts +0 -4
  338. package/build/models/product/campaign/product-fixed-discount/index.d.ts +0 -11
  339. package/build/models/product/filter/index.d.ts +0 -83
  340. package/build/models/product/filter/index.js +0 -1
  341. package/build/models/product/image/index.d.ts +0 -8
  342. package/build/models/product/image/init.d.ts +0 -2
  343. package/build/models/product/image/init.js +0 -1
  344. package/build/models/product/index.d.ts +0 -41
  345. package/build/models/product/index.js +0 -1
  346. package/build/models/product/init.d.ts +0 -2
  347. package/build/models/product/init.js +0 -1
  348. package/build/models/product/option-set/index.d.ts +0 -21
  349. package/build/models/product/option-set/init.d.ts +0 -6
  350. package/build/models/product/option-set/init.js +0 -1
  351. package/build/models/product/option-set/option/index.d.ts +0 -70
  352. package/build/models/product/option-set/option/index.js +0 -1
  353. package/build/models/product/option-set/option/init.d.ts +0 -2
  354. package/build/models/product/option-set/option/init.js +0 -1
  355. package/build/models/product/tag/index.d.ts +0 -4
  356. package/build/models/product/variant/index.d.ts +0 -21
  357. package/build/models/product/variant/init.d.ts +0 -2
  358. package/build/models/product/variant/init.js +0 -1
  359. package/build/models/product/variant/price/index.d.ts +0 -9
  360. package/build/models/product/variant/unit/index.d.ts +0 -5
  361. package/build/models/product/variant-type/index.d.ts +0 -6
  362. package/build/models/product/variant-type/init.d.ts +0 -2
  363. package/build/models/product/variant-type/init.js +0 -1
  364. package/build/models/product-option-file/index.d.ts +0 -5
  365. package/build/models/raffle/index.d.ts +0 -68
  366. package/build/models/raffle/index.js +0 -1
  367. package/build/models/raffle/init.d.ts +0 -2
  368. package/build/models/raffle/init.js +0 -1
  369. package/build/models/sales-channel/index.d.ts +0 -15
  370. package/build/models/state/index.d.ts +0 -6
  371. package/build/models/stock-location/address/city/index.d.ts +0 -5
  372. package/build/models/stock-location/address/country/index.d.ts +0 -5
  373. package/build/models/stock-location/address/district/index.d.ts +0 -5
  374. package/build/models/stock-location/address/index.d.ts +0 -13
  375. package/build/models/stock-location/address/state/index.d.ts +0 -5
  376. package/build/models/stock-location/available/index.d.ts +0 -8
  377. package/build/models/stock-location/index.d.ts +0 -23
  378. package/build/models/stock-location/index.js +0 -1
  379. package/build/models/storefront/domain/index.d.ts +0 -7
  380. package/build/models/storefront/index.d.ts +0 -27
  381. package/build/models/storefront/index.js +0 -1
  382. package/build/models/storefront/localization/index.d.ts +0 -6
  383. package/build/models/storefront/routing/dynamic-currency/index.d.ts +0 -4
  384. package/build/models/storefront/routing/index.d.ts +0 -12
  385. package/build/models/storefront/theme/index.d.ts +0 -12
  386. package/build/models/storefront/theme/index.js +0 -1
  387. package/build/models/storefront/theme-localization/index.d.ts +0 -11
  388. package/build/models/theme-json/component/index.d.ts +0 -17
  389. package/build/models/theme-json/component/prop/index.d.ts +0 -60
  390. package/build/models/theme-json/component/prop/index.js +0 -1
  391. package/build/models/theme-json/custom-data/index.d.ts +0 -37
  392. package/build/models/theme-json/index.d.ts +0 -11
  393. package/build/models/theme-json/page/component/index.d.ts +0 -5
  394. package/build/models/theme-json/page/index.d.ts +0 -43
  395. package/build/models/theme-json/page/index.js +0 -1
  396. package/build/models/theme-json/settings/color/index.d.ts +0 -12
  397. package/build/models/theme-json/settings/favicon/index.d.ts +0 -3
  398. package/build/models/theme-json/settings/font-family/index.d.ts +0 -4
  399. package/build/models/theme-json/settings/index.d.ts +0 -14
  400. package/build/models/theme-json/settings/index.js +0 -1
  401. package/build/models/variant-type/index.d.ts +0 -21
  402. package/build/models/variant-type/index.js +0 -1
  403. package/build/models/variant-type/init.d.ts +0 -2
  404. package/build/models/variant-type/init.js +0 -1
  405. package/build/models/variant-type/variant-value/index.d.ts +0 -9
  406. package/build/models/variant-type/variant-value/init.d.ts +0 -2
  407. package/build/models/variant-type/variant-value/init.js +0 -1
@@ -0,0 +1,27 @@
1
+ import { IkasProductBrandTranslation } from "./translation";
2
+ import { initIkasHTMLMetaData } from "../html-meta-data/init";
3
+ import { IkasBrand } from ".";
4
+
5
+ export function initIkasBrand(brand: IkasBrand, locale: string | null) {
6
+ brand.image = brand.imageId ? { id: brand.imageId, isVideo: false } : null;
7
+ brand.metaData && initIkasHTMLMetaData(brand.metaData, locale);
8
+
9
+ if (brand.translations && locale) {
10
+ setTranslations(brand, brand.translations, locale);
11
+ delete brand.translations;
12
+ }
13
+ }
14
+
15
+ function setTranslations(
16
+ brand: IkasBrand,
17
+ translations: IkasProductBrandTranslation[],
18
+ locale: string
19
+ ) {
20
+ if (translations && translations.some((t) => t.locale === locale)) {
21
+ const localeTranslations = translations.find((t) => t.locale === locale);
22
+
23
+ if (localeTranslations?.name) brand.name = localeTranslations.name;
24
+ if (localeTranslations?.description)
25
+ brand.description = localeTranslations.description;
26
+ }
27
+ }
@@ -0,0 +1,5 @@
1
+ export type IkasProductBrandTranslation = {
2
+ description: string | null;
3
+ locale: string;
4
+ name: string | null;
5
+ };
@@ -0,0 +1,43 @@
1
+ import { IkasCampaignOfferProduct } from "./product";
2
+
3
+ export type IkasCampaignOffer = {
4
+ availableSalesChannelIds: string[];
5
+ endDate: any | null;
6
+ followUpActionType: IkasCampaignOfferFollowUpActionType;
7
+ minimumRequiredCartAmount: number | null;
8
+ name: string;
9
+ offers: IkasCampaignOfferProduct[];
10
+ startDate: any | null;
11
+ targetPageTypes: IkasCampaignOfferTargetPageType[];
12
+ triggerSettings: IkasCampaignOfferTriggerSettings;
13
+ type: IkasCampaignOfferType;
14
+ };
15
+
16
+ export type IkasCampaignOfferTriggerSettings = {
17
+ filterType: IkasCampaignOfferTriggerFilterType;
18
+ valueList: string[];
19
+ };
20
+
21
+ export enum IkasCampaignOfferFollowUpActionType {
22
+ DO_NOTHING = "DO_NOTHING",
23
+ OPEN_CART = "OPEN_CART",
24
+ OPEN_CHECKOUT = "OPEN_CHECKOUT",
25
+ }
26
+
27
+ export enum IkasCampaignOfferTargetPageType {
28
+ CHECKOUT = "CHECKOUT",
29
+ POST_CHECKOUT = "POST_CHECKOUT",
30
+ }
31
+
32
+ export enum IkasCampaignOfferType {
33
+ CROSS_SELL = "CROSS_SELL",
34
+ UPSELL = "UPSELL",
35
+ }
36
+
37
+ export enum IkasCampaignOfferTriggerFilterType {
38
+ ALL_PRODUCTS = "ALL_PRODUCTS",
39
+ CATEGORY = "CATEGORY",
40
+ PRODUCT = "PRODUCT",
41
+ PRODUCT_TAG = "PRODUCT_TAG",
42
+ VARIANT = "VARIANT",
43
+ }
@@ -0,0 +1,27 @@
1
+ import { IkasAmountType } from "../../../models/order/adjustment";
2
+
3
+ export type IkasCampaignOfferProduct = {
4
+ countdownMinutes: number | null;
5
+ description: string | null;
6
+ discountAmount: number | null;
7
+ discountType: IkasAmountType | null;
8
+ excludedVariantIdList: string[] | null;
9
+ id: string;
10
+ order: number;
11
+ productId: string;
12
+ showCriteria: IkasCampaignOfferProductShowCriteria | null;
13
+ skipOfferIfProductExistsInCart: boolean | null;
14
+ title: string;
15
+ translations: IkasCampaignOfferProductTranslation[] | null;
16
+ };
17
+
18
+ export type IkasCampaignOfferProductTranslation = {
19
+ description: string | null;
20
+ locale: string;
21
+ title: string;
22
+ };
23
+
24
+ export enum IkasCampaignOfferProductShowCriteria {
25
+ PREVIOUS_ACCEPTED = "PREVIOUS_ACCEPTED",
26
+ PREVIOUS_REJECTED = "PREVIOUS_REJECTED",
27
+ }
@@ -0,0 +1,13 @@
1
+ export type IkasAvailableShippingMethod = {
2
+ price: number;
3
+ rateName: string;
4
+ shippingMethod: IkasShippingMethod;
5
+ shippingSettingsId: string;
6
+ shippingZoneRateId: string;
7
+ };
8
+
9
+ export enum IkasShippingMethod {
10
+ CLICK_AND_COLLECT = "CLICK_AND_COLLECT",
11
+ NO_SHIPMENT = "NO_SHIPMENT",
12
+ SHIPMENT = "SHIPMENT",
13
+ }
@@ -0,0 +1,24 @@
1
+ import { IkasBaseModel } from "../../base";
2
+ import {
3
+ IkasCampaignOffer,
4
+ IkasCampaignOfferTargetPageType,
5
+ } from "../../campaign-offer";
6
+
7
+ export type IkasCartCampaignOffer = {
8
+ appliedOrderLineId: string | null;
9
+ campaignOfferId: string;
10
+ campaignOffer: IkasCampaignOffer | null;
11
+ campaignOfferProductId: string | null;
12
+ offerEndDate: number | null;
13
+ offerStartDate: number;
14
+ status: IkasCartCampaignOfferStatus;
15
+ targetPageTypes: IkasCampaignOfferTargetPageType[];
16
+ triggerSourceOrderLineId: string;
17
+ } & IkasBaseModel;
18
+
19
+ export enum IkasCartCampaignOfferStatus {
20
+ ACCEPTED = "ACCEPTED",
21
+ REJECTED = "REJECTED",
22
+ REMOVED = "REMOVED",
23
+ WAITING_FOR_ACTION = "WAITING_FOR_ACTION",
24
+ }
@@ -0,0 +1,12 @@
1
+ import { IkasCartCampaignOffer } from "./campaign-offer";
2
+ import { IkasAvailableShippingMethod } from "./available-shipping-method";
3
+ import { IkasOrder } from "../order";
4
+
5
+ export type IkasCart = {
6
+ availableShippingMethods: IkasAvailableShippingMethod[] | null;
7
+ campaignOffers: IkasCartCampaignOffer[] | null;
8
+ couponCode: string | null;
9
+ shippingSettingsId: string | null;
10
+ shippingZoneRateId: string | null;
11
+ stockLocationId: string | null;
12
+ } & IkasOrder;
@@ -0,0 +1,30 @@
1
+ import { IkasImage } from "../image";
2
+ import { IkasHTMLMetaData } from "../html-meta-data";
3
+ import { IkasBaseModel } from "../base";
4
+ import { IkasCategoryPathItem } from "./path-item";
5
+ import { IkasCategoryTranslation } from "./translations";
6
+
7
+ export type IkasCategory = {
8
+ categoryPath: string[] | null;
9
+ description: string | null;
10
+ imageId: string | null;
11
+ name: string;
12
+ parentId: string | null;
13
+ metaData: IkasHTMLMetaData | null;
14
+ categoryPathItems: IkasCategoryPathItem[];
15
+ orderType: IkasCategoryProductsOrderType | null;
16
+
17
+ image?: IkasImage | null;
18
+ translations?: IkasCategoryTranslation[] | null;
19
+ } & IkasBaseModel;
20
+
21
+ export enum IkasCategoryProductsOrderType {
22
+ BEST_SELLER = "BEST_SELLER",
23
+ HIGHEST_DISCOUNT_RATIO = "HIGHEST_DISCOUNT_RATIO",
24
+ HIGHEST_PRICE = "HIGHEST_PRICE",
25
+ LOWEST_DISCOUNT_RATIO = "LOWEST_DISCOUNT_RATIO",
26
+ LOWEST_PRICE = "LOWEST_PRICE",
27
+ MANUALLY = "MANUALLY",
28
+ NEWEST = "NEWEST",
29
+ OLDEST = "OLDEST",
30
+ }
@@ -0,0 +1,37 @@
1
+ import { IkasCategory } from ".";
2
+ import { IkasCategoryTranslation } from "./translations";
3
+ import { initIkasHTMLMetaData } from "../html-meta-data/init";
4
+ import { initIkasCategoryPathItem } from "./path-item/init";
5
+
6
+ export function initIkasCategory(
7
+ category: IkasCategory,
8
+ locale: string | null
9
+ ) {
10
+ category.image = category.imageId
11
+ ? { id: category.imageId, isVideo: false }
12
+ : undefined;
13
+
14
+ category.metaData && initIkasHTMLMetaData(category.metaData, locale);
15
+
16
+ if (category.translations && locale) {
17
+ setTranslations(category, category.translations, locale);
18
+ delete category.translations;
19
+ }
20
+ category.categoryPathItems.map((cPI) =>
21
+ initIkasCategoryPathItem(cPI, locale)
22
+ );
23
+ }
24
+
25
+ function setTranslations(
26
+ category: IkasCategory,
27
+ translations: IkasCategoryTranslation[],
28
+ locale: string
29
+ ) {
30
+ if (translations && translations.some((t) => t.locale === locale)) {
31
+ const localeTranslations = translations.find((t) => t.locale === locale);
32
+
33
+ if (localeTranslations?.name) category.name = localeTranslations.name;
34
+ if (localeTranslations?.description)
35
+ category.description = localeTranslations.description;
36
+ }
37
+ }
@@ -0,0 +1,11 @@
1
+ import { IkasHTMLMetaData } from "../../html-meta-data";
2
+ import { IkasBaseModel } from "../../base";
3
+ import { IkasCategoryTranslation } from "../translations";
4
+
5
+ export type IkasCategoryPathItem = {
6
+ metaData: IkasHTMLMetaData | null;
7
+ description: string | null;
8
+ imageId: string | null;
9
+ name: string;
10
+ translations?: IkasCategoryTranslation[] | null;
11
+ } & IkasBaseModel;
@@ -0,0 +1,25 @@
1
+ import { IkasCategoryPathItem } from ".";
2
+ import { IkasCategoryTranslation } from "../translations";
3
+
4
+ export function initIkasCategoryPathItem(
5
+ categoryPathItem: IkasCategoryPathItem,
6
+ locale: string | null
7
+ ) {
8
+ if (categoryPathItem.translations && locale) {
9
+ setTranslations(categoryPathItem, categoryPathItem.translations, locale);
10
+ delete categoryPathItem.translations;
11
+ }
12
+ }
13
+
14
+ function setTranslations(
15
+ categoryPathItem: IkasCategoryPathItem,
16
+ translations: IkasCategoryTranslation[],
17
+ locale: string
18
+ ) {
19
+ if (translations && translations.some((t) => t.locale === locale)) {
20
+ const localeTranslations = translations.find((t) => t.locale === locale);
21
+
22
+ if (localeTranslations?.name)
23
+ categoryPathItem.name = localeTranslations.name;
24
+ }
25
+ }
@@ -0,0 +1,5 @@
1
+ export type IkasCategoryTranslation = {
2
+ description: string | null;
3
+ locale: string;
4
+ name: string | null;
5
+ };
@@ -0,0 +1,3 @@
1
+ import { IkasCart } from "../cart";
2
+
3
+ export type IkasCheckout = {} & IkasCart;
@@ -0,0 +1,24 @@
1
+ import { IkasBaseModel } from "../base";
2
+ import { IkasCheckoutOption } from "./option";
3
+ import { IkasCheckoutSettingsPrice } from "./price";
4
+
5
+ export type IkasCheckoutSettings = {
6
+ giftPackagePriceList: IkasCheckoutSettingsPrice[] | null;
7
+ identityNumberRequirement: IkasCheckoutRequirement;
8
+ isAccountRequired: boolean;
9
+ isGiftPackageEnabled: boolean | null;
10
+ isShowPostalCode: boolean | null;
11
+ isTermsAndConditionsDefaultChecked: boolean | null;
12
+ options: IkasCheckoutOption[] | null;
13
+ phoneRequirement: IkasCheckoutRequirement;
14
+ postalCodeRequirement: IkasCheckoutRequirement | null;
15
+ showCheckoutNote: boolean | null;
16
+ showTermsAndConditionsCheckbox: boolean;
17
+ storefrontId: string;
18
+ } & IkasBaseModel;
19
+
20
+ export enum IkasCheckoutRequirement {
21
+ INVISIBLE = "INVISIBLE",
22
+ MANDATORY = "MANDATORY",
23
+ OPTIONAL = "OPTIONAL",
24
+ }
@@ -0,0 +1,4 @@
1
+ export type IkasCheckoutOption = {
2
+ name: string;
3
+ required: boolean;
4
+ };
@@ -0,0 +1,5 @@
1
+ export type IkasCheckoutSettingsPrice = {
2
+ currencyCode: string;
3
+ currencySymbol: string | null;
4
+ price: number;
5
+ };
@@ -0,0 +1,11 @@
1
+ import { IkasBaseModel } from "../base";
2
+
3
+ export type IkasCity = {
4
+ cityCode: string | null;
5
+ countryId: string;
6
+ latitude: string | null;
7
+ longitude: string | null;
8
+ name: string;
9
+ order: number | null;
10
+ stateId: string;
11
+ } & IkasBaseModel;
@@ -0,0 +1,7 @@
1
+ export type IkasContactForm = {
2
+ email: string;
3
+ firstName: string;
4
+ lastName: string;
5
+ message: string;
6
+ referer: string;
7
+ };
@@ -0,0 +1,17 @@
1
+ import { IkasBaseModel } from "../base";
2
+ import { IkasLocationTranslations } from "./location-translations";
3
+
4
+ export type IkasCountry = {
5
+ capital: string | null;
6
+ currency: string | null;
7
+ emoji: string | null;
8
+ emojiString: string | null;
9
+ iso2: string | null;
10
+ iso3: string | null;
11
+ locationTranslations?: IkasLocationTranslations | null;
12
+ name: string;
13
+ native: string | null;
14
+ phoneCode: string | null;
15
+ region: string | null;
16
+ subregion: string | null;
17
+ } & IkasBaseModel;
@@ -0,0 +1,16 @@
1
+ import { IkasCountry } from "./index";
2
+ import { IkasLocationTranslations } from "./location-translations";
3
+
4
+ export function initIkasCountry(country: IkasCountry, locale: string | null) {
5
+ if (country.locationTranslations && locale) {
6
+ setTranslations(country, locale);
7
+ delete country.locationTranslations;
8
+ }
9
+ }
10
+
11
+ function setTranslations(country: IkasCountry, locale: string) {
12
+ country.name =
13
+ (country.locationTranslations &&
14
+ country.locationTranslations[locale as keyof IkasLocationTranslations]) ||
15
+ country.name;
16
+ }
@@ -0,0 +1,5 @@
1
+ export type IkasLocationTranslations = {
2
+ de: string | null;
3
+ en: string;
4
+ tr: string;
5
+ };
@@ -0,0 +1,5 @@
1
+ export type IkasCustomerAddressCity = {
2
+ code: string | null;
3
+ id: string | null;
4
+ name: string;
5
+ };
@@ -0,0 +1,7 @@
1
+ export type IkasCustomerAddressCountry = {
2
+ code: string | null;
3
+ id: string | null;
4
+ iso2: string | null;
5
+ iso3: string | null;
6
+ name: string;
7
+ };
@@ -0,0 +1,5 @@
1
+ export type IkasCustomerAddressDistrict = {
2
+ code: string | null;
3
+ id: string | null;
4
+ name: string | null;
5
+ };
@@ -0,0 +1,27 @@
1
+ import { IkasBaseModel } from "../../base";
2
+ import { IkasCheckoutSettings } from "../../checkout-settings";
3
+ import { IkasCustomerAttributeValue } from "../attribute/value";
4
+ import { IkasCustomerAddressCity } from "./city";
5
+ import { IkasCustomerAddressCountry } from "./country";
6
+ import { IkasCustomerAddressDistrict } from "./district";
7
+ import { IkasCustomerAddressState } from "./state";
8
+
9
+ export type IkasCustomerAddress = {
10
+ addressLine1: string;
11
+ addressLine2: string | null;
12
+ attributes: IkasCustomerAttributeValue[] | null;
13
+ company: string | null;
14
+ firstName: string;
15
+ identityNumber: string | null;
16
+ isDefault: boolean | null;
17
+ lastName: string;
18
+ phone: string | null;
19
+ postalCode: string | null;
20
+ taxNumber: string | null;
21
+ taxOffice: string | null;
22
+ title: string;
23
+ country: IkasCustomerAddressCountry | null;
24
+ state: IkasCustomerAddressState | null;
25
+ city: IkasCustomerAddressCity | null;
26
+ district: IkasCustomerAddressDistrict | null;
27
+ } & IkasBaseModel;
@@ -0,0 +1,5 @@
1
+ export interface IkasCustomerAddressState {
2
+ code: string | null;
3
+ id: string | null;
4
+ name: string | null;
5
+ }
@@ -0,0 +1,22 @@
1
+ import { IkasBaseModel } from "../../base";
2
+ import { IkasCustomerAttributeOption } from "./option";
3
+ import { IkasCustomerAttributeSalesChannel } from "./sales-channel";
4
+ import { IkasCustomerAttributeTranslation } from "./translation";
5
+
6
+ export type IkasCustomerAttribute = {
7
+ description: string | null;
8
+ name: string;
9
+ type: IkasCustomerAttributeType;
10
+ options: IkasCustomerAttributeOption[] | null;
11
+ salesChannels: IkasCustomerAttributeSalesChannel[] | null;
12
+ translations?: IkasCustomerAttributeTranslation[] | null;
13
+ } & IkasBaseModel;
14
+
15
+ export enum IkasCustomerAttributeType {
16
+ BOOLEAN = "BOOLEAN",
17
+ CHOICE = "CHOICE",
18
+ DATETIME = "DATETIME",
19
+ MULTIPLE_CHOICE = "MULTIPLE_CHOICE",
20
+ NUMERIC = "NUMERIC",
21
+ TEXT = "TEXT",
22
+ }
@@ -0,0 +1,34 @@
1
+ import { IkasCustomerAttribute } from ".";
2
+ import { IkasCustomerAttributeTranslation } from "./translation";
3
+
4
+ export function initIkasCustomerAttribute(
5
+ attribute: IkasCustomerAttribute,
6
+ locale: string | null
7
+ ) {
8
+ if (attribute.translations && locale) {
9
+ setTranslations(attribute, attribute.translations, locale);
10
+ delete attribute.translations;
11
+ }
12
+ }
13
+
14
+ function setTranslations(
15
+ attribute: IkasCustomerAttribute,
16
+ translations: IkasCustomerAttributeTranslation[],
17
+ locale: string
18
+ ) {
19
+ if (translations && translations.some((t) => t.locale === locale)) {
20
+ const localeTranslations = translations.find((t) => t.locale === locale);
21
+
22
+ if (localeTranslations?.name) attribute.name = localeTranslations.name;
23
+ if (localeTranslations?.description)
24
+ attribute.description = localeTranslations.description;
25
+ if (localeTranslations?.options) {
26
+ attribute.options?.forEach((o) => {
27
+ const translatedVV = localeTranslations.options?.find(
28
+ (to) => to.id === o.id
29
+ );
30
+ if (translatedVV && translatedVV.name) o.name = translatedVV.name;
31
+ });
32
+ }
33
+ }
34
+ }
@@ -0,0 +1,7 @@
1
+ export type IkasCustomerAttributeOption = {
2
+ createdAt: number | null;
3
+ deleted: boolean | null;
4
+ id: string;
5
+ name: string;
6
+ updatedAt: number | null;
7
+ };
@@ -0,0 +1,18 @@
1
+ export type IkasCustomerAttributeSalesChannel = {
2
+ permission: IkasCustomerAttributePermission;
3
+ registerPageRequirement: IkasCustomerAttributeRegisterPageRequirement;
4
+ salesChannelId: string;
5
+ storefrontId: string;
6
+ };
7
+
8
+ export enum IkasCustomerAttributePermission {
9
+ INVISIBLE = "INVISIBLE",
10
+ READ = "READ",
11
+ WRITE = "WRITE",
12
+ }
13
+
14
+ export enum IkasCustomerAttributeRegisterPageRequirement {
15
+ INVISIBLE = "INVISIBLE",
16
+ MANDATORY = "MANDATORY",
17
+ OPTIONAL = "OPTIONAL",
18
+ }
@@ -0,0 +1,8 @@
1
+ import { IkasCustomerAttributeOptionTranslation } from "./option";
2
+
3
+ export type IkasCustomerAttributeTranslation = {
4
+ description: string | null;
5
+ locale: string;
6
+ name: string | null;
7
+ options: IkasCustomerAttributeOptionTranslation[] | null;
8
+ };
@@ -0,0 +1,4 @@
1
+ export type IkasCustomerAttributeOptionTranslation = {
2
+ id: string;
3
+ name: string | null;
4
+ };
@@ -0,0 +1,12 @@
1
+ import { IkasCustomerAttribute } from "..";
2
+ import { IkasCustomerAttributeOption } from "../option";
3
+
4
+ export type IkasCustomerAttributeValue = {
5
+ customerAttributeId: string | null;
6
+ customerAttributeOptionId: string | null;
7
+ value: string | null;
8
+
9
+ // Extra
10
+ customerAttribute: IkasCustomerAttribute | null;
11
+ customerAttributeOption: IkasCustomerAttributeOption | null;
12
+ };
@@ -0,0 +1,48 @@
1
+ import { IkasCustomerAddress } from "./address";
2
+ import { IkasCustomerAttributeValue } from "./attribute/value";
3
+ import { IkasBaseModel } from "../base";
4
+
5
+ export type IkasCustomer = {
6
+ accountStatusUpdatedAt: number | null;
7
+ customerGroupIds: string[] | null;
8
+ customerSequence: number | null;
9
+ email: string | null;
10
+ emailVerifiedDate: number | null;
11
+ firstName: string;
12
+ fullName: string | null;
13
+ isEmailVerified: boolean | null;
14
+ isPhoneVerified: boolean | null;
15
+ lastName: string | null;
16
+ note: string | null;
17
+ orderCount: number | null;
18
+ passwordUpdateDate: number | null;
19
+ phone: string | null;
20
+ phoneVerifiedDate: number | null;
21
+ subscriptionStatusUpdatedAt: number | null;
22
+ tagIds: string[] | null;
23
+
24
+ registrationSource: IkasCustomerRegistrationSource | null;
25
+ accountStatus: IkasCustomerAccountStatus | null;
26
+ addresses: IkasCustomerAddress[] | null;
27
+ subscriptionStatus: IkasCustomerEmailSubscriptionStatus | null;
28
+ attributes: IkasCustomerAttributeValue[] | null;
29
+ } & IkasBaseModel;
30
+
31
+ export enum IkasCustomerAccountStatus {
32
+ ACTIVE_ACCOUNT = "ACTIVE_ACCOUNT",
33
+ DECLINED_ACCOUNT_INVITATION = "DECLINED_ACCOUNT_INVITATION",
34
+ DISABLED_ACCOUNT = "DISABLED_ACCOUNT",
35
+ INVITED_TO_CREATE_ACCOUNT = "INVITED_TO_CREATE_ACCOUNT",
36
+ }
37
+
38
+ export enum IkasCustomerRegistrationSource {
39
+ credentials = "credentials",
40
+ facebook = "facebook",
41
+ google = "google",
42
+ }
43
+
44
+ export enum IkasCustomerEmailSubscriptionStatus {
45
+ NOT_SUBSCRIBED = "NOT_SUBSCRIBED",
46
+ PENDING_CONFIRMATION = "PENDING_CONFIRMATION",
47
+ SUBSCRIBED = "SUBSCRIBED",
48
+ }
@@ -0,0 +1,28 @@
1
+ import { IkasBaseModel } from "../../base";
2
+ import { IkasImage } from "../../image";
3
+
4
+ export type IkasCustomerReview = {
5
+ comment: string | null;
6
+ customerId: string | null;
7
+ email: string | null;
8
+ firstName: string | null;
9
+ imageIds: string[] | null;
10
+ lastName: string | null;
11
+ orderId: string | null;
12
+ orderNumber: string | null;
13
+ productId: string;
14
+ salesChannelId: string | null;
15
+ star: number;
16
+ status: IkasCustomerReviewStatus | null;
17
+ storefrontId: string | null;
18
+ title: string | null;
19
+
20
+ // Extra
21
+ images?: IkasImage[] | null;
22
+ } & IkasBaseModel;
23
+
24
+ export enum IkasCustomerReviewStatus {
25
+ APPROVED = "APPROVED",
26
+ REJECTED = "REJECTED",
27
+ WAITING = "WAITING",
28
+ }
@@ -0,0 +1,7 @@
1
+ import { IkasCustomerReview } from ".";
2
+
3
+ export function initIkasCustomerReview(customerReview: IkasCustomerReview) {
4
+ customerReview.images = customerReview.imageIds
5
+ ? customerReview.imageIds.map((id) => ({ id, isVideo: false }))
6
+ : null;
7
+ }
@@ -0,0 +1,4 @@
1
+ export type IkasCustomerReviewSettings = {
2
+ customerLoginRequired: boolean;
3
+ customerPurchaseRequired: boolean;
4
+ };
@@ -0,0 +1,9 @@
1
+ import { IkasBaseModel } from "../../../base";
2
+ import { IkasCustomerReviewSummaryStar } from "./star";
3
+
4
+ export type IkasCustomerReviewSummary = {
5
+ averageStar: number;
6
+ productId: string;
7
+ stars: IkasCustomerReviewSummaryStar[];
8
+ totalReview: number;
9
+ } & IkasBaseModel;