@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,37 +1,32 @@
|
|
|
1
|
-
import { IkasProduct, IkasOrderLineItem, IkasCategory, IkasThemeJsonPageType, IkasOrderTransaction, IkasBrand, IkasCustomer,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
static viewBrand(brand: IkasBrand): void;
|
|
34
|
-
static viewSearchResults(searchKeyword: string, productDetails: IkasProduct[]): void;
|
|
35
|
-
static viewListing(productDetails: IkasProduct[]): void;
|
|
36
|
-
static contactForm(form: IkasContactForm): void;
|
|
37
|
-
}
|
|
1
|
+
import { IkasProduct, IkasOrderLineItem, IkasCategory, IkasThemeJsonPageType, IkasOrderTransaction, IkasBrand, IkasCustomer, IkasContactForm, IkasCart } from "../models/data";
|
|
2
|
+
import { IkasCheckout } from "../models/data/checkout";
|
|
3
|
+
import { CheckoutStep } from "../components/checkout/types";
|
|
4
|
+
export declare function getCustomerInfo(): Promise<{
|
|
5
|
+
consentGranted: boolean;
|
|
6
|
+
id: string;
|
|
7
|
+
firstName: string;
|
|
8
|
+
lastName: string | null;
|
|
9
|
+
email: string | null;
|
|
10
|
+
phone: string | null;
|
|
11
|
+
} | null>;
|
|
12
|
+
export declare function pageView(pageType: IkasThemeJsonPageType): Promise<void>;
|
|
13
|
+
export declare function productView(productDetail: IkasProduct): void;
|
|
14
|
+
export declare function addToCart(item: IkasOrderLineItem, quantity: number, eventId: string, cart: IkasCart): void;
|
|
15
|
+
export declare function removeFromCart(item: IkasProduct | IkasOrderLineItem, quantity: number, cart: IkasCart): void;
|
|
16
|
+
export declare function beginCheckout(checkout: IkasCheckout): void;
|
|
17
|
+
export declare function purchase(checkout: IkasCheckout, transaction: IkasOrderTransaction): void;
|
|
18
|
+
export declare function checkoutStep(checkout: IkasCheckout, step: CheckoutStep): void;
|
|
19
|
+
export declare function disableHTML(): void;
|
|
20
|
+
export declare function addToWishlist(productId: string): void;
|
|
21
|
+
export declare function search(searchKeyword: string): void;
|
|
22
|
+
export declare function completeRegistration(customer: IkasCustomer): void;
|
|
23
|
+
export declare function createEmailSubscripition(email: string): void;
|
|
24
|
+
export declare function customerLogin(): Promise<void>;
|
|
25
|
+
export declare function customerLogout(): Promise<void>;
|
|
26
|
+
export declare function customerVisit(): Promise<void>;
|
|
27
|
+
export declare function viewCart(cart: IkasCart | null | undefined): void;
|
|
28
|
+
export declare function viewCategory(categoryPath: string, category: IkasCategory): void;
|
|
29
|
+
export declare function viewBrand(brand: IkasBrand): void;
|
|
30
|
+
export declare function viewSearchResults(searchKeyword: string, productDetails: IkasProduct[]): void;
|
|
31
|
+
export declare function viewListing(productDetails: IkasProduct[]): void;
|
|
32
|
+
export declare function contactForm(form: IkasContactForm): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as t,__generator as e,__assign as r}from'./../ext/tslib/tslib.es6.js';import{makeAutoObservable as o}from"mobx";import"../models/data/blog/category/index.js";import"../models/data/blog/content/index.js";import"../models/data/blog/meta-data/index.js";import"../models/data/blog/tag/index.js";import"../models/data/blog/index.js";import{IkasBrand as i}from"../models/data/brand/index.js";import"@ikas/storefront-models";import"../models/data/campaign-offer/index.js";import"../models/data/cart/campaign-offer/index.js";import{IkasCart as s}from"../models/data/cart/index.js";import"../models/data/category/path-item/index.js";import{IkasCategory as a}from"../models/data/category/index.js";import{IkasCheckout as c}from"../models/data/checkout/index.js";import"../models/data/checkout/country-settings-model.js";import"../models/data/checkout-settings/index.js";import"../models/data/city/index.js";import"../models/data/country/index.js";import"../models/data/customer/address/index.js";import"../models/data/customer/address/ikas-localized-customer-address.js";import"../models/data/customer/attribute/index.js";import"../models/data/customer/review/summary/index.js";import"../models/data/customer/review/index.js";import"../models/data/customer/index.js";import"../models/data/district/index.js";import"../models/data/favorite-product/index.js";import"../models/data/filter-category/index.js";import"../models/data/html-meta-data/index.js";import"../models/data/image/index.js";import"../models/data/order/address/index.js";import"../models/data/order/line-item/option/value/index.js";import"../models/data/order/line-item/variant/value/index.js";import"../models/data/order/line-item/variant/index.js";import"../models/data/order/line-item/index.js";import"../models/data/order/package/index.js";import"../models/data/order/transaction/index.js";import"../models/data/order/index.js";import"../models/data/payment-gateway/index.js";import"../models/data/product/attribute-value/index.js";import"../models/data/product/filter/index.js";import"../models/data/product/option-set/option/index.js";import"../models/data/product/option-set/index.js";import"../models/data/product/stock-location/index.js";import"../models/data/product/variant/price/index.js";import"../models/data/product/variant/index.js";import"../models/data/variant-type/index.js";import{IkasProduct as n}from"../models/data/product/index.js";import"../models/data/raffle/index.js";import"../models/data/state/index.js";import"../models/data/theme-json/index.js";import"../models/data/theme-json/custom-data/index.js";import"../models/data/variant-type/variant-value/index.js";import"../models/ui/blog-list/index.js";import"../models/ui/blog-category-list/index.js";import"../models/ui/brand-list/index.js";import"../models/ui/category-list/index.js";import"../models/ui/product-list/index.js";import"../models/ui/product-attribute-detail/index.js";import"../models/ui/product-attribute-list/index.js";import"../models/ui/customer-review-list/index.js";import"../models/ui/customer-review-summary-list/index.js";import"../models/ui/validator/index.js";import"../models/ui/validator/rules/index.js";import"../models/ui/validator/form/login.js";import"../models/ui/validator/form/address.js";import"../models/ui/validator/form/ikas-address.js";import"../models/ui/validator/form/register.js";import"../models/ui/validator/form/contact-form.js";import"../models/ui/validator/form/forgot-password.js";import"../models/ui/validator/form/recover-password.js";import"../models/ui/validator/form/account-info.js";import"../models/ui/validator/form/raffle-form.js";import"../models/ui/validator/form/customer-review.js";import"../models/ui/raffle-list/index.js";import{FacebookPixel as d}from"./facebookPixel.js";import{GoogleTagManager as m}from"./googleTagManager.js";import{IkasEventType as l}from"./events.js";import u from"lodash/cloneDeep";import{tryForEach as p}from"../utils/helper.js";import b from"./ikas.js";import{GoogleAnalytics as f}from"./googleAnalytics.js";import{GoogleUniversal as h}from"./googleUniversal.js";import{TiktokPixel as g}from"./tiktokPixel.js";import{IkasBaseStore as j}from"../store/base.js";import"../store/customer/index.js";import"../store/cart/index.js";var v=function(){function v(){o(this)}return v.getCustomerInfo=function(){return t(this,void 0,void 0,(function(){var t,o;return e(this,(function(e){switch(e.label){case 0:return[4,(t=j.getInstance()).customerStore.waitUntilInitialized()];case 1:return e.sent(),(o=t.customerStore.customer)?[2,r(r({},o.basicInfo),{consentGranted:t.customerStore.customerConsentGranted})]:[2,null]}}))}))},v.pageView=function(r){return t(this,void 0,void 0,(function(){var t,o,i;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),t=window.location.href,[4,v.getCustomerInfo()];case 1:return o=e.sent(),m.pageView(t),h.pageView(window.location.pathname),b.pageView(r),p(v.subscribers,(function(e){e.callback({type:l.PAGE_VIEW,data:{url:t,pageType:r,customer:o}})})),[3,3];case 2:return i=e.sent(),console.error(i),[3,3];case 3:return[2]}}))}))},v.productView=function(t){try{if(d.productView(t),m.productView(t),b.productView(t),f.productView(t),h.productView(t),g.productView(t),v.subscribers.length){var e=new n(u(t));p(v.subscribers,(function(t){t.callback({type:l.PRODUCT_VIEW,data:{productDetail:e}})}))}}catch(t){console.error(t)}},v.addToCart=function(t,e,r,o){try{if(d.addToCart(t,e,r),m.addToCart(t,e),b.addToCart(t,e,o),f.addToCart(t,e),h.addToCart(t,e),g.addToCart(t,e),v.subscribers.length){var i=u(t),a=new s(u(o));p(v.subscribers,(function(t){t.callback({type:l.ADD_TO_CART,data:{item:i,quantity:e,cart:a}})}))}}catch(t){console.error(t)}},v.removeFromCart=function(t,e,r){try{if(m.removeFromCart(t,e),f.removeFromCart(t,e),h.removeFromCart(t,e),v.subscribers.length){var o=u(t),i=new s(u(r));p(v.subscribers,(function(t){t.callback({type:l.REMOVE_FROM_CART,data:{item:o,quantity:e,cart:i}})}))}}catch(t){console.error(t)}},v.beginCheckout=function(t){try{var e=localStorage.getItem("gtmBeginCheckout");if(e&&t.id===e)return;if(localStorage.setItem("gtmBeginCheckout",t.id),d.beginCheckout(t),m.beginCheckout(t),b.beginCheckout(t),f.beginCheckout(t),g.beginCheckout(),v.subscribers.length){var r=new c(u(t));p(v.subscribers,(function(t){t.callback({type:l.BEGIN_CHECKOUT,data:{checkout:r}})}))}}catch(t){console.error(t)}},v.purchase=function(t,e){try{if(localStorage.removeItem("gtmBeginCheckout"),d.purchase(t,e.id||""),m.purchase(t,t.orderNumber||""),b.orderSuccess(t),f.purchase(t,t.orderNumber||""),h.purchase(t,t.orderNumber||""),g.purchase(t),v.subscribers.length){var r=new c(u(t)),o=u(e);p(v.subscribers,(function(t){t.callback({type:l.COMPLETE_CHECKOUT,data:{checkout:r,transaction:o}})}))}}catch(t){console.error(t)}},v.checkoutStep=function(t,e){try{if(m.checkoutStep(t,e),b.checkoutStep(t,e),f.checkoutStep(t,e),v.subscribers.length){var r=new c(u(t));p(v.subscribers,(function(t){t.callback({type:l.CHECKOUT_STEP,data:{checkout:r,step:e}})}))}}catch(t){console.error(t)}},v.disableHTML=function(){try{m.disableHTML()}catch(t){console.error(t)}},v.addToWishlist=function(t){try{d.addToWishlist(t),g.addToWishlist(t),v.subscribers.length&&p(v.subscribers,(function(e){e.callback({type:l.ADD_TO_WISHLIST,data:{productId:t}})}))}catch(t){console.error(t)}},v.search=function(t){try{d.search(t),m.search(t),g.search(t),v.subscribers.length&&p(v.subscribers,(function(e){e.callback({type:l.SEARCH,data:{searchKeyword:t}})}))}catch(t){console.error(t)}},v.completeRegistration=function(t){try{d.completeRegistration(),m.completeRegistration(),g.completeRegistration(),b.customerRegister(),v.subscribers.length&&p(v.subscribers,(function(e){e.callback({type:l.CUSTOMER_REGISTER,data:{email:t.email,firstName:t.firstName,lastName:t.lastName}})}))}catch(t){console.error(t)}},v.createEmailSubscripition=function(t){try{v.subscribers.length&&p(v.subscribers,(function(e){e.callback({type:l.EMAIL_SUBSCRIPTION,data:{email:t}})}))}catch(t){console.error(t)}},v.customerLogin=function(){return t(this,void 0,void 0,(function(){var t,r;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,v.getCustomerInfo()];case 1:return(t=e.sent())&&t.email?(m.customerLogin(t.email),b.customerLogin(),v.subscribers.length&&p(v.subscribers,(function(e){e.callback({type:l.CUSTOMER_LOGIN,data:{customer:t}})})),[3,3]):[2];case 2:return r=e.sent(),console.error(r),[3,3];case 3:return[2]}}))}))},v.customerLogout=function(){return t(this,void 0,void 0,(function(){return e(this,(function(t){try{v.subscribers.length&&p(v.subscribers,(function(t){t.callback({type:l.CUSTOMER_LOGOUT,data:{}})}))}catch(t){console.error(t)}return[2]}))}))},v.customerVisit=function(){return t(this,void 0,void 0,(function(){var t,r;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,v.getCustomerInfo()];case 1:return(t=e.sent())&&t.email?(m.customerVisit(t.email),b.customerVisit(),v.subscribers.length&&p(v.subscribers,(function(e){e.callback({type:l.CUSTOMER_VISIT,data:{customer:t}})})),[3,3]):[2];case 2:return r=e.sent(),console.error(r),[3,3];case 3:return[2]}}))}))},v.viewCart=function(t){try{if(t&&(d.viewCart(t),b.viewCart(t),f.viewCart(t),m.viewCart(t),v.subscribers.length)){var e=new s(u(t));p(v.subscribers,(function(t){t.callback({type:l.VIEW_CART,data:{cart:e}})}))}}catch(t){console.error(t)}},v.viewCategory=function(t,e){try{if(d.viewCategory(t),m.viewCategory(e,t),b.viewCategory(e),g.viewCategory(e),v.subscribers.length){var r=new a(u(e));p(v.subscribers,(function(e){e.callback({type:l.VIEW_CATEGORY,data:{categoryPath:t,category:r}})}))}}catch(t){console.error(t)}},v.viewBrand=function(t){try{if(b.viewBrand(t),v.subscribers.length){var e=new i(u(t));p(v.subscribers,(function(t){t.callback({type:l.VIEW_BRAND,data:{brand:e}})}))}}catch(t){console.error(t)}},v.viewSearchResults=function(t,e){try{if(v.subscribers.length){var r=u(e).map((function(t){return new n(t)}));p(v.subscribers,(function(e){e.callback({type:l.VIEW_SEARCH_RESULTS,data:{searchKeyword:t,productDetails:r}})}))}}catch(t){console.error(t)}},v.viewListing=function(t){try{if(v.subscribers.length){var e=u(t).map((function(t){return new n(t)}));p(v.subscribers,(function(t){t.callback({type:l.VIEW_LISTING,data:{productDetails:e}})}))}}catch(t){console.error(t)}},v.contactForm=function(t){try{if(d.contactForm(),g.contactForm(),v.subscribers.length){var e=u(t);p(v.subscribers,(function(t){t.callback({type:l.CONTACT_FORM,data:{form:e}})}))}}catch(t){console.error(t)}},v.subscribers=[],v}();export{v as Analytics};
|
|
1
|
+
import{__awaiter as t,__generator as e,__assign as r}from'./../ext/tslib/tslib.es6.js';import{productView as s,addToCart as a,beginCheckout as c,purchase as n,addToWishlist as o,search as i,completeRegistration as u,viewCart as l,viewCategory as b,contactForm as g}from"./facebookPixel.js";import{productView as f,addToCart as h,removeFromCart as m,beginCheckout as d,purchase as p,checkoutStep as I,disableHTML as y,search as C,completeRegistration as v,viewCart as k,viewCategory as T,pageView as w,customerLogin as E,customerVisit as _}from"./googleTagManager.js";import{productView as R,addToCart as S,removeFromCart as O,beginCheckout as V,purchase as A,checkoutStep as N,viewCart as j}from"./googleAnalytics.js";import{productView as U,addToCart as M,removeFromCart as D,purchase as L,pageView as W}from"./googleUniversal.js";import{productView as G,addToCart as P,beginCheckout as B,purchase as F,addToWishlist as H,search as x,completeRegistration as K,viewCategory as q,contactForm as z}from"./tiktokPixel.js";import{IkasEventType as Y}from"./events.js";import J from"lodash/cloneDeep";import{tryForEach as Q}from"../utils/helper.js";import{IkasCustomerStore as X}from"../store/customer/index.js";import{IkasAnalyticsStore as Z}from"../store/analytics/index.js";import{productView as $,addToCart as tt,beginCheckout as et,orderSuccess as rt,checkoutStep as st,customerRegister as at,viewCart as ct,viewCategory as nt,viewBrand as ot,pageView as it,customerLogin as ut,customerVisit as lt}from"./ikas.js";import{IkasCustomerConsentData as bt}from"../store/customer/consent/data.js";import{IkasCustomerFunctions as gt}from"@ikas/storefront-model-functions";function ft(){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,new Promise((function(t){var e=setInterval((function(){X.initialized&&(clearInterval(e),t(null))}),100)}))];case 1:return e.sent(),(t=X.customer)?[2,r(r({},gt.getCustomerBasicInfo(t)),{consentGranted:bt.customerConsentGranted})]:[2,null]}}))}))}function ht(r){return t(this,void 0,void 0,(function(){var t,s,a;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),t=window.location.href,[4,ft()];case 1:return s=e.sent(),w(t),W(window.location.pathname),it(r),Q(Z.getInstance().subscribers,(function(e){e.callback({type:Y.PAGE_VIEW,data:{url:t,pageType:r,customer:s}})})),[3,3];case 2:return a=e.sent(),console.error(a),[3,3];case 3:return[2]}}))}))}function mt(t){try{if(s(t),f(t),$(t),R(t),U(t),G(t),Z.getInstance().subscribers.length){var e=J(t);Q(Z.getInstance().subscribers,(function(t){t.callback({type:Y.PRODUCT_VIEW,data:{productDetail:e}})}))}}catch(t){console.error(t)}}function dt(t,e,r,s){try{if(a(t,e,r),h(t,e),tt(t,e,s),S(t,e),M(t,e),P(t,e),Z.getInstance().subscribers.length){var c=J(t),n=J(s);Q(Z.getInstance().subscribers,(function(t){t.callback({type:Y.ADD_TO_CART,data:{item:c,quantity:e,cart:n}})}))}}catch(t){console.error(t)}}function pt(t,e,r){try{if(m(t,e),O(t,e),D(t,e),Z.getInstance().subscribers.length){var s=J(t),a=J(r);Q(Z.getInstance().subscribers,(function(t){t.callback({type:Y.REMOVE_FROM_CART,data:{item:s,quantity:e,cart:a}})}))}}catch(t){console.error(t)}}function It(t){try{var e=localStorage.getItem("gtmBeginCheckout");if(e&&t.id===e)return;if(localStorage.setItem("gtmBeginCheckout",t.id),c(t),d(t),et(t),V(t),B(),Z.getInstance().subscribers.length){var r=J(t);Q(Z.getInstance().subscribers,(function(t){t.callback({type:Y.BEGIN_CHECKOUT,data:{checkout:r}})}))}}catch(t){console.error(t)}}function yt(t,e){try{if(localStorage.removeItem("gtmBeginCheckout"),n(t,e.id||""),p(t,t.orderNumber||""),rt(t),A(t,t.orderNumber||""),L(t,t.orderNumber||""),F(t),Z.getInstance().subscribers.length){var r=J(t),s=J(e);Q(Z.getInstance().subscribers,(function(t){t.callback({type:Y.COMPLETE_CHECKOUT,data:{checkout:r,transaction:s}})}))}}catch(t){console.error(t)}}function Ct(t,e){try{if(I(t,e),st(t,e),N(t,e),Z.getInstance().subscribers.length){var r=J(t);Q(Z.getInstance().subscribers,(function(t){t.callback({type:Y.CHECKOUT_STEP,data:{checkout:r,step:e}})}))}}catch(t){console.error(t)}}function vt(){try{y()}catch(t){console.error(t)}}function kt(t){try{o(t),H(t),Z.getInstance().subscribers.length&&Q(Z.getInstance().subscribers,(function(e){e.callback({type:Y.ADD_TO_WISHLIST,data:{productId:t}})}))}catch(t){console.error(t)}}function Tt(t){try{i(t),C(t),x(t),Z.getInstance().subscribers.length&&Q(Z.getInstance().subscribers,(function(e){e.callback({type:Y.SEARCH,data:{searchKeyword:t}})}))}catch(t){console.error(t)}}function wt(t){try{u(),v(),K(),at(),Z.getInstance().subscribers.length&&Q(Z.getInstance().subscribers,(function(e){e.callback({type:Y.CUSTOMER_REGISTER,data:{email:t.email,firstName:t.firstName,lastName:t.lastName}})}))}catch(t){console.error(t)}}function Et(t){try{Z.getInstance().subscribers.length&&Q(Z.getInstance().subscribers,(function(e){e.callback({type:Y.EMAIL_SUBSCRIPTION,data:{email:t}})}))}catch(t){console.error(t)}}function _t(){return t(this,void 0,void 0,(function(){var t,r;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,ft()];case 1:return(t=e.sent())&&t.email?(E(t.email),ut(),Z.getInstance().subscribers.length&&Q(Z.getInstance().subscribers,(function(e){e.callback({type:Y.CUSTOMER_LOGIN,data:{customer:t}})})),[3,3]):[2];case 2:return r=e.sent(),console.error(r),[3,3];case 3:return[2]}}))}))}function Rt(){return t(this,void 0,void 0,(function(){return e(this,(function(t){try{Z.getInstance().subscribers.length&&Q(Z.getInstance().subscribers,(function(t){t.callback({type:Y.CUSTOMER_LOGOUT,data:{}})}))}catch(t){console.error(t)}return[2]}))}))}function St(){return t(this,void 0,void 0,(function(){var t,r;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,ft()];case 1:return(t=e.sent())&&t.email?(_(t.email),lt(),Z.getInstance().subscribers.length&&Q(Z.getInstance().subscribers,(function(e){e.callback({type:Y.CUSTOMER_VISIT,data:{customer:t}})})),[3,3]):[2];case 2:return r=e.sent(),console.error(r),[3,3];case 3:return[2]}}))}))}function Ot(t){try{if(t&&(l(t),ct(t),j(t),k(t),Z.getInstance().subscribers.length)){var e=J(t);Q(Z.getInstance().subscribers,(function(t){t.callback({type:Y.VIEW_CART,data:{cart:e}})}))}}catch(t){console.error(t)}}function Vt(t,e){try{if(b(t),T(e,t),nt(e),q(e),Z.getInstance().subscribers.length){var r=J(e);Q(Z.getInstance().subscribers,(function(e){e.callback({type:Y.VIEW_CATEGORY,data:{categoryPath:t,category:r}})}))}}catch(t){console.error(t)}}function At(t){try{if(ot(t),Z.getInstance().subscribers.length){var e=J(t);Q(Z.getInstance().subscribers,(function(t){t.callback({type:Y.VIEW_BRAND,data:{brand:e}})}))}}catch(t){console.error(t)}}function Nt(t,e){try{if(Z.getInstance().subscribers.length){var r=J(e).map((function(t){return t}));Q(Z.getInstance().subscribers,(function(e){e.callback({type:Y.VIEW_SEARCH_RESULTS,data:{searchKeyword:t,productDetails:r}})}))}}catch(t){console.error(t)}}function jt(t){try{if(Z.getInstance().subscribers.length){var e=J(t).map((function(t){return t}));Q(Z.getInstance().subscribers,(function(t){t.callback({type:Y.VIEW_LISTING,data:{productDetails:e}})}))}}catch(t){console.error(t)}}function Ut(t){try{if(g(),z(),Z.getInstance().subscribers.length){var e=J(t);Q(Z.getInstance().subscribers,(function(t){t.callback({type:Y.CONTACT_FORM,data:{form:e}})}))}}catch(t){console.error(t)}}export{dt as addToCart,kt as addToWishlist,It as beginCheckout,Ct as checkoutStep,wt as completeRegistration,Ut as contactForm,Et as createEmailSubscripition,_t as customerLogin,Rt as customerLogout,St as customerVisit,vt as disableHTML,ft as getCustomerInfo,ht as pageView,mt as productView,yt as purchase,pt as removeFromCart,Tt as search,At as viewBrand,Ot as viewCart,Vt as viewCategory,jt as viewListing,Nt as viewSearchResults};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{IkasAnalyticsStore as s}from"../store/analytics/index.js";function n(n){var r=function(n){if(i(n)){var r=s.getInstance().subscribers.findIndex((function(s){return s.id===n.id}));-1!==r?s.getInstance().subscribers[r]=n:s.getInstance().subscribers.push(n)}};return n.forEach(r),{subscribe:r,unsubscribe:function(n){var r=s.getInstance().subscribers.findIndex((function(s){return s.id===n}));-1!==r&&s.getInstance().subscribers.splice(r,1)}}}function r(){if("undefined"!=typeof window){var s=[];try{var r=window.IkasEvents;r&&r.subscribers&&r.subscribers.length&&(s=r.subscribers)}catch(s){}window.IkasEvents=n(s)}}function E(){return"<script>\n var subscribers = [];\n var subscribe = (subscriber) => { subscribers.push(subscriber); }; \n var unsubscribe = () => {};\n \n window.IkasEvents = {\n subscribers,\n subscribe,\n unsubscribe\n };\n <\/script>"}function i(s){return!!(s&&s.id&&"string"==typeof s.id&&s.callback&&"function"==typeof s.callback)}var T;!function(s){s.PAGE_VIEW="PAGE_VIEW",s.PRODUCT_VIEW="PRODUCT_VIEW",s.ADD_TO_CART="ADD_TO_CART",s.REMOVE_FROM_CART="REMOVE_FROM_CART",s.BEGIN_CHECKOUT="BEGIN_CHECKOUT",s.CHECKOUT_STEP="CHECKOUT_STEP",s.COMPLETE_CHECKOUT="COMPLETE_CHECKOUT",s.ADD_TO_WISHLIST="ADD_TO_WISHLIST",s.SEARCH="SEARCH",s.CUSTOMER_REGISTER="CUSTOMER_REGISTER",s.CUSTOMER_LOGIN="CUSTOMER_LOGIN",s.CUSTOMER_LOGOUT="CUSTOMER_LOGOUT",s.CUSTOMER_VISIT="CUSTOMER_VISIT",s.VIEW_CART="VIEW_CART",s.VIEW_CATEGORY="VIEW_CATEGORY",s.VIEW_BRAND="VIEW_BRAND",s.VIEW_SEARCH_RESULTS="VIEW_SEARCH_RESULTS",s.VIEW_LISTING="VIEW_LISTING",s.CONTACT_FORM="CONTACT_FORM",s.EMAIL_SUBSCRIPTION="EMAIL_SUBSCRIPTION"}(T||(T={}));export{T as IkasEventType,n as IkasEvents,E as getIkasEventsScript,r as initIkasEvents,i as isValidIkasEventSubscriber};
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import { IkasCheckout, IkasProduct, IkasOrderLineItem } from "../models";
|
|
2
|
-
|
|
3
|
-
export declare
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
static viewCart(cart: IkasCart): void;
|
|
13
|
-
static viewCategory(categoryPath: string): void;
|
|
14
|
-
static contactForm(): void;
|
|
15
|
-
}
|
|
1
|
+
import { IkasCheckout, IkasProduct, IkasOrderLineItem, IkasCart } from "../models";
|
|
2
|
+
export declare function productView(productDetail: IkasProduct): void;
|
|
3
|
+
export declare function addToCart(item: IkasOrderLineItem, quantity: number, eventId: string): void;
|
|
4
|
+
export declare function beginCheckout(checkout: IkasCheckout): void;
|
|
5
|
+
export declare function purchase(checkout: IkasCheckout, eventId: string): void;
|
|
6
|
+
export declare function addToWishlist(id: string): void;
|
|
7
|
+
export declare function search(searchKeyword: string): void;
|
|
8
|
+
export declare function completeRegistration(): void;
|
|
9
|
+
export declare function viewCart(cart: IkasCart): void;
|
|
10
|
+
export declare function viewCategory(categoryPath: string): void;
|
|
11
|
+
export declare function contactForm(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{IkasProductFunctions as t,IkasProductPriceFunctions as n}from"@ikas/storefront-model-functions";var r="undefined"==typeof window;function e(e){try{return void(!r&&window.fbq&&window.fbq("track","ViewContent",(o=e,c=(0,t.getSelectedVariant)(o),i=n.getFinalPrice,{content_name:o.name,content_category:o.categories.length>0?o.categories[0].categoryPathItems.map((function(t){return t.name})).join(" > "):"",content_ids:[c.id],content_type:"product",value:i(c.price),currency:""===c.price.currency?"TRY":c.price.currency})))}catch(t){console.error(t)}var o,c,i}function o(t,n,e){try{return void(!r&&window.fbq&&window.fbq("track","AddToCart",(o=t,{content_name:o.variant.name,content_category:"",content_ids:[o.variant.id],content_type:"product",value:o.finalPrice,currency:o.currencyCode}),{eventID:e}))}catch(t){console.error(t)}var o}function c(t){try{return void(!r&&window.fbq&&window.fbq("track","InitiateCheckout",y(t)))}catch(t){console.error(t)}}function i(t,n){try{return void(!r&&window.fbq&&window.fbq("track","Purchase",y(t),{eventID:n}))}catch(t){console.error(t)}}function a(t){try{return void(!r&&window.fbq&&window.fbq("track","AddToWishlist",{content_ids:[t]}))}catch(t){console.error(t)}}function d(t){try{return void(!r&&window.fbq&&window.fbq("track","Search",{search_string:t}))}catch(t){console.error(t)}}function u(){try{return void(!r&&window.fbq&&window.fbq("track","CompleteRegistration",{status:!0,value:0,currency:"TRY"}))}catch(t){console.error(t)}}function w(t){try{return void(!r&&window.fbq&&window.fbq("track","ViewCart",function(t){var n=[],r=[];return t.orderLineItems.map((function(t){n.push(t.variant.id||""),r.push({id:t.variant.id,quantity:t.quantity})})),{contents:r,content_type:"product_group",content_ids:n,currency:t.orderLineItems[0].currencyCode,value:t.totalPrice,num_items:t.orderLineItems.length}}(t)))}catch(t){console.error(t)}}function s(t){try{return void(!r&&window.fbq&&window.fbq("track","ViewCategory",{content_name:t}))}catch(t){console.error(t)}}function f(){try{return void(!r&&window.fbq&&window.fbq("track","ContactForm",{}))}catch(t){console.error(t)}}function y(t){var n=[],r=[];return t.orderLineItems.map((function(t){n.push(t.variant.id||""),r.push({id:t.variant.id,quantity:t.quantity})})),{contents:r,content_category:"",content_type:"product_group",content_ids:n,currency:t.orderLineItems[0].currencyCode,value:t.totalPrice,num_items:t.orderLineItems.length}}export{o as addToCart,a as addToWishlist,c as beginCheckout,u as completeRegistration,f as contactForm,e as productView,i as purchase,d as search,w as viewCart,s as viewCategory};
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { CheckoutStep } from "../components/checkout/
|
|
4
|
-
export declare
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
static purchase(checkout: IkasCheckout, orderId: string): void;
|
|
12
|
-
static checkoutStep(checkout: IkasCheckout, step: CheckoutStep): void;
|
|
13
|
-
}
|
|
1
|
+
import { IkasProduct, IkasOrderLineItem, IkasCart } from "../models";
|
|
2
|
+
import { IkasCheckout } from "../models/data/checkout";
|
|
3
|
+
import { CheckoutStep } from "../components/checkout/types";
|
|
4
|
+
export declare function productView(productDetail: IkasProduct): void;
|
|
5
|
+
export declare function addToCart(item: IkasProduct | IkasOrderLineItem, quantity: number): void;
|
|
6
|
+
export declare function removeFromCart(item: IkasProduct | IkasOrderLineItem, quantity: number): void;
|
|
7
|
+
export declare function viewCart(cart: IkasCart): void;
|
|
8
|
+
export declare function beginCheckout(checkout: IkasCheckout): void;
|
|
9
|
+
export declare function purchase(checkout: IkasCheckout, orderId: string): void;
|
|
10
|
+
export declare function checkoutStep(checkout: IkasCheckout, step: CheckoutStep): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{IkasProductFunctions as e,IkasProductPriceFunctions as t,IkasOrderFunctions as r}from"@ikas/storefront-model-functions";import{CheckoutStep as n}from"../components/checkout/types.js";var i="undefined"==typeof window;function a(r){var n=e.getSelectedVariant,a=t.getFinalPrice;try{var o=n(r);return void(!i&&window.gtag&&window.gtag("event","view_item",{currency:""===o.price.currency?"TRY":o.price.currency,value:a(o.price),items:[l(r)]}))}catch(e){console.error(e)}}function o(r,n){try{var a=r.hasOwnProperty("price")||r.hasOwnProperty("quantity"),o=e.getSelectedVariant,c=t.getFinalPrice;return void(!i&&window.gtag&&window.gtag("event","add_to_cart",{currency:a?r.currencyCode:""===o(r).price.currency?"TRY":o(r).price.currency,value:a?r.finalPrice:c(o(r).price),items:[a?y(r,n):l(r,n)]}))}catch(e){console.error(e)}}function c(r,n){try{var a=r.hasOwnProperty("price")||r.hasOwnProperty("quantity"),o=e.getSelectedVariant,c=t.getFinalPrice;return void(!i&&window.gtag&&window.gtag("event","remove_from_cart",{currency:a?r.currencyCode:""===o(r).price.currency?"TRY":o(r).price.currency,value:a?r.finalPrice:c(o(r).price),items:[a?y(r,n):l(r,n)]}))}catch(e){console.error(e)}}function u(e){try{return void(!i&&window.gtag&&window.gtag("event","view_cart",{currency:e.currencyCode,value:e.totalPrice,items:e.orderLineItems.map((function(e){return y(e,e.quantity)}))}))}catch(e){console.error(e)}}function d(e){try{return void(!i&&window.gtag&&window.gtag("event","begin_checkout",{currency:e.currencyCode,value:e.totalFinalPrice,items:e.orderLineItems.map((function(e){return y(e,e.quantity)}))}))}catch(e){console.error(e)}}function g(e,t){try{var n=r.getTotalTax,a=r.getShippingTotal;return void(!i&&window.gtag&&window.gtag("event","purchase",{transaction_id:t,affiliation:window.location.hostname,value:""+e.totalFinalPrice,tax:""+n(e),shipping:""+a(e),currency:e.currencyCode,coupon:e.couponCode,items:e.orderLineItems.map((function(e){return y(e,e.quantity)}))}))}catch(e){console.error(e)}}function m(e,t){var r;if(t===n.SHIPPING)try{return void(!i&&window.gtag&&window.gtag("event","add_shipping_info",{currency:e.currencyCode,value:e.totalFinalPrice,shipping_tier:"Ground",coupon:e.couponCode,items:e.orderLineItems.map((function(e){return y(e,e.quantity)}))}))}catch(e){console.error(e)}if(t===n.PAYMENT)try{return void(!i&&window.gtag&&window.gtag("event","add_payment_info",{currency:e.currencyCode,value:e.totalFinalPrice,coupon:e.couponCode,payment_type:null===(r=e.selectedPaymentGateway)||void 0===r?void 0:r.paymentMethodType,items:e.orderLineItems.map((function(e){return y(e,e.quantity)}))}))}catch(e){console.error(e)}}function l(r,n){var i;void 0===n&&(n=1);var a=e.getSelectedVariant,o=t.getFinalPrice,c=a(r);return{item_name:r.name,item_id:c.id,price:o(c.price),item_brand:(null===(i=r.brand)||void 0===i?void 0:i.name)||"",item_category:r.categories.length?r.categories[0].name:"",item_category_2:r.categories.length>1?r.categories[1].name:"",item_category_3:r.categories.length>2?r.categories[2].name:"",item_category_4:r.categories.length>3?r.categories[3].name:"",item_variant:c.variantValues.map((function(e){return e.name})).join(" / "),item_list_name:"",item_list_id:"",index:1,quantity:n}}function y(e,t){var r;return void 0===t&&(t=1),{item_name:e.variant.name,item_id:e.variant.id,price:""+e.finalPrice,item_brand:"",item_category:"",item_category_2:"",item_category_3:"",item_category_4:"",item_variant:null===(r=e.variant.variantValues)||void 0===r?void 0:r.map((function(e){return e.variantValueName})).join(" / "),item_list_name:"",item_list_id:"",index:1,quantity:t}}export{o as addToCart,d as beginCheckout,m as checkoutStep,a as productView,g as purchase,c as removeFromCart,u as viewCart};
|
|
@@ -1,110 +1,136 @@
|
|
|
1
1
|
import { IkasCheckout, IkasProduct, IkasOrderLineItem, IkasCategory, IkasCart } from "../models";
|
|
2
|
-
import { CheckoutStep } from "../components/checkout/
|
|
3
|
-
export declare
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
url: string;
|
|
31
|
-
item_image: string;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
} | undefined;
|
|
35
|
-
static addToCart(item: IkasProduct | IkasOrderLineItem, quantity: number): {
|
|
36
|
-
event: string;
|
|
37
|
-
ecommerce: {
|
|
38
|
-
items: ({
|
|
39
|
-
item_name: string;
|
|
40
|
-
item_id: string;
|
|
41
|
-
price: number;
|
|
42
|
-
item_brand: string;
|
|
43
|
-
item_category: string;
|
|
44
|
-
item_category_2: string;
|
|
45
|
-
item_category_3: string;
|
|
46
|
-
item_category_4: string;
|
|
47
|
-
item_variant: string;
|
|
48
|
-
item_list_name: string;
|
|
49
|
-
item_list_id: string;
|
|
50
|
-
index: number;
|
|
51
|
-
quantity: number;
|
|
52
|
-
} | {
|
|
53
|
-
item_name: string;
|
|
54
|
-
item_id: string | null;
|
|
55
|
-
price: string;
|
|
56
|
-
item_brand: string;
|
|
57
|
-
item_category: string;
|
|
58
|
-
item_category_2: string;
|
|
59
|
-
item_category_3: string;
|
|
60
|
-
item_category_4: string;
|
|
61
|
-
item_variant: string | undefined;
|
|
62
|
-
item_list_name: string;
|
|
63
|
-
item_list_id: string;
|
|
64
|
-
index: number;
|
|
65
|
-
quantity: number;
|
|
66
|
-
})[];
|
|
67
|
-
cart: IkasCart | null | undefined;
|
|
68
|
-
};
|
|
69
|
-
} | undefined;
|
|
70
|
-
static removeFromCart(item: IkasProduct | IkasOrderLineItem, quantity: number): {
|
|
71
|
-
event: string;
|
|
72
|
-
ecommerce: {
|
|
73
|
-
items: ({
|
|
74
|
-
item_name: string;
|
|
75
|
-
item_id: string;
|
|
76
|
-
price: number;
|
|
77
|
-
item_brand: string;
|
|
78
|
-
item_category: string;
|
|
79
|
-
item_category_2: string;
|
|
80
|
-
item_category_3: string;
|
|
81
|
-
item_category_4: string;
|
|
82
|
-
item_variant: string;
|
|
83
|
-
item_list_name: string;
|
|
84
|
-
item_list_id: string;
|
|
85
|
-
index: number;
|
|
86
|
-
quantity: number;
|
|
87
|
-
} | {
|
|
88
|
-
item_name: string;
|
|
89
|
-
item_id: string | null;
|
|
90
|
-
price: string;
|
|
91
|
-
item_brand: string;
|
|
92
|
-
item_category: string;
|
|
93
|
-
item_category_2: string;
|
|
94
|
-
item_category_3: string;
|
|
95
|
-
item_category_4: string;
|
|
96
|
-
item_variant: string | undefined;
|
|
97
|
-
item_list_name: string;
|
|
98
|
-
item_list_id: string;
|
|
99
|
-
index: number;
|
|
100
|
-
quantity: number;
|
|
101
|
-
})[];
|
|
102
|
-
cart: IkasCart | null | undefined;
|
|
2
|
+
import { CheckoutStep } from "../components/checkout/types";
|
|
3
|
+
export declare function pageView(url: string): {
|
|
4
|
+
event: string;
|
|
5
|
+
page: string;
|
|
6
|
+
} | undefined;
|
|
7
|
+
export declare function productView(productDetail: IkasProduct): {
|
|
8
|
+
event: string;
|
|
9
|
+
ecommerce: {
|
|
10
|
+
items: {
|
|
11
|
+
item_name: string;
|
|
12
|
+
item_id: string;
|
|
13
|
+
price: number;
|
|
14
|
+
item_brand: string;
|
|
15
|
+
item_category: string;
|
|
16
|
+
item_category_2: string;
|
|
17
|
+
item_category_3: string;
|
|
18
|
+
item_category_4: string;
|
|
19
|
+
item_variant: string;
|
|
20
|
+
item_list_name: string;
|
|
21
|
+
item_list_id: string;
|
|
22
|
+
index: number;
|
|
23
|
+
quantity: number;
|
|
24
|
+
}[];
|
|
25
|
+
extraParams: {
|
|
26
|
+
parent_id: string;
|
|
27
|
+
currency: string | null;
|
|
28
|
+
url: string;
|
|
29
|
+
item_image: string;
|
|
103
30
|
};
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
31
|
+
};
|
|
32
|
+
} | undefined;
|
|
33
|
+
export declare function addToCart(item: IkasProduct | IkasOrderLineItem, quantity: number): {
|
|
34
|
+
event: string;
|
|
35
|
+
ecommerce: {
|
|
36
|
+
items: ({
|
|
37
|
+
item_name: string;
|
|
38
|
+
item_id: string;
|
|
39
|
+
price: number;
|
|
40
|
+
item_brand: string;
|
|
41
|
+
item_category: string;
|
|
42
|
+
item_category_2: string;
|
|
43
|
+
item_category_3: string;
|
|
44
|
+
item_category_4: string;
|
|
45
|
+
item_variant: string;
|
|
46
|
+
item_list_name: string;
|
|
47
|
+
item_list_id: string;
|
|
48
|
+
index: number;
|
|
49
|
+
quantity: number;
|
|
50
|
+
} | {
|
|
51
|
+
item_name: string;
|
|
52
|
+
item_id: string | null;
|
|
53
|
+
price: string;
|
|
54
|
+
item_brand: string;
|
|
55
|
+
item_category: string;
|
|
56
|
+
item_category_2: string;
|
|
57
|
+
item_category_3: string;
|
|
58
|
+
item_category_4: string;
|
|
59
|
+
item_variant: string | undefined;
|
|
60
|
+
item_list_name: string;
|
|
61
|
+
item_list_id: string;
|
|
62
|
+
index: number;
|
|
63
|
+
quantity: number;
|
|
64
|
+
})[];
|
|
65
|
+
cart: IkasCart | null | undefined;
|
|
66
|
+
};
|
|
67
|
+
} | undefined;
|
|
68
|
+
export declare function removeFromCart(item: IkasProduct | IkasOrderLineItem, quantity: number): {
|
|
69
|
+
event: string;
|
|
70
|
+
ecommerce: {
|
|
71
|
+
items: ({
|
|
72
|
+
item_name: string;
|
|
73
|
+
item_id: string;
|
|
74
|
+
price: number;
|
|
75
|
+
item_brand: string;
|
|
76
|
+
item_category: string;
|
|
77
|
+
item_category_2: string;
|
|
78
|
+
item_category_3: string;
|
|
79
|
+
item_category_4: string;
|
|
80
|
+
item_variant: string;
|
|
81
|
+
item_list_name: string;
|
|
82
|
+
item_list_id: string;
|
|
83
|
+
index: number;
|
|
84
|
+
quantity: number;
|
|
85
|
+
} | {
|
|
86
|
+
item_name: string;
|
|
87
|
+
item_id: string | null;
|
|
88
|
+
price: string;
|
|
89
|
+
item_brand: string;
|
|
90
|
+
item_category: string;
|
|
91
|
+
item_category_2: string;
|
|
92
|
+
item_category_3: string;
|
|
93
|
+
item_category_4: string;
|
|
94
|
+
item_variant: string | undefined;
|
|
95
|
+
item_list_name: string;
|
|
96
|
+
item_list_id: string;
|
|
97
|
+
index: number;
|
|
98
|
+
quantity: number;
|
|
99
|
+
})[];
|
|
100
|
+
cart: IkasCart | null;
|
|
101
|
+
};
|
|
102
|
+
} | undefined;
|
|
103
|
+
export declare function beginCheckout(checkout: IkasCheckout): {
|
|
104
|
+
event: string;
|
|
105
|
+
ecommerce: {
|
|
106
|
+
items: {
|
|
107
|
+
item_name: string;
|
|
108
|
+
item_id: string | null;
|
|
109
|
+
price: string;
|
|
110
|
+
item_brand: string;
|
|
111
|
+
item_category: string;
|
|
112
|
+
item_category_2: string;
|
|
113
|
+
item_category_3: string;
|
|
114
|
+
item_category_4: string;
|
|
115
|
+
item_variant: string | undefined;
|
|
116
|
+
item_list_name: string;
|
|
117
|
+
item_list_id: string;
|
|
118
|
+
index: number;
|
|
119
|
+
quantity: number;
|
|
120
|
+
}[];
|
|
121
|
+
};
|
|
122
|
+
} | undefined;
|
|
123
|
+
export declare function purchase(checkout: IkasCheckout, orderId: string): {
|
|
124
|
+
event: string;
|
|
125
|
+
ecommerce: {
|
|
126
|
+
purchase: {
|
|
127
|
+
transaction_id: string;
|
|
128
|
+
affiliation: string;
|
|
129
|
+
value: string;
|
|
130
|
+
tax: string;
|
|
131
|
+
shipping: string;
|
|
132
|
+
currency: string;
|
|
133
|
+
coupon: string | null;
|
|
108
134
|
items: {
|
|
109
135
|
item_name: string;
|
|
110
136
|
item_id: string | null;
|
|
@@ -121,89 +147,60 @@ export declare class GoogleTagManager {
|
|
|
121
147
|
quantity: number;
|
|
122
148
|
}[];
|
|
123
149
|
};
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
} | undefined;
|
|
182
|
-
static viewCategory(category: IkasCategory, categoryPath: string): {
|
|
183
|
-
event: string;
|
|
184
|
-
ecommerce: {
|
|
185
|
-
category: {
|
|
186
|
-
id: string;
|
|
187
|
-
name: string;
|
|
188
|
-
metaData: import("..").IkasHTMLMetaData | null;
|
|
189
|
-
href: string;
|
|
190
|
-
image: import("..").IkasImage | null | undefined;
|
|
191
|
-
path: string;
|
|
192
|
-
}[];
|
|
193
|
-
};
|
|
194
|
-
} | undefined;
|
|
195
|
-
static customerLogin(email: string): {
|
|
196
|
-
event: string;
|
|
197
|
-
email: string;
|
|
198
|
-
} | undefined;
|
|
199
|
-
static customerVisit(email: string): {
|
|
200
|
-
event: string;
|
|
201
|
-
email: string;
|
|
202
|
-
} | undefined;
|
|
203
|
-
static viewCart(cart: IkasCart): {
|
|
204
|
-
event: string;
|
|
205
|
-
ecommerce: {
|
|
206
|
-
cart: IkasCart;
|
|
207
|
-
};
|
|
208
|
-
} | undefined;
|
|
209
|
-
}
|
|
150
|
+
};
|
|
151
|
+
} | undefined;
|
|
152
|
+
export declare function checkoutStep(checkout: IkasCheckout, step: CheckoutStep): {
|
|
153
|
+
event: string;
|
|
154
|
+
ecommerce: {
|
|
155
|
+
items: {
|
|
156
|
+
item_name: string;
|
|
157
|
+
item_id: string | null;
|
|
158
|
+
price: string;
|
|
159
|
+
item_brand: string;
|
|
160
|
+
item_category: string;
|
|
161
|
+
item_category_2: string;
|
|
162
|
+
item_category_3: string;
|
|
163
|
+
item_category_4: string;
|
|
164
|
+
item_variant: string | undefined;
|
|
165
|
+
item_list_name: string;
|
|
166
|
+
item_list_id: string;
|
|
167
|
+
index: number;
|
|
168
|
+
quantity: number;
|
|
169
|
+
}[];
|
|
170
|
+
};
|
|
171
|
+
} | undefined;
|
|
172
|
+
export declare function disableHTML(): void;
|
|
173
|
+
export declare function completeRegistration(): {
|
|
174
|
+
event: string;
|
|
175
|
+
} | undefined;
|
|
176
|
+
export declare function search(searchKeyword: string): {
|
|
177
|
+
event: string;
|
|
178
|
+
search_string: string;
|
|
179
|
+
} | undefined;
|
|
180
|
+
export declare function viewCategory(category: IkasCategory, categoryPath: string): {
|
|
181
|
+
event: string;
|
|
182
|
+
ecommerce: {
|
|
183
|
+
category: {
|
|
184
|
+
id: string;
|
|
185
|
+
name: string;
|
|
186
|
+
metaData: import("@ikas/storefront-models/build-cjs/models/html-meta-data").IkasHTMLMetaData | null;
|
|
187
|
+
href: string;
|
|
188
|
+
image: import("@ikas/storefront-models/build-cjs/models/image").IkasImage | null | undefined;
|
|
189
|
+
path: string;
|
|
190
|
+
}[];
|
|
191
|
+
};
|
|
192
|
+
} | undefined;
|
|
193
|
+
export declare function customerLogin(email: string): {
|
|
194
|
+
event: string;
|
|
195
|
+
email: string;
|
|
196
|
+
} | undefined;
|
|
197
|
+
export declare function customerVisit(email: string): {
|
|
198
|
+
event: string;
|
|
199
|
+
email: string;
|
|
200
|
+
} | undefined;
|
|
201
|
+
export declare function viewCart(cart: IkasCart): {
|
|
202
|
+
event: string;
|
|
203
|
+
ecommerce: {
|
|
204
|
+
cart: IkasCart;
|
|
205
|
+
};
|
|
206
|
+
} | undefined;
|