@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,46 @@
1
+ import { IkasProductAttributeType } from "../../..";
2
+ import {
3
+ IkasThemeJsonSliderData,
4
+ IkasThemeJsonComponentPropType,
5
+ } from "../component/prop";
6
+
7
+ export type IkasThemeJsonCustomData = {
8
+ id: string;
9
+ name?: string | null;
10
+ description?: string | null;
11
+ typescriptName?: string | null;
12
+ type: IkasThemeJsonComponentPropType;
13
+ isRequired: boolean;
14
+ translations: {
15
+ [locale: string]: IkasThemeJsonCustomDataTranslation;
16
+ };
17
+
18
+ key?: string | null;
19
+ nestedData?: IkasThemeJsonCustomData[] | null;
20
+ itemCount?: number | null; // for static lists
21
+ attributeTypes?: IkasProductAttributeType[] | null;
22
+ enumOptions?: IkasThemeJsonEnumOption[] | null;
23
+ customDataId?: string | null;
24
+ sliderData: IkasThemeJsonSliderData;
25
+
26
+ isRoot: boolean;
27
+ parent?: IkasThemeJsonCustomData | null;
28
+ };
29
+
30
+ export type IkasThemeJsonEnumOption = {
31
+ id: string;
32
+ displayName: string;
33
+ value: string;
34
+ translations: {
35
+ [locale: string]: IkasThemeJsonCustomDataEnumOptionTranslation;
36
+ };
37
+ };
38
+
39
+ export type IkasThemeJsonCustomDataTranslation = {
40
+ name: string | null;
41
+ description: string | null;
42
+ };
43
+
44
+ export type IkasThemeJsonCustomDataEnumOptionTranslation = {
45
+ displayName: string | null;
46
+ };
@@ -0,0 +1,12 @@
1
+ import { IkasThemeJsonComponent } from "./component";
2
+ import { IkasThemeJsonCustomData } from "./custom-data";
3
+ import { IkasThemeJsonPage } from "./page";
4
+ import { IkasThemeJsonSettings } from "./settings";
5
+
6
+ export type IkasThemeJson = {
7
+ name: string;
8
+ components: IkasThemeJsonComponent[];
9
+ pages: IkasThemeJsonPage[];
10
+ settings: IkasThemeJsonSettings;
11
+ customData: IkasThemeJsonCustomData[];
12
+ };
@@ -0,0 +1,11 @@
1
+ export type IkasThemeJsonPageComponent = {
2
+ id: string;
3
+ componentId: string;
4
+
5
+ // Prop value for a component can either be exact values to pass to the component,
6
+ // or it can be a data to derive the actual value the component needs
7
+ // key: propName
8
+ // e.g for a "Text" prop ---------> text: "TextValue"
9
+ // e.g for a "ProductList" prop --> productList: ProductListPropValue
10
+ propValues: Record<string, any>;
11
+ };
@@ -0,0 +1,46 @@
1
+ import { IkasThemeJsonPageComponent } from "./component";
2
+
3
+ export type IkasThemeJsonPage = {
4
+ id: string;
5
+ name: string | null;
6
+ type: IkasThemeJsonPageType;
7
+ slug: string | null;
8
+ pageTitle: string | null;
9
+ description: string | null;
10
+ components: IkasThemeJsonPageComponent[];
11
+ specifications: IkasThemeJsonPageSpecification[] | null;
12
+ canonicals: string[] | null;
13
+ disableIndex: boolean | null;
14
+ };
15
+
16
+ export type IkasThemeJsonPageSpecification = {
17
+ id: string;
18
+ components: IkasThemeJsonPageComponent[];
19
+ };
20
+
21
+ export enum IkasThemeJsonPageType {
22
+ INDEX = "INDEX",
23
+ CATEGORY = "CATEGORY",
24
+ BRAND = "BRAND",
25
+ PRODUCT = "PRODUCT",
26
+ CUSTOM = "CUSTOM",
27
+ ACCOUNT = "ACCOUNT",
28
+ ADDRESSES = "ADDRESSES",
29
+ ORDERS = "ORDERS",
30
+ ORDER_DETAIL = "ORDER_DETAIL",
31
+ LOGIN = "LOGIN",
32
+ REGISTER = "REGISTER",
33
+ FORGOT_PASSWORD = "FORGOT_PASSWORD",
34
+ RECOVER_PASSWORD = "RECOVER_PASSWORD",
35
+ CART = "CART",
36
+ FAVORITE_PRODUCTS = "FAVORITE_PRODUCTS",
37
+ SEARCH = "SEARCH",
38
+ NOT_FOUND = "NOT_FOUND",
39
+ BLOG = "BLOG",
40
+ BLOG_INDEX = "BLOG_INDEX",
41
+ BLOG_CATEGORY = "BLOG_CATEGORY",
42
+ CHECKOUT = "CHECKOUT",
43
+ RAFFLE = "RAFFLE",
44
+ RAFFLE_DETAIL = "RAFFLE_DETAIL",
45
+ RAFFLE_ACCOUNT = "RAFFLE_ACCOUNT",
46
+ }
@@ -0,0 +1,13 @@
1
+ export type IkasThemeJsonColor = {
2
+ id: string;
3
+ displayName: string;
4
+ key: string;
5
+ color: string;
6
+ translations: {
7
+ [locale: string]: IkasThemeJsonColorTranslation;
8
+ };
9
+ };
10
+
11
+ export type IkasThemeJsonColorTranslation = {
12
+ displayName: string | null;
13
+ };
@@ -0,0 +1,3 @@
1
+ export type IkasThemeJsonFavicon = {
2
+ id: string | null;
3
+ };
@@ -0,0 +1,4 @@
1
+ export type IkasThemeJsonFontFamily = {
2
+ name: string | null;
3
+ variants: string[] | null;
4
+ };
@@ -0,0 +1,16 @@
1
+ import { IkasThemeJsonColor } from "./color";
2
+ import { IkasThemeJsonFavicon } from "./favicon";
3
+ import { IkasThemeJsonFontFamily } from "./font-family";
4
+
5
+ export type IkasThemeJsonSettings = {
6
+ colors: IkasThemeJsonColor[];
7
+ favicon: IkasThemeJsonFavicon;
8
+ stockPreference: IkasThemeJsonStockPreference;
9
+ fontFamily: IkasThemeJsonFontFamily;
10
+ };
11
+
12
+ export enum IkasThemeJsonStockPreference {
13
+ HIDE_OUT_OF_STOCK = "HIDE_OUT_OF_STOCK",
14
+ SHOW_ALL = "SHOW_ALL",
15
+ SHOW_OUT_OF_STOCK_AT_END = "SHOW_OUT_OF_STOCK_AT_END",
16
+ }
@@ -0,0 +1,25 @@
1
+ import { IkasVariantValue } from "./variant-value";
2
+
3
+ export type IkasVariantType = {
4
+ id: string;
5
+ name: string;
6
+ selectionType: IkasVariantSelectionType;
7
+ values: IkasVariantValue[];
8
+ translations?: IkasVariantTypeTranslation[] | null;
9
+ };
10
+
11
+ export enum IkasVariantSelectionType {
12
+ CHOICE = "CHOICE",
13
+ COLOR = "COLOR",
14
+ }
15
+
16
+ export type IkasVariantTypeTranslation = {
17
+ locale: string;
18
+ name: string | null;
19
+ values: IkasVariantValueTranslation[] | null;
20
+ };
21
+
22
+ export type IkasVariantValueTranslation = {
23
+ id: string;
24
+ name: string | null;
25
+ };
@@ -0,0 +1,37 @@
1
+ import { IkasVariantType, IkasVariantTypeTranslation } from ".";
2
+ import { initIkasVariantValue } from "./variant-value/init";
3
+
4
+ export function initIkasVariantType(
5
+ variantType: IkasVariantType,
6
+ locale: string | null
7
+ ) {
8
+ variantType.values.forEach((v) => {
9
+ v.variantTypeId = variantType.id;
10
+ initIkasVariantValue(v);
11
+ });
12
+
13
+ if (variantType.translations && locale) {
14
+ setTranslations(variantType, variantType.translations, locale);
15
+ delete variantType.translations;
16
+ }
17
+ }
18
+
19
+ function setTranslations(
20
+ variantType: IkasVariantType,
21
+ translations: IkasVariantTypeTranslation[],
22
+ locale: string
23
+ ) {
24
+ if (translations && translations.some((t) => t.locale === locale)) {
25
+ const localeTranslations = translations.find((t) => t.locale === locale);
26
+
27
+ if (localeTranslations?.name) variantType.name = localeTranslations.name;
28
+ if (localeTranslations?.values) {
29
+ variantType.values.forEach((vv) => {
30
+ const translatedVV = localeTranslations.values?.find(
31
+ (tvv) => tvv.id === vv.id
32
+ );
33
+ if (translatedVV && translatedVV.name) vv.name = translatedVV.name;
34
+ });
35
+ }
36
+ }
37
+ }
@@ -0,0 +1,12 @@
1
+ import { IkasImage } from "../../image";
2
+
3
+ export type IkasVariantValue = {
4
+ id: string;
5
+ name: string;
6
+ colorCode: string | null;
7
+ thumbnailImageId: string | null;
8
+ variantTypeId: string;
9
+
10
+ // Extra
11
+ thumbnailImage?: IkasImage;
12
+ };
@@ -0,0 +1,5 @@
1
+ import { IkasVariantValue } from ".";
2
+
3
+ export function initIkasVariantValue(variantValue: IkasVariantValue) {
4
+ variantValue.thumbnailImage = { id: variantValue.id, isVideo: false };
5
+ }
@@ -1 +0,0 @@
1
- var r=function(){return r=Object.assign||function(r){for(var t,n=1,e=arguments.length;n<e;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o]);return r},r.apply(this,arguments)};export{r as __assign};
package/build/index.js DELETED
@@ -1 +0,0 @@
1
- export{createIkasBaseModel}from"./models/base/init.js";export{createIkasBlogCategory,initIkasBlogCategory}from"./models/blog/category/init.js";export{IkasBlogMetaDataTargetType}from"./models/blog/meta-data/index.js";export{initIkasBlog}from"./models/blog/init.js";export{IkasBrandOrderType}from"./models/brand/index.js";export{initIkasBrand}from"./models/brand/init.js";export{IkasCampaignOfferProductShowCriteria}from"./models/campaign-offer/product/index.js";export{IkasCampaignOfferFollowUpActionType,IkasCampaignOfferTargetPageType,IkasCampaignOfferTriggerFilterType,IkasCampaignOfferType}from"./models/campaign-offer/index.js";export{IkasShippingMethod}from"./models/cart/available-shipping-method/index.js";export{IkasCartCampaignOfferStatus}from"./models/cart/campaign-offer/index.js";export{IkasCategoryProductsOrderType}from"./models/category/index.js";export{initIkasCategory}from"./models/category/init.js";export{IkasCheckoutRequirement}from"./models/checkout-settings/index.js";export{initIkasCountry}from"./models/country/init.js";export{IkasCustomerAttributePermission,IkasCustomerAttributeRegisterPageRequirement}from"./models/customer/attribute/sales-channel/index.js";export{initIkasCustomerAttribute}from"./models/customer/attribute/init.js";export{IkasCustomerAttributeType}from"./models/customer/attribute/index.js";export{initIkasCustomerReview}from"./models/customer/review/init.js";export{IkasCustomerReviewStatus}from"./models/customer/review/index.js";export{IkasCustomerAccountStatus,IkasCustomerEmailSubscriptionStatus,IkasCustomerRegistrationSource}from"./models/customer/index.js";export{initIkasHTMLMetaData,setHTMLMetaDataTranslations}from"./models/html-meta-data/init.js";export{IkasHTMLMetaDataTargetType}from"./models/html-meta-data/index.js";export{initIkasMerchantSettings}from"./models/merchant-settings/init.js";import"./models/merchant-settings/index.js";export{IkasMerchantSettingsAddressTypeEnum}from"./models/merchant-settings/address/type/index.js";export{IkasAdjustmentType,IkasAmountType}from"./models/order/adjustment/index.js";export{IkasInvoiceType}from"./models/order/invoice/index.js";export{IkasProductUnitType}from"./models/order/line-item/base-unit/index.js";export{IkasOrderLineItemStatus}from"./models/order/line-item/index.js";export{IkasOrderPackageFullfillStatus}from"./models/order/package/index.js";export{IkasTransactionCardAssociation,IkasTransactionCardType}from"./models/order/transaction/payment-method-detail/index.js";export{IkasTransactionStatus,IkasTransactionType}from"./models/order/transaction/index.js";export{IkasOrderCancelReason,IkasOrderPackageStatus,IkasOrderPaymentStatus,IkasOrderShippingMethod,IkasOrderStatus}from"./models/order/index.js";export{IkasPaymentGatewayAdditionalPriceType,IkasPaymentGatewayTransactionFeeType}from"./models/payment-gateway/additional-price/index.js";export{IkasPaymentGatewaySettingsType}from"./models/payment-gateway/settings/index.js";export{initIkasPaymentGateway}from"./models/payment-gateway/init.js";export{IkasPaymentGatewayType,IkasPaymentMethodType}from"./models/payment-gateway/index.js";export{initIkasProductAttribute}from"./models/product/attribute/init.js";export{IkasProductAttributeType}from"./models/product/attribute/index.js";export{initIkasProductAttributeValue}from"./models/product/attribute-value/init.js";export{IkasProductFilterDisplayType,IkasProductFilterSortType,IkasProductFilterType,IkasProductStockFilterValue}from"./models/product/filter/index.js";export{IkasCampaignApplicablePrice,IkasCampaignCreatedFor,IkasCampaignType}from"./models/product/campaign/data/index.js";export{IkasCampaignFilterType}from"./models/product/campaign/filter/index.js";export{initIkasProductImage}from"./models/product/image/init.js";export{initIkasProductOption}from"./models/product/option-set/option/init.js";export{IkasProductOptionSelectType,IkasProductOptionType}from"./models/product/option-set/option/index.js";export{initIkasProductOptionSet,initOptionValues,initValues,setChildOptions}from"./models/product/option-set/init.js";export{initIkasProductVariant}from"./models/product/variant/init.js";export{initIkasProductVariantType}from"./models/product/variant-type/init.js";export{initIkasProduct}from"./models/product/init.js";export{IkasProductType}from"./models/product/index.js";export{initIkasRaffle}from"./models/raffle/init.js";export{IkasRaffleMetadataTargetType,IkasRaffleParticipantStatus,IkasRaffleVerificationType}from"./models/raffle/index.js";export{IkasStockLocationDeliveryTime,IkasStockLocationType}from"./models/stock-location/index.js";export{IkasStorefrontThemeStatus}from"./models/storefront/theme/index.js";export{IkasStorefrontStatus}from"./models/storefront/index.js";export{IkasThemeJsonComponentPropType}from"./models/theme-json/component/prop/index.js";export{IkasThemeJsonPageType}from"./models/theme-json/page/index.js";export{IkasThemeJsonStockPreference}from"./models/theme-json/settings/index.js";export{initIkasVariantValue}from"./models/variant-type/variant-value/init.js";export{initIkasVariantType}from"./models/variant-type/init.js";export{IkasVariantSelectionType}from"./models/variant-type/index.js";
@@ -1,6 +0,0 @@
1
- export declare type IkasBaseModel = {
2
- id: string;
3
- createdAt: number;
4
- updatedAt: number;
5
- deleted?: boolean | null;
6
- };
@@ -1,6 +0,0 @@
1
- import { IkasBaseModel } from ".";
2
- /**
3
- * Creates an empty base model object
4
- * @returns An initialized empty base model object.
5
- */
6
- export declare function createIkasBaseModel(): IkasBaseModel;
@@ -1 +0,0 @@
1
- function e(){return{id:"",createdAt:Date.now(),updatedAt:Date.now(),deleted:!1}}export{e as createIkasBaseModel};
@@ -1,11 +0,0 @@
1
- import { IkasBlogCategory } from ".";
2
- /**
3
- * Initializes the given blog category.
4
- * @param blogCategory Blog category to initialize.
5
- */
6
- export declare function initIkasBlogCategory(blogCategory: IkasBlogCategory): void;
7
- /**
8
- * Creates an empty blog category object.
9
- * @returns An initialized empty blog category object.
10
- */
11
- export declare function createIkasBlogCategory(): IkasBlogCategory;
@@ -1 +0,0 @@
1
- import{__assign as i}from"../../../_virtual/_tslib.js";import{createIkasBaseModel as a}from"../../base/init.js";function t(i){i.image=i.imageId?{id:i.imageId,isVideo:!1}:void 0}function e(){var e=i(i({},a()),{imageId:"",name:"",metadata:i(i({},a()),{id:"",slug:""})});return t(e),e}export{e as createIkasBlogCategory,t as initIkasBlogCategory};
@@ -1,4 +0,0 @@
1
- import { IkasBaseModel } from "../../base";
2
- export declare type IkasBlogContent = {
3
- content: string;
4
- } & IkasBaseModel;
@@ -1,24 +0,0 @@
1
- import { IkasBaseModel } from "../base";
2
- import { IkasImage } from "../image";
3
- import { IkasBlogTag } from "./tag";
4
- import { IkasBlogContent } from "./content";
5
- import { IkasBlogMetaData } from "./meta-data";
6
- import { IkasBlogWriter } from "./writer";
7
- import { IkasBlogCategory } from "./category";
8
- export declare type IkasBlog = {
9
- blogContent: IkasBlogContent;
10
- categoryId: string;
11
- imageId: string;
12
- isPublished: boolean;
13
- locale: string | null;
14
- metadata: IkasBlogMetaData;
15
- publishedAt: number | null;
16
- shortDescription: string;
17
- storefrontId: string;
18
- tagIds: string[] | null;
19
- tags: IkasBlogTag[] | null;
20
- title: string;
21
- writer: IkasBlogWriter;
22
- image?: IkasImage | null;
23
- category: IkasBlogCategory;
24
- } & IkasBaseModel;
@@ -1,2 +0,0 @@
1
- import { IkasBlog } from ".";
2
- export declare function initIkasBlog(blog: IkasBlog): void;
@@ -1 +0,0 @@
1
- import{initIkasBlogCategory as i}from"./category/init.js";function o(o){i(o.category),o.image=o.imageId?{id:o.imageId,isVideo:!1}:void 0}export{o as initIkasBlog};
@@ -1,14 +0,0 @@
1
- import { IkasBaseModel } from "../../base";
2
- export declare type IkasBlogMetaData = {
3
- canonicals?: string[] | null;
4
- description?: string | null;
5
- disableIndex?: boolean | null;
6
- pageTitle?: string | null;
7
- slug: string;
8
- targetId?: string | null;
9
- targetType?: IkasBlogMetaDataTargetType | null;
10
- } & IkasBaseModel;
11
- export declare enum IkasBlogMetaDataTargetType {
12
- BLOG = "BLOG",
13
- BLOG_CATEGORY = "BLOG_CATEGORY"
14
- }
@@ -1 +0,0 @@
1
- var G;!function(G){G.BLOG="BLOG",G.BLOG_CATEGORY="BLOG_CATEGORY"}(G||(G={}));export{G as IkasBlogMetaDataTargetType};
@@ -1,4 +0,0 @@
1
- export declare type IkasBlogWriter = {
2
- firstName: string;
3
- lastName: string;
4
- };
@@ -1,23 +0,0 @@
1
- import { IkasImage } from "../image";
2
- import { IkasHTMLMetaData } from "../html-meta-data";
3
- import { IkasBaseModel } from "../base";
4
- import { IkasProductBrandTranslation } from "./translation";
5
- export declare type IkasBrand = {
6
- description: string | null;
7
- imageId: string | null;
8
- name: string;
9
- metaData: IkasHTMLMetaData | null;
10
- orderType: IkasBrandOrderType | null;
11
- image?: IkasImage | null;
12
- translations?: IkasProductBrandTranslation[] | null;
13
- } & IkasBaseModel;
14
- export declare enum IkasBrandOrderType {
15
- BEST_SELLER = "BEST_SELLER",
16
- HIGHEST_DISCOUNT_RATIO = "HIGHEST_DISCOUNT_RATIO",
17
- HIGHEST_PRICE = "HIGHEST_PRICE",
18
- LOWEST_DISCOUNT_RATIO = "LOWEST_DISCOUNT_RATIO",
19
- LOWEST_PRICE = "LOWEST_PRICE",
20
- MANUALLY = "MANUALLY",
21
- NEWEST = "NEWEST",
22
- OLDEST = "OLDEST"
23
- }
@@ -1 +0,0 @@
1
- var E;!function(E){E.BEST_SELLER="BEST_SELLER",E.HIGHEST_DISCOUNT_RATIO="HIGHEST_DISCOUNT_RATIO",E.HIGHEST_PRICE="HIGHEST_PRICE",E.LOWEST_DISCOUNT_RATIO="LOWEST_DISCOUNT_RATIO",E.LOWEST_PRICE="LOWEST_PRICE",E.MANUALLY="MANUALLY",E.NEWEST="NEWEST",E.OLDEST="OLDEST"}(E||(E={}));export{E as IkasBrandOrderType};
@@ -1,2 +0,0 @@
1
- import { IkasBrand } from ".";
2
- export declare function initIkasBrand(brand: IkasBrand, locale: string | null): void;
@@ -1 +0,0 @@
1
- import{initIkasHTMLMetaData as n}from"../html-meta-data/init.js";function i(i,t){i.image=i.imageId?{id:i.imageId,isVideo:!1}:null,i.metaData&&n(i.metaData,t),i.translations&&t&&(!function(n,i,t){if(i&&i.some((function(n){return n.locale===t}))){var a=i.find((function(n){return n.locale===t}));(null==a?void 0:a.name)&&(n.name=a.name),(null==a?void 0:a.description)&&(n.description=a.description)}}(i,i.translations,t),delete i.translations)}export{i as initIkasBrand};
@@ -1,5 +0,0 @@
1
- export declare type IkasProductBrandTranslation = {
2
- description: string | null;
3
- locale: string;
4
- name: string | null;
5
- };
@@ -1,37 +0,0 @@
1
- import { IkasCampaignOfferProduct } from "./product";
2
- export declare type IkasCampaignOffer = {
3
- availableSalesChannelIds: string[];
4
- endDate: any | null;
5
- followUpActionType: IkasCampaignOfferFollowUpActionType;
6
- minimumRequiredCartAmount: number | null;
7
- name: string;
8
- offers: IkasCampaignOfferProduct[];
9
- startDate: any | null;
10
- targetPageTypes: IkasCampaignOfferTargetPageType[];
11
- triggerSettings: IkasCampaignOfferTriggerSettings;
12
- type: IkasCampaignOfferType;
13
- };
14
- export declare type IkasCampaignOfferTriggerSettings = {
15
- filterType: IkasCampaignOfferTriggerFilterType;
16
- valueList: string[];
17
- };
18
- export declare enum IkasCampaignOfferFollowUpActionType {
19
- DO_NOTHING = "DO_NOTHING",
20
- OPEN_CART = "OPEN_CART",
21
- OPEN_CHECKOUT = "OPEN_CHECKOUT"
22
- }
23
- export declare enum IkasCampaignOfferTargetPageType {
24
- CHECKOUT = "CHECKOUT",
25
- POST_CHECKOUT = "POST_CHECKOUT"
26
- }
27
- export declare enum IkasCampaignOfferType {
28
- CROSS_SELL = "CROSS_SELL",
29
- UPSELL = "UPSELL"
30
- }
31
- export declare enum IkasCampaignOfferTriggerFilterType {
32
- ALL_PRODUCTS = "ALL_PRODUCTS",
33
- CATEGORY = "CATEGORY",
34
- PRODUCT = "PRODUCT",
35
- PRODUCT_TAG = "PRODUCT_TAG",
36
- VARIANT = "VARIANT"
37
- }
@@ -1 +0,0 @@
1
- var O,C,T,E;!function(O){O.DO_NOTHING="DO_NOTHING",O.OPEN_CART="OPEN_CART",O.OPEN_CHECKOUT="OPEN_CHECKOUT"}(O||(O={})),function(O){O.CHECKOUT="CHECKOUT",O.POST_CHECKOUT="POST_CHECKOUT"}(C||(C={})),function(O){O.CROSS_SELL="CROSS_SELL",O.UPSELL="UPSELL"}(T||(T={})),function(O){O.ALL_PRODUCTS="ALL_PRODUCTS",O.CATEGORY="CATEGORY",O.PRODUCT="PRODUCT",O.PRODUCT_TAG="PRODUCT_TAG",O.VARIANT="VARIANT"}(E||(E={}));export{O as IkasCampaignOfferFollowUpActionType,C as IkasCampaignOfferTargetPageType,E as IkasCampaignOfferTriggerFilterType,T as IkasCampaignOfferType};
@@ -1,24 +0,0 @@
1
- import { IkasAmountType } from "../../../models/order/adjustment";
2
- export declare type IkasCampaignOfferProduct = {
3
- countdownMinutes: number | null;
4
- description: string | null;
5
- discountAmount: number | null;
6
- discountType: IkasAmountType | null;
7
- excludedVariantIdList: string[] | null;
8
- id: string;
9
- order: number;
10
- productId: string;
11
- showCriteria: IkasCampaignOfferProductShowCriteria | null;
12
- skipOfferIfProductExistsInCart: boolean | null;
13
- title: string;
14
- translations: IkasCampaignOfferProductTranslation[] | null;
15
- };
16
- export declare type IkasCampaignOfferProductTranslation = {
17
- description: string | null;
18
- locale: string;
19
- title: string;
20
- };
21
- export declare enum IkasCampaignOfferProductShowCriteria {
22
- PREVIOUS_ACCEPTED = "PREVIOUS_ACCEPTED",
23
- PREVIOUS_REJECTED = "PREVIOUS_REJECTED"
24
- }
@@ -1 +0,0 @@
1
- var E;!function(E){E.PREVIOUS_ACCEPTED="PREVIOUS_ACCEPTED",E.PREVIOUS_REJECTED="PREVIOUS_REJECTED"}(E||(E={}));export{E as IkasCampaignOfferProductShowCriteria};
@@ -1,12 +0,0 @@
1
- export declare type IkasAvailableShippingMethod = {
2
- price: number;
3
- rateName: string;
4
- shippingMethod: IkasShippingMethod;
5
- shippingSettingsId: string;
6
- shippingZoneRateId: string;
7
- };
8
- export declare enum IkasShippingMethod {
9
- CLICK_AND_COLLECT = "CLICK_AND_COLLECT",
10
- NO_SHIPMENT = "NO_SHIPMENT",
11
- SHIPMENT = "SHIPMENT"
12
- }
@@ -1 +0,0 @@
1
- var C;!function(C){C.CLICK_AND_COLLECT="CLICK_AND_COLLECT",C.NO_SHIPMENT="NO_SHIPMENT",C.SHIPMENT="SHIPMENT"}(C||(C={}));export{C as IkasShippingMethod};
@@ -1,19 +0,0 @@
1
- import { IkasBaseModel } from "../../base";
2
- import { IkasCampaignOffer, IkasCampaignOfferTargetPageType } from "../../campaign-offer";
3
- export declare type IkasCartCampaignOffer = {
4
- appliedOrderLineId: string | null;
5
- campaignOfferId: string;
6
- campaignOffer: IkasCampaignOffer | null;
7
- campaignOfferProductId: string | null;
8
- offerEndDate: number | null;
9
- offerStartDate: number;
10
- status: IkasCartCampaignOfferStatus;
11
- targetPageTypes: IkasCampaignOfferTargetPageType[];
12
- triggerSourceOrderLineId: string;
13
- } & IkasBaseModel;
14
- export declare enum IkasCartCampaignOfferStatus {
15
- ACCEPTED = "ACCEPTED",
16
- REJECTED = "REJECTED",
17
- REMOVED = "REMOVED",
18
- WAITING_FOR_ACTION = "WAITING_FOR_ACTION"
19
- }
@@ -1 +0,0 @@
1
- var E;!function(E){E.ACCEPTED="ACCEPTED",E.REJECTED="REJECTED",E.REMOVED="REMOVED",E.WAITING_FOR_ACTION="WAITING_FOR_ACTION"}(E||(E={}));export{E as IkasCartCampaignOfferStatus};
@@ -1,11 +0,0 @@
1
- import { IkasCartCampaignOffer } from "./campaign-offer";
2
- import { IkasAvailableShippingMethod } from "./available-shipping-method";
3
- import { IkasOrder } from "../order";
4
- export declare type IkasCart = {
5
- availableShippingMethods: IkasAvailableShippingMethod[] | null;
6
- campaignOffers: IkasCartCampaignOffer[] | null;
7
- couponCode: string | null;
8
- shippingSettingsId: string | null;
9
- shippingZoneRateId: string | null;
10
- stockLocationId: string | null;
11
- } & IkasOrder;
@@ -1,27 +0,0 @@
1
- import { IkasImage } from "../image";
2
- import { IkasHTMLMetaData } from "../html-meta-data";
3
- import { IkasBaseModel } from "../base";
4
- import { IkasCategoryPathItem } from "./path-item";
5
- import { IkasCategoryTranslation } from "./translations";
6
- export declare type IkasCategory = {
7
- categoryPath: string[] | null;
8
- description: string | null;
9
- imageId: string | null;
10
- name: string;
11
- parentId: string | null;
12
- metaData: IkasHTMLMetaData | null;
13
- categoryPathItems: IkasCategoryPathItem[];
14
- orderType: IkasCategoryProductsOrderType | null;
15
- image?: IkasImage | null;
16
- translations?: IkasCategoryTranslation[] | null;
17
- } & IkasBaseModel;
18
- export declare enum IkasCategoryProductsOrderType {
19
- BEST_SELLER = "BEST_SELLER",
20
- HIGHEST_DISCOUNT_RATIO = "HIGHEST_DISCOUNT_RATIO",
21
- HIGHEST_PRICE = "HIGHEST_PRICE",
22
- LOWEST_DISCOUNT_RATIO = "LOWEST_DISCOUNT_RATIO",
23
- LOWEST_PRICE = "LOWEST_PRICE",
24
- MANUALLY = "MANUALLY",
25
- NEWEST = "NEWEST",
26
- OLDEST = "OLDEST"
27
- }
@@ -1 +0,0 @@
1
- var E;!function(E){E.BEST_SELLER="BEST_SELLER",E.HIGHEST_DISCOUNT_RATIO="HIGHEST_DISCOUNT_RATIO",E.HIGHEST_PRICE="HIGHEST_PRICE",E.LOWEST_DISCOUNT_RATIO="LOWEST_DISCOUNT_RATIO",E.LOWEST_PRICE="LOWEST_PRICE",E.MANUALLY="MANUALLY",E.NEWEST="NEWEST",E.OLDEST="OLDEST"}(E||(E={}));export{E as IkasCategoryProductsOrderType};
@@ -1,2 +0,0 @@
1
- import { IkasCategory } from ".";
2
- export declare function initIkasCategory(category: IkasCategory, locale: string | null): void;
@@ -1 +0,0 @@
1
- import{initIkasHTMLMetaData as t}from"../html-meta-data/init.js";import{initIkasCategoryPathItem as i}from"./path-item/init.js";function n(n,a){n.image=n.imageId?{id:n.imageId,isVideo:!1}:void 0,n.metaData&&t(n.metaData,a),n.translations&&a&&(!function(t,i,n){if(i&&i.some((function(t){return t.locale===n}))){var a=i.find((function(t){return t.locale===n}));(null==a?void 0:a.name)&&(t.name=a.name),(null==a?void 0:a.description)&&(t.description=a.description)}}(n,n.translations,a),delete n.translations),n.categoryPathItems.map((function(t){return i(t,a)}))}export{n as initIkasCategory};
@@ -1,10 +0,0 @@
1
- import { IkasHTMLMetaData } from "../../html-meta-data";
2
- import { IkasBaseModel } from "../../base";
3
- import { IkasCategoryTranslation } from "../translations";
4
- export declare type IkasCategoryPathItem = {
5
- metaData: IkasHTMLMetaData | null;
6
- description: string | null;
7
- imageId: string | null;
8
- name: string;
9
- translations?: IkasCategoryTranslation[] | null;
10
- } & IkasBaseModel;
@@ -1,2 +0,0 @@
1
- import { IkasCategoryPathItem } from ".";
2
- export declare function initIkasCategoryPathItem(categoryPathItem: IkasCategoryPathItem, locale: string | null): void;
@@ -1 +0,0 @@
1
- function n(n,t){n.translations&&t&&(!function(n,t,a){if(t&&t.some((function(n){return n.locale===a}))){var e=t.find((function(n){return n.locale===a}));(null==e?void 0:e.name)&&(n.name=e.name)}}(n,n.translations,t),delete n.translations)}export{n as initIkasCategoryPathItem};
@@ -1,5 +0,0 @@
1
- export declare type IkasCategoryTranslation = {
2
- description: string | null;
3
- locale: string;
4
- name: string | null;
5
- };
@@ -1,2 +0,0 @@
1
- import { IkasCart } from "../cart";
2
- export declare type IkasCheckout = {} & IkasCart;
@@ -1,22 +0,0 @@
1
- import { IkasBaseModel } from "../base";
2
- import { IkasCheckoutOption } from "./option";
3
- import { IkasCheckoutSettingsPrice } from "./price";
4
- export declare type IkasCheckoutSettings = {
5
- giftPackagePriceList: IkasCheckoutSettingsPrice[] | null;
6
- identityNumberRequirement: IkasCheckoutRequirement;
7
- isAccountRequired: boolean;
8
- isGiftPackageEnabled: boolean | null;
9
- isShowPostalCode: boolean | null;
10
- isTermsAndConditionsDefaultChecked: boolean | null;
11
- options: IkasCheckoutOption[] | null;
12
- phoneRequirement: IkasCheckoutRequirement;
13
- postalCodeRequirement: IkasCheckoutRequirement | null;
14
- showCheckoutNote: boolean | null;
15
- showTermsAndConditionsCheckbox: boolean;
16
- storefrontId: string;
17
- } & IkasBaseModel;
18
- export declare enum IkasCheckoutRequirement {
19
- INVISIBLE = "INVISIBLE",
20
- MANDATORY = "MANDATORY",
21
- OPTIONAL = "OPTIONAL"
22
- }
@@ -1 +0,0 @@
1
- var I;!function(I){I.INVISIBLE="INVISIBLE",I.MANDATORY="MANDATORY",I.OPTIONAL="OPTIONAL"}(I||(I={}));export{I as IkasCheckoutRequirement};
@@ -1,4 +0,0 @@
1
- export declare type IkasCheckoutOption = {
2
- name: string;
3
- required: boolean;
4
- };