@ikas/storefront-models 4.0.0-alpha.79 → 4.0.0-alpha.8
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 +1 -0
- package/build-cjs/index.d.ts +0 -16
- package/build-cjs/index.js +2 -1
- package/build-cjs/models/base/init.js +1 -0
- package/build-cjs/models/blog/category/init.js +1 -0
- package/build-cjs/models/blog/init.js +1 -0
- package/build-cjs/models/blog/meta-data/index.js +1 -0
- package/build-cjs/models/brand/index.js +1 -0
- package/build-cjs/models/brand/init.js +1 -0
- package/build-cjs/models/campaign-offer/index.js +1 -0
- package/build-cjs/models/campaign-offer/product/index.js +1 -0
- package/build-cjs/models/cart/available-shipping-method/index.js +1 -0
- package/build-cjs/models/cart/campaign-offer/index.js +1 -0
- package/build-cjs/models/category/index.js +1 -0
- package/build-cjs/models/category/init.js +2 -1
- package/build-cjs/models/category/init.js.map +1 -1
- package/build-cjs/models/category/path-item/index.d.ts +0 -2
- package/build-cjs/models/checkout-settings/index.js +1 -0
- package/build-cjs/models/checkout-settings/price/index.d.ts +0 -1
- package/build-cjs/models/country/index.d.ts +0 -2
- package/build-cjs/models/customer/attribute/index.js +1 -0
- package/build-cjs/models/customer/attribute/init.js +1 -0
- package/build-cjs/models/customer/attribute/sales-channel/index.js +1 -0
- package/build-cjs/models/customer/index.js +1 -0
- package/build-cjs/models/customer/review/index.js +1 -0
- package/build-cjs/models/customer/review/init.js +1 -0
- package/build-cjs/models/html-meta-data/index.js +1 -0
- package/build-cjs/models/html-meta-data/init.js +1 -0
- package/build-cjs/models/merchant-settings/index.d.ts +0 -3
- package/build-cjs/models/merchant-settings/index.js +1 -0
- package/build-cjs/models/merchant-settings/index.js.map +1 -1
- package/build-cjs/models/merchant-settings/init.js +1 -0
- package/build-cjs/models/order/adjustment/index.js +1 -0
- package/build-cjs/models/order/index.d.ts +1 -3
- package/build-cjs/models/order/index.js +2 -1
- package/build-cjs/models/order/index.js.map +1 -1
- package/build-cjs/models/order/invoice/index.js +1 -0
- package/build-cjs/models/order/line-item/index.d.ts +0 -3
- package/build-cjs/models/order/line-item/index.js +1 -0
- package/build-cjs/models/order/line-item/index.js.map +1 -1
- package/build-cjs/models/order/line-item/variant/index.d.ts +0 -4
- package/build-cjs/models/order/line-item/variant/price/index.d.ts +0 -1
- package/build-cjs/models/order/package/index.js +1 -0
- package/build-cjs/models/order/transaction/index.d.ts +1 -1
- package/build-cjs/models/order/transaction/index.js +1 -0
- package/build-cjs/models/order/transaction/index.js.map +1 -1
- package/build-cjs/models/order/transaction/payment-method-detail/index.js +1 -0
- package/build-cjs/models/payment-gateway/additional-price/index.js +1 -0
- package/build-cjs/models/payment-gateway/index.js +1 -0
- package/build-cjs/models/payment-gateway/init.js +1 -0
- package/build-cjs/models/payment-gateway/settings/index.js +1 -0
- package/build-cjs/models/product/attribute/index.d.ts +1 -3
- package/build-cjs/models/product/attribute/index.js +2 -1
- package/build-cjs/models/product/attribute/index.js.map +1 -1
- package/build-cjs/models/product/attribute/init.js +1 -0
- package/build-cjs/models/product/attribute-value/init.js +1 -0
- package/build-cjs/models/product/campaign/data/index.js +1 -0
- package/build-cjs/models/product/campaign/filter/index.js +1 -0
- package/build-cjs/models/product/filter/index.d.ts +1 -3
- package/build-cjs/models/product/filter/index.js +2 -1
- package/build-cjs/models/product/filter/index.js.map +1 -1
- package/build-cjs/models/product/image/init.js +1 -0
- package/build-cjs/models/product/index.d.ts +0 -2
- package/build-cjs/models/product/index.js +1 -0
- package/build-cjs/models/product/index.js.map +1 -1
- package/build-cjs/models/product/init.js +1 -0
- package/build-cjs/models/product/option-set/init.js +1 -0
- package/build-cjs/models/product/option-set/option/index.js +1 -0
- package/build-cjs/models/product/option-set/option/init.js +1 -0
- package/build-cjs/models/product/variant/index.d.ts +0 -2
- package/build-cjs/models/product/variant/init.js +1 -0
- package/build-cjs/models/product/variant/price/index.d.ts +0 -2
- package/build-cjs/models/product/variant-type/index.d.ts +0 -1
- package/build-cjs/models/product/variant-type/init.js +1 -0
- package/build-cjs/models/raffle/index.d.ts +3 -9
- package/build-cjs/models/raffle/index.js +2 -1
- package/build-cjs/models/raffle/index.js.map +1 -1
- package/build-cjs/models/raffle/init.js +1 -0
- package/build-cjs/models/stock-location/index.js +1 -0
- package/build-cjs/models/storefront/index.d.ts +0 -4
- package/build-cjs/models/storefront/index.js +1 -0
- package/build-cjs/models/storefront/index.js.map +1 -1
- package/build-cjs/models/storefront/routing/index.d.ts +0 -2
- package/build-cjs/models/storefront/theme/index.js +1 -0
- package/build-cjs/models/storefront/theme-localization/index.d.ts +0 -2
- package/build-cjs/models/theme-json/component/index.d.ts +3 -4
- package/build-cjs/models/theme-json/component/prop/index.d.ts +3 -4
- package/build-cjs/models/theme-json/component/prop/index.js +1 -0
- package/build-cjs/models/theme-json/page/index.js +1 -0
- package/build-cjs/models/theme-json/settings/index.js +1 -0
- package/build-cjs/models/variant-type/index.js +1 -0
- package/build-cjs/models/variant-type/init.js +1 -0
- package/build-cjs/models/variant-type/variant-value/init.js +1 -0
- package/package.json +3 -9
- package/{build/index.d.ts → src/index.ts} +213 -172
- package/src/models/base/index.ts +6 -0
- package/src/models/base/init.ts +14 -0
- package/{build/models/blog/category/index.d.ts → src/models/blog/category/index.ts} +11 -9
- package/src/models/blog/category/init.ts +33 -0
- package/{build/models/blog/tag/index.d.ts → src/models/blog/content/index.ts} +5 -4
- 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
- package/build/_virtual/_tslib.js +0 -1
- package/build/index.js +0 -1
- package/build/models/base/index.d.ts +0 -6
- package/build/models/base/init.d.ts +0 -6
- package/build/models/base/init.js +0 -1
- package/build/models/blog/category/init.d.ts +0 -11
- package/build/models/blog/category/init.js +0 -1
- package/build/models/blog/content/index.d.ts +0 -4
- package/build/models/blog/index.d.ts +0 -24
- package/build/models/blog/init.d.ts +0 -2
- package/build/models/blog/init.js +0 -1
- package/build/models/blog/meta-data/index.d.ts +0 -14
- package/build/models/blog/meta-data/index.js +0 -1
- package/build/models/blog/writer/index.d.ts +0 -4
- package/build/models/brand/index.d.ts +0 -23
- package/build/models/brand/index.js +0 -1
- package/build/models/brand/init.d.ts +0 -2
- package/build/models/brand/init.js +0 -1
- package/build/models/brand/translation/index.d.ts +0 -5
- package/build/models/campaign-offer/index.d.ts +0 -37
- package/build/models/campaign-offer/index.js +0 -1
- package/build/models/campaign-offer/product/index.d.ts +0 -24
- package/build/models/campaign-offer/product/index.js +0 -1
- package/build/models/cart/available-shipping-method/index.d.ts +0 -12
- package/build/models/cart/available-shipping-method/index.js +0 -1
- package/build/models/cart/campaign-offer/index.d.ts +0 -19
- package/build/models/cart/campaign-offer/index.js +0 -1
- package/build/models/cart/index.d.ts +0 -11
- package/build/models/category/index.d.ts +0 -27
- package/build/models/category/index.js +0 -1
- package/build/models/category/init.d.ts +0 -2
- package/build/models/category/init.js +0 -1
- package/build/models/category/path-item/index.d.ts +0 -10
- package/build/models/category/path-item/init.d.ts +0 -2
- package/build/models/category/path-item/init.js +0 -1
- package/build/models/category/translations/index.d.ts +0 -5
- package/build/models/checkout/index.d.ts +0 -2
- package/build/models/checkout-settings/index.d.ts +0 -22
- package/build/models/checkout-settings/index.js +0 -1
- package/build/models/checkout-settings/option/index.d.ts +0 -4
- package/build/models/checkout-settings/price/index.d.ts +0 -5
- package/build/models/city/index.d.ts +0 -10
- package/build/models/contact-form/index.d.ts +0 -7
- package/build/models/country/index.d.ts +0 -16
- package/build/models/country/init.d.ts +0 -2
- package/build/models/country/init.js +0 -1
- package/build/models/country/location-translations/index.d.ts +0 -5
- package/build/models/customer/address/city/index.d.ts +0 -5
- package/build/models/customer/address/country/index.d.ts +0 -7
- package/build/models/customer/address/district/index.d.ts +0 -5
- package/build/models/customer/address/index.d.ts +0 -25
- package/build/models/customer/address/state/index.d.ts +0 -5
- package/build/models/customer/attribute/index.d.ts +0 -20
- package/build/models/customer/attribute/index.js +0 -1
- package/build/models/customer/attribute/init.d.ts +0 -2
- package/build/models/customer/attribute/init.js +0 -1
- package/build/models/customer/attribute/option/index.d.ts +0 -7
- package/build/models/customer/attribute/sales-channel/index.d.ts +0 -16
- package/build/models/customer/attribute/sales-channel/index.js +0 -1
- package/build/models/customer/attribute/translation/index.d.ts +0 -7
- package/build/models/customer/attribute/translation/option/index.d.ts +0 -4
- package/build/models/customer/attribute/value/index.d.ts +0 -9
- package/build/models/customer/index.d.ts +0 -43
- package/build/models/customer/index.js +0 -1
- package/build/models/customer/review/index.d.ts +0 -24
- package/build/models/customer/review/index.js +0 -1
- package/build/models/customer/review/init.d.ts +0 -2
- package/build/models/customer/review/init.js +0 -1
- package/build/models/customer/review/settings/index.d.ts +0 -4
- package/build/models/customer/review/summary/index.d.ts +0 -8
- package/build/models/customer/review/summary/star/index.d.ts +0 -4
- package/build/models/customer-settings/index.d.ts +0 -7
- package/build/models/district/index.d.ts +0 -10
- package/build/models/favorite-product/index.d.ts +0 -5
- package/build/models/filter-category/index.d.ts +0 -8
- package/build/models/html-meta-data/index.d.ts +0 -25
- package/build/models/html-meta-data/index.js +0 -1
- package/build/models/html-meta-data/init.d.ts +0 -3
- package/build/models/html-meta-data/init.js +0 -1
- package/build/models/html-meta-data/translations/index.d.ts +0 -5
- package/build/models/image/index.d.ts +0 -4
- package/build/models/last-viewed-product/index.d.ts +0 -4
- package/build/models/merchant-settings/address/city/index.d.ts +0 -5
- package/build/models/merchant-settings/address/country/index.d.ts +0 -7
- package/build/models/merchant-settings/address/district/index.d.ts +0 -5
- package/build/models/merchant-settings/address/index.d.ts +0 -21
- package/build/models/merchant-settings/address/state/index.d.ts +0 -5
- package/build/models/merchant-settings/address/type/index.d.ts +0 -4
- package/build/models/merchant-settings/address/type/index.js +0 -1
- package/build/models/merchant-settings/index.d.ts +0 -24
- package/build/models/merchant-settings/index.js +0 -1
- package/build/models/merchant-settings/init.d.ts +0 -2
- package/build/models/merchant-settings/init.js +0 -1
- package/build/models/order/address/city/index.d.ts +0 -5
- package/build/models/order/address/country/index.d.ts +0 -7
- package/build/models/order/address/district/index.d.ts +0 -5
- package/build/models/order/address/index.d.ts +0 -22
- package/build/models/order/address/state/index.d.ts +0 -5
- package/build/models/order/adjustment/applied-order-line/index.d.ts +0 -6
- package/build/models/order/adjustment/index.d.ts +0 -21
- package/build/models/order/adjustment/index.js +0 -1
- package/build/models/order/customer/index.d.ts +0 -9
- package/build/models/order/gift-line/index.d.ts +0 -4
- package/build/models/order/index.d.ts +0 -86
- package/build/models/order/index.js +0 -1
- package/build/models/order/invoice/index.d.ts +0 -14
- package/build/models/order/invoice/index.js +0 -1
- package/build/models/order/line-item/base-unit/index.d.ts +0 -20
- package/build/models/order/line-item/base-unit/index.js +0 -1
- package/build/models/order/line-item/base-unit/unit-type/index.d.ts +0 -4
- package/build/models/order/line-item/discount/index.d.ts +0 -9
- package/build/models/order/line-item/index.d.ts +0 -35
- package/build/models/order/line-item/index.js +0 -1
- package/build/models/order/line-item/option/index.d.ts +0 -9
- package/build/models/order/line-item/option/value/index.d.ts +0 -5
- package/build/models/order/line-item/variant/brand/index.d.ts +0 -4
- package/build/models/order/line-item/variant/category/index.d.ts +0 -9
- package/build/models/order/line-item/variant/index.d.ts +0 -27
- package/build/models/order/line-item/variant/price/index.d.ts +0 -8
- package/build/models/order/line-item/variant/unit/index.d.ts +0 -5
- package/build/models/order/line-item/variant/value/index.d.ts +0 -7
- package/build/models/order/package/index.d.ts +0 -26
- package/build/models/order/package/index.js +0 -1
- package/build/models/order/package/tracking-info/index.d.ts +0 -7
- package/build/models/order/payment-method/index.d.ts +0 -8
- package/build/models/order/refund/index.d.ts +0 -5
- package/build/models/order/refund/line-item/index.d.ts +0 -4
- package/build/models/order/refund/settings/index.d.ts +0 -5
- package/build/models/order/shipping-line/index.d.ts +0 -11
- package/build/models/order/tax-line/index.d.ts +0 -4
- package/build/models/order/transaction/error/index.d.ts +0 -5
- package/build/models/order/transaction/index.d.ts +0 -34
- package/build/models/order/transaction/index.js +0 -1
- package/build/models/order/transaction/payment-method-detail/index.d.ts +0 -22
- package/build/models/order/transaction/payment-method-detail/index.js +0 -1
- package/build/models/order/transaction/payment-method-detail/installment-price/index.d.ts +0 -7
- package/build/models/payment-gateway/additional-price/index.d.ts +0 -14
- package/build/models/payment-gateway/additional-price/index.js +0 -1
- package/build/models/payment-gateway/index.d.ts +0 -42
- package/build/models/payment-gateway/index.js +0 -1
- package/build/models/payment-gateway/init.d.ts +0 -2
- package/build/models/payment-gateway/init.js +0 -1
- package/build/models/payment-gateway/settings/index.d.ts +0 -11
- package/build/models/payment-gateway/settings/index.js +0 -1
- package/build/models/payment-gateway/translation/index.d.ts +0 -5
- package/build/models/product/attribute/index.d.ts +0 -24
- package/build/models/product/attribute/index.js +0 -1
- package/build/models/product/attribute/init.d.ts +0 -2
- package/build/models/product/attribute/init.js +0 -1
- package/build/models/product/attribute/option/index.d.ts +0 -4
- package/build/models/product/attribute/table-cell/index.d.ts +0 -4
- package/build/models/product/attribute/table-template/index.d.ts +0 -5
- package/build/models/product/attribute/translation/index.d.ts +0 -10
- package/build/models/product/attribute-value/index.d.ts +0 -21
- package/build/models/product/attribute-value/init.d.ts +0 -2
- package/build/models/product/attribute-value/init.js +0 -1
- package/build/models/product/back-in-stock-settings/index.d.ts +0 -3
- package/build/models/product/base-unit/index.d.ts +0 -10
- package/build/models/product/campaign/data/index.d.ts +0 -39
- package/build/models/product/campaign/data/index.js +0 -1
- package/build/models/product/campaign/filter/index.d.ts +0 -11
- package/build/models/product/campaign/filter/index.js +0 -1
- package/build/models/product/campaign/index.d.ts +0 -5
- package/build/models/product/campaign/product-buyx-then-gety/index.d.ts +0 -16
- package/build/models/product/campaign/product-campaign-date-range-field/index.d.ts +0 -4
- package/build/models/product/campaign/product-fixed-discount/index.d.ts +0 -11
- package/build/models/product/filter/index.d.ts +0 -83
- package/build/models/product/filter/index.js +0 -1
- package/build/models/product/image/index.d.ts +0 -8
- package/build/models/product/image/init.d.ts +0 -2
- package/build/models/product/image/init.js +0 -1
- package/build/models/product/index.d.ts +0 -41
- package/build/models/product/index.js +0 -1
- package/build/models/product/init.d.ts +0 -2
- package/build/models/product/init.js +0 -1
- package/build/models/product/option-set/index.d.ts +0 -21
- package/build/models/product/option-set/init.d.ts +0 -6
- package/build/models/product/option-set/init.js +0 -1
- package/build/models/product/option-set/option/index.d.ts +0 -70
- package/build/models/product/option-set/option/index.js +0 -1
- package/build/models/product/option-set/option/init.d.ts +0 -2
- package/build/models/product/option-set/option/init.js +0 -1
- package/build/models/product/tag/index.d.ts +0 -4
- package/build/models/product/variant/index.d.ts +0 -21
- package/build/models/product/variant/init.d.ts +0 -2
- package/build/models/product/variant/init.js +0 -1
- package/build/models/product/variant/price/index.d.ts +0 -9
- package/build/models/product/variant/unit/index.d.ts +0 -5
- package/build/models/product/variant-type/index.d.ts +0 -6
- package/build/models/product/variant-type/init.d.ts +0 -2
- package/build/models/product/variant-type/init.js +0 -1
- package/build/models/product-option-file/index.d.ts +0 -5
- package/build/models/raffle/index.d.ts +0 -68
- package/build/models/raffle/index.js +0 -1
- package/build/models/raffle/init.d.ts +0 -2
- package/build/models/raffle/init.js +0 -1
- package/build/models/sales-channel/index.d.ts +0 -15
- package/build/models/state/index.d.ts +0 -6
- package/build/models/stock-location/address/city/index.d.ts +0 -5
- package/build/models/stock-location/address/country/index.d.ts +0 -5
- package/build/models/stock-location/address/district/index.d.ts +0 -5
- package/build/models/stock-location/address/index.d.ts +0 -13
- package/build/models/stock-location/address/state/index.d.ts +0 -5
- package/build/models/stock-location/available/index.d.ts +0 -8
- package/build/models/stock-location/index.d.ts +0 -23
- package/build/models/stock-location/index.js +0 -1
- package/build/models/storefront/domain/index.d.ts +0 -7
- package/build/models/storefront/index.d.ts +0 -30
- package/build/models/storefront/index.js +0 -1
- package/build/models/storefront/localization/index.d.ts +0 -6
- package/build/models/storefront/meta-templates/index.d.ts +0 -14
- package/build/models/storefront/meta-templates/index.js +0 -1
- package/build/models/storefront/routing/dynamic-currency/index.d.ts +0 -4
- package/build/models/storefront/routing/index.d.ts +0 -12
- package/build/models/storefront/theme/index.d.ts +0 -12
- package/build/models/storefront/theme/index.js +0 -1
- package/build/models/storefront/theme-localization/index.d.ts +0 -13
- package/build/models/theme-json/component/index.d.ts +0 -18
- package/build/models/theme-json/component/prop/index.d.ts +0 -61
- package/build/models/theme-json/component/prop/index.js +0 -1
- package/build/models/theme-json/custom-data/index.d.ts +0 -37
- package/build/models/theme-json/index.d.ts +0 -11
- package/build/models/theme-json/page/component/index.d.ts +0 -5
- package/build/models/theme-json/page/index.d.ts +0 -43
- package/build/models/theme-json/page/index.js +0 -1
- package/build/models/theme-json/settings/color/index.d.ts +0 -12
- package/build/models/theme-json/settings/favicon/index.d.ts +0 -3
- package/build/models/theme-json/settings/font-family/index.d.ts +0 -4
- package/build/models/theme-json/settings/index.d.ts +0 -14
- package/build/models/theme-json/settings/index.js +0 -1
- package/build/models/variant-type/index.d.ts +0 -21
- package/build/models/variant-type/index.js +0 -1
- package/build/models/variant-type/init.d.ts +0 -2
- package/build/models/variant-type/init.js +0 -1
- package/build/models/variant-type/variant-value/index.d.ts +0 -9
- package/build/models/variant-type/variant-value/init.d.ts +0 -2
- package/build/models/variant-type/variant-value/init.js +0 -1
- package/build-cjs/models/category/path-item/init.d.ts +0 -2
- package/build-cjs/models/category/path-item/init.js +0 -1
- package/build-cjs/models/category/path-item/init.js.map +0 -1
- package/build-cjs/models/country/init.d.ts +0 -2
- package/build-cjs/models/country/init.js +0 -1
- package/build-cjs/models/country/init.js.map +0 -1
- package/build-cjs/models/country/location-translations/index.d.ts +0 -5
- package/build-cjs/models/customer-settings/index.d.ts +0 -7
- package/build-cjs/models/merchant-settings/address/city/index.d.ts +0 -5
- package/build-cjs/models/merchant-settings/address/country/index.d.ts +0 -7
- package/build-cjs/models/merchant-settings/address/district/index.d.ts +0 -5
- package/build-cjs/models/merchant-settings/address/index.d.ts +0 -21
- package/build-cjs/models/merchant-settings/address/state/index.d.ts +0 -5
- package/build-cjs/models/merchant-settings/address/type/index.d.ts +0 -4
- package/build-cjs/models/merchant-settings/address/type/index.js +0 -1
- package/build-cjs/models/merchant-settings/address/type/index.js.map +0 -1
- package/build-cjs/models/order/line-item/base-unit/index.d.ts +0 -20
- package/build-cjs/models/order/line-item/base-unit/index.js +0 -1
- package/build-cjs/models/order/line-item/base-unit/index.js.map +0 -1
- package/build-cjs/models/order/line-item/base-unit/unit-type/index.d.ts +0 -4
- package/build-cjs/models/order/line-item/variant/unit/index.d.ts +0 -5
- package/build-cjs/models/product/base-unit/index.d.ts +0 -10
- package/build-cjs/models/product/variant/unit/index.d.ts +0 -5
- package/build-cjs/models/product-option-file/index.d.ts +0 -5
- package/build-cjs/models/storefront/meta-templates/index.d.ts +0 -14
- package/build-cjs/models/storefront/meta-templates/index.js +0 -1
|
@@ -36,7 +36,6 @@ export declare type IkasProductFilterSettings = {
|
|
|
36
36
|
showCollapsedOnDesktop: boolean;
|
|
37
37
|
showCollapsedOnMobile: boolean;
|
|
38
38
|
sortType: IkasProductFilterSortType;
|
|
39
|
-
customSortedValues: string[] | null;
|
|
40
39
|
};
|
|
41
40
|
export declare type IkasProductFacetInput = {
|
|
42
41
|
id: string;
|
|
@@ -64,8 +63,7 @@ export declare enum IkasProductFilterSortType {
|
|
|
64
63
|
ALPHABETICAL_ASC = "ALPHABETICAL_ASC",
|
|
65
64
|
ALPHABETICAL_DESC = "ALPHABETICAL_DESC",
|
|
66
65
|
PRODUCT_COUNT_ASC = "PRODUCT_COUNT_ASC",
|
|
67
|
-
PRODUCT_COUNT_DESC = "PRODUCT_COUNT_DESC"
|
|
68
|
-
CUSTOM_SORT = "CUSTOM_SORT"
|
|
66
|
+
PRODUCT_COUNT_DESC = "PRODUCT_COUNT_DESC"
|
|
69
67
|
}
|
|
70
68
|
export declare enum IkasProductStockFilterValue {
|
|
71
69
|
IN_STOCK = "in-stock",
|
|
@@ -1 +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",
|
|
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
|
|
@@ -1 +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
|
|
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"}
|
|
@@ -7,7 +7,6 @@ import { IkasHTMLMetaData } from "../html-meta-data";
|
|
|
7
7
|
import { IkasProductTag } from "./tag";
|
|
8
8
|
import { IkasVariantValue } from "../variant-type/variant-value";
|
|
9
9
|
import { IkasVariantType } from "../variant-type";
|
|
10
|
-
import { IkasProductBaseUnit } from "./base-unit";
|
|
11
10
|
export declare type IkasProduct = {
|
|
12
11
|
id: string;
|
|
13
12
|
name: string;
|
|
@@ -22,7 +21,6 @@ export declare type IkasProduct = {
|
|
|
22
21
|
attributes: IkasProductAttributeValue[];
|
|
23
22
|
variantTypes: IkasProductVariantType[];
|
|
24
23
|
productOptionSetId: string | null;
|
|
25
|
-
baseUnit: IkasProductBaseUnit | null;
|
|
26
24
|
};
|
|
27
25
|
export declare enum IkasProductType {
|
|
28
26
|
PHYSICAL = "PHYSICAL",
|
|
@@ -1 +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\";\
|
|
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"}
|
|
@@ -1 +1,2 @@
|
|
|
1
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
|
|
@@ -1 +1,2 @@
|
|
|
1
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
|
|
@@ -1 +1,2 @@
|
|
|
1
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
|
|
@@ -1 +1,2 @@
|
|
|
1
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
|
|
@@ -3,7 +3,6 @@ import { IkasVariantValue } from "../../variant-type/variant-value";
|
|
|
3
3
|
import { IkasProductAttributeValue } from "../attribute-value";
|
|
4
4
|
import { IkasProductCampaign } from "../campaign";
|
|
5
5
|
import { IkasProductImage } from "../image";
|
|
6
|
-
import { IkasProductVariantUnit } from "./unit";
|
|
7
6
|
export declare type IkasProductVariant = {
|
|
8
7
|
id: string;
|
|
9
8
|
sku: string | null;
|
|
@@ -17,5 +16,4 @@ export declare type IkasProductVariant = {
|
|
|
17
16
|
sellIfOutOfStock: boolean;
|
|
18
17
|
images: IkasProductImage[] | null;
|
|
19
18
|
campaigns?: IkasProductCampaign[];
|
|
20
|
-
unit: IkasProductVariantUnit | null;
|
|
21
19
|
};
|
|
@@ -1 +1,2 @@
|
|
|
1
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
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.initIkasProductVariantType=function(e){var a=[];e.variantValueIds.forEach((function(t){var r=e.variantType.values.find((function(e){return e.id===t}));r&&a.push(r)})),e.variantType.values=a};
|
|
2
|
+
//# sourceMappingURL=init.js.map
|
|
@@ -15,11 +15,13 @@ export declare type IkasRaffle = {
|
|
|
15
15
|
dateRange: IkasRaffleDateRangeField | null;
|
|
16
16
|
metadata: IkasRaffleMetaData | null;
|
|
17
17
|
name: string;
|
|
18
|
+
participantCount?: number | null;
|
|
18
19
|
requiredCustomerAccount: boolean;
|
|
19
20
|
status: boolean;
|
|
20
21
|
variants: IkasRaffleAppliedProduct[] | null;
|
|
21
22
|
products: IkasProduct[];
|
|
22
23
|
verificationType: IkasRaffleVerificationType;
|
|
24
|
+
isCustomerWinner: boolean | null;
|
|
23
25
|
};
|
|
24
26
|
export declare enum IkasRaffleMetadataTargetType {
|
|
25
27
|
RAFFLE = "RAFFLE"
|
|
@@ -50,9 +52,7 @@ export declare type IkasRaffleParticipant = {
|
|
|
50
52
|
email: string;
|
|
51
53
|
applicationDate: number;
|
|
52
54
|
phone: string | null;
|
|
53
|
-
|
|
54
|
-
raffle: IkasRaffle | null;
|
|
55
|
-
status: IkasRaffleParticipantStatus | null;
|
|
55
|
+
isWinner: boolean | null;
|
|
56
56
|
extraData: Record<string, any> | null;
|
|
57
57
|
appliedProduct: IkasRaffleAppliedProduct;
|
|
58
58
|
};
|
|
@@ -60,9 +60,3 @@ export declare type IkasRaffleAppliedProduct = {
|
|
|
60
60
|
productId: string;
|
|
61
61
|
variantId: string;
|
|
62
62
|
};
|
|
63
|
-
export declare enum IkasRaffleParticipantStatus {
|
|
64
|
-
COMPLETED = "COMPLETED",
|
|
65
|
-
IN_PROGRESS = "IN_PROGRESS",
|
|
66
|
-
LOSER = "LOSER",
|
|
67
|
-
WINNER = "WINNER"
|
|
68
|
-
}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var e;Object.defineProperty(exports,"__esModule",{value:!0}),exports.IkasRaffleVerificationType=void 0,(e=exports.IkasRaffleVerificationType||(exports.IkasRaffleVerificationType={})).EMAIL="EMAIL",e.MERSIS="MERSIS",exports.IkasRaffleMetadataTargetType=void 0,(exports.IkasRaffleMetadataTargetType||(exports.IkasRaffleMetadataTargetType={})).RAFFLE="RAFFLE";
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +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
|
|
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 participantCount?: number | null;\n requiredCustomerAccount: boolean;\n status: boolean;\n variants: IkasRaffleAppliedProduct[] | null;\n products: IkasProduct[];\n verificationType: IkasRaffleVerificationType;\n isCustomerWinner: boolean | null;\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 isWinner: boolean | null;\n\n extraData: Record<string, any> | null;\n appliedProduct: IkasRaffleAppliedProduct;\n};\n\nexport type IkasRaffleAppliedProduct = {\n productId: string;\n variantId: string;\n};\n"],"names":["IkasRaffleVerificationType","IkasRaffleMetadataTargetType"],"mappings":"aAOA,IAAYA,yDAAAA,QAGXA,gCAAA,GAHWA,EAAAA,qCAAAA,QAAAA,2BAGX,KAFC,MAAA,QACAA,EAAA,OAAA,SAoBUC,QAEXA,kCAAA,GAFWA,QAA4BA,+BAA5BA,qCAEX,KADC,OAAA"}
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
"use strict";var I,_;Object.defineProperty(exports,"__esModule",{value:!0}),exports.IkasStockLocationDeliveryTime=void 0,(I=exports.IkasStockLocationDeliveryTime||(exports.IkasStockLocationDeliveryTime={})).TWO_IN_FOUR_DAYS="TWO_IN_FOUR_DAYS",I.WITHIN_FOUR_HOURS="WITHIN_FOUR_HOURS",I.WITHIN_ONE_HOUR="WITHIN_ONE_HOUR",I.WITHIN_PLUS_FIVE_DAYS="WITHIN_PLUS_FIVE_DAYS",I.WITHIN_TWENTY_FOUR_HOURS="WITHIN_TWENTY_FOUR_HOURS",I.WITHIN_TWO_HOURS="WITHIN_TWO_HOURS",exports.IkasStockLocationType=void 0,(_=exports.IkasStockLocationType||(exports.IkasStockLocationType={})).PHYSICAL="PHYSICAL",_.VIRTUAL="VIRTUAL";
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -2,7 +2,6 @@ import { IkasStorefrontLocalization } from "./localization";
|
|
|
2
2
|
import { IkasStorefrontDomain } from "./domain";
|
|
3
3
|
import { IkasStorefrontRouting } from "./routing";
|
|
4
4
|
import { IkasStorefrontTheme } from "./theme";
|
|
5
|
-
import { IkasStorefontMetaTemplates } from "./meta-templates";
|
|
6
5
|
export declare enum IkasStorefrontStatus {
|
|
7
6
|
WAITING = "WAITING",
|
|
8
7
|
READY = "READY"
|
|
@@ -20,9 +19,6 @@ export declare type IkasStorefront = {
|
|
|
20
19
|
analytics4Id: string | null;
|
|
21
20
|
universalAnalyticsId: string | null;
|
|
22
21
|
tiktokPixelId: string | null;
|
|
23
|
-
token: string | null;
|
|
24
|
-
metaTemplates: IkasStorefontMetaTemplates[] | null;
|
|
25
|
-
robotsTxt: string | null;
|
|
26
22
|
localizations: IkasStorefrontLocalization[];
|
|
27
23
|
routings: IkasStorefrontRouting[];
|
|
28
24
|
domains: IkasStorefrontDomain[];
|
|
@@ -1 +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\";\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
|
|
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\";\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\n localizations: IkasStorefrontLocalization[];\n routings: IkasStorefrontRouting[];\n domains: IkasStorefrontDomain[];\n themes: IkasStorefrontTheme[];\n};\n"],"names":["IkasStorefrontStatus"],"mappings":"aAKA,IAAYA,yDAAAA,QAGXA,0BAAA,GAHWA,EAAAA,QAAoBA,uBAApBA,6BAGX,KAFC,QAAA,UACAA,EAAA,MAAA"}
|
|
@@ -2,15 +2,14 @@ import { IkasThemeJsonComponentProp } from "./prop";
|
|
|
2
2
|
export declare type IkasThemeJsonComponent = {
|
|
3
3
|
id: string;
|
|
4
4
|
dir: string;
|
|
5
|
-
displayName
|
|
6
|
-
description
|
|
5
|
+
displayName: string;
|
|
6
|
+
description: string;
|
|
7
7
|
props: IkasThemeJsonComponentProp[];
|
|
8
8
|
isHeader: boolean;
|
|
9
9
|
isFooter: boolean;
|
|
10
|
-
translations
|
|
10
|
+
translations: {
|
|
11
11
|
[locale: string]: IkasThemeJsonComponentTranslation;
|
|
12
12
|
};
|
|
13
|
-
defaultPropValues?: Record<string, any>;
|
|
14
13
|
};
|
|
15
14
|
export declare type IkasThemeJsonComponentTranslation = {
|
|
16
15
|
displayName: string | null;
|
|
@@ -2,18 +2,17 @@ import { IkasProductAttributeType } from "../../../..";
|
|
|
2
2
|
export declare type IkasThemeJsonComponentProp = {
|
|
3
3
|
id: string;
|
|
4
4
|
name: string;
|
|
5
|
-
displayName
|
|
6
|
-
description
|
|
5
|
+
displayName: string;
|
|
6
|
+
description: string;
|
|
7
7
|
type: IkasThemeJsonComponentPropType;
|
|
8
8
|
isRequired: boolean;
|
|
9
9
|
customDataId?: string | null;
|
|
10
|
-
groupId?: string;
|
|
11
10
|
requiredPropId?: string;
|
|
12
11
|
requiredEnumOptionId?: string;
|
|
13
12
|
requiredEnumOptionValue?: string;
|
|
14
13
|
attributeTypes?: IkasProductAttributeType[] | null;
|
|
15
14
|
sliderData: IkasThemeJsonSliderData;
|
|
16
|
-
translations
|
|
15
|
+
translations: {
|
|
17
16
|
[locale: string]: IkasPropTranslation;
|
|
18
17
|
};
|
|
19
18
|
};
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
"use strict";var T;Object.defineProperty(exports,"__esModule",{value:!0}),exports.IkasThemeJsonComponentPropType=void 0,(T=exports.IkasThemeJsonComponentPropType||(exports.IkasThemeJsonComponentPropType={})).TEXT="TEXT",T.RICH_TEXT="RICH_TEXT",T.BOOLEAN="BOOLEAN",T.IMAGE="IMAGE",T.IMAGE_LIST="IMAGE_LIST",T.LINK="LINK",T.LIST_OF_LINK="LIST_OF_LINK",T.PRODUCT_DETAIL="PRODUCT_DETAIL",T.PRODUCT_LIST="PRODUCT_LIST",T.PRODUCT_ATTRIBUTE="PRODUCT_ATTRIBUTE",T.PRODUCT_ATTRIBUTE_LIST="PRODUCT_ATTRIBUTE_LIST",T.BRAND="BRAND",T.BRAND_LIST="BRAND_LIST",T.CATEGORY="CATEGORY",T.CATEGORY_LIST="CATEGORY_LIST",T.COLOR="COLOR",T.CUSTOM="CUSTOM",T.COMPONENT="COMPONENT",T.COMPONENT_LIST="COMPONENT_LIST",T.BLOG="BLOG",T.BLOG_LIST="BLOG_LIST",T.BLOG_CATEGORY="BLOG_CATEGORY",T.BLOG_CATEGORY_LIST="BLOG_CATEGORY_LIST",T.RAFFLE="RAFFLE",T.RAFFLE_LIST="RAFFLE_LIST",T.SLIDER="SLIDER",T.OBJECT="OBJECT",T.STATIC_LIST="STATIC_LIST",T.DYNAMIC_LIST="DYNAMIC_LIST",T.ENUM="ENUM";
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
"use strict";var R;Object.defineProperty(exports,"__esModule",{value:!0}),exports.IkasThemeJsonPageType=void 0,(R=exports.IkasThemeJsonPageType||(exports.IkasThemeJsonPageType={})).INDEX="INDEX",R.CATEGORY="CATEGORY",R.BRAND="BRAND",R.PRODUCT="PRODUCT",R.CUSTOM="CUSTOM",R.ACCOUNT="ACCOUNT",R.ADDRESSES="ADDRESSES",R.ORDERS="ORDERS",R.ORDER_DETAIL="ORDER_DETAIL",R.LOGIN="LOGIN",R.REGISTER="REGISTER",R.FORGOT_PASSWORD="FORGOT_PASSWORD",R.RECOVER_PASSWORD="RECOVER_PASSWORD",R.CART="CART",R.FAVORITE_PRODUCTS="FAVORITE_PRODUCTS",R.SEARCH="SEARCH",R.NOT_FOUND="NOT_FOUND",R.BLOG="BLOG",R.BLOG_INDEX="BLOG_INDEX",R.BLOG_CATEGORY="BLOG_CATEGORY",R.CHECKOUT="CHECKOUT",R.RAFFLE="RAFFLE",R.RAFFLE_DETAIL="RAFFLE_DETAIL",R.RAFFLE_ACCOUNT="RAFFLE_ACCOUNT";
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
"use strict";var e;Object.defineProperty(exports,"__esModule",{value:!0}),exports.IkasThemeJsonStockPreference=void 0,(e=exports.IkasThemeJsonStockPreference||(exports.IkasThemeJsonStockPreference={})).HIDE_OUT_OF_STOCK="HIDE_OUT_OF_STOCK",e.SHOW_ALL="SHOW_ALL",e.SHOW_OUT_OF_STOCK_AT_END="SHOW_OUT_OF_STOCK_AT_END";
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=require("./variant-value/init.js");exports.initIkasVariantType=function(a,e){a.values.forEach((function(e){e.variantTypeId=a.id,n.initIkasVariantValue(e)})),a.translations&&e&&(!function(n,a,e){if(a&&a.some((function(n){return n.locale===e}))){var i=a.find((function(n){return n.locale===e}));(null==i?void 0:i.name)&&(n.name=i.name),(null==i?void 0:i.values)&&n.values.forEach((function(n){var a,e=null===(a=i.values)||void 0===a?void 0:a.find((function(a){return a.id===n.id}));e&&e.name&&(n.name=e.name)}))}}(a,a.translations,e),delete a.translations)};
|
|
2
|
+
//# sourceMappingURL=init.js.map
|
package/package.json
CHANGED
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ikas/storefront-models",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.8",
|
|
4
4
|
"author": "Umut Ozan Yıldırım",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"description": "Data models to be used in an ikas storefront application.",
|
|
7
7
|
"main": "./build-cjs/index.js",
|
|
8
|
-
"module": "./
|
|
8
|
+
"module": "./src/index.ts",
|
|
9
9
|
"files": [
|
|
10
|
-
"./
|
|
10
|
+
"./src",
|
|
11
11
|
"./build-cjs"
|
|
12
12
|
],
|
|
13
|
-
"exports": {
|
|
14
|
-
".": {
|
|
15
|
-
"require": "./build-cjs/index.js",
|
|
16
|
-
"import": "./build/index.js"
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
13
|
"scripts": {
|
|
20
14
|
"pack": "npm pack",
|
|
21
15
|
"release": "npm publish",
|