@ikas/storefront 5.0.0-beta.2 → 5.0.0-beta.20
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/analytics/analytics.d.ts +32 -37
- package/build/analytics/analytics.js +1 -1
- package/build/analytics/events.js +1 -1
- package/build/analytics/facebookPixel.d.ts +11 -15
- package/build/analytics/facebookPixel.js +1 -1
- package/build/analytics/googleAnalytics.d.ts +10 -13
- package/build/analytics/googleAnalytics.js +1 -1
- package/build/analytics/googleTagManager.d.ts +188 -191
- package/build/analytics/googleTagManager.js +1 -1
- package/build/analytics/googleUniversal.d.ts +5 -8
- package/build/analytics/googleUniversal.js +1 -1
- package/build/analytics/head/index.js +1 -1
- package/build/analytics/ikas.d.ts +33 -40
- package/build/analytics/ikas.js +1 -1
- package/build/analytics/index.d.ts +1 -1
- package/build/analytics/tiktokPixel.d.ts +9 -12
- package/build/analytics/tiktokPixel.js +1 -1
- package/build/components/checkout/components/address-form/index.js +1 -1
- package/build/components/checkout/components/address-form/model.d.ts +6 -6
- package/build/components/checkout/components/address-form/model.js +1 -1
- package/build/components/checkout/components/cart-summary/cart-item/index.js +1 -1
- package/build/components/checkout/components/cart-summary/index.js +1 -1
- package/build/components/checkout/components/customer-addresses/index.js +1 -1
- package/build/components/checkout/components/customer-addresses/model.d.ts +4 -1
- package/build/components/checkout/components/customer-addresses/model.js +1 -1
- package/build/components/checkout/components/delivery-methods/index.js +1 -1
- package/build/components/checkout/components/epaykolay-button/index.d.ts +5 -0
- package/build/components/checkout/components/epaykolay-button/index.js +1 -0
- package/build/components/checkout/components/epaykolay-button/style.module.scss.js +1 -0
- package/build/components/checkout/components/error/customer-login-required-error/index.js +1 -1
- package/build/components/checkout/components/error/index.js +1 -1
- package/build/components/checkout/components/error/no-shipping-error/index.js +1 -1
- package/build/components/checkout/components/error/payment-error/index.d.ts +1 -1
- package/build/components/checkout/components/error/payment-error/index.js +1 -1
- package/build/components/checkout/components/error/stock-error/index.d.ts +2 -1
- package/build/components/checkout/components/error/stock-error/index.js +1 -1
- package/build/components/checkout/components/error/unknown-error/index.d.ts +1 -1
- package/build/components/checkout/components/error/unknown-error/index.js +1 -1
- package/build/components/checkout/components/expandable-section/index.js +1 -1
- package/build/components/checkout/components/form-item/index.js +1 -1
- package/build/components/checkout/components/klarna/index.js +1 -1
- package/build/components/checkout/components/master-pass/credit-card-form/index.js +1 -1
- package/build/components/checkout/components/master-pass/link-card-to-client/index.js +1 -1
- package/build/components/checkout/components/master-pass/modal-otp/index.js +1 -1
- package/build/components/checkout/components/offer-product/index.d.ts +2 -1
- package/build/components/checkout/components/offer-product/index.js +1 -1
- package/build/components/checkout/components/paypal/index.d.ts +7 -0
- package/build/components/checkout/components/paypal/index.js +1 -0
- package/build/components/checkout/components/paypal/style.module.scss.js +1 -0
- package/build/components/checkout/components/quick-registration/completed.js +1 -1
- package/build/components/checkout/components/quick-registration/index.js +1 -1
- package/build/components/checkout/components/quick-registration/model.js +1 -1
- package/build/components/checkout/components/svg/epaykolay.d.ts +6 -0
- package/build/components/checkout/components/svg/epaykolay.js +1 -0
- package/build/components/checkout/index.d.ts +1 -1
- package/build/components/checkout/index.js +1 -1
- package/build/components/checkout/model.d.ts +22 -44
- package/build/components/checkout/model.js +1 -1
- package/build/components/checkout/modelMasterPass.d.ts +13 -23
- package/build/components/checkout/modelMasterPass.js +1 -1
- package/build/components/checkout/steps/step-info/index.js +1 -1
- package/build/components/checkout/steps/step-payment/billing-address/index.js +1 -1
- package/build/components/checkout/steps/step-payment/index.js +1 -1
- package/build/components/checkout/steps/step-payment/payment-gateways/index.js +1 -1
- package/build/components/checkout/steps/step-payment/payment-gateways/installments/index.js +1 -1
- package/build/components/checkout/steps/step-payment/style.module.scss.js +1 -1
- package/build/components/checkout/steps/step-shipping/index.js +1 -1
- package/build/components/checkout/steps/step-success/index.js +1 -1
- package/build/components/checkout/style.module.scss.js +1 -1
- package/build/components/checkout/types.d.ts +29 -0
- package/build/components/checkout/types.js +1 -0
- package/build/components/google-captcha/index.js +1 -1
- package/build/components/image/index.d.ts +1 -1
- package/build/components/image/index.js +1 -1
- package/build/components/link/index.js +1 -1
- package/build/components/page/ThemeComponent.js +1 -1
- package/build/components/page/functions.d.ts +3 -0
- package/build/components/page/functions.js +1 -0
- package/build/components/page/head.d.ts +1 -1
- package/build/components/page/head.js +1 -1
- package/build/components/page/index.d.ts +4 -3
- package/build/components/page/index.js +1 -1
- package/build/components/page-editor/ThemeComponentEditor.js +1 -1
- package/build/components/page-editor/index.js +1 -1
- package/build/components/page-editor/model.d.ts +5 -1
- package/build/components/page-editor/model.js +1 -1
- package/build/ext/@ikas/fe-api-client/build/utils/api.js +1 -1
- package/build/hooks/index.d.ts +0 -1
- package/build/hooks/useCustomerReviews.d.ts +2 -3
- package/build/hooks/useCustomerReviews.js +1 -1
- package/build/index.d.ts +2 -0
- package/build/index.js +1 -1
- package/build/model-helpers/index.d.ts +5 -0
- package/build/model-helpers/order/line-item/option/value/functions.d.ts +3 -0
- package/build/model-helpers/order/line-item/option/value/functions.js +1 -0
- package/build/model-helpers/product/attribute-value/functions.d.ts +2 -0
- package/build/model-helpers/product/attribute-value/functions.js +1 -0
- package/build/model-helpers/product/functions.d.ts +10 -0
- package/build/model-helpers/product/functions.js +1 -0
- package/build/model-helpers/product/option-set/option/functions.d.ts +2 -0
- package/build/model-helpers/product/option-set/option/functions.js +1 -0
- package/build/model-helpers/product/variant/functions.d.ts +2 -0
- package/build/model-helpers/product/variant/functions.js +1 -0
- package/build/models/data/checkout/index.d.ts +4 -21
- package/build/models/data/index.d.ts +7 -138
- package/build/models/data/localized-customer-address/functions.d.ts +65 -0
- package/build/models/data/localized-customer-address/functions.js +1 -0
- package/build/models/data/localized-customer-address/index.d.ts +6 -0
- package/build/models/data/localized-order-address/functions.d.ts +63 -0
- package/build/models/data/localized-order-address/functions.js +1 -0
- package/build/models/data/localized-order-address/index.d.ts +6 -0
- package/build/models/data/review-form/index.d.ts +6 -0
- package/build/models/data/theme-json/component/index.d.ts +1 -0
- package/build/models/data/theme-json/component/index.js +1 -1
- package/build/models/data/theme-json/custom-data/index.d.ts +1 -2
- package/build/models/data/theme-json/custom-data/index.js +1 -1
- package/build/models/data/theme-json/settings/color/index.js +1 -1
- package/build/models/index.d.ts +1 -0
- package/build/models/ui/blog-category-list/functions.d.ts +6 -0
- package/build/models/ui/blog-category-list/functions.js +1 -0
- package/build/models/ui/blog-category-list/index.d.ts +8 -42
- package/build/models/ui/blog-category-list/index.js +1 -1
- package/build/models/ui/blog-list/functions.d.ts +6 -0
- package/build/models/ui/blog-list/functions.js +1 -0
- package/build/models/ui/blog-list/index.d.ts +9 -45
- package/build/models/ui/blog-list/index.js +1 -1
- package/build/models/ui/brand-list/functions.d.ts +8 -0
- package/build/models/ui/brand-list/functions.js +1 -0
- package/build/models/ui/brand-list/index.d.ts +9 -48
- package/build/models/ui/brand-list/index.js +1 -1
- package/build/models/ui/category-list/functions.d.ts +8 -0
- package/build/models/ui/category-list/functions.js +1 -0
- package/build/models/ui/category-list/index.d.ts +9 -48
- package/build/models/ui/category-list/index.js +1 -1
- package/build/models/ui/customer-review-list/functions.d.ts +7 -0
- package/build/models/ui/customer-review-list/functions.js +1 -0
- package/build/models/ui/customer-review-list/index.d.ts +8 -40
- package/build/models/ui/customer-review-summary-list/functions.d.ts +7 -0
- package/build/models/ui/customer-review-summary-list/functions.js +1 -0
- package/build/models/ui/customer-review-summary-list/index.d.ts +7 -39
- package/build/models/ui/index.d.ts +17 -10
- package/build/models/ui/list-commons/index.d.ts +13 -0
- package/build/models/ui/list-commons/index.js +1 -0
- package/build/models/ui/navigation-link/index.d.ts +3 -3
- package/build/models/ui/navigation-link/index.js +1 -1
- package/build/models/ui/product-attribute-detail/index.d.ts +1 -1
- package/build/models/ui/product-attribute-detail/index.js +1 -1
- package/build/models/ui/product-attribute-list/index.js +1 -1
- package/build/models/ui/product-list/functions.d.ts +32 -0
- package/build/models/ui/product-list/functions.js +1 -0
- package/build/models/ui/product-list/index.d.ts +18 -110
- package/build/models/ui/product-list/index.js +1 -1
- package/build/models/ui/raffle-list/functions.d.ts +6 -0
- package/build/models/ui/raffle-list/functions.js +1 -0
- package/build/models/ui/raffle-list/index.d.ts +14 -50
- package/build/models/ui/validator/form/account-info.js +1 -1
- package/build/models/ui/validator/form/address.js +1 -1
- package/build/models/ui/validator/form/contact-form.js +1 -1
- package/build/models/ui/validator/form/customer-review.js +1 -1
- package/build/models/ui/validator/form/forgot-password.js +1 -1
- package/build/models/ui/validator/form/ikas-address.d.ts +32 -20
- package/build/models/ui/validator/form/ikas-address.js +1 -1
- package/build/models/ui/validator/form/login.js +1 -1
- package/build/models/ui/validator/form/raffle-form.js +1 -1
- package/build/models/ui/validator/form/recover-password.js +1 -1
- package/build/models/ui/validator/form/register.d.ts +10 -1
- package/build/models/ui/validator/form/register.js +1 -1
- package/build/page-data-init/index.d.ts +7 -18
- package/build/page-data-init/index.js +1 -1
- package/build/pages/account/activate.d.ts +4 -0
- package/build/pages/account/activate.js +1 -0
- package/build/pages/checkout.js +1 -1
- package/build/pages/index.d.ts +1 -0
- package/build/store/analytics/index.d.ts +9 -0
- package/build/store/analytics/index.js +1 -0
- package/build/store/base/functions.d.ts +7 -0
- package/build/store/base/functions.js +1 -0
- package/build/store/{base.d.ts → base/index.d.ts} +7 -17
- package/build/store/base/index.js +1 -0
- package/build/store/base/public.d.ts +1 -0
- package/build/store/base/public.js +1 -0
- package/build/store/cart/functions.d.ts +24 -0
- package/build/store/cart/functions.js +1 -0
- package/build/store/cart/index.d.ts +7 -28
- package/build/store/cart/index.js +1 -1
- package/build/store/cart/public.d.ts +1 -0
- package/build/store/cart/public.js +1 -0
- package/build/store/customer/account-auth/data.d.ts +4 -0
- package/build/store/customer/account-auth/data.js +1 -0
- package/build/store/customer/account-auth/functions.d.ts +24 -0
- package/build/store/customer/account-auth/functions.js +1 -0
- package/build/store/customer/account-auth/public.d.ts +1 -0
- package/build/store/customer/captcha/data.d.ts +3 -0
- package/build/store/customer/captcha/data.js +1 -0
- package/build/store/customer/captcha/functions.d.ts +5 -0
- package/build/store/customer/captcha/functions.js +1 -0
- package/build/store/customer/captcha/public.d.ts +1 -0
- package/build/store/customer/consent/data.d.ts +3 -0
- package/build/store/customer/consent/data.js +1 -0
- package/build/store/customer/consent/functions.d.ts +6 -0
- package/build/store/customer/consent/functions.js +1 -0
- package/build/store/customer/consent/public.d.ts +1 -0
- package/build/store/customer/functions.d.ts +4 -0
- package/build/store/customer/functions.js +1 -0
- package/build/store/customer/index.d.ts +8 -82
- package/build/store/customer/index.js +1 -1
- package/build/store/customer/marketing/data.d.ts +3 -0
- package/build/store/customer/marketing/data.js +1 -0
- package/build/store/customer/marketing/functions.d.ts +5 -0
- package/build/store/customer/marketing/functions.js +1 -0
- package/build/store/customer/marketing/public.d.ts +1 -0
- package/build/store/customer/order/data.d.ts +4 -0
- package/build/store/customer/order/data.js +1 -0
- package/build/store/customer/order/functions.d.ts +11 -0
- package/build/store/customer/order/functions.js +1 -0
- package/build/store/customer/order/public.d.ts +1 -0
- package/build/store/customer/product/data.d.ts +17 -0
- package/build/store/customer/product/data.js +1 -0
- package/build/store/customer/product/functions.d.ts +20 -0
- package/build/store/customer/product/functions.js +1 -0
- package/build/store/customer/product/public.d.ts +1 -0
- package/build/store/customer/public.d.ts +8 -0
- package/build/store/customer/public.js +1 -0
- package/build/store/customer/raffle/functions.d.ts +1 -0
- package/build/store/customer/raffle/functions.js +1 -0
- package/build/store/customer/raffle/public.d.ts +1 -0
- package/build/store/index.d.ts +9 -4
- package/build/utils/constants.js +1 -1
- package/build/utils/helper.d.ts +1 -1
- package/build/utils/helper.js +1 -1
- package/build/utils/index.d.ts +1 -2
- package/package.json +17 -13
- package/build/ext/@builder.io/partytown/integration/index.mjs.js +0 -1
- package/build/ext/@builder.io/partytown/react/index.mjs.js +0 -1
- package/build/hooks/useStore.d.ts +0 -2
- package/build/hooks/useStore.js +0 -1
- package/build/models/data/base/index.d.ts +0 -8
- package/build/models/data/base/index.js +0 -1
- package/build/models/data/blog/category/index.d.ts +0 -12
- package/build/models/data/blog/category/index.js +0 -1
- package/build/models/data/blog/content/index.d.ts +0 -6
- package/build/models/data/blog/content/index.js +0 -1
- package/build/models/data/blog/index.d.ts +0 -27
- package/build/models/data/blog/index.js +0 -1
- package/build/models/data/blog/meta-data/index.d.ts +0 -16
- package/build/models/data/blog/meta-data/index.js +0 -1
- package/build/models/data/blog/tag/index.d.ts +0 -6
- package/build/models/data/blog/tag/index.js +0 -1
- package/build/models/data/blog/writer/index.d.ts +0 -6
- package/build/models/data/blog/writer/index.js +0 -1
- package/build/models/data/brand/index.d.ts +0 -26
- package/build/models/data/brand/index.js +0 -1
- package/build/models/data/brand/translation/index.d.ts +0 -7
- package/build/models/data/brand/translation/index.js +0 -1
- package/build/models/data/campaign-offer/index.d.ts +0 -21
- package/build/models/data/campaign-offer/index.js +0 -1
- package/build/models/data/campaign-offer/product/index.d.ts +0 -25
- package/build/models/data/campaign-offer/product/index.js +0 -1
- package/build/models/data/cart/available-shipping-method/index.d.ts +0 -10
- package/build/models/data/cart/available-shipping-method/index.js +0 -1
- package/build/models/data/cart/campaign-offer/index.d.ts +0 -16
- package/build/models/data/cart/campaign-offer/index.js +0 -1
- package/build/models/data/cart/index.d.ts +0 -14
- package/build/models/data/cart/index.js +0 -1
- package/build/models/data/category/index.d.ts +0 -22
- package/build/models/data/category/index.js +0 -1
- package/build/models/data/category/path-item/index.d.ts +0 -14
- package/build/models/data/category/path-item/index.js +0 -1
- package/build/models/data/category/translations/index.d.ts +0 -7
- package/build/models/data/category/translations/index.js +0 -1
- package/build/models/data/checkout/country-settings-model.d.ts +0 -141
- package/build/models/data/checkout/country-settings-model.js +0 -1
- package/build/models/data/checkout/index.js +0 -1
- package/build/models/data/checkout-settings/index.d.ts +0 -21
- package/build/models/data/checkout-settings/index.js +0 -1
- package/build/models/data/checkout-settings/option/index.d.ts +0 -6
- package/build/models/data/checkout-settings/option/index.js +0 -1
- package/build/models/data/checkout-settings/price/index.d.ts +0 -7
- package/build/models/data/checkout-settings/price/index.js +0 -1
- package/build/models/data/city/index.d.ts +0 -12
- package/build/models/data/city/index.js +0 -1
- package/build/models/data/contact-form/index.d.ts +0 -9
- package/build/models/data/contact-form/index.js +0 -1
- package/build/models/data/country/index.d.ts +0 -18
- package/build/models/data/country/index.js +0 -1
- package/build/models/data/country/location-translations/index.d.ts +0 -7
- package/build/models/data/customer/address/city/index.d.ts +0 -7
- package/build/models/data/customer/address/city/index.js +0 -1
- package/build/models/data/customer/address/country/index.d.ts +0 -9
- package/build/models/data/customer/address/country/index.js +0 -1
- package/build/models/data/customer/address/district/index.d.ts +0 -7
- package/build/models/data/customer/address/district/index.js +0 -1
- package/build/models/data/customer/address/ikas-localized-customer-address.d.ts +0 -50
- package/build/models/data/customer/address/ikas-localized-customer-address.js +0 -1
- package/build/models/data/customer/address/index.d.ts +0 -40
- package/build/models/data/customer/address/index.js +0 -1
- package/build/models/data/customer/address/state/index.d.ts +0 -7
- package/build/models/data/customer/address/state/index.js +0 -1
- package/build/models/data/customer/attribute/index.d.ts +0 -18
- package/build/models/data/customer/attribute/index.js +0 -1
- package/build/models/data/customer/attribute/option/index.d.ts +0 -9
- package/build/models/data/customer/attribute/option/index.js +0 -1
- package/build/models/data/customer/attribute/sales-channel/index.d.ts +0 -8
- package/build/models/data/customer/attribute/sales-channel/index.js +0 -1
- package/build/models/data/customer/attribute/translation/index.d.ts +0 -9
- package/build/models/data/customer/attribute/translation/index.js +0 -1
- package/build/models/data/customer/attribute/translation/option/index.d.ts +0 -6
- package/build/models/data/customer/attribute/translation/option/index.js +0 -1
- package/build/models/data/customer/attribute/value/index.d.ts +0 -11
- package/build/models/data/customer/attribute/value/index.js +0 -1
- package/build/models/data/customer/index.d.ts +0 -38
- package/build/models/data/customer/index.js +0 -1
- package/build/models/data/customer/review/index.d.ts +0 -24
- package/build/models/data/customer/review/index.js +0 -1
- package/build/models/data/customer/review/settings/index.d.ts +0 -6
- package/build/models/data/customer/review/settings/index.js +0 -1
- package/build/models/data/customer/review/summary/index.d.ts +0 -10
- package/build/models/data/customer/review/summary/index.js +0 -1
- package/build/models/data/customer/review/summary/star/index.d.ts +0 -6
- package/build/models/data/customer/review/summary/star/index.js +0 -1
- package/build/models/data/district/index.d.ts +0 -12
- package/build/models/data/district/index.js +0 -1
- package/build/models/data/favorite-product/index.d.ts +0 -7
- package/build/models/data/favorite-product/index.js +0 -1
- package/build/models/data/filter-category/index.d.ts +0 -12
- package/build/models/data/filter-category/index.js +0 -1
- package/build/models/data/html-meta-data/index.d.ts +0 -28
- package/build/models/data/html-meta-data/index.js +0 -1
- package/build/models/data/html-meta-data/translations/index.d.ts +0 -7
- package/build/models/data/html-meta-data/translations/index.js +0 -1
- package/build/models/data/image/index.d.ts +0 -10
- package/build/models/data/image/index.js +0 -1
- package/build/models/data/last-viewed-product/index.d.ts +0 -6
- package/build/models/data/last-viewed-product/index.js +0 -1
- package/build/models/data/merchant-settings/index.d.ts +0 -12
- package/build/models/data/merchant-settings/index.js +0 -1
- package/build/models/data/order/address/city/index.d.ts +0 -7
- package/build/models/data/order/address/city/index.js +0 -1
- package/build/models/data/order/address/country/index.d.ts +0 -9
- package/build/models/data/order/address/country/index.js +0 -1
- package/build/models/data/order/address/district/index.d.ts +0 -7
- package/build/models/data/order/address/district/index.js +0 -1
- package/build/models/data/order/address/ikas-localized-order-address.d.ts +0 -32
- package/build/models/data/order/address/ikas-localized-order-address.js +0 -1
- package/build/models/data/order/address/index.d.ts +0 -37
- package/build/models/data/order/address/index.js +0 -1
- package/build/models/data/order/address/state/index.d.ts +0 -7
- package/build/models/data/order/address/state/index.js +0 -1
- package/build/models/data/order/adjustment/applied-order-line/index.d.ts +0 -8
- package/build/models/data/order/adjustment/applied-order-line/index.js +0 -1
- package/build/models/data/order/adjustment/index.d.ts +0 -15
- package/build/models/data/order/adjustment/index.js +0 -1
- package/build/models/data/order/customer/index.d.ts +0 -11
- package/build/models/data/order/customer/index.js +0 -1
- package/build/models/data/order/gift-line/index.d.ts +0 -6
- package/build/models/data/order/gift-line/index.js +0 -1
- package/build/models/data/order/index.d.ts +0 -69
- package/build/models/data/order/index.js +0 -1
- package/build/models/data/order/invoice/index.d.ts +0 -12
- package/build/models/data/order/invoice/index.js +0 -1
- package/build/models/data/order/line-item/base-unit/index.d.ts +0 -9
- package/build/models/data/order/line-item/base-unit/index.js +0 -1
- package/build/models/data/order/line-item/base-unit/unit-type/index.d.ts +0 -6
- package/build/models/data/order/line-item/base-unit/unit-type/index.js +0 -1
- package/build/models/data/order/line-item/discount/index.d.ts +0 -11
- package/build/models/data/order/line-item/discount/index.js +0 -1
- package/build/models/data/order/line-item/index.d.ts +0 -46
- package/build/models/data/order/line-item/index.js +0 -1
- package/build/models/data/order/line-item/option/index.d.ts +0 -10
- package/build/models/data/order/line-item/option/index.js +0 -1
- package/build/models/data/order/line-item/option/value/index.d.ts +0 -9
- package/build/models/data/order/line-item/option/value/index.js +0 -1
- package/build/models/data/order/line-item/variant/brand/index.d.ts +0 -6
- package/build/models/data/order/line-item/variant/brand/index.js +0 -1
- package/build/models/data/order/line-item/variant/category/index.d.ts +0 -12
- package/build/models/data/order/line-item/variant/category/index.js +0 -1
- package/build/models/data/order/line-item/variant/index.d.ts +0 -32
- package/build/models/data/order/line-item/variant/index.js +0 -1
- package/build/models/data/order/line-item/variant/price/index.d.ts +0 -10
- package/build/models/data/order/line-item/variant/price/index.js +0 -1
- package/build/models/data/order/line-item/variant/tag/index.d.ts +0 -6
- package/build/models/data/order/line-item/variant/tag/index.js +0 -1
- package/build/models/data/order/line-item/variant/unit/index.d.ts +0 -6
- package/build/models/data/order/line-item/variant/unit/index.js +0 -1
- package/build/models/data/order/line-item/variant/value/index.d.ts +0 -11
- package/build/models/data/order/line-item/variant/value/index.js +0 -1
- package/build/models/data/order/package/index.d.ts +0 -16
- package/build/models/data/order/package/index.js +0 -1
- package/build/models/data/order/package/tracking-info/index.d.ts +0 -9
- package/build/models/data/order/package/tracking-info/index.js +0 -1
- package/build/models/data/order/payment-method/index.d.ts +0 -9
- package/build/models/data/order/payment-method/index.js +0 -1
- package/build/models/data/order/refund/index.d.ts +0 -7
- package/build/models/data/order/refund/index.js +0 -1
- package/build/models/data/order/refund/line-item/index.d.ts +0 -6
- package/build/models/data/order/refund/line-item/index.js +0 -1
- package/build/models/data/order/refund/settings/index.d.ts +0 -7
- package/build/models/data/order/refund/settings/index.js +0 -1
- package/build/models/data/order/shipping-line/index.d.ts +0 -12
- package/build/models/data/order/shipping-line/index.js +0 -1
- package/build/models/data/order/tax-line/index.d.ts +0 -6
- package/build/models/data/order/tax-line/index.js +0 -1
- package/build/models/data/order/transaction/error/index.d.ts +0 -7
- package/build/models/data/order/transaction/error/index.js +0 -1
- package/build/models/data/order/transaction/index.d.ts +0 -26
- package/build/models/data/order/transaction/index.js +0 -1
- package/build/models/data/order/transaction/payment-method-detail/index.d.ts +0 -13
- package/build/models/data/order/transaction/payment-method-detail/index.js +0 -1
- package/build/models/data/order/transaction/payment-method-detail/installment-price/index.d.ts +0 -9
- package/build/models/data/order/transaction/payment-method-detail/installment-price/index.js +0 -1
- package/build/models/data/payment-gateway/additional-price/index.d.ts +0 -9
- package/build/models/data/payment-gateway/additional-price/index.js +0 -1
- package/build/models/data/payment-gateway/index.d.ts +0 -31
- package/build/models/data/payment-gateway/index.js +0 -1
- package/build/models/data/payment-gateway/settings/index.d.ts +0 -10
- package/build/models/data/payment-gateway/settings/index.js +0 -1
- package/build/models/data/payment-gateway/translation/index.d.ts +0 -7
- package/build/models/data/payment-gateway/translation/index.js +0 -1
- package/build/models/data/product/attribute/index.d.ts +0 -15
- package/build/models/data/product/attribute/index.js +0 -1
- package/build/models/data/product/attribute/option/index.d.ts +0 -6
- package/build/models/data/product/attribute/option/index.js +0 -1
- package/build/models/data/product/attribute/table-cell/index.d.ts +0 -6
- package/build/models/data/product/attribute/table-cell/index.js +0 -1
- package/build/models/data/product/attribute/table-template/index.d.ts +0 -7
- package/build/models/data/product/attribute/table-template/index.js +0 -1
- package/build/models/data/product/attribute/translation/index.d.ts +0 -13
- package/build/models/data/product/attribute/translation/index.js +0 -1
- package/build/models/data/product/attribute-value/index.d.ts +0 -28
- package/build/models/data/product/attribute-value/index.js +0 -1
- package/build/models/data/product/back-in-stock-settings/index.d.ts +0 -5
- package/build/models/data/product/back-in-stock-settings/index.js +0 -1
- package/build/models/data/product/base-unit/index.d.ts +0 -12
- package/build/models/data/product/base-unit/index.js +0 -1
- package/build/models/data/product/campaign/data/index.d.ts +0 -27
- package/build/models/data/product/campaign/data/index.js +0 -1
- package/build/models/data/product/campaign/filter/index.d.ts +0 -7
- package/build/models/data/product/campaign/filter/index.js +0 -1
- package/build/models/data/product/campaign/index.d.ts +0 -7
- package/build/models/data/product/campaign/index.js +0 -1
- package/build/models/data/product/campaign/product-buyx-then-gety/index.d.ts +0 -20
- package/build/models/data/product/campaign/product-buyx-then-gety/index.js +0 -1
- package/build/models/data/product/campaign/product-campaign-date-range-field/index.d.ts +0 -6
- package/build/models/data/product/campaign/product-campaign-date-range-field/index.js +0 -1
- package/build/models/data/product/campaign/product-fixed-discount/index.d.ts +0 -14
- package/build/models/data/product/campaign/product-fixed-discount/index.js +0 -1
- package/build/models/data/product/filter/index.d.ts +0 -82
- package/build/models/data/product/filter/index.js +0 -1
- package/build/models/data/product/image/index.d.ts +0 -10
- package/build/models/data/product/image/index.js +0 -1
- package/build/models/data/product/index.d.ts +0 -77
- package/build/models/data/product/index.js +0 -1
- package/build/models/data/product/option-set/index.d.ts +0 -29
- package/build/models/data/product/option-set/index.js +0 -1
- package/build/models/data/product/option-set/option/index.d.ts +0 -70
- package/build/models/data/product/option-set/option/index.js +0 -1
- package/build/models/data/product/star/index.d.ts +0 -6
- package/build/models/data/product/star/index.js +0 -1
- package/build/models/data/product/stock-location/index.d.ts +0 -8
- package/build/models/data/product/stock-location/index.js +0 -1
- package/build/models/data/product/tag/index.d.ts +0 -6
- package/build/models/data/product/tag/index.js +0 -1
- package/build/models/data/product/variant/index.d.ts +0 -31
- package/build/models/data/product/variant/index.js +0 -1
- package/build/models/data/product/variant/price/index.d.ts +0 -19
- package/build/models/data/product/variant/price/index.js +0 -1
- package/build/models/data/product/variant/unit/index.d.ts +0 -6
- package/build/models/data/product/variant/unit/index.js +0 -1
- package/build/models/data/product/variant-type/index.d.ts +0 -8
- package/build/models/data/product/variant-type/index.js +0 -1
- package/build/models/data/raffle/index.d.ts +0 -63
- package/build/models/data/raffle/index.js +0 -1
- package/build/models/data/sales-channel/index.d.ts +0 -19
- package/build/models/data/sales-channel/index.js +0 -1
- package/build/models/data/state/index.d.ts +0 -11
- package/build/models/data/state/index.js +0 -1
- package/build/models/data/state/location-translations/index.d.ts +0 -7
- package/build/models/data/stock-location/address/city/index.d.ts +0 -7
- package/build/models/data/stock-location/address/city/index.js +0 -1
- package/build/models/data/stock-location/address/country/index.d.ts +0 -7
- package/build/models/data/stock-location/address/country/index.js +0 -1
- package/build/models/data/stock-location/address/district/index.d.ts +0 -7
- package/build/models/data/stock-location/address/district/index.js +0 -1
- package/build/models/data/stock-location/address/index.d.ts +0 -15
- package/build/models/data/stock-location/address/index.js +0 -1
- package/build/models/data/stock-location/address/state/index.d.ts +0 -7
- package/build/models/data/stock-location/address/state/index.js +0 -1
- package/build/models/data/stock-location/available/index.d.ts +0 -10
- package/build/models/data/stock-location/available/index.js +0 -1
- package/build/models/data/stock-location/index.d.ts +0 -14
- package/build/models/data/stock-location/index.js +0 -1
- package/build/models/data/storefront/domain/index.d.ts +0 -9
- package/build/models/data/storefront/domain/index.js +0 -1
- package/build/models/data/storefront/index.d.ts +0 -30
- package/build/models/data/storefront/index.js +0 -1
- package/build/models/data/storefront/localization/index.d.ts +0 -8
- package/build/models/data/storefront/localization/index.js +0 -1
- package/build/models/data/storefront/meta-templates/index.d.ts +0 -8
- package/build/models/data/storefront/meta-templates/index.js +0 -1
- package/build/models/data/storefront/routing/dynamic-currency/index.d.ts +0 -6
- package/build/models/data/storefront/routing/dynamic-currency/index.js +0 -1
- package/build/models/data/storefront/routing/index.d.ts +0 -14
- package/build/models/data/storefront/routing/index.js +0 -1
- package/build/models/data/storefront/theme/index.d.ts +0 -10
- package/build/models/data/storefront/theme/index.js +0 -1
- package/build/models/data/storefront/theme-localization/index.d.ts +0 -15
- package/build/models/data/storefront/theme-localization/index.js +0 -1
- package/build/models/data/variant-type/index.d.ts +0 -13
- package/build/models/data/variant-type/index.js +0 -1
- package/build/models/data/variant-type/variant-value/index.d.ts +0 -12
- package/build/models/data/variant-type/variant-value/index.js +0 -1
- package/build/models/ui/customer-review-list/index.js +0 -1
- package/build/models/ui/customer-review-summary-list/index.js +0 -1
- package/build/models/ui/raffle-list/index.js +0 -1
- package/build/store/base.js +0 -1
- package/build/store/blog/index.d.ts +0 -26
- package/build/store/blog/index.js +0 -1
- package/build/store/brand/index.d.ts +0 -12
- package/build/store/brand/index.js +0 -1
- package/build/store/cart/api.d.ts +0 -10
- package/build/store/cart/api.js +0 -1
- package/build/store/category/index.d.ts +0 -12
- package/build/store/category/index.js +0 -1
- package/build/store/checkout/index.d.ts +0 -16
- package/build/store/checkout/index.js +0 -1
- package/build/store/customer/api.d.ts +0 -54
- package/build/store/customer/api.js +0 -1
- package/build/store/html-meta-data/index.d.ts +0 -6
- package/build/store/html-meta-data/index.js +0 -1
- package/build/store/location/index.d.ts +0 -9
- package/build/store/location/index.js +0 -1
- package/build/store/merchant/index.d.ts +0 -6
- package/build/store/product/index.d.ts +0 -47
- package/build/store/product/index.js +0 -1
- package/build/store/raffle/index.d.ts +0 -15
- package/build/store/raffle/index.js +0 -1
- package/build/store/storefront/index.d.ts +0 -5
- package/build/utils/currency.d.ts +0 -7
- package/build/utils/currency.js +0 -1
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { IkasBaseModel } from "../base";
|
|
2
|
-
import { IkasImage } from "../image";
|
|
3
|
-
import { IkasBlogTag } from "./tag";
|
|
4
|
-
import { IkasBlogContent } from "./content";
|
|
5
|
-
import { IkasBlogMetaData } from "./meta-data";
|
|
6
|
-
import { IkasBlogWriter } from "./writer";
|
|
7
|
-
import { IkasBlogCategory } from "./category";
|
|
8
|
-
import { IkasBlog as IBlog } from "@ikas/storefront-models";
|
|
9
|
-
export declare class IkasBlog extends IkasBaseModel implements IBlog {
|
|
10
|
-
blogContent: IkasBlogContent;
|
|
11
|
-
categoryId: string;
|
|
12
|
-
imageId: string;
|
|
13
|
-
isPublished: boolean;
|
|
14
|
-
locale: string | null;
|
|
15
|
-
metadata: IkasBlogMetaData;
|
|
16
|
-
publishedAt: number | null;
|
|
17
|
-
shortDescription: string;
|
|
18
|
-
storefrontId: string;
|
|
19
|
-
tagIds: string[] | null;
|
|
20
|
-
tags: IkasBlogTag[] | null;
|
|
21
|
-
title: string;
|
|
22
|
-
writer: IkasBlogWriter;
|
|
23
|
-
image?: IkasImage | null;
|
|
24
|
-
category: IkasBlogCategory;
|
|
25
|
-
constructor(data: IBlog);
|
|
26
|
-
get href(): string;
|
|
27
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__extends as t}from'./../../../ext/tslib/tslib.es6.js';import{IkasBaseModel as e}from"../base/index.js";import{IkasImage as o}from"../image/index.js";import{IkasBlogTag as r}from"./tag/index.js";import{IkasBlogContent as i}from"./content/index.js";import{IkasBlogMetaData as n}from"./meta-data/index.js";import{IkasBlogWriter as l}from"./writer/index.js";import{IkasBlogCategory as a}from"./category/index.js";import{IkasBlogFunctions as s}from"@ikas/storefront-model-functions";var m=function(e){function m(t){var s,m=this;return(m=e.call(this,t)||this).locale=null,m.publishedAt=null,m.tagIds=null,m.tags=null,m.image=null,m.blogContent=new i(t.blogContent),m.categoryId=t.categoryId,m.imageId=t.imageId,m.isPublished=t.isPublished,m.locale=t.locale||null,m.metadata=new n(t.metadata),m.publishedAt=t.publishedAt||null,m.shortDescription=t.shortDescription,m.storefrontId=t.storefrontId,m.tagIds=t.tagIds||null,m.tags=(null===(s=t.tags)||void 0===s?void 0:s.map((function(t){return new r(t)})))||null,m.title=t.title,m.writer=new l(t.writer),m.image=t.image?new o(t.image):null,m.category=new a(t.category),m}return t(m,e),Object.defineProperty(m.prototype,"href",{get:function(){return s.getIkasBlogHref(this)},enumerable:!1,configurable:!0}),m}(e);export{m as IkasBlog};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { IkasBaseModel } from "../../base";
|
|
2
|
-
import { IkasBlogMetaData as IBlogMetaData } from "@ikas/storefront-models";
|
|
3
|
-
export declare class IkasBlogMetaData extends IkasBaseModel implements IBlogMetaData {
|
|
4
|
-
canonicals?: string[] | null;
|
|
5
|
-
description?: string | null;
|
|
6
|
-
disableIndex?: boolean | null;
|
|
7
|
-
pageTitle?: string | null;
|
|
8
|
-
slug: string;
|
|
9
|
-
targetId?: string | null;
|
|
10
|
-
targetType?: IkasBlogMetaDataTargetType | null;
|
|
11
|
-
constructor(data: IBlogMetaData);
|
|
12
|
-
}
|
|
13
|
-
export declare enum IkasBlogMetaDataTargetType {
|
|
14
|
-
BLOG = "BLOG",
|
|
15
|
-
BLOG_CATEGORY = "BLOG_CATEGORY"
|
|
16
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__extends as l}from'./../../../../ext/tslib/tslib.es6.js';import{IkasBaseModel as n}from"../../base/index.js";var e,t=function(n){function e(l){var e=n.call(this,l)||this;return e.canonicals=null,e.description=null,e.disableIndex=null,e.pageTitle=null,e.targetId=null,e.targetType=null,e.canonicals=l.canonicals||null,e.description=l.description||null,e.disableIndex=l.disableIndex||null,e.pageTitle=l.pageTitle||null,e.slug=l.slug,e.targetId=l.targetId||null,e.targetType=l.targetType||null,e}return l(e,n),e}(n);!function(l){l.BLOG="BLOG",l.BLOG_CATEGORY="BLOG_CATEGORY"}(e||(e={}));export{t as IkasBlogMetaData,e as IkasBlogMetaDataTargetType};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__extends as r}from'./../../../../ext/tslib/tslib.es6.js';import{IkasBaseModel as t}from"../../base/index.js";var e=function(t){function e(r){var e=t.call(this,r)||this;return e.name=r.name,e}return r(e,t),e}(t);export{e as IkasBlogTag};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var t=function(t){this.firstName=t.firstName,this.lastName=t.lastName};export{t as IkasBlogWriter};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { IkasImage } from "../image";
|
|
2
|
-
import { IkasHTMLMetaData } from "../html-meta-data";
|
|
3
|
-
import { IkasBaseModel } from "../base";
|
|
4
|
-
import { IkasProductBrandTranslation } from "./translation";
|
|
5
|
-
import { IkasBrand as IBrand } from "@ikas/storefront-models";
|
|
6
|
-
export declare class IkasBrand extends IkasBaseModel implements IBrand {
|
|
7
|
-
description: string | null;
|
|
8
|
-
imageId: string | null;
|
|
9
|
-
name: string;
|
|
10
|
-
metaData: IkasHTMLMetaData | null;
|
|
11
|
-
orderType: IkasBrandOrderType | null;
|
|
12
|
-
image?: IkasImage | null;
|
|
13
|
-
translations?: IkasProductBrandTranslation[] | null;
|
|
14
|
-
constructor(data: IBrand);
|
|
15
|
-
get href(): string;
|
|
16
|
-
}
|
|
17
|
-
export declare enum IkasBrandOrderType {
|
|
18
|
-
BEST_SELLER = "BEST_SELLER",
|
|
19
|
-
HIGHEST_DISCOUNT_RATIO = "HIGHEST_DISCOUNT_RATIO",
|
|
20
|
-
HIGHEST_PRICE = "HIGHEST_PRICE",
|
|
21
|
-
LOWEST_DISCOUNT_RATIO = "LOWEST_DISCOUNT_RATIO",
|
|
22
|
-
LOWEST_PRICE = "LOWEST_PRICE",
|
|
23
|
-
MANUALLY = "MANUALLY",
|
|
24
|
-
NEWEST = "NEWEST",
|
|
25
|
-
OLDEST = "OLDEST"
|
|
26
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__extends as n}from'./../../../ext/tslib/tslib.es6.js';import{IkasImage as e}from"../image/index.js";import{IkasBaseModel as t}from"../base/index.js";import{IkasProductBrandTranslation as r}from"./translation/index.js";import{IkasBrandFunctions as i}from"@ikas/storefront-model-functions";var l,o=function(t){function l(n){var i,l=this;return(l=t.call(this,n)||this).description=null,l.imageId=null,l.metaData=null,l.orderType=null,l.image=null,l.translations=null,l.description=n.description||null,l.imageId=n.imageId||null,l.name=n.name,l.metaData=n.metaData||null,l.orderType=n.orderType||null,l.image=n.image?new e(n.image):null,l.translations=(null===(i=n.translations)||void 0===i?void 0:i.map((function(n){return new r(n)})))||null,l}return n(l,t),Object.defineProperty(l.prototype,"href",{get:function(){return i.getIkasBrandHref(this)},enumerable:!1,configurable:!0}),l}(t);!function(n){n.BEST_SELLER="BEST_SELLER",n.HIGHEST_DISCOUNT_RATIO="HIGHEST_DISCOUNT_RATIO",n.HIGHEST_PRICE="HIGHEST_PRICE",n.LOWEST_DISCOUNT_RATIO="LOWEST_DISCOUNT_RATIO",n.LOWEST_PRICE="LOWEST_PRICE",n.MANUALLY="MANUALLY",n.NEWEST="NEWEST",n.OLDEST="OLDEST"}(l||(l={}));export{o as IkasBrand,l as IkasBrandOrderType};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { IkasProductBrandTranslation as IProductBrandTranslation } from "@ikas/storefront-models";
|
|
2
|
-
export declare class IkasProductBrandTranslation implements IProductBrandTranslation {
|
|
3
|
-
description: string | null;
|
|
4
|
-
locale: string;
|
|
5
|
-
name: string | null;
|
|
6
|
-
constructor(data: IProductBrandTranslation);
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var i=function(i){this.description=null,this.name=null,this.description=i.description||null,this.locale=i.locale,this.name=i.name||null};export{i as IkasProductBrandTranslation};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { IkasCampaignOfferProduct } from "./product";
|
|
2
|
-
import { IkasCampaignOffer as ICampaignOffer, IkasCampaignOfferTriggerSettings as ICampaignOfferTriggerSettings, IkasCampaignOfferFollowUpActionType, IkasCampaignOfferTargetPageType, IkasCampaignOfferType, IkasCampaignOfferTriggerFilterType } from "@ikas/storefront-models";
|
|
3
|
-
import { IkasBaseModel } from "../base";
|
|
4
|
-
export declare class IkasCampaignOffer extends IkasBaseModel implements ICampaignOffer {
|
|
5
|
-
availableSalesChannelIds: string[];
|
|
6
|
-
endDate: any | null;
|
|
7
|
-
followUpActionType: IkasCampaignOfferFollowUpActionType;
|
|
8
|
-
minimumRequiredCartAmount: number | null;
|
|
9
|
-
name: string;
|
|
10
|
-
offers: IkasCampaignOfferProduct[];
|
|
11
|
-
startDate: any | null;
|
|
12
|
-
targetPageTypes: IkasCampaignOfferTargetPageType[];
|
|
13
|
-
triggerSettings: IkasCampaignOfferTriggerSettings;
|
|
14
|
-
type: IkasCampaignOfferType;
|
|
15
|
-
constructor(data?: Partial<ICampaignOffer>);
|
|
16
|
-
}
|
|
17
|
-
export declare class IkasCampaignOfferTriggerSettings implements ICampaignOfferTriggerSettings {
|
|
18
|
-
filterType: IkasCampaignOfferTriggerFilterType;
|
|
19
|
-
valueList: string[];
|
|
20
|
-
constructor(data?: Partial<ICampaignOfferTriggerSettings>);
|
|
21
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__extends as e}from'./../../../ext/tslib/tslib.es6.js';import{IkasCampaignOfferProduct as t}from"./product/index.js";import{IkasCampaignOfferFollowUpActionType as i,IkasCampaignOfferType as r,IkasCampaignOfferTriggerFilterType as n}from"@ikas/storefront-models";import{IkasBaseModel as a}from"../base/index.js";import{makeObservable as o,observable as s}from"mobx";var l=function(n){function a(e){void 0===e&&(e={});var a=n.call(this,e)||this;return a.availableSalesChannelIds=e.availableSalesChannelIds||[],a.endDate=e.endDate||null,a.followUpActionType=e.followUpActionType||i.DO_NOTHING,a.minimumRequiredCartAmount=void 0!==e.minimumRequiredCartAmount&&null!==e.minimumRequiredCartAmount?e.minimumRequiredCartAmount:null,a.name=e.name||"",a.offers=e.offers?e.offers.map((function(e){return new t(e)})):[],a.startDate=e.startDate||null,a.targetPageTypes=e.targetPageTypes||[],a.triggerSettings=e.triggerSettings?new m(e.triggerSettings):new m,a.type=e.type||r.CROSS_SELL,o(a,{availableSalesChannelIds:s,endDate:s,followUpActionType:s,minimumRequiredCartAmount:s,name:s,offers:s,startDate:s,targetPageTypes:s,triggerSettings:s,type:s}),a}return e(a,n),a}(a),m=function(e){void 0===e&&(e={}),this.filterType=e.filterType||n.ALL_PRODUCTS,this.valueList=e.valueList||[],o(this,{filterType:s,valueList:s})};export{l as IkasCampaignOffer,m as IkasCampaignOfferTriggerSettings};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { IkasAmountType } from "../../order/adjustment";
|
|
2
|
-
import { IkasCampaignOfferProduct as ICampaignOfferProduct, IkasCampaignOfferProductApplicablePriceEnum, IkasCampaignOfferProductShowCriteria, IkasCampaignOfferProductTranslation as ICampaignOfferProductTranslation } from "@ikas/storefront-models";
|
|
3
|
-
export declare class IkasCampaignOfferProduct implements ICampaignOfferProduct {
|
|
4
|
-
applicablePrice: IkasCampaignOfferProductApplicablePriceEnum | null;
|
|
5
|
-
countdownMinutes: number | null;
|
|
6
|
-
description: string | null;
|
|
7
|
-
discountAmount: number | null;
|
|
8
|
-
discountType: IkasAmountType | null;
|
|
9
|
-
excludedVariantIdList: string[] | null;
|
|
10
|
-
id: string;
|
|
11
|
-
order: number;
|
|
12
|
-
productId: string;
|
|
13
|
-
showCriteria: IkasCampaignOfferProductShowCriteria | null;
|
|
14
|
-
skipOfferIfProductExistsInCart: boolean | null;
|
|
15
|
-
title: string;
|
|
16
|
-
translations: IkasCampaignOfferProductTranslation[] | null;
|
|
17
|
-
constructor(data?: Partial<ICampaignOfferProduct>);
|
|
18
|
-
}
|
|
19
|
-
export declare class IkasCampaignOfferProductTranslation implements ICampaignOfferProductTranslation {
|
|
20
|
-
description: string | null;
|
|
21
|
-
locale: string;
|
|
22
|
-
title: string;
|
|
23
|
-
constructor(data?: Partial<ICampaignOfferProductTranslation>);
|
|
24
|
-
}
|
|
25
|
-
export { IkasCampaignOfferProductShowCriteria };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{IkasCampaignOfferProductShowCriteria}from"@ikas/storefront-models";import{makeAutoObservable as t}from"mobx";var i=function(i){void 0===i&&(i={}),this.applicablePrice=i.applicablePrice||null,this.countdownMinutes=void 0!==i.countdownMinutes&&null!==i.countdownMinutes?i.countdownMinutes:null,this.description=i.description||null,this.discountAmount=void 0!==i.discountAmount&&null!==i.discountAmount?i.discountAmount:null,this.discountType=i.discountType||null,this.excludedVariantIdList=i.excludedVariantIdList||null,this.id=i.id||"",this.order=i.order||0,this.productId=i.productId||"",this.showCriteria=i.showCriteria||null,this.skipOfferIfProductExistsInCart=void 0!==i.skipOfferIfProductExistsInCart&&null!==i.skipOfferIfProductExistsInCart?i.skipOfferIfProductExistsInCart:null,this.title=i.title||"",this.translations=i.translations?i.translations.map((function(t){return new n(t)})):null,t(this)},n=function(i){void 0===i&&(i={}),this.description=i.description||null,this.locale=i.locale||"",this.title=i.title||"",t(this)};export{i as IkasCampaignOfferProduct,n as IkasCampaignOfferProductTranslation};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { IkasAvailableShippingMethod as IAvailableShippingMethod, IkasShippingMethod } from "@ikas/storefront-models";
|
|
2
|
-
export declare class IkasAvailableShippingMethod implements IAvailableShippingMethod {
|
|
3
|
-
price: number;
|
|
4
|
-
rateName: string;
|
|
5
|
-
shippingMethod: IkasShippingMethod;
|
|
6
|
-
shippingSettingsId: string;
|
|
7
|
-
shippingZoneRateId: string;
|
|
8
|
-
constructor(data: IAvailableShippingMethod);
|
|
9
|
-
}
|
|
10
|
-
export { IkasShippingMethod };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{IkasShippingMethod}from"@ikas/storefront-models";import{makeAutoObservable as i}from"mobx";var t=function(t){this.price=t.price,this.rateName=t.rateName,this.shippingMethod=t.shippingMethod,this.shippingSettingsId=t.shippingSettingsId,this.shippingZoneRateId=t.shippingZoneRateId,i(this)};export{t as IkasAvailableShippingMethod};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { IkasCampaignOfferTargetPageType, IkasCartCampaignOfferStatus, IkasCartCampaignOffer as ICartCampaignOffer } from "@ikas/storefront-models";
|
|
2
|
-
import { IkasBaseModel } from "../../base";
|
|
3
|
-
import { IkasCampaignOffer } from "../../campaign-offer";
|
|
4
|
-
export declare class IkasCartCampaignOffer extends IkasBaseModel implements ICartCampaignOffer {
|
|
5
|
-
appliedOrderLineId: string | null;
|
|
6
|
-
campaignOfferId: string;
|
|
7
|
-
campaignOffer: IkasCampaignOffer | null;
|
|
8
|
-
campaignOfferProductId: string | null;
|
|
9
|
-
offerEndDate: number | null;
|
|
10
|
-
offerStartDate: number;
|
|
11
|
-
status: IkasCartCampaignOfferStatus;
|
|
12
|
-
targetPageTypes: IkasCampaignOfferTargetPageType[];
|
|
13
|
-
triggerSourceOrderLineId: string;
|
|
14
|
-
constructor(data: ICartCampaignOffer);
|
|
15
|
-
}
|
|
16
|
-
export { IkasCampaignOfferTargetPageType, IkasCartCampaignOfferStatus };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__extends as e}from'./../../../../ext/tslib/tslib.es6.js';export{IkasCampaignOfferTargetPageType,IkasCartCampaignOfferStatus}from"@ikas/storefront-models";import{makeObservable as r,observable as a}from"mobx";import{IkasBaseModel as t}from"../../base/index.js";import{IkasCampaignOffer as f}from"../../campaign-offer/index.js";var n=function(t){function n(e){var n=t.call(this,e)||this;return n.appliedOrderLineId=null,n.campaignOfferProductId=null,n.offerEndDate=null,n.appliedOrderLineId=e.appliedOrderLineId||null,n.campaignOfferId=e.campaignOfferId,n.campaignOffer=e.campaignOffer?new f(e.campaignOffer):null,n.campaignOfferProductId=e.campaignOfferProductId||null,n.offerEndDate=e.offerEndDate||null,n.offerStartDate=e.offerStartDate,n.status=e.status,n.targetPageTypes=e.targetPageTypes,n.triggerSourceOrderLineId=e.triggerSourceOrderLineId,r(n,{appliedOrderLineId:a,campaignOfferId:a,campaignOffer:a,campaignOfferProductId:a,offerEndDate:a,offerStartDate:a,status:a,targetPageTypes:a,triggerSourceOrderLineId:a}),n}return e(n,t),n}(t);export{n as IkasCartCampaignOffer};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { IkasCartCampaignOffer } from "./campaign-offer";
|
|
2
|
-
import { IkasAvailableShippingMethod } from "./available-shipping-method";
|
|
3
|
-
import { IkasOrder } from "../order";
|
|
4
|
-
import { IkasCart as ICart, IkasCartCreatedBy } from "@ikas/storefront-models";
|
|
5
|
-
export declare class IkasCart extends IkasOrder implements ICart {
|
|
6
|
-
availableShippingMethods: IkasAvailableShippingMethod[] | null;
|
|
7
|
-
campaignOffers: IkasCartCampaignOffer[] | null;
|
|
8
|
-
couponCode: string | null;
|
|
9
|
-
createdBy: IkasCartCreatedBy | null;
|
|
10
|
-
shippingSettingsId: string | null;
|
|
11
|
-
shippingZoneRateId: string | null;
|
|
12
|
-
stockLocationId: string | null;
|
|
13
|
-
constructor(data: Partial<ICart>, removeObservableAddresses?: boolean);
|
|
14
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__extends as n}from'./../../../ext/tslib/tslib.es6.js';import{IkasCartCampaignOffer as i}from"./campaign-offer/index.js";import{IkasAvailableShippingMethod as o}from"./available-shipping-method/index.js";import{IkasOrder as e}from"../order/index.js";import{makeObservable as t,observable as l}from"mobx";var p=function(e){function p(n,p){var a,s,d=this;return(d=e.call(this,n,p)||this).availableShippingMethods=null,d.campaignOffers=null,d.couponCode=null,d.shippingSettingsId=null,d.shippingZoneRateId=null,d.stockLocationId=null,d.availableShippingMethods=(null===(a=n.availableShippingMethods)||void 0===a?void 0:a.map((function(n){return new o(n)})))||null,d.campaignOffers=(null===(s=n.campaignOffers)||void 0===s?void 0:s.map((function(n){return new i(n)})))||null,d.couponCode=n.couponCode||null,d.createdBy=n.createdBy||null,d.shippingSettingsId=n.shippingSettingsId||null,d.shippingZoneRateId=n.shippingZoneRateId||null,d.stockLocationId=n.stockLocationId||null,t(d,{availableShippingMethods:l,campaignOffers:l,couponCode:l,createdBy:l,shippingSettingsId:l,shippingZoneRateId:l,stockLocationId:l}),d}return n(p,e),p}(e);export{p as IkasCart};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { IkasImage } from "../image";
|
|
2
|
-
import { IkasHTMLMetaData } from "../html-meta-data";
|
|
3
|
-
import { IkasBaseModel } from "../base";
|
|
4
|
-
import { IkasCategoryPathItem } from "./path-item";
|
|
5
|
-
import { IkasCategoryTranslation } from "./translations";
|
|
6
|
-
import { IkasCategory as ICategory, IkasCategoryProductsOrderType } from "@ikas/storefront-models";
|
|
7
|
-
export declare class IkasCategory extends IkasBaseModel implements ICategory {
|
|
8
|
-
categoryPath: string[] | null;
|
|
9
|
-
description: string | null;
|
|
10
|
-
imageId: string | null;
|
|
11
|
-
name: string;
|
|
12
|
-
parentId: string | null;
|
|
13
|
-
metaData: IkasHTMLMetaData | null;
|
|
14
|
-
categoryPathItems: IkasCategoryPathItem[];
|
|
15
|
-
orderType: IkasCategoryProductsOrderType | null;
|
|
16
|
-
image?: IkasImage | null;
|
|
17
|
-
translations?: IkasCategoryTranslation[] | null;
|
|
18
|
-
constructor(data: ICategory);
|
|
19
|
-
get href(): string;
|
|
20
|
-
get path(): IkasCategoryPathItem[];
|
|
21
|
-
}
|
|
22
|
-
export { IkasCategoryProductsOrderType as IkasCategoryOrderType };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__extends as e}from'./../../../ext/tslib/tslib.es6.js';import{IkasImage as t}from"../image/index.js";import{IkasBaseModel as r}from"../base/index.js";import{IkasCategoryPathItem as n}from"./path-item/index.js";import{IkasCategoryTranslation as a}from"./translations/index.js";export{IkasCategoryProductsOrderType as IkasCategoryOrderType}from"@ikas/storefront-models";import{IkasCategoryFunctions as o}from"@ikas/storefront-model-functions";var i=function(r){function i(e){var o,i,l=this;return(l=r.call(this,e)||this).categoryPath=null,l.description=null,l.imageId=null,l.parentId=null,l.metaData=null,l.orderType=null,l.image=null,l.translations=null,l.categoryPath=e.categoryPath||null,l.description=e.description||null,l.imageId=e.imageId||null,l.name=e.name,l.parentId=e.parentId||null,l.metaData=e.metaData||null,l.categoryPathItems=(null===(o=e.categoryPathItems)||void 0===o?void 0:o.map((function(e){return new n(e)})))||[],l.orderType=e.orderType,l.image=e.image?new t(e.image):null,l.translations=(null===(i=e.translations)||void 0===i?void 0:i.map((function(e){return new a(e)})))||null,l}return e(i,r),Object.defineProperty(i.prototype,"href",{get:function(){return o.getIkasCategoryHref(this)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"path",{get:function(){return this.categoryPathItems},enumerable:!1,configurable:!0}),i}(r);export{i as IkasCategory};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { IkasHTMLMetaData } from "../../html-meta-data";
|
|
2
|
-
import { IkasBaseModel } from "../../base";
|
|
3
|
-
import { IkasCategoryPathItem as ICategoryPathItem } from "@ikas/storefront-models";
|
|
4
|
-
import { IkasCategoryTranslation } from "../translations";
|
|
5
|
-
export declare class IkasCategoryPathItem extends IkasBaseModel implements ICategoryPathItem {
|
|
6
|
-
metaData: IkasHTMLMetaData | null;
|
|
7
|
-
description: string | null;
|
|
8
|
-
imageId: string | null;
|
|
9
|
-
name: string;
|
|
10
|
-
translations?: IkasCategoryTranslation[] | null;
|
|
11
|
-
constructor(data: ICategoryPathItem);
|
|
12
|
-
get slug(): string | undefined;
|
|
13
|
-
get href(): string;
|
|
14
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__extends as t}from'./../../../../ext/tslib/tslib.es6.js';import{IkasHTMLMetaData as e}from"../../html-meta-data/index.js";import{IkasBaseModel as n}from"../../base/index.js";import{IkasCategoryPathItemFunctions as r}from"@ikas/storefront-model-functions";var a=function(n){function a(t){var r=n.call(this,t)||this;return r.translations=null,r.metaData=t.metaData?new e(t.metaData):null,r.description=t.description||null,r.imageId=t.imageId||null,r.name=t.name,r.translations=t.translations||null,r}return t(a,n),Object.defineProperty(a.prototype,"slug",{get:function(){return r.getIkasCategoryPathItemSlug(this)},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"href",{get:function(){return r.getIkasCategoryPathItemHref(this)},enumerable:!1,configurable:!0}),a}(n);export{a as IkasCategoryPathItem};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { IkasCategoryTranslation as ICategoryTranslation } from "@ikas/storefront-models";
|
|
2
|
-
export declare class IkasCategoryTranslation implements ICategoryTranslation {
|
|
3
|
-
description: string | null;
|
|
4
|
-
locale: string;
|
|
5
|
-
name: string | null;
|
|
6
|
-
constructor(data: ICategoryTranslation);
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var i=function(i){this.description=null,this.name=null,this.description=i.description||null,this.locale=i.locale,this.name=i.name||null};export{i as IkasCategoryTranslation};
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import { IkasCheckoutRequirement, IkasCheckoutSettings, IkasOrderAddress } from "@ikas/storefront-models";
|
|
2
|
-
export interface CountrySettingsModelConstructorData {
|
|
3
|
-
checkoutSettings?: IkasCheckoutSettings;
|
|
4
|
-
}
|
|
5
|
-
export default class CountrySettingsModel {
|
|
6
|
-
private _initialized;
|
|
7
|
-
private _addressFormCountrySettings;
|
|
8
|
-
private _addressFormCountryLabels;
|
|
9
|
-
private checkoutSettings?;
|
|
10
|
-
constructor(data?: CountrySettingsModelConstructorData);
|
|
11
|
-
init(): Promise<void>;
|
|
12
|
-
get initialized(): boolean;
|
|
13
|
-
waitUntilInitialized(): Promise<unknown>;
|
|
14
|
-
getCountrySettings(country: string): IkasAddressFormCountrySettings;
|
|
15
|
-
getCountryLabels(country: string): IkasAddressFormCountryLabels;
|
|
16
|
-
getFieldSettings(country: string): {
|
|
17
|
-
firstName: AddressFormField;
|
|
18
|
-
lastName: AddressFormField;
|
|
19
|
-
identityNumber: AddressFormField;
|
|
20
|
-
phone: AddressFormField;
|
|
21
|
-
addressLine1: AddressFormField;
|
|
22
|
-
addressLine2: AddressFormField;
|
|
23
|
-
postalCode: AddressFormField;
|
|
24
|
-
country: AddressFormField;
|
|
25
|
-
state: AddressFormField;
|
|
26
|
-
city: AddressFormField;
|
|
27
|
-
district: AddressFormField;
|
|
28
|
-
company?: AddressFormField | undefined;
|
|
29
|
-
taxOffice?: AddressFormField | undefined;
|
|
30
|
-
taxNumber?: AddressFormField | undefined;
|
|
31
|
-
};
|
|
32
|
-
getFieldLabels(country: string): IkasAddressFormLabels | undefined;
|
|
33
|
-
getAddressFormatView(addressFormat: string): AddressFormItem[][];
|
|
34
|
-
getBillingFormatView(billingFormat: string): BillingAddressFormItem[][];
|
|
35
|
-
getAddressFormat(country: string): AddressFormItem[][];
|
|
36
|
-
getBillingFormat(country: string): BillingAddressFormItem[][];
|
|
37
|
-
getAddressFormatIgnoreCountry(country: string): AddressFormItem[][];
|
|
38
|
-
getValidationResult(address: IkasOrderAddress): {
|
|
39
|
-
firstName: ErrorType;
|
|
40
|
-
lastName: ErrorType;
|
|
41
|
-
addressLine1: ErrorType;
|
|
42
|
-
addressLine2: ErrorType;
|
|
43
|
-
country: ErrorType;
|
|
44
|
-
state: ErrorType;
|
|
45
|
-
city: ErrorType;
|
|
46
|
-
district: ErrorType;
|
|
47
|
-
phone: ErrorType;
|
|
48
|
-
postalCode: ErrorType;
|
|
49
|
-
identityNumber: ErrorType;
|
|
50
|
-
} | undefined;
|
|
51
|
-
isValidAddress(address: IkasOrderAddress): boolean;
|
|
52
|
-
isValidField(field: string, fieldSettings: AddressFormField | undefined, checkoutRequirement?: IkasCheckoutRequirement | null): ErrorType;
|
|
53
|
-
isFreeTextCity(country: string): boolean;
|
|
54
|
-
isFreeTextDistrict(country: string): boolean;
|
|
55
|
-
getAddressFormCountrySettings(): Promise<void>;
|
|
56
|
-
getAddressFormCountryLabels(): Promise<void>;
|
|
57
|
-
validatePhoneNumber(str: string): boolean;
|
|
58
|
-
validateByRegexString(str: string, regexStr: string): boolean;
|
|
59
|
-
}
|
|
60
|
-
export declare type ErrorType = {
|
|
61
|
-
hasError: boolean;
|
|
62
|
-
isInvalid: boolean;
|
|
63
|
-
isEmpty: boolean;
|
|
64
|
-
};
|
|
65
|
-
export declare type IkasAddressFormCountrySettings = {
|
|
66
|
-
id: string;
|
|
67
|
-
addressFormat: string;
|
|
68
|
-
billingFormat: string;
|
|
69
|
-
code: string;
|
|
70
|
-
iso2: string;
|
|
71
|
-
iso3: string;
|
|
72
|
-
phoneCode: string;
|
|
73
|
-
fields: IkasAddressFormFields;
|
|
74
|
-
};
|
|
75
|
-
export declare type IkasAddressFormFields = {
|
|
76
|
-
firstName?: AddressFormField;
|
|
77
|
-
lastName?: AddressFormField;
|
|
78
|
-
identityNumber?: AddressFormField;
|
|
79
|
-
addressLine1?: AddressFormField;
|
|
80
|
-
addressLine2?: AddressFormField;
|
|
81
|
-
postalCode?: AddressFormField;
|
|
82
|
-
country?: AddressFormField;
|
|
83
|
-
state?: AddressFormField;
|
|
84
|
-
city?: AddressFormField;
|
|
85
|
-
district?: AddressFormField;
|
|
86
|
-
phone?: AddressFormField;
|
|
87
|
-
company?: AddressFormField;
|
|
88
|
-
taxOffice?: AddressFormField;
|
|
89
|
-
taxNumber?: AddressFormField;
|
|
90
|
-
};
|
|
91
|
-
export declare type AddressFormField = {
|
|
92
|
-
required?: boolean;
|
|
93
|
-
type?: IkasAddressFormInputType;
|
|
94
|
-
regex?: string;
|
|
95
|
-
};
|
|
96
|
-
export declare enum IkasAddressFormInputType {
|
|
97
|
-
TEXT = "text",
|
|
98
|
-
DROPDOWN = "dropdown"
|
|
99
|
-
}
|
|
100
|
-
export declare type IkasAddressFormCountryLabels = {
|
|
101
|
-
name: string;
|
|
102
|
-
fields: IkasAddressFormLabels;
|
|
103
|
-
};
|
|
104
|
-
export declare type IkasAddressFormLabels = {
|
|
105
|
-
firstName?: AddressFormLabel;
|
|
106
|
-
lastName?: AddressFormLabel;
|
|
107
|
-
identityNumber?: AddressFormLabel;
|
|
108
|
-
addressLine1?: AddressFormLabel;
|
|
109
|
-
addressLine2?: AddressFormLabel;
|
|
110
|
-
postalCode?: AddressFormLabel;
|
|
111
|
-
country?: AddressFormLabel;
|
|
112
|
-
state?: AddressFormLabel;
|
|
113
|
-
city?: AddressFormLabel;
|
|
114
|
-
district?: AddressFormLabel;
|
|
115
|
-
phone?: AddressFormLabel;
|
|
116
|
-
company?: AddressFormLabel;
|
|
117
|
-
taxOffice?: AddressFormLabel;
|
|
118
|
-
taxNumber?: AddressFormLabel;
|
|
119
|
-
};
|
|
120
|
-
export declare type AddressFormLabel = {
|
|
121
|
-
placeholder?: string;
|
|
122
|
-
label?: string;
|
|
123
|
-
};
|
|
124
|
-
export declare enum AddressFormItem {
|
|
125
|
-
FIRSTNAME = "firstName",
|
|
126
|
-
LASTNAME = "lastName",
|
|
127
|
-
IDENTITY_NUMBER = "identityNumber",
|
|
128
|
-
ADDRESS_LINE_1 = "addressLine1",
|
|
129
|
-
ADDRESS_LINE_2 = "addressLine2",
|
|
130
|
-
POSTAL_CODE = "postalCode",
|
|
131
|
-
COUNTRY = "country",
|
|
132
|
-
STATE = "state",
|
|
133
|
-
CITY = "city",
|
|
134
|
-
DISTRICT = "district",
|
|
135
|
-
PHONE = "phone"
|
|
136
|
-
}
|
|
137
|
-
export declare enum BillingAddressFormItem {
|
|
138
|
-
COMPANY = "company",
|
|
139
|
-
TAX_OFFICE = "taxOffice",
|
|
140
|
-
TAX_NUMBER = "taxNumber"
|
|
141
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__awaiter as t,__assign as e,__generator as i}from'./../../../ext/tslib/tslib.es6.js';import{makeAutoObservable as r}from"mobx";import{IkasStorefrontConfig as n}from"@ikas/storefront-config";import{IkasCheckoutRequirement as s}from"@ikas/storefront-models";import o from"lodash/difference";import{COUNTRY_FORMS_LOCALES as d}from"../../../utils/constants.js";var u,a,l,c=function(){function l(t){void 0===t&&(t={}),this._initialized=!1,this.checkoutSettings=t.checkoutSettings,this.init(),r(this)}return l.prototype.init=function(){return t(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,this.getAddressFormCountrySettings()];case 1:return t.sent(),[4,this.getAddressFormCountryLabels()];case 2:return t.sent(),this._initialized=!0,[2]}}))}))},Object.defineProperty(l.prototype,"initialized",{get:function(){return this._initialized},enumerable:!1,configurable:!0}),l.prototype.waitUntilInitialized=function(){var t=this;return new Promise((function(e){var i=setInterval((function(){t.initialized&&(clearInterval(i),e(null))}),100)}))},l.prototype.getCountrySettings=function(t){return this._addressFormCountrySettings.countrySettings[t]},l.prototype.getCountryLabels=function(t){return this._addressFormCountryLabels.countryLabels[t]},l.prototype.getFieldSettings=function(t){var i,r,n,o,d,u,a,l,c=this.getCountrySettings(t),h=e(e({},c.fields),{firstName:{required:!0},lastName:{required:!0},identityNumber:e(e({},c.fields.identityNumber),{required:(null===(i=c.fields.identityNumber)||void 0===i?void 0:i.required)||!1}),phone:e(e({},c.fields.phone),{required:(null===(r=c.fields.phone)||void 0===r?void 0:r.required)||!1}),addressLine1:{required:!0},addressLine2:e(e({},c.fields.addressLine2),{required:(null===(n=c.fields.addressLine2)||void 0===n?void 0:n.required)||!1}),postalCode:e(e({},c.fields.postalCode),{required:(null===(o=c.fields.postalCode)||void 0===o?void 0:o.required)||!1}),country:e(e({},c.fields.country),{required:(null===(d=c.fields.country)||void 0===d?void 0:d.required)||!1}),state:e(e({},c.fields.state),{required:(null===(u=c.fields.state)||void 0===u?void 0:u.required)||!1}),city:e(e({},c.fields.city),{required:(null===(a=c.fields.city)||void 0===a?void 0:a.required)||!1}),district:e(e({},c.fields.district),{required:(null===(l=c.fields.district)||void 0===l?void 0:l.required)||!1})});return this.checkoutSettings&&(this.checkoutSettings.phoneRequirement&&(h.phone.required=this.checkoutSettings.phoneRequirement===s.MANDATORY),this.checkoutSettings.postalCodeRequirement&&(h.postalCode.required=this.checkoutSettings.postalCodeRequirement===s.MANDATORY),this.checkoutSettings.identityNumberRequirement&&(h.identityNumber.required=this.checkoutSettings.identityNumberRequirement===s.MANDATORY)),h},l.prototype.getFieldLabels=function(t){var e=this.getCountryLabels(t);if(e)return e.fields},l.prototype.getAddressFormatView=function(t){return this._addressFormCountrySettings.addressFormats[t]},l.prototype.getBillingFormatView=function(t){return this._addressFormCountrySettings.billingFormats[t]},l.prototype.getAddressFormat=function(t){var e=this.getCountrySettings(t),i=this.getAddressFormatView(e.addressFormat);if(this.checkoutSettings&&i){var r=[];return this.checkoutSettings.identityNumberRequirement===s.INVISIBLE&&r.push(a.IDENTITY_NUMBER),this.checkoutSettings.postalCodeRequirement===s.INVISIBLE&&r.push(a.POSTAL_CODE),this.checkoutSettings.phoneRequirement===s.INVISIBLE&&r.push(a.PHONE),i.map((function(t){return o(t,r)}))||[]}return i},l.prototype.getBillingFormat=function(t){var e=this.getCountrySettings(t);return this.getBillingFormatView(e.billingFormat)},l.prototype.getAddressFormatIgnoreCountry=function(t){return this.getAddressFormat(t).map((function(t){return o(t,[a.COUNTRY])}))},l.prototype.getValidationResult=function(t){var e,i,r,n,o,d,u,a,l=this.getFieldSettings((null===(e=t.country)||void 0===e?void 0:e.iso2)||"TR");if(l){var c=!!t.phone&&t.phone.length>=10&&this.validatePhoneNumber(t.phone);return{firstName:this.isValidField(t.firstName,l.firstName),lastName:this.isValidField(t.lastName,l.lastName),addressLine1:this.isValidField(t.addressLine1,l.addressLine1),addressLine2:this.isValidField(t.addressLine2||"",l.addressLine2),country:this.isValidField((null===(i=t.country)||void 0===i?void 0:i.name)||"",l.country),state:this.isValidField((null===(r=t.state)||void 0===r?void 0:r.name)||"",l.state),city:this.isValidField((null===(n=t.city)||void 0===n?void 0:n.name)||"",l.city),district:this.isValidField((null===(o=t.district)||void 0===o?void 0:o.name)||"",l.district),phone:(null===(d=l.phone)||void 0===d?void 0:d.regex)?this.isValidField(t.phone||"",l.phone,this.checkoutSettings?this.checkoutSettings.phoneRequirement:void 0):(null===(u=this.checkoutSettings)||void 0===u?void 0:u.phoneRequirement)===s.MANDATORY||(null===(a=this.checkoutSettings)||void 0===a?void 0:a.phoneRequirement)===s.OPTIONAL&&t.phone?{hasError:!c,isInvalid:!c,isEmpty:!t.phone}:{hasError:!1,isInvalid:!1,isEmpty:!1},postalCode:this.isValidField(t.postalCode||"",l.postalCode,this.checkoutSettings?this.checkoutSettings.postalCodeRequirement:void 0),identityNumber:this.isValidField(t.identityNumber||"",l.identityNumber,this.checkoutSettings?this.checkoutSettings.identityNumberRequirement:void 0)}}},l.prototype.isValidAddress=function(t){var e=this.getValidationResult(t);return!!e&&Object.values(e).every((function(t){return!t.hasError}))},l.prototype.isValidField=function(t,e,i){var r=!1,n=!1,o=i?i===s.MANDATORY:(null==e?void 0:e.required)||!1,d=!!(null==e?void 0:e.regex)||!1;return o&&!d&&(n=!t),o&&d&&(n=!t,r=!this.validateByRegexString(t,e.regex)),!o&&d&&t&&(r=!this.validateByRegexString(t,e.regex)),{hasError:r||n,isInvalid:r,isEmpty:n}},l.prototype.isFreeTextCity=function(t){var e=this.getFieldSettings(t);return e&&e.city&&e.city.type===u.TEXT},l.prototype.isFreeTextDistrict=function(t){var e=this.getFieldSettings(t);return e&&e.district&&e.district.type===u.TEXT},l.prototype.getAddressFormCountrySettings=function(){return t(this,void 0,void 0,(function(){var t;return i(this,(function(e){switch(e.label){case 0:return"https://cdn.myikas.com/sf/static/location/settings.json",[4,fetch("https://cdn.myikas.com/sf/static/location/settings.json")];case 1:return[4,e.sent().json()];case 2:return t=e.sent(),this._addressFormCountrySettings=t,[2]}}))}))},l.prototype.getAddressFormCountryLabels=function(){return t(this,void 0,void 0,(function(){var t,e,r;return i(this,(function(i){switch(i.label){case 0:return t=n.getCurrentLocale(),d.find((function(e){return e===t}))||(t="en"),e="https://cdn.myikas.com/sf/static/location/".concat(t,".json"),[4,fetch(e)];case 1:return[4,i.sent().json()];case 2:return r=i.sent(),this._addressFormCountryLabels=r,[2]}}))}))},l.prototype.validatePhoneNumber=function(t){return/^\+?\d+$/.test(t)},l.prototype.validateByRegexString=function(t,e){return new RegExp(e).test(t)},l}();!function(t){t.TEXT="text",t.DROPDOWN="dropdown"}(u||(u={})),function(t){t.FIRSTNAME="firstName",t.LASTNAME="lastName",t.IDENTITY_NUMBER="identityNumber",t.ADDRESS_LINE_1="addressLine1",t.ADDRESS_LINE_2="addressLine2",t.POSTAL_CODE="postalCode",t.COUNTRY="country",t.STATE="state",t.CITY="city",t.DISTRICT="district",t.PHONE="phone"}(a||(a={})),function(t){t.COMPANY="company",t.TAX_OFFICE="taxOffice",t.TAX_NUMBER="taxNumber"}(l||(l={}));export{a as AddressFormItem,l as BillingAddressFormItem,u as IkasAddressFormInputType,c as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__extends as e,__assign as t}from'./../../../ext/tslib/tslib.es6.js';import{IkasCart as r}from"../cart/index.js";import{IkasCheckoutFunctions as i,IkasOrderFunctions as a}from"@ikas/storefront-model-functions";import{formatCurrency as n}from"../../../utils/currency.js";import{makeObservable as o,observable as l,computed as s}from"mobx";import{formatDate as d}from"../../../utils/helper.js";import c from"../order/address/ikas-localized-order-address.js";var u=function(r){function u(e,i){var a=r.call(this,e,!0)||this;return a.appliedCouponCode=null,a.selectedPaymentGateway=null,a.masterPassPaymentGateway=null,a.billingAddress=null,a.shippingAddress=null,a.appliedCouponCode=e.couponCode,a.selectedPaymentGateway=e.selectedPaymentGateway,a.masterPassPaymentGateway=e.masterPassPaymentGateway,a.billingAddress=e.billingAddress?new c(t({countrySettings:i},e.billingAddress)):null,a.shippingAddress=e.shippingAddress?new c(t({countrySettings:i},e.shippingAddress)):null,o(a,{appliedCouponCode:l,selectedPaymentGateway:l,masterPassPaymentGateway:l,billingAddress:l,shippingAddress:l,isComplete:s,$totalFinalPrice:s,$totalFinalPriceTaxModifier:s,$totalTax:s,$formattedTotalTax:s,$formattedTotalFinalPrice:s}),a}return e(u,r),Object.defineProperty(u.prototype,"isComplete",{get:function(){return i.isComplete(this)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"$totalFinalPrice",{get:function(){return this.selectedPaymentGateway?i.getTotalFinalPrice(this,this.selectedPaymentGateway):this.totalFinalPrice},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"$totalFinalPriceTaxModifier",{get:function(){return this.$totalFinalPrice/this.totalFinalPrice},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"$totalTax",{get:function(){return a.getTotalTax(this)*this.$totalFinalPriceTaxModifier},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"$formattedTotalTax",{get:function(){return n(this.$totalTax,this.currencyCode,this.currencySymbol||"")},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"$formattedTotalFinalPrice",{get:function(){return n(this.$totalFinalPrice,this.currencyCode,this.currencySymbol)},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"dateStr",{get:function(){var e=new Date;return e.setTime(this.updatedAt),d(e)},enumerable:!1,configurable:!0}),u}(r);export{u as IkasCheckout};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { IkasCheckoutSettings as ICheckoutSettings, IkasCheckoutRequirement } from "@ikas/storefront-models";
|
|
2
|
-
import { IkasBaseModel } from "../base";
|
|
3
|
-
import { IkasCheckoutOption } from "./option";
|
|
4
|
-
import { IkasCheckoutSettingsPrice } from "./price";
|
|
5
|
-
export declare class IkasCheckoutSettings extends IkasBaseModel implements ICheckoutSettings {
|
|
6
|
-
giftPackagePriceList: IkasCheckoutSettingsPrice[] | null;
|
|
7
|
-
identityNumberRequirement: IkasCheckoutRequirement | null;
|
|
8
|
-
isAccountRequired: boolean;
|
|
9
|
-
isGiftPackageEnabled: boolean | null;
|
|
10
|
-
isQuickRegistrationEnabled: boolean | null;
|
|
11
|
-
isShowPostalCode: boolean | null;
|
|
12
|
-
isTermsAndConditionsDefaultChecked: boolean | null;
|
|
13
|
-
options: IkasCheckoutOption[] | null;
|
|
14
|
-
phoneRequirement: IkasCheckoutRequirement;
|
|
15
|
-
postalCodeRequirement: IkasCheckoutRequirement | null;
|
|
16
|
-
showCheckoutNote: boolean | null;
|
|
17
|
-
showTermsAndConditionsCheckbox: boolean;
|
|
18
|
-
storefrontId: string;
|
|
19
|
-
constructor(data: ICheckoutSettings);
|
|
20
|
-
}
|
|
21
|
-
export { IkasCheckoutRequirement };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__extends as e}from'./../../../ext/tslib/tslib.es6.js';export{IkasCheckoutRequirement}from"@ikas/storefront-models";import{IkasBaseModel as i}from"../base/index.js";import{IkasCheckoutOption as o}from"./option/index.js";import{IkasCheckoutSettingsPrice as t}from"./price/index.js";var n=function(i){function n(e){var n,s,r=this;return(r=i.call(this,e)||this).giftPackagePriceList=null,r.identityNumberRequirement=null,r.isGiftPackageEnabled=null,r.isShowPostalCode=null,r.isTermsAndConditionsDefaultChecked=null,r.options=null,r.postalCodeRequirement=null,r.showCheckoutNote=null,r.giftPackagePriceList=(null===(n=e.giftPackagePriceList)||void 0===n?void 0:n.map((function(e){return new t(e)})))||null,r.identityNumberRequirement=e.identityNumberRequirement,r.isAccountRequired=e.isAccountRequired,r.isGiftPackageEnabled=e.isGiftPackageEnabled,r.isQuickRegistrationEnabled=e.isQuickRegistrationEnabled,r.isShowPostalCode=e.isShowPostalCode,r.isTermsAndConditionsDefaultChecked=e.isTermsAndConditionsDefaultChecked,r.options=(null===(s=e.options)||void 0===s?void 0:s.map((function(e){return new o(e)})))||null,r.phoneRequirement=e.phoneRequirement,r.postalCodeRequirement=e.postalCodeRequirement||null,r.showCheckoutNote=e.showCheckoutNote||null,r.showTermsAndConditionsCheckbox=e.showTermsAndConditionsCheckbox,r.storefrontId=e.storefrontId,r}return e(n,i),n}(i);export{n as IkasCheckoutSettings};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=function(e){this.name=e.name,this.required=e.required};export{e as IkasCheckoutOption};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { IkasCheckoutSettingsPrice as ICheckoutSettingsPrice } from "@ikas/storefront-models";
|
|
2
|
-
export declare class IkasCheckoutSettingsPrice implements ICheckoutSettingsPrice {
|
|
3
|
-
currencyCode: string;
|
|
4
|
-
currencySymbol: string | null;
|
|
5
|
-
price: number;
|
|
6
|
-
constructor(data: ICheckoutSettingsPrice);
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r=function(r){this.currencyCode=r.currencyCode,this.currencySymbol=r.currencySymbol||null,this.price=r.price};export{r as IkasCheckoutSettingsPrice};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IkasBaseModel } from "../base";
|
|
2
|
-
import { IkasCity as ICity } from "@ikas/storefront-models";
|
|
3
|
-
export declare class IkasCity extends IkasBaseModel implements ICity {
|
|
4
|
-
cityCode: string | null;
|
|
5
|
-
countryId: string;
|
|
6
|
-
latitude: string | null;
|
|
7
|
-
longitude: string | null;
|
|
8
|
-
name: string;
|
|
9
|
-
order: number | null;
|
|
10
|
-
stateId: string;
|
|
11
|
-
constructor(data: ICity);
|
|
12
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__extends as t}from'./../../../ext/tslib/tslib.es6.js';import{IkasBaseModel as e}from"../base/index.js";var o=function(e){function o(t){var o=e.call(this,t)||this;return o.cityCode=null,o.latitude=null,o.longitude=null,o.order=null,o.cityCode=t.cityCode,o.countryId=t.countryId,o.latitude=t.latitude,o.longitude=t.longitude,o.name=t.name,o.order=t.order,o.stateId=t.stateId,o}return t(o,e),o}(e);export{o as IkasCity};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IkasContactForm as IContactForm } from "@ikas/storefront-models";
|
|
2
|
-
export declare class IkasContactForm implements IContactForm {
|
|
3
|
-
email: string;
|
|
4
|
-
firstName: string;
|
|
5
|
-
lastName: string;
|
|
6
|
-
message: string;
|
|
7
|
-
referer: string;
|
|
8
|
-
constructor(data: IContactForm);
|
|
9
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{makeAutoObservable as e}from"mobx";var s=function(s){this.email=s.email,this.firstName=s.firstName,this.lastName=s.lastName,this.message=s.message,this.referer=s.referer,e(this)};export{s as IkasContactForm};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { IkasBaseModel } from "../base";
|
|
2
|
-
import { IkasLocationTranslations } from "./location-translations";
|
|
3
|
-
import { IkasCountry as ICountry } from "@ikas/storefront-models";
|
|
4
|
-
export declare class IkasCountry extends IkasBaseModel implements ICountry {
|
|
5
|
-
capital: string | null;
|
|
6
|
-
currency: string | null;
|
|
7
|
-
emoji: string | null;
|
|
8
|
-
emojiString: string | null;
|
|
9
|
-
iso2: string | null;
|
|
10
|
-
iso3: string | null;
|
|
11
|
-
locationTranslations?: IkasLocationTranslations | null;
|
|
12
|
-
name: string;
|
|
13
|
-
native: string | null;
|
|
14
|
-
phoneCode: string | null;
|
|
15
|
-
region: string | null;
|
|
16
|
-
subregion: string | null;
|
|
17
|
-
constructor(data: ICountry);
|
|
18
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__extends as n}from'./../../../ext/tslib/tslib.es6.js';import{IkasBaseModel as l}from"../base/index.js";import{makeObservable as o,observable as i}from"mobx";var e=function(l){function e(n){var e=l.call(this,n)||this;return e.capital=null,e.currency=null,e.emoji=null,e.emojiString=null,e.iso2=null,e.iso3=null,e.locationTranslations=null,e.native=null,e.phoneCode=null,e.region=null,e.subregion=null,e.capital=n.capital||null,e.currency=n.currency||null,e.emoji=n.emoji||null,e.emojiString=n.emojiString||null,e.iso2=n.iso2||null,e.iso3=n.iso3||null,e.locationTranslations=n.locationTranslations||null,e.name=n.name||"",e.native=n.native||null,e.phoneCode=n.phoneCode||null,e.region=n.region||null,e.subregion=n.subregion||null,o(e,{capital:i,currency:i,emoji:i,emojiString:i,iso2:i,iso3:i,locationTranslations:i,name:i,native:i,phoneCode:i,region:i,subregion:i}),e}return n(e,l),e}(l);export{e as IkasCountry};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { IkasLocationTranslations as ILocationTranslations } from "@ikas/storefront-models";
|
|
2
|
-
export declare class IkasLocationTranslations implements ILocationTranslations {
|
|
3
|
-
de: string | null;
|
|
4
|
-
en: string;
|
|
5
|
-
tr: string;
|
|
6
|
-
constructor(data: ILocationTranslations);
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { IkasCustomerAddressCity as ICustomerAddressCity } from "@ikas/storefront-models";
|
|
2
|
-
export declare class IkasCustomerAddressCity implements ICustomerAddressCity {
|
|
3
|
-
code: string | null;
|
|
4
|
-
id: string | null;
|
|
5
|
-
name: string;
|
|
6
|
-
constructor(data: ICustomerAddressCity);
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{makeAutoObservable as i}from"mobx";var t=function(t){this.code=null,this.id=null,this.code=t.code,this.id=t.id,this.name=t.name,i(this)};export{t as IkasCustomerAddressCity};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IkasCustomerAddressCountry as ICustomerAddressCountry } from "@ikas/storefront-models";
|
|
2
|
-
export declare class IkasCustomerAddressCountry implements ICustomerAddressCountry {
|
|
3
|
-
code: string | null;
|
|
4
|
-
id: string | null;
|
|
5
|
-
iso2: string | null;
|
|
6
|
-
iso3: string | null;
|
|
7
|
-
name: string;
|
|
8
|
-
constructor(data: ICustomerAddressCountry);
|
|
9
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{makeAutoObservable as i}from"mobx";var s=function(s){this.code=null,this.id=null,this.iso2=null,this.iso3=null,this.code=s.code,this.id=s.id,this.iso2=s.iso2,this.iso3=s.iso3,this.name=s.name,i(this)};export{s as IkasCustomerAddressCountry};
|