@ikas/bp-storefront 1.4.0-beta.2 → 1.4.0-beta.200
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/dist/analytics/analytics-functions/addToCart.js +1 -1
- package/dist/analytics/analytics-functions/addToWishlist.js +1 -1
- package/dist/analytics/analytics-functions/completeRegistration.js +1 -1
- package/dist/analytics/analytics-functions/contactForm.js +1 -1
- package/dist/analytics/analytics-functions/createEmailSubscription.js +1 -1
- package/dist/analytics/analytics-functions/customerLogin.js +1 -1
- package/dist/analytics/analytics-functions/customerLogout.js +1 -1
- package/dist/analytics/analytics-functions/customerVisit.js +1 -1
- package/dist/analytics/analytics-functions/helpers.js +1 -1
- package/dist/analytics/analytics-functions/pageView.js +1 -1
- package/dist/analytics/analytics-functions/productView.js +1 -1
- package/dist/analytics/analytics-functions/removeFromCart.js +1 -1
- package/dist/analytics/analytics-functions/search.js +1 -1
- package/dist/analytics/analytics-functions/viewBrand.js +1 -1
- package/dist/analytics/analytics-functions/viewCart.js +1 -1
- package/dist/analytics/analytics-functions/viewCategory.js +1 -1
- package/dist/analytics/analytics-functions/viewListing.js +1 -1
- package/dist/analytics/analytics-functions/viewSearchResults.js +1 -1
- package/dist/analytics/analytics-functions/viewStorefrontPopup.js +1 -1
- package/dist/analytics/analytics.js +1 -1
- package/dist/analytics/events.d.ts +8 -0
- package/dist/analytics/events.js +1 -1
- package/dist/analytics/google-tag-manager/productView.js +1 -1
- package/dist/analytics/google-tag-manager/viewCategory.js +1 -1
- package/dist/analytics/ikas/analytics.js +1 -1
- package/dist/analytics/openai/addToCart.d.ts +2 -0
- package/dist/analytics/openai/addToCart.js +1 -0
- package/dist/analytics/openai/completeRegistration.d.ts +1 -0
- package/dist/analytics/openai/completeRegistration.js +1 -0
- package/dist/analytics/openai/contactForm.d.ts +1 -0
- package/dist/analytics/openai/contactForm.js +1 -0
- package/dist/analytics/openai/initAdvancedMatching.d.ts +12 -0
- package/dist/analytics/openai/initAdvancedMatching.js +1 -0
- package/dist/analytics/openai/pageView.d.ts +1 -0
- package/dist/analytics/openai/pageView.js +1 -0
- package/dist/analytics/openai/productView.d.ts +2 -0
- package/dist/analytics/openai/productView.js +1 -0
- package/dist/analytics/openai/utils.d.ts +26 -0
- package/dist/analytics/openai/utils.js +1 -0
- package/dist/analytics/utils.d.ts +1 -0
- package/dist/analytics/utils.js +1 -1
- package/dist/ext/lodash/flatten.js +1 -0
- package/dist/functions/api/cart/index.d.ts +2 -0
- package/dist/functions/api/cart/index.js +1 -1
- package/dist/functions/api/customer/index.d.ts +5 -0
- package/dist/functions/api/customer/index.js +1 -1
- package/dist/functions/api/loyalty/index.d.ts +2 -1
- package/dist/functions/api/loyalty/index.js +1 -1
- package/dist/functions/api/product/index.js +1 -1
- package/dist/functions/models/attribute-detail/index.d.ts +3 -0
- package/dist/functions/models/attribute-list/index.d.ts +3 -0
- package/dist/functions/models/category/index.js +1 -1
- package/dist/functions/models/image/index.d.ts +71 -21
- package/dist/functions/models/image/index.js +1 -1
- package/dist/functions/models/index.d.ts +1 -0
- package/dist/functions/models/order/index.d.ts +21 -0
- package/dist/functions/models/order/index.js +1 -1
- package/dist/functions/models/product/attribute-value/index.d.ts +5 -0
- package/dist/functions/models/product/option-set/index.d.ts +18 -0
- package/dist/functions/models/product/option-set/index.js +1 -1
- package/dist/functions/models/product/variant/index.d.ts +96 -6
- package/dist/functions/models/product/variant/index.js +1 -1
- package/dist/functions/models/product-list/index.js +1 -1
- package/dist/functions/models/validator/account-info/index.js +1 -1
- package/dist/functions/models/validator/address/index.d.ts +70 -2
- package/dist/functions/models/validator/contact-form/index.js +1 -1
- package/dist/functions/models/validator/coupon-code-form/index.js +1 -1
- package/dist/functions/models/validator/customer-review/index.js +1 -1
- package/dist/functions/models/validator/deactivate-customer/index.d.ts +54 -0
- package/dist/functions/models/validator/deactivate-customer/index.js +1 -0
- package/dist/functions/models/validator/forgot-password/index.js +1 -1
- package/dist/functions/models/validator/login/index.js +1 -1
- package/dist/functions/models/validator/newsletter-subscription/index.js +1 -1
- package/dist/functions/models/validator/order-tracking/index.js +1 -1
- package/dist/functions/models/validator/recover-password/index.js +1 -1
- package/dist/functions/models/validator/register/index.js +1 -1
- package/dist/functions/models/validator/sms-login/index.js +1 -1
- package/dist/functions/models/validator/verify-phone-number/index.js +1 -1
- package/dist/functions/stores/base/index.d.ts +143 -1
- package/dist/functions/stores/base/index.js +1 -1
- package/dist/functions/stores/cart/index.d.ts +46 -2
- package/dist/functions/stores/cart/index.js +1 -1
- package/dist/functions/stores/customer/index.d.ts +278 -27
- package/dist/functions/stores/customer/index.js +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +1 -1
- package/dist/packages/storefront-api/src/__api/mutations/removeGiftCardFromCart.js +1 -0
- package/dist/packages/storefront-api/src/__api/mutations/unlinkExternalAccount.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/getExternalAccountLink.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/getLoyaltyProgram.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/getMilesSmilesDetails.js +1 -0
- package/dist/packages/storefront-api-client/src/utils/api.js +1 -1
- package/dist/packages/storefront-config/src/index.js +1 -1
- package/dist/packages/storefront-config/src/theme-globals.js +1 -0
- package/dist/router/index.d.ts +28 -0
- package/dist/router/index.js +1 -1
- package/dist/storefront-api/src/__api/mutations/removeGiftCardFromCart.d.ts +7 -0
- package/dist/storefront-api/src/__api/mutations/unlinkExternalAccount.d.ts +6 -0
- package/dist/storefront-api/src/__api/queries/getExternalAccountLink.d.ts +6 -0
- package/dist/storefront-api/src/__api/queries/getLoyaltyProgram.d.ts +3 -0
- package/dist/storefront-api/src/__api/queries/getMilesSmilesDetails.d.ts +3 -0
- package/dist/storefront-api/src/__api/types/index.d.ts +68 -6
- package/dist/storefront-api-client/src/utils/api.d.ts +7 -0
- package/dist/storefront-config/src/index.d.ts +6 -0
- package/dist/storefront-config/src/theme-globals.d.ts +328 -0
- package/dist/storefront-models/src/index.d.ts +3 -0
- package/dist/storefront-models/src/models/blueprint/prop-value/attribute-list.d.ts +2 -0
- package/dist/storefront-models/src/models/blueprint/prop-value/attribute.d.ts +2 -0
- package/dist/storefront-models/src/models/blueprint/prop-value/color.d.ts +2 -0
- package/dist/storefront-models/src/models/blueprint/prop-value/index.d.ts +3 -0
- package/dist/storefront-models/src/models/blueprint/prop-value/svg-list.d.ts +3 -0
- package/dist/storefront-models/src/models/blueprint/prop-value/svg.d.ts +3 -0
- package/dist/storefront-models/src/models/blueprint/prop-value/variable-binding.d.ts +16 -0
- package/dist/storefront-models/src/models/image/index.d.ts +7 -0
- package/dist/storefront-models/src/models/loyalty-program/customer-info/index.d.ts +2 -0
- package/dist/storefront-models/src/models/loyalty-program/earning-method/index.d.ts +1 -0
- package/dist/storefront-models/src/models/loyalty-program/index.d.ts +1 -0
- package/dist/storefront-models/src/models/loyalty-program/point-history/index.d.ts +1 -0
- package/dist/storefront-models/src/models/order/gift-card-line/index.d.ts +15 -0
- package/dist/storefront-models/src/models/order/index.d.ts +2 -0
- package/dist/storefront-models/src/models/order/line-item/index.d.ts +1 -1
- package/dist/storefront-models/src/models/order/package/index.d.ts +1 -1
- package/dist/storefront-models/src/models/payment-gateway/index.d.ts +3 -1
- package/dist/storefront-models/src/models/product/attribute/index.d.ts +6 -1
- package/dist/storefront-models/src/models/product/campaign/data/index.d.ts +2 -0
- package/dist/storefront-models/src/models/product/campaign/filter/index.d.ts +1 -1
- package/dist/storefront-models/src/models/product/campaign/product-tiered-discount/index.d.ts +13 -0
- package/dist/storefront-models/src/models/product/image/index.d.ts +5 -0
- package/dist/storefront-models/src/models/product/variant/index.d.ts +17 -0
- package/dist/storefront-models/src/models/storefront/index.d.ts +1 -0
- package/dist/storefront-models/src/models/validator/deactivate-customer/index.d.ts +4 -0
- package/dist/stores/customer/index.d.ts +2 -1
- package/dist/stores/customer/index.js +1 -1
- package/dist/theme/settings/index.d.ts +51 -0
- package/dist/theme/settings/index.js +1 -0
- package/dist/utils/component-renderer.d.ts +3 -1
- package/dist/utils/component-renderer.js +1 -1
- package/dist/utils/currency.d.ts +36 -3
- package/dist/utils/helper.d.ts +1 -0
- package/dist/utils/helper.js +1 -1
- package/dist/utils/pay-with-ikas.d.ts +553 -0
- package/dist/utils/pay-with-ikas.js +1 -0
- package/dist/utils/svg.d.ts +15 -0
- package/dist/utils/svg.js +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Analytics}from"./analytics/analytics.js";export{initIkasEvents}from"./analytics/events.js";export{EMPTY_STRING,NULL,UNDEFINED}from"./externals/index.js";export{apiListProductBrand}from"./functions/api/brand/index.js";export{apiListCategory}from"./functions/api/category/index.js";export{apiGetLoyaltyCustomerInfo,apiGetStorefrontWidgetSettings,apiListEarningMethods,apiListLoyaltyProgramPointHistory,apiListLoyaltyProgramTiers,apiListSpendingMethodsByCartId,apiRemoveLoyaltyPointsFromCart,apiUseLoyaltyPoints}from"./functions/api/loyalty/index.js";export{apiListStorefrontPopup}from"./functions/api/popup/index.js";export{apiSearchProducts}from"./functions/api/product/index.js";export{getAttributeDetailValues}from"./functions/models/attribute-detail/index.js";export{getAttributeListValues}from"./functions/models/attribute-list/index.js";export{createIkasBaseModel}from"./functions/models/base/index.js";export{getIkasBlogFormattedDate,getIkasBlogHref}from"./functions/models/blog/index.js";export{createIkasBlogCategory,getIkasBlogCategoryHref}from"./functions/models/blog/category/index.js";export{initIkasBlogCategory}from"./functions/models/blog/category/init.js";export{initIkasBlog}from"./functions/models/blog/init.js";export{getBlogCategoryListInitialData,getBlogCategoryListNextPage,getBlogCategoryListPage,getBlogCategoryListPageCount,getBlogCategoryListPrevPage,hasBlogCategoryListNextPage,hasBlogCategoryListPrevPage,isBlogCategoryListStatic}from"./functions/models/blog-category-list/index.js";export{initBlogCategoryList}from"./functions/models/blog-category-list/init.js";export{getBlogListInitialData,getBlogListNextPage,getBlogListPage,getBlogListPageCount,getBlogListPrevPage,hasBlogListNextPage,hasBlogListPrevPage,isBlogListStatic}from"./functions/models/blog-list/index.js";export{initBlogList}from"./functions/models/blog-list/init.js";export{getIkasBrandHref}from"./functions/models/brand/index.js";export{initIkasBrand}from"./functions/models/brand/init.js";export{getBrandListInitialData,getBrandListNextPage,getBrandListPage,getBrandListPageCount,getBrandListPrevPage,hasBrandListNextPage,hasBrandListPrevPage,isBrandListStatic}from"./functions/models/brand-list/index.js";export{initBrandList}from"./functions/models/brand-list/init.js";export{acceptProductOffer,isAcceptedProductOffer,rejectProductOffer}from"./functions/models/campaign-offer/index.js";export{getCategoryPath,getIkasCategoryHref}from"./functions/models/category/index.js";export{initIkasCategory}from"./functions/models/category/init.js";export{getCategoryListInitialData,getCategoryListNextPage,getCategoryListPage,getCategoryListPageCount,getCategoryListPrevPage,hasCategoryListNextPage,hasCategoryListPrevPage,isCategoryListStatic}from"./functions/models/category-list/index.js";export{initCategoryList}from"./functions/models/category-list/init.js";export{getIkasCategoryPathItemHref,getIkasCategoryPathItemSlug}from"./functions/models/category/path-item/index.js";export{initIkasCategoryPathItem}from"./functions/models/category/path-item/init.js";export{getCheckoutTotalFinalPrice,isCheckoutComplete}from"./functions/models/checkout/index.js";export{initIkasCountry}from"./functions/models/country/init.js";export{getCustomerBasicInfo,isCustomerSubscribed}from"./functions/models/customer/index.js";export{clearIkasCustomerAddressForm,getCustomerAddressText,getCustomerAddressValidationResult,getIkasCustomerAddressForm,isValidCustomerAddress}from"./functions/models/customer/address/index.js";export{getCustomerAttributeAccountPagePermission,getCustomerAttributeRegisterPageRequirement}from"./functions/models/customer/attribute/index.js";export{initIkasCustomerAttribute}from"./functions/models/customer/attribute/init.js";export{getIkasCustomerReviewFormattedDate}from"./functions/models/customer/review/index.js";export{initIkasCustomerReview}from"./functions/models/customer/review/init.js";export{getCustomerReviewListInitialData,getCustomerReviewListNextPage,getCustomerReviewListPage,getCustomerReviewListPageCount,getCustomerReviewListPrev,getProductCustomerReviews,hasCustomerReviewListNextPage,hasCustomerReviewListPrevPage}from"./functions/models/customer-review-list/index.js";export{initCustomerReviewList}from"./functions/models/customer-review-list/init.js";export{getCustomerReviewSummaryListInitialData,getCustomerReviewSummaryListNextPage,getCustomerReviewSummaryListPage,getCustomerReviewSummaryListPrev,hasCustomerReviewSummaryListNextPage,hasCustomerReviewSummaryListPrevPage}from"./functions/models/customer-review-summary-list/index.js";export{initCustomerReviewSummaryList}from"./functions/models/customer-review-summary-list/init.js";export{getIkasFilterCategoryHref,getIkasFilterCategorySlug}from"./functions/models/filter-category/index.js";export{initIkasHTMLMetaData,setHTMLMetaDataTranslations}from"./functions/models/html-meta-data/init.js";export{initThemeDatePicker,themeDatePickerGetDate,themeDatePickerGetDaysOfMonth,themeDatePickerGetDaysOfWeekShort,themeDatePickerGetFullYear,themeDatePickerGetHours,themeDatePickerGetMinutes,themeDatePickerGetMonth,themeDatePickerGetMonthList,themeDatePickerGetMonthName,themeDatePickerGetViewFullYear,themeDatePickerGetViewMonth,themeDatePickerGetWeekFirstDay,themeDatePickerOnChange,themeDatePickerOnDayChange,themeDatePickerOnHoursChange,themeDatePickerOnMinutesChange,themeDatePickerOnViewFullYearChange,themeDatePickerOnViewMonthChange,themeDatePickerSetViewNextMonth,themeDatePickerSetViewPrevMonth}from"./functions/models/ikas-theme/date-picker.js";export{createMediaSrcset,getDefaultSrc,getSrc,getThumbnailSrc}from"./functions/models/image/index.js";export{initIkasMerchantSettings}from"./functions/models/merchant-settings/init.js";export{getIkasOrderCouponAdjustment,getIkasOrderCustomerFullName,getIkasOrderDisplayedAdjustments,getIkasOrderDisplayedPackages,getIkasOrderDistinctItemCount,getIkasOrderFormattedDate,getIkasOrderFormattedOrderedAt,getIkasOrderFormattedShippingTotal,getIkasOrderFormattedTotalFinalPrice,getIkasOrderFormattedTotalPrice,getIkasOrderFormattedTotalTax,getIkasOrderHref,getIkasOrderNonCouponAdjustments,getIkasOrderPackageStatusTranslation,getIkasOrderProductFiles,getIkasOrderRefundableItems,getIkasOrderRefundedItems,getIkasOrderShippingTotal,getIkasOrderTotalItemCount,getIkasOrderTotalTax,getIkasOrderUnfullfilledItems,getIkasOrderVariantNames,hasIkasOrderCustomer,hasValidIkasOrderCustomerEmail,initIkasOrder,isIkasOrderRefundable}from"./functions/models/order/index.js";export{createOrderAddress,getOrderAddressText,getOrderAddressValidationResult,isValidOrderAddress}from"./functions/models/order/address/index.js";export{getOrderAdjustmentDisplayName,getOrderAdjustmentFormattedAmount,getOrderAdjustmentIsDecrement}from"./functions/models/order/adjustment/index.js";export{getOrderGiftPackageLineFormattedPrice}from"./functions/models/order/gift-package/index.js";export{editOrderLineItem,getOrderLineItemFinalPriceWithQuantity,getOrderLineItemFormattedDiscountPrice,getOrderLineItemFormattedFinalPrice,getOrderLineItemFormattedFinalPriceWithQuantity,getOrderLineItemFormattedFinalUnitPrice,getOrderLineItemFormattedOverridenPriceWithQuantity,getOrderLineItemFormattedPrice,getOrderLineItemFormattedPriceWithQuantity,getOrderLineItemFormattedTax,getOrderLineItemFormattedUnitPrice,getOrderLineItemOverridenPriceWithQuantity,getOrderLineItemPriceWithQuantity,getOrderLineItemRefundQuantity,getOrderLineItemTax,getOrderLineItemUnitPriceText,hasOrderLineItemDiscount,setOrderLineItemRefundQuantity}from"./functions/models/order/line-item/index.js";export{downloadFile,getOrderLineItemOptionValueFormattedPrice,getOrderLineOptionFileName}from"./functions/models/order/line-item/option/value/index.js";export{getIkasOrderLineVariantHref,getIkasOrderLineVariantMainImage}from"./functions/models/order/line-item/variant/index.js";export{getIkasOrderLineBundleVariantMainImage}from"./functions/models/order/line-item/variant/bundle-product/bundle-variant/index.js";export{getIkasOrderLineVariantNameSlug,getIkasOrderLineVariantTypeSlug}from"./functions/models/order/line-item/variant/value/index.js";export{getOrderTransactionFormattedAmount,getOrderTransactionPaymentMethodTranslation}from"./functions/models/order/transaction/index.js";export{getPaymentGatewayCalculatedAdditionalPrices}from"./functions/models/payment-gateway/index.js";export{initIkasPaymentGateway}from"./functions/models/payment-gateway/init.js";export{addIkasProductToFavorites,clearIkasProductCustomerReviewForm,getBundleProductFinalPrice,getBundleProductFinalPriceWithQuantity,getBundleProductFormattedFinalPrice,getBundleProductFormattedFinalPriceWithQuantity,getBundleProductFormattedSellPrice,getBundleProductFormattedSellPriceWithQuantity,getBundleProductSellPrice,getBundleProductSellPriceWithQuantity,getBundleProductsOfVariant,getDisplayedProductGroups,getDisplayedProductVariantTypes,getGroupedAttributeValues,getIkasProductCustomerReviewForm,getMainProductVariantType,getMainProductVariantValue,getProductAvailableStockLocations,getProductCampaigns,getProductCategoryPath,getProductFirstCategory,getProductHref,getProductOptionSet,getSelectedProductVariant,getSelectedProductVariantHref,hasProductStock,hasProductValidOptionValues,hasProductVariant,initBundleProducts,initProductOnBrowser,initProductOptionSet,isAddToCartEnabled,isBundleProductQuantityEditable,isCustomerReviewEnabled,isCustomerReviewLoginRequired,isFavoriteIkasProduct,removeIkasProductFromFavorites,selectVariantValue,setBundleProductQuantity,setOptionRealPrices,setProductOfBundleProduct,shouldDisplayBundleProductPrice}from"./functions/models/product/index.js";export{getProductFromStore,initIkasProduct,initIkasProductExtraFields,productVariantStore}from"./functions/models/product/init.js";export{clearProductListFilter,clearProductListFilters,enableProductListSuggestions,getProductListCurrencyCode,getProductListCurrencySymbol,getProductListFilterCategories,getProductListInitialData,getProductListNextPage,getProductListPage,getProductListPrevPage,getProductListSortOptions,getProductListSortTypeTranslation,getProductListSuggestionHref,getSelectedFilterValues,handleFilterValueClick,handleNumberRangeOptionClick,hasProductListAppliedFilters,hasProductListFeaturedSortEnabled,hasProductListNextPage,hasProductListPrevPage,initProductList,initProductListFilterCategories,initProductListOnBrowser,isProductListDiscounted,isProductListFilterable,isProductListFiltered,isProductListLastViewed,isProductListPurchasedTogether,isProductListRecommended,isProductListRelatedProducts,isProductListSearch,isProductListStatic,isProductListViewedTogether,onFilterCategoryClick,productListToggleFilterCollapsed,searchProductList,setProductListIsFilteredForProducts,setProductListIsStaticForProducts,setProductListVisiblePage,setSortType,translateProductListSortType}from"./functions/models/product-list/index.js";export{getIkasProductAttributeProducts,getIkasProductAttributeTableValue,getIkasProductAttrributeProductIds}from"./functions/models/product/attribute-value/index.js";export{initIkasProductAttributeValue}from"./functions/models/product/attribute-value/init.js";export{applyQueryParamForFilter,clearFilter,filterParseRangeStr,filterRangeToId,filterToInput,getFilterDisplayedValues,getFilterKeyList,getFilterValueList,getIkasFilterHref,getIkasFilterThumbnailImage,initIkasProductFilter,isBoxFilter,isCustomValueFilter,isListFilter,isStockFilter,isSwatchFilter,onNumberRangeFilterChange,onNumberRangeFilterOptionClick,selectFilterValue}from"./functions/models/product/filter/index.js";export{getDisplayedOptions,hasValidProductOptionSetValues,initOptionValues,initProductOptionSetValues,setChildOptions}from"./functions/models/product/option-set/index.js";export{initIkasProductOptionSet}from"./functions/models/product/option-set/init.js";export{clearValues,getDisplayedChildOptions,getProductOptionFormattedLabel,getProductOptionFormattedPrice,getTextValue,hasError,hasValidProductOptionValues,initIkasProductOptionValues,isCheckboxOption,isChecked,isChoiceOption,isChoiceOptionBoxType,isChoiceOptionSelectType,isChoiceOptionSwatchType,isColorPickerOption,isDatePickerOption,isFileOption,isImageOption,isProductOptionSelectValueSelected,isTextAreaOption,isTextOption,productOptionFileUpload,selectValue,setCheckboxValue,setTextValue,setValues}from"./functions/models/product/option-set/option/index.js";export{initIkasProductOption}from"./functions/models/product/option-set/option/init.js";export{clearProductVariantBackInStockForm,getGroupedAttributeValuesForVariant,getProductVariantAppliedCampaignAmount,getProductVariantB2bPriceRule,getProductVariantBackInStockForm,getProductVariantBundlePrice,getProductVariantCampaignOffersDiscountPercentage,getProductVariantCampaignPrice,getProductVariantDiscountAmount,getProductVariantDiscountPercentage,getProductVariantDiscountPrice,getProductVariantFinalPrice,getProductVariantFinalPriceWithCampaignOffers,getProductVariantFormattedBuyPrice,getProductVariantFormattedCampaignPrice,getProductVariantFormattedDiscountAmount,getProductVariantFormattedDiscountPrice,getProductVariantFormattedFinalPrice,getProductVariantFormattedFinalPriceWithCampaignOffers,getProductVariantFormattedSellPrice,getProductVariantFormattedSellPriceWithCampaignOffers,getProductVariantIsBackInStockCustomerLoginRequired,getProductVariantIsBackInStockEnabled,getProductVariantMainImage,getProductVariantPrice,getProductVariantSellPrice,getProductVariantSellPriceWithCampaignOffers,getProductVariantUnitPriceText,hasBundleSettings,hasProductVariantDiscount,hasProductVariantStock,saveProductVariantBackInStockReminder}from"./functions/models/product/variant/index.js";export{initIkasProductVariant}from"./functions/models/product/variant/init.js";export{getIkasProductDiscountPercentage,getIkasProductPriceDiscountAmount,getIkasProductPriceFinalPrice,hasIkasProductPriceDiscount}from"./functions/models/product/variant/price/index.js";export{isRaffleAvailable}from"./functions/models/raffle/index.js";export{initIkasRaffle}from"./functions/models/raffle/init.js";export{initIkasState}from"./functions/models/state/init.js";export{getIkasVariantTypeSlug,isIkasVariantTypeColorSelection}from"./functions/models/variant-type/index.js";export{initIkasVariantType}from"./functions/models/variant-type/init.js";export{getIkasVariantValueSlug,getIkasVariantValueThumbnailImage,isColorVariantValue,isImageVariantValue,isTextVariantValue}from"./functions/models/variant-type/variant-value/index.js";export{FORM_ITEM_DEFAULT_VALUE,validateValue}from"./functions/models/validator/index.js";export{initAccountInfoForm,setAccountInfoFormFirstName,setAccountInfoFormIsMarketingAccepted,setAccountInfoFormLastName,setAccountInfoFormPhone,submitAccountInfoForm}from"./functions/models/validator/account-info/index.js";export{initAddressForm,setAddressFormAddressLine1,setAddressFormAddressLine2,setAddressFormCity,setAddressFormCompany,setAddressFormCountry,setAddressFormDistrict,setAddressFormFirstName,setAddressFormIdentityNumber,setAddressFormLastName,setAddressFormPhone,setAddressFormPostalCode,setAddressFormRegion,setAddressFormState,setAddressFormTaxNumber,setAddressFormTaxOffice,setAddressFormTitle,submitAddressForm}from"./functions/models/validator/address/index.js";export{initBackInStockNotificationForm,setBackInStockNotificationFormEmail,submitBackInStockNotificationForm}from"./functions/models/validator/back-in-stock-notification/index.js";export{initContactForm,setContactFormEmail,setContactFormFirstName,setContactFormLastName,setContactFormMessage,setContactFormPhone,submitContactForm}from"./functions/models/validator/contact-form/index.js";export{initCouponCodeForm,removeCouponCodeForm,setCouponCodeFormCouponCode,submitCouponCodeForm}from"./functions/models/validator/coupon-code-form/index.js";export{initCustomerReviewForm,setCustomerReviewFormComment,setCustomerReviewFormStar,setCustomerReviewFormTitle,submitCustomerReviewForm}from"./functions/models/validator/customer-review/index.js";export{initForgotPasswordForm,setForgotPasswordFormEmail,submitForgotPasswordForm}from"./functions/models/validator/forgot-password/index.js";export{initLoginForm,setLoginFormEmail,setLoginFormPassword,submitLoginForm}from"./functions/models/validator/login/index.js";export{initNewsletterSubscriptionForm,setNewsletterSubscriptionFormEmail,setNewsletterSubscriptionFormIsMarketingAccepted,submitNewsletterSubscriptionForm}from"./functions/models/validator/newsletter-subscription/index.js";export{initOrderTrackingForm,setOrderTrackingFormEmail,setOrderTrackingFormOrderNumber,submitOrderTrackingForm}from"./functions/models/validator/order-tracking/index.js";export{initRecoverPasswordForm,setRecoverPasswordFormPassword,setRecoverPasswordFormPasswordAgain,submitRecoverPasswordForm}from"./functions/models/validator/recover-password/index.js";export{initRegisterForm,setRegisterFormBooleanAttribute,setRegisterFormChoiceAttribute,setRegisterFormDateAttribute,setRegisterFormDateTimeAttribute,setRegisterFormEmail,setRegisterFormFirstName,setRegisterFormIsMarketingAccepted,setRegisterFormIsMembershipAgreementAccepted,setRegisterFormLastName,setRegisterFormMultipleChoiceAttribute,setRegisterFormNumericAttribute,setRegisterFormPassword,setRegisterFormPhone,setRegisterFormTextAttribute,submitRegisterForm}from"./functions/models/validator/register/index.js";export{initSmsLoginForm,resendSmsLoginFormCode,setSmsLoginFormCode,setSmsLoginFormEmail,setSmsLoginFormFirstName,setSmsLoginFormIsMarketingAccepted,setSmsLoginFormIsMembershipAgreementAccepted,setSmsLoginFormLastName,setSmsLoginFormPhone,submitSmsLoginForm}from"./functions/models/validator/sms-login/index.js";export{initVerifyPhoneNumberForm,resendVerifyPhoneNumberFormCode,setVerifyPhoneNumberFormCode,submitVerifyPhoneNumberForm}from"./functions/models/validator/verify-phone-number/index.js";export{collectionToArray}from"./functions/others/index.js";export{bs_searchProductById,bs_searchProductsById,initBaseStore}from"./functions/stores/base/index.js";export{addItemToCart,addSelectedtedVariantToCart,changeCartItemQuantity,changeItemQuantity,createPayWithIkasSession,findExistingCartItem,findExistingCartItemWithProduct,getAcceptedOffers,getCart,getCheckoutUrlFromCartStore,hasCart,isOrderLineItemAutoCreated,removeCart,removeCouponCode,removeItem,saveCouponCode,setCart,waitForCartStoreInit,windowAddToCart}from"./functions/stores/cart/index.js";export{activateCustomer,addProductToFavorites,canCustomerCreateEmailSubscription,checkEmail,clearAccountInfoForm,clearContactForm,clearCouponCodeForm,clearForgotPasswordForm,clearLoginForm,clearNewsletterSubscriptionForm,clearOrderTrackingForm,clearRecoverPasswordForm,clearRegisterForm,closeIkasStorefrontWidget,createEmailSubscription,cs_getLoyaltyCustomerInfo,cs_listEarningMethods,cs_listLoyaltyProgramPointHistory,cs_listLoyaltyProgramTiers,cs_listSpendingMethodsByCartId,cs_removeLoyaltyPointsFromCart,cs_useLoyaltyPoints,customerLogin,customerStore_onProductView,customerToAnalyticsCustomer,deactivateCustomer,deleteCustomerAddress,exportCustomerPersonalData,forgotPassword,getAccountInfoForm,getContactForm,getCouponCodeForm,getCustomerAttributes,getCustomerConsentGranted,getDigitalProductFileDownloadUrl,getEmptyAddressForm,getFavoriteProducts,getFavoriteProductsIds,getForgotPasswordForm,getLastViewedProducts,getLoginForm,getNewsletterSubscriptionForm,getOrder,getOrderByEmail,getOrderDetailsOfPage,getOrderProductFiles,getOrderRefundSettings,getOrderTrackingForm,getOrderTransactions,getOrders,getRecoverPasswordForm,getRegisterForm,getSmsLoginForm,getVerifyPhoneNumberForm,handleCustomerConsentGrant,handleSocialLogin,hasCustomer,initCustomerStore,isFavoriteProduct,logout,openIkasStorefrontWidget,recoverPassword,refundOrder,register,removeCustomerConsent,removeProductFromFavorites,resendCustomerActivationMail,resendCustomerPhoneVerificationCode,saveContactForm,saveCustomer,saveCustomerFormData,sendReview,setCaptchaToken,setSavedLastViewedProductsResponse,socialLogin,socialLoginToken,validateCustomerPhoneVerificationCode,validateOTPCode,waitForCaptchaTokenInit,waitForCustomerStoreInit}from"./functions/stores/customer/index.js";export{I18n,i18n}from"./i18n/index.js";export{Router,router,withRoutePrefix}from"./router/index.js";export{baseStore}from"./stores/base/index.js";export{CART_LS_KEY,cartStore}from"./stores/cart/index.js";export{customerStore}from"./stores/customer/index.js";export{DYNAMIC_STYLE_PROPERTIES,SIZE_PROPERTIES,getFormattedBorder,getFormattedBorderRadiusBottomLeftSize,getFormattedBorderRadiusBottomRightSize,getFormattedBorderRadiusSize,getFormattedBorderRadiusTopLeftSize,getFormattedBorderRadiusTopRightSize,getFormattedBorderWidthSizeSize,getFormattedBottomSize,getFormattedFontSize,getFormattedGapSize,getFormattedGridTemplateColumns,getFormattedHeightSize,getFormattedLeftSize,getFormattedLetterSpacingSize,getFormattedLineHeightSize,getFormattedMarginBottomSize,getFormattedMarginLeftSize,getFormattedMarginRightSize,getFormattedMarginTopSize,getFormattedMaxHeightSize,getFormattedMaxWidthSize,getFormattedMinHeightSize,getFormattedMinWidthSize,getFormattedPaddingBottomSize,getFormattedPaddingLeftSize,getFormattedPaddingMarginSize,getFormattedPaddingRightSize,getFormattedPaddingSize,getFormattedPaddingTopSize,getFormattedRightSize,getFormattedShadow,getFormattedSize,getFormattedStyleVariable,getFormattedTopSize,getFormattedWidthSize}from"./theme/styles/index.js";export{isBrowser,isDefined,isEmpty,isNotEmpty}from"./utils/blueprint.js";export{IkasComponentRenderer}from"./utils/component-renderer.js";export{HttpMethod,get,httpRequest,post}from"./utils/fetch.js";export{JsObject}from"./utils/object-wrapper.js";export{setAPIClientConfig}from"./packages/storefront-api/src/index.js";export{IkasStorefrontConfig,escapeForJSON,unescapeFromJSON}from"./packages/storefront-config/src/index.js";import"./packages/storefront-models/src/models/merchant-settings/index.js";export{default as IkasAPIClientConfig}from"./packages/storefront-api-client/src/config/index.js";export{anl_addToCart}from"./analytics/analytics-functions/addToCart.js";export{anl_addToWishlist}from"./analytics/analytics-functions/addToWishlist.js";export{anl_completeRegistration}from"./analytics/analytics-functions/completeRegistration.js";export{anl_contactForm}from"./analytics/analytics-functions/contactForm.js";export{anl_createEmailSubscription}from"./analytics/analytics-functions/createEmailSubscription.js";export{anl_customerLogin}from"./analytics/analytics-functions/customerLogin.js";export{anl_customerLogout}from"./analytics/analytics-functions/customerLogout.js";export{anl_customerVisit}from"./analytics/analytics-functions/customerVisit.js";export{anl_pageView}from"./analytics/analytics-functions/pageView.js";export{anl_productView}from"./analytics/analytics-functions/productView.js";export{anl_removeFromCart}from"./analytics/analytics-functions/removeFromCart.js";export{anl_search}from"./analytics/analytics-functions/search.js";export{anl_viewBrand}from"./analytics/analytics-functions/viewBrand.js";export{anl_viewCart}from"./analytics/analytics-functions/viewCart.js";export{anl_viewCategory}from"./analytics/analytics-functions/viewCategory.js";export{anl_viewListing}from"./analytics/analytics-functions/viewListing.js";export{anl_viewSearchResults}from"./analytics/analytics-functions/viewSearchResults.js";export{anl_viewStorefrontPopup}from"./analytics/analytics-functions/viewStorefrontPopup.js";import*as t from'./ext/animejs/lib/anime.esm.js';export{t as AnimeJS};export{cloneDeep,reaction}from"./utils/helper.js";export{APIErrorCode,APIResponse}from"./packages/storefront-api-client/src/utils/api.js";
|
|
1
|
+
export{Analytics}from"./analytics/analytics.js";export{initIkasEvents}from"./analytics/events.js";export{EMPTY_STRING,NULL,UNDEFINED}from"./externals/index.js";export{apiListProductBrand}from"./functions/api/brand/index.js";export{apiListCategory}from"./functions/api/category/index.js";export{apiGetLoyaltyCustomerInfo,apiGetLoyaltyProgram,apiGetStorefrontWidgetSettings,apiListEarningMethods,apiListLoyaltyProgramPointHistory,apiListLoyaltyProgramTiers,apiListSpendingMethodsByCartId,apiRemoveLoyaltyPointsFromCart,apiUseLoyaltyPoints}from"./functions/api/loyalty/index.js";export{apiListStorefrontPopup}from"./functions/api/popup/index.js";export{apiSearchProducts}from"./functions/api/product/index.js";export{getAttributeDetailValues}from"./functions/models/attribute-detail/index.js";export{getAttributeListValues}from"./functions/models/attribute-list/index.js";export{createIkasBaseModel}from"./functions/models/base/index.js";export{getIkasBlogFormattedDate,getIkasBlogHref}from"./functions/models/blog/index.js";export{createIkasBlogCategory,getIkasBlogCategoryHref}from"./functions/models/blog/category/index.js";export{initIkasBlogCategory}from"./functions/models/blog/category/init.js";export{initIkasBlog}from"./functions/models/blog/init.js";export{getBlogCategoryListInitialData,getBlogCategoryListNextPage,getBlogCategoryListPage,getBlogCategoryListPageCount,getBlogCategoryListPrevPage,hasBlogCategoryListNextPage,hasBlogCategoryListPrevPage,isBlogCategoryListStatic}from"./functions/models/blog-category-list/index.js";export{initBlogCategoryList}from"./functions/models/blog-category-list/init.js";export{getBlogListInitialData,getBlogListNextPage,getBlogListPage,getBlogListPageCount,getBlogListPrevPage,hasBlogListNextPage,hasBlogListPrevPage,isBlogListStatic}from"./functions/models/blog-list/index.js";export{initBlogList}from"./functions/models/blog-list/init.js";export{getIkasBrandHref}from"./functions/models/brand/index.js";export{initIkasBrand}from"./functions/models/brand/init.js";export{getBrandListInitialData,getBrandListNextPage,getBrandListPage,getBrandListPageCount,getBrandListPrevPage,hasBrandListNextPage,hasBrandListPrevPage,isBrandListStatic}from"./functions/models/brand-list/index.js";export{initBrandList}from"./functions/models/brand-list/init.js";export{acceptProductOffer,isAcceptedProductOffer,rejectProductOffer}from"./functions/models/campaign-offer/index.js";export{getCategoryPath,getIkasCategoryHref}from"./functions/models/category/index.js";export{initIkasCategory}from"./functions/models/category/init.js";export{getCategoryListInitialData,getCategoryListNextPage,getCategoryListPage,getCategoryListPageCount,getCategoryListPrevPage,hasCategoryListNextPage,hasCategoryListPrevPage,isCategoryListStatic}from"./functions/models/category-list/index.js";export{initCategoryList}from"./functions/models/category-list/init.js";export{getIkasCategoryPathItemHref,getIkasCategoryPathItemSlug}from"./functions/models/category/path-item/index.js";export{initIkasCategoryPathItem}from"./functions/models/category/path-item/init.js";export{getCheckoutTotalFinalPrice,isCheckoutComplete}from"./functions/models/checkout/index.js";export{initIkasCountry}from"./functions/models/country/init.js";export{getCustomerBasicInfo,isCustomerSubscribed}from"./functions/models/customer/index.js";export{clearIkasCustomerAddressForm,getCustomerAddressText,getCustomerAddressValidationResult,getIkasCustomerAddressForm,isValidCustomerAddress}from"./functions/models/customer/address/index.js";export{getCustomerAttributeAccountPagePermission,getCustomerAttributeRegisterPageRequirement}from"./functions/models/customer/attribute/index.js";export{initIkasCustomerAttribute}from"./functions/models/customer/attribute/init.js";export{getIkasCustomerReviewFormattedDate}from"./functions/models/customer/review/index.js";export{initIkasCustomerReview}from"./functions/models/customer/review/init.js";export{getCustomerReviewListInitialData,getCustomerReviewListNextPage,getCustomerReviewListPage,getCustomerReviewListPageCount,getCustomerReviewListPrev,getProductCustomerReviews,hasCustomerReviewListNextPage,hasCustomerReviewListPrevPage}from"./functions/models/customer-review-list/index.js";export{initCustomerReviewList}from"./functions/models/customer-review-list/init.js";export{getCustomerReviewSummaryListInitialData,getCustomerReviewSummaryListNextPage,getCustomerReviewSummaryListPage,getCustomerReviewSummaryListPrev,hasCustomerReviewSummaryListNextPage,hasCustomerReviewSummaryListPrevPage}from"./functions/models/customer-review-summary-list/index.js";export{initCustomerReviewSummaryList}from"./functions/models/customer-review-summary-list/init.js";export{getIkasFilterCategoryHref,getIkasFilterCategorySlug}from"./functions/models/filter-category/index.js";export{initIkasHTMLMetaData,setHTMLMetaDataTranslations}from"./functions/models/html-meta-data/init.js";export{initThemeDatePicker,themeDatePickerGetDate,themeDatePickerGetDaysOfMonth,themeDatePickerGetDaysOfWeekShort,themeDatePickerGetFullYear,themeDatePickerGetHours,themeDatePickerGetMinutes,themeDatePickerGetMonth,themeDatePickerGetMonthList,themeDatePickerGetMonthName,themeDatePickerGetViewFullYear,themeDatePickerGetViewMonth,themeDatePickerGetWeekFirstDay,themeDatePickerOnChange,themeDatePickerOnDayChange,themeDatePickerOnHoursChange,themeDatePickerOnMinutesChange,themeDatePickerOnViewFullYearChange,themeDatePickerOnViewMonthChange,themeDatePickerSetViewNextMonth,themeDatePickerSetViewPrevMonth}from"./functions/models/ikas-theme/date-picker.js";export{createMediaSrcset,getDefaultSrc,getSrc,getThumbnailSrc}from"./functions/models/image/index.js";export{initIkasMerchantSettings}from"./functions/models/merchant-settings/init.js";export{getIkasOrderCouponAdjustment,getIkasOrderCustomerFullName,getIkasOrderDisplayedAdjustments,getIkasOrderDisplayedPackages,getIkasOrderDistinctItemCount,getIkasOrderFormattedDate,getIkasOrderFormattedOrderedAt,getIkasOrderFormattedShippingTotal,getIkasOrderFormattedTotalFinalPrice,getIkasOrderFormattedTotalPrice,getIkasOrderFormattedTotalTax,getIkasOrderGiftCardTotalPrice,getIkasOrderHref,getIkasOrderNonCouponAdjustments,getIkasOrderPackageStatusTranslation,getIkasOrderProductFiles,getIkasOrderRefundableItems,getIkasOrderRefundedItems,getIkasOrderShippingTotal,getIkasOrderTotalItemCount,getIkasOrderTotalTax,getIkasOrderUnfullfilledItems,getIkasOrderVariantNames,hasIkasOrderCustomer,hasValidIkasOrderCustomerEmail,initIkasOrder,isIkasOrderRefundable}from"./functions/models/order/index.js";export{createOrderAddress,getOrderAddressText,getOrderAddressValidationResult,isValidOrderAddress}from"./functions/models/order/address/index.js";export{getOrderAdjustmentDisplayName,getOrderAdjustmentFormattedAmount,getOrderAdjustmentIsDecrement}from"./functions/models/order/adjustment/index.js";export{getOrderGiftPackageLineFormattedPrice}from"./functions/models/order/gift-package/index.js";export{editOrderLineItem,getOrderLineItemFinalPriceWithQuantity,getOrderLineItemFormattedDiscountPrice,getOrderLineItemFormattedFinalPrice,getOrderLineItemFormattedFinalPriceWithQuantity,getOrderLineItemFormattedFinalUnitPrice,getOrderLineItemFormattedOverridenPriceWithQuantity,getOrderLineItemFormattedPrice,getOrderLineItemFormattedPriceWithQuantity,getOrderLineItemFormattedTax,getOrderLineItemFormattedUnitPrice,getOrderLineItemOverridenPriceWithQuantity,getOrderLineItemPriceWithQuantity,getOrderLineItemRefundQuantity,getOrderLineItemTax,getOrderLineItemUnitPriceText,hasOrderLineItemDiscount,setOrderLineItemRefundQuantity}from"./functions/models/order/line-item/index.js";export{downloadFile,getOrderLineItemOptionValueFormattedPrice,getOrderLineOptionFileName}from"./functions/models/order/line-item/option/value/index.js";export{getIkasOrderLineVariantHref,getIkasOrderLineVariantMainImage}from"./functions/models/order/line-item/variant/index.js";export{getIkasOrderLineBundleVariantMainImage}from"./functions/models/order/line-item/variant/bundle-product/bundle-variant/index.js";export{getIkasOrderLineVariantNameSlug,getIkasOrderLineVariantTypeSlug}from"./functions/models/order/line-item/variant/value/index.js";export{getOrderTransactionFormattedAmount,getOrderTransactionPaymentMethodTranslation}from"./functions/models/order/transaction/index.js";export{getPaymentGatewayCalculatedAdditionalPrices}from"./functions/models/payment-gateway/index.js";export{initIkasPaymentGateway}from"./functions/models/payment-gateway/init.js";export{addIkasProductToFavorites,clearIkasProductCustomerReviewForm,getBundleProductFinalPrice,getBundleProductFinalPriceWithQuantity,getBundleProductFormattedFinalPrice,getBundleProductFormattedFinalPriceWithQuantity,getBundleProductFormattedSellPrice,getBundleProductFormattedSellPriceWithQuantity,getBundleProductSellPrice,getBundleProductSellPriceWithQuantity,getBundleProductsOfVariant,getDisplayedProductGroups,getDisplayedProductVariantTypes,getGroupedAttributeValues,getIkasProductCustomerReviewForm,getMainProductVariantType,getMainProductVariantValue,getProductAvailableStockLocations,getProductCampaigns,getProductCategoryPath,getProductFirstCategory,getProductHref,getProductOptionSet,getSelectedProductVariant,getSelectedProductVariantHref,hasProductStock,hasProductValidOptionValues,hasProductVariant,initBundleProducts,initProductOnBrowser,initProductOptionSet,isAddToCartEnabled,isBundleProductQuantityEditable,isCustomerReviewEnabled,isCustomerReviewLoginRequired,isFavoriteIkasProduct,removeIkasProductFromFavorites,selectVariantValue,setBundleProductQuantity,setOptionRealPrices,setProductOfBundleProduct,shouldDisplayBundleProductPrice}from"./functions/models/product/index.js";export{getProductFromStore,initIkasProduct,initIkasProductExtraFields,productVariantStore}from"./functions/models/product/init.js";export{clearProductListFilter,clearProductListFilters,enableProductListSuggestions,getProductListCurrencyCode,getProductListCurrencySymbol,getProductListFilterCategories,getProductListInitialData,getProductListNextPage,getProductListPage,getProductListPrevPage,getProductListSortOptions,getProductListSortTypeTranslation,getProductListSuggestionHref,getSelectedFilterValues,handleFilterValueClick,handleNumberRangeOptionClick,hasProductListAppliedFilters,hasProductListFeaturedSortEnabled,hasProductListNextPage,hasProductListPrevPage,initProductList,initProductListFilterCategories,initProductListOnBrowser,isProductListDiscounted,isProductListFilterable,isProductListFiltered,isProductListLastViewed,isProductListPurchasedTogether,isProductListRecommended,isProductListRelatedProducts,isProductListSearch,isProductListStatic,isProductListViewedTogether,onFilterCategoryClick,productListToggleFilterCollapsed,searchProductList,setProductListIsFilteredForProducts,setProductListIsStaticForProducts,setProductListVisiblePage,setSortType,translateProductListSortType}from"./functions/models/product-list/index.js";export{getIkasProductAttributeProducts,getIkasProductAttributeTableValue,getIkasProductAttrributeProductIds}from"./functions/models/product/attribute-value/index.js";export{initIkasProductAttributeValue}from"./functions/models/product/attribute-value/init.js";export{applyQueryParamForFilter,clearFilter,filterParseRangeStr,filterRangeToId,filterToInput,getFilterDisplayedValues,getFilterKeyList,getFilterValueList,getIkasFilterHref,getIkasFilterThumbnailImage,initIkasProductFilter,isBoxFilter,isCustomValueFilter,isListFilter,isStockFilter,isSwatchFilter,onNumberRangeFilterChange,onNumberRangeFilterOptionClick,selectFilterValue}from"./functions/models/product/filter/index.js";export{getDisplayedOptions,hasDisplayedOptions,hasValidProductOptionSetValues,initOptionValues,initProductOptionSetValues,setChildOptions}from"./functions/models/product/option-set/index.js";export{initIkasProductOptionSet}from"./functions/models/product/option-set/init.js";export{clearValues,getDisplayedChildOptions,getProductOptionFormattedLabel,getProductOptionFormattedPrice,getTextValue,hasError,hasValidProductOptionValues,initIkasProductOptionValues,isCheckboxOption,isChecked,isChoiceOption,isChoiceOptionBoxType,isChoiceOptionSelectType,isChoiceOptionSwatchType,isColorPickerOption,isDatePickerOption,isFileOption,isImageOption,isProductOptionSelectValueSelected,isTextAreaOption,isTextOption,productOptionFileUpload,selectValue,setCheckboxValue,setTextValue,setValues}from"./functions/models/product/option-set/option/index.js";export{initIkasProductOption}from"./functions/models/product/option-set/option/init.js";export{clearProductVariantBackInStockForm,getGroupedAttributeValuesForVariant,getProductVariantAppliedCampaignAmount,getProductVariantB2bPriceRule,getProductVariantBackInStockForm,getProductVariantBundlePrice,getProductVariantCampaignOffersDiscountPercentage,getProductVariantCampaignPrice,getProductVariantDiscountAmount,getProductVariantDiscountPercentage,getProductVariantDiscountPrice,getProductVariantFinalPrice,getProductVariantFinalPriceWithCampaignOffers,getProductVariantFormattedBuyPrice,getProductVariantFormattedCampaignPrice,getProductVariantFormattedDiscountAmount,getProductVariantFormattedDiscountPrice,getProductVariantFormattedFinalPrice,getProductVariantFormattedFinalPriceWithCampaignOffers,getProductVariantFormattedSellPrice,getProductVariantFormattedSellPriceWithCampaignOffers,getProductVariantIsBackInStockCustomerLoginRequired,getProductVariantIsBackInStockEnabled,getProductVariantMainImage,getProductVariantPrice,getProductVariantSellPrice,getProductVariantSellPriceWithCampaignOffers,getProductVariantTieredDiscountProducts,getProductVariantUnitPriceText,hasBundleSettings,hasProductVariantDiscount,hasProductVariantStock,saveProductVariantBackInStockReminder}from"./functions/models/product/variant/index.js";export{initIkasProductVariant}from"./functions/models/product/variant/init.js";export{getIkasProductDiscountPercentage,getIkasProductPriceDiscountAmount,getIkasProductPriceFinalPrice,hasIkasProductPriceDiscount}from"./functions/models/product/variant/price/index.js";export{isRaffleAvailable}from"./functions/models/raffle/index.js";export{initIkasRaffle}from"./functions/models/raffle/init.js";export{initIkasState}from"./functions/models/state/init.js";export{getIkasVariantTypeSlug,isIkasVariantTypeColorSelection}from"./functions/models/variant-type/index.js";export{initIkasVariantType}from"./functions/models/variant-type/init.js";export{getIkasVariantValueSlug,getIkasVariantValueThumbnailImage,isColorVariantValue,isImageVariantValue,isTextVariantValue}from"./functions/models/variant-type/variant-value/index.js";export{FORM_ITEM_DEFAULT_VALUE,validateValue}from"./functions/models/validator/index.js";export{initAccountInfoForm,setAccountInfoFormFirstName,setAccountInfoFormIsMarketingAccepted,setAccountInfoFormLastName,setAccountInfoFormPhone,submitAccountInfoForm}from"./functions/models/validator/account-info/index.js";export{initAddressForm,setAddressFormAddressLine1,setAddressFormAddressLine2,setAddressFormCity,setAddressFormCompany,setAddressFormCountry,setAddressFormDistrict,setAddressFormFirstName,setAddressFormIdentityNumber,setAddressFormLastName,setAddressFormPhone,setAddressFormPostalCode,setAddressFormRegion,setAddressFormState,setAddressFormTaxNumber,setAddressFormTaxOffice,setAddressFormTitle,submitAddressForm}from"./functions/models/validator/address/index.js";export{initBackInStockNotificationForm,setBackInStockNotificationFormEmail,submitBackInStockNotificationForm}from"./functions/models/validator/back-in-stock-notification/index.js";export{initContactForm,setContactFormEmail,setContactFormFirstName,setContactFormLastName,setContactFormMessage,setContactFormPhone,submitContactForm}from"./functions/models/validator/contact-form/index.js";export{initCouponCodeForm,removeCouponCodeForm,setCouponCodeFormCouponCode,submitCouponCodeForm}from"./functions/models/validator/coupon-code-form/index.js";export{initCustomerReviewForm,setCustomerReviewFormComment,setCustomerReviewFormStar,setCustomerReviewFormTitle,submitCustomerReviewForm}from"./functions/models/validator/customer-review/index.js";export{initDeactivateCustomerForm,setDeactivateCustomerFormPassword,submitDeactivateCustomerForm}from"./functions/models/validator/deactivate-customer/index.js";export{initForgotPasswordForm,setForgotPasswordFormEmail,submitForgotPasswordForm}from"./functions/models/validator/forgot-password/index.js";export{initLoginForm,setLoginFormEmail,setLoginFormPassword,submitLoginForm}from"./functions/models/validator/login/index.js";export{initNewsletterSubscriptionForm,setNewsletterSubscriptionFormEmail,setNewsletterSubscriptionFormIsMarketingAccepted,submitNewsletterSubscriptionForm}from"./functions/models/validator/newsletter-subscription/index.js";export{initOrderTrackingForm,setOrderTrackingFormEmail,setOrderTrackingFormOrderNumber,submitOrderTrackingForm}from"./functions/models/validator/order-tracking/index.js";export{initRecoverPasswordForm,setRecoverPasswordFormPassword,setRecoverPasswordFormPasswordAgain,submitRecoverPasswordForm}from"./functions/models/validator/recover-password/index.js";export{initRegisterForm,setRegisterFormBooleanAttribute,setRegisterFormChoiceAttribute,setRegisterFormDateAttribute,setRegisterFormDateTimeAttribute,setRegisterFormEmail,setRegisterFormFirstName,setRegisterFormIsMarketingAccepted,setRegisterFormIsMembershipAgreementAccepted,setRegisterFormLastName,setRegisterFormMultipleChoiceAttribute,setRegisterFormNumericAttribute,setRegisterFormPassword,setRegisterFormPhone,setRegisterFormTextAttribute,submitRegisterForm}from"./functions/models/validator/register/index.js";export{initSmsLoginForm,resendSmsLoginFormCode,setSmsLoginFormCode,setSmsLoginFormEmail,setSmsLoginFormFirstName,setSmsLoginFormIsMarketingAccepted,setSmsLoginFormIsMembershipAgreementAccepted,setSmsLoginFormLastName,setSmsLoginFormPhone,submitSmsLoginForm}from"./functions/models/validator/sms-login/index.js";export{initVerifyPhoneNumberForm,resendVerifyPhoneNumberFormCode,setVerifyPhoneNumberFormCode,submitVerifyPhoneNumberForm}from"./functions/models/validator/verify-phone-number/index.js";export{collectionToArray}from"./functions/others/index.js";export{bs_searchProductById,bs_searchProductsById,initBaseStore,setLanguage,setLocalization}from"./functions/stores/base/index.js";export{addItemToCart,addSelectedtedVariantToCart,changeCartItemQuantity,changeItemQuantity,createPayWithIkasSession,findExistingCartItem,findExistingCartItemWithProduct,getAcceptedOffers,getCart,getCheckoutUrlFromCartStore,hasCart,isOrderLineItemAutoCreated,removeCart,removeCouponCode,removeGiftCardLine,removeItem,saveCouponCode,setCart,waitForCartStoreInit,windowAddToCart}from"./functions/stores/cart/index.js";export{MILES_SMILES_PAYMENT_GATEWAY_CODE,MILES_SMILES_PAYMENT_GATEWAY_ID,MILES_SMILES_PROVIDER,activateCustomer,addProductToFavorites,canCustomerCreateEmailSubscription,checkEmail,clearAccountInfoForm,clearContactForm,clearCouponCodeForm,clearCustomerSession,clearDeactivateCustomerForm,clearForgotPasswordForm,clearLoginForm,clearNewsletterSubscriptionForm,clearOrderTrackingForm,clearRecoverPasswordForm,clearRegisterForm,closeIkasStorefrontWidget,createEmailSubscription,cs_getLoyaltyCustomerInfo,cs_listEarningMethods,cs_listLoyaltyProgramPointHistory,cs_listLoyaltyProgramTiers,cs_listSpendingMethodsByCartId,cs_removeLoyaltyPointsFromCart,cs_useLoyaltyPoints,customerLogin,customerStore_onProductView,customerToAnalyticsCustomer,deactivateCustomer,deleteCustomerAddress,exportCustomerPersonalData,forgotPassword,getAccountInfoForm,getContactForm,getCouponCodeForm,getCustomerAttributes,getCustomerConsentGranted,getDeactivateCustomerForm,getDigitalProductFileDownloadUrl,getEmptyAddressForm,getFavoriteProducts,getFavoriteProductsIds,getForgotPasswordForm,getLastViewedProducts,getLoginForm,getMilesSmilesDetails,getMilesSmilesLink,getNewsletterSubscriptionForm,getOrder,getOrderByEmail,getOrderDetailsOfPage,getOrderProductFiles,getOrderRefundSettings,getOrderTrackingForm,getOrderTransactions,getOrders,getRecoverPasswordForm,getRegisterForm,getSmsLoginForm,getVerifyPhoneNumberForm,handleCustomerConsentGrant,handleMilesSmilesBind,handleSocialLogin,hasCustomer,initCustomerStore,isFavoriteProduct,isMilesSmilesTransaction,logout,milesSmilesBind,openIkasStorefrontWidget,recoverPassword,refundOrder,register,removeCustomerConsent,removeProductFromFavorites,resendCustomerActivationMail,resendCustomerPhoneVerificationCode,saveContactForm,saveCustomer,saveCustomerFormData,seedCustomerSession,sendReview,setCaptchaToken,setSavedLastViewedProductsResponse,socialLogin,socialLoginToken,unlinkMilesSmiles,validateCustomerPhoneVerificationCode,validateOTPCode,waitForCaptchaTokenInit,waitForCustomerStoreInit}from"./functions/stores/customer/index.js";export{I18n,i18n}from"./i18n/index.js";export{Router,router,withRoutePrefix}from"./router/index.js";export{baseStore}from"./stores/base/index.js";export{CART_LS_KEY,cartStore}from"./stores/cart/index.js";export{customerStore}from"./stores/customer/index.js";export{getThemeBreakpoints,getThemeColorSchemes,getThemeColors,getThemeKeyframes,getThemeSetting,getThemeSettingValue,getThemeSettings,getThemeTypography,registerThemeSettingValues}from"./theme/settings/index.js";export{DYNAMIC_STYLE_PROPERTIES,SIZE_PROPERTIES,getFormattedBorder,getFormattedBorderRadiusBottomLeftSize,getFormattedBorderRadiusBottomRightSize,getFormattedBorderRadiusSize,getFormattedBorderRadiusTopLeftSize,getFormattedBorderRadiusTopRightSize,getFormattedBorderWidthSizeSize,getFormattedBottomSize,getFormattedFontSize,getFormattedGapSize,getFormattedGridTemplateColumns,getFormattedHeightSize,getFormattedLeftSize,getFormattedLetterSpacingSize,getFormattedLineHeightSize,getFormattedMarginBottomSize,getFormattedMarginLeftSize,getFormattedMarginRightSize,getFormattedMarginTopSize,getFormattedMaxHeightSize,getFormattedMaxWidthSize,getFormattedMinHeightSize,getFormattedMinWidthSize,getFormattedPaddingBottomSize,getFormattedPaddingLeftSize,getFormattedPaddingMarginSize,getFormattedPaddingRightSize,getFormattedPaddingSize,getFormattedPaddingTopSize,getFormattedRightSize,getFormattedShadow,getFormattedSize,getFormattedStyleVariable,getFormattedTopSize,getFormattedWidthSize}from"./theme/styles/index.js";export{isBrowser,isDefined,isEmpty,isNotEmpty}from"./utils/blueprint.js";export{IkasComponentRenderer}from"./utils/component-renderer.js";export{formatCurrency}from"./utils/currency.js";export{HttpMethod,get,httpRequest,post}from"./utils/fetch.js";export{JsObject}from"./utils/object-wrapper.js";export{PayWithIkas}from"./utils/pay-with-ikas.js";export{normalizeSvg}from"./utils/svg.js";export{setAPIClientConfig}from"./packages/storefront-api/src/index.js";export{IkasStorefrontConfig,escapeForJSON,unescapeFromJSON}from"./packages/storefront-config/src/index.js";import"./packages/storefront-models/src/models/merchant-settings/index.js";export{default as IkasAPIClientConfig}from"./packages/storefront-api-client/src/config/index.js";export{anl_addToCart}from"./analytics/analytics-functions/addToCart.js";export{anl_addToWishlist}from"./analytics/analytics-functions/addToWishlist.js";export{anl_completeRegistration}from"./analytics/analytics-functions/completeRegistration.js";export{anl_contactForm}from"./analytics/analytics-functions/contactForm.js";export{anl_createEmailSubscription}from"./analytics/analytics-functions/createEmailSubscription.js";export{anl_customerLogin}from"./analytics/analytics-functions/customerLogin.js";export{anl_customerLogout}from"./analytics/analytics-functions/customerLogout.js";export{anl_customerVisit}from"./analytics/analytics-functions/customerVisit.js";export{anl_pageView}from"./analytics/analytics-functions/pageView.js";export{anl_productView}from"./analytics/analytics-functions/productView.js";export{anl_removeFromCart}from"./analytics/analytics-functions/removeFromCart.js";export{anl_search}from"./analytics/analytics-functions/search.js";export{anl_viewBrand}from"./analytics/analytics-functions/viewBrand.js";export{anl_viewCart}from"./analytics/analytics-functions/viewCart.js";export{anl_viewCategory}from"./analytics/analytics-functions/viewCategory.js";export{anl_viewListing}from"./analytics/analytics-functions/viewListing.js";export{anl_viewSearchResults}from"./analytics/analytics-functions/viewSearchResults.js";export{anl_viewStorefrontPopup}from"./analytics/analytics-functions/viewStorefrontPopup.js";import*as e from'./ext/animejs/lib/anime.esm.js';export{e as AnimeJS};export{cloneDeep,reaction}from"./utils/helper.js";export{APIErrorCode,APIResponse}from"./packages/storefront-api-client/src/utils/api.js";export{EMPTY_THEME_GLOBALS,breakpointCssToken,cssVarCamelCase,cssVarRef,isReservedVariableId,rawClassRef,resolveBreakpointMediaTokens,serializeThemeGlobals,toResolverBreakpoints}from"./packages/storefront-config/src/theme-globals.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__awaiter as r,__generator as t}from'./../../../../../ext/tslib/tslib.es6.mjs.js';import{handleAPIError as e,APIResponse as o}from"../../../../storefront-api-client/src/utils/api.js";import i from"../../../../storefront-api-client/src/utils/fetch-query.js";var s=function(s,n,a){return r(void 0,void 0,void 0,function(){var r,u,c,l;return t(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,i({operationName:"removeGiftCardFromCart",config:a,excludeFields:n,input:s})];case 1:return r=t.sent(),u=r.data,c=r.errors,[2,new o(null==u?void 0:u.removeGiftCardFromCart,c)];case 2:return l=t.sent(),[2,e(l)];case 3:return[2]}})})};export{s as removeGiftCardFromCart};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__awaiter as t,__generator as r}from'./../../../../../ext/tslib/tslib.es6.mjs.js';import{handleAPIError as e,APIResponse as n}from"../../../../storefront-api-client/src/utils/api.js";import i from"../../../../storefront-api-client/src/utils/fetch-query.js";var o=function(o,s,u){return t(void 0,void 0,void 0,function(){var t,c,l,a;return r(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,i({operationName:"unlinkExternalAccount",config:u,excludeFields:s,input:o})];case 1:return t=r.sent(),c=t.data,l=t.errors,[2,new n(null==c?void 0:c.unlinkExternalAccount,l)];case 2:return a=r.sent(),[2,e(a)];case 3:return[2]}})})};export{o as unlinkExternalAccount};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__awaiter as t,__generator as r}from'./../../../../../ext/tslib/tslib.es6.mjs.js';import{handleAPIError as e,APIResponse as n}from"../../../../storefront-api-client/src/utils/api.js";import i from"../../../../storefront-api-client/src/utils/fetch-query.js";var o=function(o,s,c){return t(void 0,void 0,void 0,function(){var t,u,a,l;return r(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,i({operationName:"getExternalAccountLink",config:c,excludeFields:s,input:o})];case 1:return t=r.sent(),u=t.data,a=t.errors,[2,new n(null==u?void 0:u.getExternalAccountLink,a)];case 2:return l=r.sent(),[2,e(l)];case 3:return[2]}})})};export{o as getExternalAccountLink};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__awaiter as r,__generator as t}from'./../../../../../ext/tslib/tslib.es6.mjs.js';import{handleAPIError as e,APIResponse as o}from"../../../../storefront-api-client/src/utils/api.js";import s from"../../../../storefront-api-client/src/utils/fetch-query.js";var i=function(i,n){return r(void 0,void 0,void 0,function(){var r,a,u,c;return t(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,s({operationName:"getLoyaltyProgram",config:n,excludeFields:i})];case 1:return r=t.sent(),a=r.data,u=r.errors,[2,new o(null==a?void 0:a.getLoyaltyProgram,u)];case 2:return c=t.sent(),[2,e(c)];case 3:return[2]}})})};export{i as getLoyaltyProgram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__awaiter as e,__generator as t}from'./../../../../../ext/tslib/tslib.es6.mjs.js';import{handleAPIError as r,APIResponse as s}from"../../../../storefront-api-client/src/utils/api.js";import i from"../../../../storefront-api-client/src/utils/fetch-query.js";var o=function(o,n){return e(void 0,void 0,void 0,function(){var e,l,a,u;return t(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,i({operationName:"getMilesSmilesDetails",config:n,excludeFields:o})];case 1:return e=t.sent(),l=e.data,a=e.errors,[2,new s(null==l?void 0:l.getMilesSmilesDetails,a)];case 2:return u=t.sent(),[2,r(u)];case 3:return[2]}})})};export{o as getMilesSmilesDetails};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var r;!function(r){r.ARGUMENT_VALIDATION_ERROR="ARGUMENT_VALIDATION_ERROR",r.UNAUTHENTICATED="UNAUTHENTICATED",r.UNAUTHORIZED="UNAUTHORIZED",r.INTERNAL_SERVER_ERROR="INTERNAL_SERVER_ERROR",r.LOGIN_REQUIRED="LOGIN_REQUIRED",r.NETWORK_ERROR="NETWORK_ERROR",r.REQUEST_CANCELLED="REQUEST_CANCELLED",r.DUPLICATE_KEY_ERROR="DUPLICATE_KEY_ERROR",r.CUSTOMER_ALREADY_SUBSCRIBED="CUSTOMER_ALREADY_SUBSCRIBED",r.UNKNOWN="UNKNOWN"}(r||(r={}));var e=function(){function e(e,o,n){this.errors=[],this.errorCodes=[];var t=[],E=[];null==o||o.forEach(function(e){var o;(null===(o=e.extensions)||void 0===o?void 0:o.code)?(t.push(e.message),E.push(e.extensions.code)):(t.push("Unknown error"),E.push(r.UNKNOWN))}),null==n||n.forEach(function(r){E.push(r)}),this.graphQLErrors=o,this.errors=t,this.errorCodes=E,this.data=e}return Object.defineProperty(e.prototype,"firstErrorMessage",{get:function(){return this.errors.length?this.errors[0]:""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isUnAuthenticated",{get:function(){return this.errorCodes.some(function(e){return e===r.UNAUTHENTICATED})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isNetworkError",{get:function(){return this.errorCodes.some(function(e){return e===r.NETWORK_ERROR})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isSuccess",{get:function(){return 0===this.errorCodes.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isCancelled",{get:function(){return this.errorCodes.some(function(e){return e===r.REQUEST_CANCELLED})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRecoverableError",{get:function(){var e=[r.UNAUTHENTICATED,r.INTERNAL_SERVER_ERROR,r.NETWORK_ERROR];return this.errorCodes.every(function(r){return e.includes(r)})},enumerable:!1,configurable:!0}),e.networkError=function(){var o=new e;return o.errors.push("Network error!"),o.errorCodes.push(r.NETWORK_ERROR),o},e.requestCancelled=function(){var o=new e;return o.errors.push("Request was cancelled"),o.errorCodes.push(r.REQUEST_CANCELLED),o},e.unknownError=function(){var o=new e;return o.errors.push("Unknown error!"),o.errorCodes.push(r.UNKNOWN),o},e.authError=function(){var o=new e;return o.errors.push("Authentication error!"),o.errorCodes.push(r.UNAUTHENTICATED),o},e.success=function(){return new e},e}();function o(r){var o,n;return console.error(r.toJSON?r.toJSON():r),"AbortError"===r.name||20===r.code||(null===(o=r.message)||void 0===o?void 0:o.includes("aborted"))?e.requestCancelled():r.networkError?e.networkError():r.graphQLErrors?new e(void 0,r.graphQLErrors):r instanceof TypeError&&(null===(n=r.message)||void 0===n?void 0:n.includes("fetch"))?e.networkError():e.unknownError()}export{r as APIErrorCode,e as APIResponse,o as handleAPIError};
|
|
1
|
+
var r;!function(r){r.ARGUMENT_VALIDATION_ERROR="ARGUMENT_VALIDATION_ERROR",r.UNAUTHENTICATED="UNAUTHENTICATED",r.UNAUTHORIZED="UNAUTHORIZED",r.INTERNAL_SERVER_ERROR="INTERNAL_SERVER_ERROR",r.LOGIN_REQUIRED="LOGIN_REQUIRED",r.NETWORK_ERROR="NETWORK_ERROR",r.REQUEST_CANCELLED="REQUEST_CANCELLED",r.DUPLICATE_KEY_ERROR="DUPLICATE_KEY_ERROR",r.CUSTOMER_ALREADY_SUBSCRIBED="CUSTOMER_ALREADY_SUBSCRIBED",r.MAX_QUANTITY_PER_CART_LIMIT_REACHED="MAX_QUANTITY_PER_CART_LIMIT_REACHED",r.UNKNOWN="UNKNOWN"}(r||(r={}));var e=function(){function e(e,o,n){this.errors=[],this.errorCodes=[];var t=[],E=[];null==o||o.forEach(function(e){var o;(null===(o=e.extensions)||void 0===o?void 0:o.code)?(t.push(e.message),E.push(e.extensions.code)):(t.push("Unknown error"),E.push(r.UNKNOWN))}),null==n||n.forEach(function(r){E.push(r)}),this.graphQLErrors=o,this.errors=t,this.errorCodes=E,this.data=e}return Object.defineProperty(e.prototype,"firstErrorMessage",{get:function(){return this.errors.length?this.errors[0]:""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isUnAuthenticated",{get:function(){return this.errorCodes.some(function(e){return e===r.UNAUTHENTICATED})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isNetworkError",{get:function(){return this.errorCodes.some(function(e){return e===r.NETWORK_ERROR})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isSuccess",{get:function(){return 0===this.errorCodes.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isCancelled",{get:function(){return this.errorCodes.some(function(e){return e===r.REQUEST_CANCELLED})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRecoverableError",{get:function(){var e=[r.UNAUTHENTICATED,r.INTERNAL_SERVER_ERROR,r.NETWORK_ERROR];return this.errorCodes.every(function(r){return e.includes(r)})},enumerable:!1,configurable:!0}),e.networkError=function(){var o=new e;return o.errors.push("Network error!"),o.errorCodes.push(r.NETWORK_ERROR),o},e.requestCancelled=function(){var o=new e;return o.errors.push("Request was cancelled"),o.errorCodes.push(r.REQUEST_CANCELLED),o},e.unknownError=function(){var o=new e;return o.errors.push("Unknown error!"),o.errorCodes.push(r.UNKNOWN),o},e.authError=function(){var o=new e;return o.errors.push("Authentication error!"),o.errorCodes.push(r.UNAUTHENTICATED),o},e.success=function(){return new e},e}();function o(r){var o,n;return console.error(r.toJSON?r.toJSON():r),"AbortError"===r.name||20===r.code||(null===(o=r.message)||void 0===o?void 0:o.includes("aborted"))?e.requestCancelled():r.networkError?e.networkError():r.graphQLErrors?new e(void 0,r.graphQLErrors):r instanceof TypeError&&(null===(n=r.message)||void 0===n?void 0:n.includes("fetch"))?e.networkError():e.unknownError()}export{r as APIErrorCode,e as APIResponse,o as handleAPIError};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as
|
|
1
|
+
import{__assign as r}from'./../../../ext/tslib/tslib.es6.mjs.js';import{EMPTY_THEME_GLOBALS as t}from"./theme-globals.js";export{EMPTY_THEME_GLOBALS,breakpointCssToken,cssVarCamelCase,cssVarRef,isReservedVariableId,rawClassRef,resolveBreakpointMediaTokens,serializeThemeGlobals,toResolverBreakpoints}from"./theme-globals.js";var e=function(){function e(){}return e.addObserver=function(r){var t=e.observers.find(function(t){return t.id===r.id});t?t.callback=r.callback:e.observers.push(r),r.callback(e)},e.init=function(r){try{var t=["themeSecret"];Object.entries(r).forEach(function(r){var n=r[0],i=r[1];t.includes(n)||(e[n]="storefrontJSScripts"===n||"highPriorityStoreFrontJSScripts"===n?null==i?void 0:i.map(function(r){return o(r)}):i)}),r.token&&(e.apiKey=r.token),this.notify()}catch(r){console.error(r)}},e.getCurrentRouting=function(){return e.routings.find(function(r){return r.id===e.storefrontRoutingId})},e.getCurrentPath=function(){var r;return(null===(r=e.getCurrentRouting())||void 0===r?void 0:r.path)||""},e.getSupportedPaths=function(){return e.routings.map(function(r){var t;return(null===(t=r.path)||void 0===t?void 0:t.split("/")[0])||""})},e.getCurrentLocale=function(){var r=e.getCurrentRouting();return(null==r?void 0:r.locale)||"en"},e.getDefaultLocale=function(){var r=e.routings.find(function(r){return"/"===r.path||!r.path});return(null==r?void 0:r.locale)||"en"},e.getIsPreview=function(){return e.isPreview},e.notify=function(){var r=this;this.observers.forEach(function(t){return t.callback(r)})},e.isCustomerReviewEnabled=function(){var r=e.customerReviewSettings;return!!r&&!r.customerPurchaseRequired},e.isCustomerReviewLoginRequired=function(){var r=e.customerReviewSettings;return!r||r.customerLoginRequired},e.isBackInStockEnabled=function(){return!!e.productBackInStockSettings},e.isCustomerLoginRequiredForBackInStock=function(){var r=e.productBackInStockSettings;return r&&r.customerLoginRequired},e.toJSON=function(){var t=r({},this);return delete t.observers,t.storefrontJSScripts=this.storefrontJSScripts.map(function(r){return n(r)}),t.highPriorityStoreFrontJSScripts=this.highPriorityStoreFrontJSScripts.map(function(r){return n(r)}),t},e.isB2BStorefront=function(){return"B2B_STOREFRONT"===e.storefrontType},e.getDefaultCurrencyCode=function(){var r;return null===(r=e.getCurrentRouting())||void 0===r?void 0:r.currencyCode},e.getDefaultCurrencySymbol=function(){var r;return null===(r=e.getCurrentRouting())||void 0===r?void 0:r.currencySymbol},e.isCaptchaRequired=function(){var r;return(null===(r=e.customerSettings)||void 0===r?void 0:r.requireCaptchaValidation)||!1},e.getPayWithIkasUrl=function(){return e.payWithIkasUrl},e.routings=[],e.paymentGateways=[],e.translations={},e.themeGlobals=t,e.storefrontJSScripts=[],e.highPriorityStoreFrontJSScripts=[],e.isEditor=!1,e.observers=[],e.isPreview=!1,e}();function n(r){return"string"!=typeof r?(console.error("escapeForJSON: Input is not a string",r),""):r.replace(/<\/script\b/gi,"<\\/script")}function o(r){return"string"!=typeof r?(console.error("unescapeFromJSON: Input is not a string",r),""):r.replace(/<\\\/script\b/gi,"</script")}export{e as IkasStorefrontConfig,n as escapeForJSON,o as unescapeFromJSON};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__assign as n}from'./../../../ext/tslib/tslib.es6.mjs.js';var e=new RegExp(["[A-Z]?[a-z]+","[0-9]*(?:1ST|2ND|3RD|(?![123])[0-9]TH)(?=\\b|[a-z_])","[0-9]*(?:1st|2nd|3rd|(?![123])[0-9]th)(?=\\b|[A-Z_])","[A-Z]+(?![a-z])","[0-9]+","[A-Z]"].join("|"),"g");function i(n){return(String(n).match(e)||[]).map(function(n,e){var i=n.toLowerCase();return 0===e?i:i.charAt(0).toUpperCase()+i.slice(1)}).join("")}var r={settings:{},colors:[],typography:[],breakpoints:[],keyframes:[],colorSchemes:{schemes:[],values:[]}},t=function(n,e){return e?"var(--".concat(i(n),", ").concat(e,")"):"var(--".concat(i(n),")")},l=function(n){return"_".concat(n)},u=function(n){return"bp(".concat(n,")")},o=function(n){return n.map(function(n){return{id:n.id,width:Number(n.width)||0}})},a=/\d*\.?\d+(?:e[+-]?\d+)?px|\d*\.?\d+(?:e[+-]?\d+)?|[()+\-*/]|\S/gi,s=function(n,e){var i=c(n,e);return i&&d(n,e,i)},d=function(n,e,i){var r=n[e.i];if("+"!==r&&"-"!==r)return i;e.i+=1;var t=c(n,e);return t&&t.isPx===i.isPx?d(n,e,{n:"+"===r?i.n+t.n:i.n-t.n,isPx:i.isPx}):null},c=function(n,e){var i=f(n,e);return i&&v(n,e,i)},v=function(n,e,i){var r=n[e.i];if("*"!==r&&"/"!==r)return i;e.i+=1;var t=f(n,e);return t?"*"===r?i.isPx&&t.isPx?null:v(n,e,{n:i.n*t.n,isPx:i.isPx||t.isPx}):t.isPx||0===t.n?null:v(n,e,{n:i.n/t.n,isPx:i.isPx}):null},f=function(n,e){var i,r=n[e.i];return"-"===r?(e.i+=1,(i=f(n,e))&&{n:-i.n,isPx:i.isPx}):"+"===r?(e.i+=1,f(n,e)):"("===r?(e.i+=1,(i=s(n,e))&&")"===n[e.i]?(e.i+=1,i):null):"object"==typeof r&&null!==r?(e.i+=1,r):null},m=function(n){var e=function(n){var e=(n.match(a)||[]).map(function(n){return/^\d*\.?\d+(?:e[+-]?\d+)?px$/i.test(n)?{n:parseFloat(n),isPx:!0}:/^\d*\.?\d+(?:e[+-]?\d+)?$/i.test(n)?{n:parseFloat(n),isPx:!1}:"()+-*/".includes(n)?n:null});return e.every(function(n){return null!==n})?e:null}(n.replace(/calc\(/gi,"("));if(!e)return null;var i={i:0},r=s(e,i);return r&&r.isPx&&i.i===e.length&&Number.isFinite(r.n)&&Math.abs(r.n)<1e8?r.n:null},p=function(n,e,i,r){if(e>=n.length||e>r)return-1;var t=n[e],l="("===t?i+1:")"===t?i-1:i;return 0===l?e:p(n,e+1,l,r)},y=function(n,e){return e.reduce(function(n,e){return n.split(u(e.id)).join("".concat(e.width,"px"))},n)},h=/^-(?:webkit|moz|ms|o)-$/i,b=/[-A-Za-z0-9_]+$/,g=function(n,e,i){var r=n.indexOf("bp(",i);if(-1===r)return n;var t=Math.max(i,r-512-5),l=n.slice(t,r+5).indexOf("calc("),u=-1===l?-1:t+l;if(-1===u||u>r)return g(n,e,r+3);var o=b.exec(n.slice(Math.max(0,u-12),u)),a=o?o[0]:"",s=h.test(a)&&!b.test(n.slice(u-a.length-1,u-a.length));if(a&&!s)return g(n,e,u+5);var d=s?u-a.length:u,c=u+4,v=p(n,c,0,c+512);if(-1===v)return g(n,e,u+5);if(v<r)return g(n,e,v+1);var f=y(n.slice(c+1,v),e),x=m(f);if(null===x)return g(n,e,u+5);var N="".concat(parseFloat(x.toFixed(4)),"px");return g(n.slice(0,d)+N+n.slice(v+1),e,d+N.length)};function x(n,e){if(!n||!n.includes("bp("))return n;var i=g(n,e,0);return i.includes("bp(")?y(i,e):i}var N=function(n){var e;if(n)return Array.isArray(n)?null===(e=n[0])||void 0===e?void 0:e.value:n},P=function(n){var e,i=n;if(!i)return null;if(i.patternValueId)return t(i.patternValueId);if(i.colorSchemeId)return t(i.colorSchemeId);if(i.keyframeValueId)return l(i.keyframeValueId);var r=i.value;return null==r?null:"object"==typeof r?"string"==typeof r.css?r.css:null!=r.value?"".concat(r.value).concat(null!==(e=r.unit)&&void 0!==e?e:""):null:String(r)},S=/^__.+__$/,I=function(n){return S.test(null!=n?n:"")},A=function(n){return n.replace("_optional","").replace("_array","")},j=function(n,e){if(!n||!e)return null;var i=A(e),r=n.find(function(n){return(null==n?void 0:n.id)===i});if(!r||"enum"!==r.type||!r.enumOptions||"object"!=typeof r.enumOptions)return null;for(var t={},l=0,u=Object.entries(r.enumOptions);l<u.length;l++){var o=u[l],a=o[0],s=o[1];null!=s&&(t[a]=String(s))}return Object.keys(t).length?t:null},k=function(n,e,i){if("BOOLEAN"===n)return!!e;if("NUMBER"===n){if("number"!=typeof e&&"string"!=typeof e)return null;var r="string"==typeof e&&""===e.trim()?NaN:Number(e);return Number.isFinite(r)?r:null}if("ENUM"===n){if(!i)return null;if("string"!=typeof e&&"number"!=typeof e)return null;var t=String(e);return Object.values(i).includes(t)?t:null}return null!=e?e:null};function _(e){var u,o,a,s,d,c,v,f,m,p,y,h,b,g,x;if(!e)return r;for(var S=null===(u=e.theme)||void 0===u?void 0:u.pattern,_={},O=0,w=null!==(s=null===(a=null===(o=e.globalsBlueprint)||void 0===o?void 0:o.module)||void 0===a?void 0:a.variables)&&void 0!==s?s:[];O<w.length;O++){var V=w[O];if(!1!==V.isGlobal&&V.variableName&&(!I(V.id)&&!I(V.variableName))){var D=null!==(d=V.variableType)&&void 0!==d?d:"TEXT",E="ENUM"===D?j(e.types,V.typeId):null;_[V.variableName]=n({name:V.variableName,displayName:null!==(c=V.displayName)&&void 0!==c?c:V.variableName,type:D,value:k(D,V.defaultValue,E)},"ENUM"===D?n(n({},V.typeId?{enumTypeId:A(V.typeId)}:{}),{options:null!=E?E:{}}):{})}}var M=(null!==(v=null==S?void 0:S.values)&&void 0!==v?v:[]).map(function(n){var e,i;return{id:n.id,name:null!==(e=n.name)&&void 0!==e?e:n.id,resolved:P(N(null===(i=n.style)||void 0===i?void 0:i.value)),cssVar:t(n.id)}}),F=function(n){return(null!=n?n:[]).map(function(n){return{property:n.property,value:P(N(n.value))}}).filter(function(n){return null!=n.value})},T=(null!==(f=null==S?void 0:S.elements)&&void 0!==f?f:[]).map(function(n){for(var e,r={},t=0,u=F(n.styles);t<u.length;t++){var o=u[t],a=o.property,s=o.value;r[i(a)]=s}return{id:n.id,name:null!==(e=n.name)&&void 0!==e?e:n.id,resolved:r,className:l(n.id),isDefault:!!n.isDefault}}),z=(null!==(p=null===(m=e.theme)||void 0===m?void 0:m.breakpoints)&&void 0!==p?p:[]).map(function(n){var e,i;return{id:n.id,name:null!==(e=n.name)&&void 0!==e?e:n.id,width:null!==(i=n.width)&&void 0!==i?i:0}}),U=(null!==(h=null===(y=e.theme)||void 0===y?void 0:y.keyframes)&&void 0!==h?h:[]).map(function(n){var e,i,r;return{id:n.id,name:null!==(e=n.name)&&void 0!==e?e:n.id,type:null!==(i=n.type)&&void 0!==i?i:"keyframe",ref:l(n.id),settings:F(n.styles),points:(null!==(r=n.points)&&void 0!==r?r:[]).map(function(n){return{point:n.point,styles:F(n.styles)}})}}),Z=(null!==(b=null==S?void 0:S.colorSchemes)&&void 0!==b?b:[]).map(function(n){var e;return{id:n.id,name:null!==(e=n.name)&&void 0!==e?e:n.id}}),$=null!==(g=null==S?void 0:S.colorSchemes)&&void 0!==g?g:[],B=null!==(x=null==S?void 0:S.colorSchemeValues)&&void 0!==x?x:[],R=B.map(function(n){for(var e,i,r,u,o=function(n){var e,i;return null!==(i=null===(e=B.find(function(e){return e.isDefault&&(n?e.designAssetId===n:!e.designAssetId)}))||void 0===e?void 0:e.colors)&&void 0!==i?i:[]}(n.designAssetId),a={},s=function(l){var u=null===(e=n.colors)||void 0===e?void 0:e.find(function(n){return n.colorSchemeId===l.id}),s=u?void 0:o.find(function(n){return n.colorSchemeId===l.id});a[l.id]={resolved:null!==(r=P(null!==(i=null==u?void 0:u.style)&&void 0!==i?i:null==s?void 0:s.style))&&void 0!==r?r:"#ffffff",cssVar:t(l.id)}},d=0,c=$;d<c.length;d++){s(c[d])}return{id:n.id,name:null!==(u=n.name)&&void 0!==u?u:n.id,isDefault:!!n.isDefault,className:l(n.id),colorsByScheme:a}});return{settings:_,colors:M,typography:T,breakpoints:z,keyframes:U,colorSchemes:{schemes:Z,values:R}}}export{r as EMPTY_THEME_GLOBALS,u as breakpointCssToken,i as cssVarCamelCase,t as cssVarRef,I as isReservedVariableId,l as rawClassRef,x as resolveBreakpointMediaTokens,_ as serializeThemeGlobals,o as toResolverBreakpoints};
|
package/dist/router/index.d.ts
CHANGED
|
@@ -181,4 +181,32 @@ export declare class Router {
|
|
|
181
181
|
private static ensurePathPrefix;
|
|
182
182
|
}
|
|
183
183
|
export declare const router: Router;
|
|
184
|
+
/**
|
|
185
|
+
* Put the visitor's storefront routing in front of a path you wrote yourself.
|
|
186
|
+
*
|
|
187
|
+
* Entity links (`getProductHref`, `getIkasOrderHref`, …) and LINK props already carry the prefix.
|
|
188
|
+
* A literal path in your own markup does not: `href="/cart"` sends a visitor browsing `/en` to the
|
|
189
|
+
* default language. Wrap it, and a store with no extra routings gets the path back unchanged.
|
|
190
|
+
*
|
|
191
|
+
* Idempotent — a path that already starts with a supported routing segment is returned as-is.
|
|
192
|
+
* Anything that is not a path on this storefront — an absolute URL, `mailto:`, `tel:` — is returned
|
|
193
|
+
* untouched, so a merchant-authored prop can be wrapped without checking it first.
|
|
194
|
+
*
|
|
195
|
+
* @ai-category Navigation
|
|
196
|
+
* @ai-related navigate, navigateToPage
|
|
197
|
+
*
|
|
198
|
+
* @param path - A path on this storefront, starting with `/`
|
|
199
|
+
* @returns The path under the current routing (e.g. `/cart` → `/en/cart`)
|
|
200
|
+
*
|
|
201
|
+
* @example
|
|
202
|
+
* ```tsx
|
|
203
|
+
* import { Router, withRoutePrefix } from "@ikas/bp-storefront";
|
|
204
|
+
*
|
|
205
|
+
* // Correct href for crawlers, middle-click and open-in-new-tab...
|
|
206
|
+
* <a href={withRoutePrefix("/cart")} onClick={e => {
|
|
207
|
+
* e.preventDefault();
|
|
208
|
+
* Router.navigateToPage("CART"); // ...and this prefixes on its own.
|
|
209
|
+
* }}>Cart</a>
|
|
210
|
+
* ```
|
|
211
|
+
*/
|
|
184
212
|
export declare function withRoutePrefix(path: string): string;
|
package/dist/router/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{IkasStorefrontConfig as e}from"../packages/storefront-config/src/index.js";import{getCheckoutUrlFromCartStore as t}from"../functions/stores/cart/index.js";import{cartStore as a}from"../stores/cart/index.js";var r=function(){function r(){}return r.initialize=function(e,t){var a=this;this.window=t||window,this.currentPath=void 0!==this.window?this.window.location.pathname:"/",void 0!==this.window&&(r.pageParams=e,this.window.addEventListener("popstate",r.handlePopState),r.interceptAnchorClicks(),this.window.addEventListener("pageshow",function(e){return a.isFromBFCache=e.persisted}))},r.navigate=function(t,a,n){if(void 0===a&&(a=!1),void 0===n&&(n=!1),void 0!==this.window){var o=r.ensurePathPrefix(t);e.getIsPreview()||(a?this.window.history.replaceState({},"",o):n?this.window.open(o,"_blank"):this.window.location.href=o),r.handleRouteChange(o)}},r.navigateToPage=function(e,n,i,c,s){void 0===c&&(c=!1),void 0===s&&(s=!1);var u=Object.entries(i||{}).map(function(e){var t=e[0],a=e[1];return"".concat(t,"=").concat(encodeURIComponent(a))}).join("&"),h="";switch(e){case"INDEX":h="/";break;case"ACCOUNT":h="/account";break;case"ACTIVATE_CUSTOMER":h="/account/activate";break;case"ADDRESSES":h="/account/addresses";break;case"FAVORITE_PRODUCTS":h="/account/favorite-products";break;case"FORGOT_PASSWORD":h="/account/forgot-password";break;case"LOGIN":h="/account/login";break;case"RAFFLE_ACCOUNT":h="/account/raffles";break;case"RECOVER_PASSWORD":h="/account/recover-password";break;case"REGISTER":h="/account/register";break;case"ORDERS":h="/account/orders";break;case"ORDER_DETAIL":h="/account/orders/".concat(n);break;case"BLOG_INDEX":h="/blog";break;case"BLOG":case"BLOG_CATEGORY":h="/blog/".concat(n);break;case"CART":h="/cart";break;case"CHECKOUT":h=t(a);break;case"CUSTOM":h="/pages/".concat(n);break;case"RAFFLE":h="/raffle";break;case"RAFFLE_DETAIL":h="/raffle/".concat(n);break;case"SEARCH":h="/search";break;case"NOT_FOUND":h="/404"}u&&(h+="?".concat(u)),r.navigate(o(h),c,s)},r.addObserver=function(e){r.observers.push(e)},r.removeObserver=function(e){r.observers=r.observers.filter(function(t){return t!==e})},r.goBack=function(){this.window.history.back()},r.getCurrentPath=function(){return r.currentPath},r.getPageParams=function(){return r.pageParams},r.router_getQueryParams=function(){if(void 0===this.window)return{};var e={};return new URLSearchParams(this.window.location.search).forEach(function(t,a){e[a]=t}),e},r.handleRouteChange=function(e){r.currentPath=e,r.notifyObservers()},r.handlePopState=function(){void 0!==this.window&&r.handleRouteChange(this.window.location.pathname)},r.interceptAnchorClicks=function(){void 0!==this.window&&this.window.addEventListener("click",function(e){var t=e.target.closest("a");if(t&&"A"===t.tagName&&t.getAttribute("href")){var a=t.getAttribute("href");if(e.metaKey||e.ctrlKey)return;if(/^(mailto|tel|sms|javascript):/i.test(a))return;e.preventDefault();var n="_blank"===t.getAttribute("target");r.navigate(a,!1,n)}})},r.notifyObservers=function(){r.observers.forEach(function(e){return e(r.currentPath)})},r.ensurePathPrefix=function(e){return e.startsWith("http")||e.startsWith("/")?e:"/".concat(e)},r.currentPath="undefined"!=typeof window?window.location.pathname:"/",r.observers=[],r.pageParams={},r.isFromBFCache=!1,r}(),n=r;function o(t){var a=e.getCurrentPath(),r=t.split("/").filter(function(e){return""!==e})[0];return r&&e.getSupportedPaths().includes(r)?t:"".concat(a?"/".concat(a):"").concat(t).replace("//","/")}export{r as Router,n as router,o as withRoutePrefix};
|
|
1
|
+
import{IkasStorefrontConfig as e}from"../packages/storefront-config/src/index.js";import{getCheckoutUrlFromCartStore as t}from"../functions/stores/cart/index.js";import{cartStore as a}from"../stores/cart/index.js";var r=function(){function r(){}return r.initialize=function(e,t){var a=this;this.window=t||window,this.currentPath=void 0!==this.window?this.window.location.pathname:"/",void 0!==this.window&&(r.pageParams=e,this.window.addEventListener("popstate",r.handlePopState),r.interceptAnchorClicks(),this.window.addEventListener("pageshow",function(e){return a.isFromBFCache=e.persisted}))},r.navigate=function(t,a,n){if(void 0===a&&(a=!1),void 0===n&&(n=!1),void 0!==this.window){var o=r.ensurePathPrefix(t);e.getIsPreview()||(a?this.window.history.replaceState({},"",o):n?this.window.open(o,"_blank"):this.window.location.href=o),r.handleRouteChange(o)}},r.navigateToPage=function(e,n,i,c,s){void 0===c&&(c=!1),void 0===s&&(s=!1);var u=Object.entries(i||{}).map(function(e){var t=e[0],a=e[1];return"".concat(t,"=").concat(encodeURIComponent(a))}).join("&"),h="";switch(e){case"INDEX":h="/";break;case"ACCOUNT":h="/account";break;case"ACTIVATE_CUSTOMER":h="/account/activate";break;case"ADDRESSES":h="/account/addresses";break;case"FAVORITE_PRODUCTS":h="/account/favorite-products";break;case"FORGOT_PASSWORD":h="/account/forgot-password";break;case"LOGIN":h="/account/login";break;case"RAFFLE_ACCOUNT":h="/account/raffles";break;case"RECOVER_PASSWORD":h="/account/recover-password";break;case"REGISTER":h="/account/register";break;case"ORDERS":h="/account/orders";break;case"ORDER_DETAIL":h="/account/orders/".concat(n);break;case"BLOG_INDEX":h="/blog";break;case"BLOG":case"BLOG_CATEGORY":h="/blog/".concat(n);break;case"CART":h="/cart";break;case"CHECKOUT":h=t(a);break;case"CUSTOM":h="/pages/".concat(n);break;case"RAFFLE":h="/raffle";break;case"RAFFLE_DETAIL":h="/raffle/".concat(n);break;case"SEARCH":h="/search";break;case"NOT_FOUND":h="/404"}u&&(h+="?".concat(u)),r.navigate(o(h),c,s)},r.addObserver=function(e){r.observers.push(e)},r.removeObserver=function(e){r.observers=r.observers.filter(function(t){return t!==e})},r.goBack=function(){this.window.history.back()},r.getCurrentPath=function(){return r.currentPath},r.getPageParams=function(){return r.pageParams},r.router_getQueryParams=function(){if(void 0===this.window)return{};var e={};return new URLSearchParams(this.window.location.search).forEach(function(t,a){e[a]=t}),e},r.handleRouteChange=function(e){r.currentPath=e,r.notifyObservers()},r.handlePopState=function(){void 0!==this.window&&r.handleRouteChange(this.window.location.pathname)},r.interceptAnchorClicks=function(){void 0!==this.window&&this.window.addEventListener("click",function(e){var t=e.target.closest("a");if(t&&"A"===t.tagName&&t.getAttribute("href")){var a=t.getAttribute("href");if(e.metaKey||e.ctrlKey)return;if(/^(mailto|tel|sms|javascript):/i.test(a))return;e.preventDefault();var n="_blank"===t.getAttribute("target");r.navigate(a,!1,n)}})},r.notifyObservers=function(){r.observers.forEach(function(e){return e(r.currentPath)})},r.ensurePathPrefix=function(e){return e.startsWith("http")||e.startsWith("/")?e:"/".concat(e)},r.currentPath="undefined"!=typeof window?window.location.pathname:"/",r.observers=[],r.pageParams={},r.isFromBFCache=!1,r}(),n=r;function o(t){if(/^[a-z][a-z\d+.-]*:/i.test(t)||t.startsWith("//"))return t;var a=e.getCurrentPath(),r=t.split("/").filter(function(e){return""!==e})[0];return r&&e.getSupportedPaths().includes(r)?t:"".concat(a?"/".concat(a):"").concat(t).replace("//","/")}export{r as Router,n as router,o as withRoutePrefix};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { APIResponse, ConfigType } from "../../../../storefront-api-client/src";
|
|
2
|
+
import { CartV2 } from "../types";
|
|
3
|
+
export declare const removeGiftCardFromCart: (input: RemoveGiftCardFromCartQueryParams, excludeFields?: string[], config?: ConfigType) => Promise<APIResponse<CartV2> | APIResponse<undefined>>;
|
|
4
|
+
export type RemoveGiftCardFromCartQueryParams = {
|
|
5
|
+
cartId: string;
|
|
6
|
+
giftCardId?: string | null;
|
|
7
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ConfigType, APIResponse } from "../../../../storefront-api-client/src";
|
|
2
|
+
import { CustomerExternalAccountLinkProviderEnum } from "../types";
|
|
3
|
+
export declare const unlinkExternalAccount: (input: UnlinkExternalAccountQueryParams, excludeFields?: string[], config?: ConfigType) => Promise<APIResponse<boolean> | APIResponse<undefined>>;
|
|
4
|
+
export type UnlinkExternalAccountQueryParams = {
|
|
5
|
+
provider: CustomerExternalAccountLinkProviderEnum;
|
|
6
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ConfigType, APIResponse } from "../../../../storefront-api-client/src";
|
|
2
|
+
import { CustomerExternalAccountLinkProviderEnum, ExternalAccountLink } from "../types";
|
|
3
|
+
export declare const getExternalAccountLink: (input: GetExternalAccountLinkQueryParams, excludeFields?: string[], config?: ConfigType) => Promise<APIResponse<ExternalAccountLink> | APIResponse<undefined>>;
|
|
4
|
+
export type GetExternalAccountLinkQueryParams = {
|
|
5
|
+
provider: CustomerExternalAccountLinkProviderEnum;
|
|
6
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { APIResponse, ConfigType } from "../../../../storefront-api-client/src";
|
|
2
|
+
import { LoyaltyProgram } from "../types";
|
|
3
|
+
export declare const getLoyaltyProgram: (excludeFields?: string[], config?: ConfigType) => Promise<APIResponse<LoyaltyProgram> | APIResponse<undefined>>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ConfigType, APIResponse } from "../../../../storefront-api-client/src";
|
|
2
|
+
import { MilesSmilesDetailsResponse } from "../types";
|
|
3
|
+
export declare const getMilesSmilesDetails: (excludeFields?: string[], config?: ConfigType) => Promise<APIResponse<MilesSmilesDetailsResponse> | APIResponse<undefined>>;
|
|
@@ -30,6 +30,7 @@ export type CustomerAttributePermissionEnum = "CustomerAttributePermissionEnum"
|
|
|
30
30
|
export type CustomerAttributeRegisterPageRequirementEnum = "CustomerAttributeRegisterPageRequirementEnum" | "INVISIBLE" | "MANDATORY" | "OPTIONAL";
|
|
31
31
|
export type CustomerAttributeTypeEnum = "CustomerAttributeTypeEnum" | "BOOLEAN" | "CHOICE" | "DATE" | "DATETIME" | "MULTIPLE_CHOICE" | "NUMERIC" | "TEXT";
|
|
32
32
|
export type CustomerEmailSubscriptionStatusesEnum = "CustomerEmailSubscriptionStatusesEnum" | "NOT_SUBSCRIBED" | "PENDING_CONFIRMATION" | "SUBSCRIBED";
|
|
33
|
+
export type CustomerExternalAccountLinkProviderEnum = "CustomerExternalAccountLinkProviderEnum" | "miles_smiles";
|
|
33
34
|
export type CustomerGenderTypeEnum = "CustomerGenderTypeEnum" | "FEMALE" | "MALE" | "OTHER";
|
|
34
35
|
export type CustomerPriceListRuleFilterTypeEnum = "CustomerPriceListRuleFilterTypeEnum" | "CATEGORY" | "PRODUCT" | "PRODUCT_BRAND" | "PRODUCT_TAG";
|
|
35
36
|
export type CustomerPriceListRuleValueTypeEnum = "CustomerPriceListRuleValueTypeEnum" | "DISCOUNT_AMOUNT" | "DISCOUNT_RATE" | "FIXED_PRICE";
|
|
@@ -49,15 +50,15 @@ export type LoyaltyProgramFilterTypeEnum = "LoyaltyProgramFilterTypeEnum" | "CAT
|
|
|
49
50
|
export type LoyaltyProgramMethodSpendingTypeEnum = "LoyaltyProgramMethodSpendingTypeEnum" | "FIXED_AMOUNT" | "FREE_PRODUCT" | "FREE_SHIPPING" | "RATIO";
|
|
50
51
|
export type LoyaltyProgramOrderStatusToWinPointsEnum = "LoyaltyProgramOrderStatusToWinPointsEnum" | "ORDER_CREATED" | "ORDER_DELIVERED" | "PAYMENT_COMPLETED";
|
|
51
52
|
export type LoyaltyProgramPointEarningTypeEnum = "LoyaltyProgramPointEarningTypeEnum" | "DYNAMIC_ORDER_AMOUNT" | "DYNAMIC_ORDER_QUANTITY" | "STATIC";
|
|
52
|
-
export type LoyaltyProgramPointHistoryTypeEnum = "LoyaltyProgramPointHistoryTypeEnum" | "EARN" | "
|
|
53
|
+
export type LoyaltyProgramPointHistoryTypeEnum = "LoyaltyProgramPointHistoryTypeEnum" | "EARN" | "MANUAL_DEDUCT" | "MANUAL_EARN" | "REFILL" | "REFUND" | "SPEND";
|
|
53
54
|
export type MasterPassOperationTypeEnum = "MasterPassOperationTypeEnum" | "CHECK_MASTER_PASS_USER" | "DELETE_CARD" | "DIRECT_PURCHASE" | "FORGOT_PASSWORD" | "LIST_CARDS" | "PURCHASE" | "REGISTER_CARD";
|
|
54
55
|
export type MerchantSettingsAddressTypeEnum = "MerchantSettingsAddressTypeEnum" | "CORPORATE" | "INDIVIDUAL";
|
|
55
56
|
export type OrderAdjustmentEnum = "OrderAdjustmentEnum" | "DECREMENT" | "INCREMENT";
|
|
56
57
|
export type OrderAmountTypeEnum = "OrderAmountTypeEnum" | "AMOUNT" | "RATIO";
|
|
57
58
|
export type OrderCancelledReasonEnum = "OrderCancelledReasonEnum" | "CUSTOMER" | "DECLINED" | "INVENTORY" | "OTHER";
|
|
58
|
-
export type OrderLineItemStatusEnum = "OrderLineItemStatusEnum" | "CANCELLED" | "CANCEL_REJECTED" | "CANCEL_REQUESTED" | "DELIVERED" | "FULFILLED" | "PLANNED" | "REFUNDED" | "
|
|
59
|
-
export type OrderPackageFulfillStatusEnum = "OrderPackageFulfillStatusEnum" | "CANCELLED" | "CANCEL_REJECTED" | "CANCEL_REQUESTED" | "DELIVERED" | "ERROR" | "FULFILLED" | "PLANNED" | "READY_FOR_PICK_UP" | "READY_FOR_SHIPMENT" | "REFUNDED" | "
|
|
60
|
-
export type OrderPackageStatusEnum = "OrderPackageStatusEnum" | "CANCELLED" | "CANCEL_REJECTED" | "CANCEL_REQUESTED" | "DELIVERED" | "FULFILLED" | "PARTIALLY_CANCELLED" | "PARTIALLY_DELIVERED" | "PARTIALLY_FULFILLED" | "PARTIALLY_READY_FOR_SHIPMENT" | "PARTIALLY_REFUNDED" | "PLANNED" | "READY_FOR_PICK_UP" | "READY_FOR_SHIPMENT" | "REFUNDED" | "
|
|
59
|
+
export type OrderLineItemStatusEnum = "OrderLineItemStatusEnum" | "CANCELLED" | "CANCEL_REJECTED" | "CANCEL_REQUESTED" | "DELIVERED" | "FULFILLED" | "PLANNED" | "REFUNDED" | "REFUND_REJECTED" | "REFUND_REQUESTED" | "REFUND_REQUEST_ACCEPTED" | "RETURN_DELIVERED" | "RETURN_IN_TRANSIT" | "RETURN_PARCEL_WAITING" | "RETURN_REJECTED" | "UNFULFILLED" | "WAITING_FOR_PACKAGING";
|
|
60
|
+
export type OrderPackageFulfillStatusEnum = "OrderPackageFulfillStatusEnum" | "CANCELLED" | "CANCEL_REJECTED" | "CANCEL_REQUESTED" | "DELIVERED" | "ERROR" | "FULFILLED" | "PLANNED" | "READY_FOR_PICK_UP" | "READY_FOR_SHIPMENT" | "REFUNDED" | "REFUND_REJECTED" | "REFUND_REQUESTED" | "REFUND_REQUEST_ACCEPTED" | "RETURN_DELIVERED" | "RETURN_IN_TRANSIT" | "RETURN_PARCEL_WAITING" | "RETURN_REJECTED" | "UNABLE_TO_DELIVER" | "WAITING_FOR_PACKAGING";
|
|
61
|
+
export type OrderPackageStatusEnum = "OrderPackageStatusEnum" | "CANCELLED" | "CANCEL_REJECTED" | "CANCEL_REQUESTED" | "DELIVERED" | "FULFILLED" | "PARTIALLY_CANCELLED" | "PARTIALLY_DELIVERED" | "PARTIALLY_FULFILLED" | "PARTIALLY_READY_FOR_SHIPMENT" | "PARTIALLY_REFUNDED" | "PLANNED" | "READY_FOR_PICK_UP" | "READY_FOR_SHIPMENT" | "REFUNDED" | "REFUND_REJECTED" | "REFUND_REQUESTED" | "REFUND_REQUEST_ACCEPTED" | "RETURN_DELIVERED" | "RETURN_IN_TRANSIT" | "RETURN_PARCEL_WAITING" | "RETURN_REJECTED" | "UNABLE_TO_DELIVER" | "UNFULFILLED" | "WAITING_FOR_PACKAGING";
|
|
61
62
|
export type OrderPaymentStatusEnum = "OrderPaymentStatusEnum" | "FAILED" | "OVER_PAID" | "PAID" | "PARTIALLY_PAID" | "REFUNDED" | "WAITING";
|
|
62
63
|
export type OrderShippingMethodEnum = "OrderShippingMethodEnum" | "CLICK_AND_COLLECT" | "DIGITAL_DELIVERY" | "NO_SHIPMENT" | "SHIPMENT";
|
|
63
64
|
export type OrderStatusEnum = "OrderStatusEnum" | "CANCELLED" | "CREATED" | "DRAFT" | "PARTIALLY_CANCELLED" | "PARTIALLY_REFUNDED" | "REFUNDED" | "REFUND_REJECTED" | "REFUND_REQUESTED" | "WAITING_UPSELL_ACTION";
|
|
@@ -982,6 +983,7 @@ export interface CustomerReviewSummaryStar {
|
|
|
982
983
|
star: number;
|
|
983
984
|
}
|
|
984
985
|
export interface CustomerSettings {
|
|
986
|
+
allowStoreCredit: boolean | null;
|
|
985
987
|
birthDateRequirement: CustomerSettingsRequirementEnum | null;
|
|
986
988
|
createdAt: any | null;
|
|
987
989
|
deleted: boolean;
|
|
@@ -1051,6 +1053,17 @@ export interface GetAvailableStockLocationAddressCountry {
|
|
|
1051
1053
|
export interface GetAvailableStockLocationsResponse {
|
|
1052
1054
|
stockLocations: GetAvailableStockLocation[];
|
|
1053
1055
|
}
|
|
1056
|
+
export interface ExternalAccountLink {
|
|
1057
|
+
externalId: string;
|
|
1058
|
+
linkedAt: any;
|
|
1059
|
+
provider: CustomerExternalAccountLinkProviderEnum;
|
|
1060
|
+
}
|
|
1061
|
+
export interface MilesSmilesDetailsResponse {
|
|
1062
|
+
availableMiles: number;
|
|
1063
|
+
firstName: string | null;
|
|
1064
|
+
lastName: string | null;
|
|
1065
|
+
memberId: string;
|
|
1066
|
+
}
|
|
1054
1067
|
export interface GetCustomerCouponResponse {
|
|
1055
1068
|
campaign: Campaign;
|
|
1056
1069
|
code: string;
|
|
@@ -1089,6 +1102,28 @@ export interface GetY {
|
|
|
1089
1102
|
discountType: CampaignGetYDiscountTypeEnum | null;
|
|
1090
1103
|
filter: CampaignFilter;
|
|
1091
1104
|
}
|
|
1105
|
+
export interface GiftCard {
|
|
1106
|
+
active: boolean;
|
|
1107
|
+
amount: number;
|
|
1108
|
+
code: string;
|
|
1109
|
+
createdAt: any | null;
|
|
1110
|
+
customerId: string | null;
|
|
1111
|
+
deleted: boolean;
|
|
1112
|
+
endDate: any | null;
|
|
1113
|
+
id: string;
|
|
1114
|
+
minimumRequiredCartAmount: number | null;
|
|
1115
|
+
salesChannels: GiftCardSalesChannel[] | null;
|
|
1116
|
+
startDate: any | null;
|
|
1117
|
+
type: GiftCardTypeEnum;
|
|
1118
|
+
updatedAt: any | null;
|
|
1119
|
+
usedAllAmount: boolean | null;
|
|
1120
|
+
usedAmount: number;
|
|
1121
|
+
}
|
|
1122
|
+
export interface GiftCardSalesChannel {
|
|
1123
|
+
salesChannelId: string;
|
|
1124
|
+
storefrontId: string | null;
|
|
1125
|
+
storefrontRoutingId: string | null;
|
|
1126
|
+
}
|
|
1092
1127
|
export interface HepsipayFrameInitResponse {
|
|
1093
1128
|
frameToken: string | null;
|
|
1094
1129
|
frameUrl: string | null;
|
|
@@ -1170,10 +1205,13 @@ export interface LocationTranslations {
|
|
|
1170
1205
|
tr: string;
|
|
1171
1206
|
}
|
|
1172
1207
|
export interface LoyaltyCustomerInfo {
|
|
1208
|
+
availablePoint: number;
|
|
1173
1209
|
cartLoyaltyLines: CartLoyaltyLine[] | null;
|
|
1210
|
+
cumulativeEarnedPoints: number;
|
|
1174
1211
|
customerTier: LoyaltyProgramTier | null;
|
|
1175
1212
|
loyaltyProgramCustomerId: string;
|
|
1176
1213
|
loyaltyProgramId: string;
|
|
1214
|
+
nextAvailableDate: any | null;
|
|
1177
1215
|
nextTierRequiredPoint: number | null;
|
|
1178
1216
|
totalPoint: number;
|
|
1179
1217
|
}
|
|
@@ -1186,13 +1224,14 @@ export interface LoyaltyProgram {
|
|
|
1186
1224
|
name: string;
|
|
1187
1225
|
orderStatusToWinPoints: LoyaltyProgramOrderStatusToWinPointsEnum;
|
|
1188
1226
|
previousOrderStartDate: any | null;
|
|
1189
|
-
refillPointsOnRefund: boolean;
|
|
1227
|
+
refillPointsOnRefund: boolean | null;
|
|
1190
1228
|
salesChannels: LoyaltyProgramSaleChannel[] | null;
|
|
1191
1229
|
spendingMethods: LoyaltyProgramSpendingMethod[] | null;
|
|
1192
1230
|
tiers: LoyaltyProgramTier[] | null;
|
|
1193
1231
|
tokenName: string | null;
|
|
1194
1232
|
updatedAt: any | null;
|
|
1195
1233
|
validityPeriod: LoyaltyProgramPeriod | null;
|
|
1234
|
+
waitingPeriodDays: number | null;
|
|
1196
1235
|
}
|
|
1197
1236
|
export interface LoyaltyProgramDiscountSettings {
|
|
1198
1237
|
discountAmount: number | null;
|
|
@@ -1214,6 +1253,9 @@ export interface LoyaltyProgramPeriod {
|
|
|
1214
1253
|
}
|
|
1215
1254
|
export interface LoyaltyProgramPointHistory {
|
|
1216
1255
|
amount: number;
|
|
1256
|
+
availableDate: any | null;
|
|
1257
|
+
baseAmount: number | null;
|
|
1258
|
+
baseQuantity: number | null;
|
|
1217
1259
|
createdAt: any | null;
|
|
1218
1260
|
customerId: string;
|
|
1219
1261
|
customerReviewId: string | null;
|
|
@@ -1226,6 +1268,8 @@ export interface LoyaltyProgramPointHistory {
|
|
|
1226
1268
|
loyaltyProgramSpendingMethodId: string | null;
|
|
1227
1269
|
orderId: string | null;
|
|
1228
1270
|
productVariantId: string | null;
|
|
1271
|
+
refundTransactionId: string | null;
|
|
1272
|
+
retroactiveCalculationId: string | null;
|
|
1229
1273
|
type: LoyaltyProgramPointHistoryTypeEnum;
|
|
1230
1274
|
updatedAt: any | null;
|
|
1231
1275
|
}
|
|
@@ -1234,6 +1278,7 @@ export interface LoyaltyProgramPointLimit {
|
|
|
1234
1278
|
minPointLimit: number | null;
|
|
1235
1279
|
}
|
|
1236
1280
|
export interface LoyaltyProgramSaleChannel {
|
|
1281
|
+
pageFilters: StorefrontPopupPageFilter[] | null;
|
|
1237
1282
|
routingIds: string[] | null;
|
|
1238
1283
|
salesChannelId: string;
|
|
1239
1284
|
storefrontId: string | null;
|
|
@@ -1261,6 +1306,8 @@ export interface LoyaltyProgramTier {
|
|
|
1261
1306
|
id: string;
|
|
1262
1307
|
isActive: boolean;
|
|
1263
1308
|
loyaltyProgramId: string;
|
|
1309
|
+
maintenanceType: LoyaltyTierMaintenanceTypeEnum | null;
|
|
1310
|
+
maintenanceTypeEffectiveAt: any | null;
|
|
1264
1311
|
name: string;
|
|
1265
1312
|
period: LoyaltyProgramPeriod | null;
|
|
1266
1313
|
pointsRequired: number | null;
|
|
@@ -1446,6 +1493,7 @@ export interface OrderGiftCardLine {
|
|
|
1446
1493
|
code: string;
|
|
1447
1494
|
giftCardId: string;
|
|
1448
1495
|
id: string;
|
|
1496
|
+
type: GiftCardTypeEnum | null;
|
|
1449
1497
|
}
|
|
1450
1498
|
export interface OrderGiftCardLineAppliedTransaction {
|
|
1451
1499
|
amount: number;
|
|
@@ -1760,6 +1808,7 @@ export interface PaymentGateway {
|
|
|
1760
1808
|
isPassive: boolean | null;
|
|
1761
1809
|
logoUrl: string | null;
|
|
1762
1810
|
masterPassClientId: string | null;
|
|
1811
|
+
milesSmilesEnabled: boolean | null;
|
|
1763
1812
|
name: string;
|
|
1764
1813
|
paymentGatewayProviderId: string | null;
|
|
1765
1814
|
paymentMethodType: PaymentMethodTypeEnum;
|
|
@@ -2494,6 +2543,10 @@ export interface StockLocationTranslation {
|
|
|
2494
2543
|
description: string | null;
|
|
2495
2544
|
locale: string;
|
|
2496
2545
|
}
|
|
2546
|
+
export interface StoreCreditBalanceResponse {
|
|
2547
|
+
amount: number;
|
|
2548
|
+
storeCredits: GiftCard[];
|
|
2549
|
+
}
|
|
2497
2550
|
export interface Storefront {
|
|
2498
2551
|
analytics4Id: string | null;
|
|
2499
2552
|
b2bSettings: StorefrontB2BSettings | null;
|
|
@@ -3106,6 +3159,7 @@ export interface CreateSaleTransactionWithCartInput {
|
|
|
3106
3159
|
cartId: string;
|
|
3107
3160
|
masterPassDetail?: CreateSaleTransactionMasterPassPaymentMethodDetail | null;
|
|
3108
3161
|
metadata?: any | null;
|
|
3162
|
+
milesSmiles?: MilesSmilesPaymentInput | null;
|
|
3109
3163
|
paymentGatewayId: string;
|
|
3110
3164
|
paymentMethodDetail?: PaymentMethodDetailInput | null;
|
|
3111
3165
|
}
|
|
@@ -3113,6 +3167,7 @@ export interface CreateSaleTransactionWithCheckoutInput {
|
|
|
3113
3167
|
checkoutId: string;
|
|
3114
3168
|
masterPassDetail?: CreateSaleTransactionMasterPassPaymentMethodDetail | null;
|
|
3115
3169
|
metadata?: any | null;
|
|
3170
|
+
milesSmiles?: MilesSmilesPaymentInput | null;
|
|
3116
3171
|
paymentGatewayId: string;
|
|
3117
3172
|
paymentMethodDetail?: PaymentMethodDetailInput | null;
|
|
3118
3173
|
}
|
|
@@ -3162,6 +3217,9 @@ export interface DateFilterInput {
|
|
|
3162
3217
|
ne?: any | null;
|
|
3163
3218
|
nin?: any[] | null;
|
|
3164
3219
|
}
|
|
3220
|
+
export interface MilesSmilesPaymentInput {
|
|
3221
|
+
miles: number;
|
|
3222
|
+
}
|
|
3165
3223
|
export interface GetCustomerCouponsInput {
|
|
3166
3224
|
customerId: string;
|
|
3167
3225
|
}
|
|
@@ -3506,6 +3564,7 @@ export interface UpdatePaypalOrderInput {
|
|
|
3506
3564
|
transactionId: string;
|
|
3507
3565
|
}
|
|
3508
3566
|
export interface LoyaltyProgramEarningMethod {
|
|
3567
|
+
activatedAt: any | null;
|
|
3509
3568
|
amountPerPointsEarned: number | null;
|
|
3510
3569
|
createdAt: any | null;
|
|
3511
3570
|
deleted: boolean;
|
|
@@ -3521,15 +3580,17 @@ export interface LoyaltyProgramEarningMethod {
|
|
|
3521
3580
|
pointsEarned: number;
|
|
3522
3581
|
productSettings: LoyaltyProgramEarningMethodProductSettings | null;
|
|
3523
3582
|
quantityPerPointsEarned: number | null;
|
|
3583
|
+
requireImageForCustomerReview: boolean | null;
|
|
3524
3584
|
segmentId: string | null;
|
|
3525
3585
|
tierIds: string[] | null;
|
|
3526
3586
|
translations: LoyaltyProgramMethodTranslation[] | null;
|
|
3527
3587
|
updatedAt: any | null;
|
|
3528
3588
|
validityPeriod: LoyaltyProgramPeriod | null;
|
|
3589
|
+
waitingPeriodDays: number | null;
|
|
3529
3590
|
}
|
|
3530
3591
|
export interface LoyaltyProgramEarningMethodOrderSettings {
|
|
3531
3592
|
maxOrderAmount: number | null;
|
|
3532
|
-
minOrderAmount: number;
|
|
3593
|
+
minOrderAmount: number | null;
|
|
3533
3594
|
productFilters: LoyaltyProgramFilter[] | null;
|
|
3534
3595
|
}
|
|
3535
3596
|
export interface LoyaltyProgramEarningMethodProductSettings {
|
|
@@ -3537,3 +3598,4 @@ export interface LoyaltyProgramEarningMethodProductSettings {
|
|
|
3537
3598
|
minProductQuantity: number | null;
|
|
3538
3599
|
productFilters: LoyaltyProgramFilter[] | null;
|
|
3539
3600
|
}
|
|
3601
|
+
export type LoyaltyTierMaintenanceTypeEnum = "LoyaltyTierMaintenanceTypeEnum" | "AUTO_MAINTENANCE" | "NO_MAINTENANCE";
|
|
@@ -5,6 +5,12 @@ export default interface API<T> {
|
|
|
5
5
|
saveBulk?: (models: T[]) => Promise<APIResponse<any>>;
|
|
6
6
|
delete?: (idList: string[]) => Promise<APIResponse<any>>;
|
|
7
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* Error codes the SDK itself distinguishes. NOT exhaustive: the APIResponse
|
|
10
|
+
* constructor copies `extensions.code` from GraphQL errors verbatim, so
|
|
11
|
+
* `errorCodes` can carry backend codes that are not listed here (e.g.
|
|
12
|
+
* VARIANT_NOT_FOUND). Never build an exhaustive switch over this enum.
|
|
13
|
+
*/
|
|
8
14
|
export declare enum APIErrorCode {
|
|
9
15
|
ARGUMENT_VALIDATION_ERROR = "ARGUMENT_VALIDATION_ERROR",
|
|
10
16
|
UNAUTHENTICATED = "UNAUTHENTICATED",
|
|
@@ -15,6 +21,7 @@ export declare enum APIErrorCode {
|
|
|
15
21
|
REQUEST_CANCELLED = "REQUEST_CANCELLED",
|
|
16
22
|
DUPLICATE_KEY_ERROR = "DUPLICATE_KEY_ERROR",
|
|
17
23
|
CUSTOMER_ALREADY_SUBSCRIBED = "CUSTOMER_ALREADY_SUBSCRIBED",
|
|
24
|
+
MAX_QUANTITY_PER_CART_LIMIT_REACHED = "MAX_QUANTITY_PER_CART_LIMIT_REACHED",
|
|
18
25
|
UNKNOWN = "UNKNOWN"
|
|
19
26
|
}
|
|
20
27
|
export declare class APIResponse<T> {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { IkasCustomerReviewSettings, IkasCustomerSettings, IkasIndexPageSeoSetting, IkasLoyaltyProgram, IkasMerchantSettings, IkasProductBackInStockSettings, IkasSalesChannelPaymentGateway, IkasStorefontMetaTemplates, IkasStorefrontB2BSettings, IkasStorefrontPopup, IkasStorefrontRouting, IkasStorefrontType, IkasThemeStockPreference } from "../../storefront-models/src";
|
|
2
|
+
import { ThemeGlobals } from "./theme-globals";
|
|
3
|
+
export * from "./theme-globals";
|
|
2
4
|
export declare class IkasStorefrontConfig {
|
|
3
5
|
static themeId?: string;
|
|
4
6
|
static apiUrl?: string;
|
|
@@ -25,8 +27,10 @@ export declare class IkasStorefrontConfig {
|
|
|
25
27
|
static universalAnalyticsId?: string;
|
|
26
28
|
static pickUpStockLocationIds?: string[] | null;
|
|
27
29
|
static tiktokPixelId?: string;
|
|
30
|
+
static openAiPixelId?: string;
|
|
28
31
|
static stockPreference?: IkasThemeStockPreference;
|
|
29
32
|
static translations: Record<string, any>;
|
|
33
|
+
static themeGlobals: ThemeGlobals;
|
|
30
34
|
static storefrontJSScripts: string[];
|
|
31
35
|
static highPriorityStoreFrontJSScripts: string[];
|
|
32
36
|
static customerReviewSettings?: IkasCustomerReviewSettings | null;
|
|
@@ -98,8 +102,10 @@ export type IkasStorefrontConfigParams = {
|
|
|
98
102
|
universalAnalyticsId?: string;
|
|
99
103
|
pickUpStockLocationIds?: string[] | null;
|
|
100
104
|
tiktokPixelId?: string;
|
|
105
|
+
openAiPixelId?: string;
|
|
101
106
|
stockPreference?: IkasThemeStockPreference;
|
|
102
107
|
translations: Record<string, any>;
|
|
108
|
+
themeGlobals: ThemeGlobals;
|
|
103
109
|
storefrontJSScripts: string[];
|
|
104
110
|
highPriorityStoreFrontJSScripts: string[];
|
|
105
111
|
customerReviewSettings?: IkasCustomerReviewSettings | null;
|