@ikas/storefront-models 4.0.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build-cjs/_virtual/_tslib.js +2 -0
- package/build-cjs/_virtual/_tslib.js.map +1 -0
- package/build-cjs/index.d.ts +156 -0
- package/build-cjs/index.js +2 -0
- package/build-cjs/index.js.map +1 -0
- package/build-cjs/models/base/index.d.ts +6 -0
- package/build-cjs/models/base/init.d.ts +6 -0
- package/build-cjs/models/base/init.js +2 -0
- package/build-cjs/models/base/init.js.map +1 -0
- package/build-cjs/models/blog/category/index.d.ts +9 -0
- package/build-cjs/models/blog/category/init.d.ts +11 -0
- package/build-cjs/models/blog/category/init.js +2 -0
- package/build-cjs/models/blog/category/init.js.map +1 -0
- package/build-cjs/models/blog/content/index.d.ts +4 -0
- package/build-cjs/models/blog/index.d.ts +24 -0
- package/build-cjs/models/blog/init.d.ts +2 -0
- package/build-cjs/models/blog/init.js +2 -0
- package/build-cjs/models/blog/init.js.map +1 -0
- package/build-cjs/models/blog/meta-data/index.d.ts +14 -0
- package/build-cjs/models/blog/meta-data/index.js +2 -0
- package/build-cjs/models/blog/meta-data/index.js.map +1 -0
- package/build-cjs/models/blog/tag/index.d.ts +4 -0
- package/build-cjs/models/blog/writer/index.d.ts +4 -0
- package/build-cjs/models/brand/index.d.ts +23 -0
- package/build-cjs/models/brand/index.js +2 -0
- package/build-cjs/models/brand/index.js.map +1 -0
- package/build-cjs/models/brand/init.d.ts +2 -0
- package/build-cjs/models/brand/init.js +2 -0
- package/build-cjs/models/brand/init.js.map +1 -0
- package/build-cjs/models/brand/translation/index.d.ts +5 -0
- package/build-cjs/models/campaign-offer/index.d.ts +37 -0
- package/build-cjs/models/campaign-offer/index.js +2 -0
- package/build-cjs/models/campaign-offer/index.js.map +1 -0
- package/build-cjs/models/campaign-offer/product/index.d.ts +24 -0
- package/build-cjs/models/campaign-offer/product/index.js +2 -0
- package/build-cjs/models/campaign-offer/product/index.js.map +1 -0
- package/build-cjs/models/cart/available-shipping-method/index.d.ts +12 -0
- package/build-cjs/models/cart/available-shipping-method/index.js +2 -0
- package/build-cjs/models/cart/available-shipping-method/index.js.map +1 -0
- package/build-cjs/models/cart/campaign-offer/index.d.ts +19 -0
- package/build-cjs/models/cart/campaign-offer/index.js +2 -0
- package/build-cjs/models/cart/campaign-offer/index.js.map +1 -0
- package/build-cjs/models/cart/index.d.ts +11 -0
- package/build-cjs/models/category/index.d.ts +27 -0
- package/build-cjs/models/category/index.js +2 -0
- package/build-cjs/models/category/index.js.map +1 -0
- package/build-cjs/models/category/init.d.ts +2 -0
- package/build-cjs/models/category/init.js +2 -0
- package/build-cjs/models/category/init.js.map +1 -0
- package/build-cjs/models/category/path-item/index.d.ts +8 -0
- package/build-cjs/models/category/translations/index.d.ts +5 -0
- package/build-cjs/models/checkout/index.d.ts +2 -0
- package/build-cjs/models/checkout-settings/index.d.ts +22 -0
- package/build-cjs/models/checkout-settings/index.js +2 -0
- package/build-cjs/models/checkout-settings/index.js.map +1 -0
- package/build-cjs/models/checkout-settings/option/index.d.ts +4 -0
- package/build-cjs/models/checkout-settings/price/index.d.ts +4 -0
- package/build-cjs/models/city/index.d.ts +10 -0
- package/build-cjs/models/contact-form/index.d.ts +7 -0
- package/build-cjs/models/country/index.d.ts +14 -0
- package/build-cjs/models/customer/address/city/index.d.ts +5 -0
- package/build-cjs/models/customer/address/country/index.d.ts +7 -0
- package/build-cjs/models/customer/address/district/index.d.ts +5 -0
- package/build-cjs/models/customer/address/index.d.ts +25 -0
- package/build-cjs/models/customer/address/state/index.d.ts +5 -0
- package/build-cjs/models/customer/attribute/index.d.ts +20 -0
- package/build-cjs/models/customer/attribute/index.js +2 -0
- package/build-cjs/models/customer/attribute/index.js.map +1 -0
- package/build-cjs/models/customer/attribute/init.d.ts +2 -0
- package/build-cjs/models/customer/attribute/init.js +2 -0
- package/build-cjs/models/customer/attribute/init.js.map +1 -0
- package/build-cjs/models/customer/attribute/option/index.d.ts +7 -0
- package/build-cjs/models/customer/attribute/sales-channel/index.d.ts +16 -0
- package/build-cjs/models/customer/attribute/sales-channel/index.js +2 -0
- package/build-cjs/models/customer/attribute/sales-channel/index.js.map +1 -0
- package/build-cjs/models/customer/attribute/translation/index.d.ts +7 -0
- package/build-cjs/models/customer/attribute/translation/option/index.d.ts +4 -0
- package/build-cjs/models/customer/attribute/value/index.d.ts +9 -0
- package/build-cjs/models/customer/index.d.ts +43 -0
- package/build-cjs/models/customer/index.js +2 -0
- package/build-cjs/models/customer/index.js.map +1 -0
- package/build-cjs/models/customer/review/index.d.ts +24 -0
- package/build-cjs/models/customer/review/index.js +2 -0
- package/build-cjs/models/customer/review/index.js.map +1 -0
- package/build-cjs/models/customer/review/init.d.ts +2 -0
- package/build-cjs/models/customer/review/init.js +2 -0
- package/build-cjs/models/customer/review/init.js.map +1 -0
- package/build-cjs/models/customer/review/settings/index.d.ts +4 -0
- package/build-cjs/models/customer/review/summary/index.d.ts +8 -0
- package/build-cjs/models/customer/review/summary/star/index.d.ts +4 -0
- package/build-cjs/models/district/index.d.ts +10 -0
- package/build-cjs/models/favorite-product/index.d.ts +5 -0
- package/build-cjs/models/filter-category/index.d.ts +8 -0
- package/build-cjs/models/html-meta-data/index.d.ts +25 -0
- package/build-cjs/models/html-meta-data/index.js +2 -0
- package/build-cjs/models/html-meta-data/index.js.map +1 -0
- package/build-cjs/models/html-meta-data/init.d.ts +3 -0
- package/build-cjs/models/html-meta-data/init.js +2 -0
- package/build-cjs/models/html-meta-data/init.js.map +1 -0
- package/build-cjs/models/html-meta-data/translations/index.d.ts +5 -0
- package/build-cjs/models/image/index.d.ts +4 -0
- package/build-cjs/models/last-viewed-product/index.d.ts +4 -0
- package/build-cjs/models/merchant-settings/index.d.ts +21 -0
- package/build-cjs/models/merchant-settings/index.js +2 -0
- package/build-cjs/models/merchant-settings/index.js.map +1 -0
- package/build-cjs/models/merchant-settings/init.d.ts +2 -0
- package/build-cjs/models/merchant-settings/init.js +2 -0
- package/build-cjs/models/merchant-settings/init.js.map +1 -0
- package/build-cjs/models/order/address/city/index.d.ts +5 -0
- package/build-cjs/models/order/address/country/index.d.ts +7 -0
- package/build-cjs/models/order/address/district/index.d.ts +5 -0
- package/build-cjs/models/order/address/index.d.ts +22 -0
- package/build-cjs/models/order/address/state/index.d.ts +5 -0
- package/build-cjs/models/order/adjustment/applied-order-line/index.d.ts +6 -0
- package/build-cjs/models/order/adjustment/index.d.ts +21 -0
- package/build-cjs/models/order/adjustment/index.js +2 -0
- package/build-cjs/models/order/adjustment/index.js.map +1 -0
- package/build-cjs/models/order/customer/index.d.ts +9 -0
- package/build-cjs/models/order/gift-line/index.d.ts +4 -0
- package/build-cjs/models/order/index.d.ts +84 -0
- package/build-cjs/models/order/index.js +2 -0
- package/build-cjs/models/order/index.js.map +1 -0
- package/build-cjs/models/order/invoice/index.d.ts +14 -0
- package/build-cjs/models/order/invoice/index.js +2 -0
- package/build-cjs/models/order/invoice/index.js.map +1 -0
- package/build-cjs/models/order/line-item/discount/index.d.ts +9 -0
- package/build-cjs/models/order/line-item/index.d.ts +32 -0
- package/build-cjs/models/order/line-item/index.js +2 -0
- package/build-cjs/models/order/line-item/index.js.map +1 -0
- package/build-cjs/models/order/line-item/option/index.d.ts +9 -0
- package/build-cjs/models/order/line-item/option/value/index.d.ts +5 -0
- package/build-cjs/models/order/line-item/variant/brand/index.d.ts +4 -0
- package/build-cjs/models/order/line-item/variant/category/index.d.ts +9 -0
- package/build-cjs/models/order/line-item/variant/index.d.ts +23 -0
- package/build-cjs/models/order/line-item/variant/price/index.d.ts +7 -0
- package/build-cjs/models/order/line-item/variant/value/index.d.ts +7 -0
- package/build-cjs/models/order/package/index.d.ts +26 -0
- package/build-cjs/models/order/package/index.js +2 -0
- package/build-cjs/models/order/package/index.js.map +1 -0
- package/build-cjs/models/order/package/tracking-info/index.d.ts +7 -0
- package/build-cjs/models/order/payment-method/index.d.ts +8 -0
- package/build-cjs/models/order/refund/index.d.ts +5 -0
- package/build-cjs/models/order/refund/line-item/index.d.ts +4 -0
- package/build-cjs/models/order/refund/settings/index.d.ts +5 -0
- package/build-cjs/models/order/shipping-line/index.d.ts +11 -0
- package/build-cjs/models/order/tax-line/index.d.ts +4 -0
- package/build-cjs/models/order/transaction/error/index.d.ts +5 -0
- package/build-cjs/models/order/transaction/index.d.ts +34 -0
- package/build-cjs/models/order/transaction/index.js +2 -0
- package/build-cjs/models/order/transaction/index.js.map +1 -0
- package/build-cjs/models/order/transaction/payment-method-detail/index.d.ts +22 -0
- package/build-cjs/models/order/transaction/payment-method-detail/index.js +2 -0
- package/build-cjs/models/order/transaction/payment-method-detail/index.js.map +1 -0
- package/build-cjs/models/order/transaction/payment-method-detail/installment-price/index.d.ts +7 -0
- package/build-cjs/models/payment-gateway/additional-price/index.d.ts +14 -0
- package/build-cjs/models/payment-gateway/additional-price/index.js +2 -0
- package/build-cjs/models/payment-gateway/additional-price/index.js.map +1 -0
- package/build-cjs/models/payment-gateway/index.d.ts +42 -0
- package/build-cjs/models/payment-gateway/index.js +2 -0
- package/build-cjs/models/payment-gateway/index.js.map +1 -0
- package/build-cjs/models/payment-gateway/init.d.ts +2 -0
- package/build-cjs/models/payment-gateway/init.js +2 -0
- package/build-cjs/models/payment-gateway/init.js.map +1 -0
- package/build-cjs/models/payment-gateway/settings/index.d.ts +11 -0
- package/build-cjs/models/payment-gateway/settings/index.js +2 -0
- package/build-cjs/models/payment-gateway/settings/index.js.map +1 -0
- package/build-cjs/models/payment-gateway/translation/index.d.ts +5 -0
- package/build-cjs/models/product/attribute/index.d.ts +22 -0
- package/build-cjs/models/product/attribute/index.js +2 -0
- package/build-cjs/models/product/attribute/index.js.map +1 -0
- package/build-cjs/models/product/attribute/init.d.ts +2 -0
- package/build-cjs/models/product/attribute/init.js +2 -0
- package/build-cjs/models/product/attribute/init.js.map +1 -0
- package/build-cjs/models/product/attribute/option/index.d.ts +4 -0
- package/build-cjs/models/product/attribute/table-cell/index.d.ts +4 -0
- package/build-cjs/models/product/attribute/table-template/index.d.ts +5 -0
- package/build-cjs/models/product/attribute/translation/index.d.ts +10 -0
- package/build-cjs/models/product/attribute-value/index.d.ts +21 -0
- package/build-cjs/models/product/attribute-value/init.d.ts +2 -0
- package/build-cjs/models/product/attribute-value/init.js +2 -0
- package/build-cjs/models/product/attribute-value/init.js.map +1 -0
- package/build-cjs/models/product/back-in-stock-settings/index.d.ts +3 -0
- package/build-cjs/models/product/campaign/data/index.d.ts +39 -0
- package/build-cjs/models/product/campaign/data/index.js +2 -0
- package/build-cjs/models/product/campaign/data/index.js.map +1 -0
- package/build-cjs/models/product/campaign/filter/index.d.ts +11 -0
- package/build-cjs/models/product/campaign/filter/index.js +2 -0
- package/build-cjs/models/product/campaign/filter/index.js.map +1 -0
- package/build-cjs/models/product/campaign/index.d.ts +5 -0
- package/build-cjs/models/product/campaign/product-buyx-then-gety/index.d.ts +16 -0
- package/build-cjs/models/product/campaign/product-campaign-date-range-field/index.d.ts +4 -0
- package/build-cjs/models/product/campaign/product-fixed-discount/index.d.ts +11 -0
- package/build-cjs/models/product/filter/index.d.ts +81 -0
- package/build-cjs/models/product/filter/index.js +2 -0
- package/build-cjs/models/product/filter/index.js.map +1 -0
- package/build-cjs/models/product/image/index.d.ts +8 -0
- package/build-cjs/models/product/image/init.d.ts +2 -0
- package/build-cjs/models/product/image/init.js +2 -0
- package/build-cjs/models/product/image/init.js.map +1 -0
- package/build-cjs/models/product/index.d.ts +39 -0
- package/build-cjs/models/product/index.js +2 -0
- package/build-cjs/models/product/index.js.map +1 -0
- package/build-cjs/models/product/init.d.ts +2 -0
- package/build-cjs/models/product/init.js +2 -0
- package/build-cjs/models/product/init.js.map +1 -0
- package/build-cjs/models/product/option-set/index.d.ts +21 -0
- package/build-cjs/models/product/option-set/init.d.ts +6 -0
- package/build-cjs/models/product/option-set/init.js +2 -0
- package/build-cjs/models/product/option-set/init.js.map +1 -0
- package/build-cjs/models/product/option-set/option/index.d.ts +70 -0
- package/build-cjs/models/product/option-set/option/index.js +2 -0
- package/build-cjs/models/product/option-set/option/index.js.map +1 -0
- package/build-cjs/models/product/option-set/option/init.d.ts +2 -0
- package/build-cjs/models/product/option-set/option/init.js +2 -0
- package/build-cjs/models/product/option-set/option/init.js.map +1 -0
- package/build-cjs/models/product/tag/index.d.ts +4 -0
- package/build-cjs/models/product/variant/index.d.ts +19 -0
- package/build-cjs/models/product/variant/init.d.ts +2 -0
- package/build-cjs/models/product/variant/init.js +2 -0
- package/build-cjs/models/product/variant/init.js.map +1 -0
- package/build-cjs/models/product/variant/price/index.d.ts +7 -0
- package/build-cjs/models/product/variant-type/index.d.ts +5 -0
- package/build-cjs/models/product/variant-type/init.d.ts +2 -0
- package/build-cjs/models/product/variant-type/init.js +2 -0
- package/build-cjs/models/product/variant-type/init.js.map +1 -0
- package/build-cjs/models/raffle/index.d.ts +62 -0
- package/build-cjs/models/raffle/index.js +2 -0
- package/build-cjs/models/raffle/index.js.map +1 -0
- package/build-cjs/models/raffle/init.d.ts +2 -0
- package/build-cjs/models/raffle/init.js +2 -0
- package/build-cjs/models/raffle/init.js.map +1 -0
- package/build-cjs/models/sales-channel/index.d.ts +15 -0
- package/build-cjs/models/state/index.d.ts +6 -0
- package/build-cjs/models/stock-location/address/city/index.d.ts +5 -0
- package/build-cjs/models/stock-location/address/country/index.d.ts +5 -0
- package/build-cjs/models/stock-location/address/district/index.d.ts +5 -0
- package/build-cjs/models/stock-location/address/index.d.ts +13 -0
- package/build-cjs/models/stock-location/address/state/index.d.ts +5 -0
- package/build-cjs/models/stock-location/available/index.d.ts +8 -0
- package/build-cjs/models/stock-location/index.d.ts +23 -0
- package/build-cjs/models/stock-location/index.js +2 -0
- package/build-cjs/models/stock-location/index.js.map +1 -0
- package/build-cjs/models/storefront/domain/index.d.ts +7 -0
- package/build-cjs/models/storefront/index.d.ts +26 -0
- package/build-cjs/models/storefront/index.js +2 -0
- package/build-cjs/models/storefront/index.js.map +1 -0
- package/build-cjs/models/storefront/localization/index.d.ts +6 -0
- package/build-cjs/models/storefront/routing/dynamic-currency/index.d.ts +4 -0
- package/build-cjs/models/storefront/routing/index.d.ts +10 -0
- package/build-cjs/models/storefront/theme/index.d.ts +12 -0
- package/build-cjs/models/storefront/theme/index.js +2 -0
- package/build-cjs/models/storefront/theme/index.js.map +1 -0
- package/build-cjs/models/storefront/theme-localization/index.d.ts +11 -0
- package/build-cjs/models/theme-json/component/index.d.ts +17 -0
- package/build-cjs/models/theme-json/component/prop/index.d.ts +60 -0
- package/build-cjs/models/theme-json/component/prop/index.js +2 -0
- package/build-cjs/models/theme-json/component/prop/index.js.map +1 -0
- package/build-cjs/models/theme-json/custom-data/index.d.ts +37 -0
- package/build-cjs/models/theme-json/index.d.ts +11 -0
- package/build-cjs/models/theme-json/page/component/index.d.ts +5 -0
- package/build-cjs/models/theme-json/page/index.d.ts +43 -0
- package/build-cjs/models/theme-json/page/index.js +2 -0
- package/build-cjs/models/theme-json/page/index.js.map +1 -0
- package/build-cjs/models/theme-json/settings/color/index.d.ts +12 -0
- package/build-cjs/models/theme-json/settings/favicon/index.d.ts +3 -0
- package/build-cjs/models/theme-json/settings/font-family/index.d.ts +4 -0
- package/build-cjs/models/theme-json/settings/index.d.ts +14 -0
- package/build-cjs/models/theme-json/settings/index.js +2 -0
- package/build-cjs/models/theme-json/settings/index.js.map +1 -0
- package/build-cjs/models/variant-type/index.d.ts +21 -0
- package/build-cjs/models/variant-type/index.js +2 -0
- package/build-cjs/models/variant-type/index.js.map +1 -0
- package/build-cjs/models/variant-type/init.d.ts +2 -0
- package/build-cjs/models/variant-type/init.js +2 -0
- package/build-cjs/models/variant-type/init.js.map +1 -0
- package/build-cjs/models/variant-type/variant-value/index.d.ts +9 -0
- package/build-cjs/models/variant-type/variant-value/init.d.ts +2 -0
- package/build-cjs/models/variant-type/variant-value/init.js +2 -0
- package/build-cjs/models/variant-type/variant-value/init.js.map +1 -0
- package/package.json +32 -0
- package/src/index.ts +213 -0
- package/src/models/base/index.ts +6 -0
- package/src/models/base/init.ts +14 -0
- package/src/models/blog/category/index.ts +11 -0
- package/src/models/blog/category/init.ts +33 -0
- package/src/models/blog/content/index.ts +5 -0
- package/src/models/blog/index.ts +26 -0
- package/src/models/blog/init.ts +7 -0
- package/src/models/blog/meta-data/index.ts +16 -0
- package/src/models/blog/tag/index.ts +5 -0
- package/src/models/blog/writer/index.ts +4 -0
- package/src/models/brand/index.ts +26 -0
- package/src/models/brand/init.ts +27 -0
- package/src/models/brand/translation/index.ts +5 -0
- package/src/models/campaign-offer/index.ts +43 -0
- package/src/models/campaign-offer/product/index.ts +27 -0
- package/src/models/cart/available-shipping-method/index.ts +13 -0
- package/src/models/cart/campaign-offer/index.ts +24 -0
- package/src/models/cart/index.ts +12 -0
- package/src/models/category/index.ts +30 -0
- package/src/models/category/init.ts +33 -0
- package/src/models/category/path-item/index.ts +9 -0
- package/src/models/category/translations/index.ts +5 -0
- package/src/models/checkout/index.ts +3 -0
- package/src/models/checkout-settings/index.ts +24 -0
- package/src/models/checkout-settings/option/index.ts +4 -0
- package/src/models/checkout-settings/price/index.ts +4 -0
- package/src/models/city/index.ts +11 -0
- package/src/models/contact-form/index.ts +7 -0
- package/src/models/country/index.ts +15 -0
- package/src/models/customer/address/city/index.ts +5 -0
- package/src/models/customer/address/country/index.ts +7 -0
- package/src/models/customer/address/district/index.ts +5 -0
- package/src/models/customer/address/index.tsx +27 -0
- package/src/models/customer/address/state/index.ts +5 -0
- package/src/models/customer/attribute/index.ts +22 -0
- package/src/models/customer/attribute/init.ts +34 -0
- package/src/models/customer/attribute/option/index.ts +7 -0
- package/src/models/customer/attribute/sales-channel/index.ts +18 -0
- package/src/models/customer/attribute/translation/index.ts +8 -0
- package/src/models/customer/attribute/translation/option/index.ts +4 -0
- package/src/models/customer/attribute/value/index.ts +12 -0
- package/src/models/customer/index.ts +48 -0
- package/src/models/customer/review/index.ts +28 -0
- package/src/models/customer/review/init.ts +7 -0
- package/src/models/customer/review/settings/index.ts +4 -0
- package/src/models/customer/review/summary/index.ts +9 -0
- package/src/models/customer/review/summary/star/index.ts +4 -0
- package/src/models/district/index.ts +11 -0
- package/src/models/favorite-product/index.ts +6 -0
- package/src/models/filter-category/index.ts +9 -0
- package/src/models/html-meta-data/index.ts +28 -0
- package/src/models/html-meta-data/init.ts +27 -0
- package/src/models/html-meta-data/translations/index.ts +5 -0
- package/src/models/image/index.ts +4 -0
- package/src/models/last-viewed-product/index.ts +4 -0
- package/src/models/merchant-settings/index.ts +25 -0
- package/src/models/merchant-settings/init.ts +7 -0
- package/src/models/order/address/city/index.ts +5 -0
- package/src/models/order/address/country/index.ts +7 -0
- package/src/models/order/address/district/index.ts +5 -0
- package/src/models/order/address/index.ts +25 -0
- package/src/models/order/address/state/index.ts +5 -0
- package/src/models/order/adjustment/applied-order-line/index.ts +6 -0
- package/src/models/order/adjustment/index.ts +24 -0
- package/src/models/order/customer/index.ts +9 -0
- package/src/models/order/gift-line/index.ts +4 -0
- package/src/models/order/index.ts +90 -0
- package/src/models/order/invoice/index.ts +15 -0
- package/src/models/order/line-item/discount/index.ts +10 -0
- package/src/models/order/line-item/index.ts +34 -0
- package/src/models/order/line-item/option/index.ts +10 -0
- package/src/models/order/line-item/option/value/index.ts +5 -0
- package/src/models/order/line-item/variant/brand/index.ts +4 -0
- package/src/models/order/line-item/variant/category/index.ts +10 -0
- package/src/models/order/line-item/variant/index.ts +26 -0
- package/src/models/order/line-item/variant/price/index.ts +7 -0
- package/src/models/order/line-item/variant/value/index.ts +7 -0
- package/src/models/order/package/index.ts +28 -0
- package/src/models/order/package/tracking-info/index.ts +7 -0
- package/src/models/order/payment-method/index.ts +9 -0
- package/src/models/order/refund/index.ts +6 -0
- package/src/models/order/refund/line-item/index.ts +4 -0
- package/src/models/order/refund/settings/index.ts +5 -0
- package/src/models/order/shipping-line/index.ts +12 -0
- package/src/models/order/tax-line/index.ts +4 -0
- package/src/models/order/transaction/error/index.ts +5 -0
- package/src/models/order/transaction/index.ts +39 -0
- package/src/models/order/transaction/payment-method-detail/index.ts +25 -0
- package/src/models/order/transaction/payment-method-detail/installment-price/index.ts +7 -0
- package/src/models/payment-gateway/additional-price/index.ts +16 -0
- package/src/models/payment-gateway/index.ts +47 -0
- package/src/models/payment-gateway/init.ts +26 -0
- package/src/models/payment-gateway/settings/index.ts +12 -0
- package/src/models/payment-gateway/translation/index.ts +5 -0
- package/src/models/product/attribute/index.ts +24 -0
- package/src/models/product/attribute/init.ts +34 -0
- package/src/models/product/attribute/option/index.ts +4 -0
- package/src/models/product/attribute/table-cell/index.ts +4 -0
- package/src/models/product/attribute/table-template/index.ts +6 -0
- package/src/models/product/attribute/translation/index.ts +11 -0
- package/src/models/product/attribute-value/index.ts +26 -0
- package/src/models/product/attribute-value/init.ts +7 -0
- package/src/models/product/back-in-stock-settings/index.ts +3 -0
- package/src/models/product/campaign/data/index.ts +43 -0
- package/src/models/product/campaign/filter/index.ts +12 -0
- package/src/models/product/campaign/index.ts +6 -0
- package/src/models/product/campaign/product-buyx-then-gety/index.ts +19 -0
- package/src/models/product/campaign/product-campaign-date-range-field/index.ts +4 -0
- package/src/models/product/campaign/product-fixed-discount/index.ts +13 -0
- package/src/models/product/filter/index.ts +96 -0
- package/src/models/product/image/index.ts +10 -0
- package/src/models/product/image/init.ts +7 -0
- package/src/models/product/index.ts +43 -0
- package/src/models/product/init.ts +16 -0
- package/src/models/product/option-set/index.ts +25 -0
- package/src/models/product/option-set/init.ts +77 -0
- package/src/models/product/option-set/option/index.ts +81 -0
- package/src/models/product/option-set/option/init.ts +13 -0
- package/src/models/product/tag/index.ts +4 -0
- package/src/models/product/variant/index.ts +20 -0
- package/src/models/product/variant/init.ts +10 -0
- package/src/models/product/variant/price/index.ts +7 -0
- package/src/models/product/variant-type/index.ts +6 -0
- package/src/models/product/variant-type/init.ts +15 -0
- package/src/models/raffle/index.ts +70 -0
- package/src/models/raffle/init.ts +6 -0
- package/src/models/sales-channel/index.ts +17 -0
- package/src/models/state/index.ts +7 -0
- package/src/models/stock-location/address/city/index.ts +5 -0
- package/src/models/stock-location/address/country/index.ts +5 -0
- package/src/models/stock-location/address/district/index.ts +5 -0
- package/src/models/stock-location/address/index.ts +14 -0
- package/src/models/stock-location/address/state/index.ts +5 -0
- package/src/models/stock-location/available/index.ts +9 -0
- package/src/models/stock-location/index.ts +26 -0
- package/src/models/storefront/domain/index.ts +7 -0
- package/src/models/storefront/index.ts +30 -0
- package/src/models/storefront/localization/index.tsx +6 -0
- package/src/models/storefront/routing/dynamic-currency/index.ts +4 -0
- package/src/models/storefront/routing/index.tsx +11 -0
- package/src/models/storefront/theme/index.tsx +13 -0
- package/src/models/storefront/theme-localization/index.tsx +13 -0
- package/src/models/theme-json/component/index.ts +19 -0
- package/src/models/theme-json/component/prop/index.ts +65 -0
- package/src/models/theme-json/custom-data/index.ts +46 -0
- package/src/models/theme-json/index.ts +12 -0
- package/src/models/theme-json/page/component/index.ts +11 -0
- package/src/models/theme-json/page/index.ts +46 -0
- package/src/models/theme-json/settings/color/index.ts +13 -0
- package/src/models/theme-json/settings/favicon/index.ts +3 -0
- package/src/models/theme-json/settings/font-family/index.ts +4 -0
- package/src/models/theme-json/settings/index.ts +16 -0
- package/src/models/variant-type/index.ts +25 -0
- package/src/models/variant-type/init.ts +37 -0
- package/src/models/variant-type/variant-value/index.ts +12 -0
- package/src/models/variant-type/variant-value/init.ts +5 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IkasProductAttributeTableTemplate } from "./table-template";
|
|
2
|
+
import { IkasProductAttributeOption } from "./option";
|
|
3
|
+
import { IkasProductAttributeTranslation } from "./translation";
|
|
4
|
+
export declare type IkasProductAttribute = {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
description: string | null;
|
|
8
|
+
type: IkasProductAttributeType;
|
|
9
|
+
options: IkasProductAttributeOption[] | null;
|
|
10
|
+
tableTemplate: IkasProductAttributeTableTemplate | null;
|
|
11
|
+
translations?: IkasProductAttributeTranslation[] | null;
|
|
12
|
+
};
|
|
13
|
+
export declare enum IkasProductAttributeType {
|
|
14
|
+
CHOICE = "CHOICE",
|
|
15
|
+
MULTIPLE_CHOICE = "MULTIPLE_CHOICE",
|
|
16
|
+
TEXT = "TEXT",
|
|
17
|
+
BOOLEAN = "BOOLEAN",
|
|
18
|
+
NUMERIC = "NUMERIC",
|
|
19
|
+
DATETIME = "DATETIME",
|
|
20
|
+
HTML = "HTML",
|
|
21
|
+
TABLE = "TABLE"
|
|
22
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var t;Object.defineProperty(exports,"__esModule",{value:!0}),exports.IkasProductAttributeType=void 0,(t=exports.IkasProductAttributeType||(exports.IkasProductAttributeType={})).CHOICE="CHOICE",t.MULTIPLE_CHOICE="MULTIPLE_CHOICE",t.TEXT="TEXT",t.BOOLEAN="BOOLEAN",t.NUMERIC="NUMERIC",t.DATETIME="DATETIME",t.HTML="HTML",t.TABLE="TABLE";
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -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}\n"],"names":["IkasProductAttributeType"],"mappings":"aAcA,IAAYA,yDAAAA,QASXA,8BAAA,GATWA,EAAAA,QAAwBA,2BAAxBA,iCASX,KARC,OAAA,SACAA,EAAA,gBAAA,kBACAA,EAAA,KAAA,OACAA,EAAA,QAAA,UACAA,EAAA,QAAA,UACAA,EAAA,SAAA,WACAA,EAAA,KAAA,OACAA,EAAA,MAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.initIkasProductAttribute=function(n,i){n.translations&&i&&(!function(n,i,o){var t;if(i&&i.some((function(n){return n.locale===o}))){var e=i.find((function(n){return n.locale===o}));(null==e?void 0:e.name)&&(n.name=e.name),(null==e?void 0:e.description)&&(n.description=e.description),(null==e?void 0:e.options)&&(null===(t=n.options)||void 0===t||t.forEach((function(n){var i,o=null===(i=e.options)||void 0===i?void 0:i.find((function(i){return i.id===n.id}));o&&o.name&&(n.name=o.name)})))}}(n,n.translations,i),delete n.translations)};
|
|
2
|
+
//# sourceMappingURL=init.js.map
|
|
@@ -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,10 @@
|
|
|
1
|
+
export declare type IkasProductAttributeTranslation = {
|
|
2
|
+
description: string | null;
|
|
3
|
+
locale: string;
|
|
4
|
+
name: string | null;
|
|
5
|
+
options: IkasProductAttributeOptionTranslation[] | null;
|
|
6
|
+
};
|
|
7
|
+
export declare type IkasProductAttributeOptionTranslation = {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string | null;
|
|
10
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IkasImage } from "../../image";
|
|
2
|
+
import { IkasProductAttribute } from "../attribute";
|
|
3
|
+
import { IkasProductAttributeOption } from "../attribute/option";
|
|
4
|
+
export declare type IkasProductAttributeValue = {
|
|
5
|
+
imageIds: string[] | null;
|
|
6
|
+
productAttributeId: string | null;
|
|
7
|
+
productAttributeOptionId: string | null;
|
|
8
|
+
value: string | null;
|
|
9
|
+
images?: IkasImage[];
|
|
10
|
+
productAttribute?: IkasProductAttribute | null;
|
|
11
|
+
productAttributeOption?: IkasProductAttributeOption | null;
|
|
12
|
+
};
|
|
13
|
+
export declare type IkasAttributeTableCellValue = {
|
|
14
|
+
colId: string;
|
|
15
|
+
rowId: string;
|
|
16
|
+
value: string | null;
|
|
17
|
+
};
|
|
18
|
+
export declare type IkasProductAttributeMap = {
|
|
19
|
+
attribute: IkasProductAttribute;
|
|
20
|
+
values: IkasProductAttributeValue[];
|
|
21
|
+
};
|
|
@@ -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"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { IkasProductBuyXThenGetY } from "../product-buyx-then-gety";
|
|
2
|
+
import { IkasProductCampaignDateRangeField } from "../product-campaign-date-range-field";
|
|
3
|
+
import { IkasProductFixedDiscount } from "../product-fixed-discount";
|
|
4
|
+
export declare type IkasProductCampaignData = {
|
|
5
|
+
applicableCustomerGroupIds: string[] | null;
|
|
6
|
+
applicableCustomerIds: string[] | null;
|
|
7
|
+
applicablePrice: IkasCampaignApplicablePrice;
|
|
8
|
+
buyXThenGetY: IkasProductBuyXThenGetY;
|
|
9
|
+
canCombineWithOtherCampaigns: boolean;
|
|
10
|
+
createdFor: IkasCampaignCreatedFor | null;
|
|
11
|
+
currencyCodes: [string] | null;
|
|
12
|
+
dateRange: IkasProductCampaignDateRangeField | null;
|
|
13
|
+
deleted: boolean;
|
|
14
|
+
fixedDiscount: IkasProductFixedDiscount | null;
|
|
15
|
+
hasCoupon: boolean;
|
|
16
|
+
id: string;
|
|
17
|
+
includeDiscountedProducts: boolean | null;
|
|
18
|
+
salesChannelIds: string[] | null;
|
|
19
|
+
title: string;
|
|
20
|
+
type: IkasCampaignType;
|
|
21
|
+
usageCount: number;
|
|
22
|
+
usageLimit: number | null;
|
|
23
|
+
usageLimitPerCustomer: number | null;
|
|
24
|
+
};
|
|
25
|
+
export declare enum IkasCampaignApplicablePrice {
|
|
26
|
+
DISCOUNT_PRICE = "DISCOUNT_PRICE",
|
|
27
|
+
SELL_PRICE = "SELL_PRICE"
|
|
28
|
+
}
|
|
29
|
+
export declare enum IkasCampaignCreatedFor {
|
|
30
|
+
ABANDONED_CHECKOUT = "ABANDONED_CHECKOUT",
|
|
31
|
+
CART = "CART",
|
|
32
|
+
CUSTOMER_REVIEW = "CUSTOMER_REVIEW"
|
|
33
|
+
}
|
|
34
|
+
export declare enum IkasCampaignType {
|
|
35
|
+
BUY_X_THEN_GET_Y = "BUY_X_THEN_GET_Y",
|
|
36
|
+
FIXED_AMOUNT = "FIXED_AMOUNT",
|
|
37
|
+
FREE_SHIPPING = "FREE_SHIPPING",
|
|
38
|
+
RATIO = "FREE_SHIPPING"
|
|
39
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
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="FREE_SHIPPING";
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -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,11 @@
|
|
|
1
|
+
export declare type IkasProductCampaignFilter = {
|
|
2
|
+
idList: string[];
|
|
3
|
+
type: IkasCampaignFilterType;
|
|
4
|
+
};
|
|
5
|
+
export declare enum IkasCampaignFilterType {
|
|
6
|
+
CATEGORY = "CATEGORY",
|
|
7
|
+
PRODUCT = "PRODUCT",
|
|
8
|
+
PRODUCT_BRAND = "PRODUCT_BRAND",
|
|
9
|
+
PRODUCT_TAG = "PRODUCT_TAG",
|
|
10
|
+
VARIANT = "VARIANT"
|
|
11
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var e;Object.defineProperty(exports,"__esModule",{value:!0}),exports.IkasCampaignFilterType=void 0,(e=exports.IkasCampaignFilterType||(exports.IkasCampaignFilterType={})).CATEGORY="CATEGORY",e.PRODUCT="PRODUCT",e.PRODUCT_BRAND="PRODUCT_BRAND",e.PRODUCT_TAG="PRODUCT_TAG",e.VARIANT="VARIANT";
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -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"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IkasProductCampaignFilter } from "../filter";
|
|
2
|
+
export declare type IkasProductBuyX = {
|
|
3
|
+
amount: number;
|
|
4
|
+
applyByQuantity: boolean;
|
|
5
|
+
filter: IkasProductCampaignFilter;
|
|
6
|
+
};
|
|
7
|
+
export declare type IkasProductGetY = {
|
|
8
|
+
amount: number;
|
|
9
|
+
discountRatio: number;
|
|
10
|
+
filter: IkasProductCampaignFilter;
|
|
11
|
+
};
|
|
12
|
+
export declare type IkasProductBuyXThenGetY = {
|
|
13
|
+
buyX: IkasProductBuyX;
|
|
14
|
+
getY: IkasProductGetY;
|
|
15
|
+
maxUsagePerOrder: number;
|
|
16
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IkasProductCampaignFilter } from "../filter";
|
|
2
|
+
export declare type IkasCampaignMinMaxRangeField = {
|
|
3
|
+
min: number | null;
|
|
4
|
+
max: number | null;
|
|
5
|
+
};
|
|
6
|
+
export declare type IkasProductFixedDiscount = {
|
|
7
|
+
amount: number | null;
|
|
8
|
+
filters: IkasProductCampaignFilter | null;
|
|
9
|
+
lineItemQuantityRange: IkasCampaignMinMaxRangeField | null;
|
|
10
|
+
priceRange: IkasCampaignMinMaxRangeField | null;
|
|
11
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { IkasImage } from "../../image";
|
|
2
|
+
export declare type IkasProductFilter = {
|
|
3
|
+
id: string;
|
|
4
|
+
key: string;
|
|
5
|
+
name: string;
|
|
6
|
+
order: number;
|
|
7
|
+
type: IkasProductFilterType;
|
|
8
|
+
displayType: IkasProductFilterDisplayType;
|
|
9
|
+
isMultiSelect: boolean;
|
|
10
|
+
isFacetFilter: boolean | null;
|
|
11
|
+
values?: IkasApplicableProductFilterValue[] | null;
|
|
12
|
+
customValues?: string[] | null;
|
|
13
|
+
settings?: IkasProductFilterSettings | null;
|
|
14
|
+
numberRange?: IkasFilterRangeValue | null;
|
|
15
|
+
numberRangeLimit?: IkasFilterRangeValue | null;
|
|
16
|
+
numberRangeListOptions?: IkasProductFilterNumberRangeListOption[] | null;
|
|
17
|
+
};
|
|
18
|
+
export declare type IkasApplicableProductFilterValue = {
|
|
19
|
+
id: string;
|
|
20
|
+
key: string;
|
|
21
|
+
name: string;
|
|
22
|
+
colorCode?: string | null;
|
|
23
|
+
thumbnailImageId?: string | null;
|
|
24
|
+
thumbnailImage?: IkasImage | null;
|
|
25
|
+
resultCount?: number | null;
|
|
26
|
+
isSelected: boolean;
|
|
27
|
+
};
|
|
28
|
+
export declare type IkasProductFilterValue = {
|
|
29
|
+
id: string;
|
|
30
|
+
type: IkasProductFilterType;
|
|
31
|
+
displayType: IkasProductFilterDisplayType;
|
|
32
|
+
valueList: string[];
|
|
33
|
+
};
|
|
34
|
+
export declare type IkasProductFilterSettings = {
|
|
35
|
+
useAndFilter?: boolean | null;
|
|
36
|
+
showCollapsedOnDesktop: boolean;
|
|
37
|
+
showCollapsedOnMobile: boolean;
|
|
38
|
+
sortType: IkasProductFilterSortType;
|
|
39
|
+
};
|
|
40
|
+
export declare type IkasProductFacetInput = {
|
|
41
|
+
id: string;
|
|
42
|
+
type: IkasProductFilterType;
|
|
43
|
+
displayType: IkasProductFilterDisplayType;
|
|
44
|
+
};
|
|
45
|
+
export declare enum IkasProductFilterType {
|
|
46
|
+
ATTRIBUTE = "ATTRIBUTE",
|
|
47
|
+
BRAND = "BRAND",
|
|
48
|
+
DISCOUNT_RATIO = "DISCOUNT_RATIO",
|
|
49
|
+
PRICE = "PRICE",
|
|
50
|
+
STOCK_STATUS = "STOCK_STATUS",
|
|
51
|
+
TAG = "TAG",
|
|
52
|
+
VARIANT_TYPE = "VARIANT_TYPE"
|
|
53
|
+
}
|
|
54
|
+
export declare enum IkasProductFilterDisplayType {
|
|
55
|
+
BOX = "BOX",
|
|
56
|
+
DATE_RANGE = "DATE_RANGE",
|
|
57
|
+
LIST = "LIST",
|
|
58
|
+
NUMBER_RANGE_LIST = "NUMBER_RANGE_LIST",
|
|
59
|
+
NUMBER_RANGE = "NUMBER_RANGE",
|
|
60
|
+
SWATCH = "SWATCH"
|
|
61
|
+
}
|
|
62
|
+
export declare enum IkasProductFilterSortType {
|
|
63
|
+
ALPHABETICAL_ASC = "ALPHABETICAL_ASC",
|
|
64
|
+
ALPHABETICAL_DESC = "ALPHABETICAL_DESC",
|
|
65
|
+
PRODUCT_COUNT_ASC = "PRODUCT_COUNT_ASC",
|
|
66
|
+
PRODUCT_COUNT_DESC = "PRODUCT_COUNT_DESC"
|
|
67
|
+
}
|
|
68
|
+
export declare enum IkasProductStockFilterValue {
|
|
69
|
+
IN_STOCK = "in-stock",
|
|
70
|
+
OUT_OF_STOCK = "out-of-stock"
|
|
71
|
+
}
|
|
72
|
+
export declare type IkasFilterRangeValue = {
|
|
73
|
+
from: number;
|
|
74
|
+
to: number | undefined | null;
|
|
75
|
+
};
|
|
76
|
+
export declare type IkasProductFilterNumberRangeListOption = {
|
|
77
|
+
from: number;
|
|
78
|
+
to: number | undefined | null;
|
|
79
|
+
key: string;
|
|
80
|
+
isSelected: boolean;
|
|
81
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
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",exports.IkasProductStockFilterValue=void 0,(r=exports.IkasProductStockFilterValue||(exports.IkasProductStockFilterValue={})).IN_STOCK="in-stock",r.OUT_OF_STOCK="out-of-stock";
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -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};\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}\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":"aAsDA,IAAYA,EAUAC,EASAC,EAOAC,yDA1BAH,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,QAKXA,+BAAA,GALWA,EAAAA,oCAAAA,QAAAA,0BAKX,KAJC,iBAAA,mBACAA,EAAA,kBAAA,oBACAA,EAAA,kBAAA,oBACAA,EAAA,mBAAA,qBAGUC,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"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { IkasCategory } from "../category";
|
|
2
|
+
import { IkasProductVariant } from "./variant";
|
|
3
|
+
import { IkasProductAttributeValue } from "./attribute-value";
|
|
4
|
+
import { IkasProductVariantType } from "./variant-type";
|
|
5
|
+
import { IkasBrand } from "../brand";
|
|
6
|
+
import { IkasHTMLMetaData } from "../html-meta-data";
|
|
7
|
+
import { IkasProductTag } from "./tag";
|
|
8
|
+
import { IkasVariantValue } from "../variant-type/variant-value";
|
|
9
|
+
import { IkasVariantType } from "../variant-type";
|
|
10
|
+
export declare type IkasProduct = {
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
type: IkasProductType;
|
|
14
|
+
description: string;
|
|
15
|
+
shortDescription: string;
|
|
16
|
+
metaData: IkasHTMLMetaData | null;
|
|
17
|
+
brand: IkasBrand | null;
|
|
18
|
+
categories: IkasCategory[];
|
|
19
|
+
tags: IkasProductTag[] | null;
|
|
20
|
+
variants: IkasProductVariant[];
|
|
21
|
+
attributes: IkasProductAttributeValue[];
|
|
22
|
+
variantTypes: IkasProductVariantType[];
|
|
23
|
+
productOptionSetId: string | null;
|
|
24
|
+
};
|
|
25
|
+
export declare enum IkasProductType {
|
|
26
|
+
PHYSICAL = "PHYSICAL",
|
|
27
|
+
DIGITAL = "DIGITAL",
|
|
28
|
+
MEMBERSHIP = "MEMBERSHIP"
|
|
29
|
+
}
|
|
30
|
+
export declare type IkasDisplayedVariantValue = {
|
|
31
|
+
variant: IkasProductVariant;
|
|
32
|
+
variantValue: IkasVariantValue;
|
|
33
|
+
hasStock: boolean;
|
|
34
|
+
isSelected: boolean;
|
|
35
|
+
};
|
|
36
|
+
export declare type IkasDisplayedVariantType = {
|
|
37
|
+
variantType: IkasVariantType;
|
|
38
|
+
displayedVariantValues: IkasDisplayedVariantValue[];
|
|
39
|
+
};
|
|
@@ -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\";\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};\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":"aA0BA,IAAYA,yDAAAA,QAIXA,qBAAA,GAJWA,EAAAA,QAAeA,kBAAfA,wBAIX,KAHC,SAAA,WACAA,EAAA,QAAA,UACAA,EAAA,WAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("./variant-type/init.js"),a=require("./variant/init.js"),i=require("./attribute-value/init.js"),r=require("../brand/init.js"),e=require("../category/init.js"),n=require("../html-meta-data/init.js");exports.initIkasProduct=function(s,u){s.metaData&&n.initIkasHTMLMetaData(s.metaData,u),s.brand&&r.initIkasBrand(s.brand,u),s.categories.forEach((function(t){return e.initIkasCategory(t,u)})),s.variants.forEach(a.initIkasProductVariant),s.attributes.forEach(i.initIkasProductAttributeValue),s.variantTypes.forEach(t.initIkasProductVariantType)};
|
|
2
|
+
//# sourceMappingURL=init.js.map
|
|
@@ -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,21 @@
|
|
|
1
|
+
import { IkasProductOption } from "./option";
|
|
2
|
+
export declare type IkasProductOptionSelectValueTranslations = {
|
|
3
|
+
id: string;
|
|
4
|
+
value: string | null;
|
|
5
|
+
};
|
|
6
|
+
export declare type IkasProductOptionTranslations = {
|
|
7
|
+
id: string;
|
|
8
|
+
name: string | null;
|
|
9
|
+
optionalText: string | null;
|
|
10
|
+
values: IkasProductOptionSelectValueTranslations[] | null;
|
|
11
|
+
};
|
|
12
|
+
export declare type IkasProductOptionSetTranslations = {
|
|
13
|
+
locale: string;
|
|
14
|
+
options: IkasProductOptionTranslations[] | null;
|
|
15
|
+
};
|
|
16
|
+
export declare type IkasProductOptionSet = {
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
options: IkasProductOption[];
|
|
20
|
+
translations?: IkasProductOptionSetTranslations[] | null;
|
|
21
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IkasProductOptionSet } from ".";
|
|
2
|
+
import { IkasProductOption } from "./option";
|
|
3
|
+
export declare function initIkasProductOptionSet(optionSet: IkasProductOptionSet, locale: string | null): void;
|
|
4
|
+
export declare function setChildOptions(optionSet: IkasProductOptionSet): void;
|
|
5
|
+
export declare function initOptionValues(optionSet: IkasProductOptionSet): void;
|
|
6
|
+
export declare function initValues(option: IkasProductOption): void;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=require("./option/index.js"),t=require("./option/init.js");function i(n){n.options.forEach((function(t){var i=n.options.filter((function(n){return n.requiredOptionId===t.id}));i.length&&(t.childOptions=i)}))}function o(n){n.options.forEach((function(n){return e(n)}))}function e(n){n.isOptional||(n.values=[],n.childOptions&&n.childOptions.forEach((function(n){return e(n)})))}exports.initIkasProductOptionSet=function(e,r){e.options.forEach((function(n){n.productOptionSetId=e.id,t.initIkasProductOption(n)})),e.translations&&r&&(!function(t,i,o){var e;if(i&&i.some((function(n){return n.locale===o}))){var r=i.find((function(n){return n.locale===o}));null===(e=null==r?void 0:r.options)||void 0===e||e.forEach((function(i){var o,e=t.options.find((function(n){return n.id===i.id}));e&&(e.name=i.name||e.name,e.optionalText=i.optionalText||e.optionalText,e.type===n.IkasProductOptionType.CHOICE&&(null===(o=i.values)||void 0===o||o.forEach((function(n){var t,i=null===(t=e.selectSettings)||void 0===t?void 0:t.values.find((function(t){return t.id===n.id}));i&&(i.value=n.value||i.value)}))))}))}}(e,e.translations,r),delete e.translations),i(e),o(e)},exports.initOptionValues=o,exports.initValues=e,exports.setChildOptions=i;
|
|
2
|
+
//# sourceMappingURL=init.js.map
|
|
@@ -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,70 @@
|
|
|
1
|
+
import { IkasImage } from "../../../image";
|
|
2
|
+
export declare enum IkasProductOptionSelectType {
|
|
3
|
+
BOX = "BOX",
|
|
4
|
+
SELECT = "SELECT",
|
|
5
|
+
SWATCH = "SWATCH"
|
|
6
|
+
}
|
|
7
|
+
export declare enum IkasProductOptionType {
|
|
8
|
+
CHECKBOX = "CHECKBOX",
|
|
9
|
+
CHOICE = "CHOICE",
|
|
10
|
+
COLOR_PICKER = "COLOR_PICKER",
|
|
11
|
+
DATE_PICKER = "DATE_PICKER",
|
|
12
|
+
FILE = "FILE",
|
|
13
|
+
IMAGE = "IMAGE",
|
|
14
|
+
TEXT = "TEXT",
|
|
15
|
+
TEXT_AREA = "TEXT_AREA"
|
|
16
|
+
}
|
|
17
|
+
export declare type IkasProductOptionOtherPrice = {
|
|
18
|
+
currencyCode: string;
|
|
19
|
+
price: number;
|
|
20
|
+
};
|
|
21
|
+
export declare type IkasProductOptionSelectValue = {
|
|
22
|
+
id: string;
|
|
23
|
+
order: number;
|
|
24
|
+
value: string;
|
|
25
|
+
price: number | null;
|
|
26
|
+
otherPrices: IkasProductOptionOtherPrice[] | null;
|
|
27
|
+
thumbnailImageId: string | null;
|
|
28
|
+
colorCode: string | null;
|
|
29
|
+
thumbnailImage: IkasImage | null;
|
|
30
|
+
};
|
|
31
|
+
export declare type IkasProductOptionSelectSettings = {
|
|
32
|
+
type: IkasProductOptionSelectType;
|
|
33
|
+
minSelect: number | null;
|
|
34
|
+
maxSelect: number | null;
|
|
35
|
+
values: IkasProductOptionSelectValue[];
|
|
36
|
+
};
|
|
37
|
+
export declare type IkasProductOptionDateSettings = {
|
|
38
|
+
min: Date | null;
|
|
39
|
+
max: Date | null;
|
|
40
|
+
minRelativeNextDate: number | null;
|
|
41
|
+
maxRelativeNextDate: number | null;
|
|
42
|
+
};
|
|
43
|
+
export declare type IkasProductOptionTextSettings = {
|
|
44
|
+
min: number | null;
|
|
45
|
+
max: number | null;
|
|
46
|
+
};
|
|
47
|
+
export declare type IkasProductOptionFileSettings = {
|
|
48
|
+
allowedExtensions: string[] | null;
|
|
49
|
+
minQuantity: number | null;
|
|
50
|
+
maxQuantity: number | null;
|
|
51
|
+
};
|
|
52
|
+
export declare type IkasProductOption = {
|
|
53
|
+
id: string;
|
|
54
|
+
productOptionSetId: string;
|
|
55
|
+
name: string;
|
|
56
|
+
order: number;
|
|
57
|
+
type: IkasProductOptionType;
|
|
58
|
+
selectSettings: IkasProductOptionSelectSettings | null;
|
|
59
|
+
textSettings: IkasProductOptionTextSettings | null;
|
|
60
|
+
fileSettings: IkasProductOptionFileSettings | null;
|
|
61
|
+
dateSettings: IkasProductOptionDateSettings | null;
|
|
62
|
+
price: number | null;
|
|
63
|
+
otherPrices: IkasProductOptionOtherPrice[] | null;
|
|
64
|
+
isOptional: boolean;
|
|
65
|
+
optionalText: string | null;
|
|
66
|
+
requiredOptionId: string | null;
|
|
67
|
+
requiredOptionValueIds: string[] | null;
|
|
68
|
+
values: string[];
|
|
69
|
+
childOptions: IkasProductOption[];
|
|
70
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var e,t;Object.defineProperty(exports,"__esModule",{value:!0}),exports.IkasProductOptionSelectType=void 0,(e=exports.IkasProductOptionSelectType||(exports.IkasProductOptionSelectType={})).BOX="BOX",e.SELECT="SELECT",e.SWATCH="SWATCH",exports.IkasProductOptionType=void 0,(t=exports.IkasProductOptionType||(exports.IkasProductOptionType={})).CHECKBOX="CHECKBOX",t.CHOICE="CHOICE",t.COLOR_PICKER="COLOR_PICKER",t.DATE_PICKER="DATE_PICKER",t.FILE="FILE",t.IMAGE="IMAGE",t.TEXT="TEXT",t.TEXT_AREA="TEXT_AREA";
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -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,2 @@
|
|
|
1
|
+
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("lodash/sortBy"));exports.initIkasProductOption=function(e){var r;e.selectSettings&&((r=e.selectSettings).values=t.default(r.values||[],"order"))};
|
|
2
|
+
//# sourceMappingURL=init.js.map
|
|
@@ -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,19 @@
|
|
|
1
|
+
import { IkasProductPrice } from "./price";
|
|
2
|
+
import { IkasVariantValue } from "../../variant-type/variant-value";
|
|
3
|
+
import { IkasProductAttributeValue } from "../attribute-value";
|
|
4
|
+
import { IkasProductCampaign } from "../campaign";
|
|
5
|
+
import { IkasProductImage } from "../image";
|
|
6
|
+
export declare type IkasProductVariant = {
|
|
7
|
+
id: string;
|
|
8
|
+
sku: string | null;
|
|
9
|
+
barcodeList: string[] | null;
|
|
10
|
+
variantValues: IkasVariantValue[];
|
|
11
|
+
attributes: IkasProductAttributeValue[];
|
|
12
|
+
price: IkasProductPrice;
|
|
13
|
+
stock: number;
|
|
14
|
+
isActive: boolean;
|
|
15
|
+
productId: string;
|
|
16
|
+
sellIfOutOfStock: boolean;
|
|
17
|
+
images: IkasProductImage[] | null;
|
|
18
|
+
campaigns?: IkasProductCampaign[];
|
|
19
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../image/init.js"),t=require("../attribute-value/init.js");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=r(require("lodash/sortBy"));exports.initIkasProductVariant=function(r){var a;null===(a=r.images)||void 0===a||a.forEach(e.initIkasProductImage),r.images=i.default(r.images,"order"),r.attributes.forEach(t.initIkasProductAttributeValue)};
|
|
2
|
+
//# sourceMappingURL=init.js.map
|