@ikas/storefront-models 4.0.0-alpha.49 → 4.0.0-alpha.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -5
- package/{build/index.d.ts → src/index.ts} +229 -170
- 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 +37 -0
- package/src/models/category/path-item/index.ts +11 -0
- package/src/models/category/path-item/init.ts +25 -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 +5 -0
- package/src/models/city/index.ts +11 -0
- package/src/models/contact-form/index.ts +7 -0
- package/src/models/country/index.ts +17 -0
- package/src/models/country/init.ts +16 -0
- package/src/models/country/location-translations/index.ts +5 -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.ts +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/address/city/index.ts +5 -0
- package/src/models/merchant-settings/address/country/index.ts +7 -0
- package/src/models/merchant-settings/address/district/index.ts +5 -0
- package/src/models/merchant-settings/address/index.ts +22 -0
- package/src/models/merchant-settings/address/state/index.ts +5 -0
- package/src/models/merchant-settings/address/type/index.ts +4 -0
- package/src/models/merchant-settings/index.ts +28 -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 +92 -0
- package/src/models/order/invoice/index.ts +15 -0
- package/src/models/order/line-item/base-unit/index.ts +22 -0
- package/src/models/order/line-item/base-unit/unit-type/index.ts +4 -0
- package/src/models/order/line-item/discount/index.ts +10 -0
- package/src/models/order/line-item/index.ts +37 -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 +30 -0
- package/src/models/order/line-item/variant/price/index.ts +8 -0
- package/src/models/order/line-item/variant/unit/index.ts +6 -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 +37 -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 +26 -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/base-unit/index.ts +12 -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 +98 -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 +45 -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 +22 -0
- package/src/models/product/variant/init.ts +10 -0
- package/src/models/product/variant/price/index.ts +9 -0
- package/src/models/product/variant/unit/index.ts +6 -0
- package/src/models/product/variant-type/index.ts +7 -0
- package/src/models/product/variant-type/init.ts +15 -0
- package/src/models/product-option-file/index.ts +5 -0
- package/src/models/raffle/index.ts +77 -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 +31 -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 +13 -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/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 -27
- package/build/models/storefront/index.js +0 -1
- package/build/models/storefront/localization/index.d.ts +0 -6
- 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 -11
- package/build/models/theme-json/component/index.d.ts +0 -17
- package/build/models/theme-json/component/prop/index.d.ts +0 -60
- 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
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { IkasProductOption } from "./option";
|
|
2
|
+
|
|
3
|
+
export type IkasProductOptionSelectValueTranslations = {
|
|
4
|
+
id: string;
|
|
5
|
+
value: string | null;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export type IkasProductOptionTranslations = {
|
|
9
|
+
id: string;
|
|
10
|
+
name: string | null;
|
|
11
|
+
optionalText: string | null;
|
|
12
|
+
values: IkasProductOptionSelectValueTranslations[] | null;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export type IkasProductOptionSetTranslations = {
|
|
16
|
+
locale: string;
|
|
17
|
+
options: IkasProductOptionTranslations[] | null;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export type IkasProductOptionSet = {
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
options: IkasProductOption[];
|
|
24
|
+
translations?: IkasProductOptionSetTranslations[] | null;
|
|
25
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { IkasProductOptionSet, IkasProductOptionSetTranslations } from ".";
|
|
2
|
+
import { IkasProductOption, IkasProductOptionType } from "./option";
|
|
3
|
+
import { initIkasProductOption } from "./option/init";
|
|
4
|
+
|
|
5
|
+
export function initIkasProductOptionSet(
|
|
6
|
+
optionSet: IkasProductOptionSet,
|
|
7
|
+
locale: string | null
|
|
8
|
+
) {
|
|
9
|
+
optionSet.options.forEach((option) => {
|
|
10
|
+
option.productOptionSetId = optionSet.id;
|
|
11
|
+
initIkasProductOption(option);
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
if (optionSet.translations && locale) {
|
|
15
|
+
setTranslations(optionSet, optionSet.translations, locale);
|
|
16
|
+
delete optionSet.translations;
|
|
17
|
+
}
|
|
18
|
+
setChildOptions(optionSet);
|
|
19
|
+
initOptionValues(optionSet);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function setTranslations(
|
|
23
|
+
optionSet: IkasProductOptionSet,
|
|
24
|
+
translations: IkasProductOptionSetTranslations[],
|
|
25
|
+
locale: string
|
|
26
|
+
) {
|
|
27
|
+
if (translations && translations.some((t) => t.locale === locale)) {
|
|
28
|
+
const localeTranslations = translations.find((t) => t.locale === locale);
|
|
29
|
+
|
|
30
|
+
localeTranslations?.options?.forEach((translatedOption) => {
|
|
31
|
+
const option = optionSet.options.find(
|
|
32
|
+
(o) => o.id === translatedOption.id
|
|
33
|
+
);
|
|
34
|
+
|
|
35
|
+
if (option) {
|
|
36
|
+
option.name = translatedOption.name || option.name;
|
|
37
|
+
option.optionalText =
|
|
38
|
+
translatedOption.optionalText || option.optionalText;
|
|
39
|
+
|
|
40
|
+
if (option.type === IkasProductOptionType.CHOICE) {
|
|
41
|
+
translatedOption.values?.forEach((translatedValue) => {
|
|
42
|
+
const selectValue = option.selectSettings?.values.find(
|
|
43
|
+
(sv) => sv.id === translatedValue.id
|
|
44
|
+
);
|
|
45
|
+
if (selectValue) {
|
|
46
|
+
selectValue.value = translatedValue.value || selectValue.value;
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function setChildOptions(optionSet: IkasProductOptionSet) {
|
|
56
|
+
optionSet.options.forEach((option) => {
|
|
57
|
+
const childOptions = optionSet.options.filter(
|
|
58
|
+
(o) => o.requiredOptionId === option.id
|
|
59
|
+
);
|
|
60
|
+
if (childOptions.length) {
|
|
61
|
+
option.childOptions = childOptions;
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function initOptionValues(optionSet: IkasProductOptionSet) {
|
|
67
|
+
optionSet.options.forEach((o) => initValues(o));
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function initValues(option: IkasProductOption) {
|
|
71
|
+
if (!option.isOptional) {
|
|
72
|
+
option.values = [];
|
|
73
|
+
if (option.childOptions) {
|
|
74
|
+
option.childOptions.forEach((co) => initValues(co));
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { IkasImage } from "../../../image";
|
|
2
|
+
|
|
3
|
+
export enum IkasProductOptionSelectType {
|
|
4
|
+
BOX = "BOX",
|
|
5
|
+
SELECT = "SELECT",
|
|
6
|
+
SWATCH = "SWATCH",
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export enum IkasProductOptionType {
|
|
10
|
+
CHECKBOX = "CHECKBOX",
|
|
11
|
+
CHOICE = "CHOICE",
|
|
12
|
+
COLOR_PICKER = "COLOR_PICKER",
|
|
13
|
+
DATE_PICKER = "DATE_PICKER",
|
|
14
|
+
FILE = "FILE",
|
|
15
|
+
IMAGE = "IMAGE",
|
|
16
|
+
TEXT = "TEXT",
|
|
17
|
+
TEXT_AREA = "TEXT_AREA",
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export type IkasProductOptionOtherPrice = {
|
|
21
|
+
currencyCode: string;
|
|
22
|
+
price: number;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export type IkasProductOptionSelectValue = {
|
|
26
|
+
id: string;
|
|
27
|
+
order: number;
|
|
28
|
+
value: string;
|
|
29
|
+
price: number | null;
|
|
30
|
+
otherPrices: IkasProductOptionOtherPrice[] | null;
|
|
31
|
+
thumbnailImageId: string | null;
|
|
32
|
+
colorCode: string | null;
|
|
33
|
+
thumbnailImage: IkasImage | null;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export type IkasProductOptionSelectSettings = {
|
|
37
|
+
type: IkasProductOptionSelectType;
|
|
38
|
+
minSelect: number | null;
|
|
39
|
+
maxSelect: number | null;
|
|
40
|
+
values: IkasProductOptionSelectValue[];
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export type IkasProductOptionDateSettings = {
|
|
44
|
+
min: Date | null;
|
|
45
|
+
max: Date | null;
|
|
46
|
+
minRelativeNextDate: number | null;
|
|
47
|
+
maxRelativeNextDate: number | null;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export type IkasProductOptionTextSettings = {
|
|
51
|
+
min: number | null;
|
|
52
|
+
max: number | null;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export type IkasProductOptionFileSettings = {
|
|
56
|
+
allowedExtensions: string[] | null;
|
|
57
|
+
minQuantity: number | null;
|
|
58
|
+
maxQuantity: number | null;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
export type IkasProductOption = {
|
|
62
|
+
id: string;
|
|
63
|
+
productOptionSetId: string;
|
|
64
|
+
name: string;
|
|
65
|
+
order: number;
|
|
66
|
+
type: IkasProductOptionType;
|
|
67
|
+
selectSettings: IkasProductOptionSelectSettings | null;
|
|
68
|
+
textSettings: IkasProductOptionTextSettings | null;
|
|
69
|
+
fileSettings: IkasProductOptionFileSettings | null;
|
|
70
|
+
dateSettings: IkasProductOptionDateSettings | null;
|
|
71
|
+
price: number | null;
|
|
72
|
+
otherPrices: IkasProductOptionOtherPrice[] | null;
|
|
73
|
+
isOptional: boolean;
|
|
74
|
+
optionalText: string | null;
|
|
75
|
+
requiredOptionId: string | null;
|
|
76
|
+
requiredOptionValueIds: string[] | null;
|
|
77
|
+
|
|
78
|
+
// Extra
|
|
79
|
+
values: string[];
|
|
80
|
+
childOptions: IkasProductOption[];
|
|
81
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IkasProductOption, IkasProductOptionSelectSettings } from ".";
|
|
2
|
+
import _sortBy from "lodash/sortBy";
|
|
3
|
+
|
|
4
|
+
export function initIkasProductOption(option: IkasProductOption) {
|
|
5
|
+
if (option.selectSettings)
|
|
6
|
+
initProductOptionSelectSettings(option.selectSettings);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
function initProductOptionSelectSettings(
|
|
10
|
+
settings: IkasProductOptionSelectSettings
|
|
11
|
+
) {
|
|
12
|
+
settings.values = _sortBy(settings.values || [], "order");
|
|
13
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
import { IkasProductVariantUnit } from "./unit";
|
|
7
|
+
|
|
8
|
+
export type IkasProductVariant = {
|
|
9
|
+
id: string;
|
|
10
|
+
sku: string | null;
|
|
11
|
+
barcodeList: string[] | null;
|
|
12
|
+
variantValues: IkasVariantValue[];
|
|
13
|
+
attributes: IkasProductAttributeValue[];
|
|
14
|
+
price: IkasProductPrice;
|
|
15
|
+
stock: number;
|
|
16
|
+
isActive: boolean;
|
|
17
|
+
productId: string;
|
|
18
|
+
sellIfOutOfStock: boolean;
|
|
19
|
+
images: IkasProductImage[] | null;
|
|
20
|
+
campaigns?: IkasProductCampaign[];
|
|
21
|
+
unit: IkasProductVariantUnit | null;
|
|
22
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { initIkasProductImage } from "../image/init";
|
|
2
|
+
import { initIkasProductAttributeValue } from "../attribute-value/init";
|
|
3
|
+
import _sortBy from "lodash/sortBy";
|
|
4
|
+
import { IkasProductVariant } from ".";
|
|
5
|
+
|
|
6
|
+
export function initIkasProductVariant(variant: IkasProductVariant) {
|
|
7
|
+
variant.images?.forEach(initIkasProductImage);
|
|
8
|
+
variant.images = _sortBy(variant.images, "order");
|
|
9
|
+
variant.attributes.forEach(initIkasProductAttributeValue);
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IkasProductVariantType } from ".";
|
|
2
|
+
import { IkasVariantValue } from "../../variant-type/variant-value";
|
|
3
|
+
|
|
4
|
+
export function initIkasProductVariantType(
|
|
5
|
+
variantType: IkasProductVariantType
|
|
6
|
+
) {
|
|
7
|
+
const orderedVariantValues: IkasVariantValue[] = [];
|
|
8
|
+
variantType.variantValueIds.forEach((vvId) => {
|
|
9
|
+
const variantValue = variantType.variantType.values.find(
|
|
10
|
+
(vv) => vv.id === vvId
|
|
11
|
+
);
|
|
12
|
+
if (variantValue) orderedVariantValues.push(variantValue);
|
|
13
|
+
});
|
|
14
|
+
variantType.variantType.values = orderedVariantValues;
|
|
15
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { IkasProduct } from "../product";
|
|
2
|
+
|
|
3
|
+
export type IkasRaffleDateRangeField = {
|
|
4
|
+
start: number | null;
|
|
5
|
+
end: number | null;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export enum IkasRaffleVerificationType {
|
|
9
|
+
EMAIL = "EMAIL",
|
|
10
|
+
MERSIS = "MERSIS",
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type IkasRaffle = {
|
|
14
|
+
id: string;
|
|
15
|
+
createdAt: number;
|
|
16
|
+
updatedAt: number;
|
|
17
|
+
deleted: boolean | null;
|
|
18
|
+
dateRange: IkasRaffleDateRangeField | null;
|
|
19
|
+
metadata: IkasRaffleMetaData | null;
|
|
20
|
+
name: string;
|
|
21
|
+
requiredCustomerAccount: boolean;
|
|
22
|
+
status: boolean;
|
|
23
|
+
variants: IkasRaffleAppliedProduct[] | null;
|
|
24
|
+
products: IkasProduct[];
|
|
25
|
+
verificationType: IkasRaffleVerificationType;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export enum IkasRaffleMetadataTargetType {
|
|
29
|
+
RAFFLE = "RAFFLE",
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export type IkasRaffleMetaData = {
|
|
33
|
+
id: string;
|
|
34
|
+
createdAt: number;
|
|
35
|
+
updatedAt: number;
|
|
36
|
+
deleted: boolean | null;
|
|
37
|
+
description: string | null;
|
|
38
|
+
pageTitle: string | null;
|
|
39
|
+
slug: string;
|
|
40
|
+
targetId: string | null;
|
|
41
|
+
targetType: IkasRaffleMetadataTargetType | null;
|
|
42
|
+
canonicals: string[] | null;
|
|
43
|
+
disableIndex: boolean | null;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export type IkasRaffleParticipant = {
|
|
47
|
+
id: string | null;
|
|
48
|
+
createdAt: number | null;
|
|
49
|
+
updatedAt: number | null;
|
|
50
|
+
deleted: boolean | null;
|
|
51
|
+
customerId: string | null;
|
|
52
|
+
raffleId: string;
|
|
53
|
+
firstName: string;
|
|
54
|
+
lastName: string;
|
|
55
|
+
fullName: string | null;
|
|
56
|
+
email: string;
|
|
57
|
+
applicationDate: number;
|
|
58
|
+
phone: string | null;
|
|
59
|
+
isDeliveredCargo: boolean | null;
|
|
60
|
+
|
|
61
|
+
raffle: IkasRaffle | null;
|
|
62
|
+
status: IkasRaffleParticipantStatus | null;
|
|
63
|
+
extraData: Record<string, any> | null;
|
|
64
|
+
appliedProduct: IkasRaffleAppliedProduct;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
export type IkasRaffleAppliedProduct = {
|
|
68
|
+
productId: string;
|
|
69
|
+
variantId: string;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
export enum IkasRaffleParticipantStatus {
|
|
73
|
+
COMPLETED = "COMPLETED",
|
|
74
|
+
IN_PROGRESS = "IN_PROGRESS",
|
|
75
|
+
LOSER = "LOSER",
|
|
76
|
+
WINNER = "WINNER",
|
|
77
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type IkasSalesChannel = {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
priceListId: string | null;
|
|
5
|
+
stockLocations: IkasSalesChannelStockLocation[] | null;
|
|
6
|
+
paymentGateways: IkasSalesChannelPaymentGateway[] | null;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export type IkasSalesChannelStockLocation = {
|
|
10
|
+
id: string;
|
|
11
|
+
order: number;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export type IkasSalesChannelPaymentGateway = {
|
|
15
|
+
id: string;
|
|
16
|
+
order: number;
|
|
17
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IkasStockLocationAddressCity } from "./city";
|
|
2
|
+
import { IkasStockLocationAddressCountry } from "./country";
|
|
3
|
+
import { IkasStockLocationAddressDistrict } from "./district";
|
|
4
|
+
import { IkasStockLocationAddressState } from "./state";
|
|
5
|
+
|
|
6
|
+
export type IkasStockLocationAddress = {
|
|
7
|
+
address: string | null;
|
|
8
|
+
city: IkasStockLocationAddressCity | null;
|
|
9
|
+
country: IkasStockLocationAddressCountry | null;
|
|
10
|
+
district: IkasStockLocationAddressDistrict | null;
|
|
11
|
+
phone: string | null;
|
|
12
|
+
postalCode: string | null;
|
|
13
|
+
state: IkasStockLocationAddressState | null;
|
|
14
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IkasStockLocationType } from "..";
|
|
2
|
+
import { IkasStockLocationAddress } from "../address";
|
|
3
|
+
|
|
4
|
+
export type IkasAvailableStockLocation = {
|
|
5
|
+
address: IkasStockLocationAddress | null;
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
type: IkasStockLocationType | null;
|
|
9
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { IkasStockLocationAddress } from "./address";
|
|
2
|
+
|
|
3
|
+
export type IkasStockLocation = {
|
|
4
|
+
address: IkasStockLocationAddress | null;
|
|
5
|
+
deliveryTime: IkasStockLocationDeliveryTime | null;
|
|
6
|
+
description: string | null;
|
|
7
|
+
isRemindOutOfStockEnabled: boolean | null;
|
|
8
|
+
name: string;
|
|
9
|
+
outOfStockMailList: string[] | null;
|
|
10
|
+
type: IkasStockLocationType | null;
|
|
11
|
+
id: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export enum IkasStockLocationDeliveryTime {
|
|
15
|
+
TWO_IN_FOUR_DAYS = "TWO_IN_FOUR_DAYS",
|
|
16
|
+
WITHIN_FOUR_HOURS = "WITHIN_FOUR_HOURS",
|
|
17
|
+
WITHIN_ONE_HOUR = "WITHIN_ONE_HOUR",
|
|
18
|
+
WITHIN_PLUS_FIVE_DAYS = "WITHIN_PLUS_FIVE_DAYS",
|
|
19
|
+
WITHIN_TWENTY_FOUR_HOURS = "WITHIN_TWENTY_FOUR_HOURS",
|
|
20
|
+
WITHIN_TWO_HOURS = "WITHIN_TWO_HOURS",
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export enum IkasStockLocationType {
|
|
24
|
+
PHYSICAL = "PHYSICAL",
|
|
25
|
+
VIRTUAL = "VIRTUAL",
|
|
26
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { IkasStorefrontLocalization } from "./localization";
|
|
2
|
+
import { IkasStorefrontDomain } from "./domain";
|
|
3
|
+
import { IkasStorefrontRouting } from "./routing";
|
|
4
|
+
import { IkasStorefrontTheme } from "./theme";
|
|
5
|
+
|
|
6
|
+
export enum IkasStorefrontStatus {
|
|
7
|
+
WAITING = "WAITING",
|
|
8
|
+
READY = "READY",
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export type IkasStorefront = {
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
status: IkasStorefrontStatus;
|
|
15
|
+
|
|
16
|
+
mainStorefrontThemeId: string | null;
|
|
17
|
+
pickUpStockLocationIds: string[] | null;
|
|
18
|
+
emailSettingsId: string | null;
|
|
19
|
+
salesChannelId: string | null;
|
|
20
|
+
fbpId: string | null;
|
|
21
|
+
gtmId: string | null;
|
|
22
|
+
analytics4Id: string | null;
|
|
23
|
+
universalAnalyticsId: string | null;
|
|
24
|
+
tiktokPixelId: string | null;
|
|
25
|
+
token: string | null;
|
|
26
|
+
|
|
27
|
+
localizations: IkasStorefrontLocalization[];
|
|
28
|
+
routings: IkasStorefrontRouting[];
|
|
29
|
+
domains: IkasStorefrontDomain[];
|
|
30
|
+
themes: IkasStorefrontTheme[];
|
|
31
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IkasStorefrontDynamicCurrencySettings } from "./dynamic-currency";
|
|
2
|
+
|
|
3
|
+
export type IkasStorefrontRouting = {
|
|
4
|
+
id: string;
|
|
5
|
+
countryCodes: string[] | null;
|
|
6
|
+
domain: string | null;
|
|
7
|
+
locale: string;
|
|
8
|
+
path: string | null;
|
|
9
|
+
priceListId: string | null;
|
|
10
|
+
dynamicCurrencySettings: IkasStorefrontDynamicCurrencySettings | null;
|
|
11
|
+
currencyCode: string | null;
|
|
12
|
+
currencySymbol: string | null;
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export enum IkasStorefrontThemeStatus {
|
|
2
|
+
WAITING = "WAITING",
|
|
3
|
+
READY = "READY",
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export type IkasStorefrontTheme = {
|
|
7
|
+
id: string;
|
|
8
|
+
isMainTheme: boolean;
|
|
9
|
+
name: string;
|
|
10
|
+
status: IkasStorefrontThemeStatus;
|
|
11
|
+
themeId: string;
|
|
12
|
+
themeVersionId: string;
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IkasThemeJson } from "../../theme-json";
|
|
2
|
+
|
|
3
|
+
export type IkasStorefrontThemeLocalization = {
|
|
4
|
+
id: string;
|
|
5
|
+
locale: string;
|
|
6
|
+
storefrontId: string;
|
|
7
|
+
storefrontThemeId: string;
|
|
8
|
+
themeJson: IkasThemeJson;
|
|
9
|
+
|
|
10
|
+
privacyPolicy: string | null;
|
|
11
|
+
returnPolicy: string | null;
|
|
12
|
+
termsOfService: string | null;
|
|
13
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { IkasThemeJsonComponentProp } from "./prop";
|
|
2
|
+
|
|
3
|
+
export type IkasThemeJsonComponent = {
|
|
4
|
+
id: string;
|
|
5
|
+
dir: string;
|
|
6
|
+
displayName: string;
|
|
7
|
+
description: string;
|
|
8
|
+
props: IkasThemeJsonComponentProp[];
|
|
9
|
+
isHeader: boolean;
|
|
10
|
+
isFooter: boolean;
|
|
11
|
+
translations: {
|
|
12
|
+
[locale: string]: IkasThemeJsonComponentTranslation;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export type IkasThemeJsonComponentTranslation = {
|
|
17
|
+
displayName: string | null;
|
|
18
|
+
description: string | null;
|
|
19
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { IkasProductAttributeType } from "../../../..";
|
|
2
|
+
|
|
3
|
+
export type IkasThemeJsonComponentProp = {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
displayName: string;
|
|
7
|
+
description: string;
|
|
8
|
+
type: IkasThemeJsonComponentPropType;
|
|
9
|
+
isRequired: boolean;
|
|
10
|
+
customDataId?: string | null;
|
|
11
|
+
requiredPropId?: string;
|
|
12
|
+
requiredEnumOptionId?: string;
|
|
13
|
+
requiredEnumOptionValue?: string;
|
|
14
|
+
attributeTypes?: IkasProductAttributeType[] | null;
|
|
15
|
+
sliderData: IkasThemeJsonSliderData;
|
|
16
|
+
translations: {
|
|
17
|
+
[locale: string]: IkasPropTranslation;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export type IkasThemeJsonSliderData = {
|
|
22
|
+
min?: number;
|
|
23
|
+
max?: number;
|
|
24
|
+
interval?: number;
|
|
25
|
+
unit?: string;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export enum IkasThemeJsonComponentPropType {
|
|
29
|
+
TEXT = "TEXT",
|
|
30
|
+
RICH_TEXT = "RICH_TEXT",
|
|
31
|
+
BOOLEAN = "BOOLEAN",
|
|
32
|
+
IMAGE = "IMAGE",
|
|
33
|
+
IMAGE_LIST = "IMAGE_LIST",
|
|
34
|
+
LINK = "LINK",
|
|
35
|
+
LIST_OF_LINK = "LIST_OF_LINK",
|
|
36
|
+
PRODUCT_DETAIL = "PRODUCT_DETAIL",
|
|
37
|
+
PRODUCT_LIST = "PRODUCT_LIST",
|
|
38
|
+
PRODUCT_ATTRIBUTE = "PRODUCT_ATTRIBUTE",
|
|
39
|
+
PRODUCT_ATTRIBUTE_LIST = "PRODUCT_ATTRIBUTE_LIST",
|
|
40
|
+
BRAND = "BRAND",
|
|
41
|
+
BRAND_LIST = "BRAND_LIST",
|
|
42
|
+
CATEGORY = "CATEGORY",
|
|
43
|
+
CATEGORY_LIST = "CATEGORY_LIST",
|
|
44
|
+
COLOR = "COLOR",
|
|
45
|
+
CUSTOM = "CUSTOM",
|
|
46
|
+
COMPONENT = "COMPONENT",
|
|
47
|
+
COMPONENT_LIST = "COMPONENT_LIST",
|
|
48
|
+
BLOG = "BLOG",
|
|
49
|
+
BLOG_LIST = "BLOG_LIST",
|
|
50
|
+
BLOG_CATEGORY = "BLOG_CATEGORY",
|
|
51
|
+
BLOG_CATEGORY_LIST = "BLOG_CATEGORY_LIST",
|
|
52
|
+
RAFFLE = "RAFFLE",
|
|
53
|
+
RAFFLE_LIST = "RAFFLE_LIST",
|
|
54
|
+
SLIDER = "SLIDER",
|
|
55
|
+
|
|
56
|
+
OBJECT = "OBJECT",
|
|
57
|
+
STATIC_LIST = "STATIC_LIST",
|
|
58
|
+
DYNAMIC_LIST = "DYNAMIC_LIST",
|
|
59
|
+
ENUM = "ENUM",
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export type IkasPropTranslation = {
|
|
63
|
+
displayName: string | null;
|
|
64
|
+
description: string | null;
|
|
65
|
+
};
|