@ikas/storefront 5.0.0-beta.17 → 5.0.0-beta.19
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 +3 -4
- 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,139 +1,8 @@
|
|
|
1
|
-
export * from "
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./
|
|
5
|
-
export * from "./
|
|
6
|
-
export * from "./
|
|
7
|
-
export * from "./blog";
|
|
8
|
-
export * from "./brand/translation";
|
|
9
|
-
export * from "./brand";
|
|
10
|
-
export * from "./campaign-offer/product";
|
|
11
|
-
export * from "./campaign-offer";
|
|
12
|
-
export * from "./cart/available-shipping-method";
|
|
13
|
-
export * from "./cart/campaign-offer";
|
|
14
|
-
export * from "./cart";
|
|
15
|
-
export * from "./category/path-item";
|
|
16
|
-
export * from "./category/translations";
|
|
17
|
-
export * from "./category";
|
|
18
|
-
export * from "./checkout";
|
|
19
|
-
export * from "./checkout/country-settings-model";
|
|
20
|
-
export * from "./checkout-settings/option";
|
|
21
|
-
export * from "./checkout-settings/price";
|
|
22
|
-
export * from "./checkout-settings";
|
|
23
|
-
export * from "./city";
|
|
24
|
-
export * from "./contact-form";
|
|
25
|
-
export * from "./country";
|
|
26
|
-
export * from "./customer/address/city";
|
|
27
|
-
export * from "./customer/address/country";
|
|
28
|
-
export * from "./customer/address/district";
|
|
29
|
-
export * from "./customer/address/state";
|
|
30
|
-
export * from "./customer/address";
|
|
31
|
-
export * from "./customer/address/ikas-localized-customer-address";
|
|
32
|
-
export * from "./customer/attribute/option";
|
|
33
|
-
export * from "./customer/attribute/sales-channel";
|
|
34
|
-
export * from "./customer/attribute/translation/option";
|
|
35
|
-
export * from "./customer/attribute/translation";
|
|
36
|
-
export * from "./customer/attribute/value";
|
|
37
|
-
export * from "./customer/attribute";
|
|
38
|
-
export * from "./customer/review/settings";
|
|
39
|
-
export * from "./customer/review/summary/star";
|
|
40
|
-
export * from "./customer/review/summary";
|
|
41
|
-
export * from "./customer/review";
|
|
42
|
-
export * from "./customer";
|
|
43
|
-
export * from "./district";
|
|
44
|
-
export * from "./favorite-product";
|
|
45
|
-
export * from "./filter-category";
|
|
46
|
-
export * from "./html-meta-data/translations";
|
|
47
|
-
export * from "./html-meta-data";
|
|
48
|
-
export * from "./image";
|
|
49
|
-
export * from "./last-viewed-product";
|
|
50
|
-
export * from "./merchant-settings";
|
|
51
|
-
export * from "./order/address/city";
|
|
52
|
-
export * from "./order/address/country";
|
|
53
|
-
export * from "./order/address/district";
|
|
54
|
-
export * from "./order/address/state";
|
|
55
|
-
export * from "./order/address";
|
|
56
|
-
export * from "./order/adjustment/applied-order-line";
|
|
57
|
-
export * from "./order/adjustment";
|
|
58
|
-
export * from "./order/customer";
|
|
59
|
-
export * from "./order/gift-line";
|
|
60
|
-
export * from "./order/invoice";
|
|
61
|
-
export * from "./order/line-item/discount";
|
|
62
|
-
export * from "./order/line-item/option/value";
|
|
63
|
-
export * from "./order/line-item/option";
|
|
64
|
-
export * from "./order/line-item/variant/brand";
|
|
65
|
-
export * from "./order/line-item/variant/category";
|
|
66
|
-
export * from "./order/line-item/variant/price";
|
|
67
|
-
export * from "./order/line-item/variant/value";
|
|
68
|
-
export * from "./order/line-item/variant";
|
|
69
|
-
export * from "./order/line-item";
|
|
70
|
-
export * from "./order/package/tracking-info";
|
|
71
|
-
export * from "./order/package";
|
|
72
|
-
export * from "./order/payment-method";
|
|
73
|
-
export * from "./order/refund/line-item";
|
|
74
|
-
export * from "./order/refund/settings";
|
|
75
|
-
export * from "./order/refund";
|
|
76
|
-
export * from "./order/shipping-line";
|
|
77
|
-
export * from "./order/tax-line";
|
|
78
|
-
export * from "./order/transaction/error";
|
|
79
|
-
export * from "./order/transaction/payment-method-detail/installment-price";
|
|
80
|
-
export * from "./order/transaction/payment-method-detail";
|
|
81
|
-
export * from "./order/transaction";
|
|
82
|
-
export * from "./order";
|
|
83
|
-
export * from "./payment-gateway/additional-price";
|
|
84
|
-
export * from "./payment-gateway/settings";
|
|
85
|
-
export * from "./payment-gateway/translation";
|
|
86
|
-
export * from "./payment-gateway";
|
|
87
|
-
export * from "./product/attribute/option";
|
|
88
|
-
export * from "./product/attribute/table-cell";
|
|
89
|
-
export * from "./product/attribute/table-template";
|
|
90
|
-
export * from "./product/attribute/translation";
|
|
91
|
-
export * from "./product/attribute";
|
|
92
|
-
export * from "./product/attribute-value";
|
|
93
|
-
export * from "./product/back-in-stock-settings";
|
|
94
|
-
export * from "./product/filter";
|
|
95
|
-
export * from "./product/campaign/data";
|
|
96
|
-
export * from "./product/campaign/filter";
|
|
97
|
-
export * from "./product/campaign/product-buyx-then-gety";
|
|
98
|
-
export * from "./product/campaign/product-campaign-date-range-field";
|
|
99
|
-
export * from "./product/campaign/product-fixed-discount";
|
|
100
|
-
export * from "./product/campaign";
|
|
101
|
-
export * from "./product/image";
|
|
102
|
-
export * from "./product/option-set/option";
|
|
103
|
-
export * from "./product/option-set";
|
|
104
|
-
export * from "./product/stock-location";
|
|
105
|
-
export * from "./product/tag";
|
|
106
|
-
export * from "./product/variant/price";
|
|
107
|
-
export * from "./product/variant";
|
|
108
|
-
export * from "./product/variant-type";
|
|
109
|
-
export * from "./product";
|
|
110
|
-
export * from "./raffle/";
|
|
111
|
-
export * from "./sales-channel";
|
|
112
|
-
export * from "./state";
|
|
113
|
-
export * from "./stock-location/address/city";
|
|
114
|
-
export * from "./stock-location/address/country";
|
|
115
|
-
export * from "./stock-location/address/district";
|
|
116
|
-
export * from "./stock-location/address/state";
|
|
117
|
-
export * from "./stock-location/address";
|
|
118
|
-
export * from "./stock-location/available";
|
|
119
|
-
export * from "./stock-location";
|
|
120
|
-
export * from "./storefront/domain";
|
|
121
|
-
export * from "./storefront/localization";
|
|
122
|
-
export * from "./storefront/routing/dynamic-currency";
|
|
123
|
-
export * from "./storefront/routing";
|
|
124
|
-
export * from "./storefront/theme";
|
|
125
|
-
export * from "./storefront/theme-localization";
|
|
126
|
-
export * from "./storefront";
|
|
127
|
-
export * from "./theme-json/component/prop";
|
|
128
|
-
export * from "./theme-json/component";
|
|
129
|
-
export * from "./theme-json/custom-data";
|
|
130
|
-
export * from "./theme-json/page/component";
|
|
131
|
-
export * from "./theme-json/page";
|
|
132
|
-
export * from "./theme-json/settings/color";
|
|
133
|
-
export * from "./theme-json/settings/favicon";
|
|
134
|
-
export * from "./theme-json/settings/font-family";
|
|
135
|
-
export * from "./theme-json/settings";
|
|
136
|
-
export * from "./theme-json";
|
|
137
|
-
export * from "./variant-type/variant-value";
|
|
138
|
-
export * from "./variant-type";
|
|
1
|
+
export * from "@ikas/storefront-models";
|
|
2
|
+
export * from "./localized-customer-address";
|
|
3
|
+
export * as IkasLocalizedCustomerAddressFunctions from "./localized-customer-address/functions";
|
|
4
|
+
export * from "./localized-order-address";
|
|
5
|
+
export * as IkasLocalizedOrderAddressFunctions from "./localized-order-address/functions";
|
|
6
|
+
export * from "./review-form";
|
|
139
7
|
export type { IkasSliderPropValueData as IkasSlider } from "@ikas/storefront-providers";
|
|
8
|
+
export { AddressFormItem, BillingFormItem } from "@ikas/localized-address";
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { IkasCheckoutSettings, IkasCustomerAddress } from "@ikas/storefront-models";
|
|
2
|
+
import { AddressFormField, ErrorType, IkasAddressFormLabels, AddressFormItem, CustomAddressFormSettings, LocalizedAddressModel } from "@ikas/localized-address";
|
|
3
|
+
import { IkasLocalizedCustomerAddress } from ".";
|
|
4
|
+
import { IkasLocalizedOrderAddress } from "../localized-order-address";
|
|
5
|
+
export declare function createIkasLocalizedCustomerAddress(address: Partial<IkasCustomerAddress>, checkoutSettings?: IkasCheckoutSettings | null, countrySettings?: LocalizedAddressModel): IkasLocalizedCustomerAddress;
|
|
6
|
+
export declare function getCountryCode(address: IkasLocalizedCustomerAddress | IkasLocalizedOrderAddress): string;
|
|
7
|
+
export declare function getInvisibleFields(address: IkasLocalizedCustomerAddress | IkasLocalizedOrderAddress): AddressFormItem[] | undefined;
|
|
8
|
+
export declare function getCustomAddressFormSettings(address: IkasLocalizedCustomerAddress): CustomAddressFormSettings | undefined;
|
|
9
|
+
export declare function getFieldSettings(address: IkasLocalizedCustomerAddress): {
|
|
10
|
+
firstName: AddressFormField;
|
|
11
|
+
lastName: AddressFormField;
|
|
12
|
+
identityNumber: AddressFormField;
|
|
13
|
+
addressLine1: AddressFormField;
|
|
14
|
+
addressLine2: AddressFormField;
|
|
15
|
+
postalCode: AddressFormField;
|
|
16
|
+
country: AddressFormField;
|
|
17
|
+
state: AddressFormField;
|
|
18
|
+
city: AddressFormField;
|
|
19
|
+
district: AddressFormField;
|
|
20
|
+
phone: AddressFormField;
|
|
21
|
+
company: AddressFormField;
|
|
22
|
+
taxOffice: AddressFormField;
|
|
23
|
+
taxNumber: AddressFormField;
|
|
24
|
+
title: AddressFormField;
|
|
25
|
+
} | undefined;
|
|
26
|
+
export declare function getAddressFormat(address: IkasLocalizedCustomerAddress | IkasLocalizedOrderAddress): AddressFormItem[][] | undefined;
|
|
27
|
+
export declare function getAddressFormatIgnoreCountry(address: IkasLocalizedCustomerAddress | IkasLocalizedOrderAddress): AddressFormItem[][] | undefined;
|
|
28
|
+
export declare function getBillingFormat(address: IkasLocalizedCustomerAddress | IkasLocalizedOrderAddress): import("@ikas/localized-address").BillingFormItem[][] | undefined;
|
|
29
|
+
export declare function validateIkasLocalizedCustomerAddress(address: IkasLocalizedCustomerAddress): {
|
|
30
|
+
firstName: ErrorType;
|
|
31
|
+
lastName: ErrorType;
|
|
32
|
+
identityNumber: ErrorType;
|
|
33
|
+
addressLine1: ErrorType;
|
|
34
|
+
addressLine2: ErrorType;
|
|
35
|
+
postalCode: ErrorType;
|
|
36
|
+
country: ErrorType;
|
|
37
|
+
state: ErrorType;
|
|
38
|
+
city: ErrorType;
|
|
39
|
+
district: ErrorType;
|
|
40
|
+
phone: ErrorType;
|
|
41
|
+
company: ErrorType;
|
|
42
|
+
taxOffice: ErrorType;
|
|
43
|
+
taxNumber: ErrorType;
|
|
44
|
+
title: ErrorType;
|
|
45
|
+
} | undefined;
|
|
46
|
+
export declare function isValidLocalizedCustomerAddress(address: IkasLocalizedCustomerAddress): boolean | undefined;
|
|
47
|
+
export declare function getFieldLabels(address: IkasLocalizedCustomerAddress): IkasAddressFormLabels | undefined;
|
|
48
|
+
export declare function isFreeTextCity(address: IkasLocalizedCustomerAddress): boolean | undefined;
|
|
49
|
+
export declare function isFreeTextDistrict(address: IkasLocalizedCustomerAddress): boolean | undefined;
|
|
50
|
+
export declare const addressToParams: (address: IkasCustomerAddress) => {
|
|
51
|
+
firstName: string;
|
|
52
|
+
lastName: string;
|
|
53
|
+
identityNumber: string;
|
|
54
|
+
addressLine1: string;
|
|
55
|
+
addressLine2: string;
|
|
56
|
+
postalCode: string;
|
|
57
|
+
country: string;
|
|
58
|
+
state: string;
|
|
59
|
+
city: string;
|
|
60
|
+
district: string;
|
|
61
|
+
phone: string;
|
|
62
|
+
company: string;
|
|
63
|
+
taxOffice: string;
|
|
64
|
+
taxNumber: string;
|
|
65
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__assign as t}from'./../../../ext/tslib/tslib.es6.js';import{IkasCheckoutRequirement as e}from"@ikas/storefront-models";import{AddressFormItem as n}from"@ikas/localized-address";function i(t,e,n){return{addressLine1:t.addressLine1||"",addressLine2:t.addressLine2||null,company:t.company||null,firstName:t.firstName||"",id:t.id||"",identityNumber:t.identityNumber||null,isDefault:t.isDefault||!1,lastName:t.lastName||"",phone:t.phone||null,postalCode:t.postalCode||null,taxNumber:t.taxNumber||null,taxOffice:t.taxOffice||null,title:t.title||"",attributes:t.attributes||[],createdAt:t.createdAt||Date.now(),updatedAt:t.updatedAt||Date.now(),country:t.country||null,state:t.state||null,city:t.city||null,district:t.district||null,checkoutSettings:e||null,countrySettings:n||null}}function r(t){var e;return(null===(e=t.country)||void 0===e?void 0:e.iso2)||"TR"}function u(t){if(t.checkoutSettings){var i=[];return t.checkoutSettings.identityNumberRequirement===e.INVISIBLE&&i.push(n.IDENTITY_NUMBER),t.checkoutSettings.postalCodeRequirement===e.INVISIBLE&&i.push(n.POSTAL_CODE),t.checkoutSettings.phoneRequirement===e.INVISIBLE&&i.push(n.PHONE),i}}function s(t){if(t.checkoutSettings){var n={};return t.checkoutSettings.phoneRequirement&&(n.phone={required:t.checkoutSettings.phoneRequirement===e.MANDATORY}),t.checkoutSettings.postalCodeRequirement&&(n.postalCode={required:t.checkoutSettings.postalCodeRequirement===e.MANDATORY}),t.checkoutSettings.identityNumberRequirement&&(n.identityNumber={required:t.checkoutSettings.identityNumberRequirement===e.MANDATORY}),n}}function o(e){if(e.countrySettings){var n=e.countrySettings.getFieldSettings({country:r(e),invisibleAddressFields:u(e),customAddressFormSettings:s(e)});if(n)return t({title:{required:!0}},n)}}function c(t){if(t.countrySettings)return t.countrySettings.getAddressFormat(r(t),u(t))}function d(t){if(t.countrySettings)return t.countrySettings.getAddressFormatIgnoreCountry(r(t),u(t))}function a(t){if(t.countrySettings)return t.countrySettings.getBillingFormat(r(t))}function l(e){if(e.countrySettings){var n=e.countrySettings.getValidationResult({address:S(e),country:r(e),invisibleAddressFields:u(e),customAddressFormSettings:s(e)});if(n)return t({title:{hasError:!e.title,isInvalid:!1,isEmpty:!e.title}},n)}}function m(t){var e=l(t);return e&&Object.values(e).every((function(t){return t}))}function f(t){if(t.countrySettings)return t.countrySettings.getFieldLabels(r(t))}function y(t){if(t.countrySettings)return t.countrySettings.isFreeTextCity(r(t))}function g(t){if(t.countrySettings)return t.countrySettings.isFreeTextDistrict(r(t))}var S=function(t){var e,n,i,r;return{firstName:t.firstName||"",lastName:t.lastName||"",identityNumber:t.identityNumber||"",addressLine1:t.addressLine1||"",addressLine2:t.addressLine2||"",postalCode:t.postalCode||"",country:(null===(e=t.country)||void 0===e?void 0:e.name)||"",state:(null===(n=t.state)||void 0===n?void 0:n.name)||"",city:(null===(i=t.city)||void 0===i?void 0:i.name)||"",district:(null===(r=t.district)||void 0===r?void 0:r.name)||"",phone:t.phone||"",company:t.company||"",taxOffice:t.taxOffice||"",taxNumber:t.taxNumber||""}};export{S as addressToParams,i as createIkasLocalizedCustomerAddress,c as getAddressFormat,d as getAddressFormatIgnoreCountry,a as getBillingFormat,r as getCountryCode,s as getCustomAddressFormSettings,f as getFieldLabels,o as getFieldSettings,u as getInvisibleFields,y as isFreeTextCity,g as isFreeTextDistrict,m as isValidLocalizedCustomerAddress,l as validateIkasLocalizedCustomerAddress};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { LocalizedAddressModel } from "@ikas/localized-address";
|
|
2
|
+
import { IkasCheckoutSettings, IkasCustomerAddress } from "@ikas/storefront-models";
|
|
3
|
+
export declare type IkasLocalizedCustomerAddress = {
|
|
4
|
+
countrySettings: LocalizedAddressModel | null;
|
|
5
|
+
checkoutSettings: IkasCheckoutSettings | null;
|
|
6
|
+
} & IkasCustomerAddress;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { IkasCheckoutSettings, IkasOrderAddress } from "@ikas/storefront-models";
|
|
2
|
+
import { IkasAddressFormLabels, AddressFormItem, CustomAddressFormSettings, LocalizedAddressModel } from "@ikas/localized-address";
|
|
3
|
+
import { IkasLocalizedOrderAddress } from ".";
|
|
4
|
+
import { IkasLocalizedCustomerAddress } from "../localized-customer-address";
|
|
5
|
+
export declare function createIkasLocalizedOrderAddress(address: Partial<IkasOrderAddress>, checkoutSettings?: IkasCheckoutSettings | null, countrySettings?: LocalizedAddressModel): IkasLocalizedOrderAddress;
|
|
6
|
+
export declare function getCountryCode(address: IkasLocalizedOrderAddress | IkasLocalizedCustomerAddress): string;
|
|
7
|
+
export declare function getInvisibleFields(address: IkasLocalizedOrderAddress | IkasLocalizedCustomerAddress): AddressFormItem[] | undefined;
|
|
8
|
+
export declare function getCustomAddressFormSettings(address: IkasLocalizedOrderAddress): CustomAddressFormSettings | undefined;
|
|
9
|
+
export declare function getFieldSettings(address: IkasLocalizedOrderAddress): {
|
|
10
|
+
firstName: import("@ikas/localized-address").AddressFormField;
|
|
11
|
+
lastName: import("@ikas/localized-address").AddressFormField;
|
|
12
|
+
identityNumber: import("@ikas/localized-address").AddressFormField;
|
|
13
|
+
addressLine1: import("@ikas/localized-address").AddressFormField;
|
|
14
|
+
addressLine2: import("@ikas/localized-address").AddressFormField;
|
|
15
|
+
postalCode: import("@ikas/localized-address").AddressFormField;
|
|
16
|
+
country: import("@ikas/localized-address").AddressFormField;
|
|
17
|
+
state: import("@ikas/localized-address").AddressFormField;
|
|
18
|
+
city: import("@ikas/localized-address").AddressFormField;
|
|
19
|
+
district: import("@ikas/localized-address").AddressFormField;
|
|
20
|
+
phone: import("@ikas/localized-address").AddressFormField;
|
|
21
|
+
company: import("@ikas/localized-address").AddressFormField;
|
|
22
|
+
taxOffice: import("@ikas/localized-address").AddressFormField;
|
|
23
|
+
taxNumber: import("@ikas/localized-address").AddressFormField;
|
|
24
|
+
} | undefined;
|
|
25
|
+
export declare function getAddressFormat(address: IkasLocalizedOrderAddress | IkasLocalizedCustomerAddress): AddressFormItem[][] | undefined;
|
|
26
|
+
export declare function getAddressFormatIgnoreCountry(address: IkasLocalizedOrderAddress | IkasLocalizedCustomerAddress): AddressFormItem[][] | undefined;
|
|
27
|
+
export declare function getBillingFormat(address: IkasLocalizedOrderAddress | IkasLocalizedCustomerAddress): import("@ikas/localized-address").BillingFormItem[][] | undefined;
|
|
28
|
+
export declare function validateIkasLocalizedOrderAddress(address: IkasLocalizedOrderAddress): {
|
|
29
|
+
firstName: import("@ikas/localized-address").ErrorType;
|
|
30
|
+
lastName: import("@ikas/localized-address").ErrorType;
|
|
31
|
+
identityNumber: import("@ikas/localized-address").ErrorType;
|
|
32
|
+
addressLine1: import("@ikas/localized-address").ErrorType;
|
|
33
|
+
addressLine2: import("@ikas/localized-address").ErrorType;
|
|
34
|
+
postalCode: import("@ikas/localized-address").ErrorType;
|
|
35
|
+
country: import("@ikas/localized-address").ErrorType;
|
|
36
|
+
state: import("@ikas/localized-address").ErrorType;
|
|
37
|
+
city: import("@ikas/localized-address").ErrorType;
|
|
38
|
+
district: import("@ikas/localized-address").ErrorType;
|
|
39
|
+
phone: import("@ikas/localized-address").ErrorType;
|
|
40
|
+
company: import("@ikas/localized-address").ErrorType;
|
|
41
|
+
taxOffice: import("@ikas/localized-address").ErrorType;
|
|
42
|
+
taxNumber: import("@ikas/localized-address").ErrorType;
|
|
43
|
+
} | undefined;
|
|
44
|
+
export declare function isValidAddress(address: IkasLocalizedOrderAddress): boolean | undefined;
|
|
45
|
+
export declare function getFieldLabels(address: IkasLocalizedOrderAddress): IkasAddressFormLabels | undefined;
|
|
46
|
+
export declare function isFreeTextCity(address: IkasLocalizedOrderAddress): boolean | undefined;
|
|
47
|
+
export declare function isFreeTextDistrict(address: IkasLocalizedOrderAddress): boolean | undefined;
|
|
48
|
+
export declare const addressToParams: (address: IkasOrderAddress) => {
|
|
49
|
+
firstName: string;
|
|
50
|
+
lastName: string;
|
|
51
|
+
identityNumber: string;
|
|
52
|
+
addressLine1: string;
|
|
53
|
+
addressLine2: string;
|
|
54
|
+
postalCode: string;
|
|
55
|
+
country: string;
|
|
56
|
+
state: string;
|
|
57
|
+
city: string;
|
|
58
|
+
district: string;
|
|
59
|
+
phone: string;
|
|
60
|
+
company: string;
|
|
61
|
+
taxOffice: string;
|
|
62
|
+
taxNumber: string;
|
|
63
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{IkasCheckoutRequirement as t}from"@ikas/storefront-models";import{AddressFormItem as e}from"@ikas/localized-address";function n(t,e,n){return{addressLine1:t.addressLine1||"",addressLine2:t.addressLine2||null,company:t.company||null,firstName:t.firstName||"",id:t.id||"",identityNumber:t.identityNumber||null,isDefault:t.isDefault||!1,lastName:t.lastName||"",phone:t.phone||null,postalCode:t.postalCode||null,taxNumber:t.taxNumber||null,taxOffice:t.taxOffice||null,country:t.country||null,state:t.state||null,city:t.city||null,district:t.district||null,checkoutSettings:e||null,countrySettings:n||null}}function i(t){var e;return(null===(e=t.country)||void 0===e?void 0:e.iso2)||"TR"}function r(n){if(n.checkoutSettings){var i=[];return n.checkoutSettings.identityNumberRequirement===t.INVISIBLE&&i.push(e.IDENTITY_NUMBER),n.checkoutSettings.postalCodeRequirement===t.INVISIBLE&&i.push(e.POSTAL_CODE),n.checkoutSettings.phoneRequirement===t.INVISIBLE&&i.push(e.PHONE),i}}function s(e){if(e.checkoutSettings){var n={};return e.checkoutSettings.phoneRequirement&&(n.phone={required:e.checkoutSettings.phoneRequirement===t.MANDATORY}),e.checkoutSettings.postalCodeRequirement&&(n.postalCode={required:e.checkoutSettings.postalCodeRequirement===t.MANDATORY}),e.checkoutSettings.identityNumberRequirement&&(n.identityNumber={required:e.checkoutSettings.identityNumberRequirement===t.MANDATORY}),n}}function u(t){if(t.countrySettings)return t.countrySettings.getFieldSettings({country:i(t),invisibleAddressFields:r(t),customAddressFormSettings:s(t)})}function o(t){if(t.countrySettings)return t.countrySettings.getAddressFormat(i(t),r(t))}function c(t){if(t.countrySettings)return t.countrySettings.getAddressFormatIgnoreCountry(i(t),r(t))}function d(t){if(t.countrySettings)return t.countrySettings.getBillingFormat(i(t))}function a(t){if(t.countrySettings)return t.countrySettings.getValidationResult({address:f(t),country:i(t),invisibleAddressFields:r(t),customAddressFormSettings:s(t)})}function l(t){if(t.countrySettings)return t.countrySettings.isValidAddress({address:f(t),country:i(t),invisibleAddressFields:r(t),customAddressFormSettings:s(t)})}function m(t){if(t.countrySettings)return t.countrySettings.getFieldLabels(i(t))}function y(t){if(t.countrySettings)return t.countrySettings.isFreeTextCity(i(t))}function g(t){if(t.countrySettings)return t.countrySettings.isFreeTextDistrict(i(t))}var f=function(t){var e,n,i,r;return{firstName:t.firstName||"",lastName:t.lastName||"",identityNumber:t.identityNumber||"",addressLine1:t.addressLine1||"",addressLine2:t.addressLine2||"",postalCode:t.postalCode||"",country:(null===(e=t.country)||void 0===e?void 0:e.name)||"",state:(null===(n=t.state)||void 0===n?void 0:n.name)||"",city:(null===(i=t.city)||void 0===i?void 0:i.name)||"",district:(null===(r=t.district)||void 0===r?void 0:r.name)||"",phone:t.phone||"",company:t.company||"",taxOffice:t.taxOffice||"",taxNumber:t.taxNumber||""}};export{f as addressToParams,n as createIkasLocalizedOrderAddress,o as getAddressFormat,c as getAddressFormatIgnoreCountry,d as getBillingFormat,i as getCountryCode,s as getCustomAddressFormSettings,m as getFieldLabels,u as getFieldSettings,r as getInvisibleFields,y as isFreeTextCity,g as isFreeTextDistrict,l as isValidAddress,a as validateIkasLocalizedOrderAddress};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { LocalizedAddressModel } from "@ikas/localized-address";
|
|
2
|
+
import { IkasCheckoutSettings, IkasOrderAddress } from "@ikas/storefront-models";
|
|
3
|
+
export declare type IkasLocalizedOrderAddress = {
|
|
4
|
+
countrySettings: LocalizedAddressModel | null;
|
|
5
|
+
checkoutSettings: IkasCheckoutSettings | null;
|
|
6
|
+
} & IkasOrderAddress;
|
|
@@ -15,6 +15,7 @@ export declare class IkasThemeJsonComponent implements IThemeJsonComponent {
|
|
|
15
15
|
[locale: string]: any;
|
|
16
16
|
};
|
|
17
17
|
constructor(data: Partial<IkasThemeJsonComponent>);
|
|
18
|
+
get isCommon(): boolean;
|
|
18
19
|
}
|
|
19
20
|
export declare class ComponentTranslation {
|
|
20
21
|
displayName: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeAutoObservable as i}from"mobx";import{IkasThemeJsonComponentProp as
|
|
1
|
+
import{makeAutoObservable as i}from"mobx";import{IkasThemeJsonComponentProp as t}from"./prop/index.js";var s=function(){function s(s){this.translations={},this.defaultPropValuesTranslations={},this.id=s.id||"",this.dir=s.dir||"",this.displayName=s.displayName||"",this.description=s.description||"",this.props=s.props?s.props.map((function(i){return new t(i)})):[],this.translations=s.translations||{},this.isHeader=s.isHeader||!1,this.isFooter=s.isFooter||!1,this.defaultPropValuesTranslations=s.defaultPropValuesTranslations||{},i(this)}return Object.defineProperty(s.prototype,"isCommon",{get:function(){return this.isHeader||this.isFooter},enumerable:!1,configurable:!0}),s}();export{s as IkasThemeJsonComponent};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { IkasProductAttributeType } from "
|
|
2
|
-
import { IkasThemeJsonComponentPropType, IkasThemeJsonSliderData, IkasThemeJsonCustomData as IThemeJsonCustomData, IkasThemeJsonEnumOption as IThemeJsonEnumOption, IkasThemeJsonCustomDataTranslation as IThemeJsonCustomDataTranslation, IkasThemeJsonCustomDataEnumOptionTranslation as IThemeJsonCustomDataEnumOptionTranslation } from "@ikas/storefront-models";
|
|
1
|
+
import { IkasThemeJsonComponentPropType, IkasThemeJsonSliderData, IkasThemeJsonCustomData as IThemeJsonCustomData, IkasThemeJsonEnumOption as IThemeJsonEnumOption, IkasThemeJsonCustomDataTranslation as IThemeJsonCustomDataTranslation, IkasThemeJsonCustomDataEnumOptionTranslation as IThemeJsonCustomDataEnumOptionTranslation, IkasProductAttributeType } from "@ikas/storefront-models";
|
|
3
2
|
export declare class IkasThemeJsonCustomData implements IThemeJsonCustomData {
|
|
4
3
|
id: string;
|
|
5
4
|
name?: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as t}from'./../../../../ext/tslib/tslib.es6.js';import i from"lodash/flatten";import{IkasThemeJsonComponentPropType as
|
|
1
|
+
import{__assign as t}from'./../../../../ext/tslib/tslib.es6.js';import i from"lodash/flatten";import{IkasThemeJsonComponentPropType as e}from"@ikas/storefront-models";var n=function(){function n(i){void 0===i&&(i={});var a,o=this;this.translations={},this.customDataId=null,this.id=i.id||"",this.name=i.name||null,this.description=i.description||null,this.typescriptName=i.name||null,this.type=i.type||e.TEXT,this.isRequired=void 0===i.isRequired||i.isRequired,this.translations=i.translations||{},this.key=i.key||null,this.parent=i.parent||null,this.itemCount=i.itemCount||null,this.attributeTypes=i.attributeTypes||null,this.enumOptions=(null===(a=i.enumOptions)||void 0===a?void 0:a.map((function(t){return new s(t)})))||null,this.customDataId=i.customDataId||null,this.sliderData=i.sliderData||{},this.isRoot=i.isRoot||!1,this.nestedData=i.nestedData?i.nestedData.map((function(i){return new n(t(t({},i),{parent:o}))})):null,this.type!==e.STATIC_LIST||this.itemCount||(this.itemCount=1)}return Object.defineProperty(n.prototype,"flat",{get:function(){if(!this.nestedData||!this.nestedData.length)return[this];var t=i(this.nestedData.map((function(t){return t.flat}))),e=[];return e.push(this),e=e.concat(t)},enumerable:!1,configurable:!0}),n.prototype.toJSON=function(){var i=t({},this);return delete i.parent,i},n}(),s=function(t){void 0===t&&(t={}),this.translations={},this.id=t.id||"",this.displayName=t.displayName||"",this.value=t.value||"",this.translations=t.translations||{}};export{n as IkasThemeJsonCustomData,s as IkasThemeJsonEnumOption};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeAutoObservable as i}from"mobx";var
|
|
1
|
+
import{makeAutoObservable as i}from"mobx";var t=function(t){this.translations={},this.id=t.id||"",this.displayName=t.displayName||"",this.key=t.key||"",this.color=t.color||"",this.translations=t.translations||{},i(this)};export{t as IkasThemeJsonColor};
|
package/build/models/index.d.ts
CHANGED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IkasBlogCategoryList } from ".";
|
|
2
|
+
export declare function createIkasBlogCategoryList(params: Partial<IkasBlogCategoryList>): IkasBlogCategoryList;
|
|
3
|
+
export * from "../list-commons";
|
|
4
|
+
export declare function getPrev(list: IkasBlogCategoryList): Promise<void>;
|
|
5
|
+
export declare function getNext(list: IkasBlogCategoryList): Promise<void>;
|
|
6
|
+
export declare function getPage(list: IkasBlogCategoryList, page: number): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__awaiter as t,__generator as i}from'./../../../ext/tslib/tslib.es6.js';import{observable as a}from"mobx";import{listBlogCategory as n}from"@ikas/storefront-api";import{IkasBlogCategoryListType as o}from"./index.js";import{isStatic as e,hasPrev as r,hasNext as s}from"../list-commons/index.js";export{getPageCount,hasNext,hasPrev,isStatic}from"../list-commons/index.js";function u(t){return a({data:t.data||[],type:t.type||o.ALL,limit:t.limit||20,page:t.page||1,count:t.count||0,initialized:t.initialized||!1,minPage:t.minPage||t.page||1,blogCategoryListPropValue:t.blogCategoryListPropValue||{blogCategoryListType:o.ALL},isLoading:t.isLoading||!1})}function d(a){var n,o,s;return t(this,void 0,void 0,(function(){var t,u,d;return i(this,(function(i){switch(i.label){case 0:if(a.isLoading||e(a)||!r(a))return[2];a.isLoading=!0,i.label=1;case 1:return i.trys.push([1,3,4,5]),t=a.minPage-1,[4,g(a,t,a.limit)];case 2:return u=i.sent(),a.data=(null===(o=null===(n=u.data)||void 0===n?void 0:n.data)||void 0===o?void 0:o.concat(a.data))||a.data,a.count=(null===(s=u.data)||void 0===s?void 0:s.count)||a.count,a.minPage=t,[3,5];case 3:return d=i.sent(),console.log(d),[3,5];case 4:return a.isLoading=!1,[7];case 5:return[2]}}))}))}function l(a){var n,o;return t(this,void 0,void 0,(function(){var t,r;return i(this,(function(i){switch(i.label){case 0:if(a.isLoading||e(a)||!s(a))return[2];a.isLoading=!0,i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,g(a,a.page+1,a.limit)];case 2:return t=i.sent(),a.data=a.data.concat((null===(n=t.data)||void 0===n?void 0:n.data)||[]),a.count=(null===(o=t.data)||void 0===o?void 0:o.count)||a.count,a.page=a.page+1,[3,5];case 3:return r=i.sent(),console.log(r),[3,5];case 4:return a.isLoading=!1,[7];case 5:return[2]}}))}))}function c(a,n){var o,r;return t(this,void 0,void 0,(function(){var t,s;return i(this,(function(i){switch(i.label){case 0:if(a.isLoading||e(a))return[2];a.isLoading=!0,i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,g(a,n,a.limit)];case 2:return t=i.sent(),a.data=(null===(o=t.data)||void 0===o?void 0:o.data)||[],a.count=(null===(r=t.data)||void 0===r?void 0:r.count)||0,a.page=n,a.minPage=n,[3,5];case 3:return s=i.sent(),console.log(s),[3,5];case 4:return a.isLoading=!1,[7];case 5:return[2]}}))}))}function g(a,o,r){return t(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,n({id:e(a)&&a.blogCategoryListPropValue.blogCategoryIds?{in:a.blogCategoryListPropValue.blogCategoryIds}:void 0,pagination:{page:o,limit:r}})];case 1:return[2,t.sent()]}}))}))}export{u as createIkasBlogCategoryList,l as getNext,c as getPage,d as getPrev};
|
|
@@ -1,49 +1,15 @@
|
|
|
1
1
|
import { IkasBlogCategoryListPropValue } from "@ikas/storefront-providers";
|
|
2
2
|
import { IkasBlogCategory } from "../../data";
|
|
3
|
-
export declare
|
|
3
|
+
export declare type IkasBlogCategoryList = {
|
|
4
4
|
data: IkasBlogCategory[];
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
private _blogCategoryListPropValue;
|
|
12
|
-
private _isLoading;
|
|
13
|
-
constructor(data: IkasBlogCategoryListParams);
|
|
14
|
-
get limit(): number;
|
|
15
|
-
get page(): number;
|
|
16
|
-
get count(): number;
|
|
17
|
-
get pageCount(): number;
|
|
18
|
-
get isInitialized(): boolean;
|
|
19
|
-
get isStatic(): boolean;
|
|
20
|
-
get hasPrev(): boolean;
|
|
21
|
-
get hasNext(): boolean;
|
|
22
|
-
get isLoading(): boolean;
|
|
23
|
-
private listBlogCategories;
|
|
24
|
-
getPrev: () => Promise<void>;
|
|
25
|
-
getNext: () => Promise<void>;
|
|
26
|
-
getPage: (page: number) => Promise<void>;
|
|
27
|
-
toJSON(): {
|
|
28
|
-
data: IkasBlogCategory[];
|
|
29
|
-
type: IkasBlogCategoryListType;
|
|
30
|
-
limit: number;
|
|
31
|
-
page: number;
|
|
32
|
-
count: number;
|
|
33
|
-
initialized: boolean;
|
|
34
|
-
minPage: number | null | undefined;
|
|
35
|
-
blogCategoryListPropValue: IkasBlogCategoryListPropValue;
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
export declare type IkasBlogCategoryListParams = {
|
|
39
|
-
data?: IkasBlogCategory[];
|
|
40
|
-
type?: IkasBlogCategoryListType;
|
|
41
|
-
limit?: number;
|
|
42
|
-
page?: number;
|
|
43
|
-
count?: number;
|
|
44
|
-
initialized?: boolean;
|
|
45
|
-
minPage?: number;
|
|
5
|
+
type: IkasBlogCategoryListType;
|
|
6
|
+
limit: number;
|
|
7
|
+
page: number;
|
|
8
|
+
count: number;
|
|
9
|
+
initialized: boolean;
|
|
10
|
+
minPage: number;
|
|
46
11
|
blogCategoryListPropValue: IkasBlogCategoryListPropValue;
|
|
12
|
+
isLoading: boolean;
|
|
47
13
|
};
|
|
48
14
|
export declare enum IkasBlogCategoryListType {
|
|
49
15
|
ALL = "ALL",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var A;!function(A){A.ALL="ALL",A.STATIC="STATIC"}(A||(A={}));export{A as IkasBlogCategoryListType};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IkasBlogList } from ".";
|
|
2
|
+
export * from "../list-commons";
|
|
3
|
+
export declare function createIkasBlogList(params: Partial<IkasBlogList>): IkasBlogList;
|
|
4
|
+
export declare function getPrev(list: IkasBlogList): Promise<void>;
|
|
5
|
+
export declare function getNext(list: IkasBlogList): Promise<void>;
|
|
6
|
+
export declare function getPage(list: IkasBlogList, page: number): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__awaiter as t,__generator as i}from'./../../../ext/tslib/tslib.es6.js';import{observable as n}from"mobx";import{listBlog as a}from"@ikas/storefront-api";import{IkasBlogListType as e}from"./index.js";import{isStatic as o,hasPrev as r,hasNext as s}from"../list-commons/index.js";export{getPageCount,hasNext,hasPrev,isStatic}from"../list-commons/index.js";function u(t){return n({data:t.data||[],type:t.type||e.ALL,limit:t.limit||20,page:t.page||1,count:t.count||0,initialized:t.initialized||!1,minPage:t.minPage||t.page||1,blogListPropValue:t.blogListPropValue||{blogListType:e.ALL,categoryId:t.filterCategoryId||null},filterCategoryId:t.filterCategoryId||null,isLoading:t.isLoading||!1})}function d(n){var a,e,s;return t(this,void 0,void 0,(function(){var t,u,d;return i(this,(function(i){switch(i.label){case 0:if(n.isLoading||o(n)||!r(n))return[2];n.isLoading=!0,i.label=1;case 1:return i.trys.push([1,3,4,5]),t=n.minPage-1,[4,g(n,t,n.limit)];case 2:return u=i.sent(),n.data=(null===(e=null===(a=u.data)||void 0===a?void 0:a.data)||void 0===e?void 0:e.concat(n.data))||n.data,n.count=(null===(s=u.data)||void 0===s?void 0:s.count)||n.count,n.minPage=t,[3,5];case 3:return d=i.sent(),console.log(d),[3,5];case 4:return n.isLoading=!1,[7];case 5:return[2]}}))}))}function l(n){var a,e;return t(this,void 0,void 0,(function(){var t,r;return i(this,(function(i){switch(i.label){case 0:if(n.isLoading||o(n)||!s(n))return[2];n.isLoading=!0,i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,g(n,n.page+1,n.limit)];case 2:return t=i.sent(),n.data=n.data.concat((null===(a=t.data)||void 0===a?void 0:a.data)||[]),n.count=(null===(e=t.data)||void 0===e?void 0:e.count)||n.count,n.page=n.page+1,[3,5];case 3:return r=i.sent(),console.log(r),[3,5];case 4:return n.isLoading=!1,[7];case 5:return[2]}}))}))}function c(n,a){var e,r;return t(this,void 0,void 0,(function(){var t,s;return i(this,(function(i){switch(i.label){case 0:if(n.isLoading||o(n))return[2];n.isLoading=!0,i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,g(n,a,n.limit)];case 2:return t=i.sent(),n.data=(null===(e=t.data)||void 0===e?void 0:e.data)||[],n.count=(null===(r=t.data)||void 0===r?void 0:r.count)||0,n.page=a,n.minPage=a,[3,5];case 3:return s=i.sent(),console.log(s),[3,5];case 4:return n.isLoading=!1,[7];case 5:return[2]}}))}))}function g(n,e,r){return t(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,a({id:o(n)&&n.blogListPropValue.blogIds?{in:n.blogListPropValue.blogIds}:void 0,categoryId:n.filterCategoryId?{eq:n.filterCategoryId}:void 0,pagination:{page:e,limit:r}})];case 1:return[2,t.sent()]}}))}))}export{u as createIkasBlogList,l as getNext,c as getPage,d as getPrev};
|
|
@@ -1,52 +1,16 @@
|
|
|
1
|
-
import { IkasBlog } from "../../../models/data/blog";
|
|
2
1
|
import { IkasBlogListPropValue } from "@ikas/storefront-providers";
|
|
3
|
-
|
|
2
|
+
import { IkasBlog } from "@ikas/storefront-models";
|
|
3
|
+
export declare type IkasBlogList = {
|
|
4
4
|
data: IkasBlog[];
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
private _blogListPropValue;
|
|
12
|
-
private _filterCategoryId;
|
|
13
|
-
private _isLoading;
|
|
14
|
-
constructor(data: IkasBlogListParams);
|
|
15
|
-
get limit(): number;
|
|
16
|
-
get page(): number;
|
|
17
|
-
get count(): number;
|
|
18
|
-
get pageCount(): number;
|
|
19
|
-
get isInitialized(): boolean;
|
|
20
|
-
get isStatic(): boolean;
|
|
21
|
-
get hasPrev(): boolean;
|
|
22
|
-
get hasNext(): boolean;
|
|
23
|
-
get isLoading(): boolean;
|
|
24
|
-
private listBlogs;
|
|
25
|
-
getPrev: () => Promise<void>;
|
|
26
|
-
getNext: () => Promise<void>;
|
|
27
|
-
getPage: (page: number) => Promise<void>;
|
|
28
|
-
toJSON(): {
|
|
29
|
-
data: IkasBlog[];
|
|
30
|
-
type: IkasBlogListType;
|
|
31
|
-
limit: number;
|
|
32
|
-
page: number;
|
|
33
|
-
count: number;
|
|
34
|
-
initialized: boolean;
|
|
35
|
-
minPage: number | null | undefined;
|
|
36
|
-
blogListPropValue: IkasBlogListPropValue;
|
|
37
|
-
filterCategoryId: string | null;
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
export declare type IkasBlogListParams = {
|
|
41
|
-
data?: IkasBlog[];
|
|
42
|
-
type?: IkasBlogListType;
|
|
43
|
-
limit?: number;
|
|
44
|
-
page?: number;
|
|
45
|
-
count?: number;
|
|
46
|
-
initialized?: boolean;
|
|
47
|
-
minPage?: number;
|
|
5
|
+
type: IkasBlogListType;
|
|
6
|
+
limit: number;
|
|
7
|
+
page: number;
|
|
8
|
+
count: number;
|
|
9
|
+
initialized: boolean;
|
|
10
|
+
minPage: number;
|
|
48
11
|
blogListPropValue: IkasBlogListPropValue;
|
|
49
12
|
filterCategoryId: string | null;
|
|
13
|
+
isLoading: boolean;
|
|
50
14
|
};
|
|
51
15
|
export declare enum IkasBlogListType {
|
|
52
16
|
ALL = "ALL",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var A;!function(A){A.ALL="ALL",A.STATIC="STATIC",A.CATEGORY="CATEGORY"}(A||(A={}));export{A as IkasBlogListType};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IkasBrandList, IkasBrandListSortType } from "./index";
|
|
2
|
+
export * from "../list-commons";
|
|
3
|
+
export declare function createIkasBrandList(params: IkasBrandList): IkasBrandList;
|
|
4
|
+
export declare function getInitial(list: IkasBrandList): Promise<void>;
|
|
5
|
+
export declare function getPrev(list: IkasBrandList): Promise<void>;
|
|
6
|
+
export declare function getNext(list: IkasBrandList): Promise<void>;
|
|
7
|
+
export declare function getPage(list: IkasBrandList, page: number): Promise<void>;
|
|
8
|
+
export declare function setSortType(list: IkasBrandList, sortType: IkasBrandListSortType): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__awaiter as t,__generator as i}from'./../../../ext/tslib/tslib.es6.js';import{IkasBrandListType as n,IkasBrandListSortType as a}from"./index.js";import{observable as o}from"mobx";import{isStatic as e,hasPrev as r,hasNext as s}from"../list-commons/index.js";export{getPageCount,hasNext,hasPrev,isStatic}from"../list-commons/index.js";import{listProductBrand as d}from"@ikas/storefront-api";function u(t){return o({data:t.data||[],type:t.type||n.ALL,sort:t.sort||a.A_Z,limit:t.limit||20,page:t.page||1,count:t.count||0,initialized:t.initialized||!1,minPage:t.minPage||t.page||1,brandListPropValue:t.brandListPropValue||{brandIds:[]},isLoading:t.isLoading||!1})}function l(n){var a,o,r;return t(this,void 0,void 0,(function(){var t,s;return i(this,(function(i){switch(i.label){case 0:if(n.isLoading)return[2];n.isLoading=!0,i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,d({id:e(n)&&n.brandListPropValue.brandIds?{in:n.brandListPropValue.brandIds}:void 0,pagination:{page:e(n)?void 0:n.page,limit:e(n)?void 0:n.limit},sort:m(n)})];case 2:return t=i.sent(),e(n)?n.data=(null===(a=n.brandListPropValue.brandIds)||void 0===a?void 0:a.map((function(i){var n,a;return null===(a=null===(n=t.data)||void 0===n?void 0:n.data)||void 0===a?void 0:a.find((function(t){return t.id===i}))})).filter((function(t){return!!t})))||[]:n.data=(null===(o=t.data)||void 0===o?void 0:o.data)||[],n.count=(null===(r=t.data)||void 0===r?void 0:r.count)||0,n.initialized=!0,n.minPage=n.page,[3,5];case 3:return s=i.sent(),console.log(s),[3,5];case 4:return n.isLoading=!1,[7];case 5:return[2]}}))}))}function c(n){var a,o,s;return t(this,void 0,void 0,(function(){var t,u,l;return i(this,(function(i){switch(i.label){case 0:if(n.isLoading||e(n)||!r(n))return[2];n.isLoading=!0,i.label=1;case 1:return i.trys.push([1,3,4,5]),t=n.minPage-1,[4,d({pagination:{page:t,limit:n.limit},sort:m(n)})];case 2:return u=i.sent(),n.data=(null===(o=null===(a=u.data)||void 0===a?void 0:a.data)||void 0===o?void 0:o.concat(n.data))||n.data,n.count=(null===(s=u.data)||void 0===s?void 0:s.count)||0,n.minPage=t,[3,5];case 3:return l=i.sent(),console.log(l),[3,5];case 4:return n.isLoading=!1,[7];case 5:return[2]}}))}))}function v(n){var a,o;return t(this,void 0,void 0,(function(){var t,r;return i(this,(function(i){switch(i.label){case 0:if(n.isLoading||e(n)||!s(n))return[2];n.isLoading=!0,i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,d({pagination:{page:n.page+1,limit:n.limit},sort:m(n)})];case 2:return t=i.sent(),n.data=n.data.concat((null===(a=t.data)||void 0===a?void 0:a.data)||[]),n.count=(null===(o=t.data)||void 0===o?void 0:o.count)||n.count,n.page=n.page+1,[3,5];case 3:return r=i.sent(),console.log(r),[3,5];case 4:return n.isLoading=!1,[7];case 5:return[2]}}))}))}function g(n,a){var o,r;return t(this,void 0,void 0,(function(){var t,s;return i(this,(function(i){switch(i.label){case 0:if(n.isLoading||e(n))return[2];n.isLoading=!0,i.label=1;case 1:return i.trys.push([1,3,4,5]),[4,d({pagination:{page:a,limit:n.limit},sort:m(n)})];case 2:return t=i.sent(),n.data=(null===(o=t.data)||void 0===o?void 0:o.data)||[],n.count=(null===(r=t.data)||void 0===r?void 0:r.count)||0,n.page=a,n.minPage=a,[3,5];case 3:return s=i.sent(),console.log(s),[3,5];case 4:return n.isLoading=!1,[7];case 5:return[2]}}))}))}function p(n,a){return t(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return n.sort=a,[4,l(n)];case 1:return t.sent(),[2]}}))}))}function m(t){return t.sort===a.A_Z?"name":"-name"}export{u as createIkasBrandList,l as getInitial,v as getNext,g as getPage,c as getPrev,p as setSortType};
|