@ikas/storefront 1.0.16-alpha.1 → 1.0.16
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/__generated__/global-types.d.ts +632 -0
- package/build/analytics/analytics.d.ts +37 -0
- package/build/analytics/events.d.ts +36 -0
- package/build/analytics/facebookPixel.d.ts +15 -0
- package/build/analytics/googleTagManager.d.ts +201 -0
- package/build/analytics/head/index.d.ts +7 -0
- package/build/analytics/ikas.d.ts +133 -0
- package/build/analytics/index.d.ts +2 -0
- package/build/api/apollo.d.ts +10 -0
- package/build/api/back-in-stock-reminder/__generated__/listProductBackInStockRemind.d.ts +24 -0
- package/build/api/back-in-stock-reminder/__generated__/saveProductBackInStockRemind.d.ts +19 -0
- package/build/api/back-in-stock-reminder/index.d.ts +23 -0
- package/build/api/blog/__generated__/getBlog.d.ts +106 -0
- package/build/api/blog/__generated__/listBlog.d.ts +109 -0
- package/build/api/blog/__generated__/listBlogCategory.d.ts +61 -0
- package/build/api/blog/__generated__/listBlogMetaData.d.ts +53 -0
- package/build/api/blog/index.d.ts +32 -0
- package/build/api/brand/__generated__/listProductBrand.d.ts +88 -0
- package/build/api/brand/index.d.ts +16 -0
- package/build/api/cart/__generated__/getCart.d.ts +176 -0
- package/build/api/cart/__generated__/saveItemToCart.d.ts +185 -0
- package/build/api/cart/index.d.ts +5 -0
- package/build/api/category/__generated__/listCategory.d.ts +99 -0
- package/build/api/category/__generated__/listCategoryPaths.d.ts +32 -0
- package/build/api/category/index.d.ts +18 -0
- package/build/api/checkout/__generated__/addCouponCodeToCheckout.d.ts +11 -0
- package/build/api/checkout/__generated__/checkStocks.d.ts +18 -0
- package/build/api/checkout/__generated__/createSaleTransactionWithCheckout.d.ts +22 -0
- package/build/api/checkout/__generated__/getCheckoutByCartId.d.ts +10 -0
- package/build/api/checkout/__generated__/getCheckoutById.d.ts +572 -0
- package/build/api/checkout/__generated__/getOrder.d.ts +614 -0
- package/build/api/checkout/__generated__/listCheckoutSettings.d.ts +34 -0
- package/build/api/checkout/__generated__/listPaymentGateway.d.ts +42 -0
- package/build/api/checkout/__generated__/retrieveInstallmentInfo.d.ts +23 -0
- package/build/api/checkout/__generated__/saveCheckout.d.ts +11 -0
- package/build/api/checkout/index.d.ts +29 -0
- package/build/api/city/__generated__/listCity.d.ts +20 -0
- package/build/api/city/index.d.ts +4 -0
- package/build/api/contact-form/__generated__/sendContactFormToMerchant.d.ts +9 -0
- package/build/api/contact-form/index.d.ts +10 -0
- package/build/api/country/__generated__/getAvailableShippingCountries.d.ts +6 -0
- package/build/api/country/__generated__/getMyCountry.d.ts +3 -0
- package/build/api/country/__generated__/listCountry.d.ts +41 -0
- package/build/api/country/index.d.ts +6 -0
- package/build/api/customer/__generated__/checkCustomerEmail.d.ts +10 -0
- package/build/api/customer/__generated__/createCustomerEmailSubscription.d.ts +11 -0
- package/build/api/customer/__generated__/createOrderRefundRequest.d.ts +584 -0
- package/build/api/customer/__generated__/customerForgotPassword.d.ts +7 -0
- package/build/api/customer/__generated__/customerLogin.d.ts +162 -0
- package/build/api/customer/__generated__/customerRecoverPassword.d.ts +8 -0
- package/build/api/customer/__generated__/customerRefreshToken.d.ts +11 -0
- package/build/api/customer/__generated__/customerSocialLogin.d.ts +161 -0
- package/build/api/customer/__generated__/getCustomerOrders.d.ts +614 -0
- package/build/api/customer/__generated__/getLastViewedProducts.d.ts +15 -0
- package/build/api/customer/__generated__/getMyCustomer.d.ts +140 -0
- package/build/api/customer/__generated__/listOrderRefundSettings.d.ts +13 -0
- package/build/api/customer/__generated__/listOrderTransactions.d.ts +53 -0
- package/build/api/customer/__generated__/registerCustomer.d.ts +158 -0
- package/build/api/customer/__generated__/saveLastViewedProducts.d.ts +11 -0
- package/build/api/customer/__generated__/saveMyCustomer.d.ts +155 -0
- package/build/api/customer/index.d.ts +49 -0
- package/build/api/customer-review/__generated__/createCustomerReview.d.ts +11 -0
- package/build/api/customer-review/__generated__/listCustomerReviews.d.ts +48 -0
- package/build/api/customer-review/index.d.ts +24 -0
- package/build/api/district/__generated__/listDistrict.d.ts +16 -0
- package/build/api/district/index.d.ts +4 -0
- package/build/api/favorite-product/__generated__/isFavoriteProduct.d.ts +6 -0
- package/build/api/favorite-product/__generated__/listFavoriteProducts.d.ts +12 -0
- package/build/api/favorite-product/__generated__/saveFavoriteProduct.d.ts +7 -0
- package/build/api/favorite-product/index.d.ts +6 -0
- package/build/api/html-meta-data/__generated__/listHTMLMetaData.d.ts +28 -0
- package/build/api/html-meta-data/index.d.ts +4 -0
- package/build/api/index.d.ts +21 -0
- package/build/api/merchant/__generated__/listMerchantSettings.d.ts +9 -0
- package/build/api/merchant/index.d.ts +4 -0
- package/build/api/product-attribute/__generated__/listProductAttribute.d.ts +72 -0
- package/build/api/product-attribute/index.d.ts +4 -0
- package/build/api/product-option-set/__generated__/ListProductOptionSet.d.ts +90 -0
- package/build/api/product-option-set/index.d.ts +6 -0
- package/build/api/product-search/__generated__/getProductFilterData.d.ts +61 -0
- package/build/api/product-search/__generated__/searchProducts.d.ts +26 -0
- package/build/api/product-search/index.d.ts +20 -0
- package/build/api/state/__generated__/listState.d.ts +19 -0
- package/build/api/state/index.d.ts +4 -0
- package/build/api/stock-location/__generated__/listStockLocation.d.ts +7 -0
- package/build/api/stock-location/index.d.ts +4 -0
- package/build/api/storefront/__generated__/getStorefront.d.ts +52 -0
- package/build/api/storefront/index.d.ts +4 -0
- package/build/api/variant-type/__generated__/listVariantType.d.ts +72 -0
- package/build/api/variant-type/index.d.ts +4 -0
- package/build/assets/translations/checkout/en.js +165 -0
- package/build/assets/translations/checkout/tr.js +164 -0
- package/build/components/checkout/components/address-form/index.d.ts +3 -0
- package/build/components/checkout/components/address-form/model.d.ts +131 -0
- package/build/components/checkout/components/button/index.d.ts +12 -0
- package/build/components/checkout/components/cart-summary/cart-item/index.d.ts +10 -0
- package/build/components/checkout/components/cart-summary/index.d.ts +8 -0
- package/build/components/checkout/components/checkbox/check.d.ts +6 -0
- package/build/components/checkout/components/checkbox/index.d.ts +10 -0
- package/build/components/checkout/components/credit-card-form/index.d.ts +7 -0
- package/build/components/checkout/components/credit-card-form/model.d.ts +26 -0
- package/build/components/checkout/components/credit-card-form/svg/amex.d.ts +6 -0
- package/build/components/checkout/components/credit-card-form/svg/master-card.d.ts +6 -0
- package/build/components/checkout/components/credit-card-form/svg/troy.d.ts +6 -0
- package/build/components/checkout/components/credit-card-form/svg/visa.d.ts +6 -0
- package/build/components/checkout/components/customer-addresses/index.d.ts +15 -0
- package/build/components/checkout/components/customer-addresses/model.d.ts +21 -0
- package/build/components/checkout/components/error/customer-login-required-error/index.d.ts +8 -0
- package/build/components/checkout/components/error/index.d.ts +7 -0
- package/build/components/checkout/components/error/no-shipping-error/index.d.ts +6 -0
- package/build/components/checkout/components/error/payment-error/index.d.ts +8 -0
- package/build/components/checkout/components/error/stock-error/index.d.ts +8 -0
- package/build/components/checkout/components/error/unknown-error/index.d.ts +6 -0
- package/build/components/checkout/components/expandable-section/index.d.ts +6 -0
- package/build/components/checkout/components/form-item/caret-down.d.ts +6 -0
- package/build/components/checkout/components/form-item/index.d.ts +3 -0
- package/build/components/checkout/components/form-item/model.d.ts +59 -0
- package/build/components/checkout/components/fullscreen-loading/index.d.ts +2 -0
- package/build/components/checkout/components/input-with-button/index.d.ts +11 -0
- package/build/components/checkout/components/modal/index.d.ts +8 -0
- package/build/components/checkout/components/notification-box/index.d.ts +9 -0
- package/build/components/checkout/components/select-box/index.d.ts +13 -0
- package/build/components/checkout/components/step-container/index.d.ts +15 -0
- package/build/components/checkout/components/svg/arrow-down.d.ts +6 -0
- package/build/components/checkout/components/svg/arrow-left.d.ts +6 -0
- package/build/components/checkout/components/svg/arrow-right.d.ts +6 -0
- package/build/components/checkout/components/svg/cross.d.ts +6 -0
- package/build/components/checkout/components/svg/discount.d.ts +6 -0
- package/build/components/checkout/components/svg/external.d.ts +6 -0
- package/build/components/checkout/components/svg/gift.d.ts +7 -0
- package/build/components/checkout/components/svg/ikas.d.ts +6 -0
- package/build/components/checkout/components/svg/lock.d.ts +6 -0
- package/build/components/checkout/components/svg/shopping-cart.d.ts +6 -0
- package/build/components/checkout/components/svg/success-circle.d.ts +6 -0
- package/build/components/checkout/components/svg/tag.d.ts +6 -0
- package/build/components/checkout/components/svg/warning.d.ts +6 -0
- package/build/components/checkout/components/toggle/index.d.ts +10 -0
- package/build/components/checkout/components/tooltip/index.d.ts +8 -0
- package/build/components/checkout/index.d.ts +32 -0
- package/build/components/checkout/model.d.ts +122 -0
- package/build/components/checkout/steps/step-info/index.d.ts +7 -0
- package/build/components/checkout/steps/step-payment/billing-address/index.d.ts +7 -0
- package/build/components/checkout/steps/step-payment/index.d.ts +7 -0
- package/build/components/checkout/steps/step-payment/payment-gateways/index.d.ts +7 -0
- package/build/components/checkout/steps/step-payment/payment-gateways/installments/index.d.ts +7 -0
- package/build/components/checkout/steps/step-shipping/index.d.ts +7 -0
- package/build/components/checkout/steps/step-success/index.d.ts +7 -0
- package/build/components/error/index.d.ts +5 -0
- package/build/components/image/index.d.ts +36 -0
- package/build/components/index.d.ts +4 -0
- package/build/components/page/ThemeComponent.d.ts +10 -0
- package/build/components/page/head.d.ts +12 -0
- package/build/components/page/index.d.ts +17 -0
- package/build/components/page-editor/ThemeComponentEditor.d.ts +9 -0
- package/build/components/page-editor/index.d.ts +2 -0
- package/build/components/page-editor/model.d.ts +65 -0
- package/build/index.css +1517 -0
- package/build/index.d.ts +8 -0
- package/build/index.es.css +1517 -0
- package/build/index.es.js +74633 -0
- package/build/index.js +74762 -0
- package/build/models/data/blog/index.d.ts +67 -0
- package/build/models/data/brand/index.d.ts +21 -0
- package/build/models/data/cart/index.d.ts +47 -0
- package/build/models/data/category/index.d.ts +52 -0
- package/build/models/data/checkout/index.d.ts +103 -0
- package/build/models/data/checkout-settings/index.d.ts +25 -0
- package/build/models/data/city/index.d.ts +4 -0
- package/build/models/data/contact-form/index.d.ts +7 -0
- package/build/models/data/country/index.d.ts +8 -0
- package/build/models/data/customer/address/index.d.ts +52 -0
- package/build/models/data/customer/index.d.ts +33 -0
- package/build/models/data/customer-review/index.d.ts +23 -0
- package/build/models/data/customer-review-settings/index.d.ts +4 -0
- package/build/models/data/district/index.d.ts +4 -0
- package/build/models/data/favorite-product/index.d.ts +6 -0
- package/build/models/data/html-meta-data/index.d.ts +23 -0
- package/build/models/data/image/index.d.ts +8 -0
- package/build/models/data/index.d.ts +33 -0
- package/build/models/data/installment-info/index.d.ts +30 -0
- package/build/models/data/merchant-settings/index.d.ts +8 -0
- package/build/models/data/order/address/index.d.ts +51 -0
- package/build/models/data/order/adjustment/index.d.ts +16 -0
- package/build/models/data/order/gift-line/index.d.ts +4 -0
- package/build/models/data/order/index.d.ts +146 -0
- package/build/models/data/order/line-item/discount/index.d.ts +11 -0
- package/build/models/data/order/line-item/index.d.ts +43 -0
- package/build/models/data/order/line-item/options/index.d.ts +10 -0
- package/build/models/data/order/line-item/options/options-value/index.d.ts +6 -0
- package/build/models/data/order/line-item/variant/index.d.ts +25 -0
- package/build/models/data/order/refund/index.d.ts +6 -0
- package/build/models/data/order/refund/refund-line-item/index.d.ts +5 -0
- package/build/models/data/order/refund/settings.d.ts +6 -0
- package/build/models/data/order/shipping-line/index.d.ts +7 -0
- package/build/models/data/order-transaction/index.d.ts +74 -0
- package/build/models/data/payment-gateway/index.d.ts +61 -0
- package/build/models/data/product/attribute-value/index.d.ts +20 -0
- package/build/models/data/product/index.d.ts +35 -0
- package/build/models/data/product/variant/index.d.ts +24 -0
- package/build/models/data/product/variant/price/index.d.ts +11 -0
- package/build/models/data/product/variant-type/index.d.ts +6 -0
- package/build/models/data/product-attribute/index.d.ts +34 -0
- package/build/models/data/product-attribute/product-attribute-option/index.d.ts +5 -0
- package/build/models/data/product-attribute/product-attribute-table-cell/index.d.ts +5 -0
- package/build/models/data/product-attribute/product-attribute-table-template/index.d.ts +6 -0
- package/build/models/data/product-back-in-stock-settings/index.d.ts +3 -0
- package/build/models/data/product-cart-item-options/index.d.ts +6 -0
- package/build/models/data/product-filter/index.d.ts +109 -0
- package/build/models/data/product-option-set/index.d.ts +104 -0
- package/build/models/data/product-tag/index.d.ts +5 -0
- package/build/models/data/sales-channel/index.d.ts +18 -0
- package/build/models/data/simple-product/index.d.ts +136 -0
- package/build/models/data/state/index.d.ts +5 -0
- package/build/models/data/storefront/domain/index.d.ts +8 -0
- package/build/models/data/storefront/index.d.ts +23 -0
- package/build/models/data/storefront/localization/index.d.ts +7 -0
- package/build/models/data/storefront/routing/index.d.ts +9 -0
- package/build/models/data/storefront/theme/index.d.ts +13 -0
- package/build/models/data/storefront/theme-localization/index.d.ts +12 -0
- package/build/models/data/variant-type/index.d.ts +26 -0
- package/build/models/data/variant-type/variant-value/index.d.ts +11 -0
- package/build/models/index.d.ts +3 -0
- package/build/models/theme/component/index.d.ts +10 -0
- package/build/models/theme/component/prop/index.d.ts +40 -0
- package/build/models/theme/custom-data/index.d.ts +24 -0
- package/build/models/theme/index.d.ts +18 -0
- package/build/models/theme/page/component/index.d.ts +6 -0
- package/build/models/theme/page/component/prop-value/attribute-list.d.ts +7 -0
- package/build/models/theme/page/component/prop-value/attribute.d.ts +7 -0
- package/build/models/theme/page/component/prop-value/blog-category-list.d.ts +7 -0
- package/build/models/theme/page/component/prop-value/blog-category.d.ts +5 -0
- package/build/models/theme/page/component/prop-value/blog-list.d.ts +9 -0
- package/build/models/theme/page/component/prop-value/blog.d.ts +5 -0
- package/build/models/theme/page/component/prop-value/brand-list.d.ts +9 -0
- package/build/models/theme/page/component/prop-value/brand.d.ts +5 -0
- package/build/models/theme/page/component/prop-value/category-list.d.ts +9 -0
- package/build/models/theme/page/component/prop-value/category.d.ts +5 -0
- package/build/models/theme/page/component/prop-value/link.d.ts +19 -0
- package/build/models/theme/page/component/prop-value/product-detail.d.ts +6 -0
- package/build/models/theme/page/component/prop-value/product-list.d.ts +17 -0
- package/build/models/theme/page/index.d.ts +40 -0
- package/build/models/theme/settings/index.d.ts +13 -0
- package/build/models/theme/settings/prop/color/index.d.ts +7 -0
- package/build/models/theme/settings/prop/favicon/index.d.ts +4 -0
- package/build/models/theme/theme.d.ts +16 -0
- package/build/models/ui/blog-category-list/index.d.ts +52 -0
- package/build/models/ui/blog-list/index.d.ts +56 -0
- package/build/models/ui/brand-list/index.d.ts +61 -0
- package/build/models/ui/category-list/index.d.ts +61 -0
- package/build/models/ui/component-renderer/index.d.ts +7 -0
- package/build/models/ui/customer-review-list/index.d.ts +43 -0
- package/build/models/ui/index.d.ts +22 -0
- package/build/models/ui/navigation-link/index.d.ts +8 -0
- package/build/models/ui/product-attribute-detail/index.d.ts +8 -0
- package/build/models/ui/product-attribute-list/index.d.ts +9 -0
- package/build/models/ui/product-detail/index.d.ts +28 -0
- package/build/models/ui/product-list/index.d.ts +132 -0
- package/build/models/ui/validator/form/account-info.d.ts +40 -0
- package/build/models/ui/validator/form/address.d.ts +75 -0
- package/build/models/ui/validator/form/contact-form.d.ts +45 -0
- package/build/models/ui/validator/form/customer-review.d.ts +37 -0
- package/build/models/ui/validator/form/forgot-password.d.ts +29 -0
- package/build/models/ui/validator/form/login.d.ts +35 -0
- package/build/models/ui/validator/form/recover-password.d.ts +36 -0
- package/build/models/ui/validator/form/register.d.ts +48 -0
- package/build/models/ui/validator/index.d.ts +27 -0
- package/build/models/ui/validator/rules/index.d.ts +87 -0
- package/build/pages/404.d.ts +6 -0
- package/build/pages/[slug]/index.d.ts +7 -0
- package/build/pages/account/addresses.d.ts +6 -0
- package/build/pages/account/favorite-products.d.ts +6 -0
- package/build/pages/account/forgot-password.d.ts +6 -0
- package/build/pages/account/index.d.ts +6 -0
- package/build/pages/account/login.d.ts +6 -0
- package/build/pages/account/orders/[id].d.ts +6 -0
- package/build/pages/account/orders/index.d.ts +6 -0
- package/build/pages/account/recover-password.d.ts +6 -0
- package/build/pages/account/register.d.ts +6 -0
- package/build/pages/blog/[slug].d.ts +7 -0
- package/build/pages/blog/index.d.ts +6 -0
- package/build/pages/cart.d.ts +6 -0
- package/build/pages/checkout.d.ts +18 -0
- package/build/pages/editor.d.ts +8 -0
- package/build/pages/home.d.ts +6 -0
- package/build/pages/index.d.ts +20 -0
- package/build/pages/pages/[slug].d.ts +7 -0
- package/build/pages/search.d.ts +6 -0
- package/build/providers/page-data-get.d.ts +61 -0
- package/build/providers/page-data-init.d.ts +58 -0
- package/build/providers/page-data-next.d.ts +243 -0
- package/build/providers/placeholders.d.ts +6 -0
- package/build/providers/prop-value/attribute-list.d.ts +12 -0
- package/build/providers/prop-value/attribute.d.ts +12 -0
- package/build/providers/prop-value/blog-category-list.d.ts +7 -0
- package/build/providers/prop-value/blog-category.d.ts +11 -0
- package/build/providers/prop-value/blog-list.d.ts +9 -0
- package/build/providers/prop-value/blog.d.ts +11 -0
- package/build/providers/prop-value/boolean.d.ts +6 -0
- package/build/providers/prop-value/brand-list.d.ts +7 -0
- package/build/providers/prop-value/brand.d.ts +11 -0
- package/build/providers/prop-value/category-list.d.ts +7 -0
- package/build/providers/prop-value/category.d.ts +11 -0
- package/build/providers/prop-value/checkout.d.ts +4 -0
- package/build/providers/prop-value/color.d.ts +6 -0
- package/build/providers/prop-value/custom.d.ts +42 -0
- package/build/providers/prop-value/image-list.d.ts +7 -0
- package/build/providers/prop-value/image.d.ts +7 -0
- package/build/providers/prop-value/index.d.ts +3 -0
- package/build/providers/prop-value/link.d.ts +16 -0
- package/build/providers/prop-value/product-detail.d.ts +11 -0
- package/build/providers/prop-value/product-list.d.ts +9 -0
- package/build/providers/prop-value/rich-text.d.ts +6 -0
- package/build/providers/prop-value/text.d.ts +6 -0
- package/build/store/base.d.ts +25 -0
- package/build/store/cart.d.ts +30 -0
- package/build/store/customer.d.ts +91 -0
- package/build/store/index.d.ts +1 -0
- package/build/storefront/index.d.ts +55 -0
- package/build/utils/currency.d.ts +7 -0
- package/build/utils/helper.d.ts +8 -0
- package/build/utils/i18n.d.ts +20 -0
- package/build/utils/index.d.ts +3 -0
- package/package.json +4 -3
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IkasCategoryListSortType, IkasCategoryListType } from "../../../../ui/category-list/index";
|
|
2
|
+
export declare class IkasCategoryListPropValue {
|
|
3
|
+
categoryListType: IkasCategoryListType;
|
|
4
|
+
initialSort?: IkasCategoryListSortType | null;
|
|
5
|
+
initialLimit?: number | null;
|
|
6
|
+
categoryCount?: number | null;
|
|
7
|
+
categoryIds?: string[] | null;
|
|
8
|
+
constructor(data: Partial<IkasCategoryListPropValue>);
|
|
9
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { IkasThemePageType } from "../../index";
|
|
2
|
+
export declare class IkasLinkPropValue {
|
|
3
|
+
id?: string | null;
|
|
4
|
+
linkType?: IkasLinkType | null;
|
|
5
|
+
label?: string | null;
|
|
6
|
+
pageId?: string | null;
|
|
7
|
+
pageType?: IkasThemePageType | null;
|
|
8
|
+
itemId?: string | null;
|
|
9
|
+
externalLink?: string | null;
|
|
10
|
+
fileUrl?: string | null;
|
|
11
|
+
pageComponentId?: string | null;
|
|
12
|
+
subLinks: IkasLinkPropValue[];
|
|
13
|
+
constructor(data?: Partial<IkasLinkPropValue>);
|
|
14
|
+
}
|
|
15
|
+
export declare enum IkasLinkType {
|
|
16
|
+
PAGE = "PAGE",
|
|
17
|
+
EXTERNAL = "EXTERNAL",
|
|
18
|
+
FILE = "FILE"
|
|
19
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IkasProductListSortType, IkasProductListType } from "../../../../ui/index";
|
|
2
|
+
export declare class IkasProductListPropValue {
|
|
3
|
+
id: string;
|
|
4
|
+
productListType: IkasProductListType;
|
|
5
|
+
initialSort?: IkasProductListSortType | null;
|
|
6
|
+
initialLimit?: number | null;
|
|
7
|
+
productCount?: number | null;
|
|
8
|
+
productIds?: IkasProductVariantId[] | null;
|
|
9
|
+
usePageFilter?: boolean | null;
|
|
10
|
+
category?: string | null;
|
|
11
|
+
constructor(data: Partial<IkasProductListPropValue>);
|
|
12
|
+
}
|
|
13
|
+
declare type IkasProductVariantId = {
|
|
14
|
+
productId: string;
|
|
15
|
+
variantId: string;
|
|
16
|
+
};
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { IkasThemePageComponent } from "./component/index";
|
|
2
|
+
export declare class IkasThemePage {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string | null;
|
|
5
|
+
type: IkasThemePageType;
|
|
6
|
+
slug: string | null;
|
|
7
|
+
pageTitle: string | null;
|
|
8
|
+
description: string | null;
|
|
9
|
+
components: IkasThemePageComponent[];
|
|
10
|
+
specifications: IkasThemePageSpecification[] | null;
|
|
11
|
+
constructor(data: Partial<IkasThemePage>);
|
|
12
|
+
}
|
|
13
|
+
export declare class IkasThemePageSpecification {
|
|
14
|
+
id: string;
|
|
15
|
+
components: IkasThemePageComponent[];
|
|
16
|
+
constructor(data: Partial<IkasThemePageSpecification>);
|
|
17
|
+
}
|
|
18
|
+
export declare enum IkasThemePageType {
|
|
19
|
+
INDEX = "INDEX",
|
|
20
|
+
CATEGORY = "CATEGORY",
|
|
21
|
+
BRAND = "BRAND",
|
|
22
|
+
PRODUCT = "PRODUCT",
|
|
23
|
+
CUSTOM = "CUSTOM",
|
|
24
|
+
ACCOUNT = "ACCOUNT",
|
|
25
|
+
ADDRESSES = "ADDRESSES",
|
|
26
|
+
ORDERS = "ORDERS",
|
|
27
|
+
ORDER_DETAIL = "ORDER_DETAIL",
|
|
28
|
+
LOGIN = "LOGIN",
|
|
29
|
+
REGISTER = "REGISTER",
|
|
30
|
+
FORGOT_PASSWORD = "FORGOT_PASSWORD",
|
|
31
|
+
RECOVER_PASSWORD = "RECOVER_PASSWORD",
|
|
32
|
+
CART = "CART",
|
|
33
|
+
FAVORITE_PRODUCTS = "FAVORITE_PRODUCTS",
|
|
34
|
+
SEARCH = "SEARCH",
|
|
35
|
+
NOT_FOUND = "NOT_FOUND",
|
|
36
|
+
BLOG = "BLOG",
|
|
37
|
+
BLOG_INDEX = "BLOG_INDEX",
|
|
38
|
+
BLOG_CATEGORY = "BLOG_CATEGORY",
|
|
39
|
+
CHECKOUT = "CHECKOUT"
|
|
40
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IkasThemeColor } from "./prop/color/index";
|
|
2
|
+
import { IkasThemeFavicon } from "./prop/favicon/index";
|
|
3
|
+
export declare class IkasThemeSettings {
|
|
4
|
+
colors: IkasThemeColor[];
|
|
5
|
+
favicon: IkasThemeFavicon;
|
|
6
|
+
stockPreference: IkasThemeStockPreference;
|
|
7
|
+
constructor(data?: Partial<IkasThemeSettings>);
|
|
8
|
+
}
|
|
9
|
+
export declare enum IkasThemeStockPreference {
|
|
10
|
+
HIDE_OUT_OF_STOCK = "HIDE_OUT_OF_STOCK",
|
|
11
|
+
SHOW_ALL = "SHOW_ALL",
|
|
12
|
+
SHOW_OUT_OF_STOCK_AT_END = "SHOW_OUT_OF_STOCK_AT_END"
|
|
13
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IkasThemeComponent } from "./component/index";
|
|
2
|
+
import { IkasThemeCustomData } from "./custom-data/index";
|
|
3
|
+
import { IkasThemePage } from "./page/index";
|
|
4
|
+
import { IkasThemeSettings } from "./settings/index";
|
|
5
|
+
export declare const CHECKOUT_ID = "checkout";
|
|
6
|
+
export declare class IkasTheme {
|
|
7
|
+
name: string;
|
|
8
|
+
components: IkasThemeComponent[];
|
|
9
|
+
pages: IkasThemePage[];
|
|
10
|
+
settings: IkasThemeSettings;
|
|
11
|
+
customData: IkasThemeCustomData[];
|
|
12
|
+
constructor(data?: Partial<IkasTheme>);
|
|
13
|
+
get headerComponent(): IkasThemeComponent | undefined;
|
|
14
|
+
get footerComponent(): IkasThemeComponent | undefined;
|
|
15
|
+
private createCheckoutData;
|
|
16
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { IkasBlogCategory } from "../../data/blog/index";
|
|
2
|
+
import { IkasBlogCategoryListPropValue } from "../../theme/page/component/prop-value/blog-category-list";
|
|
3
|
+
export declare class IkasBlogCategoryList {
|
|
4
|
+
data: IkasBlogCategory[];
|
|
5
|
+
private _type;
|
|
6
|
+
private _limit;
|
|
7
|
+
private _page;
|
|
8
|
+
private _count;
|
|
9
|
+
private _initialized;
|
|
10
|
+
private _minPage?;
|
|
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
|
+
private getInitial;
|
|
25
|
+
getPrev: () => Promise<void>;
|
|
26
|
+
getNext: () => Promise<void>;
|
|
27
|
+
getPage: (page: number) => Promise<void>;
|
|
28
|
+
toJSON(): {
|
|
29
|
+
data: IkasBlogCategory[];
|
|
30
|
+
type: IkasBlogCategoryListType;
|
|
31
|
+
limit: number;
|
|
32
|
+
page: number;
|
|
33
|
+
count: number;
|
|
34
|
+
initialized: boolean;
|
|
35
|
+
minPage: number | null | undefined;
|
|
36
|
+
blogCategoryListPropValue: IkasBlogCategoryListPropValue;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export declare type IkasBlogCategoryListParams = {
|
|
40
|
+
data?: IkasBlogCategory[];
|
|
41
|
+
type?: IkasBlogCategoryListType;
|
|
42
|
+
limit?: number;
|
|
43
|
+
page?: number;
|
|
44
|
+
count?: number;
|
|
45
|
+
initialized?: boolean;
|
|
46
|
+
minPage?: number;
|
|
47
|
+
blogCategoryListPropValue: IkasBlogCategoryListPropValue;
|
|
48
|
+
};
|
|
49
|
+
export declare enum IkasBlogCategoryListType {
|
|
50
|
+
ALL = "ALL",
|
|
51
|
+
STATIC = "STATIC"
|
|
52
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { IkasBlog } from "../../data/blog/index";
|
|
2
|
+
import { IkasBlogListPropValue } from "../../theme/page/component/prop-value/blog-list";
|
|
3
|
+
export declare class IkasBlogList {
|
|
4
|
+
data: IkasBlog[];
|
|
5
|
+
private _type;
|
|
6
|
+
private _limit;
|
|
7
|
+
private _page;
|
|
8
|
+
private _count;
|
|
9
|
+
private _initialized;
|
|
10
|
+
private _minPage?;
|
|
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
|
+
private getInitial;
|
|
26
|
+
getPrev: () => Promise<void>;
|
|
27
|
+
getNext: () => Promise<void>;
|
|
28
|
+
getPage: (page: number) => Promise<void>;
|
|
29
|
+
toJSON(): {
|
|
30
|
+
data: IkasBlog[];
|
|
31
|
+
type: IkasBlogListType;
|
|
32
|
+
limit: number;
|
|
33
|
+
page: number;
|
|
34
|
+
count: number;
|
|
35
|
+
initialized: boolean;
|
|
36
|
+
minPage: number | null | undefined;
|
|
37
|
+
blogListPropValue: IkasBlogListPropValue;
|
|
38
|
+
filterCategoryId: string | null;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export declare type IkasBlogListParams = {
|
|
42
|
+
data?: IkasBlog[];
|
|
43
|
+
type?: IkasBlogListType;
|
|
44
|
+
limit?: number;
|
|
45
|
+
page?: number;
|
|
46
|
+
count?: number;
|
|
47
|
+
initialized?: boolean;
|
|
48
|
+
minPage?: number;
|
|
49
|
+
blogListPropValue: IkasBlogListPropValue;
|
|
50
|
+
filterCategoryId: string | null;
|
|
51
|
+
};
|
|
52
|
+
export declare enum IkasBlogListType {
|
|
53
|
+
ALL = "ALL",
|
|
54
|
+
STATIC = "STATIC",
|
|
55
|
+
CATEGORY = "CATEGORY"
|
|
56
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { IkasBrand } from "../../data/index";
|
|
2
|
+
import { IkasBrandListPropValue } from "../../theme/page/component/prop-value/brand-list";
|
|
3
|
+
export declare class IkasBrandList {
|
|
4
|
+
data: IkasBrand[];
|
|
5
|
+
private _type;
|
|
6
|
+
private _sort;
|
|
7
|
+
private _limit;
|
|
8
|
+
private _page;
|
|
9
|
+
private _count;
|
|
10
|
+
private _initialized;
|
|
11
|
+
private _minPage?;
|
|
12
|
+
private _brandListPropValue;
|
|
13
|
+
private _isLoading;
|
|
14
|
+
constructor(data: IkasBrandListParams);
|
|
15
|
+
get sort(): IkasBrandListSortType;
|
|
16
|
+
get limit(): number;
|
|
17
|
+
get page(): number;
|
|
18
|
+
get count(): number;
|
|
19
|
+
get pageCount(): number;
|
|
20
|
+
get isInitialized(): boolean;
|
|
21
|
+
get isStatic(): boolean;
|
|
22
|
+
get hasPrev(): boolean;
|
|
23
|
+
get hasNext(): boolean;
|
|
24
|
+
get isLoading(): boolean;
|
|
25
|
+
private getSortParams;
|
|
26
|
+
getInitial: () => Promise<void>;
|
|
27
|
+
getPrev: () => Promise<void>;
|
|
28
|
+
getNext: () => Promise<void>;
|
|
29
|
+
getPage: (page: number) => Promise<void>;
|
|
30
|
+
setSortType(sortType: IkasBrandListSortType): Promise<void>;
|
|
31
|
+
toJSON(): {
|
|
32
|
+
data: IkasBrand[];
|
|
33
|
+
type: IkasBrandListType;
|
|
34
|
+
sort: IkasBrandListSortType;
|
|
35
|
+
limit: number;
|
|
36
|
+
page: number;
|
|
37
|
+
count: number;
|
|
38
|
+
initialized: boolean;
|
|
39
|
+
minPage: number | null | undefined;
|
|
40
|
+
brandListPropValue: IkasBrandListPropValue;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export declare type IkasBrandListParams = {
|
|
44
|
+
data?: IkasBrand[];
|
|
45
|
+
type?: IkasBrandListType;
|
|
46
|
+
sort?: IkasBrandListSortType;
|
|
47
|
+
limit?: number;
|
|
48
|
+
page?: number;
|
|
49
|
+
count?: number;
|
|
50
|
+
initialized?: boolean;
|
|
51
|
+
minPage?: number;
|
|
52
|
+
brandListPropValue: IkasBrandListPropValue;
|
|
53
|
+
};
|
|
54
|
+
export declare enum IkasBrandListType {
|
|
55
|
+
ALL = "ALL",
|
|
56
|
+
STATIC = "STATIC"
|
|
57
|
+
}
|
|
58
|
+
export declare enum IkasBrandListSortType {
|
|
59
|
+
A_Z = "A_Z",
|
|
60
|
+
Z_A = "Z_A"
|
|
61
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { IkasCategory } from "../../data/index";
|
|
2
|
+
import { IkasCategoryListPropValue } from "../../theme/page/component/prop-value/category-list";
|
|
3
|
+
export declare class IkasCategoryList {
|
|
4
|
+
data: IkasCategory[];
|
|
5
|
+
private _type;
|
|
6
|
+
private _sort;
|
|
7
|
+
private _limit;
|
|
8
|
+
private _page;
|
|
9
|
+
private _count;
|
|
10
|
+
private _initialized;
|
|
11
|
+
private _minPage?;
|
|
12
|
+
private _categoryListPropValue;
|
|
13
|
+
private _isLoading;
|
|
14
|
+
constructor(data: IkasCategoryListParams);
|
|
15
|
+
get sort(): IkasCategoryListSortType;
|
|
16
|
+
get limit(): number;
|
|
17
|
+
get page(): number;
|
|
18
|
+
get count(): number;
|
|
19
|
+
get pageCount(): number;
|
|
20
|
+
get isInitialized(): boolean;
|
|
21
|
+
get isStatic(): boolean;
|
|
22
|
+
get hasPrev(): boolean;
|
|
23
|
+
get hasNext(): boolean;
|
|
24
|
+
get isLoading(): boolean;
|
|
25
|
+
private getSortParams;
|
|
26
|
+
getInitial: () => Promise<void>;
|
|
27
|
+
getPrev: () => Promise<void>;
|
|
28
|
+
getNext: () => Promise<void>;
|
|
29
|
+
getPage: (page: number) => Promise<void>;
|
|
30
|
+
setSortType(sortType: IkasCategoryListSortType): Promise<void>;
|
|
31
|
+
toJSON(): {
|
|
32
|
+
data: IkasCategory[];
|
|
33
|
+
type: IkasCategoryListType;
|
|
34
|
+
sort: IkasCategoryListSortType;
|
|
35
|
+
limit: number;
|
|
36
|
+
page: number;
|
|
37
|
+
count: number;
|
|
38
|
+
initialized: boolean;
|
|
39
|
+
minPage: number | null | undefined;
|
|
40
|
+
categoryListPropValue: IkasCategoryListPropValue;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export declare type IkasCategoryListParams = {
|
|
44
|
+
data?: IkasCategory[];
|
|
45
|
+
type?: IkasCategoryListType;
|
|
46
|
+
sort?: IkasCategoryListSortType;
|
|
47
|
+
limit?: number;
|
|
48
|
+
page?: number;
|
|
49
|
+
count?: number;
|
|
50
|
+
initialized?: boolean;
|
|
51
|
+
minPage?: number;
|
|
52
|
+
categoryListPropValue: IkasCategoryListPropValue;
|
|
53
|
+
};
|
|
54
|
+
export declare enum IkasCategoryListType {
|
|
55
|
+
ALL = "ALL",
|
|
56
|
+
STATIC = "STATIC"
|
|
57
|
+
}
|
|
58
|
+
export declare enum IkasCategoryListSortType {
|
|
59
|
+
A_Z = "A_Z",
|
|
60
|
+
Z_A = "Z_A"
|
|
61
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { IkasCustomerReview } from "../../data/customer-review/index";
|
|
2
|
+
export declare class IkasCustomerReviewList {
|
|
3
|
+
data: IkasCustomerReview[];
|
|
4
|
+
private _limit;
|
|
5
|
+
private _page;
|
|
6
|
+
private _count;
|
|
7
|
+
private _initialized;
|
|
8
|
+
private _minPage?;
|
|
9
|
+
private _productId;
|
|
10
|
+
private _isLoading;
|
|
11
|
+
constructor(data: IkasCustomerReviewListParams);
|
|
12
|
+
get limit(): number;
|
|
13
|
+
get page(): number;
|
|
14
|
+
get count(): number;
|
|
15
|
+
get pageCount(): number;
|
|
16
|
+
get isInitialized(): boolean;
|
|
17
|
+
get hasPrev(): boolean;
|
|
18
|
+
get hasNext(): boolean;
|
|
19
|
+
get isLoading(): boolean;
|
|
20
|
+
private listCustomerReviews;
|
|
21
|
+
private getInitial;
|
|
22
|
+
getPrev: () => Promise<void>;
|
|
23
|
+
getNext: () => Promise<void>;
|
|
24
|
+
getPage: (page: number) => Promise<void>;
|
|
25
|
+
toJSON(): {
|
|
26
|
+
data: IkasCustomerReview[];
|
|
27
|
+
limit: number;
|
|
28
|
+
page: number;
|
|
29
|
+
count: number;
|
|
30
|
+
initialized: boolean;
|
|
31
|
+
minPage: number | null | undefined;
|
|
32
|
+
productId: string;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export declare type IkasCustomerReviewListParams = {
|
|
36
|
+
data?: IkasCustomerReview[];
|
|
37
|
+
limit?: number;
|
|
38
|
+
page?: number;
|
|
39
|
+
count?: number;
|
|
40
|
+
initialized?: boolean;
|
|
41
|
+
minPage?: number;
|
|
42
|
+
productId: string;
|
|
43
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export * from "./blog-list/index";
|
|
2
|
+
export * from "./blog-category-list/index";
|
|
3
|
+
export { IkasBrandList, IkasBrandListType, IkasBrandListSortType, } from "./brand-list/index";
|
|
4
|
+
export { IkasCategoryList, IkasCategoryListType, IkasCategoryListSortType, } from "./category-list/index";
|
|
5
|
+
export type { IkasBrandListParams } from "./brand-list/index";
|
|
6
|
+
export { IkasNavigationLink } from "./navigation-link/index";
|
|
7
|
+
export { IkasProductDetail, IkasDisplayedVariantType, IkasDisplayedVariantValue, } from "./product-detail/index";
|
|
8
|
+
export { IkasProductList, IkasProductListType, IkasProductListSortType, } from "./product-list/index";
|
|
9
|
+
export * from "./product-attribute-detail/index";
|
|
10
|
+
export * from "./product-attribute-list/index";
|
|
11
|
+
export * from "./customer-review-list/index";
|
|
12
|
+
export { Validator, ValidationStatus } from "./validator/index";
|
|
13
|
+
export * from "./validator/rules/index";
|
|
14
|
+
export { LoginForm } from "./validator/form/login";
|
|
15
|
+
export { AddressForm } from "./validator/form/address";
|
|
16
|
+
export { RegisterForm } from "./validator/form/register";
|
|
17
|
+
export { ContactForm } from "./validator/form/contact-form";
|
|
18
|
+
export { ForgotPasswordForm } from "./validator/form/forgot-password";
|
|
19
|
+
export { RecoverPasswordForm } from "./validator/form/recover-password";
|
|
20
|
+
export { AccountInfoForm } from "./validator/form/account-info";
|
|
21
|
+
export { CustomerReviewForm } from "./validator/form/customer-review";
|
|
22
|
+
export * from "./component-renderer/index";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IkasAttributePropValue } from "../../theme/page/component/prop-value/attribute";
|
|
2
|
+
import { IkasProductDetail } from "../product-detail/index";
|
|
3
|
+
export declare class IkasAttributeDetail {
|
|
4
|
+
productDetail: IkasProductDetail | null;
|
|
5
|
+
attributePropValue: IkasAttributePropValue;
|
|
6
|
+
constructor(productDetail: IkasProductDetail | null, attributePropValue: IkasAttributePropValue);
|
|
7
|
+
get values(): import("../../index").IkasProductAttributeValue[];
|
|
8
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IkasProductAttributeMap } from "../../data/index";
|
|
2
|
+
import { IkasProductDetail } from "../product-detail/index";
|
|
3
|
+
import { IkasAttributeListPropValue } from "../../theme/page/component/prop-value/attribute-list";
|
|
4
|
+
export declare class IkasAttributeList {
|
|
5
|
+
productDetail: IkasProductDetail | null;
|
|
6
|
+
attributeListPropValue: IkasAttributeListPropValue;
|
|
7
|
+
constructor(productDetail: IkasProductDetail | null, attributeListPropValue: IkasAttributeListPropValue);
|
|
8
|
+
get values(): IkasProductAttributeMap[];
|
|
9
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { IkasProduct, IkasVariantValue, IkasCustomerReviewList } from "../../index";
|
|
2
|
+
import { NextRouter } from "next/router";
|
|
3
|
+
import { IkasProductVariant, IkasVariantType } from "../../data/index";
|
|
4
|
+
export declare class IkasProductDetail {
|
|
5
|
+
product: IkasProduct;
|
|
6
|
+
selectedVariantValues: IkasVariantValue[];
|
|
7
|
+
private router?;
|
|
8
|
+
constructor(product: IkasProduct, selectedVariantValues: IkasVariantValue[], router?: NextRouter);
|
|
9
|
+
get mainVariantValue(): IkasVariantValue | undefined;
|
|
10
|
+
get selectedVariant(): IkasProductVariant;
|
|
11
|
+
get href(): string;
|
|
12
|
+
get hasStock(): boolean;
|
|
13
|
+
get displayedVariantTypes(): IkasDisplayedVariantType[];
|
|
14
|
+
get isCustomerReviewEnabled(): boolean;
|
|
15
|
+
get isCustomerReviewLoginRequired(): boolean;
|
|
16
|
+
getCustomerReviews(): Promise<IkasCustomerReviewList>;
|
|
17
|
+
selectVariantValue(variantValue: IkasVariantValue): void;
|
|
18
|
+
}
|
|
19
|
+
export declare type IkasDisplayedVariantValue = {
|
|
20
|
+
variant: IkasProductVariant;
|
|
21
|
+
variantValue: IkasVariantValue;
|
|
22
|
+
hasStock: boolean;
|
|
23
|
+
isSelected: boolean;
|
|
24
|
+
};
|
|
25
|
+
export declare type IkasDisplayedVariantType = {
|
|
26
|
+
variantType: IkasVariantType;
|
|
27
|
+
displayedVariantValues: IkasDisplayedVariantValue[];
|
|
28
|
+
};
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { IkasProductListPropValue, IkasThemePageType } from "../../theme/index";
|
|
2
|
+
import { IkasProductDetail } from "../product-detail/index";
|
|
3
|
+
import { IkasProductFilter } from "../../data/product-filter/index";
|
|
4
|
+
import { NextRouter } from "next/router";
|
|
5
|
+
import { IkasCategory, IkasFilterCategory } from "../../data/category/index";
|
|
6
|
+
import { IkasBrand } from "../../data/index";
|
|
7
|
+
export declare class IkasProductList {
|
|
8
|
+
data: IkasProductDetail[];
|
|
9
|
+
filters?: IkasProductFilter[] | null;
|
|
10
|
+
private _filterCategories?;
|
|
11
|
+
private _type;
|
|
12
|
+
private _pageType;
|
|
13
|
+
private _sort;
|
|
14
|
+
private _limit;
|
|
15
|
+
private _page;
|
|
16
|
+
private _infiniteScrollPage;
|
|
17
|
+
private _count;
|
|
18
|
+
private _searchKeyword;
|
|
19
|
+
private _initialized;
|
|
20
|
+
private _minPage?;
|
|
21
|
+
private _productListPropValue;
|
|
22
|
+
private _filterBrandId?;
|
|
23
|
+
private _filterCategoryId?;
|
|
24
|
+
private pageSpecificData?;
|
|
25
|
+
private _recommendFor?;
|
|
26
|
+
private _isLoading;
|
|
27
|
+
private _fetchRequestTime;
|
|
28
|
+
private router?;
|
|
29
|
+
constructor(data: IkasProductListParams, router?: NextRouter);
|
|
30
|
+
get sort(): IkasProductListSortType;
|
|
31
|
+
get limit(): number;
|
|
32
|
+
get pageType(): IkasThemePageType;
|
|
33
|
+
get page(): number;
|
|
34
|
+
get minPage(): number;
|
|
35
|
+
get count(): number;
|
|
36
|
+
get pageCount(): number;
|
|
37
|
+
get searchKeyword(): string;
|
|
38
|
+
set searchKeyword(value: string);
|
|
39
|
+
get isInitialized(): boolean;
|
|
40
|
+
get isFilterable(): boolean;
|
|
41
|
+
get isFiltered(): boolean | undefined;
|
|
42
|
+
get isStatic(): boolean;
|
|
43
|
+
get isDiscounted(): boolean;
|
|
44
|
+
get isRecommended(): boolean;
|
|
45
|
+
get isLastViewed(): boolean;
|
|
46
|
+
get isSearch(): boolean;
|
|
47
|
+
get hasPrev(): boolean;
|
|
48
|
+
get hasNext(): boolean;
|
|
49
|
+
get isLoading(): boolean;
|
|
50
|
+
get filterQueryParams(): string;
|
|
51
|
+
get filterCategories(): IkasFilterCategory[] | undefined;
|
|
52
|
+
get hasAppliedfilter(): boolean | undefined;
|
|
53
|
+
get isFeaturedSortEnabled(): boolean;
|
|
54
|
+
private setPageSpecificSort;
|
|
55
|
+
private getSortParams;
|
|
56
|
+
private searchProducts;
|
|
57
|
+
private getFilters;
|
|
58
|
+
private applyQueryParamFilters;
|
|
59
|
+
private applyFacets;
|
|
60
|
+
private applyFilters;
|
|
61
|
+
clearFilters(): void;
|
|
62
|
+
private getInitial;
|
|
63
|
+
getPrev: () => Promise<void>;
|
|
64
|
+
getNext: () => Promise<void>;
|
|
65
|
+
getPage: (page: number) => Promise<void>;
|
|
66
|
+
setSortType(sortType: IkasProductListSortType): Promise<void>;
|
|
67
|
+
onFilterCategoryClick(filterCategory: IkasFilterCategory, disableRoute?: boolean): Promise<void>;
|
|
68
|
+
toJSON(): {
|
|
69
|
+
data: IkasProductDetail[];
|
|
70
|
+
type: IkasProductListType;
|
|
71
|
+
pageType: IkasThemePageType;
|
|
72
|
+
sort: IkasProductListSortType;
|
|
73
|
+
limit: number;
|
|
74
|
+
page: number;
|
|
75
|
+
count: number;
|
|
76
|
+
searchKeyword: string;
|
|
77
|
+
initialized: boolean;
|
|
78
|
+
minPage: number | null | undefined;
|
|
79
|
+
filterBrandId: string | null | undefined;
|
|
80
|
+
filterCategoryId: string | null | undefined;
|
|
81
|
+
filterCategories: IkasFilterCategory[] | null | undefined;
|
|
82
|
+
filters: IkasProductFilter[] | null | undefined;
|
|
83
|
+
recommendFor: string | null | undefined;
|
|
84
|
+
productListPropValue: IkasProductListPropValue;
|
|
85
|
+
pageSpecificData: IkasCategory | IkasBrand | null | undefined;
|
|
86
|
+
};
|
|
87
|
+
setVisibleInfiniteScrollPage: (page: number) => void;
|
|
88
|
+
private restoreInfiniteScrollPage;
|
|
89
|
+
private getQueryParams;
|
|
90
|
+
private isBrowser;
|
|
91
|
+
private waitForCustomerStoreInit;
|
|
92
|
+
private handleListingEvent;
|
|
93
|
+
private searchDebouncer;
|
|
94
|
+
private searchAnalyticsDebouncer;
|
|
95
|
+
}
|
|
96
|
+
export declare type IkasProductListParams = {
|
|
97
|
+
data?: IkasProductDetail[];
|
|
98
|
+
type?: IkasProductListType;
|
|
99
|
+
pageType: IkasThemePageType;
|
|
100
|
+
sort?: IkasProductListSortType;
|
|
101
|
+
limit?: number;
|
|
102
|
+
page?: number;
|
|
103
|
+
count?: number;
|
|
104
|
+
searchKeyword?: string;
|
|
105
|
+
initialized?: boolean;
|
|
106
|
+
minPage?: number;
|
|
107
|
+
filterBrandId?: string;
|
|
108
|
+
filterCategoryId?: string;
|
|
109
|
+
filters?: IkasProductFilter[];
|
|
110
|
+
filterCategories?: IkasFilterCategory[];
|
|
111
|
+
recommendFor?: string;
|
|
112
|
+
productListPropValue: IkasProductListPropValue;
|
|
113
|
+
pageSpecificData?: IkasCategory | IkasBrand | null;
|
|
114
|
+
};
|
|
115
|
+
export declare enum IkasProductListType {
|
|
116
|
+
ALL = "ALL",
|
|
117
|
+
STATIC = "STATIC",
|
|
118
|
+
DISCOUNTED = "DISCOUNTED",
|
|
119
|
+
RECOMMENDED = "RECOMMENDED",
|
|
120
|
+
CATEGORY = "CATEGORY",
|
|
121
|
+
SEARCH = "SEARCH",
|
|
122
|
+
LAST_VIEWED = "LAST_VIEWED"
|
|
123
|
+
}
|
|
124
|
+
export declare enum IkasProductListSortType {
|
|
125
|
+
INCREASING_PRICE = "INCREASING_PRICE",
|
|
126
|
+
DECREASING_PRICE = "DECREASING_PRICE",
|
|
127
|
+
LAST_ADDED = "LAST_ADDED",
|
|
128
|
+
FIRST_ADDED = "FIRST_ADDED",
|
|
129
|
+
INCREASING_DISCOUNT = "INCREASING_DISCOUNT",
|
|
130
|
+
DECRASING_DISCOUNT = "DECRASING_DISCOUNT",
|
|
131
|
+
FEATURED = "FEATURED"
|
|
132
|
+
}
|