@ikas/storefront 2.0.74-alpha.1 → 3.0.0-alpha.1

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 (249) hide show
  1. package/build/__generated__/global-types.d.ts +15 -72
  2. package/build/__generated__/global-types.js +1 -1
  3. package/build/_virtual/index.js_commonjs-proxy2.js +1 -1
  4. package/build/_virtual/index.js_commonjs-proxy4.js +1 -1
  5. package/build/analytics/analytics.d.ts +2 -3
  6. package/build/analytics/analytics.js +1 -1
  7. package/build/analytics/events.d.ts +1 -2
  8. package/build/analytics/events.js +1 -1
  9. package/build/analytics/googleTagManager.d.ts +0 -2
  10. package/build/analytics/googleTagManager.js +1 -1
  11. package/build/analytics/head/index.js +1 -1
  12. package/build/analytics/ikas.js +1 -1
  13. package/build/api/blog/__generated__/getBlog.d.ts +5 -1
  14. package/build/api/blog/__generated__/listBlog.d.ts +5 -1
  15. package/build/api/blog/__generated__/listBlogCategory.d.ts +5 -1
  16. package/build/api/blog/__generated__/listBlogMetaData.d.ts +5 -3
  17. package/build/api/blog/index.js +1 -1
  18. package/build/api/brand/index.js +1 -1
  19. package/build/api/cart/__generated__/getCart.d.ts +4 -2
  20. package/build/api/cart/__generated__/saveItemToCart.d.ts +4 -25
  21. package/build/api/cart/index.d.ts +1 -3
  22. package/build/api/cart/index.js +1 -1
  23. package/build/api/category/__generated__/listCategoryPaths.d.ts +0 -19
  24. package/build/api/category/index.js +1 -1
  25. package/build/api/checkout/__generated__/addCouponCodeToCheckout.d.ts +1 -1
  26. package/build/api/checkout/__generated__/getCheckoutById.d.ts +4 -2
  27. package/build/api/checkout/__generated__/getOrder.d.ts +12 -6
  28. package/build/api/checkout/index.d.ts +1 -7
  29. package/build/api/checkout/index.js +1 -1
  30. package/build/api/contact-form/__generated__/sendContactFormToMerchant.d.ts +0 -1
  31. package/build/api/contact-form/index.d.ts +1 -2
  32. package/build/api/contact-form/index.js +1 -1
  33. package/build/api/customer/__generated__/createOrderRefundRequest.d.ts +13 -7
  34. package/build/api/customer/__generated__/customerLogin.d.ts +2 -8
  35. package/build/api/customer/__generated__/customerSocialLogin.d.ts +2 -8
  36. package/build/api/customer/__generated__/getCustomerOrders.d.ts +12 -6
  37. package/build/api/customer/__generated__/getMyCustomer.d.ts +3 -13
  38. package/build/api/customer/__generated__/registerCustomer.d.ts +3 -14
  39. package/build/api/customer/__generated__/saveMyCustomer.d.ts +3 -13
  40. package/build/api/customer/index.d.ts +1 -3
  41. package/build/api/customer/index.js +1 -1
  42. package/build/api/customer-review/__generated__/listCustomerReviews.d.ts +5 -1
  43. package/build/api/customer-review/index.js +1 -1
  44. package/build/api/favorite-product/index.js +1 -1
  45. package/build/api/html-meta-data/__generated__/listHTMLMetaData.d.ts +0 -8
  46. package/build/api/html-meta-data/index.js +1 -1
  47. package/build/api/index.d.ts +0 -1
  48. package/build/api/merchant/__generated__/listMerchantSettings.d.ts +0 -11
  49. package/build/api/merchant/index.js +1 -1
  50. package/build/api/product-option-set/__generated__/ListProductOptionSet.d.ts +0 -6
  51. package/build/api/product-search/__generated__/getProductFilterData.d.ts +0 -1
  52. package/build/api/product-search/index.d.ts +1 -19
  53. package/build/api/product-search/index.js +1 -1
  54. package/build/api/raffle/__generated__/listRaffle.d.ts +5 -1
  55. package/build/api/raffle/__generated__/listRaffleMetaData.d.ts +0 -2
  56. package/build/api/raffle/__generated__/saveRaffleParticipant.d.ts +6 -46
  57. package/build/api/raffle/index.d.ts +3 -7
  58. package/build/api/raffle/index.js +1 -1
  59. package/build/api/storefront/__generated__/getStorefront.d.ts +0 -3
  60. package/build/api/storefront/index.js +1 -1
  61. package/build/api/variant-type/__generated__/listVariantType.d.ts +6 -2
  62. package/build/assets/translations/checkout/en.js +1 -1
  63. package/build/assets/translations/checkout/tr.js +1 -1
  64. package/build/components/checkout/components/address-form/index.js +1 -1
  65. package/build/components/checkout/components/address-form/model.d.ts +0 -3
  66. package/build/components/checkout/components/address-form/model.js +1 -1
  67. package/build/components/checkout/components/cart-summary/cart-item/index.js +1 -1
  68. package/build/components/checkout/components/cart-summary/index.js +1 -1
  69. package/build/components/checkout/components/cart-summary/style.module.scss.js +1 -1
  70. package/build/components/checkout/components/credit-card-form/index.js +1 -1
  71. package/build/components/checkout/components/customer-addresses/model.js +1 -1
  72. package/build/components/checkout/components/error/index.js +1 -1
  73. package/build/components/checkout/components/error/no-shipping-error/index.d.ts +5 -3
  74. package/build/components/checkout/components/error/no-shipping-error/index.js +1 -1
  75. package/build/components/checkout/components/form-item/index.js +1 -1
  76. package/build/components/checkout/components/form-item/model.js +1 -1
  77. package/build/components/checkout/components/form-item/style.module.scss.js +1 -1
  78. package/build/components/checkout/index.d.ts +0 -1
  79. package/build/components/checkout/index.js +1 -1
  80. package/build/components/checkout/model.d.ts +3 -5
  81. package/build/components/checkout/model.js +1 -1
  82. package/build/components/checkout/steps/step-info/index.js +1 -1
  83. package/build/components/checkout/steps/step-payment/index.js +1 -1
  84. package/build/components/checkout/steps/step-shipping/index.js +1 -1
  85. package/build/components/checkout/steps/step-success/index.js +1 -1
  86. package/build/components/image/index.d.ts +3 -29
  87. package/build/components/page/head.d.ts +0 -3
  88. package/build/components/page/head.js +1 -1
  89. package/build/components/page/index.d.ts +0 -3
  90. package/build/components/page/index.js +1 -1
  91. package/build/components/page-editor/ThemeComponentEditor.js +1 -1
  92. package/build/components/page-editor/model.js +1 -1
  93. package/build/ikas.js +7 -7
  94. package/build/index.js +1 -1
  95. package/build/models/data/blog/index.d.ts +0 -2
  96. package/build/models/data/blog/index.js +1 -1
  97. package/build/models/data/category/index.d.ts +0 -2
  98. package/build/models/data/category/index.js +1 -1
  99. package/build/models/data/checkout/index.d.ts +1 -1
  100. package/build/models/data/checkout/index.js +1 -1
  101. package/build/models/data/customer/index.d.ts +0 -2
  102. package/build/models/data/customer/index.js +1 -1
  103. package/build/models/data/html-meta-data/index.d.ts +0 -2
  104. package/build/models/data/html-meta-data/index.js +1 -1
  105. package/build/models/data/image/index.d.ts +12 -3
  106. package/build/models/data/image/index.js +1 -1
  107. package/build/models/data/index.d.ts +1 -6
  108. package/build/models/data/merchant-settings/index.d.ts +0 -14
  109. package/build/models/data/merchant-settings/index.js +1 -1
  110. package/build/models/data/order/line-item/index.js +1 -1
  111. package/build/models/data/order/line-item/variant/index.d.ts +0 -7
  112. package/build/models/data/order/line-item/variant/index.js +1 -1
  113. package/build/models/data/product/index.d.ts +1 -1
  114. package/build/models/data/product/index.js +1 -1
  115. package/build/models/data/product/variant/index.d.ts +1 -0
  116. package/build/models/data/product/variant/index.js +1 -1
  117. package/build/models/data/product/variant-type/index.d.ts +0 -1
  118. package/build/models/data/product/variant-type/index.js +1 -1
  119. package/build/models/data/product-filter/index.d.ts +1 -3
  120. package/build/models/data/product-filter/index.js +1 -1
  121. package/build/models/data/product-option-set/index.js +1 -1
  122. package/build/models/data/raffle/index.d.ts +4 -12
  123. package/build/models/data/raffle/index.js +1 -1
  124. package/build/models/data/simple-product/index.d.ts +1 -1
  125. package/build/models/data/storefront/index.d.ts +0 -3
  126. package/build/models/data/storefront/index.js +1 -1
  127. package/build/models/data/storefront/theme-localization/index.js +1 -1
  128. package/build/models/theme/page/component/prop-value/product-list.d.ts +1 -2
  129. package/build/models/theme/page/component/prop-value/product-list.js +1 -1
  130. package/build/models/theme/page/index.d.ts +0 -2
  131. package/build/models/theme/page/index.js +1 -1
  132. package/build/models/theme/theme.js +1 -1
  133. package/build/models/ui/blog-category-list/index.js +1 -1
  134. package/build/models/ui/blog-list/index.js +1 -1
  135. package/build/models/ui/brand-list/index.js +1 -1
  136. package/build/models/ui/category-list/index.js +1 -1
  137. package/build/models/ui/customer-review-list/index.js +1 -1
  138. package/build/models/ui/index.d.ts +1 -2
  139. package/build/models/ui/product-detail/index.d.ts +3 -10
  140. package/build/models/ui/product-detail/index.js +1 -1
  141. package/build/models/ui/product-list/index.d.ts +1 -47
  142. package/build/models/ui/product-list/index.js +1 -1
  143. package/build/models/ui/raffle-list/index.js +1 -1
  144. package/build/models/ui/validator/form/account-info.d.ts +0 -2
  145. package/build/models/ui/validator/form/account-info.js +1 -1
  146. package/build/models/ui/validator/form/address.d.ts +0 -3
  147. package/build/models/ui/validator/form/address.js +1 -1
  148. package/build/models/ui/validator/form/contact-form.js +1 -1
  149. package/build/models/ui/validator/form/raffle-form.d.ts +0 -2
  150. package/build/models/ui/validator/form/raffle-form.js +1 -1
  151. package/build/models/ui/validator/form/register.d.ts +0 -4
  152. package/build/models/ui/validator/form/register.js +1 -1
  153. package/build/models/ui/validator/rules/index.d.ts +0 -5
  154. package/build/models/ui/validator/rules/index.js +1 -1
  155. package/build/pages/404.js +1 -1
  156. package/build/pages/_slug_/index.js +1 -1
  157. package/build/pages/account/addresses.js +1 -1
  158. package/build/pages/account/favorite-products.js +1 -1
  159. package/build/pages/account/forgot-password.js +1 -1
  160. package/build/pages/account/index.js +1 -1
  161. package/build/pages/account/login.js +1 -1
  162. package/build/pages/account/orders/_id_.js +1 -1
  163. package/build/pages/account/orders/index.js +1 -1
  164. package/build/pages/account/raffles.js +1 -1
  165. package/build/pages/account/recover-password.js +1 -1
  166. package/build/pages/account/register.js +1 -1
  167. package/build/pages/blog/_slug_.js +1 -1
  168. package/build/pages/blog/index.js +1 -1
  169. package/build/pages/cart.js +1 -1
  170. package/build/pages/checkout.js +1 -1
  171. package/build/pages/editor.js +1 -1
  172. package/build/pages/home.js +1 -1
  173. package/build/pages/pages/_slug_.js +1 -1
  174. package/build/pages/raffle/_slug_.js +1 -1
  175. package/build/pages/raffle/index.js +1 -1
  176. package/build/pages/search.js +1 -1
  177. package/build/providers/helpers/raffles.d.ts +1 -2
  178. package/build/providers/helpers/raffles.js +1 -1
  179. package/build/providers/page-data-get.d.ts +1 -9
  180. package/build/providers/page-data-get.js +1 -1
  181. package/build/providers/page-data-init.js +1 -1
  182. package/build/providers/page-data-next.d.ts +0 -36
  183. package/build/providers/page-data-next.js +1 -1
  184. package/build/providers/placeholders.js +1 -1
  185. package/build/providers/prop-value/attribute-list.js +1 -1
  186. package/build/providers/prop-value/attribute.js +1 -1
  187. package/build/providers/prop-value/blog-category-list.js +1 -1
  188. package/build/providers/prop-value/blog-category.js +1 -1
  189. package/build/providers/prop-value/blog-list.js +1 -1
  190. package/build/providers/prop-value/blog.js +1 -1
  191. package/build/providers/prop-value/brand-list.js +1 -1
  192. package/build/providers/prop-value/brand.js +1 -1
  193. package/build/providers/prop-value/category-list.js +1 -1
  194. package/build/providers/prop-value/category.js +1 -1
  195. package/build/providers/prop-value/custom.js +1 -1
  196. package/build/providers/prop-value/image-list.js +1 -1
  197. package/build/providers/prop-value/image.js +1 -1
  198. package/build/providers/prop-value/link.js +1 -1
  199. package/build/providers/prop-value/product-detail.js +1 -1
  200. package/build/providers/prop-value/product-list.d.ts +0 -6
  201. package/build/providers/prop-value/product-list.js +1 -1
  202. package/build/providers/prop-value/raffle-list.js +1 -1
  203. package/build/providers/prop-value/raffle.js +1 -1
  204. package/build/scripts/generators/types/index.js +1 -1
  205. package/build/store/base.d.ts +0 -2
  206. package/build/store/base.js +1 -1
  207. package/build/store/cart.d.ts +2 -24
  208. package/build/store/cart.js +1 -1
  209. package/build/store/customer.d.ts +3 -7
  210. package/build/store/customer.js +1 -1
  211. package/build/storefront/index.d.ts +2 -9
  212. package/build/storefront/index.js +1 -1
  213. package/build/utils/currency.d.ts +2 -2
  214. package/build/utils/currency.js +1 -1
  215. package/build/utils/helper.d.ts +0 -1
  216. package/build/utils/helper.js +1 -1
  217. package/build/utils/i18n.js +1 -1
  218. package/package.json +3 -1
  219. package/build/analytics/googleAnalytics.d.ts +0 -13
  220. package/build/analytics/googleAnalytics.js +0 -1
  221. package/build/analytics/googleUniversal.d.ts +0 -9
  222. package/build/analytics/googleUniversal.js +0 -1
  223. package/build/analytics/tiktokPixel.d.ts +0 -13
  224. package/build/analytics/tiktokPixel.js +0 -1
  225. package/build/api/customer/__generated__/getOrderByEmail.d.ts +0 -615
  226. package/build/api/customer-attribute/__generated__/listCustomerAttribute.d.ts +0 -44
  227. package/build/api/customer-attribute/index.d.ts +0 -4
  228. package/build/api/customer-attribute/index.js +0 -1
  229. package/build/api/customer-review-summary/__generated__/listCustomerReviewSummary.d.ts +0 -55
  230. package/build/api/customer-review-summary/index.d.ts +0 -21
  231. package/build/api/customer-review-summary/index.js +0 -1
  232. package/build/api/product-search/__generated__/getRelatedProducts.d.ts +0 -14
  233. package/build/api/raffle/__generated__/listRaffleParticipants.d.ts +0 -67
  234. package/build/api/raffle/__generated__/listStorefrontRaffle.d.ts +0 -82
  235. package/build/assets/translations/checkout/de.js +0 -1
  236. package/build/models/data/customer/attribute-value/index.d.ts +0 -9
  237. package/build/models/data/customer/attribute-value/index.js +0 -1
  238. package/build/models/data/customer-attribute/customer-attribute-option/index.d.ts +0 -5
  239. package/build/models/data/customer-attribute/customer-attribute-option/index.js +0 -1
  240. package/build/models/data/customer-attribute/customer-attribute-sales-channel/index.d.ts +0 -17
  241. package/build/models/data/customer-attribute/customer-attribute-sales-channel/index.js +0 -1
  242. package/build/models/data/customer-attribute/index.d.ts +0 -35
  243. package/build/models/data/customer-attribute/index.js +0 -1
  244. package/build/models/data/customer-review-summary/index.d.ts +0 -16
  245. package/build/models/data/customer-review-summary/index.js +0 -1
  246. package/build/models/ui/customer-review-summary-list/index.d.ts +0 -43
  247. package/build/models/ui/customer-review-summary-list/index.js +0 -1
  248. package/build/utils/constants.d.ts +0 -2
  249. package/build/utils/constants.js +0 -1
@@ -1 +1 @@
1
- import{__awaiter as t,__generator as e,__makeTemplateObject as i,__assign as o}from'../../ext/tslib/tslib.es6.js';import r from'../../ext/graphql-tag/src/index.js';import{apollo as n}from"../apollo.js";import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import"../../models/data/category/index.js";import"../../models/data/checkout/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/index.js";import{IkasCustomerReview as s}from"../../models/data/customer-review/index.js";import"mobx";import"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import"../../models/data/installment-info/index.js";import"../../models/data/merchant-settings/index.js";import"../../models/data/order/index.js";import"../../models/data/order/line-item/index.js";import"../product-option-file/index.js";import"../../models/data/product/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product-attribute/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product-filter/index.js";import"../../models/data/variant-type/variant-value/index.js";import"../../models/data/order-transaction/index.js";import"../../models/data/product-option-set/index.js";import"../../models/data/raffle/index.js";import"../../models/data/product-campaing/campaign/index.js";import"../../models/data/customer-attribute/index.js";import"../../models/data/customer-attribute/customer-attribute-sales-channel/index.js";import"../../models/theme/theme.js";import"../../models/theme/page/index.js";import"../../models/theme/component/prop/index.js";import"../../models/theme/page/component/prop-value/link.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/category-list/index.js";import"../../models/ui/product-detail/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/customer-review-summary-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import"../../models/theme/settings/index.js";import"../../models/theme/custom-data/index.js";var a,d,m=function(){function m(){}return m.listCustomerReviews=function(o){return t(this,void 0,void 0,(function(){var t,d,m,u,l;return e(this,(function(e){switch(e.label){case 0:t=r(a||(a=i(["\n query listCustomerReviews(\n $input: ListCustomerReviewInput!\n $productId: String\n $pagination: PaginationInput\n ) {\n listCustomerReviews(\n input: $input\n productId: $productId\n pagination: $pagination\n ) {\n count\n data {\n comment\n createdAt\n id\n star\n title\n imageIds\n }\n hasNext\n limit\n page\n }\n }\n "],["\n query listCustomerReviews(\n $input: ListCustomerReviewInput!\n $productId: String\n $pagination: PaginationInput\n ) {\n listCustomerReviews(\n input: $input\n productId: $productId\n pagination: $pagination\n ) {\n count\n data {\n comment\n createdAt\n id\n star\n title\n imageIds\n }\n hasNext\n limit\n page\n }\n }\n "]))),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,n.getClient().query({query:t,variables:{input:{salesChannelId:o.salesChannelId},productId:o.productId,pagination:{page:o.page,limit:o.limit}}})];case 2:return d=e.sent(),m=d.data,(u=d.errors)&&u.length?[2,{data:[],count:0}]:[2,{data:m.listCustomerReviews.data.map((function(t){return new s(t)})),count:m.listCustomerReviews.count}];case 3:return l=e.sent(),console.log(l),[2,{data:[],count:0}];case 4:return[2]}}))}))},m.createCustomerReview=function(s){return t(this,void 0,void 0,(function(){var t,a,m,u,l;return e(this,(function(e){switch(e.label){case 0:t=r(d||(d=i(["\n mutation createCustomerReview($input: CreateCustomerReviewInput!) {\n createCustomerReview(input: $input) {\n id\n }\n }\n "],["\n mutation createCustomerReview($input: CreateCustomerReviewInput!) {\n createCustomerReview(input: $input) {\n id\n }\n }\n "]))),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,n.getClient().mutate({mutation:t,variables:{input:o({},s)}})];case 2:return a=e.sent(),m=a.data,(u=a.errors)&&u.length?[2,!1]:[2,null==m?void 0:m.createCustomerReview];case 3:return l=e.sent(),console.log(l),[3,4];case 4:return[2]}}))}))},m}();export{m as IkasCustomerReviewAPI};
1
+ import{__awaiter as t,__generator as e,__makeTemplateObject as i,__assign as o}from'../../ext/tslib/tslib.es6.js';import n from'../../ext/graphql-tag/src/index.js';import{apollo as r}from"../apollo.js";import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import"../../models/data/category/index.js";import"../../models/data/checkout/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/index.js";import{IkasCustomerReview as s}from"../../models/data/customer-review/index.js";import"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import"../../models/data/installment-info/index.js";import"../../models/data/order/index.js";import"../../models/data/order/line-item/index.js";import"mobx";import"../product-option-file/index.js";import"../../models/data/product/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product-attribute/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product-filter/index.js";import"../../models/data/variant-type/variant-value/index.js";import"../../models/data/order-transaction/index.js";import"../../models/data/product-option-set/index.js";import"../../models/data/raffle/index.js";import"../../models/data/product-campaing/campaign/index.js";import"../../models/theme/theme.js";import"../../models/theme/page/index.js";import"../../models/theme/component/prop/index.js";import"../../models/theme/page/component/prop-value/link.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/category-list/index.js";import"../../models/ui/product-detail/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import"../../models/theme/settings/index.js";import"../../models/theme/custom-data/index.js";var a,d,m=function(){function m(){}return m.listCustomerReviews=function(o){return t(this,void 0,void 0,(function(){var t,d,m,u,l;return e(this,(function(e){switch(e.label){case 0:t=n(a||(a=i(["\n query listCustomerReviews(\n $input: ListCustomerReviewInput!\n $productId: String\n $pagination: PaginationInput\n ) {\n listCustomerReviews(\n input: $input\n productId: $productId\n pagination: $pagination\n ) {\n count\n data {\n comment\n createdAt\n id\n star\n title\n imageIds\n }\n hasNext\n limit\n page\n }\n }\n "],["\n query listCustomerReviews(\n $input: ListCustomerReviewInput!\n $productId: String\n $pagination: PaginationInput\n ) {\n listCustomerReviews(\n input: $input\n productId: $productId\n pagination: $pagination\n ) {\n count\n data {\n comment\n createdAt\n id\n star\n title\n imageIds\n }\n hasNext\n limit\n page\n }\n }\n "]))),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,r.getClient().query({query:t,variables:{input:{salesChannelId:o.salesChannelId},productId:o.productId,pagination:{page:o.page,limit:o.limit}}})];case 2:return d=e.sent(),m=d.data,(u=d.errors)&&u.length?[2,{data:[],count:0}]:[2,{data:m.listCustomerReviews.data.map((function(t){return new s(t)})),count:m.listCustomerReviews.count}];case 3:return l=e.sent(),console.log(l),[2,{data:[],count:0}];case 4:return[2]}}))}))},m.createCustomerReview=function(s){return t(this,void 0,void 0,(function(){var t,a,m,u,l;return e(this,(function(e){switch(e.label){case 0:t=n(d||(d=i(["\n mutation createCustomerReview($input: CreateCustomerReviewInput!) {\n createCustomerReview(input: $input) {\n id\n }\n }\n "],["\n mutation createCustomerReview($input: CreateCustomerReviewInput!) {\n createCustomerReview(input: $input) {\n id\n }\n }\n "]))),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,r.getClient().mutate({mutation:t,variables:{input:o({},s)}})];case 2:return a=e.sent(),m=a.data,(u=a.errors)&&u.length?[2,!1]:[2,null==m?void 0:m.createCustomerReview];case 3:return l=e.sent(),console.log(l),[3,4];case 4:return[2]}}))}))},m}();export{m as IkasCustomerReviewAPI};
@@ -1 +1 @@
1
- import{__awaiter as t,__generator as e,__makeTemplateObject as o}from'../../ext/tslib/tslib.es6.js';import r from'../../ext/graphql-tag/src/index.js';import{apollo as i}from"../apollo.js";import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import"../../models/data/category/index.js";import"../../models/data/checkout/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/index.js";import"../../models/data/customer-review/index.js";import"mobx";import"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import"../../models/data/installment-info/index.js";import"../../models/data/merchant-settings/index.js";import"../../models/data/order/index.js";import"../../models/data/order/line-item/index.js";import"../product-option-file/index.js";import"../../models/data/product/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product-attribute/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product-filter/index.js";import{IkasFavoriteProduct as d}from"../../models/data/favorite-product/index.js";import"../../models/data/variant-type/variant-value/index.js";import"../../models/data/order-transaction/index.js";import"../../models/data/product-option-set/index.js";import"../../models/data/raffle/index.js";import"../../models/data/product-campaing/campaign/index.js";import"../../models/data/customer-attribute/index.js";import"../../models/data/customer-attribute/customer-attribute-sales-channel/index.js";import"../../models/theme/theme.js";import"../../models/theme/page/index.js";import"../../models/theme/component/prop/index.js";import"../../models/theme/page/component/prop-value/link.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/category-list/index.js";import"../../models/ui/product-detail/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/customer-review-summary-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import"../../models/theme/settings/index.js";import"../../models/theme/custom-data/index.js";var s,a,n,m=function(){function m(){}return m.listFavoriteProducts=function(){return t(this,void 0,void 0,(function(){var t,a,n,m,u;return e(this,(function(e){switch(e.label){case 0:t=r(s||(s=o(["\n query listFavoriteProducts {\n listFavoriteProducts {\n id\n createdAt\n updatedAt\n deleted\n productId\n customerId\n }\n }\n "],["\n query listFavoriteProducts {\n listFavoriteProducts {\n id\n createdAt\n updatedAt\n deleted\n productId\n customerId\n }\n }\n "]))),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,i.getClient().query({query:t})];case 2:return a=e.sent(),n=a.data,(m=a.errors)&&m.length?[2,[]]:[2,n.listFavoriteProducts.map((function(t){return new d(t)}))];case 3:return u=e.sent(),console.log(u),[3,4];case 4:return[2,[]]}}))}))},m.isFavoriteProduct=function(d){return t(this,void 0,void 0,(function(){var t,s,n,m,u;return e(this,(function(e){switch(e.label){case 0:t=r(a||(a=o(["\n query isFavoriteProduct($productId: String!) {\n isFavoriteProduct(productId: $productId)\n }\n "],["\n query isFavoriteProduct($productId: String!) {\n isFavoriteProduct(productId: $productId)\n }\n "]))),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,i.getClient().query({query:t,variables:{productId:d}})];case 2:return s=e.sent(),n=s.data,(m=s.errors)&&m.length?[2,!1]:[2,n.isFavoriteProduct];case 3:return u=e.sent(),console.log(u),[3,4];case 4:return[2,!1]}}))}))},m.saveFavoriteProduct=function(d,s){return t(this,void 0,void 0,(function(){var t,a,m,u,l;return e(this,(function(e){switch(e.label){case 0:t=r(n||(n=o(["\n mutation saveFavoriteProduct($isFavorite: Boolean!, $productId: String!) {\n saveFavoriteProduct(isFavorite: $isFavorite, productId: $productId)\n }\n "],["\n mutation saveFavoriteProduct($isFavorite: Boolean!, $productId: String!) {\n saveFavoriteProduct(isFavorite: $isFavorite, productId: $productId)\n }\n "]))),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,i.getClient().mutate({mutation:t,variables:{isFavorite:d,productId:s}})];case 2:return a=e.sent(),m=a.data,(u=a.errors)&&u.length?[2,!1]:[2,(null==m?void 0:m.saveFavoriteProduct)||!0];case 3:return l=e.sent(),console.log(l),[3,4];case 4:return[2,!1]}}))}))},m}();export{m as IkasFavoriteProductAPI};
1
+ import{__awaiter as t,__generator as o,__makeTemplateObject as e}from'../../ext/tslib/tslib.es6.js';import r from'../../ext/graphql-tag/src/index.js';import{apollo as i}from"../apollo.js";import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import"../../models/data/category/index.js";import"../../models/data/checkout/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/index.js";import"../../models/data/customer-review/index.js";import"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import"../../models/data/installment-info/index.js";import"../../models/data/order/index.js";import"../../models/data/order/line-item/index.js";import"mobx";import"../product-option-file/index.js";import"../../models/data/product/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product-attribute/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product-filter/index.js";import{IkasFavoriteProduct as d}from"../../models/data/favorite-product/index.js";import"../../models/data/variant-type/variant-value/index.js";import"../../models/data/order-transaction/index.js";import"../../models/data/product-option-set/index.js";import"../../models/data/raffle/index.js";import"../../models/data/product-campaing/campaign/index.js";import"../../models/theme/theme.js";import"../../models/theme/page/index.js";import"../../models/theme/component/prop/index.js";import"../../models/theme/page/component/prop-value/link.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/category-list/index.js";import"../../models/ui/product-detail/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import"../../models/theme/settings/index.js";import"../../models/theme/custom-data/index.js";var s,a,n,m=function(){function m(){}return m.listFavoriteProducts=function(){return t(this,void 0,void 0,(function(){var t,a,n,m,u;return o(this,(function(o){switch(o.label){case 0:t=r(s||(s=e(["\n query listFavoriteProducts {\n listFavoriteProducts {\n id\n createdAt\n updatedAt\n deleted\n productId\n customerId\n }\n }\n "],["\n query listFavoriteProducts {\n listFavoriteProducts {\n id\n createdAt\n updatedAt\n deleted\n productId\n customerId\n }\n }\n "]))),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,i.getClient().query({query:t})];case 2:return a=o.sent(),n=a.data,(m=a.errors)&&m.length?[2,[]]:[2,n.listFavoriteProducts.map((function(t){return new d(t)}))];case 3:return u=o.sent(),console.log(u),[3,4];case 4:return[2,[]]}}))}))},m.isFavoriteProduct=function(d){return t(this,void 0,void 0,(function(){var t,s,n,m,u;return o(this,(function(o){switch(o.label){case 0:t=r(a||(a=e(["\n query isFavoriteProduct($productId: String!) {\n isFavoriteProduct(productId: $productId)\n }\n "],["\n query isFavoriteProduct($productId: String!) {\n isFavoriteProduct(productId: $productId)\n }\n "]))),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,i.getClient().query({query:t,variables:{productId:d}})];case 2:return s=o.sent(),n=s.data,(m=s.errors)&&m.length?[2,!1]:[2,n.isFavoriteProduct];case 3:return u=o.sent(),console.log(u),[3,4];case 4:return[2,!1]}}))}))},m.saveFavoriteProduct=function(d,s){return t(this,void 0,void 0,(function(){var t,a,m,u,l;return o(this,(function(o){switch(o.label){case 0:t=r(n||(n=e(["\n mutation saveFavoriteProduct($isFavorite: Boolean!, $productId: String!) {\n saveFavoriteProduct(isFavorite: $isFavorite, productId: $productId)\n }\n "],["\n mutation saveFavoriteProduct($isFavorite: Boolean!, $productId: String!) {\n saveFavoriteProduct(isFavorite: $isFavorite, productId: $productId)\n }\n "]))),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,i.getClient().mutate({mutation:t,variables:{isFavorite:d,productId:s}})];case 2:return a=o.sent(),m=a.data,(u=a.errors)&&u.length?[2,!1]:[2,(null==m?void 0:m.saveFavoriteProduct)||!0];case 3:return l=o.sent(),console.log(l),[3,4];case 4:return[2,!1]}}))}))},m}();export{m as IkasFavoriteProductAPI};
@@ -22,14 +22,6 @@ export interface listHTMLMetaData_listHTMLMetaData {
22
22
  targetId: string | null;
23
23
  targetType: HTMLMetaDataTargetTypeEnum | null;
24
24
  redirectTo: string | null;
25
- /**
26
- * Canonical URL list of entity.
27
- */
28
- canonicals: string[] | null;
29
- /**
30
- * Defines if the entity is not indexable by search engines
31
- */
32
- disableIndex: boolean | null;
33
25
  /**
34
26
  * The translations information of the metadata.
35
27
  */
@@ -1 +1 @@
1
- import{__awaiter as t,__generator as e,__makeTemplateObject as i}from'../../ext/tslib/tslib.es6.js';import o from'../../ext/graphql-tag/src/index.js';import{apollo as a}from"../apollo.js";import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import"../../models/data/category/index.js";import"../../models/data/checkout/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/index.js";import"../../models/data/customer-review/index.js";import"mobx";import{IkasHTMLMetaData as r}from"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import"../../models/data/installment-info/index.js";import"../../models/data/merchant-settings/index.js";import"../../models/data/order/index.js";import"../../models/data/order/line-item/index.js";import"../product-option-file/index.js";import"../../models/data/product/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product-attribute/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product-filter/index.js";import"../../models/data/variant-type/variant-value/index.js";import"../../models/data/order-transaction/index.js";import"../../models/data/product-option-set/index.js";import"../../models/data/raffle/index.js";import"../../models/data/product-campaing/campaign/index.js";import"../../models/data/customer-attribute/index.js";import"../../models/data/customer-attribute/customer-attribute-sales-channel/index.js";import"../../models/theme/theme.js";import"../../models/theme/page/index.js";import"../../models/theme/component/prop/index.js";import"../../models/theme/page/component/prop-value/link.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/category-list/index.js";import"../../models/ui/product-detail/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/customer-review-summary-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import"../../models/theme/settings/index.js";import"../../models/theme/custom-data/index.js";var n,s=function(){function s(){}return s.listHTMLMetaData=function(s,d,m,l,p){return void 0===l&&(l=1),void 0===p&&(p=200),t(this,void 0,void 0,(function(){var t,u,g,c,j;return e(this,(function(e){switch(e.label){case 0:t=o(n||(n=i(["\n query listHTMLMetaData(\n $slug: StringFilterInput\n $targetId: StringFilterInput\n $targetType: HTMLMetaDataTargetTypeEnumFilter\n $pagination: PaginationInput\n ) {\n listHTMLMetaData(\n slug: $slug\n targetId: $targetId\n targetType: $targetType\n pagination: $pagination\n ) {\n slug\n pageTitle\n description\n targetId\n targetType\n redirectTo\n canonicals\n disableIndex\n translations {\n description\n locale\n pageTitle\n }\n }\n }\n "],["\n query listHTMLMetaData(\n $slug: StringFilterInput\n $targetId: StringFilterInput\n $targetType: HTMLMetaDataTargetTypeEnumFilter\n $pagination: PaginationInput\n ) {\n listHTMLMetaData(\n slug: $slug\n targetId: $targetId\n targetType: $targetType\n pagination: $pagination\n ) {\n slug\n pageTitle\n description\n targetId\n targetType\n redirectTo\n canonicals\n disableIndex\n translations {\n description\n locale\n pageTitle\n }\n }\n }\n "]))),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,a.getClient().query({query:t,variables:{slug:s?{eq:s}:void 0,targetId:d?{in:d}:void 0,targetType:m?{in:m}:void 0,pagination:{page:l,limit:p}}})];case 2:return u=e.sent(),g=u.data,(c=u.errors)&&c.length?[2,[]]:[2,g.listHTMLMetaData.map((function(t){return new r(t)}))];case 3:return j=e.sent(),console.log(j),[2,[]];case 4:return[2]}}))}))},s}();export{s as IkasHTMLMetaDataAPI};
1
+ import{__awaiter as t,__generator as e,__makeTemplateObject as i}from'../../ext/tslib/tslib.es6.js';import o from'../../ext/graphql-tag/src/index.js';import{apollo as r}from"../apollo.js";import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import"../../models/data/category/index.js";import"../../models/data/checkout/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/index.js";import"../../models/data/customer-review/index.js";import{IkasHTMLMetaData as a}from"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import"../../models/data/installment-info/index.js";import"../../models/data/order/index.js";import"../../models/data/order/line-item/index.js";import"mobx";import"../product-option-file/index.js";import"../../models/data/product/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product-attribute/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product-filter/index.js";import"../../models/data/variant-type/variant-value/index.js";import"../../models/data/order-transaction/index.js";import"../../models/data/product-option-set/index.js";import"../../models/data/raffle/index.js";import"../../models/data/product-campaing/campaign/index.js";import"../../models/theme/theme.js";import"../../models/theme/page/index.js";import"../../models/theme/component/prop/index.js";import"../../models/theme/page/component/prop-value/link.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/category-list/index.js";import"../../models/ui/product-detail/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import"../../models/theme/settings/index.js";import"../../models/theme/custom-data/index.js";var n,d=function(){function d(){}return d.listHTMLMetaData=function(d,s,m,l,p){return void 0===l&&(l=1),void 0===p&&(p=200),t(this,void 0,void 0,(function(){var t,u,g,c,j;return e(this,(function(e){switch(e.label){case 0:t=o(n||(n=i(["\n query listHTMLMetaData(\n $slug: StringFilterInput\n $targetId: StringFilterInput\n $targetType: HTMLMetaDataTargetTypeEnumFilter\n $pagination: PaginationInput\n ) {\n listHTMLMetaData(\n slug: $slug\n targetId: $targetId\n targetType: $targetType\n pagination: $pagination\n ) {\n slug\n pageTitle\n description\n targetId\n targetType\n redirectTo\n translations {\n description\n locale\n pageTitle\n }\n }\n }\n "],["\n query listHTMLMetaData(\n $slug: StringFilterInput\n $targetId: StringFilterInput\n $targetType: HTMLMetaDataTargetTypeEnumFilter\n $pagination: PaginationInput\n ) {\n listHTMLMetaData(\n slug: $slug\n targetId: $targetId\n targetType: $targetType\n pagination: $pagination\n ) {\n slug\n pageTitle\n description\n targetId\n targetType\n redirectTo\n translations {\n description\n locale\n pageTitle\n }\n }\n }\n "]))),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,r.getClient().query({query:t,variables:{slug:d?{eq:d}:void 0,targetId:s?{in:s}:void 0,targetType:m?{in:m}:void 0,pagination:{page:l,limit:p}}})];case 2:return u=e.sent(),g=u.data,(c=u.errors)&&c.length?[2,[]]:[2,g.listHTMLMetaData.map((function(t){return new a(t)}))];case 3:return j=e.sent(),console.log(j),[2,[]];case 4:return[2]}}))}))},d}();export{d as IkasHTMLMetaDataAPI};
@@ -7,7 +7,6 @@ export { IkasCityAPI } from "./city";
7
7
  export { IkasCountryAPI } from "./country";
8
8
  export { IkasCustomerAPI } from "./customer";
9
9
  export { IkasCustomerReviewAPI } from "./customer-review";
10
- export { IkasCustomerReviewSummaryAPI } from "./customer-review-summary";
11
10
  export { IkasDistrictAPI } from "./district";
12
11
  export { IkasHTMLMetaDataAPI } from "./html-meta-data";
13
12
  export { IkasMerchantAPI } from "./merchant";
@@ -1,19 +1,8 @@
1
- import { CurrencyFormatSymbolPosition } from "./../../../__generated__/global-types";
2
- export interface listMerchantSettings_listMerchantSettings_currencyFormats {
3
- __typename: "MerchantSettingsCurrencyFormat";
4
- currencyCode: string;
5
- omitZeroDecimal: boolean;
6
- decimalSeparator: string;
7
- symbol: string;
8
- symbolPosition: CurrencyFormatSymbolPosition;
9
- thousandSeparator: string;
10
- }
11
1
  export interface listMerchantSettings_listMerchantSettings {
12
2
  __typename: "MerchantSettings";
13
3
  id: string;
14
4
  logoId: string | null;
15
5
  merchantName: string;
16
- currencyFormats: listMerchantSettings_listMerchantSettings_currencyFormats[] | null;
17
6
  }
18
7
  export interface listMerchantSettings {
19
8
  listMerchantSettings: listMerchantSettings_listMerchantSettings[];
@@ -1 +1 @@
1
- import{__awaiter as t,__generator as e,__makeTemplateObject as o}from'../../ext/tslib/tslib.es6.js';import i from'../../ext/graphql-tag/src/index.js';import{apollo as r}from"../apollo.js";import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import"../../models/data/category/index.js";import"../../models/data/checkout/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/index.js";import"../../models/data/customer-review/index.js";import"mobx";import"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import"../../models/data/installment-info/index.js";import{IkasMerchantSettings as s}from"../../models/data/merchant-settings/index.js";import"../../models/data/order/index.js";import"../../models/data/order/line-item/index.js";import"../product-option-file/index.js";import"../../models/data/product/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product-attribute/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product-filter/index.js";import"../../models/data/variant-type/variant-value/index.js";import"../../models/data/order-transaction/index.js";import"../../models/data/product-option-set/index.js";import"../../models/data/raffle/index.js";import"../../models/data/product-campaing/campaign/index.js";import"../../models/data/customer-attribute/index.js";import"../../models/data/customer-attribute/customer-attribute-sales-channel/index.js";import"../../models/theme/theme.js";import"../../models/theme/page/index.js";import"../../models/theme/component/prop/index.js";import"../../models/theme/page/component/prop-value/link.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/category-list/index.js";import"../../models/ui/product-detail/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/customer-review-summary-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import"../../models/theme/settings/index.js";import"../../models/theme/custom-data/index.js";var d,m=function(){function m(){}return m.listMerchantSettings=function(){return t(this,void 0,void 0,(function(){var t,m,a,n;return e(this,(function(e){switch(e.label){case 0:t=i(d||(d=o(["\n query listMerchantSettings {\n listMerchantSettings {\n id\n logoId\n merchantName\n currencyFormats {\n currencyCode\n omitZeroDecimal\n decimalSeparator\n symbol\n symbolPosition\n thousandSeparator\n }\n }\n }\n "],["\n query listMerchantSettings {\n listMerchantSettings {\n id\n logoId\n merchantName\n currencyFormats {\n currencyCode\n omitZeroDecimal\n decimalSeparator\n symbol\n symbolPosition\n thousandSeparator\n }\n }\n }\n "]))),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,r.getClient().query({query:t})];case 2:return m=e.sent(),a=m.data,(n=m.errors)&&n.length||!a||!a.listMerchantSettings.length?[2]:[2,new s(a.listMerchantSettings[0])];case 3:return e.sent(),[3,4];case 4:return[2]}}))}))},m}();export{m as IkasMerchantAPI};
1
+ import{__awaiter as t,__generator as e,__makeTemplateObject as o}from'../../ext/tslib/tslib.es6.js';import i from'../../ext/graphql-tag/src/index.js';import{apollo as r}from"../apollo.js";import"../../models/data/blog/index.js";import"../../models/data/brand/index.js";import"../../models/data/category/index.js";import"../../models/data/checkout/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/index.js";import"../../models/data/customer-review/index.js";import"../../models/data/html-meta-data/index.js";import"../../models/data/image/index.js";import"../../models/data/installment-info/index.js";import{IkasMerchantSettings as s}from"../../models/data/merchant-settings/index.js";import"../../models/data/order/index.js";import"../../models/data/order/line-item/index.js";import"mobx";import"../product-option-file/index.js";import"../../models/data/product/index.js";import"../../models/data/variant-type/index.js";import"../../models/data/product/variant/index.js";import"../../models/data/product/variant/price/index.js";import"../../models/data/product-attribute/index.js";import"../../models/data/product/attribute-value/index.js";import"../../models/data/product-filter/index.js";import"../../models/data/variant-type/variant-value/index.js";import"../../models/data/order-transaction/index.js";import"../../models/data/product-option-set/index.js";import"../../models/data/raffle/index.js";import"../../models/data/product-campaing/campaign/index.js";import"../../models/theme/theme.js";import"../../models/theme/page/index.js";import"../../models/theme/component/prop/index.js";import"../../models/theme/page/component/prop-value/link.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/category-list/index.js";import"../../models/ui/product-detail/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import"../../models/theme/settings/index.js";import"../../models/theme/custom-data/index.js";var d,m=function(){function m(){}return m.listMerchantSettings=function(){return t(this,void 0,void 0,(function(){var t,m,a,n;return e(this,(function(e){switch(e.label){case 0:t=i(d||(d=o(["\n query listMerchantSettings {\n listMerchantSettings {\n id\n logoId\n merchantName\n }\n }\n "],["\n query listMerchantSettings {\n listMerchantSettings {\n id\n logoId\n merchantName\n }\n }\n "]))),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,r.getClient().query({query:t})];case 2:return m=e.sent(),a=m.data,(n=m.errors)&&n.length||!a||!a.listMerchantSettings.length?[2]:[2,new s(a.listMerchantSettings[0])];case 3:return e.sent(),[3,4];case 4:return[2]}}))}))},m}();export{m as IkasMerchantAPI};
@@ -17,11 +17,6 @@ export interface ListProductOptionSet_listProductOptionSet_options_otherPrices {
17
17
  currencyCode: string;
18
18
  price: number;
19
19
  }
20
- export interface ListProductOptionSet_listProductOptionSet_options_selectSettings_values_otherPrices {
21
- __typename: "ProductOptionSelectValueOtherPrice";
22
- currencyCode: string;
23
- price: number;
24
- }
25
20
  export interface ListProductOptionSet_listProductOptionSet_options_selectSettings_values {
26
21
  __typename: "ProductOptionSelectValue";
27
22
  createdAt: any | null;
@@ -29,7 +24,6 @@ export interface ListProductOptionSet_listProductOptionSet_options_selectSetting
29
24
  id: string;
30
25
  order: number;
31
26
  price: number | null;
32
- otherPrices: ListProductOptionSet_listProductOptionSet_options_selectSettings_values_otherPrices[] | null;
33
27
  updatedAt: any | null;
34
28
  value: string;
35
29
  thumbnailImageId: string | null;
@@ -13,7 +13,6 @@ export interface getProductFilterData_getProductFilterData_filters_settings {
13
13
  showCollapsedOnMobile: boolean;
14
14
  sortType: ProductFilterSortTypeEnum;
15
15
  useAndFilter: boolean | null;
16
- customSortedValues: string[] | null;
17
16
  }
18
17
  export interface getProductFilterData_getProductFilterData_filters {
19
18
  __typename: "ProductFilterDataFilter";
@@ -1,18 +1,8 @@
1
- import { SearchDynamicCurrencySettings, SearchInput } from "../../__generated__/global-types";
1
+ import { SearchInput } from "../../__generated__/global-types";
2
2
  import { IkasProduct } from "../../models";
3
3
  import * as SearchProductTypes from "./__generated__/searchProducts";
4
4
  import { IkasProductFilter } from "../../models/data/product-filter";
5
5
  import { IkasFilterCategory } from "../../models/data/category";
6
- export declare type IkasGetRelatedProductsParams = {
7
- brandIds?: string[] | null;
8
- categoryIds?: string[] | null;
9
- dynamicCurrencySettings?: SearchDynamicCurrencySettings | null;
10
- limit?: number | null;
11
- priceListId?: string | null;
12
- productId: string;
13
- salesChannelId?: string | null;
14
- tagIds?: string[] | null;
15
- };
16
6
  export declare class IkasProductSearchAPI {
17
7
  static searchProducts(input: SearchInput, useStockFilter?: boolean): Promise<{
18
8
  data: IkasProduct[];
@@ -27,12 +17,4 @@ export declare class IkasProductSearchAPI {
27
17
  filters: IkasProductFilter[];
28
18
  categories: IkasFilterCategory[] | null;
29
19
  } | undefined>;
30
- static getRelatedProducts(params: IkasGetRelatedProductsParams): Promise<{
31
- data: IkasProduct[];
32
- count: any;
33
- facets: null;
34
- limit: number;
35
- page: number;
36
- totalCount: any;
37
- } | undefined>;
38
20
  }
@@ -1 +1 @@
1
- import{__awaiter as t,__generator as e,__assign as n,__makeTemplateObject as i}from'../../ext/tslib/tslib.es6.js';import r from'../../ext/graphql-tag/src/index.js';import{apollo as o}from"../apollo.js";import"../../models/data/blog/index.js";import{IkasBrand as a}from"../../models/data/brand/index.js";import{IkasCategory as d,IkasCategoryPath as s,IkasFilterCategory as l}from"../../models/data/category/index.js";import"../../models/data/checkout/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/index.js";import"../../models/data/customer-review/index.js";import"mobx";import{IkasHTMLMetaData as u}from"../../models/data/html-meta-data/index.js";import{IkasImage as c}from"../../models/data/image/index.js";import"../../models/data/installment-info/index.js";import"../../models/data/merchant-settings/index.js";import"../../models/data/order/index.js";import"../../models/data/order/line-item/index.js";import"../product-option-file/index.js";import{IkasProduct as m}from"../../models/data/product/index.js";import{IkasProductVariantType as p}from"../../models/data/product/variant-type/index.js";import{IkasProductVariant as v}from"../../models/data/product/variant/index.js";import{IkasProductPrice as g}from"../../models/data/product/variant/price/index.js";import{IkasProductAttribute as y}from"../../models/data/product-attribute/index.js";import{IkasProductAttributeValue as f}from"../../models/data/product/attribute-value/index.js";import{IkasProductFilter as I,IkasApplicableProductFilterValue as b,IkasProductFilterSettings as j}from"../../models/data/product-filter/index.js";import{IkasVariantType as h}from"../../models/data/variant-type/index.js";import{IkasVariantValue as x}from"../../models/data/variant-type/variant-value/index.js";import"../../models/data/order-transaction/index.js";import"../../models/data/product-option-set/index.js";import"../../models/data/raffle/index.js";import"../../models/data/product-campaing/campaign/index.js";import"../../models/data/customer-attribute/index.js";import"../../models/data/customer-attribute/customer-attribute-sales-channel/index.js";import"../../models/theme/theme.js";import"../../models/theme/page/index.js";import"../../models/theme/component/prop/index.js";import"../../models/theme/page/component/prop-value/link.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/category-list/index.js";import"../../models/ui/product-detail/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/customer-review-summary-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import{IkasThemeStockPreference as $}from"../../models/theme/settings/index.js";import"../../models/theme/custom-data/index.js";import{IkasProductTag as C}from"../../models/data/product-tag/index.js";import{IkasStorefrontConfig as S}from"../../storefront/index.js";import{IkasProductAttributeTableTemplate as w}from"../../models/data/product-attribute/product-attribute-table-template/index.js";var T,A,P,D=function(){function a(){}return a.searchProducts=function(a,d){var s;return void 0===d&&(d=!1),t(this,void 0,void 0,(function(){var t,l,u,c,m;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),t=r(T||(T=i(["\n query searchProducts($input: SearchInput!) {\n searchProducts(input: $input) {\n count\n data\n facets {\n id\n values {\n count\n id\n }\n }\n limit\n page\n totalCount\n }\n }\n "],["\n query searchProducts($input: SearchInput!) {\n searchProducts(input: $input) {\n count\n data\n facets {\n id\n values {\n count\n id\n }\n }\n limit\n page\n totalCount\n }\n }\n "]))),[4,o.getClient().query({query:t,variables:{input:n(n({},a),{showStockOption:d?S.stockPreference:$.SHOW_ALL,locale:S.getCurrentLocale(),dynamicCurrencySettings:(null===(s=S.getCurrentRouting())||void 0===s?void 0:s.dynamicCurrencySettings)||null})}})];case 1:return l=e.sent(),u=l.data,(c=l.errors)&&c.length?(console.log(c),[2]):[2,n(n({},u.searchProducts),{data:u.searchProducts.data.map((function(t){return L(t)}))})];case 2:return m=e.sent(),console.log(m),[3,3];case 3:return[2]}}))}))},a.getProductFilterData=function(a){return t(this,void 0,void 0,(function(){var t,d,s,u,c;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),t=r(A||(A=i(["\n query getProductFilterData($categoryId: String, $locale: String) {\n getProductFilterData(categoryId: $categoryId, locale: $locale) {\n filters {\n customValues\n displayType\n id\n isMultiSelect\n isFacetFilter\n key\n name\n order\n type\n values {\n colorCode\n id\n key\n name\n thumbnailImageId\n }\n settings {\n showCollapsedOnDesktop\n showCollapsedOnMobile\n sortType\n useAndFilter\n customSortedValues\n }\n }\n categories {\n id\n name\n metaData {\n slug\n }\n }\n }\n }\n "],["\n query getProductFilterData($categoryId: String, $locale: String) {\n getProductFilterData(categoryId: $categoryId, locale: $locale) {\n filters {\n customValues\n displayType\n id\n isMultiSelect\n isFacetFilter\n key\n name\n order\n type\n values {\n colorCode\n id\n key\n name\n thumbnailImageId\n }\n settings {\n showCollapsedOnDesktop\n showCollapsedOnMobile\n sortType\n useAndFilter\n customSortedValues\n }\n }\n categories {\n id\n name\n metaData {\n slug\n }\n }\n }\n }\n "]))),[4,o.getClient().query({query:t,variables:{categoryId:a||null,locale:S.getCurrentLocale()}})];case 1:return d=e.sent(),s=d.data,(u=d.errors)&&u.length?(console.log(u),[2]):[2,{filters:s.getProductFilterData.filters.map((function(t){var e;return new I(n(n({},t),{displayType:t.displayType,type:t.type,values:null===(e=t.values)||void 0===e?void 0:e.map((function(t){return new b(t)})),settings:t.settings?new j(n(n({},t.settings),{sortType:t.settings.sortType})):null}))})),categories:s.getProductFilterData.categories?s.getProductFilterData.categories.map((function(t){var e;return new l({id:t.id,name:t.name,slug:null===(e=t.metaData)||void 0===e?void 0:e.slug})})):null}];case 2:return c=e.sent(),console.log(c),[3,3];case 3:return[2]}}))}))},a.getRelatedProducts=function(a){var d;return t(this,void 0,void 0,(function(){var t,s,l,u,c;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),t=r(P||(P=i(["\n query getRelatedProducts(\n $brandIds: [String!]\n $categoryIds: [String!]\n $dynamicCurrencySettings: SearchDynamicCurrencySettings\n $limit: Float\n $priceListId: String\n $productId: String!\n $salesChannelId: String\n $tagIds: [String!]\n ) {\n getRelatedProducts(\n brandIds: $brandIds\n categoryIds: $categoryIds\n dynamicCurrencySettings: $dynamicCurrencySettings\n limit: $limit\n priceListId: $priceListId\n productId: $productId\n salesChannelId: $salesChannelId\n tagIds: $tagIds\n )\n }\n "],["\n query getRelatedProducts(\n $brandIds: [String!]\n $categoryIds: [String!]\n $dynamicCurrencySettings: SearchDynamicCurrencySettings\n $limit: Float\n $priceListId: String\n $productId: String!\n $salesChannelId: String\n $tagIds: [String!]\n ) {\n getRelatedProducts(\n brandIds: $brandIds\n categoryIds: $categoryIds\n dynamicCurrencySettings: $dynamicCurrencySettings\n limit: $limit\n priceListId: $priceListId\n productId: $productId\n salesChannelId: $salesChannelId\n tagIds: $tagIds\n )\n }\n "]))),[4,o.getClient().query({query:t,variables:n(n({},a),{limit:a.limit?a.limit:20,tagIds:a.tagIds?a.tagIds:null,dynamicCurrencySettings:(null===(d=S.getCurrentRouting())||void 0===d?void 0:d.dynamicCurrencySettings)||null})})];case 1:return s=e.sent(),l=s.data,(u=s.errors)&&u.length?(console.log(u),[2]):[2,{data:l.getRelatedProducts.map((function(t){return L(t)})),count:l.getRelatedProducts.length,facets:null,limit:20,page:1,totalCount:l.getRelatedProducts.length}];case 2:return c=e.sent(),console.log(c),[3,3];case 3:return[2]}}))}))},a}();function L(t){var e,n,i,r,o,l,I="local"===process.env.NEXT_PUBLIC_ENV;return new m({id:t.id,attributes:null===(e=t.attributes)||void 0===e?void 0:e.map((function(t){var e,n,i,r,o,a;return new f({value:t.value,productAttributeId:null===(e=t.productAttribute)||void 0===e?void 0:e.id,productAttributeOptionId:null===(n=t.productAttributeOption)||void 0===n?void 0:n.id,productAttribute:new y({id:null===(i=t.productAttribute)||void 0===i?void 0:i.id,name:null===(r=t.productAttribute)||void 0===r?void 0:r.name,type:null===(o=t.productAttribute)||void 0===o?void 0:o.type,tableTemplate:(null===(a=t.productAttribute)||void 0===a?void 0:a.tableTemplate)?new w(t.productAttribute.tableTemplate):null}),productAttributeOption:t.productAttributeOption})})),brand:new a({id:null===(n=t.brand)||void 0===n?void 0:n.id,name:null===(i=t.brand)||void 0===i?void 0:i.name,metaData:new u({slug:(null===(r=t.brand)||void 0===r?void 0:r.slug)||""})}),categories:null===(o=t.categories)||void 0===o?void 0:o.map((function(t){return new d({id:t.id,name:t.name,path:t.path.map((function(t){return new s(t)})),metaData:new u({slug:t.slug||""})})})),tags:null===(l=t.tags)||void 0===l?void 0:l.map((function(t){return new C({id:t.id,name:t.name})})),description:t.description||void 0,metaData:new u(t.metaData||void 0),name:t.name,shortDescription:t.shortDescription||void 0,productOptionSetId:t.productOptionSetId,variantTypes:t.productVariantTypes.map((function(t){return new p({order:t.order,variantType:new h({id:t.variantType.id,name:t.variantType.name,selectionType:t.variantType.selectionType,values:t.variantType.values.map((function(e){return new x({id:e.id,colorCode:e.colorCode,name:e.name,thumbnailImageId:e.thumbnailImageId,variantTypeId:t.variantType.id})})).filter((function(e){return t.variantValueIds.includes(e.id)}))}),variantValueIds:t.variantValueIds})})),variants:t.variants.map((function(e){var n,i,r,o;return new v({id:e.id,productId:t.id,attributes:null===(n=e.attributes)||void 0===n?void 0:n.map((function(t){var e,n,i,r,o,a;return new f({value:t.value,productAttributeId:null===(e=t.productAttribute)||void 0===e?void 0:e.id,productAttributeOptionId:null===(n=t.productAttributeOption)||void 0===n?void 0:n.id,productAttribute:new y({id:null===(i=t.productAttribute)||void 0===i?void 0:i.id,name:null===(r=t.productAttribute)||void 0===r?void 0:r.name,type:null===(o=t.productAttribute)||void 0===o?void 0:o.type,tableTemplate:(null===(a=t.productAttribute)||void 0===a?void 0:a.tableTemplate)?new w(t.productAttribute.tableTemplate):null}),productAttributeOption:t.productAttributeOption})})),sku:e.sku,barcodeList:e.barcodeList||void 0,images:null===(i=e.images)||void 0===i?void 0:i.map((function(t){return new c(t.id,t.isVideo)})),price:new g(null===(r=e.prices)||void 0===r?void 0:r.find((function(t){return S.priceListId?t.priceListId===S.priceListId:null===t.priceListId}))),stock:e.stocks.filter((function(t){var e;return I||S.isEditor||(null===(e=S.stockLocationIds)||void 0===e?void 0:e.includes(t.stockLocationId))})).reduce((function(t,e){return e.stockCount+t}),0)||0,variantValues:null===(o=e.variantValues)||void 0===o?void 0:o.map((function(e){var n=t.productVariantTypes.find((function(t){return t.variantType.id===e.variantTypeId})),i=null==n?void 0:n.variantType.values.find((function(t){return t.id===e.variantValueId}));return new x({id:e.variantValueId,name:null==i?void 0:i.name,colorCode:null==i?void 0:i.colorCode,thumbnailImageId:null==i?void 0:i.thumbnailImageId,variantTypeId:null==n?void 0:n.variantType.id})})),isActive:e.isActive})}))})}export{D as IkasProductSearchAPI};
1
+ import{__awaiter as t,__generator as e,__assign as i,__makeTemplateObject as o}from'../../ext/tslib/tslib.es6.js';import n from'../../ext/graphql-tag/src/index.js';import{apollo as r}from"../apollo.js";import"../../models/data/blog/index.js";import{IkasBrand as a}from"../../models/data/brand/index.js";import{IkasCategory as d,IkasCategoryPath as l,IkasFilterCategory as s}from"../../models/data/category/index.js";import"../../models/data/checkout/index.js";import"../../models/data/customer/address/index.js";import"../../models/data/customer/index.js";import"../../models/data/customer-review/index.js";import{IkasHTMLMetaData as u}from"../../models/data/html-meta-data/index.js";import{IkasImage as m}from"../../models/data/image/index.js";import"../../models/data/installment-info/index.js";import"../../models/data/order/index.js";import"../../models/data/order/line-item/index.js";import"mobx";import"../product-option-file/index.js";import{IkasProduct as p}from"../../models/data/product/index.js";import{IkasProductVariantType as c}from"../../models/data/product/variant-type/index.js";import{IkasProductVariant as v}from"../../models/data/product/variant/index.js";import{IkasProductPrice as f}from"../../models/data/product/variant/price/index.js";import{IkasProductAttribute as g}from"../../models/data/product-attribute/index.js";import{IkasProductAttributeValue as y}from"../../models/data/product/attribute-value/index.js";import{IkasProductFilter as b,IkasApplicableProductFilterValue as j,IkasProductFilterSettings as x}from"../../models/data/product-filter/index.js";import{IkasVariantType as I}from"../../models/data/variant-type/index.js";import{IkasVariantValue as h}from"../../models/data/variant-type/variant-value/index.js";import"../../models/data/order-transaction/index.js";import"../../models/data/product-option-set/index.js";import"../../models/data/raffle/index.js";import"../../models/data/product-campaing/campaign/index.js";import"../../models/theme/theme.js";import"../../models/theme/page/index.js";import"../../models/theme/component/prop/index.js";import"../../models/theme/page/component/prop-value/link.js";import"../../models/ui/brand-list/index.js";import"../../models/ui/blog-list/index.js";import"../../models/ui/blog-category-list/index.js";import"../../models/ui/category-list/index.js";import"../../models/ui/product-detail/index.js";import"../../models/ui/product-list/index.js";import"../../models/ui/product-attribute-detail/index.js";import"../../models/ui/product-attribute-list/index.js";import"../../models/ui/customer-review-list/index.js";import"../../models/ui/validator/index.js";import"../../models/ui/validator/rules/index.js";import"../../models/ui/validator/form/login.js";import"../../models/ui/validator/form/address.js";import"../../models/ui/validator/form/register.js";import"../../models/ui/validator/form/contact-form.js";import"../../models/ui/validator/form/forgot-password.js";import"../../models/ui/validator/form/recover-password.js";import"../../models/ui/validator/form/account-info.js";import"../../models/ui/validator/form/raffle-form.js";import"../../models/ui/validator/form/customer-review.js";import"../../models/ui/raffle-list/index.js";import{IkasThemeStockPreference as w}from"../../models/theme/settings/index.js";import"../../models/theme/custom-data/index.js";import{IkasProductTag as T}from"../../models/data/product-tag/index.js";import{IkasStorefrontConfig as A}from"../../storefront/index.js";import{IkasProductAttributeTableTemplate as C}from"../../models/data/product-attribute/product-attribute-table-template/index.js";var O,k,D=function(){function D(){}return D.searchProducts=function(s,b){var j;return void 0===b&&(b=!1),t(this,void 0,void 0,(function(){var t,x,k,D,P;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),t=n(O||(O=o(["\n query searchProducts($input: SearchInput!) {\n searchProducts(input: $input) {\n count\n data\n facets {\n id\n values {\n count\n id\n }\n }\n limit\n page\n totalCount\n }\n }\n "],["\n query searchProducts($input: SearchInput!) {\n searchProducts(input: $input) {\n count\n data\n facets {\n id\n values {\n count\n id\n }\n }\n limit\n page\n totalCount\n }\n }\n "]))),[4,r.getClient().query({query:t,variables:{input:i(i({},s),{showStockOption:b?A.stockPreference:w.SHOW_ALL,locale:A.getCurrentLocale(),dynamicCurrencySettings:(null===(j=A.getCurrentRouting())||void 0===j?void 0:j.dynamicCurrencySettings)||null})}})];case 1:return x=e.sent(),k=x.data,(D=x.errors)&&D.length?(console.log(D),[2]):[2,i(i({},k.searchProducts),{data:k.searchProducts.data.map((function(t){return function(t){var e,i,o,n,r,s,b="local"===process.env.NEXT_PUBLIC_ENV;return new p({id:t.id,attributes:null===(e=t.attributes)||void 0===e?void 0:e.map((function(t){var e,i,o,n,r,a;return new y({value:t.value,productAttributeId:null===(e=t.productAttribute)||void 0===e?void 0:e.id,productAttributeOptionId:null===(i=t.productAttributeOption)||void 0===i?void 0:i.id,productAttribute:new g({id:null===(o=t.productAttribute)||void 0===o?void 0:o.id,name:null===(n=t.productAttribute)||void 0===n?void 0:n.name,type:null===(r=t.productAttribute)||void 0===r?void 0:r.type,tableTemplate:(null===(a=t.productAttribute)||void 0===a?void 0:a.tableTemplate)?new C(t.productAttribute.tableTemplate):null}),productAttributeOption:t.productAttributeOption})})),brand:new a({id:null===(i=t.brand)||void 0===i?void 0:i.id,name:null===(o=t.brand)||void 0===o?void 0:o.name,metaData:new u({slug:(null===(n=t.brand)||void 0===n?void 0:n.slug)||""})}),categories:null===(r=t.categories)||void 0===r?void 0:r.map((function(t){return new d({id:t.id,name:t.name,path:t.path.map((function(t){return new l(t)})),metaData:new u({slug:t.slug||""})})})),tags:null===(s=t.tags)||void 0===s?void 0:s.map((function(t){return new T({id:t.id,name:t.name})})),description:t.description||void 0,metaData:new u(t.metaData||void 0),name:t.name,shortDescription:t.shortDescription||void 0,productOptionSetId:t.productOptionSetId,variantTypes:t.productVariantTypes.map((function(t){return new c({variantType:new I({id:t.variantType.id,name:t.variantType.name,selectionType:t.variantType.selectionType,values:t.variantType.values.map((function(e){return new h({id:e.id,colorCode:e.colorCode,name:e.name,thumbnailImageId:e.thumbnailImageId,variantTypeId:t.variantType.id})})).filter((function(e){return t.variantValueIds.includes(e.id)}))}),variantValueIds:t.variantValueIds})})),variants:t.variants.map((function(e){var i,o,n,r;return new v({id:e.id,productId:t.id,attributes:null===(i=e.attributes)||void 0===i?void 0:i.map((function(t){var e,i,o,n,r,a;return new y({value:t.value,productAttributeId:null===(e=t.productAttribute)||void 0===e?void 0:e.id,productAttributeOptionId:null===(i=t.productAttributeOption)||void 0===i?void 0:i.id,productAttribute:new g({id:null===(o=t.productAttribute)||void 0===o?void 0:o.id,name:null===(n=t.productAttribute)||void 0===n?void 0:n.name,type:null===(r=t.productAttribute)||void 0===r?void 0:r.type,tableTemplate:(null===(a=t.productAttribute)||void 0===a?void 0:a.tableTemplate)?new C(t.productAttribute.tableTemplate):null}),productAttributeOption:t.productAttributeOption})})),sku:e.sku,barcodeList:e.barcodeList||void 0,images:null===(o=e.images)||void 0===o?void 0:o.map((function(t){return new m(t.id)})),price:new f(null===(n=e.prices)||void 0===n?void 0:n.find((function(t){return A.priceListId?t.priceListId===A.priceListId:null===t.priceListId}))),stock:e.stocks.filter((function(t){var e;return b||A.isEditor||(null===(e=A.stockLocationIds)||void 0===e?void 0:e.includes(t.stockLocationId))})).reduce((function(t,e){return e.stockCount+t}),0)||0,variantValues:null===(r=e.variantValues)||void 0===r?void 0:r.map((function(e){var i=t.productVariantTypes.find((function(t){return t.variantType.id===e.variantTypeId})),o=null==i?void 0:i.variantType.values.find((function(t){return t.id===e.variantValueId}));return new h({id:e.variantValueId,name:null==o?void 0:o.name,colorCode:null==o?void 0:o.colorCode,thumbnailImageId:null==o?void 0:o.thumbnailImageId,variantTypeId:null==i?void 0:i.variantType.id})})),isActive:e.isActive,sellIfOutOfStock:e.sellIfOutOfStock})}))})}(t)}))})];case 2:return P=e.sent(),console.log(P),[3,3];case 3:return[2]}}))}))},D.getProductFilterData=function(a){return t(this,void 0,void 0,(function(){var t,d,l,u,m;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),t=n(k||(k=o(["\n query getProductFilterData($categoryId: String, $locale: String) {\n getProductFilterData(categoryId: $categoryId, locale: $locale) {\n filters {\n customValues\n displayType\n id\n isMultiSelect\n isFacetFilter\n key\n name\n order\n type\n values {\n colorCode\n id\n key\n name\n thumbnailImageId\n }\n settings {\n showCollapsedOnDesktop\n showCollapsedOnMobile\n sortType\n useAndFilter\n }\n }\n categories {\n id\n name\n metaData {\n slug\n }\n }\n }\n }\n "],["\n query getProductFilterData($categoryId: String, $locale: String) {\n getProductFilterData(categoryId: $categoryId, locale: $locale) {\n filters {\n customValues\n displayType\n id\n isMultiSelect\n isFacetFilter\n key\n name\n order\n type\n values {\n colorCode\n id\n key\n name\n thumbnailImageId\n }\n settings {\n showCollapsedOnDesktop\n showCollapsedOnMobile\n sortType\n useAndFilter\n }\n }\n categories {\n id\n name\n metaData {\n slug\n }\n }\n }\n }\n "]))),[4,r.getClient().query({query:t,variables:{categoryId:a||null,locale:A.getCurrentLocale()}})];case 1:return d=e.sent(),l=d.data,(u=d.errors)&&u.length?(console.log(u),[2]):[2,{filters:l.getProductFilterData.filters.map((function(t){var e;return new b(i(i({},t),{displayType:t.displayType,type:t.type,values:null===(e=t.values)||void 0===e?void 0:e.map((function(t){return new j(t)})),settings:t.settings?new x(i(i({},t.settings),{sortType:t.settings.sortType})):null}))})),categories:l.getProductFilterData.categories?l.getProductFilterData.categories.map((function(t){var e;return new s({id:t.id,name:t.name,slug:null===(e=t.metaData)||void 0===e?void 0:e.slug})})):null}];case 2:return m=e.sent(),console.log(m),[3,3];case 3:return[2]}}))}))},D}();export{D as IkasProductSearchAPI};
@@ -45,7 +45,11 @@ export interface listRaffle_listRaffle {
45
45
  */
46
46
  count: number;
47
47
  /**
48
- * In the records returned as Response, it shows whether there are any more records or not. For example, let's say our page field is three and our limit field is thirty. Records between 60 and 90 will be returned. If hasNext is `true` despite these records, **it means there are more records.** If hasNext is `false`, it means there are a total of **90 records.**
48
+ * In the records returned as Response, it shows whether there are any more
49
+ * records or not. For example, let's say our page field is three and our limit
50
+ * field is thirty. Records between 60 and 90 will be returned. If hasNext is
51
+ * `true` despite these records, **it means there are more records.** If hasNext
52
+ * is `false`, it means there are a total of **90 records.**
49
53
  */
50
54
  hasNext: boolean;
51
55
  /**
@@ -10,8 +10,6 @@ export interface listRaffleMetaData_listRaffleMetadata {
10
10
  targetId: string | null;
11
11
  targetType: RaffleMetadataTargetTypeEnum | null;
12
12
  updatedAt: any | null;
13
- canonicals: string[] | null;
14
- disableIndex: boolean | null;
15
13
  }
16
14
  export interface listRaffleMetaData {
17
15
  listRaffleMetadata: listRaffleMetaData_listRaffleMetadata[];
@@ -1,50 +1,17 @@
1
- import { RaffleParticipantsInput, RaffleMetadataTargetTypeEnum, VerificationTypeEnum, RaffleParticipantStatusEnum } from "./../../../__generated__/global-types";
1
+ import { RaffleParticipantsInput } from "./../../../__generated__/global-types";
2
2
  export interface saveRaffleParticipant_saveRaffleParticipant_appliedProduct {
3
3
  __typename: "AppliedProduct";
4
4
  productId: string | null;
5
5
  variantId: string;
6
6
  }
7
- export interface saveRaffleParticipant_saveRaffleParticipant_raffle_dateRange {
8
- __typename: "RaffleDateRangeField";
9
- end: any | null;
10
- start: any | null;
11
- }
12
- export interface saveRaffleParticipant_saveRaffleParticipant_raffle_metadata {
13
- __typename: "RaffleMetadata";
14
- canonicals: string[] | null;
15
- createdAt: any | null;
16
- deleted: boolean | null;
17
- description: string | null;
18
- disableIndex: boolean | null;
19
- id: string;
20
- pageTitle: string | null;
21
- slug: string;
22
- targetId: string | null;
23
- targetType: RaffleMetadataTargetTypeEnum | null;
24
- updatedAt: any | null;
25
- }
26
- export interface saveRaffleParticipant_saveRaffleParticipant_raffle_variants {
27
- __typename: "RaffleVariantInformation";
28
- productId: string;
29
- variantId: string;
30
- }
31
- export interface saveRaffleParticipant_saveRaffleParticipant_raffle {
32
- __typename: "StorefrontRaffle";
33
- createdAt: any | null;
34
- dateRange: saveRaffleParticipant_saveRaffleParticipant_raffle_dateRange | null;
35
- deleted: boolean | null;
36
- id: string;
37
- metadata: saveRaffleParticipant_saveRaffleParticipant_raffle_metadata;
38
- name: string;
39
- requiredCustomerAccount: boolean;
40
- status: boolean;
41
- updatedAt: any | null;
42
- variants: saveRaffleParticipant_saveRaffleParticipant_raffle_variants[];
43
- verificationType: VerificationTypeEnum;
44
- }
45
7
  export interface saveRaffleParticipant_saveRaffleParticipant {
46
8
  __typename: "RaffleParticipants";
47
9
  applicationDate: any;
10
+ isWinner: boolean | null;
11
+ lastName: string;
12
+ phone: string | null;
13
+ raffleId: string;
14
+ updatedAt: any | null;
48
15
  appliedProduct: saveRaffleParticipant_saveRaffleParticipant_appliedProduct;
49
16
  createdAt: any | null;
50
17
  customerId: string | null;
@@ -54,13 +21,6 @@ export interface saveRaffleParticipant_saveRaffleParticipant {
54
21
  firstName: string;
55
22
  fullName: string;
56
23
  id: string;
57
- isDeliveredCargo: boolean | null;
58
- lastName: string;
59
- phone: string | null;
60
- raffle: saveRaffleParticipant_saveRaffleParticipant_raffle;
61
- raffleId: string;
62
- status: RaffleParticipantStatusEnum | null;
63
- updatedAt: any | null;
64
24
  }
65
25
  export interface saveRaffleParticipant {
66
26
  saveRaffleParticipant: saveRaffleParticipant_saveRaffleParticipant;
@@ -1,5 +1,4 @@
1
1
  import { IkasRaffle, IkasRaffleMetaData, IkasRaffleParticipant } from "../../models/data/raffle";
2
- import { GraphQLError } from "graphql";
3
2
  export declare type IkasListRaffleParams = {
4
3
  start?: number | null;
5
4
  end?: number | null;
@@ -13,13 +12,10 @@ export declare type IkasListRaffleParams = {
13
12
  id?: string | null;
14
13
  };
15
14
  export declare class IkasRaffleAPI {
16
- static listStorefrontRaffle(params: IkasListRaffleParams): Promise<ListRafflesResponse>;
17
- static saveRaffleParticipant(participant: IkasRaffleParticipant): Promise<{
18
- errors?: readonly GraphQLError[] | undefined;
19
- data?: IkasRaffleParticipant | undefined;
20
- }>;
15
+ static listRaffles(params: IkasListRaffleParams): Promise<ListRafflesResponse>;
16
+ static saveRaffleParticipant(participant: IkasRaffleParticipant): Promise<IkasRaffleParticipant | undefined>;
21
17
  static listRaffleMetaData(slug?: string, targetIds?: string[], targetType?: string[], page?: number, limit?: number): Promise<IkasRaffleMetaData[]>;
22
- static listRaffleParticipants(): Promise<IkasRaffleParticipant[] | undefined>;
18
+ static getRafflesByCustomerId(isWinner?: boolean): Promise<IkasRaffle[] | undefined>;
23
19
  }
24
20
  declare type ListRafflesResponse = {
25
21
  raffles: IkasRaffle[];
@@ -1 +1 @@
1
- import{__awaiter as n,__generator as e,__makeTemplateObject as t}from'../../ext/tslib/tslib.es6.js';import a from'../../ext/graphql-tag/src/index.js';import{apollo as r}from"../apollo.js";import{IkasRaffle as i,IkasRaffleAppliedProduct as d,IkasRaffleParticipant as l,IkasRaffleMetaData as s}from"../../models/data/raffle/index.js";var u,o,c,p,f=function(){function f(){}return f.listStorefrontRaffle=function(l){return n(this,void 0,void 0,(function(){var n,s,o,c,p,f,g;return e(this,(function(e){switch(e.label){case 0:n=a(u||(u=t(["\n query listStorefrontRaffle(\n $end: DateFilterInput\n $start: DateFilterInput\n $id: StringFilterInput\n $includeDeleted: Boolean\n $name: StringFilterInput\n $pagination: PaginationInput\n $search: String\n ) {\n listStorefrontRaffle(\n start: $start\n end: $end\n id: $id\n includeDeleted: $includeDeleted\n name: $name\n pagination: $pagination\n search: $search\n ) {\n count\n hasNext\n limit\n page\n data {\n createdAt\n dateRange {\n end\n start\n }\n deleted\n id\n metadata {\n canonicals\n createdAt\n deleted\n description\n disableIndex\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n name\n requiredCustomerAccount\n status\n updatedAt\n variants {\n productId\n variantId\n }\n verificationType\n }\n }\n }\n "],["\n query listStorefrontRaffle(\n $end: DateFilterInput\n $start: DateFilterInput\n $id: StringFilterInput\n $includeDeleted: Boolean\n $name: StringFilterInput\n $pagination: PaginationInput\n $search: String\n ) {\n listStorefrontRaffle(\n start: $start\n end: $end\n id: $id\n includeDeleted: $includeDeleted\n name: $name\n pagination: $pagination\n search: $search\n ) {\n count\n hasNext\n limit\n page\n data {\n createdAt\n dateRange {\n end\n start\n }\n deleted\n id\n metadata {\n canonicals\n createdAt\n deleted\n description\n disableIndex\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n name\n requiredCustomerAccount\n status\n updatedAt\n variants {\n productId\n variantId\n }\n verificationType\n }\n }\n }\n "]))),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,r.getClient().query({query:n,variables:{start:l.start?{eq:l.start}:void 0,end:l.end?{eq:l.end}:void 0,id:l.id?{eq:l.id}:void 0,includeDeleted:(l.includeDeleted,l.includeDeleted),name:l.name?{eq:l.name}:void 0,pagination:l.pagination?{limit:l.pagination.limit,page:l.pagination.page}:void 0,search:l.search}})];case 2:return s=e.sent(),o=s.data,(c=s.errors)&&c.length?[2,{raffles:[],count:0}]:(p=o.listStorefrontRaffle.count,f=o.listStorefrontRaffle.data.map((function(n){var e,t;return new i({id:n.id,dateRange:{end:null===(e=n.dateRange)||void 0===e?void 0:e.end,start:null===(t=n.dateRange)||void 0===t?void 0:t.start},createdAt:n.createdAt,deleted:n.deleted,metadata:n.metadata||void 0,name:n.name,requiredCustomerAccount:n.requiredCustomerAccount,status:n.status,updatedAt:n.updatedAt,variants:n.variants.length>0?n.variants.map((function(n){return new d(n)})):void 0,verificationType:n.verificationType})})),[2,{count:p,raffles:f}]);case 3:return g=e.sent(),console.log(g),[2,{raffles:[],count:0}];case 4:return[2]}}))}))},f.saveRaffleParticipant=function(i){return n(this,void 0,void 0,(function(){var n,d,s,u,c,p;return e(this,(function(e){switch(e.label){case 0:n=a(o||(o=t(["\n mutation saveRaffleParticipant($input: RaffleParticipantsInput!) {\n saveRaffleParticipant(input: $input) {\n applicationDate\n appliedProduct {\n productId\n variantId\n }\n createdAt\n customerId\n deleted\n email\n extraData\n firstName\n fullName\n id\n isDeliveredCargo\n lastName\n phone\n raffle {\n createdAt\n dateRange {\n end\n start\n }\n deleted\n id\n metadata {\n canonicals\n createdAt\n deleted\n description\n disableIndex\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n name\n requiredCustomerAccount\n status\n updatedAt\n variants {\n productId\n variantId\n }\n verificationType\n }\n raffleId\n status\n updatedAt\n }\n }\n "],["\n mutation saveRaffleParticipant($input: RaffleParticipantsInput!) {\n saveRaffleParticipant(input: $input) {\n applicationDate\n appliedProduct {\n productId\n variantId\n }\n createdAt\n customerId\n deleted\n email\n extraData\n firstName\n fullName\n id\n isDeliveredCargo\n lastName\n phone\n raffle {\n createdAt\n dateRange {\n end\n start\n }\n deleted\n id\n metadata {\n canonicals\n createdAt\n deleted\n description\n disableIndex\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n name\n requiredCustomerAccount\n status\n updatedAt\n variants {\n productId\n variantId\n }\n verificationType\n }\n raffleId\n status\n updatedAt\n }\n }\n "]))),d={},e.label=1;case 1:return e.trys.push([1,3,,4]),[4,r.getClient().mutate({mutation:n,variables:{input:{appliedProduct:i.appliedProduct,email:i.email,firstName:i.firstName,lastName:i.lastName,raffleId:i.raffleId,extraData:i.extraData,phone:i.phone}}})];case 2:return s=e.sent(),u=s.data,(c=s.errors)&&c.length&&(console.log(c),d.errors=c),u&&u.saveRaffleParticipant&&(d.data=new l(u.saveRaffleParticipant)),[2,d];case 3:return(p=e.sent()).graphQLErrors&&(d.errors=p.graphQLErrors),[2,d];case 4:return[2]}}))}))},f.listRaffleMetaData=function(i,d,l,u,o){return void 0===u&&(u=1),void 0===o&&(o=200),n(this,void 0,void 0,(function(){var n,p,f,g,m;return e(this,(function(e){switch(e.label){case 0:n=a(c||(c=t(["\n query listRaffleMetaData(\n $slug: StringFilterInput\n $targetId: StringFilterInput\n $targetType: RaffleMetadataTargetTypeEnumFilter\n $pagination: PaginationInput\n ) {\n listRaffleMetadata(\n slug: $slug\n targetId: $targetId\n targetType: $targetType\n pagination: $pagination\n ) {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n canonicals\n disableIndex\n }\n }\n "],["\n query listRaffleMetaData(\n $slug: StringFilterInput\n $targetId: StringFilterInput\n $targetType: RaffleMetadataTargetTypeEnumFilter\n $pagination: PaginationInput\n ) {\n listRaffleMetadata(\n slug: $slug\n targetId: $targetId\n targetType: $targetType\n pagination: $pagination\n ) {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n canonicals\n disableIndex\n }\n }\n "]))),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,r.getClient().query({query:n,variables:{slug:i?{eq:i}:void 0,targetId:d?{in:d}:void 0,targetType:l?{in:l}:void 0,pagination:{page:u,limit:o}}})];case 2:return p=e.sent(),f=p.data,(g=p.errors)&&g.length?[2,[]]:[2,f.listRaffleMetadata.map((function(n){return new s(n)}))];case 3:return m=e.sent(),console.log(m),[2,[]];case 4:return[2]}}))}))},f.listRaffleParticipants=function(){return n(this,void 0,void 0,(function(){var n,s,u,o,c,f;return e(this,(function(e){switch(e.label){case 0:n=a(p||(p=t(["\n query listRaffleParticipants {\n listRaffleParticipants {\n applicationDate\n appliedProduct {\n productId\n variantId\n }\n createdAt\n customerId\n deleted\n email\n extraData\n firstName\n fullName\n id\n isDeliveredCargo\n lastName\n phone\n raffle {\n createdAt\n dateRange {\n end\n start\n }\n deleted\n id\n metadata {\n canonicals\n createdAt\n deleted\n description\n disableIndex\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n name\n requiredCustomerAccount\n status\n updatedAt\n variants {\n productId\n variantId\n }\n verificationType\n }\n raffleId\n status\n updatedAt\n }\n }\n "],["\n query listRaffleParticipants {\n listRaffleParticipants {\n applicationDate\n appliedProduct {\n productId\n variantId\n }\n createdAt\n customerId\n deleted\n email\n extraData\n firstName\n fullName\n id\n isDeliveredCargo\n lastName\n phone\n raffle {\n createdAt\n dateRange {\n end\n start\n }\n deleted\n id\n metadata {\n canonicals\n createdAt\n deleted\n description\n disableIndex\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n name\n requiredCustomerAccount\n status\n updatedAt\n variants {\n productId\n variantId\n }\n verificationType\n }\n raffleId\n status\n updatedAt\n }\n }\n "]))),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,r.getClient().query({query:n})];case 2:return s=e.sent(),u=s.data,(o=s.errors)&&o.length?[2]:(c=u.listRaffleParticipants.map((function(n){var e,t;return new l({applicationDate:n.applicationDate,appliedProduct:n.appliedProduct,createdAt:n.createdAt,customerId:n.customerId,deleted:n.deleted,email:n.email,extraData:n.extraData,firstName:n.firstName,fullName:n.fullName,id:n.id,isDeliveredCargo:n.isDeliveredCargo,lastName:n.lastName,phone:n.phone,raffle:new i({id:n.raffle.id,dateRange:{end:null===(e=n.raffle.dateRange)||void 0===e?void 0:e.end,start:null===(t=n.raffle.dateRange)||void 0===t?void 0:t.start},createdAt:n.raffle.createdAt,deleted:n.raffle.deleted,metadata:n.raffle.metadata||void 0,name:n.raffle.name,requiredCustomerAccount:n.raffle.requiredCustomerAccount,status:n.raffle.status,updatedAt:n.raffle.updatedAt,variants:n.raffle.variants.length>0?n.raffle.variants.map((function(n){return new d(n)})):void 0,verificationType:n.raffle.verificationType}),raffleId:n.raffleId,status:n.status,updatedAt:n.updatedAt})})),[2,c]);case 3:return f=e.sent(),console.log(f),[3,4];case 4:return[2]}}))}))},f}();export{f as IkasRaffleAPI};
1
+ import{__awaiter as n,__generator as t,__makeTemplateObject as e}from'../../ext/tslib/tslib.es6.js';import a from'../../ext/graphql-tag/src/index.js';import{apollo as i}from"../apollo.js";import{IkasRaffle as r,IkasRaffleAppliedProduct as d,IkasRaffleParticipant as l,IkasRaffleMetaData as u}from"../../models/data/raffle/index.js";var s,o,p,c,g=function(){function g(){}return g.listRaffles=function(l){return n(this,void 0,void 0,(function(){var n,u,o,p,c,g,f;return t(this,(function(t){switch(t.label){case 0:n=a(s||(s=e(["\n query listRaffle(\n $end: DateFilterInput\n $start: DateFilterInput\n $id: StringFilterInput\n $includeDeleted: Boolean\n $name: StringFilterInput\n $pagination: PaginationInput\n $search: String\n ) {\n listRaffle(\n start: $start\n end: $end\n id: $id\n includeDeleted: $includeDeleted\n name: $name\n pagination: $pagination\n search: $search\n ) {\n count\n hasNext\n limit\n page\n data {\n createdAt\n variants {\n productId\n variantId\n }\n verificationType\n dateRange {\n end\n start\n }\n deleted\n id\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n name\n participantCount\n requiredCustomerAccount\n status\n updatedAt\n }\n }\n }\n "],["\n query listRaffle(\n $end: DateFilterInput\n $start: DateFilterInput\n $id: StringFilterInput\n $includeDeleted: Boolean\n $name: StringFilterInput\n $pagination: PaginationInput\n $search: String\n ) {\n listRaffle(\n start: $start\n end: $end\n id: $id\n includeDeleted: $includeDeleted\n name: $name\n pagination: $pagination\n search: $search\n ) {\n count\n hasNext\n limit\n page\n data {\n createdAt\n variants {\n productId\n variantId\n }\n verificationType\n dateRange {\n end\n start\n }\n deleted\n id\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n name\n participantCount\n requiredCustomerAccount\n status\n updatedAt\n }\n }\n }\n "]))),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,i.getClient().query({query:n,variables:{start:l.start?{eq:l.start}:void 0,end:l.end?{eq:l.end}:void 0,id:l.id?{eq:l.id}:void 0,includeDeleted:(l.includeDeleted,l.includeDeleted),name:l.name?{eq:l.name}:void 0,pagination:l.pagination?{limit:l.pagination.limit,page:l.pagination.page}:void 0,search:l.search}})];case 2:return u=t.sent(),o=u.data,(p=u.errors)&&p.length?[2,{raffles:[],count:0}]:(c=o.listRaffle.count,g=o.listRaffle.data.map((function(n){var t,e;return new r({id:n.id,dateRange:{end:null===(t=n.dateRange)||void 0===t?void 0:t.end,start:null===(e=n.dateRange)||void 0===e?void 0:e.start},createdAt:n.createdAt,deleted:n.deleted,metadata:n.metadata||void 0,name:n.name,participantCount:n.participantCount,requiredCustomerAccount:n.requiredCustomerAccount,status:n.status,updatedAt:n.updatedAt,variants:n.variants.length>0?n.variants.map((function(n){return new d(n)})):void 0,verificationType:n.verificationType})})),[2,{count:c,raffles:g}]);case 3:return f=t.sent(),console.log(f),[2,{raffles:[],count:0}];case 4:return[2]}}))}))},g.saveRaffleParticipant=function(r){return n(this,void 0,void 0,(function(){var n,d,u,s,p;return t(this,(function(t){switch(t.label){case 0:n=a(o||(o=e(["\n mutation saveRaffleParticipant($input: RaffleParticipantsInput!) {\n saveRaffleParticipant(input: $input) {\n applicationDate\n isWinner\n lastName\n phone\n raffleId\n updatedAt\n appliedProduct {\n productId\n variantId\n }\n createdAt\n customerId\n deleted\n email\n extraData\n firstName\n fullName\n id\n }\n }\n "],["\n mutation saveRaffleParticipant($input: RaffleParticipantsInput!) {\n saveRaffleParticipant(input: $input) {\n applicationDate\n isWinner\n lastName\n phone\n raffleId\n updatedAt\n appliedProduct {\n productId\n variantId\n }\n createdAt\n customerId\n deleted\n email\n extraData\n firstName\n fullName\n id\n }\n }\n "]))),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,i.getClient().mutate({mutation:n,variables:{input:{appliedProduct:r.appliedProduct,email:r.email,firstName:r.firstName,lastName:r.lastName,raffleId:r.raffleId,extraData:r.extraData,phone:r.phone}}})];case 2:return d=t.sent(),u=d.data,(s=d.errors)&&s.length&&console.log(s),u&&u.saveRaffleParticipant?[2,new l(u.saveRaffleParticipant)]:[3,4];case 3:return p=t.sent(),console.log(p),[3,4];case 4:return[2]}}))}))},g.listRaffleMetaData=function(r,d,l,s,o){return void 0===s&&(s=1),void 0===o&&(o=200),n(this,void 0,void 0,(function(){var n,c,g,f,m;return t(this,(function(t){switch(t.label){case 0:n=a(p||(p=e(["\n query listRaffleMetaData(\n $slug: StringFilterInput\n $targetId: StringFilterInput\n $targetType: RaffleMetadataTargetTypeEnumFilter\n $pagination: PaginationInput\n ) {\n listRaffleMetadata(\n slug: $slug\n targetId: $targetId\n targetType: $targetType\n pagination: $pagination\n ) {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n "],["\n query listRaffleMetaData(\n $slug: StringFilterInput\n $targetId: StringFilterInput\n $targetType: RaffleMetadataTargetTypeEnumFilter\n $pagination: PaginationInput\n ) {\n listRaffleMetadata(\n slug: $slug\n targetId: $targetId\n targetType: $targetType\n pagination: $pagination\n ) {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n }\n "]))),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,i.getClient().query({query:n,variables:{slug:r?{eq:r}:void 0,targetId:d?{in:d}:void 0,targetType:l?{in:l}:void 0,pagination:{page:s,limit:o}}})];case 2:return c=t.sent(),g=c.data,(f=c.errors)&&f.length?[2,[]]:[2,g.listRaffleMetadata.map((function(n){return new u(n)}))];case 3:return m=t.sent(),console.log(m),[2,[]];case 4:return[2]}}))}))},g.getRafflesByCustomerId=function(l){return n(this,void 0,void 0,(function(){var n,u,s,o,p,g;return t(this,(function(t){switch(t.label){case 0:n=a(c||(c=e(["\n query getRafflesByCustomerId($winnerFilter: Boolean) {\n getRafflesByCustomerId(winnerFilter: $winnerFilter) {\n createdAt\n variants {\n productId\n variantId\n }\n verificationType\n dateRange {\n end\n start\n }\n deleted\n id\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n name\n participantCount\n requiredCustomerAccount\n status\n updatedAt\n }\n }\n "],["\n query getRafflesByCustomerId($winnerFilter: Boolean) {\n getRafflesByCustomerId(winnerFilter: $winnerFilter) {\n createdAt\n variants {\n productId\n variantId\n }\n verificationType\n dateRange {\n end\n start\n }\n deleted\n id\n metadata {\n createdAt\n deleted\n description\n id\n pageTitle\n slug\n targetId\n targetType\n updatedAt\n }\n name\n participantCount\n requiredCustomerAccount\n status\n updatedAt\n }\n }\n "]))),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,i.getClient().query({query:n,variables:{winnerFilter:l||void 0}})];case 2:return u=t.sent(),s=u.data,(o=u.errors)&&o.length?[2]:(p=s.getRafflesByCustomerId.map((function(n){var t,e;return new r({id:n.id,dateRange:{end:null===(t=n.dateRange)||void 0===t?void 0:t.end,start:null===(e=n.dateRange)||void 0===e?void 0:e.start},createdAt:n.createdAt,deleted:n.deleted,metadata:n.metadata||void 0,name:n.name,participantCount:n.participantCount,requiredCustomerAccount:n.requiredCustomerAccount,status:n.status,updatedAt:n.updatedAt,variants:n.variants.length>0?n.variants.map((function(n){return new d(n)})):void 0,verificationType:n.verificationType})})),[2,p]);case 3:return g=t.sent(),console.log(g),[3,4];case 4:return[2]}}))}))},g}();export{g as IkasRaffleAPI};
@@ -44,9 +44,6 @@ export interface getStorefront_getStorefront {
44
44
  emailSettingsId: string | null;
45
45
  fbpId: string | null;
46
46
  gtmId: string | null;
47
- analytics4Id: string | null;
48
- universalAnalyticsId: string | null;
49
- tiktokPixelId: string | null;
50
47
  id: string;
51
48
  localizations: getStorefront_getStorefront_localizations[];
52
49
  mainStorefrontThemeId: string | null;
@@ -1 +1 @@
1
- import{__awaiter as n,__generator as e,__makeTemplateObject as t}from'../../ext/tslib/tslib.es6.js';import{apollo as r}from"../apollo.js";import i from'../../ext/graphql-tag/src/index.js';import{IkasStorefront as a}from"../../models/data/storefront/index.js";var d,o=function(){function o(){}return o.getStorefront=function(o){return n(this,void 0,void 0,(function(){var n,s,l,c,u;return e(this,(function(e){switch(e.label){case 0:n=i(d||(d=t(["\n query getStorefront($id: String!) {\n getStorefront(id: $id) {\n createdAt\n emailSettingsId\n fbpId\n gtmId\n analytics4Id\n universalAnalyticsId\n tiktokPixelId\n id\n localizations {\n createdAt\n id\n isDefault\n locale\n name\n }\n mainStorefrontThemeId\n name\n salesChannelId\n routings {\n countryCodes\n createdAt\n domain\n id\n locale\n path\n priceListId\n updatedAt\n dynamicCurrencySettings {\n roundingFormat\n targetCurrencyCode\n }\n }\n status\n themes {\n createdAt\n id\n isMainTheme\n name\n status\n themeId\n themeVersionId\n updatedAt\n }\n }\n }\n "],["\n query getStorefront($id: String!) {\n getStorefront(id: $id) {\n createdAt\n emailSettingsId\n fbpId\n gtmId\n analytics4Id\n universalAnalyticsId\n tiktokPixelId\n id\n localizations {\n createdAt\n id\n isDefault\n locale\n name\n }\n mainStorefrontThemeId\n name\n salesChannelId\n routings {\n countryCodes\n createdAt\n domain\n id\n locale\n path\n priceListId\n updatedAt\n dynamicCurrencySettings {\n roundingFormat\n targetCurrencyCode\n }\n }\n status\n themes {\n createdAt\n id\n isMainTheme\n name\n status\n themeId\n themeVersionId\n updatedAt\n }\n }\n }\n "]))),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,r.getClient().query({query:n,variables:{id:o}})];case 2:return s=e.sent(),l=s.data,(c=s.errors)&&c.length&&console.log(c),l?[2,new a(l.getStorefront)]:[3,4];case 3:return u=e.sent(),console.log(u),[3,4];case 4:return[2]}}))}))},o}();export{o as IkasStorefrontAPI};
1
+ import{__awaiter as n,__generator as e,__makeTemplateObject as t}from'../../ext/tslib/tslib.es6.js';import{apollo as r}from"../apollo.js";import o from'../../ext/graphql-tag/src/index.js';import{IkasStorefront as a}from"../../models/data/storefront/index.js";var i,d=function(){function d(){}return d.getStorefront=function(d){return n(this,void 0,void 0,(function(){var n,s,l,m,u;return e(this,(function(e){switch(e.label){case 0:n=o(i||(i=t(["\n query getStorefront($id: String!) {\n getStorefront(id: $id) {\n createdAt\n emailSettingsId\n fbpId\n gtmId\n id\n localizations {\n createdAt\n id\n isDefault\n locale\n name\n }\n mainStorefrontThemeId\n name\n salesChannelId\n routings {\n countryCodes\n createdAt\n domain\n id\n locale\n path\n priceListId\n updatedAt\n dynamicCurrencySettings {\n roundingFormat\n targetCurrencyCode\n }\n }\n status\n themes {\n createdAt\n id\n isMainTheme\n name\n status\n themeId\n themeVersionId\n updatedAt\n }\n }\n }\n "],["\n query getStorefront($id: String!) {\n getStorefront(id: $id) {\n createdAt\n emailSettingsId\n fbpId\n gtmId\n id\n localizations {\n createdAt\n id\n isDefault\n locale\n name\n }\n mainStorefrontThemeId\n name\n salesChannelId\n routings {\n countryCodes\n createdAt\n domain\n id\n locale\n path\n priceListId\n updatedAt\n dynamicCurrencySettings {\n roundingFormat\n targetCurrencyCode\n }\n }\n status\n themes {\n createdAt\n id\n isMainTheme\n name\n status\n themeId\n themeVersionId\n updatedAt\n }\n }\n }\n "]))),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,r.getClient().query({query:n,variables:{id:d}})];case 2:return s=e.sent(),l=s.data,(m=s.errors)&&m.length&&console.log(m),l?[2,new a(l.getStorefront)]:[3,4];case 3:return u=e.sent(),console.log(u),[3,4];case 4:return[2]}}))}))},d}();export{d as IkasStorefrontAPI};
@@ -6,7 +6,9 @@ export interface listVariantType_listVariantType_values {
6
6
  updatedAt: any | null;
7
7
  deleted: boolean | null;
8
8
  /**
9
- * It is the name information of the values used in the Variant type. Value information of Variant type is unique according to name.It can be a maximum of 100 characters.
9
+ * It is the name information of the values used in the Variant type. Value
10
+ * information of Variant type is unique according to name.It can be a maximum of
11
+ * 100 characters.
10
12
  */
11
13
  name: string;
12
14
  /**
@@ -56,7 +58,9 @@ export interface listVariantType_listVariantType {
56
58
  */
57
59
  selectionType: VariantSelectionTypeEnum;
58
60
  /**
59
- * Variant values used in Variant type. ** For example, variant type: Size. Variant values can be thought of as S, M, L, XL. **It is unique according to the value name.Values array size must have at least one element.
61
+ * Variant values used in Variant type. ** For example, variant type: Size.
62
+ * Variant values can be thought of as S, M, L, XL. **It is unique according to
63
+ * the value name.Values array size must have at least one element.
60
64
  */
61
65
  values: listVariantType_listVariantType_values[];
62
66
  /**
@@ -1 +1 @@
1
- var e={actions:{login:"Login",edit:"Edit",apply:"Apply",close:"Close",cancel:"Cancel",save:"Save",continue:"Continue",show:"Show",hide:"Hide",sendMessage:"Send Message",continueWithShipping:"Continue with Shipping",continueWithPayment:"Continue with Payment",completeOrder:"Complete the Order",backToShopping:"Back to Shopping",backToCart:"Back to Cart"},securePayment:"Secure Payment",alreadyHaveAnAccount:"Already have an account?",address:"Address",addressError:"Enter address",missingAddressFields:"There are some missing required fields in this address.",editAddress:"Edit Address",deleteAddress:"Delete Address",saveAddressCta:"Save this address for future purchases",firstName:"Name",firstNameError:"Enter name",lastName:"Surname",lastNameError:"Enter surname",identityNumber:"Identity Number",identityNumberError:"Enter identity number",addressTitle:"Adress Title",adressTitleError:"Enter address title",addressLine1:"Address",addressLine2:"Address Second Line",postalCode:"Postal Code",postalCodeError:"Enter postal code",country:"Country",countryError:"Select country",state:"State",stateError:"Select state",city:"City",cityError:"Select city",district:"District",districtError:"Select district",phone:"Phone",phoneError:"Enter a valid phone number",companyName:"Company Name",taxOffice:"Tax Office",taxNumber:"Tax Number",shipping:"Shipping",payment:"Payment",summary:"Summary",free:"Free",standartShipping:"Standart Shipping",returnPolicy:"Return Policy",privacyPolicy:"Privacy Policy",termsOfService:"Terms of Service",newAddress:"New Address",billingAddress:"Billing Address",shippingAddress:"Shipping Address",corporateInvoice:"Corporate invoice",contactInfo:"Contact Information",email:"E-Mail",emailError:"Enter a valid e-mail",guestEmailTooltip:"Your order information will be sent to this e-mail address",customerConsentCta:"Contact me about the news and promotions",useShippingForBilling:"Use shipping address for billing",installmentOptions:"Installment Options",singleInstallment:"Single Payment",installments:"Installments",creditCard:"Credit Card",ackPrivacyPolicy:"Privacy Policy",ackTermsOfService:"Terms of Service",ackPoliciesSentence:"I acknowledge the {{ ackPrivacyPolicy }} and {{ ackTermsOfService }}.",securePaymentTooltip:"All payments are secure and encrypted",giftPackage:"Gift Package",giftPackageCta:"Gift wrap this order",giftPackageCtaPlaceholder:"Enter your gift message",paymentMethod:"Payment Method",paymentMethodDiscount:"Discount",paymentMethodAdditionalPrice:"Fee",orderSuccessTitle:"Thank you for your order!",orderSuccessDescription:"Dear {{ customerName }}, we have received your order. We will notify you when your order is shipped.",orderNoAndDate:"Order Number / Date",paymentSummary:"Payment Summary",shippingSummary:"Shipping Summary",helpCtaQuestion:"Do you need help?",helpCta:"Contact us",contactForm:"Contact Form",contactFormSent:"Message sent successfully",contactFormDescription:"We will respond to your message as soon as possible",contactFormCta:"Type your message",orderPackageStatus:{unfulfilled:"Unfulfilled",readyForShipment:"Ready For Shipment",fulfilled:"Fulfilled",partiallyFulfilled:"Partially Fulfilled",delivered:"Delivered",unableToDeliver:"Unable to Deliver",cancelled:"Cancelled",cancelRejected:"Cancel Rejected",cancelRequested:"Cancel Requested",refunded:"Refunded",refundRequestAccepted:"Refund Request Accepted",refundRejected:"Refund Rejected",refundRequested:"Refund Requested"},quantity:"Quantity",cartItemProduct:"product",giftCodeErrorTitle:"Gift Code Error",giftCodeErrorDescription:"The gift code you entered is not valid or not applicable to the products in your cart. Please check your code and try again.",subtotal:"Subtotal",total:"Total",subtotalTooltip:"Subtotal reflects the total for your cart before the discounts and does not include the shipping fees.",cartShippingTitle:"Delivery / Shipping",cartTaxTitle:"Tax",cartInterest:"Interest",couponCode:"Coupon Code",addCouponCode:"Add coupon code",addOrderNote:"Add order note",editOrderNote:"Edit order note",orderNote:"Order Note",enterPhoneNumber:"Enter phone number",cardNumber:"Card Number",cardNumberError:"Please enter a valid card number",cardHolderName:"Cardholder Name",cardHolderError:"Enter cardholder name",cardExpiry:"Month / Year",cardExpiryError:"Enter a valid date",cardCVC:"CVC",cardCVCError:"Enter a valid CVC",cardCVCTooltip:"CVC is the 3 digit number behind your card",errorCustomerRequired:"This e-mail address belongs to a registered user. Please login to your account.",errorNoShipping:"Your region is not available for shipping.",errorPayment:"Your payment could not be received. Please check your information and try again.",errorStockTitle:"Stock Update!",errorStockDescription:"Some items in your cart are out of stock. Would you like to continue by removing these products from your cart?",errorUnknown:"An unexpected error has occurred. Please try again.",customizedProduct:"Customized Product",yes:"Yes",no:"No"};export{e as default};
1
+ var e={actions:{login:"Login",edit:"Edit",apply:"Apply",close:"Close",cancel:"Cancel",save:"Save",continue:"Continue",show:"Show",hide:"Hide",sendMessage:"Send Message",continueWithShipping:"Continue with Shipping",continueWithPayment:"Continue with Payment",completeOrder:"Complete the Order",backToShopping:"Back to Shopping",backToCart:"Back to Cart"},securePayment:"Secure Payment",alreadyHaveAnAccount:"Already have an account?",address:"Address",addressError:"Enter address",missingAddressFields:"There are some missing required fields in this address.",editAddress:"Edit Address",deleteAddress:"Delete Address",saveAddressCta:"Save this address for future purchases",firstName:"Name",firstNameError:"Enter name",lastName:"Surname",lastNameError:"Enter surname",identityNumber:"Identity Number",identityNumberError:"Enter identity number",addressTitle:"Adress Title",adressTitleError:"Enter address title",addressLine2:"Address Second Line",postalCode:"Postal Code",postalCodeError:"Enter postal code",country:"Country",countryError:"Select country",state:"State",stateError:"Select state",city:"City",cityError:"Select city",district:"District",districtError:"Select district",phone:"Phone",phoneError:"Enter a valid phone number",companyName:"Company Name",taxOffice:"Tax Office",taxNumber:"Tax Number",shipping:"Shipping",payment:"Payment",summary:"Summary",free:"Free",standartShipping:"Standart Shipping",returnPolicy:"Return Policy",privacyPolicy:"Privacy Policy",termsOfService:"Terms of Service",newAddress:"New Address",billingAddress:"Billing Address",shippingAddress:"Shipping Address",corporateInvoice:"Corporate invoice",contactInfo:"Contact Information",email:"E-Mail",emailError:"Enter a valid e-mail",guestEmailTooltip:"Your order information will be sent to this e-mail address",customerConsentCta:"Contact me about the news and promotions",useShippingForBilling:"Use shipping address for billing",installmentOptions:"Installment Options",singleInstallment:"Single Payment",installments:"Installments",creditCard:"Credit Card",ackPrivacyPolicy:"Privacy Policy",ackTermsOfService:"Terms of Service",ackPoliciesSentence:"I acknowledge the {{ ackPrivacyPolicy }} and {{ ackTermsOfService }}.",securePaymentTooltip:"All payments are secure and encrypted",giftPackage:"Gift Package",giftPackageCta:"Gift wrap this order",giftPackageCtaPlaceholder:"Enter your gift message",paymentMethod:"Payment Method",paymentMethodDiscount:"Discount",paymentMethodAdditionalPrice:"Fee",orderSuccessTitle:"Thank you for your order!",orderSuccessDescription:"Dear {{ customerName }}, we have received your order. We will notify you when your order is shipped.",orderNoAndDate:"Order Number / Date",paymentSummary:"Payment Summary",shippingSummary:"Shipping Summary",helpCtaQuestion:"Do you need help?",helpCta:"Contact us",contactForm:"Contact Form",contactFormSent:"Message sent successfully",contactFormDescription:"We will respond to your message as soon as possible",contactFormCta:"Type your message",orderPackageStatus:{unfulfilled:"Unfulfilled",readyForShipment:"Ready For Shipment",fulfilled:"Fulfilled",partiallyFulfilled:"Partially Fulfilled",delivered:"Delivered",unableToDeliver:"Unable to Deliver",cancelled:"Cancelled",cancelRejected:"Cancel Rejected",cancelRequested:"Cancel Requested",refunded:"Refunded",refundRequestAccepted:"Refund Request Accepted",refundRejected:"Refund Rejected",refundRequested:"Refund Requested"},quantity:"Quantity",cartItemProduct:"product",giftCodeErrorTitle:"Gift Code Error",giftCodeErrorDescription:"The gift code you entered is not valid or not applicable to the products in your cart. Please check your code and try again.",subtotal:"Subtotal",total:"Total",subtotalTooltip:"Subtotal reflects the total for your cart before the discounts and does not include the shipping fees.",cartShippingTitle:"Delivery / Shipping",cartTaxTitle:"Tax",cartInterest:"Interest",couponCode:"Coupon Code",addCouponCode:"Add coupon code",addOrderNote:"Add order note",editOrderNote:"Edit order note",orderNote:"Order Note",enterPhoneNumber:"Enter phone number",cardNumber:"Card Number",cardNumberError:"Please enter a valid card number",cardHolderName:"Cardholder Name",cardHolderError:"Enter cardholder name",cardExpiry:"Month / Year",cardExpiryError:"Enter a valid date",cardCVC:"CVC",cardCVCError:"Enter a valid CVC",cardCVCTooltip:"CVC is the 3 digit number behind your card",errorCustomerRequired:"This e-mail address belongs to a registered user. Please login to your account.",errorNoShipping:"Your region is not available for shipping.",errorPayment:"Your payment could not be received. Please check your information and try again.",errorStockTitle:"Stock Update!",errorStockDescription:"Some items in your cart are out of stock. Would you like to continue by removing these products from your cart?",errorUnknown:"An unexpected error has occurred. Please try again.",customizedProduct:"Customized Product",yes:"Yes",no:"No"};export{e as default};