@ikas/storefront-models 4.0.0-alpha.50 → 4.0.0-alpha.52
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/_virtual/_tslib.js +1 -0
- package/{src/index.ts → build/index.d.ts} +170 -229
- package/build/index.js +1 -0
- package/build/models/base/index.d.ts +6 -0
- package/build/models/base/init.d.ts +6 -0
- package/build/models/base/init.js +1 -0
- package/{src/models/blog/category/index.ts → build/models/blog/category/index.d.ts} +9 -11
- package/build/models/blog/category/init.d.ts +11 -0
- package/build/models/blog/category/init.js +1 -0
- package/build/models/blog/content/index.d.ts +4 -0
- package/build/models/blog/index.d.ts +24 -0
- package/build/models/blog/init.d.ts +2 -0
- package/build/models/blog/init.js +1 -0
- package/build/models/blog/meta-data/index.d.ts +14 -0
- package/build/models/blog/meta-data/index.js +1 -0
- package/{src/models/blog/content/index.ts → build/models/blog/tag/index.d.ts} +4 -5
- package/build/models/blog/writer/index.d.ts +4 -0
- package/build/models/brand/index.d.ts +23 -0
- package/build/models/brand/index.js +1 -0
- package/build/models/brand/init.d.ts +2 -0
- package/build/models/brand/init.js +1 -0
- package/build/models/brand/translation/index.d.ts +5 -0
- package/build/models/campaign-offer/index.d.ts +37 -0
- package/build/models/campaign-offer/index.js +1 -0
- package/build/models/campaign-offer/product/index.d.ts +24 -0
- package/build/models/campaign-offer/product/index.js +1 -0
- package/build/models/cart/available-shipping-method/index.d.ts +12 -0
- package/build/models/cart/available-shipping-method/index.js +1 -0
- package/build/models/cart/campaign-offer/index.d.ts +19 -0
- package/build/models/cart/campaign-offer/index.js +1 -0
- package/build/models/cart/index.d.ts +11 -0
- package/build/models/category/index.d.ts +27 -0
- package/build/models/category/index.js +1 -0
- package/build/models/category/init.d.ts +2 -0
- package/build/models/category/init.js +1 -0
- package/build/models/category/path-item/index.d.ts +10 -0
- package/build/models/category/path-item/init.d.ts +2 -0
- package/build/models/category/path-item/init.js +1 -0
- package/build/models/category/translations/index.d.ts +5 -0
- package/build/models/checkout/index.d.ts +2 -0
- package/build/models/checkout-settings/index.d.ts +22 -0
- package/build/models/checkout-settings/index.js +1 -0
- package/build/models/checkout-settings/option/index.d.ts +4 -0
- package/build/models/checkout-settings/price/index.d.ts +5 -0
- package/build/models/city/index.d.ts +10 -0
- package/build/models/contact-form/index.d.ts +7 -0
- package/build/models/country/index.d.ts +16 -0
- package/build/models/country/init.d.ts +2 -0
- package/build/models/country/init.js +1 -0
- package/build/models/country/location-translations/index.d.ts +5 -0
- package/build/models/customer/address/city/index.d.ts +5 -0
- package/build/models/customer/address/country/index.d.ts +7 -0
- package/build/models/customer/address/district/index.d.ts +5 -0
- package/build/models/customer/address/index.d.ts +25 -0
- package/build/models/customer/address/state/index.d.ts +5 -0
- package/build/models/customer/attribute/index.d.ts +20 -0
- package/build/models/customer/attribute/index.js +1 -0
- package/build/models/customer/attribute/init.d.ts +2 -0
- package/build/models/customer/attribute/init.js +1 -0
- package/build/models/customer/attribute/option/index.d.ts +7 -0
- package/build/models/customer/attribute/sales-channel/index.d.ts +16 -0
- package/build/models/customer/attribute/sales-channel/index.js +1 -0
- package/build/models/customer/attribute/translation/index.d.ts +7 -0
- package/build/models/customer/attribute/translation/option/index.d.ts +4 -0
- package/build/models/customer/attribute/value/index.d.ts +9 -0
- package/build/models/customer/index.d.ts +43 -0
- package/build/models/customer/index.js +1 -0
- package/build/models/customer/review/index.d.ts +24 -0
- package/build/models/customer/review/index.js +1 -0
- package/build/models/customer/review/init.d.ts +2 -0
- package/build/models/customer/review/init.js +1 -0
- package/build/models/customer/review/settings/index.d.ts +4 -0
- package/build/models/customer/review/summary/index.d.ts +8 -0
- package/build/models/customer/review/summary/star/index.d.ts +4 -0
- package/build/models/district/index.d.ts +10 -0
- package/build/models/favorite-product/index.d.ts +5 -0
- package/build/models/filter-category/index.d.ts +8 -0
- package/build/models/html-meta-data/index.d.ts +25 -0
- package/build/models/html-meta-data/index.js +1 -0
- package/build/models/html-meta-data/init.d.ts +3 -0
- package/build/models/html-meta-data/init.js +1 -0
- package/build/models/html-meta-data/translations/index.d.ts +5 -0
- package/build/models/image/index.d.ts +4 -0
- package/build/models/last-viewed-product/index.d.ts +4 -0
- package/build/models/merchant-settings/address/city/index.d.ts +5 -0
- package/build/models/merchant-settings/address/country/index.d.ts +7 -0
- package/build/models/merchant-settings/address/district/index.d.ts +5 -0
- package/build/models/merchant-settings/address/index.d.ts +21 -0
- package/build/models/merchant-settings/address/state/index.d.ts +5 -0
- package/build/models/merchant-settings/address/type/index.d.ts +4 -0
- package/build/models/merchant-settings/address/type/index.js +1 -0
- package/build/models/merchant-settings/index.d.ts +24 -0
- package/build/models/merchant-settings/index.js +1 -0
- package/build/models/merchant-settings/init.d.ts +2 -0
- package/build/models/merchant-settings/init.js +1 -0
- package/build/models/order/address/city/index.d.ts +5 -0
- package/build/models/order/address/country/index.d.ts +7 -0
- package/build/models/order/address/district/index.d.ts +5 -0
- package/build/models/order/address/index.d.ts +22 -0
- package/build/models/order/address/state/index.d.ts +5 -0
- package/build/models/order/adjustment/applied-order-line/index.d.ts +6 -0
- package/build/models/order/adjustment/index.d.ts +21 -0
- package/build/models/order/adjustment/index.js +1 -0
- package/build/models/order/customer/index.d.ts +9 -0
- package/build/models/order/gift-line/index.d.ts +4 -0
- package/build/models/order/index.d.ts +86 -0
- package/build/models/order/index.js +1 -0
- package/build/models/order/invoice/index.d.ts +14 -0
- package/build/models/order/invoice/index.js +1 -0
- package/build/models/order/line-item/base-unit/index.d.ts +20 -0
- package/build/models/order/line-item/base-unit/index.js +1 -0
- package/build/models/order/line-item/base-unit/unit-type/index.d.ts +4 -0
- package/build/models/order/line-item/discount/index.d.ts +9 -0
- package/build/models/order/line-item/index.d.ts +35 -0
- package/build/models/order/line-item/index.js +1 -0
- package/build/models/order/line-item/option/index.d.ts +9 -0
- package/build/models/order/line-item/option/value/index.d.ts +5 -0
- package/build/models/order/line-item/variant/brand/index.d.ts +4 -0
- package/build/models/order/line-item/variant/category/index.d.ts +9 -0
- package/build/models/order/line-item/variant/index.d.ts +27 -0
- package/build/models/order/line-item/variant/price/index.d.ts +8 -0
- package/build/models/order/line-item/variant/unit/index.d.ts +5 -0
- package/build/models/order/line-item/variant/value/index.d.ts +7 -0
- package/build/models/order/package/index.d.ts +26 -0
- package/build/models/order/package/index.js +1 -0
- package/build/models/order/package/tracking-info/index.d.ts +7 -0
- package/build/models/order/payment-method/index.d.ts +8 -0
- package/build/models/order/refund/index.d.ts +5 -0
- package/build/models/order/refund/line-item/index.d.ts +4 -0
- package/build/models/order/refund/settings/index.d.ts +5 -0
- package/build/models/order/shipping-line/index.d.ts +11 -0
- package/build/models/order/tax-line/index.d.ts +4 -0
- package/build/models/order/transaction/error/index.d.ts +5 -0
- package/build/models/order/transaction/index.d.ts +34 -0
- package/build/models/order/transaction/index.js +1 -0
- package/build/models/order/transaction/payment-method-detail/index.d.ts +22 -0
- package/build/models/order/transaction/payment-method-detail/index.js +1 -0
- package/build/models/order/transaction/payment-method-detail/installment-price/index.d.ts +7 -0
- package/build/models/payment-gateway/additional-price/index.d.ts +14 -0
- package/build/models/payment-gateway/additional-price/index.js +1 -0
- package/build/models/payment-gateway/index.d.ts +42 -0
- package/build/models/payment-gateway/index.js +1 -0
- package/build/models/payment-gateway/init.d.ts +2 -0
- package/build/models/payment-gateway/init.js +1 -0
- package/build/models/payment-gateway/settings/index.d.ts +11 -0
- package/build/models/payment-gateway/settings/index.js +1 -0
- package/build/models/payment-gateway/translation/index.d.ts +5 -0
- package/build/models/product/attribute/index.d.ts +24 -0
- package/build/models/product/attribute/index.js +1 -0
- package/build/models/product/attribute/init.d.ts +2 -0
- package/build/models/product/attribute/init.js +1 -0
- package/build/models/product/attribute/option/index.d.ts +4 -0
- package/build/models/product/attribute/table-cell/index.d.ts +4 -0
- package/build/models/product/attribute/table-template/index.d.ts +5 -0
- package/build/models/product/attribute/translation/index.d.ts +10 -0
- package/build/models/product/attribute-value/index.d.ts +21 -0
- package/build/models/product/attribute-value/init.d.ts +2 -0
- package/build/models/product/attribute-value/init.js +1 -0
- package/build/models/product/back-in-stock-settings/index.d.ts +3 -0
- package/build/models/product/base-unit/index.d.ts +10 -0
- package/build/models/product/campaign/data/index.d.ts +39 -0
- package/build/models/product/campaign/data/index.js +1 -0
- package/build/models/product/campaign/filter/index.d.ts +11 -0
- package/build/models/product/campaign/filter/index.js +1 -0
- package/build/models/product/campaign/index.d.ts +5 -0
- package/build/models/product/campaign/product-buyx-then-gety/index.d.ts +16 -0
- package/build/models/product/campaign/product-campaign-date-range-field/index.d.ts +4 -0
- package/build/models/product/campaign/product-fixed-discount/index.d.ts +11 -0
- package/build/models/product/filter/index.d.ts +83 -0
- package/build/models/product/filter/index.js +1 -0
- package/build/models/product/image/index.d.ts +8 -0
- package/build/models/product/image/init.d.ts +2 -0
- package/build/models/product/image/init.js +1 -0
- package/build/models/product/index.d.ts +41 -0
- package/build/models/product/index.js +1 -0
- package/build/models/product/init.d.ts +2 -0
- package/build/models/product/init.js +1 -0
- package/build/models/product/option-set/index.d.ts +21 -0
- package/build/models/product/option-set/init.d.ts +6 -0
- package/build/models/product/option-set/init.js +1 -0
- package/build/models/product/option-set/option/index.d.ts +70 -0
- package/build/models/product/option-set/option/index.js +1 -0
- package/build/models/product/option-set/option/init.d.ts +2 -0
- package/build/models/product/option-set/option/init.js +1 -0
- package/build/models/product/tag/index.d.ts +4 -0
- package/build/models/product/variant/index.d.ts +21 -0
- package/build/models/product/variant/init.d.ts +2 -0
- package/build/models/product/variant/init.js +1 -0
- package/build/models/product/variant/price/index.d.ts +9 -0
- package/build/models/product/variant/unit/index.d.ts +5 -0
- package/build/models/product/variant-type/index.d.ts +6 -0
- package/build/models/product/variant-type/init.d.ts +2 -0
- package/build/models/product/variant-type/init.js +1 -0
- package/build/models/product-option-file/index.d.ts +5 -0
- package/build/models/raffle/index.d.ts +68 -0
- package/build/models/raffle/index.js +1 -0
- package/build/models/raffle/init.d.ts +2 -0
- package/build/models/raffle/init.js +1 -0
- package/build/models/sales-channel/index.d.ts +15 -0
- package/build/models/state/index.d.ts +6 -0
- package/build/models/stock-location/address/city/index.d.ts +5 -0
- package/build/models/stock-location/address/country/index.d.ts +5 -0
- package/build/models/stock-location/address/district/index.d.ts +5 -0
- package/build/models/stock-location/address/index.d.ts +13 -0
- package/build/models/stock-location/address/state/index.d.ts +5 -0
- package/build/models/stock-location/available/index.d.ts +8 -0
- package/build/models/stock-location/index.d.ts +23 -0
- package/build/models/stock-location/index.js +1 -0
- package/build/models/storefront/domain/index.d.ts +7 -0
- package/build/models/storefront/index.d.ts +27 -0
- package/build/models/storefront/index.js +1 -0
- package/build/models/storefront/localization/index.d.ts +6 -0
- package/build/models/storefront/routing/dynamic-currency/index.d.ts +4 -0
- package/build/models/storefront/routing/index.d.ts +12 -0
- package/build/models/storefront/theme/index.d.ts +12 -0
- package/build/models/storefront/theme/index.js +1 -0
- package/build/models/storefront/theme-localization/index.d.ts +11 -0
- package/build/models/theme-json/component/index.d.ts +17 -0
- package/build/models/theme-json/component/prop/index.d.ts +60 -0
- package/build/models/theme-json/component/prop/index.js +1 -0
- package/build/models/theme-json/custom-data/index.d.ts +37 -0
- package/build/models/theme-json/index.d.ts +11 -0
- package/build/models/theme-json/page/component/index.d.ts +5 -0
- package/build/models/theme-json/page/index.d.ts +43 -0
- package/build/models/theme-json/page/index.js +1 -0
- package/build/models/theme-json/settings/color/index.d.ts +12 -0
- package/build/models/theme-json/settings/favicon/index.d.ts +3 -0
- package/build/models/theme-json/settings/font-family/index.d.ts +4 -0
- package/build/models/theme-json/settings/index.d.ts +14 -0
- package/build/models/theme-json/settings/index.js +1 -0
- package/build/models/variant-type/index.d.ts +21 -0
- package/build/models/variant-type/index.js +1 -0
- package/build/models/variant-type/init.d.ts +2 -0
- package/build/models/variant-type/init.js +1 -0
- package/build/models/variant-type/variant-value/index.d.ts +9 -0
- package/build/models/variant-type/variant-value/init.d.ts +2 -0
- package/build/models/variant-type/variant-value/init.js +1 -0
- package/package.json +5 -5
- package/src/models/base/index.ts +0 -6
- package/src/models/base/init.ts +0 -14
- package/src/models/blog/category/init.ts +0 -33
- package/src/models/blog/index.ts +0 -26
- package/src/models/blog/init.ts +0 -7
- package/src/models/blog/meta-data/index.ts +0 -16
- package/src/models/blog/tag/index.ts +0 -5
- package/src/models/blog/writer/index.ts +0 -4
- package/src/models/brand/index.ts +0 -26
- package/src/models/brand/init.ts +0 -27
- package/src/models/brand/translation/index.ts +0 -5
- package/src/models/campaign-offer/index.ts +0 -43
- package/src/models/campaign-offer/product/index.ts +0 -27
- package/src/models/cart/available-shipping-method/index.ts +0 -13
- package/src/models/cart/campaign-offer/index.ts +0 -24
- package/src/models/cart/index.ts +0 -12
- package/src/models/category/index.ts +0 -30
- package/src/models/category/init.ts +0 -37
- package/src/models/category/path-item/index.ts +0 -11
- package/src/models/category/path-item/init.ts +0 -25
- package/src/models/category/translations/index.ts +0 -5
- package/src/models/checkout/index.ts +0 -3
- package/src/models/checkout-settings/index.ts +0 -24
- package/src/models/checkout-settings/option/index.ts +0 -4
- package/src/models/checkout-settings/price/index.ts +0 -5
- package/src/models/city/index.ts +0 -11
- package/src/models/contact-form/index.ts +0 -7
- package/src/models/country/index.ts +0 -17
- package/src/models/country/init.ts +0 -16
- package/src/models/country/location-translations/index.ts +0 -5
- package/src/models/customer/address/city/index.ts +0 -5
- package/src/models/customer/address/country/index.ts +0 -7
- package/src/models/customer/address/district/index.ts +0 -5
- package/src/models/customer/address/index.ts +0 -27
- package/src/models/customer/address/state/index.ts +0 -5
- package/src/models/customer/attribute/index.ts +0 -22
- package/src/models/customer/attribute/init.ts +0 -34
- package/src/models/customer/attribute/option/index.ts +0 -7
- package/src/models/customer/attribute/sales-channel/index.ts +0 -18
- package/src/models/customer/attribute/translation/index.ts +0 -8
- package/src/models/customer/attribute/translation/option/index.ts +0 -4
- package/src/models/customer/attribute/value/index.ts +0 -12
- package/src/models/customer/index.ts +0 -48
- package/src/models/customer/review/index.ts +0 -28
- package/src/models/customer/review/init.ts +0 -7
- package/src/models/customer/review/settings/index.ts +0 -4
- package/src/models/customer/review/summary/index.ts +0 -9
- package/src/models/customer/review/summary/star/index.ts +0 -4
- package/src/models/district/index.ts +0 -11
- package/src/models/favorite-product/index.ts +0 -6
- package/src/models/filter-category/index.ts +0 -9
- package/src/models/html-meta-data/index.ts +0 -28
- package/src/models/html-meta-data/init.ts +0 -27
- package/src/models/html-meta-data/translations/index.ts +0 -5
- package/src/models/image/index.ts +0 -4
- package/src/models/last-viewed-product/index.ts +0 -4
- package/src/models/merchant-settings/address/city/index.ts +0 -5
- package/src/models/merchant-settings/address/country/index.ts +0 -7
- package/src/models/merchant-settings/address/district/index.ts +0 -5
- package/src/models/merchant-settings/address/index.ts +0 -22
- package/src/models/merchant-settings/address/state/index.ts +0 -5
- package/src/models/merchant-settings/address/type/index.ts +0 -4
- package/src/models/merchant-settings/index.ts +0 -28
- package/src/models/merchant-settings/init.ts +0 -7
- package/src/models/order/address/city/index.ts +0 -5
- package/src/models/order/address/country/index.ts +0 -7
- package/src/models/order/address/district/index.ts +0 -5
- package/src/models/order/address/index.ts +0 -25
- package/src/models/order/address/state/index.ts +0 -5
- package/src/models/order/adjustment/applied-order-line/index.ts +0 -6
- package/src/models/order/adjustment/index.ts +0 -24
- package/src/models/order/customer/index.ts +0 -9
- package/src/models/order/gift-line/index.ts +0 -4
- package/src/models/order/index.ts +0 -92
- package/src/models/order/invoice/index.ts +0 -15
- package/src/models/order/line-item/base-unit/index.ts +0 -22
- package/src/models/order/line-item/base-unit/unit-type/index.ts +0 -4
- package/src/models/order/line-item/discount/index.ts +0 -10
- package/src/models/order/line-item/index.ts +0 -37
- package/src/models/order/line-item/option/index.ts +0 -10
- package/src/models/order/line-item/option/value/index.ts +0 -5
- package/src/models/order/line-item/variant/brand/index.ts +0 -4
- package/src/models/order/line-item/variant/category/index.ts +0 -10
- package/src/models/order/line-item/variant/index.ts +0 -30
- package/src/models/order/line-item/variant/price/index.ts +0 -8
- package/src/models/order/line-item/variant/unit/index.ts +0 -6
- package/src/models/order/line-item/variant/value/index.ts +0 -7
- package/src/models/order/package/index.ts +0 -28
- package/src/models/order/package/tracking-info/index.ts +0 -7
- package/src/models/order/payment-method/index.ts +0 -9
- package/src/models/order/refund/index.ts +0 -6
- package/src/models/order/refund/line-item/index.ts +0 -4
- package/src/models/order/refund/settings/index.ts +0 -5
- package/src/models/order/shipping-line/index.ts +0 -12
- package/src/models/order/tax-line/index.ts +0 -4
- package/src/models/order/transaction/error/index.ts +0 -5
- package/src/models/order/transaction/index.ts +0 -37
- package/src/models/order/transaction/payment-method-detail/index.ts +0 -25
- package/src/models/order/transaction/payment-method-detail/installment-price/index.ts +0 -7
- package/src/models/payment-gateway/additional-price/index.ts +0 -16
- package/src/models/payment-gateway/index.ts +0 -47
- package/src/models/payment-gateway/init.ts +0 -26
- package/src/models/payment-gateway/settings/index.ts +0 -12
- package/src/models/payment-gateway/translation/index.ts +0 -5
- package/src/models/product/attribute/index.ts +0 -26
- package/src/models/product/attribute/init.ts +0 -34
- package/src/models/product/attribute/option/index.ts +0 -4
- package/src/models/product/attribute/table-cell/index.ts +0 -4
- package/src/models/product/attribute/table-template/index.ts +0 -6
- package/src/models/product/attribute/translation/index.ts +0 -11
- package/src/models/product/attribute-value/index.ts +0 -26
- package/src/models/product/attribute-value/init.ts +0 -7
- package/src/models/product/back-in-stock-settings/index.ts +0 -3
- package/src/models/product/base-unit/index.ts +0 -12
- package/src/models/product/campaign/data/index.ts +0 -43
- package/src/models/product/campaign/filter/index.ts +0 -12
- package/src/models/product/campaign/index.ts +0 -6
- package/src/models/product/campaign/product-buyx-then-gety/index.ts +0 -19
- package/src/models/product/campaign/product-campaign-date-range-field/index.ts +0 -4
- package/src/models/product/campaign/product-fixed-discount/index.ts +0 -13
- package/src/models/product/filter/index.ts +0 -98
- package/src/models/product/image/index.ts +0 -10
- package/src/models/product/image/init.ts +0 -7
- package/src/models/product/index.ts +0 -45
- package/src/models/product/init.ts +0 -16
- package/src/models/product/option-set/index.ts +0 -25
- package/src/models/product/option-set/init.ts +0 -77
- package/src/models/product/option-set/option/index.ts +0 -81
- package/src/models/product/option-set/option/init.ts +0 -13
- package/src/models/product/tag/index.ts +0 -4
- package/src/models/product/variant/index.ts +0 -22
- package/src/models/product/variant/init.ts +0 -10
- package/src/models/product/variant/price/index.ts +0 -9
- package/src/models/product/variant/unit/index.ts +0 -6
- package/src/models/product/variant-type/index.ts +0 -7
- package/src/models/product/variant-type/init.ts +0 -15
- package/src/models/product-option-file/index.ts +0 -5
- package/src/models/raffle/index.ts +0 -77
- package/src/models/raffle/init.ts +0 -6
- package/src/models/sales-channel/index.ts +0 -17
- package/src/models/state/index.ts +0 -7
- package/src/models/stock-location/address/city/index.ts +0 -5
- package/src/models/stock-location/address/country/index.ts +0 -5
- package/src/models/stock-location/address/district/index.ts +0 -5
- package/src/models/stock-location/address/index.ts +0 -14
- package/src/models/stock-location/address/state/index.ts +0 -5
- package/src/models/stock-location/available/index.ts +0 -9
- package/src/models/stock-location/index.ts +0 -26
- package/src/models/storefront/domain/index.ts +0 -7
- package/src/models/storefront/index.ts +0 -31
- package/src/models/storefront/localization/index.tsx +0 -6
- package/src/models/storefront/routing/dynamic-currency/index.ts +0 -4
- package/src/models/storefront/routing/index.tsx +0 -13
- package/src/models/storefront/theme/index.tsx +0 -13
- package/src/models/storefront/theme-localization/index.tsx +0 -13
- package/src/models/theme-json/component/index.ts +0 -19
- package/src/models/theme-json/component/prop/index.ts +0 -65
- package/src/models/theme-json/custom-data/index.ts +0 -46
- package/src/models/theme-json/index.ts +0 -12
- package/src/models/theme-json/page/component/index.ts +0 -11
- package/src/models/theme-json/page/index.ts +0 -46
- package/src/models/theme-json/settings/color/index.ts +0 -13
- package/src/models/theme-json/settings/favicon/index.ts +0 -3
- package/src/models/theme-json/settings/font-family/index.ts +0 -4
- package/src/models/theme-json/settings/index.ts +0 -16
- package/src/models/variant-type/index.ts +0 -25
- package/src/models/variant-type/init.ts +0 -37
- package/src/models/variant-type/variant-value/index.ts +0 -12
- package/src/models/variant-type/variant-value/init.ts +0 -5
|
@@ -1,31 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,65 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { IkasProductAttributeType } from "../../..";
|
|
2
|
-
import {
|
|
3
|
-
IkasThemeJsonSliderData,
|
|
4
|
-
IkasThemeJsonComponentPropType,
|
|
5
|
-
} from "../component/prop";
|
|
6
|
-
|
|
7
|
-
export type IkasThemeJsonCustomData = {
|
|
8
|
-
id: string;
|
|
9
|
-
name?: string | null;
|
|
10
|
-
description?: string | null;
|
|
11
|
-
typescriptName?: string | null;
|
|
12
|
-
type: IkasThemeJsonComponentPropType;
|
|
13
|
-
isRequired: boolean;
|
|
14
|
-
translations: {
|
|
15
|
-
[locale: string]: IkasThemeJsonCustomDataTranslation;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
key?: string | null;
|
|
19
|
-
nestedData?: IkasThemeJsonCustomData[] | null;
|
|
20
|
-
itemCount?: number | null; // for static lists
|
|
21
|
-
attributeTypes?: IkasProductAttributeType[] | null;
|
|
22
|
-
enumOptions?: IkasThemeJsonEnumOption[] | null;
|
|
23
|
-
customDataId?: string | null;
|
|
24
|
-
sliderData: IkasThemeJsonSliderData;
|
|
25
|
-
|
|
26
|
-
isRoot: boolean;
|
|
27
|
-
parent?: IkasThemeJsonCustomData | null;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
export type IkasThemeJsonEnumOption = {
|
|
31
|
-
id: string;
|
|
32
|
-
displayName: string;
|
|
33
|
-
value: string;
|
|
34
|
-
translations: {
|
|
35
|
-
[locale: string]: IkasThemeJsonCustomDataEnumOptionTranslation;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
export type IkasThemeJsonCustomDataTranslation = {
|
|
40
|
-
name: string | null;
|
|
41
|
-
description: string | null;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
export type IkasThemeJsonCustomDataEnumOptionTranslation = {
|
|
45
|
-
displayName: string | null;
|
|
46
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IkasThemeJsonComponent } from "./component";
|
|
2
|
-
import { IkasThemeJsonCustomData } from "./custom-data";
|
|
3
|
-
import { IkasThemeJsonPage } from "./page";
|
|
4
|
-
import { IkasThemeJsonSettings } from "./settings";
|
|
5
|
-
|
|
6
|
-
export type IkasThemeJson = {
|
|
7
|
-
name: string;
|
|
8
|
-
components: IkasThemeJsonComponent[];
|
|
9
|
-
pages: IkasThemeJsonPage[];
|
|
10
|
-
settings: IkasThemeJsonSettings;
|
|
11
|
-
customData: IkasThemeJsonCustomData[];
|
|
12
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export type IkasThemeJsonPageComponent = {
|
|
2
|
-
id: string;
|
|
3
|
-
componentId: string;
|
|
4
|
-
|
|
5
|
-
// Prop value for a component can either be exact values to pass to the component,
|
|
6
|
-
// or it can be a data to derive the actual value the component needs
|
|
7
|
-
// key: propName
|
|
8
|
-
// e.g for a "Text" prop ---------> text: "TextValue"
|
|
9
|
-
// e.g for a "ProductList" prop --> productList: ProductListPropValue
|
|
10
|
-
propValues: Record<string, any>;
|
|
11
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { IkasThemeJsonPageComponent } from "./component";
|
|
2
|
-
|
|
3
|
-
export type IkasThemeJsonPage = {
|
|
4
|
-
id: string;
|
|
5
|
-
name: string | null;
|
|
6
|
-
type: IkasThemeJsonPageType;
|
|
7
|
-
slug: string | null;
|
|
8
|
-
pageTitle: string | null;
|
|
9
|
-
description: string | null;
|
|
10
|
-
components: IkasThemeJsonPageComponent[];
|
|
11
|
-
specifications: IkasThemeJsonPageSpecification[] | null;
|
|
12
|
-
canonicals: string[] | null;
|
|
13
|
-
disableIndex: boolean | null;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export type IkasThemeJsonPageSpecification = {
|
|
17
|
-
id: string;
|
|
18
|
-
components: IkasThemeJsonPageComponent[];
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export enum IkasThemeJsonPageType {
|
|
22
|
-
INDEX = "INDEX",
|
|
23
|
-
CATEGORY = "CATEGORY",
|
|
24
|
-
BRAND = "BRAND",
|
|
25
|
-
PRODUCT = "PRODUCT",
|
|
26
|
-
CUSTOM = "CUSTOM",
|
|
27
|
-
ACCOUNT = "ACCOUNT",
|
|
28
|
-
ADDRESSES = "ADDRESSES",
|
|
29
|
-
ORDERS = "ORDERS",
|
|
30
|
-
ORDER_DETAIL = "ORDER_DETAIL",
|
|
31
|
-
LOGIN = "LOGIN",
|
|
32
|
-
REGISTER = "REGISTER",
|
|
33
|
-
FORGOT_PASSWORD = "FORGOT_PASSWORD",
|
|
34
|
-
RECOVER_PASSWORD = "RECOVER_PASSWORD",
|
|
35
|
-
CART = "CART",
|
|
36
|
-
FAVORITE_PRODUCTS = "FAVORITE_PRODUCTS",
|
|
37
|
-
SEARCH = "SEARCH",
|
|
38
|
-
NOT_FOUND = "NOT_FOUND",
|
|
39
|
-
BLOG = "BLOG",
|
|
40
|
-
BLOG_INDEX = "BLOG_INDEX",
|
|
41
|
-
BLOG_CATEGORY = "BLOG_CATEGORY",
|
|
42
|
-
CHECKOUT = "CHECKOUT",
|
|
43
|
-
RAFFLE = "RAFFLE",
|
|
44
|
-
RAFFLE_DETAIL = "RAFFLE_DETAIL",
|
|
45
|
-
RAFFLE_ACCOUNT = "RAFFLE_ACCOUNT",
|
|
46
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export type IkasThemeJsonColor = {
|
|
2
|
-
id: string;
|
|
3
|
-
displayName: string;
|
|
4
|
-
key: string;
|
|
5
|
-
color: string;
|
|
6
|
-
translations: {
|
|
7
|
-
[locale: string]: IkasThemeJsonColorTranslation;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export type IkasThemeJsonColorTranslation = {
|
|
12
|
-
displayName: string | null;
|
|
13
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { IkasThemeJsonColor } from "./color";
|
|
2
|
-
import { IkasThemeJsonFavicon } from "./favicon";
|
|
3
|
-
import { IkasThemeJsonFontFamily } from "./font-family";
|
|
4
|
-
|
|
5
|
-
export type IkasThemeJsonSettings = {
|
|
6
|
-
colors: IkasThemeJsonColor[];
|
|
7
|
-
favicon: IkasThemeJsonFavicon;
|
|
8
|
-
stockPreference: IkasThemeJsonStockPreference;
|
|
9
|
-
fontFamily: IkasThemeJsonFontFamily;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export enum IkasThemeJsonStockPreference {
|
|
13
|
-
HIDE_OUT_OF_STOCK = "HIDE_OUT_OF_STOCK",
|
|
14
|
-
SHOW_ALL = "SHOW_ALL",
|
|
15
|
-
SHOW_OUT_OF_STOCK_AT_END = "SHOW_OUT_OF_STOCK_AT_END",
|
|
16
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { IkasVariantValue } from "./variant-value";
|
|
2
|
-
|
|
3
|
-
export type IkasVariantType = {
|
|
4
|
-
id: string;
|
|
5
|
-
name: string;
|
|
6
|
-
selectionType: IkasVariantSelectionType;
|
|
7
|
-
values: IkasVariantValue[];
|
|
8
|
-
translations?: IkasVariantTypeTranslation[] | null;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export enum IkasVariantSelectionType {
|
|
12
|
-
CHOICE = "CHOICE",
|
|
13
|
-
COLOR = "COLOR",
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export type IkasVariantTypeTranslation = {
|
|
17
|
-
locale: string;
|
|
18
|
-
name: string | null;
|
|
19
|
-
values: IkasVariantValueTranslation[] | null;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
export type IkasVariantValueTranslation = {
|
|
23
|
-
id: string;
|
|
24
|
-
name: string | null;
|
|
25
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { IkasVariantType, IkasVariantTypeTranslation } from ".";
|
|
2
|
-
import { initIkasVariantValue } from "./variant-value/init";
|
|
3
|
-
|
|
4
|
-
export function initIkasVariantType(
|
|
5
|
-
variantType: IkasVariantType,
|
|
6
|
-
locale: string | null
|
|
7
|
-
) {
|
|
8
|
-
variantType.values.forEach((v) => {
|
|
9
|
-
v.variantTypeId = variantType.id;
|
|
10
|
-
initIkasVariantValue(v);
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
if (variantType.translations && locale) {
|
|
14
|
-
setTranslations(variantType, variantType.translations, locale);
|
|
15
|
-
delete variantType.translations;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
function setTranslations(
|
|
20
|
-
variantType: IkasVariantType,
|
|
21
|
-
translations: IkasVariantTypeTranslation[],
|
|
22
|
-
locale: string
|
|
23
|
-
) {
|
|
24
|
-
if (translations && translations.some((t) => t.locale === locale)) {
|
|
25
|
-
const localeTranslations = translations.find((t) => t.locale === locale);
|
|
26
|
-
|
|
27
|
-
if (localeTranslations?.name) variantType.name = localeTranslations.name;
|
|
28
|
-
if (localeTranslations?.values) {
|
|
29
|
-
variantType.values.forEach((vv) => {
|
|
30
|
-
const translatedVV = localeTranslations.values?.find(
|
|
31
|
-
(tvv) => tvv.id === vv.id
|
|
32
|
-
);
|
|
33
|
-
if (translatedVV && translatedVV.name) vv.name = translatedVV.name;
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|