@ikas/storefront-models 4.0.0-alpha.8 → 4.0.0-alpha.81
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} +172 -213
- 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/customer-settings/index.d.ts +7 -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 +30 -0
- package/build/models/storefront/index.js +1 -0
- package/build/models/storefront/localization/index.d.ts +6 -0
- package/build/models/storefront/meta-templates/index.d.ts +14 -0
- package/build/models/storefront/meta-templates/index.js +1 -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 +13 -0
- package/build/models/theme-json/component/index.d.ts +18 -0
- package/build/models/theme-json/component/prop/index.d.ts +61 -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/build-cjs/_virtual/_tslib.js +0 -1
- package/build-cjs/index.d.ts +16 -0
- package/build-cjs/index.js +1 -2
- package/build-cjs/models/base/init.js +0 -1
- package/build-cjs/models/blog/category/init.js +0 -1
- package/build-cjs/models/blog/init.js +0 -1
- package/build-cjs/models/blog/meta-data/index.js +0 -1
- package/build-cjs/models/brand/index.js +0 -1
- package/build-cjs/models/brand/init.js +0 -1
- package/build-cjs/models/campaign-offer/index.js +0 -1
- package/build-cjs/models/campaign-offer/product/index.js +0 -1
- package/build-cjs/models/cart/available-shipping-method/index.js +0 -1
- package/build-cjs/models/cart/campaign-offer/index.js +0 -1
- package/build-cjs/models/category/index.js +0 -1
- package/build-cjs/models/category/init.js +1 -2
- package/build-cjs/models/category/init.js.map +1 -1
- package/build-cjs/models/category/path-item/index.d.ts +2 -0
- package/build-cjs/models/category/path-item/init.d.ts +2 -0
- package/build-cjs/models/category/path-item/init.js +1 -0
- package/build-cjs/models/category/path-item/init.js.map +1 -0
- package/build-cjs/models/checkout-settings/index.js +0 -1
- package/build-cjs/models/checkout-settings/price/index.d.ts +1 -0
- package/build-cjs/models/country/index.d.ts +2 -0
- package/build-cjs/models/country/init.d.ts +2 -0
- package/build-cjs/models/country/init.js +1 -0
- package/build-cjs/models/country/init.js.map +1 -0
- package/build-cjs/models/country/location-translations/index.d.ts +5 -0
- package/build-cjs/models/customer/attribute/index.js +0 -1
- package/build-cjs/models/customer/attribute/init.js +0 -1
- package/build-cjs/models/customer/attribute/sales-channel/index.js +0 -1
- package/build-cjs/models/customer/index.js +0 -1
- package/build-cjs/models/customer/review/index.js +0 -1
- package/build-cjs/models/customer/review/init.js +0 -1
- package/build-cjs/models/customer-settings/index.d.ts +7 -0
- package/build-cjs/models/html-meta-data/index.js +0 -1
- package/build-cjs/models/html-meta-data/init.js +0 -1
- package/build-cjs/models/merchant-settings/address/city/index.d.ts +5 -0
- package/build-cjs/models/merchant-settings/address/country/index.d.ts +7 -0
- package/build-cjs/models/merchant-settings/address/district/index.d.ts +5 -0
- package/build-cjs/models/merchant-settings/address/index.d.ts +21 -0
- package/build-cjs/models/merchant-settings/address/state/index.d.ts +5 -0
- package/build-cjs/models/merchant-settings/address/type/index.d.ts +4 -0
- package/build-cjs/models/merchant-settings/address/type/index.js +1 -0
- package/build-cjs/models/merchant-settings/address/type/index.js.map +1 -0
- package/build-cjs/models/merchant-settings/index.d.ts +3 -0
- package/build-cjs/models/merchant-settings/index.js +0 -1
- package/build-cjs/models/merchant-settings/index.js.map +1 -1
- package/build-cjs/models/merchant-settings/init.js +0 -1
- package/build-cjs/models/order/adjustment/index.js +0 -1
- package/build-cjs/models/order/index.d.ts +3 -1
- package/build-cjs/models/order/index.js +1 -2
- package/build-cjs/models/order/index.js.map +1 -1
- package/build-cjs/models/order/invoice/index.js +0 -1
- package/build-cjs/models/order/line-item/base-unit/index.d.ts +20 -0
- package/build-cjs/models/order/line-item/base-unit/index.js +1 -0
- package/build-cjs/models/order/line-item/base-unit/index.js.map +1 -0
- package/build-cjs/models/order/line-item/base-unit/unit-type/index.d.ts +4 -0
- package/build-cjs/models/order/line-item/index.d.ts +3 -0
- package/build-cjs/models/order/line-item/index.js +0 -1
- package/build-cjs/models/order/line-item/index.js.map +1 -1
- package/build-cjs/models/order/line-item/variant/index.d.ts +4 -0
- package/build-cjs/models/order/line-item/variant/price/index.d.ts +1 -0
- package/build-cjs/models/order/line-item/variant/unit/index.d.ts +5 -0
- package/build-cjs/models/order/package/index.js +0 -1
- package/build-cjs/models/order/transaction/index.d.ts +1 -1
- package/build-cjs/models/order/transaction/index.js +0 -1
- package/build-cjs/models/order/transaction/index.js.map +1 -1
- package/build-cjs/models/order/transaction/payment-method-detail/index.js +0 -1
- package/build-cjs/models/payment-gateway/additional-price/index.js +0 -1
- package/build-cjs/models/payment-gateway/index.js +0 -1
- package/build-cjs/models/payment-gateway/init.js +0 -1
- package/build-cjs/models/payment-gateway/settings/index.js +0 -1
- package/build-cjs/models/product/attribute/index.d.ts +3 -1
- package/build-cjs/models/product/attribute/index.js +1 -2
- package/build-cjs/models/product/attribute/index.js.map +1 -1
- package/build-cjs/models/product/attribute/init.js +0 -1
- package/build-cjs/models/product/attribute-value/init.js +0 -1
- package/build-cjs/models/product/base-unit/index.d.ts +10 -0
- package/build-cjs/models/product/campaign/data/index.js +0 -1
- package/build-cjs/models/product/campaign/filter/index.js +0 -1
- package/build-cjs/models/product/filter/index.d.ts +3 -1
- package/build-cjs/models/product/filter/index.js +1 -2
- package/build-cjs/models/product/filter/index.js.map +1 -1
- package/build-cjs/models/product/image/init.js +0 -1
- package/build-cjs/models/product/index.d.ts +2 -0
- package/build-cjs/models/product/index.js +0 -1
- package/build-cjs/models/product/index.js.map +1 -1
- package/build-cjs/models/product/init.js +0 -1
- package/build-cjs/models/product/option-set/init.js +0 -1
- package/build-cjs/models/product/option-set/option/index.js +0 -1
- package/build-cjs/models/product/option-set/option/init.js +0 -1
- package/build-cjs/models/product/variant/index.d.ts +2 -0
- package/build-cjs/models/product/variant/init.js +0 -1
- package/build-cjs/models/product/variant/price/index.d.ts +2 -0
- package/build-cjs/models/product/variant/unit/index.d.ts +5 -0
- package/build-cjs/models/product/variant-type/index.d.ts +1 -0
- package/build-cjs/models/product/variant-type/init.js +0 -1
- package/build-cjs/models/product-option-file/index.d.ts +5 -0
- package/build-cjs/models/raffle/index.d.ts +9 -3
- package/build-cjs/models/raffle/index.js +1 -2
- package/build-cjs/models/raffle/index.js.map +1 -1
- package/build-cjs/models/raffle/init.js +0 -1
- package/build-cjs/models/stock-location/index.js +0 -1
- package/build-cjs/models/storefront/index.d.ts +4 -0
- package/build-cjs/models/storefront/index.js +0 -1
- package/build-cjs/models/storefront/index.js.map +1 -1
- package/build-cjs/models/storefront/meta-templates/index.d.ts +14 -0
- package/build-cjs/models/storefront/meta-templates/index.js +1 -0
- package/build-cjs/models/storefront/routing/index.d.ts +2 -0
- package/build-cjs/models/storefront/theme/index.js +0 -1
- package/build-cjs/models/storefront/theme-localization/index.d.ts +2 -0
- package/build-cjs/models/theme-json/component/index.d.ts +4 -3
- package/build-cjs/models/theme-json/component/prop/index.d.ts +4 -3
- package/build-cjs/models/theme-json/component/prop/index.js +0 -1
- package/build-cjs/models/theme-json/page/index.js +0 -1
- package/build-cjs/models/theme-json/settings/index.js +0 -1
- package/build-cjs/models/variant-type/index.js +0 -1
- package/build-cjs/models/variant-type/init.js +0 -1
- package/build-cjs/models/variant-type/variant-value/init.js +0 -1
- package/package.json +9 -3
- 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 -33
- package/src/models/category/path-item/index.ts +0 -9
- 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 -4
- package/src/models/city/index.ts +0 -11
- package/src/models/contact-form/index.ts +0 -7
- package/src/models/country/index.ts +0 -15
- 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.tsx +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/index.ts +0 -25
- 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 -90
- package/src/models/order/invoice/index.ts +0 -15
- package/src/models/order/line-item/discount/index.ts +0 -10
- package/src/models/order/line-item/index.ts +0 -34
- 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 -26
- package/src/models/order/line-item/variant/price/index.ts +0 -7
- 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 -39
- 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 -24
- 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/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 -96
- 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 -43
- 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 -20
- package/src/models/product/variant/init.ts +0 -10
- package/src/models/product/variant/price/index.ts +0 -7
- package/src/models/product/variant-type/index.ts +0 -6
- package/src/models/product/variant-type/init.ts +0 -15
- package/src/models/raffle/index.ts +0 -70
- 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 -30
- 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 -11
- 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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/models/order/line-item/index.ts"],"sourcesContent":["import { IkasOrderLineDiscount } from \"./discount\";\nimport { IkasOrderLineVariant } from \"./variant\";\nimport { IkasOrderLineItemOption } from \"./option\";\nimport { IkasBaseModel } from \"../../base\";\n\nexport type IkasOrderLineItem = {\n currencyCode: string | null;\n discount: IkasOrderLineDiscount | null;\n discountPrice: number | null;\n finalPrice: number | null;\n options: IkasOrderLineItemOption[] | null;\n originalOrderLineItemId: string | null;\n price: number;\n quantity: number;\n status: IkasOrderLineItemStatus;\n statusUpdatedAt: number | null;\n stockLocationId: string | null;\n taxValue: number | null;\n variant: IkasOrderLineVariant;\n orderedAt: number;\n} & IkasBaseModel;\n\nexport enum IkasOrderLineItemStatus {\n CANCELLED = \"CANCELLED\",\n CANCEL_REJECTED = \"CANCEL_REJECTED\",\n CANCEL_REQUESTED = \"CANCEL_REQUESTED\",\n DELIVERED = \"DELIVERED\",\n FULFILLED = \"FULFILLED\",\n REFUNDED = \"REFUNDED\",\n REFUND_REJECTED = \"REFUND_REJECTED\",\n REFUND_REQUESTED = \"REFUND_REQUESTED\",\n REFUND_REQUEST_ACCEPTED = \"REFUND_REQUEST_ACCEPTED\",\n UNFULFILLED = \"UNFULFILLED\",\n}\n"],"names":["IkasOrderLineItemStatus"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/models/order/line-item/index.ts"],"sourcesContent":["import { IkasOrderLineDiscount } from \"./discount\";\nimport { IkasOrderLineVariant } from \"./variant\";\nimport { IkasOrderLineItemOption } from \"./option\";\nimport { IkasBaseModel } from \"../../base\";\n\nexport type IkasOrderLineItem = {\n currencyCode: string | null;\n currencySymbol: string | null;\n discount: IkasOrderLineDiscount | null;\n discountPrice: number | null;\n finalPrice: number | null;\n finalUnitPrice: number | null;\n options: IkasOrderLineItemOption[] | null;\n originalOrderLineItemId: string | null;\n price: number;\n quantity: number;\n status: IkasOrderLineItemStatus;\n statusUpdatedAt: number | null;\n stockLocationId: string | null;\n taxValue: number | null;\n unitPrice: number | null;\n variant: IkasOrderLineVariant;\n orderedAt: number;\n} & IkasBaseModel;\n\nexport enum IkasOrderLineItemStatus {\n CANCELLED = \"CANCELLED\",\n CANCEL_REJECTED = \"CANCEL_REJECTED\",\n CANCEL_REQUESTED = \"CANCEL_REQUESTED\",\n DELIVERED = \"DELIVERED\",\n FULFILLED = \"FULFILLED\",\n REFUNDED = \"REFUNDED\",\n REFUND_REJECTED = \"REFUND_REJECTED\",\n REFUND_REQUESTED = \"REFUND_REQUESTED\",\n REFUND_REQUEST_ACCEPTED = \"REFUND_REQUEST_ACCEPTED\",\n UNFULFILLED = \"UNFULFILLED\",\n}\n"],"names":["IkasOrderLineItemStatus"],"mappings":"aAyBA,IAAYA,yDAAAA,QAWXA,6BAAA,GAXWA,EAAAA,QAAuBA,0BAAvBA,gCAWX,KAVC,UAAA,YACAA,EAAA,gBAAA,kBACAA,EAAA,iBAAA,mBACAA,EAAA,UAAA,YACAA,EAAA,UAAA,YACAA,EAAA,SAAA,WACAA,EAAA,gBAAA,kBACAA,EAAA,iBAAA,mBACAA,EAAA,wBAAA,0BACAA,EAAA,YAAA"}
|
|
@@ -3,8 +3,11 @@ import { IkasOrderLineVariantBrand } from "./brand";
|
|
|
3
3
|
import { IkasOrderLineVariantCategory } from "./category";
|
|
4
4
|
import { IkasOrderLineVariantPrice } from "./price";
|
|
5
5
|
import { IkasImage } from "../../../image";
|
|
6
|
+
import { IkasOrderLineBaseUnit } from "../base-unit";
|
|
7
|
+
import { IkasOrderLineVariantUnit } from "./unit";
|
|
6
8
|
export declare type IkasOrderLineVariant = {
|
|
7
9
|
barcodeList: string[] | null;
|
|
10
|
+
baseUnit: IkasOrderLineBaseUnit | null;
|
|
8
11
|
brand: IkasOrderLineVariantBrand | null;
|
|
9
12
|
categories: IkasOrderLineVariantCategory[] | null;
|
|
10
13
|
id: string | null;
|
|
@@ -17,6 +20,7 @@ export declare type IkasOrderLineVariant = {
|
|
|
17
20
|
tagIds: string[] | null;
|
|
18
21
|
taxValue: number | null;
|
|
19
22
|
type: number | null;
|
|
23
|
+
unit: IkasOrderLineVariantUnit | null;
|
|
20
24
|
weight: number | null;
|
|
21
25
|
variantValues: IkasOrderLineVariantVariantValue[] | null;
|
|
22
26
|
mainImage?: IkasImage | null;
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
"use strict";var E;Object.defineProperty(exports,"__esModule",{value:!0}),exports.IkasOrderPackageFullfillStatus=void 0,(E=exports.IkasOrderPackageFullfillStatus||(exports.IkasOrderPackageFullfillStatus={})).CANCELLED="CANCELLED",E.CANCEL_REJECTED="CANCEL_REJECTED",E.CANCEL_REQUESTED="CANCEL_REQUESTED",E.DELIVERED="DELIVERED",E.ERROR="ERROR",E.FULFILLED="FULFILLED",E.READY_FOR_PICK_UP="READY_FOR_PICK_UP",E.READY_FOR_SHIPMENT="READY_FOR_SHIPMENT",E.REFUNDED="REFUNDED",E.REFUND_REJECTED="REFUND_REJECTED",E.REFUND_REQUESTED="REFUND_REQUESTED",E.REFUND_REQUEST_ACCEPTED="REFUND_REQUEST_ACCEPTED",E.UNABLE_TO_DELIVER="UNABLE_TO_DELIVER";
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -6,6 +6,7 @@ export declare type IkasOrderTransaction = {
|
|
|
6
6
|
checkoutId: string | null;
|
|
7
7
|
createdAt: number | null;
|
|
8
8
|
currencyCode: string | null;
|
|
9
|
+
currencySymbol: string | null;
|
|
9
10
|
customerId: string | null;
|
|
10
11
|
error: IkasTransactionError | null;
|
|
11
12
|
id: string | null;
|
|
@@ -19,7 +20,6 @@ export declare type IkasOrderTransaction = {
|
|
|
19
20
|
status: IkasTransactionStatus | null;
|
|
20
21
|
type: IkasTransactionType | null;
|
|
21
22
|
updatedAt: number | null;
|
|
22
|
-
currencySymbol?: string | null;
|
|
23
23
|
};
|
|
24
24
|
export declare enum IkasTransactionStatus {
|
|
25
25
|
AUTHORIZED = "AUTHORIZED",
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
"use strict";var s,a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.IkasTransactionStatus=void 0,(s=exports.IkasTransactionStatus||(exports.IkasTransactionStatus={})).AUTHORIZED="AUTHORIZED",s.FAILED="FAILED",s.PENDING="PENDING",s.SUCCESS="SUCCESS",exports.IkasTransactionType=void 0,(a=exports.IkasTransactionType||(exports.IkasTransactionType={})).REFUND="REFUND",a.SALE="SALE",a.VOID="VOID";
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/models/order/transaction/index.ts"],"sourcesContent":["import { IkasPaymentMethodType } from \"../../payment-gateway\";\nimport { IkasTransactionError } from \"./error\";\nimport { IkasTransactionPaymentMethodDetail } from \"./payment-method-detail\";\n\nexport type IkasOrderTransaction = {\n amount: number | null;\n checkoutId: string | null;\n createdAt: number | null;\n currencyCode: string | null;\n customerId: string | null;\n error: IkasTransactionError | null;\n id: string | null;\n orderId: string | null;\n paymentGatewayId: string | null;\n paymentGatewayName: string | null;\n paymentMethod: IkasPaymentMethodType | null;\n paymentMethodDetail: IkasTransactionPaymentMethodDetail | null;\n processedAt: number | null;\n refundReason: string | null;\n status: IkasTransactionStatus | null;\n type: IkasTransactionType | null;\n updatedAt: number | null;\n
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/models/order/transaction/index.ts"],"sourcesContent":["import { IkasPaymentMethodType } from \"../../payment-gateway\";\nimport { IkasTransactionError } from \"./error\";\nimport { IkasTransactionPaymentMethodDetail } from \"./payment-method-detail\";\n\nexport type IkasOrderTransaction = {\n amount: number | null;\n checkoutId: string | null;\n createdAt: number | null;\n currencyCode: string | null;\n currencySymbol: string | null;\n customerId: string | null;\n error: IkasTransactionError | null;\n id: string | null;\n orderId: string | null;\n paymentGatewayId: string | null;\n paymentGatewayName: string | null;\n paymentMethod: IkasPaymentMethodType | null;\n paymentMethodDetail: IkasTransactionPaymentMethodDetail | null;\n processedAt: number | null;\n refundReason: string | null;\n status: IkasTransactionStatus | null;\n type: IkasTransactionType | null;\n updatedAt: number | null;\n};\n\nexport enum IkasTransactionStatus {\n AUTHORIZED = \"AUTHORIZED\",\n FAILED = \"FAILED\",\n PENDING = \"PENDING\",\n SUCCESS = \"SUCCESS\",\n}\n\nexport enum IkasTransactionType {\n REFUND = \"REFUND\",\n SALE = \"SALE\",\n VOID = \"VOID\",\n}\n"],"names":["IkasTransactionStatus","IkasTransactionType"],"mappings":"aAyBA,IAAYA,EAOAC,yDAPAD,QAKXA,2BAAA,GALWA,EAAAA,gCAAAA,QAAAA,sBAKX,KAJC,WAAA,aACAA,EAAA,OAAA,SACAA,EAAA,QAAA,UACAA,EAAA,QAAA,UAGUC,QAIXA,yBAAA,GAJWA,EAAAA,QAAmBA,sBAAnBA,4BAIX,KAHC,OAAA,SACAA,EAAA,KAAA,OACAA,EAAA,KAAA"}
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
"use strict";var a,s;Object.defineProperty(exports,"__esModule",{value:!0}),exports.IkasTransactionCardAssociation=void 0,(a=exports.IkasTransactionCardAssociation||(exports.IkasTransactionCardAssociation={})).AMERICAN_EXPRESS="AMERICAN_EXPRESS",a.MASTER_CARD="MASTER_CARD",a.TROY="TROY",a.VISA="VISA",exports.IkasTransactionCardType=void 0,(s=exports.IkasTransactionCardType||(exports.IkasTransactionCardType={})).CREDIT="CREDIT",s.DEBIT="DEBIT",s.PREPAID="PREPAID";
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
"use strict";var e,a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.IkasPaymentGatewayTransactionFeeType=void 0,(e=exports.IkasPaymentGatewayTransactionFeeType||(exports.IkasPaymentGatewayTransactionFeeType={})).AMOUNT="AMOUNT",e.RATIO="RATIO",exports.IkasPaymentGatewayAdditionalPriceType=void 0,(a=exports.IkasPaymentGatewayAdditionalPriceType||(exports.IkasPaymentGatewayAdditionalPriceType={})).DECREMENT="DECREMENT",a.INCREMENT="INCREMENT";
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
"use strict";var e,E;Object.defineProperty(exports,"__esModule",{value:!0}),exports.IkasPaymentMethodType=void 0,(e=exports.IkasPaymentMethodType||(exports.IkasPaymentMethodType={})).APP_PAYMENT="APP_PAYMENT",e.BUY_ONLINE_PAY_AT_STORE="BUY_ONLINE_PAY_AT_STORE",e.CASH="CASH",e.CASH_ON_DELIVERY="CASH_ON_DELIVERY",e.CREDIT_CARD="CREDIT_CARD",e.CREDIT_CARD_ON_DELIVERY="CREDIT_CARD_ON_DELIVERY",e.GIFT_CARD="GIFT_CARD",e.MONEY_ORDER="MONEY_ORDER",e.OTHER="OTHER",e.WALLET="WALLET",exports.IkasPaymentGatewayType=void 0,(E=exports.IkasPaymentGatewayType||(exports.IkasPaymentGatewayType={})).EXTERNAL="EXTERNAL",E.INTERNAL="INTERNAL",E.THIRD_PARTY="THIRD_PARTY";
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.initIkasPaymentGateway=function(n,e){n.translations&&e&&(!function(n,e,t){if(e&&e.some((function(n){return n.locale===t}))){var i=e.find((function(n){return n.locale===t}));(null==i?void 0:i.name)&&(n.name=i.name),(null==i?void 0:i.description)&&(n.description=i.description)}}(n,n.translations,e),delete n.translations)};
|
|
2
|
-
//# sourceMappingURL=init.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
"use strict";var e;Object.defineProperty(exports,"__esModule",{value:!0}),exports.IkasPaymentGatewaySettingsType=void 0,(e=exports.IkasPaymentGatewaySettingsType||(exports.IkasPaymentGatewaySettingsType={})).NUMBER="NUMBER",e.PASSWORD="PASSWORD",e.TEXT="TEXT";
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use strict";var t;Object.defineProperty(exports,"__esModule",{value:!0}),exports.IkasProductAttributeType=void 0,(t=exports.IkasProductAttributeType||(exports.IkasProductAttributeType={})).CHOICE="CHOICE",t.MULTIPLE_CHOICE="MULTIPLE_CHOICE",t.TEXT="TEXT",t.BOOLEAN="BOOLEAN",t.NUMERIC="NUMERIC",t.DATETIME="DATETIME",t.HTML="HTML",t.TABLE="TABLE";
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
"use strict";var t;Object.defineProperty(exports,"__esModule",{value:!0}),exports.IkasProductAttributeType=void 0,(t=exports.IkasProductAttributeType||(exports.IkasProductAttributeType={})).CHOICE="CHOICE",t.MULTIPLE_CHOICE="MULTIPLE_CHOICE",t.TEXT="TEXT",t.BOOLEAN="BOOLEAN",t.NUMERIC="NUMERIC",t.DATETIME="DATETIME",t.HTML="HTML",t.TABLE="TABLE",t.IMAGE="IMAGE",t.PRODUCT="PRODUCT";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/models/product/attribute/index.ts"],"sourcesContent":["import { IkasProductAttributeTableTemplate } from \"./table-template\";\nimport { IkasProductAttributeOption } from \"./option\";\nimport { IkasProductAttributeTranslation } from \"./translation\";\n\nexport type IkasProductAttribute = {\n id: string;\n name: string;\n description: string | null;\n type: IkasProductAttributeType;\n options: IkasProductAttributeOption[] | null;\n tableTemplate: IkasProductAttributeTableTemplate | null;\n translations?: IkasProductAttributeTranslation[] | null;\n};\n\nexport enum IkasProductAttributeType {\n CHOICE = \"CHOICE\",\n MULTIPLE_CHOICE = \"MULTIPLE_CHOICE\",\n TEXT = \"TEXT\",\n BOOLEAN = \"BOOLEAN\",\n NUMERIC = \"NUMERIC\",\n DATETIME = \"DATETIME\",\n HTML = \"HTML\",\n TABLE = \"TABLE\",\n}\n"],"names":["IkasProductAttributeType"],"mappings":"aAcA,IAAYA,yDAAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/models/product/attribute/index.ts"],"sourcesContent":["import { IkasProductAttributeTableTemplate } from \"./table-template\";\nimport { IkasProductAttributeOption } from \"./option\";\nimport { IkasProductAttributeTranslation } from \"./translation\";\n\nexport type IkasProductAttribute = {\n id: string;\n name: string;\n description: string | null;\n type: IkasProductAttributeType;\n options: IkasProductAttributeOption[] | null;\n tableTemplate: IkasProductAttributeTableTemplate | null;\n translations?: IkasProductAttributeTranslation[] | null;\n};\n\nexport enum IkasProductAttributeType {\n CHOICE = \"CHOICE\",\n MULTIPLE_CHOICE = \"MULTIPLE_CHOICE\",\n TEXT = \"TEXT\",\n BOOLEAN = \"BOOLEAN\",\n NUMERIC = \"NUMERIC\",\n DATETIME = \"DATETIME\",\n HTML = \"HTML\",\n TABLE = \"TABLE\",\n IMAGE = \"IMAGE\",\n PRODUCT = \"PRODUCT\",\n}\n"],"names":["IkasProductAttributeType"],"mappings":"aAcA,IAAYA,yDAAAA,QAWXA,8BAAA,GAXWA,EAAAA,QAAwBA,2BAAxBA,iCAWX,KAVC,OAAA,SACAA,EAAA,gBAAA,kBACAA,EAAA,KAAA,OACAA,EAAA,QAAA,UACAA,EAAA,QAAA,UACAA,EAAA,SAAA,WACAA,EAAA,KAAA,OACAA,EAAA,MAAA,QACAA,EAAA,MAAA,QACAA,EAAA,QAAA"}
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.initIkasProductAttribute=function(n,i){n.translations&&i&&(!function(n,i,o){var t;if(i&&i.some((function(n){return n.locale===o}))){var e=i.find((function(n){return n.locale===o}));(null==e?void 0:e.name)&&(n.name=e.name),(null==e?void 0:e.description)&&(n.description=e.description),(null==e?void 0:e.options)&&(null===(t=n.options)||void 0===t||t.forEach((function(n){var i,o=null===(i=e.options)||void 0===i?void 0:i.find((function(i){return i.id===n.id}));o&&o.name&&(n.name=o.name)})))}}(n,n.translations,i),delete n.translations)};
|
|
2
|
-
//# sourceMappingURL=init.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IkasProductUnitType } from "../../order/line-item/base-unit";
|
|
2
|
+
export declare type IkasProductBaseUnit = {
|
|
3
|
+
baseAmount: number | null;
|
|
4
|
+
type: IkasProductUnitType;
|
|
5
|
+
unit: IkasProductUnit;
|
|
6
|
+
};
|
|
7
|
+
export declare type IkasProductUnit = {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
};
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
"use strict";var a,e,p;Object.defineProperty(exports,"__esModule",{value:!0}),exports.IkasCampaignApplicablePrice=void 0,(a=exports.IkasCampaignApplicablePrice||(exports.IkasCampaignApplicablePrice={})).DISCOUNT_PRICE="DISCOUNT_PRICE",a.SELL_PRICE="SELL_PRICE",exports.IkasCampaignCreatedFor=void 0,(e=exports.IkasCampaignCreatedFor||(exports.IkasCampaignCreatedFor={})).ABANDONED_CHECKOUT="ABANDONED_CHECKOUT",e.CART="CART",e.CUSTOMER_REVIEW="CUSTOMER_REVIEW",exports.IkasCampaignType=void 0,(p=exports.IkasCampaignType||(exports.IkasCampaignType={})).BUY_X_THEN_GET_Y="BUY_X_THEN_GET_Y",p.FIXED_AMOUNT="FIXED_AMOUNT",p.FREE_SHIPPING="FREE_SHIPPING",p.RATIO="FREE_SHIPPING";
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
"use strict";var e;Object.defineProperty(exports,"__esModule",{value:!0}),exports.IkasCampaignFilterType=void 0,(e=exports.IkasCampaignFilterType||(exports.IkasCampaignFilterType={})).CATEGORY="CATEGORY",e.PRODUCT="PRODUCT",e.PRODUCT_BRAND="PRODUCT_BRAND",e.PRODUCT_TAG="PRODUCT_TAG",e.VARIANT="VARIANT";
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -36,6 +36,7 @@ export declare type IkasProductFilterSettings = {
|
|
|
36
36
|
showCollapsedOnDesktop: boolean;
|
|
37
37
|
showCollapsedOnMobile: boolean;
|
|
38
38
|
sortType: IkasProductFilterSortType;
|
|
39
|
+
customSortedValues: string[] | null;
|
|
39
40
|
};
|
|
40
41
|
export declare type IkasProductFacetInput = {
|
|
41
42
|
id: string;
|
|
@@ -63,7 +64,8 @@ export declare enum IkasProductFilterSortType {
|
|
|
63
64
|
ALPHABETICAL_ASC = "ALPHABETICAL_ASC",
|
|
64
65
|
ALPHABETICAL_DESC = "ALPHABETICAL_DESC",
|
|
65
66
|
PRODUCT_COUNT_ASC = "PRODUCT_COUNT_ASC",
|
|
66
|
-
PRODUCT_COUNT_DESC = "PRODUCT_COUNT_DESC"
|
|
67
|
+
PRODUCT_COUNT_DESC = "PRODUCT_COUNT_DESC",
|
|
68
|
+
CUSTOM_SORT = "CUSTOM_SORT"
|
|
67
69
|
}
|
|
68
70
|
export declare enum IkasProductStockFilterValue {
|
|
69
71
|
IN_STOCK = "in-stock",
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use strict";var T,t,e,r;Object.defineProperty(exports,"__esModule",{value:!0}),exports.IkasProductFilterType=void 0,(T=exports.IkasProductFilterType||(exports.IkasProductFilterType={})).ATTRIBUTE="ATTRIBUTE",T.BRAND="BRAND",T.DISCOUNT_RATIO="DISCOUNT_RATIO",T.PRICE="PRICE",T.STOCK_STATUS="STOCK_STATUS",T.TAG="TAG",T.VARIANT_TYPE="VARIANT_TYPE",exports.IkasProductFilterDisplayType=void 0,(t=exports.IkasProductFilterDisplayType||(exports.IkasProductFilterDisplayType={})).BOX="BOX",t.DATE_RANGE="DATE_RANGE",t.LIST="LIST",t.NUMBER_RANGE_LIST="NUMBER_RANGE_LIST",t.NUMBER_RANGE="NUMBER_RANGE",t.SWATCH="SWATCH",exports.IkasProductFilterSortType=void 0,(e=exports.IkasProductFilterSortType||(exports.IkasProductFilterSortType={})).ALPHABETICAL_ASC="ALPHABETICAL_ASC",e.ALPHABETICAL_DESC="ALPHABETICAL_DESC",e.PRODUCT_COUNT_ASC="PRODUCT_COUNT_ASC",e.PRODUCT_COUNT_DESC="PRODUCT_COUNT_DESC",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
|
+
"use strict";var T,t,e,r;Object.defineProperty(exports,"__esModule",{value:!0}),exports.IkasProductFilterType=void 0,(T=exports.IkasProductFilterType||(exports.IkasProductFilterType={})).ATTRIBUTE="ATTRIBUTE",T.BRAND="BRAND",T.DISCOUNT_RATIO="DISCOUNT_RATIO",T.PRICE="PRICE",T.STOCK_STATUS="STOCK_STATUS",T.TAG="TAG",T.VARIANT_TYPE="VARIANT_TYPE",exports.IkasProductFilterDisplayType=void 0,(t=exports.IkasProductFilterDisplayType||(exports.IkasProductFilterDisplayType={})).BOX="BOX",t.DATE_RANGE="DATE_RANGE",t.LIST="LIST",t.NUMBER_RANGE_LIST="NUMBER_RANGE_LIST",t.NUMBER_RANGE="NUMBER_RANGE",t.SWATCH="SWATCH",exports.IkasProductFilterSortType=void 0,(e=exports.IkasProductFilterSortType||(exports.IkasProductFilterSortType={})).ALPHABETICAL_ASC="ALPHABETICAL_ASC",e.ALPHABETICAL_DESC="ALPHABETICAL_DESC",e.PRODUCT_COUNT_ASC="PRODUCT_COUNT_ASC",e.PRODUCT_COUNT_DESC="PRODUCT_COUNT_DESC",e.CUSTOM_SORT="CUSTOM_SORT",exports.IkasProductStockFilterValue=void 0,(r=exports.IkasProductStockFilterValue||(exports.IkasProductStockFilterValue={})).IN_STOCK="in-stock",r.OUT_OF_STOCK="out-of-stock";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/models/product/filter/index.ts"],"sourcesContent":["import { IkasImage } from \"../../image\";\n\nexport type IkasProductFilter = {\n id: string;\n key: string;\n name: string;\n order: number;\n type: IkasProductFilterType;\n displayType: IkasProductFilterDisplayType;\n isMultiSelect: boolean;\n isFacetFilter: boolean | null;\n values?: IkasApplicableProductFilterValue[] | null;\n customValues?: string[] | null;\n settings?: IkasProductFilterSettings | null;\n\n // Extra\n numberRange?: IkasFilterRangeValue | null; // Selected range value for the number slider\n numberRangeLimit?: IkasFilterRangeValue | null; // Limits for the number range slider\n numberRangeListOptions?: IkasProductFilterNumberRangeListOption[] | null; // List options for the number range select\n};\n\nexport type IkasApplicableProductFilterValue = {\n id: string;\n key: string;\n name: string;\n colorCode?: string | null;\n thumbnailImageId?: string | null;\n thumbnailImage?: IkasImage | null;\n resultCount?: number | null;\n\n // Extra\n isSelected: boolean;\n};\n\nexport type IkasProductFilterValue = {\n id: string;\n type: IkasProductFilterType;\n displayType: IkasProductFilterDisplayType;\n valueList: string[];\n};\n\nexport type IkasProductFilterSettings = {\n useAndFilter?: boolean | null;\n showCollapsedOnDesktop: boolean;\n showCollapsedOnMobile: boolean;\n sortType: IkasProductFilterSortType;\n};\n\nexport type IkasProductFacetInput = {\n id: string;\n type: IkasProductFilterType;\n displayType: IkasProductFilterDisplayType;\n};\n\nexport enum IkasProductFilterType {\n ATTRIBUTE = \"ATTRIBUTE\",\n BRAND = \"BRAND\",\n DISCOUNT_RATIO = \"DISCOUNT_RATIO\",\n PRICE = \"PRICE\",\n STOCK_STATUS = \"STOCK_STATUS\",\n TAG = \"TAG\",\n VARIANT_TYPE = \"VARIANT_TYPE\",\n}\n\nexport enum IkasProductFilterDisplayType {\n BOX = \"BOX\",\n DATE_RANGE = \"DATE_RANGE\",\n LIST = \"LIST\",\n NUMBER_RANGE_LIST = \"NUMBER_RANGE_LIST\",\n NUMBER_RANGE = \"NUMBER_RANGE\",\n SWATCH = \"SWATCH\",\n}\n\nexport enum IkasProductFilterSortType {\n ALPHABETICAL_ASC = \"ALPHABETICAL_ASC\",\n ALPHABETICAL_DESC = \"ALPHABETICAL_DESC\",\n PRODUCT_COUNT_ASC = \"PRODUCT_COUNT_ASC\",\n PRODUCT_COUNT_DESC = \"PRODUCT_COUNT_DESC\",\n}\n\nexport enum IkasProductStockFilterValue {\n IN_STOCK = \"in-stock\",\n OUT_OF_STOCK = \"out-of-stock\",\n}\n\nexport type IkasFilterRangeValue = {\n from: number;\n to: number | undefined | null;\n};\n\nexport type IkasProductFilterNumberRangeListOption = {\n from: number;\n to: number | undefined | null;\n key: string;\n isSelected: boolean;\n};\n"],"names":["IkasProductFilterType","IkasProductFilterDisplayType","IkasProductFilterSortType","IkasProductStockFilterValue"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/models/product/filter/index.ts"],"sourcesContent":["import { IkasImage } from \"../../image\";\n\nexport type IkasProductFilter = {\n id: string;\n key: string;\n name: string;\n order: number;\n type: IkasProductFilterType;\n displayType: IkasProductFilterDisplayType;\n isMultiSelect: boolean;\n isFacetFilter: boolean | null;\n values?: IkasApplicableProductFilterValue[] | null;\n customValues?: string[] | null;\n settings?: IkasProductFilterSettings | null;\n\n // Extra\n numberRange?: IkasFilterRangeValue | null; // Selected range value for the number slider\n numberRangeLimit?: IkasFilterRangeValue | null; // Limits for the number range slider\n numberRangeListOptions?: IkasProductFilterNumberRangeListOption[] | null; // List options for the number range select\n};\n\nexport type IkasApplicableProductFilterValue = {\n id: string;\n key: string;\n name: string;\n colorCode?: string | null;\n thumbnailImageId?: string | null;\n thumbnailImage?: IkasImage | null;\n resultCount?: number | null;\n\n // Extra\n isSelected: boolean;\n};\n\nexport type IkasProductFilterValue = {\n id: string;\n type: IkasProductFilterType;\n displayType: IkasProductFilterDisplayType;\n valueList: string[];\n};\n\nexport type IkasProductFilterSettings = {\n useAndFilter?: boolean | null;\n showCollapsedOnDesktop: boolean;\n showCollapsedOnMobile: boolean;\n sortType: IkasProductFilterSortType;\n customSortedValues: string[] | null;\n};\n\nexport type IkasProductFacetInput = {\n id: string;\n type: IkasProductFilterType;\n displayType: IkasProductFilterDisplayType;\n};\n\nexport enum IkasProductFilterType {\n ATTRIBUTE = \"ATTRIBUTE\",\n BRAND = \"BRAND\",\n DISCOUNT_RATIO = \"DISCOUNT_RATIO\",\n PRICE = \"PRICE\",\n STOCK_STATUS = \"STOCK_STATUS\",\n TAG = \"TAG\",\n VARIANT_TYPE = \"VARIANT_TYPE\",\n}\n\nexport enum IkasProductFilterDisplayType {\n BOX = \"BOX\",\n DATE_RANGE = \"DATE_RANGE\",\n LIST = \"LIST\",\n NUMBER_RANGE_LIST = \"NUMBER_RANGE_LIST\",\n NUMBER_RANGE = \"NUMBER_RANGE\",\n SWATCH = \"SWATCH\",\n}\n\nexport enum IkasProductFilterSortType {\n ALPHABETICAL_ASC = \"ALPHABETICAL_ASC\",\n ALPHABETICAL_DESC = \"ALPHABETICAL_DESC\",\n PRODUCT_COUNT_ASC = \"PRODUCT_COUNT_ASC\",\n PRODUCT_COUNT_DESC = \"PRODUCT_COUNT_DESC\",\n CUSTOM_SORT = \"CUSTOM_SORT\",\n}\n\nexport enum IkasProductStockFilterValue {\n IN_STOCK = \"in-stock\",\n OUT_OF_STOCK = \"out-of-stock\",\n}\n\nexport type IkasFilterRangeValue = {\n from: number;\n to: number | undefined | null;\n};\n\nexport type IkasProductFilterNumberRangeListOption = {\n from: number;\n to: number | undefined | null;\n key: string;\n isSelected: boolean;\n};\n"],"names":["IkasProductFilterType","IkasProductFilterDisplayType","IkasProductFilterSortType","IkasProductStockFilterValue"],"mappings":"aAuDA,IAAYA,EAUAC,EASAC,EAQAC,yDA3BAH,QAQXA,2BAAA,GARWA,EAAAA,gCAAAA,QAAAA,sBAQX,KAPC,UAAA,YACAA,EAAA,MAAA,QACAA,EAAA,eAAA,iBACAA,EAAA,MAAA,QACAA,EAAA,aAAA,eACAA,EAAA,IAAA,MACAA,EAAA,aAAA,eAGUC,QAOXA,kCAAA,GAPWA,EAAAA,uCAAAA,QAAAA,6BAOX,KANC,IAAA,MACAA,EAAA,WAAA,aACAA,EAAA,KAAA,OACAA,EAAA,kBAAA,oBACAA,EAAA,aAAA,eACAA,EAAA,OAAA,SAGUC,QAMXA,+BAAA,GANWA,EAAAA,oCAAAA,QAAAA,0BAMX,KALC,iBAAA,mBACAA,EAAA,kBAAA,oBACAA,EAAA,kBAAA,oBACAA,EAAA,mBAAA,qBACAA,EAAA,YAAA,cAGUC,QAGXA,iCAAA,GAHWA,EAAAA,QAA2BA,8BAA3BA,oCAGX,KAFC,SAAA,WACAA,EAAA,aAAA"}
|
|
@@ -7,6 +7,7 @@ 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";
|
|
10
11
|
export declare type IkasProduct = {
|
|
11
12
|
id: string;
|
|
12
13
|
name: string;
|
|
@@ -21,6 +22,7 @@ export declare type IkasProduct = {
|
|
|
21
22
|
attributes: IkasProductAttributeValue[];
|
|
22
23
|
variantTypes: IkasProductVariantType[];
|
|
23
24
|
productOptionSetId: string | null;
|
|
25
|
+
baseUnit: IkasProductBaseUnit | null;
|
|
24
26
|
};
|
|
25
27
|
export declare enum IkasProductType {
|
|
26
28
|
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\";\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":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/models/product/index.ts"],"sourcesContent":["import { IkasCategory } from \"../category\";\nimport { IkasProductVariant } from \"./variant\";\nimport { IkasProductAttributeValue } from \"./attribute-value\";\nimport { IkasProductVariantType } from \"./variant-type\";\nimport { IkasBrand } from \"../brand\";\nimport { IkasHTMLMetaData } from \"../html-meta-data\";\nimport { IkasProductTag } from \"./tag\";\nimport { IkasVariantValue } from \"../variant-type/variant-value\";\nimport { IkasVariantType } from \"../variant-type\";\nimport { IkasProductBaseUnit } from \"./base-unit\";\n\nexport type IkasProduct = {\n id: string;\n name: string;\n type: IkasProductType;\n description: string;\n shortDescription: string;\n metaData: IkasHTMLMetaData | null;\n brand: IkasBrand | null;\n categories: IkasCategory[];\n tags: IkasProductTag[] | null;\n variants: IkasProductVariant[];\n attributes: IkasProductAttributeValue[];\n variantTypes: IkasProductVariantType[];\n productOptionSetId: string | null;\n baseUnit: IkasProductBaseUnit | null;\n};\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":"aA4BA,IAAYA,yDAAAA,QAIXA,qBAAA,GAJWA,EAAAA,QAAeA,kBAAfA,wBAIX,KAHC,SAAA,WACAA,EAAA,QAAA,UACAA,EAAA,WAAA"}
|
|
@@ -1,2 +1 @@
|
|
|
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,2 +1 @@
|
|
|
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,2 +1 @@
|
|
|
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,2 +1 @@
|
|
|
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,6 +3,7 @@ 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";
|
|
6
7
|
export declare type IkasProductVariant = {
|
|
7
8
|
id: string;
|
|
8
9
|
sku: string | null;
|
|
@@ -16,4 +17,5 @@ export declare type IkasProductVariant = {
|
|
|
16
17
|
sellIfOutOfStock: boolean;
|
|
17
18
|
images: IkasProductImage[] | null;
|
|
18
19
|
campaigns?: IkasProductCampaign[];
|
|
20
|
+
unit: IkasProductVariantUnit | null;
|
|
19
21
|
};
|
|
@@ -1,2 +1 @@
|
|
|
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,2 +1 @@
|
|
|
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,13 +15,11 @@ export declare type IkasRaffle = {
|
|
|
15
15
|
dateRange: IkasRaffleDateRangeField | null;
|
|
16
16
|
metadata: IkasRaffleMetaData | null;
|
|
17
17
|
name: string;
|
|
18
|
-
participantCount?: number | null;
|
|
19
18
|
requiredCustomerAccount: boolean;
|
|
20
19
|
status: boolean;
|
|
21
20
|
variants: IkasRaffleAppliedProduct[] | null;
|
|
22
21
|
products: IkasProduct[];
|
|
23
22
|
verificationType: IkasRaffleVerificationType;
|
|
24
|
-
isCustomerWinner: boolean | null;
|
|
25
23
|
};
|
|
26
24
|
export declare enum IkasRaffleMetadataTargetType {
|
|
27
25
|
RAFFLE = "RAFFLE"
|
|
@@ -52,7 +50,9 @@ export declare type IkasRaffleParticipant = {
|
|
|
52
50
|
email: string;
|
|
53
51
|
applicationDate: number;
|
|
54
52
|
phone: string | null;
|
|
55
|
-
|
|
53
|
+
isDeliveredCargo: boolean | null;
|
|
54
|
+
raffle: IkasRaffle | null;
|
|
55
|
+
status: IkasRaffleParticipantStatus | null;
|
|
56
56
|
extraData: Record<string, any> | null;
|
|
57
57
|
appliedProduct: IkasRaffleAppliedProduct;
|
|
58
58
|
};
|
|
@@ -60,3 +60,9 @@ 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,2 +1 @@
|
|
|
1
|
-
"use strict";var e;Object.defineProperty(exports,"__esModule",{value:!0}),exports.IkasRaffleVerificationType=void 0,(
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
"use strict";var a,e;Object.defineProperty(exports,"__esModule",{value:!0}),exports.IkasRaffleVerificationType=void 0,(a=exports.IkasRaffleVerificationType||(exports.IkasRaffleVerificationType={})).EMAIL="EMAIL",a.MERSIS="MERSIS",exports.IkasRaffleMetadataTargetType=void 0,(exports.IkasRaffleMetadataTargetType||(exports.IkasRaffleMetadataTargetType={})).RAFFLE="RAFFLE",exports.IkasRaffleParticipantStatus=void 0,(e=exports.IkasRaffleParticipantStatus||(exports.IkasRaffleParticipantStatus={})).COMPLETED="COMPLETED",e.IN_PROGRESS="IN_PROGRESS",e.LOSER="LOSER",e.WINNER="WINNER";
|
|
@@ -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
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/models/raffle/index.ts"],"sourcesContent":["import { IkasProduct } from \"../product\";\n\nexport type IkasRaffleDateRangeField = {\n start: number | null;\n end: number | null;\n};\n\nexport enum IkasRaffleVerificationType {\n EMAIL = \"EMAIL\",\n MERSIS = \"MERSIS\",\n}\n\nexport type IkasRaffle = {\n id: string;\n createdAt: number;\n updatedAt: number;\n deleted: boolean | null;\n dateRange: IkasRaffleDateRangeField | null;\n metadata: IkasRaffleMetaData | null;\n name: string;\n requiredCustomerAccount: boolean;\n status: boolean;\n variants: IkasRaffleAppliedProduct[] | null;\n products: IkasProduct[];\n verificationType: IkasRaffleVerificationType;\n};\n\nexport enum IkasRaffleMetadataTargetType {\n RAFFLE = \"RAFFLE\",\n}\n\nexport type IkasRaffleMetaData = {\n id: string;\n createdAt: number;\n updatedAt: number;\n deleted: boolean | null;\n description: string | null;\n pageTitle: string | null;\n slug: string;\n targetId: string | null;\n targetType: IkasRaffleMetadataTargetType | null;\n canonicals: string[] | null;\n disableIndex: boolean | null;\n};\n\nexport type IkasRaffleParticipant = {\n id: string | null;\n createdAt: number | null;\n updatedAt: number | null;\n deleted: boolean | null;\n customerId: string | null;\n raffleId: string;\n firstName: string;\n lastName: string;\n fullName: string | null;\n email: string;\n applicationDate: number;\n phone: string | null;\n isDeliveredCargo: boolean | null;\n\n raffle: IkasRaffle | null;\n status: IkasRaffleParticipantStatus | null;\n extraData: Record<string, any> | null;\n appliedProduct: IkasRaffleAppliedProduct;\n};\n\nexport type IkasRaffleAppliedProduct = {\n productId: string;\n variantId: string;\n};\n\nexport enum IkasRaffleParticipantStatus {\n COMPLETED = \"COMPLETED\",\n IN_PROGRESS = \"IN_PROGRESS\",\n LOSER = \"LOSER\",\n WINNER = \"WINNER\",\n}\n"],"names":["IkasRaffleVerificationType","IkasRaffleParticipantStatus","IkasRaffleMetadataTargetType"],"mappings":"aAOA,IAAYA,EAgEAC,yDAhEAD,QAGXA,gCAAA,GAHWA,EAAAA,qCAAAA,QAAAA,2BAGX,KAFC,MAAA,QACAA,EAAA,OAAA,SAkBUE,QAEXA,kCAAA,GAFWA,uCAAAA,QAAAA,6BAEX,KADC,OAAA,SA2CUD,QAKXA,iCAAA,GALWA,EAAAA,QAA2BA,8BAA3BA,oCAKX,KAJC,UAAA,YACAA,EAAA,YAAA,cACAA,EAAA,MAAA,QACAA,EAAA,OAAA"}
|
|
@@ -1,2 +1 @@
|
|
|
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,6 +2,7 @@ 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";
|
|
5
6
|
export declare enum IkasStorefrontStatus {
|
|
6
7
|
WAITING = "WAITING",
|
|
7
8
|
READY = "READY"
|
|
@@ -19,6 +20,9 @@ export declare type IkasStorefront = {
|
|
|
19
20
|
analytics4Id: string | null;
|
|
20
21
|
universalAnalyticsId: string | null;
|
|
21
22
|
tiktokPixelId: string | null;
|
|
23
|
+
token: string | null;
|
|
24
|
+
metaTemplates: IkasStorefontMetaTemplates[] | null;
|
|
25
|
+
robotsTxt: string | null;
|
|
22
26
|
localizations: IkasStorefrontLocalization[];
|
|
23
27
|
routings: IkasStorefrontRouting[];
|
|
24
28
|
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\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"}
|
|
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 token: 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"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare type IkasStorefontMetaTemplates = {
|
|
2
|
+
descriptionTemplate: string | null;
|
|
3
|
+
locale: string | null;
|
|
4
|
+
pageType: StorefrontPageTypesEnum | null;
|
|
5
|
+
titleTemplate: string | null;
|
|
6
|
+
};
|
|
7
|
+
export declare enum StorefrontPageTypesEnum {
|
|
8
|
+
BLOG = "BLOG",
|
|
9
|
+
BLOG_CATEGORY = "BLOG_CATEGORY",
|
|
10
|
+
BRAND = "BRAND",
|
|
11
|
+
CATEGORY = "CATEGORY",
|
|
12
|
+
CUSTOM = "CUSTOM",
|
|
13
|
+
PRODUCT = "PRODUCT"
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e;Object.defineProperty(exports,"__esModule",{value:!0}),exports.StorefrontPageTypesEnum=void 0,(e=exports.StorefrontPageTypesEnum||(exports.StorefrontPageTypesEnum={})).BLOG="BLOG",e.BLOG_CATEGORY="BLOG_CATEGORY",e.BRAND="BRAND",e.CATEGORY="CATEGORY",e.CUSTOM="CUSTOM",e.PRODUCT="PRODUCT";
|
|
@@ -2,14 +2,15 @@ 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>;
|
|
13
14
|
};
|
|
14
15
|
export declare type IkasThemeJsonComponentTranslation = {
|
|
15
16
|
displayName: string | null;
|
|
@@ -2,17 +2,18 @@ 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;
|
|
10
11
|
requiredPropId?: string;
|
|
11
12
|
requiredEnumOptionId?: string;
|
|
12
13
|
requiredEnumOptionValue?: string;
|
|
13
14
|
attributeTypes?: IkasProductAttributeType[] | null;
|
|
14
15
|
sliderData: IkasThemeJsonSliderData;
|
|
15
|
-
translations
|
|
16
|
+
translations?: {
|
|
16
17
|
[locale: string]: IkasPropTranslation;
|
|
17
18
|
};
|
|
18
19
|
};
|
|
@@ -1,2 +1 @@
|
|
|
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,2 +1 @@
|
|
|
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,2 +1 @@
|
|
|
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,2 +1 @@
|
|
|
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,15 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ikas/storefront-models",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.81",
|
|
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": "./build/index.js",
|
|
9
9
|
"files": [
|
|
10
|
-
"./
|
|
10
|
+
"./build",
|
|
11
11
|
"./build-cjs"
|
|
12
12
|
],
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"require": "./build-cjs/index.js",
|
|
16
|
+
"import": "./build/index.js"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
13
19
|
"scripts": {
|
|
14
20
|
"pack": "npm pack",
|
|
15
21
|
"release": "npm publish",
|
package/src/models/base/index.ts
DELETED
package/src/models/base/init.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { IkasBaseModel } from ".";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Creates an empty base model object
|
|
5
|
-
* @returns An initialized empty base model object.
|
|
6
|
-
*/
|
|
7
|
-
export function createIkasBaseModel(): IkasBaseModel {
|
|
8
|
-
return {
|
|
9
|
-
id: "",
|
|
10
|
-
createdAt: Date.now(),
|
|
11
|
-
updatedAt: Date.now(),
|
|
12
|
-
deleted: false,
|
|
13
|
-
};
|
|
14
|
-
}
|