@ikas/storefront-models 6.1.0-beta.32 → 6.1.0-beta.320

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 (151) hide show
  1. package/build/index.d.ts +12 -0
  2. package/build/index.js +1 -1
  3. package/build/models/checkout-settings/address-field-restriction/index.d.ts +8 -0
  4. package/build/models/checkout-settings/index.d.ts +3 -0
  5. package/build/models/customer/review/index.d.ts +22 -0
  6. package/build/models/customer/review/index.js +1 -1
  7. package/build/models/loyalty-program/index.d.ts +9 -0
  8. package/build/models/merchant-settings/index.d.ts +1 -0
  9. package/build/models/order/adjustment/index.d.ts +3 -1
  10. package/build/models/order/gift-card-line/index.d.ts +5 -0
  11. package/build/models/order/gift-card-line/index.js +1 -0
  12. package/build/models/order/index.d.ts +10 -2
  13. package/build/models/order/index.js +1 -1
  14. package/build/models/order/line-item/bundle-product-settings/index.d.ts +5 -0
  15. package/build/models/order/line-item/index.d.ts +4 -0
  16. package/build/models/order/line-item/order-line-subscription-plan/index.d.ts +6 -0
  17. package/build/models/order/line-item/order-line-subscription-plan/order-line-item-subscription-plan-discount/index.d.ts +8 -0
  18. package/build/models/order/line-item/order-line-subscription-plan/order-line-item-subscription-plan-discount/index.js +1 -0
  19. package/build/models/order/line-item/order-line-subscription-plan/order-line-item-subscription-plan-period/index.d.ts +22 -0
  20. package/build/models/order/line-item/order-line-subscription-plan/order-line-item-subscription-plan-period/index.js +1 -0
  21. package/build/models/order/loyalty-line/index.d.ts +7 -0
  22. package/build/models/order/order-transaction-with-prices/index.d.ts +1 -0
  23. package/build/models/order/refund/settings/index.d.ts +1 -0
  24. package/build/models/product/campaign/data/index.d.ts +3 -1
  25. package/build/models/product/campaign/data/index.js +1 -1
  26. package/build/models/product/campaign-offer/index.d.ts +2 -0
  27. package/build/models/product/filter/index.d.ts +2 -1
  28. package/build/models/product/filter/index.js +1 -1
  29. package/build/models/product/index.d.ts +2 -0
  30. package/build/models/product/translations/index.d.ts +5 -0
  31. package/build/models/product/variant/subscription-plan/index.d.ts +14 -0
  32. package/build/models/product/variant/subscription-plan/product-subscription-plan-discount/index.d.ts +8 -0
  33. package/build/models/product/variant/subscription-plan/product-subscription-plan-discount/index.js +1 -0
  34. package/build/models/product/variant/subscription-plan/product-subscription-plan-period/index.d.ts +28 -0
  35. package/build/models/product/variant/subscription-plan/product-subscription-plan-period/index.js +1 -0
  36. package/build/models/store-credit-balance/index.d.ts +24 -0
  37. package/build/models/store-credit-balance/index.js +1 -0
  38. package/build/models/storefront-popup/index.d.ts +1 -0
  39. package/build/models/storefront-popup/storefront-popup-display-filter/index.d.ts +22 -3
  40. package/build/models/storefront-popup/storefront-popup-display-filter/index.js +1 -1
  41. package/build/models/theme-json/component/prop/index.d.ts +1 -0
  42. package/build/models/theme-json/custom-data/index.d.ts +1 -0
  43. package/build-cjs/_virtual/_tslib.js.map +1 -0
  44. package/build-cjs/index.d.ts +12 -0
  45. package/build-cjs/index.js +1 -1
  46. package/build-cjs/index.js.map +1 -0
  47. package/build-cjs/models/base/init.js.map +1 -0
  48. package/build-cjs/models/blog/category/init.js.map +1 -0
  49. package/build-cjs/models/blog/init.js.map +1 -0
  50. package/build-cjs/models/blog/meta-data/index.js.map +1 -0
  51. package/build-cjs/models/brand/index.js.map +1 -0
  52. package/build-cjs/models/brand/init.js.map +1 -0
  53. package/build-cjs/models/campaign-offer/index.js.map +1 -0
  54. package/build-cjs/models/campaign-offer/product/index.js.map +1 -0
  55. package/build-cjs/models/cart/available-shipping-method/index.js.map +1 -0
  56. package/build-cjs/models/cart/campaign-offer/index.js.map +1 -0
  57. package/build-cjs/models/category/index.js.map +1 -0
  58. package/build-cjs/models/category/init.js.map +1 -0
  59. package/build-cjs/models/category/path-item/init.js.map +1 -0
  60. package/build-cjs/models/checkout-settings/address-field-restriction/index.d.ts +8 -0
  61. package/build-cjs/models/checkout-settings/index.d.ts +3 -0
  62. package/build-cjs/models/checkout-settings/index.js.map +1 -0
  63. package/build-cjs/models/country/init.js.map +1 -0
  64. package/build-cjs/models/customer/attribute/index.js.map +1 -0
  65. package/build-cjs/models/customer/attribute/init.js.map +1 -0
  66. package/build-cjs/models/customer/attribute/sales-channel/index.js.map +1 -0
  67. package/build-cjs/models/customer/index.js.map +1 -0
  68. package/build-cjs/models/customer/review/index.d.ts +22 -0
  69. package/build-cjs/models/customer/review/index.js +1 -1
  70. package/build-cjs/models/customer/review/index.js.map +1 -0
  71. package/build-cjs/models/customer/review/init.js.map +1 -0
  72. package/build-cjs/models/html-meta-data/index.js.map +1 -0
  73. package/build-cjs/models/html-meta-data/init.js.map +1 -0
  74. package/build-cjs/models/loyalty-program/index.d.ts +9 -0
  75. package/build-cjs/models/merchant-settings/address/type/index.js.map +1 -0
  76. package/build-cjs/models/merchant-settings/index.d.ts +1 -0
  77. package/build-cjs/models/merchant-settings/index.js.map +1 -0
  78. package/build-cjs/models/merchant-settings/init.js.map +1 -0
  79. package/build-cjs/models/order/adjustment/index.d.ts +3 -1
  80. package/build-cjs/models/order/adjustment/index.js.map +1 -0
  81. package/build-cjs/models/order/gift-card-line/index.d.ts +5 -0
  82. package/build-cjs/models/order/gift-card-line/index.js +1 -0
  83. package/build-cjs/models/order/index.d.ts +10 -2
  84. package/build-cjs/models/order/index.js +1 -1
  85. package/build-cjs/models/order/index.js.map +1 -0
  86. package/build-cjs/models/order/invoice/index.js.map +1 -0
  87. package/build-cjs/models/order/line-item/base-unit/index.js.map +1 -0
  88. package/build-cjs/models/order/line-item/bundle-product-settings/index.d.ts +5 -0
  89. package/build-cjs/models/order/line-item/index.d.ts +4 -0
  90. package/build-cjs/models/order/line-item/index.js.map +1 -0
  91. package/build-cjs/models/order/line-item/order-line-subscription-plan/index.d.ts +6 -0
  92. package/build-cjs/models/order/line-item/order-line-subscription-plan/order-line-item-subscription-plan-discount/index.d.ts +8 -0
  93. package/build-cjs/models/order/line-item/order-line-subscription-plan/order-line-item-subscription-plan-discount/index.js +1 -0
  94. package/build-cjs/models/order/line-item/order-line-subscription-plan/order-line-item-subscription-plan-period/index.d.ts +22 -0
  95. package/build-cjs/models/order/line-item/order-line-subscription-plan/order-line-item-subscription-plan-period/index.js +1 -0
  96. package/build-cjs/models/order/loyalty-line/index.d.ts +7 -0
  97. package/build-cjs/models/order/order-transaction-with-prices/index.d.ts +1 -0
  98. package/build-cjs/models/order/package/index.js.map +1 -0
  99. package/build-cjs/models/order/refund/settings/index.d.ts +1 -0
  100. package/build-cjs/models/order/transaction/index.js.map +1 -0
  101. package/build-cjs/models/order/transaction/payment-method-detail/index.js.map +1 -0
  102. package/build-cjs/models/payment-gateway/additional-price/index.js.map +1 -0
  103. package/build-cjs/models/payment-gateway/index.js.map +1 -0
  104. package/build-cjs/models/payment-gateway/init.js.map +1 -0
  105. package/build-cjs/models/payment-gateway/settings/index.js.map +1 -0
  106. package/build-cjs/models/product/attribute/index.js.map +1 -0
  107. package/build-cjs/models/product/attribute/init.js.map +1 -0
  108. package/build-cjs/models/product/attribute-value/init.js.map +1 -0
  109. package/build-cjs/models/product/campaign/data/index.d.ts +3 -1
  110. package/build-cjs/models/product/campaign/data/index.js +1 -1
  111. package/build-cjs/models/product/campaign/data/index.js.map +1 -0
  112. package/build-cjs/models/product/campaign/filter/index.js.map +1 -0
  113. package/build-cjs/models/product/campaign-offer/index.d.ts +2 -0
  114. package/build-cjs/models/product/filter/index.d.ts +2 -1
  115. package/build-cjs/models/product/filter/index.js +1 -1
  116. package/build-cjs/models/product/filter/index.js.map +1 -0
  117. package/build-cjs/models/product/image/init.js.map +1 -0
  118. package/build-cjs/models/product/index.d.ts +2 -0
  119. package/build-cjs/models/product/index.js.map +1 -0
  120. package/build-cjs/models/product/init.js.map +1 -0
  121. package/build-cjs/models/product/option-set/init.js.map +1 -0
  122. package/build-cjs/models/product/option-set/option/index.js.map +1 -0
  123. package/build-cjs/models/product/option-set/option/init.js.map +1 -0
  124. package/build-cjs/models/product/translations/index.d.ts +5 -0
  125. package/build-cjs/models/product/variant/init.js.map +1 -0
  126. package/build-cjs/models/product/variant/subscription-plan/index.d.ts +14 -0
  127. package/build-cjs/models/product/variant/subscription-plan/product-subscription-plan-discount/index.d.ts +8 -0
  128. package/build-cjs/models/product/variant/subscription-plan/product-subscription-plan-discount/index.js +1 -0
  129. package/build-cjs/models/product/variant/subscription-plan/product-subscription-plan-period/index.d.ts +28 -0
  130. package/build-cjs/models/product/variant/subscription-plan/product-subscription-plan-period/index.js +1 -0
  131. package/build-cjs/models/product/variant-type/init.js.map +1 -0
  132. package/build-cjs/models/raffle/index.js.map +1 -0
  133. package/build-cjs/models/raffle/init.js.map +1 -0
  134. package/build-cjs/models/stock-location/index.js.map +1 -0
  135. package/build-cjs/models/store-credit-balance/index.d.ts +24 -0
  136. package/build-cjs/models/store-credit-balance/index.js +1 -0
  137. package/build-cjs/models/storefront/index.js.map +1 -0
  138. package/build-cjs/models/storefront/meta-templates/index.js.map +1 -0
  139. package/build-cjs/models/storefront/theme/index.js.map +1 -0
  140. package/build-cjs/models/storefront-popup/index.d.ts +1 -0
  141. package/build-cjs/models/storefront-popup/storefront-popup-display-filter/index.d.ts +22 -3
  142. package/build-cjs/models/storefront-popup/storefront-popup-display-filter/index.js +1 -1
  143. package/build-cjs/models/theme-json/component/prop/index.d.ts +1 -0
  144. package/build-cjs/models/theme-json/component/prop/index.js.map +1 -0
  145. package/build-cjs/models/theme-json/custom-data/index.d.ts +1 -0
  146. package/build-cjs/models/theme-json/page/index.js.map +1 -0
  147. package/build-cjs/models/theme-json/settings/index.js.map +1 -0
  148. package/build-cjs/models/variant-type/index.js.map +1 -0
  149. package/build-cjs/models/variant-type/init.js.map +1 -0
  150. package/build-cjs/models/variant-type/variant-value/init.js.map +1 -0
  151. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ "use strict";var e;Object.defineProperty(exports,"__esModule",{value:!0}),exports.IkasOrderLineItemSubscriptionPlanDiscountAmountType=void 0,(e=exports.IkasOrderLineItemSubscriptionPlanDiscountAmountType||(exports.IkasOrderLineItemSubscriptionPlanDiscountAmountType={})).AMOUNT="AMOUNT",e.RATIO="RATIO";
@@ -0,0 +1,22 @@
1
+ import { IkasOrderLineItemSubscriptionPlanDiscount } from "../order-line-item-subscription-plan-discount";
2
+ export declare type IkasOrderLineItemSubscriptionPlanPeriod = {
3
+ cutOffDay: number | null;
4
+ discount: IkasOrderLineItemSubscriptionPlanDiscount | null;
5
+ durationUnit: IkasOrderLineItemSubscriptionPlanDurationUnitType;
6
+ durationValue: number;
7
+ id: string;
8
+ maxOrders: number | null;
9
+ paymentType: IkasOrderLineItemSubscriptionPlanPaymentType;
10
+ scheduledOrderDay: number | null;
11
+ title: string;
12
+ };
13
+ export declare enum IkasOrderLineItemSubscriptionPlanDurationUnitType {
14
+ DAY = "DAY",
15
+ MONTH = "MONTH",
16
+ WEEK = "WEEK",
17
+ YEAR = "YEAR"
18
+ }
19
+ export declare enum IkasOrderLineItemSubscriptionPlanPaymentType {
20
+ POST_PAID = "POST_PAID",
21
+ PRE_PAID = "PRE_PAID"
22
+ }
@@ -0,0 +1 @@
1
+ "use strict";var e,r;Object.defineProperty(exports,"__esModule",{value:!0}),exports.IkasOrderLineItemSubscriptionPlanDurationUnitType=void 0,(e=exports.IkasOrderLineItemSubscriptionPlanDurationUnitType||(exports.IkasOrderLineItemSubscriptionPlanDurationUnitType={})).DAY="DAY",e.MONTH="MONTH",e.WEEK="WEEK",e.YEAR="YEAR",exports.IkasOrderLineItemSubscriptionPlanPaymentType=void 0,(r=exports.IkasOrderLineItemSubscriptionPlanPaymentType||(exports.IkasOrderLineItemSubscriptionPlanPaymentType={})).POST_PAID="POST_PAID",r.PRE_PAID="PRE_PAID";
@@ -0,0 +1,7 @@
1
+ export declare type IkasOrderLoyaltyLine = {
2
+ amount: number;
3
+ id: string;
4
+ loyaltyProgramCustomerId: string;
5
+ loyaltyProgramId: string;
6
+ loyaltySpendingMethodId: string;
7
+ };
@@ -3,6 +3,7 @@ import { IkasTransactionWithPrices } from "./transaction-with-prices";
3
3
  export declare type IkasOrderTransactionWithPrices = {
4
4
  chargedAmount: number | null;
5
5
  orderFinalPrice: number | null;
6
+ pendingAmount: number | null;
6
7
  refundableTransactions: IkasListOrderTransactionWithPricesRefundableTransaction[];
7
8
  refundedAmount: number | null;
8
9
  remainingBalance: number | null;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../src/models/order/package/index.ts"],"sourcesContent":["import { IkasBaseModel } from \"../../base\";\nimport { IkasTrackingInfo } from \"./tracking-info\";\n\nexport type IkasOrderPackage = {\n errorMessage: string | null;\n note: string | null;\n orderLineItemIds: string[];\n orderPackageFulfillStatus: IkasOrderPackageFullfillStatus;\n orderPackageNumber: string;\n stockLocationId: string;\n trackingInfo: IkasTrackingInfo | null;\n} & IkasBaseModel;\n\nexport enum IkasOrderPackageFullfillStatus {\n CANCELLED = \"CANCELLED\",\n CANCEL_REJECTED = \"CANCEL_REJECTED\",\n CANCEL_REQUESTED = \"CANCEL_REQUESTED\",\n DELIVERED = \"DELIVERED\",\n ERROR = \"ERROR\",\n FULFILLED = \"FULFILLED\",\n READY_FOR_PICK_UP = \"READY_FOR_PICK_UP\",\n READY_FOR_SHIPMENT = \"READY_FOR_SHIPMENT\",\n REFUNDED = \"REFUNDED\",\n REFUND_REJECTED = \"REFUND_REJECTED\",\n REFUND_REQUESTED = \"REFUND_REQUESTED\",\n REFUND_REQUEST_ACCEPTED = \"REFUND_REQUEST_ACCEPTED\",\n UNABLE_TO_DELIVER = \"UNABLE_TO_DELIVER\",\n}\n"],"names":["IkasOrderPackageFullfillStatus"],"mappings":"aAaA,IAAYA,yDAAAA,QAcXA,oCAAA,GAdWA,EAAAA,QAA8BA,iCAA9BA,uCAcX,KAbC,UAAA,YACAA,EAAA,gBAAA,kBACAA,EAAA,iBAAA,mBACAA,EAAA,UAAA,YACAA,EAAA,MAAA,QACAA,EAAA,UAAA,YACAA,EAAA,kBAAA,oBACAA,EAAA,mBAAA,qBACAA,EAAA,SAAA,WACAA,EAAA,gBAAA,kBACAA,EAAA,iBAAA,mBACAA,EAAA,wBAAA,0BACAA,EAAA,kBAAA"}
@@ -2,4 +2,5 @@ export declare type IkasOrderRefundSettings = {
2
2
  isActiveRefundSection: boolean;
3
3
  orderRefundDayLimit: number | null;
4
4
  refundDesc: string;
5
+ storefrontId: string | null;
5
6
  };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../src/models/order/transaction/index.ts"],"sourcesContent":["import { IkasPaymentMethodType } from \"../../payment-gateway\";\nimport { IkasTransactionError } from \"./error\";\nimport { IkasTransactionPaymentMethodDetail } from \"./payment-method-detail\";\n\nexport type IkasOrderTransaction = {\n amount: number | null;\n checkoutId: string | null;\n createdAt: number | null;\n currencyCode: string | null;\n currencySymbol: string | null;\n customerId: string | null;\n error: IkasTransactionError | null;\n id: string | null;\n orderId: string | null;\n paymentGatewayId: string | null;\n paymentGatewayName: string | null;\n paymentMethod: IkasPaymentMethodType | null;\n paymentMethodDetail: IkasTransactionPaymentMethodDetail | null;\n processedAt: number | null;\n refundReason: string | null;\n status: IkasTransactionStatus | null;\n type: IkasTransactionType | null;\n updatedAt: number | null;\n};\n\nexport enum IkasTransactionStatus {\n AUTHORIZED = \"AUTHORIZED\",\n FAILED = \"FAILED\",\n PENDING = \"PENDING\",\n SUCCESS = \"SUCCESS\",\n}\n\nexport enum IkasTransactionType {\n REFUND = \"REFUND\",\n SALE = \"SALE\",\n VOID = \"VOID\",\n}\n"],"names":["IkasTransactionStatus","IkasTransactionType"],"mappings":"aAyBA,IAAYA,EAOAC,yDAPAD,QAKXA,2BAAA,GALWA,EAAAA,gCAAAA,QAAAA,sBAKX,KAJC,WAAA,aACAA,EAAA,OAAA,SACAA,EAAA,QAAA,UACAA,EAAA,QAAA,UAGUC,QAIXA,yBAAA,GAJWA,EAAAA,QAAmBA,sBAAnBA,4BAIX,KAHC,OAAA,SACAA,EAAA,KAAA,OACAA,EAAA,KAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../src/models/order/transaction/payment-method-detail/index.ts"],"sourcesContent":["import { IkasTransactionInstallmentPrice } from \"./installment-price\";\n\nexport type IkasTransactionPaymentMethodDetail = {\n bankName: string | null;\n binNumber: string;\n cardAssociation: IkasTransactionCardAssociation | null;\n cardFamily: string | null;\n cardType: IkasTransactionCardType | null;\n installment: IkasTransactionInstallmentPrice | null;\n lastFourDigits: string;\n threeDSecure: boolean | null;\n};\n\nexport enum IkasTransactionCardAssociation {\n AMERICAN_EXPRESS = \"AMERICAN_EXPRESS\",\n MASTER_CARD = \"MASTER_CARD\",\n TROY = \"TROY\",\n VISA = \"VISA\",\n}\n\nexport enum IkasTransactionCardType {\n CREDIT = \"CREDIT\",\n DEBIT = \"DEBIT\",\n PREPAID = \"PREPAID\",\n}\n"],"names":["IkasTransactionCardAssociation","IkasTransactionCardType"],"mappings":"aAaA,IAAYA,EAOAC,yDAPAD,QAKXA,oCAAA,GALWA,EAAAA,yCAAAA,QAAAA,+BAKX,KAJC,iBAAA,mBACAA,EAAA,YAAA,cACAA,EAAA,KAAA,OACAA,EAAA,KAAA,OAGUC,QAIXA,6BAAA,GAJWA,EAAAA,QAAuBA,0BAAvBA,gCAIX,KAHC,OAAA,SACAA,EAAA,MAAA,QACAA,EAAA,QAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../src/models/payment-gateway/additional-price/index.ts"],"sourcesContent":["export type IkasPaymentGatewayAdditionalPrice = {\n amount: number;\n amountType: IkasPaymentGatewayTransactionFeeType;\n name: string;\n type: IkasPaymentGatewayAdditionalPriceType;\n};\n\nexport enum IkasPaymentGatewayTransactionFeeType {\n AMOUNT = \"AMOUNT\",\n RATIO = \"RATIO\",\n}\n\nexport enum IkasPaymentGatewayAdditionalPriceType {\n DECREMENT = \"DECREMENT\",\n INCREMENT = \"INCREMENT\",\n}\n"],"names":["IkasPaymentGatewayTransactionFeeType","IkasPaymentGatewayAdditionalPriceType"],"mappings":"aAOA,IAAYA,EAKAC,yDALAD,QAGXA,0CAAA,GAHWA,EAAAA,+CAAAA,QAAAA,qCAGX,KAFC,OAAA,SACAA,EAAA,MAAA,QAGUC,QAGXA,2CAAA,GAHWA,EAAAA,QAAqCA,wCAArCA,8CAGX,KAFC,UAAA,YACAA,EAAA,UAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/models/payment-gateway/index.ts"],"sourcesContent":["import { IkasPaymentGatewayAdditionalPrice } from \"./additional-price\";\nimport { IkasBaseModel } from \"../base\";\nimport { IkasPaymentGatewayTranslation } from \"./translation\";\nimport { IkasPaymentGatewaySettings } from \"./settings\";\n\nexport type IkasPaymentGateway = {\n additionalPrices: IkasPaymentGatewayAdditionalPrice[] | null;\n availableCountries: string[] | null;\n code: string;\n description: string | null;\n logoUrl: string | null;\n masterPassClientId: string | null;\n name: string;\n paymentGatewayProviderId: string | null;\n supportedCurrencies: string[] | null;\n testMode: boolean | null;\n type: IkasPaymentGatewayType;\n paymentMethods: IkasPaymentMethod[];\n paymentMethodType: IkasPaymentMethodType;\n settings?: IkasPaymentGatewaySettings[] | null;\n\n translations?: IkasPaymentGatewayTranslation[] | null;\n} & IkasBaseModel;\n\nexport enum IkasPaymentMethodType {\n APP_PAYMENT = \"APP_PAYMENT\",\n BUY_ONLINE_PAY_AT_STORE = \"BUY_ONLINE_PAY_AT_STORE\",\n CASH = \"CASH\",\n CASH_ON_DELIVERY = \"CASH_ON_DELIVERY\",\n CREDIT_CARD = \"CREDIT_CARD\",\n CREDIT_CARD_ON_DELIVERY = \"CREDIT_CARD_ON_DELIVERY\",\n GIFT_CARD = \"GIFT_CARD\",\n MONEY_ORDER = \"MONEY_ORDER\",\n OTHER = \"OTHER\",\n WALLET = \"WALLET\",\n}\n\nexport type IkasPaymentMethod = {\n name: string;\n logoUrl: string | null;\n};\n\nexport enum IkasPaymentGatewayType {\n EXTERNAL = \"EXTERNAL\",\n INTERNAL = \"INTERNAL\",\n THIRD_PARTY = \"THIRD_PARTY\",\n}\n"],"names":["IkasPaymentMethodType","IkasPaymentGatewayType"],"mappings":"aAwBA,IAAYA,EAkBAC,yDAlBAD,QAWXA,2BAAA,GAXWA,EAAAA,gCAAAA,QAAAA,sBAWX,KAVC,YAAA,cACAA,EAAA,wBAAA,0BACAA,EAAA,KAAA,OACAA,EAAA,iBAAA,mBACAA,EAAA,YAAA,cACAA,EAAA,wBAAA,0BACAA,EAAA,UAAA,YACAA,EAAA,YAAA,cACAA,EAAA,MAAA,QACAA,EAAA,OAAA,SAQUC,QAIXA,4BAAA,GAJWA,EAAAA,QAAsBA,yBAAtBA,+BAIX,KAHC,SAAA,WACAA,EAAA,SAAA,WACAA,EAAA,YAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init.js","sources":["../../../src/models/payment-gateway/init.ts"],"sourcesContent":["import { IkasPaymentGateway } from \".\";\nimport { IkasPaymentGatewayTranslation } from \"./translation\";\n\nexport function initIkasPaymentGateway(\n paymentGateway: IkasPaymentGateway,\n locale: string | null\n) {\n if (paymentGateway.translations && locale) {\n setTranslations(paymentGateway, paymentGateway.translations, locale);\n delete paymentGateway.translations;\n }\n}\n\nfunction setTranslations(\n paymentGateway: IkasPaymentGateway,\n translations: IkasPaymentGatewayTranslation[],\n locale: string\n) {\n if (translations && translations.some((t) => t.locale === locale)) {\n const localeTranslations = translations.find((t) => t.locale === locale);\n\n if (localeTranslations?.name) paymentGateway.name = localeTranslations.name;\n if (localeTranslations?.description)\n paymentGateway.description = localeTranslations.description;\n }\n}\n"],"names":["paymentGateway","locale","translations","some","t","localeTranslations","find","name","description","setTranslations"],"mappings":"mGAGgB,SACdA,EACAC,GAEID,EAAeE,cAAgBD,KAMrC,SACED,EACAE,EACAD,GAEA,GAAIC,GAAgBA,EAAaC,MAAK,SAACC,GAAM,OAAAA,EAAEH,SAAWA,KAAS,CACjE,IAAMI,EAAqBH,EAAaI,MAAK,SAACF,GAAM,OAAAA,EAAEH,SAAWA,MAE7DI,aAAA,EAAAA,EAAoBE,QAAMP,EAAeO,KAAOF,EAAmBE,OACnEF,aAAA,EAAAA,EAAoBG,eACtBR,EAAeQ,YAAcH,EAAmBG,cAflDC,CAAgBT,EAAgBA,EAAeE,aAAcD,UACtDD,EAAeE"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../src/models/payment-gateway/settings/index.ts"],"sourcesContent":["export type IkasPaymentGatewaySettings = {\n label: string;\n order: number;\n type: IkasPaymentGatewaySettingsType;\n value: string | null;\n};\n\nexport enum IkasPaymentGatewaySettingsType {\n NUMBER = \"NUMBER\",\n PASSWORD = \"PASSWORD\",\n TEXT = \"TEXT\",\n}\n"],"names":["IkasPaymentGatewaySettingsType"],"mappings":"aAOA,IAAYA,yDAAAA,QAIXA,oCAAA,GAJWA,EAAAA,QAA8BA,iCAA9BA,uCAIX,KAHC,OAAA,SACAA,EAAA,SAAA,WACAA,EAAA,KAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../src/models/product/attribute/index.ts"],"sourcesContent":["import { IkasProductAttributeTableTemplate } from \"./table-template\";\nimport { IkasProductAttributeOption } from \"./option\";\nimport { IkasProductAttributeTranslation } from \"./translation\";\n\nexport type IkasProductAttribute = {\n id: string;\n name: string;\n description: string | null;\n type: IkasProductAttributeType;\n options: IkasProductAttributeOption[] | null;\n tableTemplate: IkasProductAttributeTableTemplate | null;\n translations?: IkasProductAttributeTranslation[] | null;\n};\n\nexport enum IkasProductAttributeType {\n CHOICE = \"CHOICE\",\n MULTIPLE_CHOICE = \"MULTIPLE_CHOICE\",\n TEXT = \"TEXT\",\n BOOLEAN = \"BOOLEAN\",\n NUMERIC = \"NUMERIC\",\n DATETIME = \"DATETIME\",\n HTML = \"HTML\",\n TABLE = \"TABLE\",\n IMAGE = \"IMAGE\",\n PRODUCT = \"PRODUCT\",\n}\n"],"names":["IkasProductAttributeType"],"mappings":"aAcA,IAAYA,yDAAAA,QAWXA,8BAAA,GAXWA,EAAAA,QAAwBA,2BAAxBA,iCAWX,KAVC,OAAA,SACAA,EAAA,gBAAA,kBACAA,EAAA,KAAA,OACAA,EAAA,QAAA,UACAA,EAAA,QAAA,UACAA,EAAA,SAAA,WACAA,EAAA,KAAA,OACAA,EAAA,MAAA,QACAA,EAAA,MAAA,QACAA,EAAA,QAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init.js","sources":["../../../../src/models/product/attribute/init.ts"],"sourcesContent":["import { IkasProductAttribute } from \".\";\nimport { IkasProductAttributeTranslation } from \"./translation\";\n\nexport function initIkasProductAttribute(\n attribute: IkasProductAttribute,\n locale: string | null\n) {\n if (attribute.translations && locale) {\n setTranslations(attribute, attribute.translations, locale);\n delete attribute.translations;\n }\n}\n\nfunction setTranslations(\n attribute: IkasProductAttribute,\n translations: IkasProductAttributeTranslation[],\n locale: string\n) {\n if (translations && translations.some((t) => t.locale === locale)) {\n const localeTranslations = translations.find((t) => t.locale === locale);\n\n if (localeTranslations?.name) attribute.name = localeTranslations.name;\n if (localeTranslations?.description)\n attribute.description = localeTranslations.description;\n if (localeTranslations?.options) {\n attribute.options?.forEach((o) => {\n const translatedVV = localeTranslations.options?.find(\n (to) => to.id === o.id\n );\n if (translatedVV && translatedVV.name) o.name = translatedVV.name;\n });\n }\n }\n}\n"],"names":["attribute","locale","translations","some","t","localeTranslations_1","find","name","description","options","_a","forEach","o","translatedVV","to","id","setTranslations"],"mappings":"qGAGgB,SACdA,EACAC,GAEID,EAAUE,cAAgBD,KAMhC,SACED,EACAE,EACAD,SAEA,GAAIC,GAAgBA,EAAaC,MAAK,SAACC,GAAM,OAAAA,EAAEH,SAAWA,KAAS,CACjE,IAAMI,EAAqBH,EAAaI,MAAK,SAACF,GAAM,OAAAA,EAAEH,SAAWA,MAE7DI,aAAA,EAAAA,EAAoBE,QAAMP,EAAUO,KAAOF,EAAmBE,OAC9DF,aAAA,EAAAA,EAAoBG,eACtBR,EAAUQ,YAAcH,EAAmBG,cACzCH,eAAAA,EAAoBI,mBACtBC,EAAAV,EAAUS,wBAASE,SAAQ,SAACC,SACpBC,EAAyC,QAA1BH,EAAAL,EAAmBI,eAAO,IAAAC,OAAA,EAAAA,EAAEJ,MAC/C,SAACQ,GAAO,OAAAA,EAAGC,KAAOH,EAAEG,MAElBF,GAAgBA,EAAaN,OAAMK,EAAEL,KAAOM,EAAaN,WArBjES,CAAgBhB,EAAWA,EAAUE,aAAcD,UAC5CD,EAAUE"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init.js","sources":["../../../../src/models/product/attribute-value/init.ts"],"sourcesContent":["import { IkasProductAttributeValue } from \".\";\n\nexport function initIkasProductAttributeValue(\n value: IkasProductAttributeValue\n) {\n value.images = value.imageIds?.map((i) => ({ id: i, isVideo: false }));\n}\n"],"names":["value","images","_a","imageIds","map","i","id","isVideo"],"mappings":"0GAEM,SACJA,SAEAA,EAAMC,OAAuB,QAAdC,EAAAF,EAAMG,gBAAQ,IAAAD,OAAA,EAAAA,EAAEE,KAAI,SAACC,GAAM,OAAGC,GAAID,EAAGE,SAAS"}
@@ -31,7 +31,9 @@ export declare enum IkasCampaignApplicablePrice {
31
31
  export declare enum IkasCampaignCreatedFor {
32
32
  ABANDONED_CHECKOUT = "ABANDONED_CHECKOUT",
33
33
  CART = "CART",
34
- CUSTOMER_REVIEW = "CUSTOMER_REVIEW"
34
+ CUSTOMER_REVIEW = "CUSTOMER_REVIEW",
35
+ LOYALTY_SPEND = "LOYALTY_SPEND",
36
+ MARKETING_CAMPAIGN = "MARKETING_CAMPAIGN"
35
37
  }
36
38
  export declare enum IkasCampaignType {
37
39
  BUY_X_THEN_GET_Y = "BUY_X_THEN_GET_Y",
@@ -1 +1 @@
1
- "use strict";var a,e,p;Object.defineProperty(exports,"__esModule",{value:!0}),exports.IkasCampaignApplicablePrice=void 0,(a=exports.IkasCampaignApplicablePrice||(exports.IkasCampaignApplicablePrice={})).DISCOUNT_PRICE="DISCOUNT_PRICE",a.SELL_PRICE="SELL_PRICE",exports.IkasCampaignCreatedFor=void 0,(e=exports.IkasCampaignCreatedFor||(exports.IkasCampaignCreatedFor={})).ABANDONED_CHECKOUT="ABANDONED_CHECKOUT",e.CART="CART",e.CUSTOMER_REVIEW="CUSTOMER_REVIEW",exports.IkasCampaignType=void 0,(p=exports.IkasCampaignType||(exports.IkasCampaignType={})).BUY_X_THEN_GET_Y="BUY_X_THEN_GET_Y",p.FIXED_AMOUNT="FIXED_AMOUNT",p.FREE_SHIPPING="FREE_SHIPPING",p.RATIO="RATIO";
1
+ "use strict";var a,e,E;Object.defineProperty(exports,"__esModule",{value:!0}),exports.IkasCampaignApplicablePrice=void 0,(a=exports.IkasCampaignApplicablePrice||(exports.IkasCampaignApplicablePrice={})).DISCOUNT_PRICE="DISCOUNT_PRICE",a.SELL_PRICE="SELL_PRICE",exports.IkasCampaignCreatedFor=void 0,(e=exports.IkasCampaignCreatedFor||(exports.IkasCampaignCreatedFor={})).ABANDONED_CHECKOUT="ABANDONED_CHECKOUT",e.CART="CART",e.CUSTOMER_REVIEW="CUSTOMER_REVIEW",e.LOYALTY_SPEND="LOYALTY_SPEND",e.MARKETING_CAMPAIGN="MARKETING_CAMPAIGN",exports.IkasCampaignType=void 0,(E=exports.IkasCampaignType||(exports.IkasCampaignType={})).BUY_X_THEN_GET_Y="BUY_X_THEN_GET_Y",E.FIXED_AMOUNT="FIXED_AMOUNT",E.FREE_SHIPPING="FREE_SHIPPING",E.RATIO="RATIO";
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../src/models/product/campaign/data/index.ts"],"sourcesContent":["import { IkasProductBuyXThenGetY } from \"../product-buyx-then-gety\";\nimport { IkasProductCampaignDateRangeField } from \"../product-campaign-date-range-field\";\nimport { IkasProductFixedDiscount } from \"../product-fixed-discount\";\n\nexport type IkasProductCampaignData = {\n applicableCustomerGroupIds: string[] | null;\n applicableCustomerIds: string[] | null;\n applicablePrice: IkasCampaignApplicablePrice;\n buyXThenGetY: IkasProductBuyXThenGetY;\n canCombineWithOtherCampaigns: boolean;\n createdFor: IkasCampaignCreatedFor | null;\n currencyCodes: [string] | null;\n dateRange: IkasProductCampaignDateRangeField | null;\n deleted: boolean;\n fixedDiscount: IkasProductFixedDiscount | null;\n hasCoupon: boolean;\n id: string;\n includeDiscountedProducts: boolean | null;\n salesChannelIds: string[] | null;\n title: string;\n type: IkasCampaignType;\n usageCount: number;\n usageLimit: number | null;\n usageLimitPerCustomer: number | null;\n};\n\nexport enum IkasCampaignApplicablePrice {\n DISCOUNT_PRICE = \"DISCOUNT_PRICE\",\n SELL_PRICE = \"SELL_PRICE\",\n}\n\nexport enum IkasCampaignCreatedFor {\n ABANDONED_CHECKOUT = \"ABANDONED_CHECKOUT\",\n CART = \"CART\",\n CUSTOMER_REVIEW = \"CUSTOMER_REVIEW\",\n}\n\nexport enum IkasCampaignType {\n BUY_X_THEN_GET_Y = \"BUY_X_THEN_GET_Y\",\n FIXED_AMOUNT = \"FIXED_AMOUNT\",\n FREE_SHIPPING = \"FREE_SHIPPING\",\n RATIO = \"FREE_SHIPPING\",\n}\n"],"names":["IkasCampaignApplicablePrice","IkasCampaignCreatedFor","IkasCampaignType"],"mappings":"aA0BA,IAAYA,EAKAC,EAMAC,yDAXAF,QAGXA,iCAAA,GAHWA,EAAAA,sCAAAA,QAAAA,4BAGX,KAFC,eAAA,iBACAA,EAAA,WAAA,aAGUC,QAIXA,4BAAA,GAJWA,EAAAA,iCAAAA,QAAAA,uBAIX,KAHC,mBAAA,qBACAA,EAAA,KAAA,OACAA,EAAA,gBAAA,kBAGUC,QAKXA,sBAAA,GALWA,EAAAA,QAAgBA,mBAAhBA,yBAKX,KAJC,iBAAA,mBACAA,EAAA,aAAA,eACAA,EAAA,cAAA,gBACAA,EAAA,MAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../src/models/product/campaign/filter/index.ts"],"sourcesContent":["export type IkasProductCampaignFilter = {\n idList: string[];\n type: IkasCampaignFilterType;\n};\n\nexport enum IkasCampaignFilterType {\n CATEGORY = \"CATEGORY\",\n PRODUCT = \"PRODUCT\",\n PRODUCT_BRAND = \"PRODUCT_BRAND\",\n PRODUCT_TAG = \"PRODUCT_TAG\",\n VARIANT = \"VARIANT\",\n}\n"],"names":["IkasCampaignFilterType"],"mappings":"aAKA,IAAYA,yDAAAA,QAMXA,4BAAA,GANWA,EAAAA,QAAsBA,yBAAtBA,+BAMX,KALC,SAAA,WACAA,EAAA,QAAA,UACAA,EAAA,cAAA,gBACAA,EAAA,YAAA,cACAA,EAAA,QAAA"}
@@ -8,4 +8,6 @@ export declare type IkasProductOffer = {
8
8
  product: IkasProduct;
9
9
  isSelected?: boolean;
10
10
  quantity?: number;
11
+ title?: string | null;
12
+ description?: string | null;
11
13
  };
@@ -51,7 +51,8 @@ export declare enum IkasProductFilterType {
51
51
  PRICE = "PRICE",
52
52
  STOCK_STATUS = "STOCK_STATUS",
53
53
  TAG = "TAG",
54
- VARIANT_TYPE = "VARIANT_TYPE"
54
+ VARIANT_TYPE = "VARIANT_TYPE",
55
+ DISCOUNT_STATUS = "DISCOUNT_STATUS"
55
56
  }
56
57
  export declare enum IkasProductFilterDisplayType {
57
58
  BOX = "BOX",
@@ -1 +1 @@
1
- "use strict";var T,t,e,r;Object.defineProperty(exports,"__esModule",{value:!0}),exports.IkasProductFilterType=void 0,(T=exports.IkasProductFilterType||(exports.IkasProductFilterType={})).ATTRIBUTE="ATTRIBUTE",T.BRAND="BRAND",T.DISCOUNT_RATIO="DISCOUNT_RATIO",T.PRICE="PRICE",T.STOCK_STATUS="STOCK_STATUS",T.TAG="TAG",T.VARIANT_TYPE="VARIANT_TYPE",exports.IkasProductFilterDisplayType=void 0,(t=exports.IkasProductFilterDisplayType||(exports.IkasProductFilterDisplayType={})).BOX="BOX",t.DATE_RANGE="DATE_RANGE",t.LIST="LIST",t.NUMBER_RANGE_LIST="NUMBER_RANGE_LIST",t.NUMBER_RANGE="NUMBER_RANGE",t.SWATCH="SWATCH",exports.IkasProductFilterSortType=void 0,(e=exports.IkasProductFilterSortType||(exports.IkasProductFilterSortType={})).ALPHABETICAL_ASC="ALPHABETICAL_ASC",e.ALPHABETICAL_DESC="ALPHABETICAL_DESC",e.PRODUCT_COUNT_ASC="PRODUCT_COUNT_ASC",e.PRODUCT_COUNT_DESC="PRODUCT_COUNT_DESC",e.CUSTOM_SORT="CUSTOM_SORT",exports.IkasProductStockFilterValue=void 0,(r=exports.IkasProductStockFilterValue||(exports.IkasProductStockFilterValue={})).IN_STOCK="in-stock",r.OUT_OF_STOCK="out-of-stock";
1
+ "use strict";var T,t,e,r;Object.defineProperty(exports,"__esModule",{value:!0}),exports.IkasProductFilterType=void 0,(T=exports.IkasProductFilterType||(exports.IkasProductFilterType={})).ATTRIBUTE="ATTRIBUTE",T.BRAND="BRAND",T.DISCOUNT_RATIO="DISCOUNT_RATIO",T.PRICE="PRICE",T.STOCK_STATUS="STOCK_STATUS",T.TAG="TAG",T.VARIANT_TYPE="VARIANT_TYPE",T.DISCOUNT_STATUS="DISCOUNT_STATUS",exports.IkasProductFilterDisplayType=void 0,(t=exports.IkasProductFilterDisplayType||(exports.IkasProductFilterDisplayType={})).BOX="BOX",t.DATE_RANGE="DATE_RANGE",t.LIST="LIST",t.NUMBER_RANGE_LIST="NUMBER_RANGE_LIST",t.NUMBER_RANGE="NUMBER_RANGE",t.SWATCH="SWATCH",exports.IkasProductFilterSortType=void 0,(e=exports.IkasProductFilterSortType||(exports.IkasProductFilterSortType={})).ALPHABETICAL_ASC="ALPHABETICAL_ASC",e.ALPHABETICAL_DESC="ALPHABETICAL_DESC",e.PRODUCT_COUNT_ASC="PRODUCT_COUNT_ASC",e.PRODUCT_COUNT_DESC="PRODUCT_COUNT_DESC",e.CUSTOM_SORT="CUSTOM_SORT",exports.IkasProductStockFilterValue=void 0,(r=exports.IkasProductStockFilterValue||(exports.IkasProductStockFilterValue={})).IN_STOCK="in-stock",r.OUT_OF_STOCK="out-of-stock";
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../src/models/product/filter/index.ts"],"sourcesContent":["import { IkasImage } from \"../../image\";\n\nexport type IkasProductFilter = {\n id: string;\n key: string;\n name: string;\n order: number;\n type: IkasProductFilterType;\n displayType: IkasProductFilterDisplayType;\n isMultiSelect: boolean;\n isFacetFilter: boolean | null;\n values?: IkasApplicableProductFilterValue[] | null;\n customValues?: string[] | null;\n settings?: IkasProductFilterSettings | null;\n\n // Extra\n numberRange?: IkasFilterRangeValue | null; // Selected range value for the number slider\n numberRangeLimit?: IkasFilterRangeValue | null; // Limits for the number range slider\n numberRangeListOptions?: IkasProductFilterNumberRangeListOption[] | null; // List options for the number range select\n};\n\nexport type IkasApplicableProductFilterValue = {\n id: string;\n key: string;\n name: string;\n colorCode?: string | null;\n thumbnailImageId?: string | null;\n thumbnailImage?: IkasImage | null;\n resultCount?: number | null;\n\n // Extra\n isSelected: boolean;\n};\n\nexport type IkasProductFilterValue = {\n id: string;\n type: IkasProductFilterType;\n displayType: IkasProductFilterDisplayType;\n valueList: string[];\n};\n\nexport type IkasProductFilterSettings = {\n useAndFilter?: boolean | null;\n showCollapsedOnDesktop: boolean;\n showCollapsedOnMobile: boolean;\n sortType: IkasProductFilterSortType;\n customSortedValues: string[] | null;\n};\n\nexport type IkasProductFacetInput = {\n id: string;\n type: IkasProductFilterType;\n displayType: IkasProductFilterDisplayType;\n};\n\nexport enum IkasProductFilterType {\n ATTRIBUTE = \"ATTRIBUTE\",\n BRAND = \"BRAND\",\n DISCOUNT_RATIO = \"DISCOUNT_RATIO\",\n PRICE = \"PRICE\",\n STOCK_STATUS = \"STOCK_STATUS\",\n TAG = \"TAG\",\n VARIANT_TYPE = \"VARIANT_TYPE\",\n}\n\nexport enum IkasProductFilterDisplayType {\n BOX = \"BOX\",\n DATE_RANGE = \"DATE_RANGE\",\n LIST = \"LIST\",\n NUMBER_RANGE_LIST = \"NUMBER_RANGE_LIST\",\n NUMBER_RANGE = \"NUMBER_RANGE\",\n SWATCH = \"SWATCH\",\n}\n\nexport enum IkasProductFilterSortType {\n ALPHABETICAL_ASC = \"ALPHABETICAL_ASC\",\n ALPHABETICAL_DESC = \"ALPHABETICAL_DESC\",\n PRODUCT_COUNT_ASC = \"PRODUCT_COUNT_ASC\",\n PRODUCT_COUNT_DESC = \"PRODUCT_COUNT_DESC\",\n CUSTOM_SORT = \"CUSTOM_SORT\",\n}\n\nexport enum IkasProductStockFilterValue {\n IN_STOCK = \"in-stock\",\n OUT_OF_STOCK = \"out-of-stock\",\n}\n\nexport type IkasFilterRangeValue = {\n from: number;\n to: number | undefined | null;\n};\n\nexport type IkasProductFilterNumberRangeListOption = {\n from: number;\n to: number | undefined | null;\n key: string;\n isSelected: boolean;\n};\n"],"names":["IkasProductFilterType","IkasProductFilterDisplayType","IkasProductFilterSortType","IkasProductStockFilterValue"],"mappings":"aAuDA,IAAYA,EAUAC,EASAC,EAQAC,yDA3BAH,QAQXA,2BAAA,GARWA,EAAAA,gCAAAA,QAAAA,sBAQX,KAPC,UAAA,YACAA,EAAA,MAAA,QACAA,EAAA,eAAA,iBACAA,EAAA,MAAA,QACAA,EAAA,aAAA,eACAA,EAAA,IAAA,MACAA,EAAA,aAAA,eAGUC,QAOXA,kCAAA,GAPWA,EAAAA,uCAAAA,QAAAA,6BAOX,KANC,IAAA,MACAA,EAAA,WAAA,aACAA,EAAA,KAAA,OACAA,EAAA,kBAAA,oBACAA,EAAA,aAAA,eACAA,EAAA,OAAA,SAGUC,QAMXA,+BAAA,GANWA,EAAAA,oCAAAA,QAAAA,0BAMX,KALC,iBAAA,mBACAA,EAAA,kBAAA,oBACAA,EAAA,kBAAA,oBACAA,EAAA,mBAAA,qBACAA,EAAA,YAAA,cAGUC,QAGXA,iCAAA,GAHWA,EAAAA,QAA2BA,8BAA3BA,oCAGX,KAFC,SAAA,WACAA,EAAA,aAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init.js","sources":["../../../../src/models/product/image/init.ts"],"sourcesContent":["import { IkasProductImage } from \".\";\n\nexport function initIkasProductImage(productImage: IkasProductImage) {\n productImage.image = productImage.imageId\n ? { id: productImage.imageId, isVideo: productImage.isVideo || false }\n : null;\n}\n"],"names":["productImage","image","imageId","id","isVideo"],"mappings":"iGAEM,SAA+BA,GACnCA,EAAaC,MAAQD,EAAaE,QAC9B,CAAEC,GAAIH,EAAaE,QAASE,QAASJ,EAAaI,UAAW,GAC7D"}
@@ -13,6 +13,7 @@ import { IkasProductCampaign } from "./campaign";
13
13
  import { IkasProductCampaignOffer } from "./campaign-offer";
14
14
  import { IkasProductGroup } from "./group";
15
15
  import { IkasProductSalesChannel } from "./sales-channel";
16
+ import { IkasProductTranslation } from "./translations";
16
17
  export declare type IkasProduct = {
17
18
  id: string;
18
19
  name: string;
@@ -39,6 +40,7 @@ export declare type IkasProduct = {
39
40
  campaignOffers: IkasProductCampaignOffer[] | null;
40
41
  productGroup: IkasProductGroup | null;
41
42
  salesChannels: IkasProductSalesChannel[] | null;
43
+ translations?: IkasProductTranslation[] | null;
42
44
  };
43
45
  export declare enum IkasProductType {
44
46
  PHYSICAL = "PHYSICAL",
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/models/product/index.ts"],"sourcesContent":["import { IkasCategory } from \"../category\";\nimport { IkasProductVariant } from \"./variant\";\nimport { IkasProductAttributeValue } from \"./attribute-value\";\nimport { IkasProductVariantType } from \"./variant-type\";\nimport { IkasBrand } from \"../brand\";\nimport { IkasHTMLMetaData } from \"../html-meta-data\";\nimport { IkasProductTag } from \"./tag\";\nimport { IkasVariantValue } from \"../variant-type/variant-value\";\nimport { IkasVariantType } from \"../variant-type\";\nimport { IkasProductBaseUnit } from \"./base-unit\";\n\nexport type IkasProduct = {\n id: string;\n name: string;\n type: IkasProductType;\n description: string;\n shortDescription: string;\n metaData: IkasHTMLMetaData | null;\n brand: IkasBrand | null;\n categories: IkasCategory[];\n tags: IkasProductTag[] | null;\n variants: IkasProductVariant[];\n attributes: IkasProductAttributeValue[];\n variantTypes: IkasProductVariantType[];\n productOptionSetId: string | null;\n baseUnit: IkasProductBaseUnit | null;\n averageRating: number | null;\n reviewCount: number | null;\n};\n\nexport enum IkasProductType {\n PHYSICAL = \"PHYSICAL\",\n DIGITAL = \"DIGITAL\",\n MEMBERSHIP = \"MEMBERSHIP\",\n}\n\nexport type IkasDisplayedVariantValue = {\n variant: IkasProductVariant; // TODO remove?\n variantValue: IkasVariantValue;\n hasStock: boolean;\n isSelected: boolean;\n};\n\nexport type IkasDisplayedVariantType = {\n variantType: IkasVariantType;\n displayedVariantValues: IkasDisplayedVariantValue[];\n};\n"],"names":["IkasProductType"],"mappings":"aA8BA,IAAYA,yDAAAA,QAIXA,qBAAA,GAJWA,EAAAA,QAAeA,kBAAfA,wBAIX,KAHC,SAAA,WACAA,EAAA,QAAA,UACAA,EAAA,WAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init.js","sources":["../../../src/models/product/init.ts"],"sourcesContent":["import type { IkasProduct } from \".\";\nimport { initIkasProductVariantType } from \"./variant-type/init\";\nimport { initIkasProductVariant } from \"./variant/init\";\nimport { initIkasProductAttributeValue } from \"./attribute-value/init\";\nimport { initIkasBrand } from \"../brand/init\";\nimport { initIkasCategory } from \"../category/init\";\nimport { initIkasHTMLMetaData } from \"../html-meta-data/init\";\n\nexport function initIkasProduct(product: IkasProduct, locale: string | null) {\n product.metaData && initIkasHTMLMetaData(product.metaData, locale);\n product.brand && initIkasBrand(product.brand, locale);\n product.categories.forEach((c) => initIkasCategory(c, locale));\n product.variants.forEach(initIkasProductVariant);\n product.attributes.forEach(initIkasProductAttributeValue);\n product.variantTypes.forEach(initIkasProductVariantType);\n}\n"],"names":["product","locale","metaData","initIkasHTMLMetaData","brand","initIkasBrand","categories","forEach","c","initIkasCategory","variants","initIkasProductVariant","attributes","initIkasProductAttributeValue","variantTypes","initIkasProductVariantType"],"mappings":"gTAQgB,SAAgBA,EAAsBC,GACpDD,EAAQE,UAAYC,EAAoBA,qBAACH,EAAQE,SAAUD,GAC3DD,EAAQI,OAASC,EAAaA,cAACL,EAAQI,MAAOH,GAC9CD,EAAQM,WAAWC,SAAQ,SAACC,GAAM,OAAAC,EAAgBA,iBAACD,EAAGP,MACtDD,EAAQU,SAASH,QAAQI,EAAAA,wBACzBX,EAAQY,WAAWL,QAAQM,EAAAA,+BAC3Bb,EAAQc,aAAaP,QAAQQ,EAAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init.js","sources":["../../../../src/models/product/option-set/init.ts"],"sourcesContent":["import { IkasProductOptionSet, IkasProductOptionSetTranslations } from \".\";\nimport { IkasProductOption, IkasProductOptionType } from \"./option\";\nimport { initIkasProductOption } from \"./option/init\";\n\nexport function initIkasProductOptionSet(\n optionSet: IkasProductOptionSet,\n locale: string | null\n) {\n optionSet.options.forEach((option) => {\n option.productOptionSetId = optionSet.id;\n initIkasProductOption(option);\n });\n\n if (optionSet.translations && locale) {\n setTranslations(optionSet, optionSet.translations, locale);\n delete optionSet.translations;\n }\n setChildOptions(optionSet);\n initOptionValues(optionSet);\n}\n\nfunction setTranslations(\n optionSet: IkasProductOptionSet,\n translations: IkasProductOptionSetTranslations[],\n locale: string\n) {\n if (translations && translations.some((t) => t.locale === locale)) {\n const localeTranslations = translations.find((t) => t.locale === locale);\n\n localeTranslations?.options?.forEach((translatedOption) => {\n const option = optionSet.options.find(\n (o) => o.id === translatedOption.id\n );\n\n if (option) {\n option.name = translatedOption.name || option.name;\n option.optionalText =\n translatedOption.optionalText || option.optionalText;\n\n if (option.type === IkasProductOptionType.CHOICE) {\n translatedOption.values?.forEach((translatedValue) => {\n const selectValue = option.selectSettings?.values.find(\n (sv) => sv.id === translatedValue.id\n );\n if (selectValue) {\n selectValue.value = translatedValue.value || selectValue.value;\n }\n });\n }\n }\n });\n }\n}\n\nexport function setChildOptions(optionSet: IkasProductOptionSet) {\n optionSet.options.forEach((option) => {\n const childOptions = optionSet.options.filter(\n (o) => o.requiredOptionId === option.id\n );\n if (childOptions.length) {\n option.childOptions = childOptions;\n }\n });\n}\n\nexport function initOptionValues(optionSet: IkasProductOptionSet) {\n optionSet.options.forEach((o) => initValues(o));\n}\n\nexport function initValues(option: IkasProductOption) {\n if (!option.isOptional) {\n option.values = [];\n if (option.childOptions) {\n option.childOptions.forEach((co) => initValues(co));\n }\n }\n}\n"],"names":["setChildOptions","optionSet","options","forEach","option","childOptions","filter","o","requiredOptionId","id","length","initOptionValues","initValues","isOptional","values","co","locale","productOptionSetId","initIkasProductOption","translations","some","t","localeTranslations","find","_a","translatedOption","name","optionalText","type","IkasProductOptionType","CHOICE","translatedValue","selectValue","selectSettings","sv","value","setTranslations"],"mappings":"qIAsDM,SAAUA,EAAgBC,GAC9BA,EAAUC,QAAQC,SAAQ,SAACC,GACzB,IAAMC,EAAeJ,EAAUC,QAAQI,QACrC,SAACC,GAAM,OAAAA,EAAEC,mBAAqBJ,EAAOK,MAEnCJ,EAAaK,SACfN,EAAOC,aAAeA,MAKtB,SAAUM,EAAiBV,GAC/BA,EAAUC,QAAQC,SAAQ,SAACI,GAAM,OAAAK,EAAWL,MAGxC,SAAUK,EAAWR,GACpBA,EAAOS,aACVT,EAAOU,OAAS,GACZV,EAAOC,cACTD,EAAOC,aAAaF,SAAQ,SAACY,GAAO,OAAAH,EAAWG,wCArErC,SACdd,EACAe,GAEAf,EAAUC,QAAQC,SAAQ,SAACC,GACzBA,EAAOa,mBAAqBhB,EAAUQ,GACtCS,EAAqBA,sBAACd,MAGpBH,EAAUkB,cAAgBH,KAQhC,SACEf,EACAkB,EACAH,SAEA,GAAIG,GAAgBA,EAAaC,MAAK,SAACC,GAAM,OAAAA,EAAEL,SAAWA,KAAS,CACjE,IAAMM,EAAqBH,EAAaI,MAAK,SAACF,GAAM,OAAAA,EAAEL,SAAWA,KAEpC,QAA7BQ,EAAAF,aAAA,EAAAA,EAAoBpB,eAAS,IAAAsB,GAAAA,EAAArB,SAAQ,SAACsB,SAC9BrB,EAASH,EAAUC,QAAQqB,MAC/B,SAAChB,GAAM,OAAAA,EAAEE,KAAOgB,EAAiBhB,MAG/BL,IACFA,EAAOsB,KAAOD,EAAiBC,MAAQtB,EAAOsB,KAC9CtB,EAAOuB,aACLF,EAAiBE,cAAgBvB,EAAOuB,aAEtCvB,EAAOwB,OAASC,EAAqBA,sBAACC,iBACxCN,EAAAC,EAAiBX,uBAAQX,SAAQ,SAAC4B,SAC1BC,EAAqC,QAAvBR,EAAApB,EAAO6B,sBAAgB,IAAAT,OAAA,EAAAA,EAAAV,OAAOS,MAChD,SAACW,GAAO,OAAAA,EAAGzB,KAAOsB,EAAgBtB,MAEhCuB,IACFA,EAAYG,MAAQJ,EAAgBI,OAASH,EAAYG,gBA/BnEC,CAAgBnC,EAAWA,EAAUkB,aAAcH,UAC5Cf,EAAUkB,cAEnBnB,EAAgBC,GAChBU,EAAiBV"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../src/models/product/option-set/option/index.ts"],"sourcesContent":["import { IkasImage } from \"../../../image\";\n\nexport enum IkasProductOptionSelectType {\n BOX = \"BOX\",\n SELECT = \"SELECT\",\n SWATCH = \"SWATCH\",\n}\n\nexport enum IkasProductOptionType {\n CHECKBOX = \"CHECKBOX\",\n CHOICE = \"CHOICE\",\n COLOR_PICKER = \"COLOR_PICKER\",\n DATE_PICKER = \"DATE_PICKER\",\n FILE = \"FILE\",\n IMAGE = \"IMAGE\",\n TEXT = \"TEXT\",\n TEXT_AREA = \"TEXT_AREA\",\n}\n\nexport type IkasProductOptionOtherPrice = {\n currencyCode: string;\n price: number;\n};\n\nexport type IkasProductOptionSelectValue = {\n id: string;\n order: number;\n value: string;\n price: number | null;\n otherPrices: IkasProductOptionOtherPrice[] | null;\n thumbnailImageId: string | null;\n colorCode: string | null;\n thumbnailImage: IkasImage | null;\n};\n\nexport type IkasProductOptionSelectSettings = {\n type: IkasProductOptionSelectType;\n minSelect: number | null;\n maxSelect: number | null;\n values: IkasProductOptionSelectValue[];\n};\n\nexport type IkasProductOptionDateSettings = {\n min: Date | null;\n max: Date | null;\n minRelativeNextDate: number | null;\n maxRelativeNextDate: number | null;\n};\n\nexport type IkasProductOptionTextSettings = {\n min: number | null;\n max: number | null;\n};\n\nexport type IkasProductOptionFileSettings = {\n allowedExtensions: string[] | null;\n minQuantity: number | null;\n maxQuantity: number | null;\n};\n\nexport type IkasProductOption = {\n id: string;\n productOptionSetId: string;\n name: string;\n order: number;\n type: IkasProductOptionType;\n selectSettings: IkasProductOptionSelectSettings | null;\n textSettings: IkasProductOptionTextSettings | null;\n fileSettings: IkasProductOptionFileSettings | null;\n dateSettings: IkasProductOptionDateSettings | null;\n price: number | null;\n otherPrices: IkasProductOptionOtherPrice[] | null;\n isOptional: boolean;\n optionalText: string | null;\n requiredOptionId: string | null;\n requiredOptionValueIds: string[] | null;\n\n // Extra\n values: string[];\n childOptions: IkasProductOption[];\n};\n"],"names":["IkasProductOptionSelectType","IkasProductOptionType"],"mappings":"aAEA,IAAYA,EAMAC,yDANAD,QAIXA,iCAAA,GAJWA,EAAAA,sCAAAA,QAAAA,4BAIX,KAHC,IAAA,MACAA,EAAA,OAAA,SACAA,EAAA,OAAA,SAGUC,QASXA,2BAAA,GATWA,EAAAA,QAAqBA,wBAArBA,8BASX,KARC,SAAA,WACAA,EAAA,OAAA,SACAA,EAAA,aAAA,eACAA,EAAA,YAAA,cACAA,EAAA,KAAA,OACAA,EAAA,MAAA,QACAA,EAAA,KAAA,OACAA,EAAA,UAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init.js","sources":["../../../../../src/models/product/option-set/option/init.ts"],"sourcesContent":["import { IkasProductOption, IkasProductOptionSelectSettings } from \".\";\nimport _sortBy from \"lodash/sortBy\";\n\nexport function initIkasProductOption(option: IkasProductOption) {\n if (option.selectSettings)\n initProductOptionSelectSettings(option.selectSettings);\n}\n\nfunction initProductOptionSelectSettings(\n settings: IkasProductOptionSelectSettings\n) {\n settings.values = _sortBy(settings.values || [], \"order\");\n}\n"],"names":["option","settings","selectSettings","values","_sortBy"],"mappings":"4MAGM,SAAgCA,GAKtC,IACEC,EALID,EAAOE,kBAKXD,EAJkCD,EAAOE,gBAMhCC,OAASC,UAAQH,EAASE,QAAU,GAAI"}
@@ -0,0 +1,5 @@
1
+ export declare type IkasProductTranslation = {
2
+ description: string | null;
3
+ locale: string;
4
+ name: string | null;
5
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init.js","sources":["../../../../src/models/product/variant/init.ts"],"sourcesContent":["import { initIkasProductImage } from \"../image/init\";\nimport { initIkasProductAttributeValue } from \"../attribute-value/init\";\nimport _sortBy from \"lodash/sortBy\";\nimport { IkasProductVariant } from \".\";\n\nexport function initIkasProductVariant(variant: IkasProductVariant) {\n variant.images?.forEach(initIkasProductImage);\n variant.images = _sortBy(variant.images, \"order\");\n variant.attributes.forEach(initIkasProductAttributeValue);\n}\n"],"names":["variant","_a","images","forEach","initIkasProductImage","_sortBy","attributes","initIkasProductAttributeValue"],"mappings":"uRAKM,SAAiCA,SACvB,QAAdC,EAAAD,EAAQE,cAAM,IAAAD,GAAAA,EAAEE,QAAQC,EAAoBA,sBAC5CJ,EAAQE,OAASG,EAAO,QAACL,EAAQE,OAAQ,SACzCF,EAAQM,WAAWH,QAAQI,EAAAA"}
@@ -0,0 +1,14 @@
1
+ import { IkasProductSubscriptionPlanPeriod, IkasSubscriptionPlanStatus } from "./product-subscription-plan-period";
2
+ export declare type IkasProductSubscriptionPlan = {
3
+ name: string;
4
+ periods: IkasProductSubscriptionPlanPeriod[];
5
+ status: IkasSubscriptionPlanStatus;
6
+ subscriptionPlanId: string;
7
+ translations: IkasSubscriptionPlanTranslation[] | null;
8
+ isSelected: boolean;
9
+ };
10
+ export declare type IkasSubscriptionPlanTranslation = {
11
+ description: string | null;
12
+ locale: string;
13
+ title: string;
14
+ };
@@ -0,0 +1,8 @@
1
+ export declare type IkasProductSubscriptionPlanDiscount = {
2
+ amount: number;
3
+ type: IkasOrderAmountType;
4
+ };
5
+ export declare enum IkasOrderAmountType {
6
+ AMOUNT = "AMOUNT",
7
+ RATIO = "RATIO"
8
+ }
@@ -0,0 +1 @@
1
+ "use strict";var e;Object.defineProperty(exports,"__esModule",{value:!0}),exports.IkasOrderAmountType=void 0,(e=exports.IkasOrderAmountType||(exports.IkasOrderAmountType={})).AMOUNT="AMOUNT",e.RATIO="RATIO";
@@ -0,0 +1,28 @@
1
+ import { IkasProductSubscriptionPlanDiscount } from "../product-subscription-plan-discount";
2
+ export declare type IkasProductSubscriptionPlanPeriod = {
3
+ cutOffDay: number | null;
4
+ discount: IkasProductSubscriptionPlanDiscount | null;
5
+ durationUnit: IkasSubscriptionPlanDurationUnitType;
6
+ durationValue: number;
7
+ id: string;
8
+ maxOrders: number | null;
9
+ paymentType: IkasSubscriptionPlanPaymentType;
10
+ scheduledOrderDay: number | null;
11
+ status: IkasSubscriptionPlanStatus;
12
+ title: string;
13
+ isSelected: boolean;
14
+ };
15
+ export declare enum IkasSubscriptionPlanDurationUnitType {
16
+ DAY = "DAY",
17
+ MONTH = "MONTH",
18
+ WEEK = "WEEK",
19
+ YEAR = "YEAR"
20
+ }
21
+ export declare enum IkasSubscriptionPlanPaymentType {
22
+ POST_PAID = "POST_PAID",
23
+ PRE_PAID = "PRE_PAID"
24
+ }
25
+ export declare enum IkasSubscriptionPlanStatus {
26
+ ACTIVE = "ACTIVE",
27
+ PASSIVE = "PASSIVE"
28
+ }
@@ -0,0 +1 @@
1
+ "use strict";var t,s,a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.IkasSubscriptionPlanDurationUnitType=void 0,(t=exports.IkasSubscriptionPlanDurationUnitType||(exports.IkasSubscriptionPlanDurationUnitType={})).DAY="DAY",t.MONTH="MONTH",t.WEEK="WEEK",t.YEAR="YEAR",exports.IkasSubscriptionPlanPaymentType=void 0,(s=exports.IkasSubscriptionPlanPaymentType||(exports.IkasSubscriptionPlanPaymentType={})).POST_PAID="POST_PAID",s.PRE_PAID="PRE_PAID",exports.IkasSubscriptionPlanStatus=void 0,(a=exports.IkasSubscriptionPlanStatus||(exports.IkasSubscriptionPlanStatus={})).ACTIVE="ACTIVE",a.PASSIVE="PASSIVE";
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init.js","sources":["../../../../src/models/product/variant-type/init.ts"],"sourcesContent":["import { IkasProductVariantType } from \".\";\nimport { IkasVariantValue } from \"../../variant-type/variant-value\";\n\nexport function initIkasProductVariantType(\n variantType: IkasProductVariantType\n) {\n const orderedVariantValues: IkasVariantValue[] = [];\n variantType.variantValueIds.forEach((vvId) => {\n const variantValue = variantType.variantType.values.find(\n (vv) => vv.id === vvId\n );\n if (variantValue) orderedVariantValues.push(variantValue);\n });\n variantType.variantType.values = orderedVariantValues;\n}\n"],"names":["variantType","orderedVariantValues","variantValueIds","forEach","vvId","variantValue","values","find","vv","id","push"],"mappings":"uGAGM,SACJA,GAEA,IAAMC,EAA2C,GACjDD,EAAYE,gBAAgBC,SAAQ,SAACC,GACnC,IAAMC,EAAeL,EAAYA,YAAYM,OAAOC,MAClD,SAACC,GAAO,OAAAA,EAAGC,KAAOL,KAEhBC,GAAcJ,EAAqBS,KAAKL,MAE9CL,EAAYA,YAAYM,OAASL"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/models/raffle/index.ts"],"sourcesContent":["import { IkasProduct } from \"../product\";\n\nexport type IkasRaffleDateRangeField = {\n start: number | null;\n end: number | null;\n};\n\nexport enum IkasRaffleVerificationType {\n EMAIL = \"EMAIL\",\n MERSIS = \"MERSIS\",\n}\n\nexport type IkasRaffle = {\n id: string;\n createdAt: number;\n updatedAt: number;\n deleted: boolean | null;\n dateRange: IkasRaffleDateRangeField | null;\n metadata: IkasRaffleMetaData | null;\n name: string;\n requiredCustomerAccount: boolean;\n status: boolean;\n variants: IkasRaffleAppliedProduct[] | null;\n products: IkasProduct[];\n verificationType: IkasRaffleVerificationType;\n};\n\nexport enum IkasRaffleMetadataTargetType {\n RAFFLE = \"RAFFLE\",\n}\n\nexport type IkasRaffleMetaData = {\n id: string;\n createdAt: number;\n updatedAt: number;\n deleted: boolean | null;\n description: string | null;\n pageTitle: string | null;\n slug: string;\n targetId: string | null;\n targetType: IkasRaffleMetadataTargetType | null;\n canonicals: string[] | null;\n disableIndex: boolean | null;\n};\n\nexport type IkasRaffleParticipant = {\n id: string | null;\n createdAt: number | null;\n updatedAt: number | null;\n deleted: boolean | null;\n customerId: string | null;\n raffleId: string;\n firstName: string;\n lastName: string;\n fullName: string | null;\n email: string;\n applicationDate: number;\n phone: string | null;\n isDeliveredCargo: boolean | null;\n\n raffle: IkasRaffle | null;\n status: IkasRaffleParticipantStatus | null;\n extraData: Record<string, any> | null;\n appliedProduct: IkasRaffleAppliedProduct;\n};\n\nexport type IkasRaffleAppliedProduct = {\n productId: string;\n variantId: string;\n};\n\nexport enum IkasRaffleParticipantStatus {\n COMPLETED = \"COMPLETED\",\n IN_PROGRESS = \"IN_PROGRESS\",\n LOSER = \"LOSER\",\n WINNER = \"WINNER\",\n}\n"],"names":["IkasRaffleVerificationType","IkasRaffleParticipantStatus","IkasRaffleMetadataTargetType"],"mappings":"aAOA,IAAYA,EAgEAC,yDAhEAD,QAGXA,gCAAA,GAHWA,EAAAA,qCAAAA,QAAAA,2BAGX,KAFC,MAAA,QACAA,EAAA,OAAA,SAkBUE,QAEXA,kCAAA,GAFWA,uCAAAA,QAAAA,6BAEX,KADC,OAAA,SA2CUD,QAKXA,iCAAA,GALWA,EAAAA,QAA2BA,8BAA3BA,oCAKX,KAJC,UAAA,YACAA,EAAA,YAAA,cACAA,EAAA,MAAA,QACAA,EAAA,OAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init.js","sources":["../../../src/models/raffle/init.ts"],"sourcesContent":["import { IkasRaffle } from \".\";\nimport { initIkasProduct } from \"../product/init\";\n\nexport function initIkasRaffle(raffle: IkasRaffle, locale: string | null) {\n raffle.products?.map((p) => initIkasProduct(p, locale));\n}\n"],"names":["raffle","locale","_a","products","map","p","initIkasProduct"],"mappings":"+HAGgB,SAAeA,EAAoBC,iBACjDC,EAAAF,EAAOG,yBAAUC,KAAI,SAACC,GAAM,OAAAC,EAAAA,gBAAgBD,EAAGJ"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/models/stock-location/index.ts"],"sourcesContent":["import { IkasStockLocationAddress } from \"./address\";\n\nexport type IkasStockLocation = {\n address: IkasStockLocationAddress | null;\n deliveryTime: IkasStockLocationDeliveryTime | null;\n description: string | null;\n isRemindOutOfStockEnabled: boolean | null;\n name: string;\n outOfStockMailList: string[] | null;\n type: IkasStockLocationType | null;\n id: string;\n};\n\nexport enum IkasStockLocationDeliveryTime {\n TWO_IN_FOUR_DAYS = \"TWO_IN_FOUR_DAYS\",\n WITHIN_FOUR_HOURS = \"WITHIN_FOUR_HOURS\",\n WITHIN_ONE_HOUR = \"WITHIN_ONE_HOUR\",\n WITHIN_PLUS_FIVE_DAYS = \"WITHIN_PLUS_FIVE_DAYS\",\n WITHIN_TWENTY_FOUR_HOURS = \"WITHIN_TWENTY_FOUR_HOURS\",\n WITHIN_TWO_HOURS = \"WITHIN_TWO_HOURS\",\n}\n\nexport enum IkasStockLocationType {\n PHYSICAL = \"PHYSICAL\",\n VIRTUAL = \"VIRTUAL\",\n}\n"],"names":["IkasStockLocationDeliveryTime","IkasStockLocationType"],"mappings":"aAaA,IAAYA,EASAC,yDATAD,QAOXA,mCAAA,GAPWA,EAAAA,wCAAAA,QAAAA,8BAOX,KANC,iBAAA,mBACAA,EAAA,kBAAA,oBACAA,EAAA,gBAAA,kBACAA,EAAA,sBAAA,wBACAA,EAAA,yBAAA,2BACAA,EAAA,iBAAA,mBAGUC,QAGXA,2BAAA,GAHWA,EAAAA,QAAqBA,wBAArBA,8BAGX,KAFC,SAAA,WACAA,EAAA,QAAA"}
@@ -0,0 +1,24 @@
1
+ export declare type IkasStoreCreditBalance = {
2
+ amount: number;
3
+ storeCredits: IkasStoreCredit[];
4
+ };
5
+ export declare type IkasStoreCredit = {
6
+ usedAmount: number;
7
+ usedAllAmount: boolean | null;
8
+ type: IkasStoreCreditType;
9
+ salesChannels: IkasStoreCreditSalesChannel[];
10
+ minimumRequiredCartAmount: number | null;
11
+ customerId: string | null;
12
+ code: string;
13
+ amount: number;
14
+ active: boolean;
15
+ };
16
+ export declare type IkasStoreCreditSalesChannel = {
17
+ salesChannelId: string;
18
+ storefrontId: string | null;
19
+ storefrontRoutingId: string | null;
20
+ };
21
+ export declare enum IkasStoreCreditType {
22
+ GIFT_CARD = "GIFT_CARD",
23
+ STORE_CREDIT = "STORE_CREDIT"
24
+ }
@@ -0,0 +1 @@
1
+ "use strict";var e;Object.defineProperty(exports,"__esModule",{value:!0}),exports.IkasStoreCreditType=void 0,(e=exports.IkasStoreCreditType||(exports.IkasStoreCreditType={})).GIFT_CARD="GIFT_CARD",e.STORE_CREDIT="STORE_CREDIT";
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/models/storefront/index.ts"],"sourcesContent":["import { IkasStorefrontLocalization } from \"./localization\";\nimport { IkasStorefrontDomain } from \"./domain\";\nimport { IkasStorefrontRouting } from \"./routing\";\nimport { IkasStorefrontTheme } from \"./theme\";\nimport { IkasStorefontMetaTemplates } from \"./meta-templates\";\n\nexport enum IkasStorefrontStatus {\n WAITING = \"WAITING\",\n READY = \"READY\",\n}\n\nexport type IkasStorefront = {\n id: string;\n name: string;\n status: IkasStorefrontStatus;\n\n mainStorefrontThemeId: string | null;\n pickUpStockLocationIds: string[] | null;\n emailSettingsId: string | null;\n salesChannelId: string | null;\n fbpId: string | null;\n gtmId: string | null;\n analytics4Id: string | null;\n universalAnalyticsId: string | null;\n tiktokPixelId: string | null;\n token: string | null;\n metaTemplates: IkasStorefontMetaTemplates[] | null;\n robotsTxt: string | null;\n localizations: IkasStorefrontLocalization[];\n routings: IkasStorefrontRouting[];\n domains: IkasStorefrontDomain[];\n themes: IkasStorefrontTheme[];\n};\n"],"names":["IkasStorefrontStatus"],"mappings":"aAMA,IAAYA,yDAAAA,QAGXA,0BAAA,GAHWA,EAAAA,QAAoBA,uBAApBA,6BAGX,KAFC,QAAA,UACAA,EAAA,MAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../src/models/storefront/meta-templates/index.ts"],"sourcesContent":["export type IkasStorefontMetaTemplates = {\n descriptionTemplate: string | null;\n locale: string | null;\n pageType: StorefrontPageTypesEnum | null;\n titleTemplate: string | null;\n};\n\nexport enum StorefrontPageTypesEnum {\n BLOG = \"BLOG\",\n BLOG_CATEGORY = \"BLOG_CATEGORY\",\n BRAND = \"BRAND\",\n CATEGORY = \"CATEGORY\",\n CUSTOM = \"CUSTOM\",\n PRODUCT = \"PRODUCT\",\n}\n"],"names":["StorefrontPageTypesEnum"],"mappings":"aAOA,IAAYA,yDAAAA,QAOXA,6BAAA,GAPWA,EAAAA,QAAuBA,0BAAvBA,gCAOX,KANC,KAAA,OACAA,EAAA,cAAA,gBACAA,EAAA,MAAA,QACAA,EAAA,SAAA,WACAA,EAAA,OAAA,SACAA,EAAA,QAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../src/models/storefront/theme/index.tsx"],"sourcesContent":["export enum IkasStorefrontThemeStatus {\n WAITING = \"WAITING\",\n READY = \"READY\",\n}\n\nexport type IkasStorefrontTheme = {\n id: string;\n isMainTheme: boolean;\n name: string;\n status: IkasStorefrontThemeStatus;\n themeId: string;\n themeVersionId: string;\n};\n"],"names":["IkasStorefrontThemeStatus"],"mappings":"aAAA,IAAYA,yDAAAA,QAGXA,+BAAA,GAHWA,EAAAA,QAAyBA,4BAAzBA,kCAGX,KAFC,QAAA,UACAA,EAAA,MAAA"}
@@ -12,6 +12,7 @@ export declare type IkasStorefrontPopup = {
12
12
  dateFilter: IkasStorefrontPopupDateFilter | null;
13
13
  displayFilters: IkasStorefrontPopupDisplayFilter[] | null;
14
14
  displaySettings: IkasStorefrontPopupDisplaySettings;
15
+ hideFilters: IkasStorefrontPopupDisplayFilter[] | null;
15
16
  name: string;
16
17
  pageFilters: IkasStorefrontPopupPageFilter[] | null;
17
18
  status: IkasStorefrontPopupStatusEnum;
@@ -1,9 +1,28 @@
1
1
  export declare type IkasStorefrontPopupDisplayFilter = {
2
- operator: string;
2
+ operator: IkasStorefrontPopupDisplayFilterOperatorEnum;
3
3
  type: IkasStorefrontPopupDisplayFilterTypeEnum;
4
- value: string;
4
+ value: string[];
5
5
  };
6
6
  export declare enum IkasStorefrontPopupDisplayFilterTypeEnum {
7
+ APPLIED_CAMPAIGN = "APPLIED_CAMPAIGN",
8
+ BRAND_IN_CART = "BRAND_IN_CART",
9
+ CART_ITEM_COUNT = "CART_ITEM_COUNT",
7
10
  CART_TOTAL = "CART_TOTAL",
8
- CUSTOMER_SEGMENT = "CUSTOMER_SEGMENT"
11
+ CATEGORY_IN_CART = "CATEGORY_IN_CART",
12
+ CUSTOMER_AUTH_STATUS = "CUSTOMER_AUTH_STATUS",
13
+ CUSTOMER_GROUP = "CUSTOMER_GROUP",
14
+ CUSTOMER_SEGMENT = "CUSTOMER_SEGMENT",
15
+ CUSTOMER_SUBSCRIPTION = "CUSTOMER_SUBSCRIPTION",
16
+ PRODUCT_IN_CART = "PRODUCT_IN_CART"
17
+ }
18
+ export declare enum IkasStorefrontPopupDisplayFilterOperatorEnum {
19
+ ANY_OF = "ANY_OF",
20
+ BETWEEN = "BETWEEN",
21
+ EQUALS = "EQUALS",
22
+ GREATER_THAN = "GREATER_THAN",
23
+ GREATER_THAN_OR_EQUAL = "GREATER_THAN_OR_EQUAL",
24
+ LESS_THAN = "LESS_THAN",
25
+ LESS_THAN_OR_EQUAL = "LESS_THAN_OR_EQUAL",
26
+ NONE_OF = "NONE_OF",
27
+ NOT_EQUALS = "NOT_EQUALS"
9
28
  }
@@ -1 +1 @@
1
- "use strict";var e;Object.defineProperty(exports,"__esModule",{value:!0}),exports.IkasStorefrontPopupDisplayFilterTypeEnum=void 0,(e=exports.IkasStorefrontPopupDisplayFilterTypeEnum||(exports.IkasStorefrontPopupDisplayFilterTypeEnum={})).CART_TOTAL="CART_TOTAL",e.CUSTOMER_SEGMENT="CUSTOMER_SEGMENT";
1
+ "use strict";var T,_;Object.defineProperty(exports,"__esModule",{value:!0}),exports.IkasStorefrontPopupDisplayFilterTypeEnum=void 0,(T=exports.IkasStorefrontPopupDisplayFilterTypeEnum||(exports.IkasStorefrontPopupDisplayFilterTypeEnum={})).APPLIED_CAMPAIGN="APPLIED_CAMPAIGN",T.BRAND_IN_CART="BRAND_IN_CART",T.CART_ITEM_COUNT="CART_ITEM_COUNT",T.CART_TOTAL="CART_TOTAL",T.CATEGORY_IN_CART="CATEGORY_IN_CART",T.CUSTOMER_AUTH_STATUS="CUSTOMER_AUTH_STATUS",T.CUSTOMER_GROUP="CUSTOMER_GROUP",T.CUSTOMER_SEGMENT="CUSTOMER_SEGMENT",T.CUSTOMER_SUBSCRIPTION="CUSTOMER_SUBSCRIPTION",T.PRODUCT_IN_CART="PRODUCT_IN_CART",exports.IkasStorefrontPopupDisplayFilterOperatorEnum=void 0,(_=exports.IkasStorefrontPopupDisplayFilterOperatorEnum||(exports.IkasStorefrontPopupDisplayFilterOperatorEnum={})).ANY_OF="ANY_OF",_.BETWEEN="BETWEEN",_.EQUALS="EQUALS",_.GREATER_THAN="GREATER_THAN",_.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",_.LESS_THAN="LESS_THAN",_.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",_.NONE_OF="NONE_OF",_.NOT_EQUALS="NOT_EQUALS";
@@ -18,6 +18,7 @@ export declare type IkasThemeJsonComponentProp = {
18
18
  };
19
19
  excludedFields?: string[] | null;
20
20
  excludedFieldsCategory?: string[] | null;
21
+ isFacetListNotSent?: boolean;
21
22
  };
22
23
  export declare type IkasThemeJsonSliderData = {
23
24
  min?: number;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../src/models/theme-json/component/prop/index.ts"],"sourcesContent":["import { IkasProductAttributeType } from \"../../../..\";\n\nexport type IkasThemeJsonComponentProp = {\n id: string;\n name: string;\n displayName?: string;\n description?: string;\n type: IkasThemeJsonComponentPropType;\n isRequired: boolean;\n customDataId?: string | null;\n groupId?: string;\n requiredPropId?: string;\n requiredEnumOptionId?: string;\n requiredEnumOptionValue?: string;\n attributeTypes?: IkasProductAttributeType[] | null;\n sliderData: IkasThemeJsonSliderData;\n translations?: {\n [locale: string]: IkasPropTranslation;\n };\n};\n\nexport type IkasThemeJsonSliderData = {\n min?: number;\n max?: number;\n interval?: number;\n unit?: string;\n};\n\nexport enum IkasThemeJsonComponentPropType {\n TEXT = \"TEXT\",\n RICH_TEXT = \"RICH_TEXT\",\n BOOLEAN = \"BOOLEAN\",\n IMAGE = \"IMAGE\",\n IMAGE_LIST = \"IMAGE_LIST\",\n LINK = \"LINK\",\n LIST_OF_LINK = \"LIST_OF_LINK\",\n PRODUCT_DETAIL = \"PRODUCT_DETAIL\",\n PRODUCT_LIST = \"PRODUCT_LIST\",\n PRODUCT_ATTRIBUTE = \"PRODUCT_ATTRIBUTE\",\n PRODUCT_ATTRIBUTE_LIST = \"PRODUCT_ATTRIBUTE_LIST\",\n BRAND = \"BRAND\",\n BRAND_LIST = \"BRAND_LIST\",\n CATEGORY = \"CATEGORY\",\n CATEGORY_LIST = \"CATEGORY_LIST\",\n COLOR = \"COLOR\",\n CUSTOM = \"CUSTOM\",\n COMPONENT = \"COMPONENT\",\n COMPONENT_LIST = \"COMPONENT_LIST\",\n BLOG = \"BLOG\",\n BLOG_LIST = \"BLOG_LIST\",\n BLOG_CATEGORY = \"BLOG_CATEGORY\",\n BLOG_CATEGORY_LIST = \"BLOG_CATEGORY_LIST\",\n RAFFLE = \"RAFFLE\",\n RAFFLE_LIST = \"RAFFLE_LIST\",\n SLIDER = \"SLIDER\",\n\n OBJECT = \"OBJECT\",\n STATIC_LIST = \"STATIC_LIST\",\n DYNAMIC_LIST = \"DYNAMIC_LIST\",\n ENUM = \"ENUM\",\n}\n\nexport type IkasPropTranslation = {\n displayName: string | null;\n description: string | null;\n};\n"],"names":["IkasThemeJsonComponentPropType"],"mappings":"aA4BA,IAAYA,yDAAAA,QAgCXA,oCAAA,GAhCWA,EAAAA,QAA8BA,iCAA9BA,uCAgCX,KA/BC,KAAA,OACAA,EAAA,UAAA,YACAA,EAAA,QAAA,UACAA,EAAA,MAAA,QACAA,EAAA,WAAA,aACAA,EAAA,KAAA,OACAA,EAAA,aAAA,eACAA,EAAA,eAAA,iBACAA,EAAA,aAAA,eACAA,EAAA,kBAAA,oBACAA,EAAA,uBAAA,yBACAA,EAAA,MAAA,QACAA,EAAA,WAAA,aACAA,EAAA,SAAA,WACAA,EAAA,cAAA,gBACAA,EAAA,MAAA,QACAA,EAAA,OAAA,SACAA,EAAA,UAAA,YACAA,EAAA,eAAA,iBACAA,EAAA,KAAA,OACAA,EAAA,UAAA,YACAA,EAAA,cAAA,gBACAA,EAAA,mBAAA,qBACAA,EAAA,OAAA,SACAA,EAAA,YAAA,cACAA,EAAA,OAAA,SAEAA,EAAA,OAAA,SACAA,EAAA,YAAA,cACAA,EAAA,aAAA,eACAA,EAAA,KAAA"}
@@ -21,6 +21,7 @@ export declare type IkasThemeJsonCustomData = {
21
21
  parent?: IkasThemeJsonCustomData | null;
22
22
  excludedFields?: string[] | null;
23
23
  excludedFieldsCategory?: string[] | null;
24
+ isFacetListNotSent?: boolean;
24
25
  };
25
26
  export declare type IkasThemeJsonEnumOption = {
26
27
  id: string;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../src/models/theme-json/page/index.ts"],"sourcesContent":["import { IkasThemeJsonPageComponent } from \"./component\";\n\nexport type IkasThemeJsonPage = {\n id: string;\n name: string | null;\n type: IkasThemeJsonPageType;\n slug: string | null;\n pageTitle: string | null;\n description: string | null;\n components: IkasThemeJsonPageComponent[];\n specifications: IkasThemeJsonPageSpecification[] | null;\n canonicals: string[] | null;\n disableIndex: boolean | null;\n};\n\nexport type IkasThemeJsonPageSpecification = {\n id: string;\n components: IkasThemeJsonPageComponent[];\n};\n\nexport enum IkasThemeJsonPageType {\n INDEX = \"INDEX\",\n CATEGORY = \"CATEGORY\",\n BRAND = \"BRAND\",\n PRODUCT = \"PRODUCT\",\n CUSTOM = \"CUSTOM\",\n ACCOUNT = \"ACCOUNT\",\n ADDRESSES = \"ADDRESSES\",\n ORDERS = \"ORDERS\",\n ORDER_DETAIL = \"ORDER_DETAIL\",\n LOGIN = \"LOGIN\",\n REGISTER = \"REGISTER\",\n FORGOT_PASSWORD = \"FORGOT_PASSWORD\",\n RECOVER_PASSWORD = \"RECOVER_PASSWORD\",\n CART = \"CART\",\n FAVORITE_PRODUCTS = \"FAVORITE_PRODUCTS\",\n SEARCH = \"SEARCH\",\n NOT_FOUND = \"NOT_FOUND\",\n BLOG = \"BLOG\",\n BLOG_INDEX = \"BLOG_INDEX\",\n BLOG_CATEGORY = \"BLOG_CATEGORY\",\n CHECKOUT = \"CHECKOUT\",\n RAFFLE = \"RAFFLE\",\n RAFFLE_DETAIL = \"RAFFLE_DETAIL\",\n RAFFLE_ACCOUNT = \"RAFFLE_ACCOUNT\",\n}\n"],"names":["IkasThemeJsonPageType"],"mappings":"aAoBA,IAAYA,yDAAAA,QAyBXA,2BAAA,GAzBWA,EAAAA,QAAqBA,wBAArBA,8BAyBX,KAxBC,MAAA,QACAA,EAAA,SAAA,WACAA,EAAA,MAAA,QACAA,EAAA,QAAA,UACAA,EAAA,OAAA,SACAA,EAAA,QAAA,UACAA,EAAA,UAAA,YACAA,EAAA,OAAA,SACAA,EAAA,aAAA,eACAA,EAAA,MAAA,QACAA,EAAA,SAAA,WACAA,EAAA,gBAAA,kBACAA,EAAA,iBAAA,mBACAA,EAAA,KAAA,OACAA,EAAA,kBAAA,oBACAA,EAAA,OAAA,SACAA,EAAA,UAAA,YACAA,EAAA,KAAA,OACAA,EAAA,WAAA,aACAA,EAAA,cAAA,gBACAA,EAAA,SAAA,WACAA,EAAA,OAAA,SACAA,EAAA,cAAA,gBACAA,EAAA,eAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../src/models/theme-json/settings/index.ts"],"sourcesContent":["import { IkasThemeJsonColor } from \"./color\";\nimport { IkasThemeJsonFavicon } from \"./favicon\";\nimport { IkasThemeJsonFontFamily } from \"./font-family\";\n\nexport type IkasThemeJsonSettings = {\n colors: IkasThemeJsonColor[];\n favicon: IkasThemeJsonFavicon;\n stockPreference: IkasThemeJsonStockPreference;\n fontFamily: IkasThemeJsonFontFamily;\n};\n\nexport enum IkasThemeJsonStockPreference {\n HIDE_OUT_OF_STOCK = \"HIDE_OUT_OF_STOCK\",\n SHOW_ALL = \"SHOW_ALL\",\n SHOW_OUT_OF_STOCK_AT_END = \"SHOW_OUT_OF_STOCK_AT_END\",\n}\n"],"names":["IkasThemeJsonStockPreference"],"mappings":"aAWA,IAAYA,yDAAAA,QAIXA,kCAAA,GAJWA,EAAAA,QAA4BA,+BAA5BA,qCAIX,KAHC,kBAAA,oBACAA,EAAA,SAAA,WACAA,EAAA,yBAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/models/variant-type/index.ts"],"sourcesContent":["import { IkasVariantValue } from \"./variant-value\";\n\nexport type IkasVariantType = {\n id: string;\n name: string;\n selectionType: IkasVariantSelectionType;\n values: IkasVariantValue[];\n translations?: IkasVariantTypeTranslation[] | null;\n};\n\nexport enum IkasVariantSelectionType {\n CHOICE = \"CHOICE\",\n COLOR = \"COLOR\",\n}\n\nexport type IkasVariantTypeTranslation = {\n locale: string;\n name: string | null;\n values: IkasVariantValueTranslation[] | null;\n};\n\nexport type IkasVariantValueTranslation = {\n id: string;\n name: string | null;\n};\n"],"names":["IkasVariantSelectionType"],"mappings":"aAUA,IAAYA,yDAAAA,QAGXA,8BAAA,GAHWA,EAAAA,QAAwBA,2BAAxBA,iCAGX,KAFC,OAAA,SACAA,EAAA,MAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init.js","sources":["../../../src/models/variant-type/init.ts"],"sourcesContent":["import { IkasVariantType, IkasVariantTypeTranslation } from \".\";\nimport { initIkasVariantValue } from \"./variant-value/init\";\n\nexport function initIkasVariantType(\n variantType: IkasVariantType,\n locale: string | null\n) {\n variantType.values.forEach((v) => {\n v.variantTypeId = variantType.id;\n initIkasVariantValue(v);\n });\n\n if (variantType.translations && locale) {\n setTranslations(variantType, variantType.translations, locale);\n delete variantType.translations;\n }\n}\n\nfunction setTranslations(\n variantType: IkasVariantType,\n translations: IkasVariantTypeTranslation[],\n locale: string\n) {\n if (translations && translations.some((t) => t.locale === locale)) {\n const localeTranslations = translations.find((t) => t.locale === locale);\n\n if (localeTranslations?.name) variantType.name = localeTranslations.name;\n if (localeTranslations?.values) {\n variantType.values.forEach((vv) => {\n const translatedVV = localeTranslations.values?.find(\n (tvv) => tvv.id === vv.id\n );\n if (translatedVV && translatedVV.name) vv.name = translatedVV.name;\n });\n }\n }\n}\n"],"names":["variantType","locale","values","forEach","v","variantTypeId","id","initIkasVariantValue","translations","some","t","localeTranslations_1","find","name","vv","translatedVV","_a","tvv","setTranslations"],"mappings":"yIAGgB,SACdA,EACAC,GAEAD,EAAYE,OAAOC,SAAQ,SAACC,GAC1BA,EAAEC,cAAgBL,EAAYM,GAC9BC,EAAoBA,qBAACH,MAGnBJ,EAAYQ,cAAgBP,KAMlC,SACED,EACAQ,EACAP,GAEA,GAAIO,GAAgBA,EAAaC,MAAK,SAACC,GAAM,OAAAA,EAAET,SAAWA,KAAS,CACjE,IAAMU,EAAqBH,EAAaI,MAAK,SAACF,GAAM,OAAAA,EAAET,SAAWA,MAE7DU,aAAA,EAAAA,EAAoBE,QAAMb,EAAYa,KAAOF,EAAmBE,OAChEF,eAAAA,EAAoBT,SACtBF,EAAYE,OAAOC,SAAQ,SAACW,SACpBC,EAAwC,QAAzBC,EAAAL,EAAmBT,cAAM,IAAAc,OAAA,EAAAA,EAAEJ,MAC9C,SAACK,GAAQ,OAAAA,EAAIX,KAAOQ,EAAGR,MAErBS,GAAgBA,EAAaF,OAAMC,EAAGD,KAAOE,EAAaF,UAnBlEK,CAAgBlB,EAAaA,EAAYQ,aAAcP,UAChDD,EAAYQ"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init.js","sources":["../../../../src/models/variant-type/variant-value/init.ts"],"sourcesContent":["import { IkasVariantValue } from \".\";\n\nexport function initIkasVariantValue(variantValue: IkasVariantValue) {\n variantValue.thumbnailImage = { id: variantValue.id, isVideo: false };\n}\n"],"names":["variantValue","thumbnailImage","id","isVideo"],"mappings":"iGAEM,SAA+BA,GACnCA,EAAaC,eAAiB,CAAEC,GAAIF,EAAaE,GAAIC,SAAS"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront-models",
3
- "version": "6.1.0-beta.32",
3
+ "version": "6.1.0-beta.320",
4
4
  "author": "ikas",
5
5
  "license": "ISC",
6
6
  "description": "Data models to be used in an ikas storefront application.",