@ikas/bp-storefront 0.15.0
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/_virtual/URL-impl.js +1 -0
- package/dist/_virtual/URL.js +1 -0
- package/dist/_virtual/_commonjsHelpers.js +1 -0
- package/dist/_virtual/_nodeUtil.js +1 -0
- package/dist/_virtual/fetch-npm-node.js +1 -0
- package/dist/_virtual/index.js +1 -0
- package/dist/_virtual/index.mjs.js +1 -0
- package/dist/_virtual/isBuffer.js +1 -0
- package/dist/_virtual/public-api.js +1 -0
- package/dist/_virtual/url-state-machine.js +1 -0
- package/dist/_virtual/utils.js +1 -0
- package/dist/analytics/analytics-functions/addToCart.js +1 -0
- package/dist/analytics/analytics-functions/addToWishlist.js +1 -0
- package/dist/analytics/analytics-functions/completeRegistration.js +1 -0
- package/dist/analytics/analytics-functions/contactForm.js +1 -0
- package/dist/analytics/analytics-functions/createEmailSubscription.js +1 -0
- package/dist/analytics/analytics-functions/customerLogin.js +1 -0
- package/dist/analytics/analytics-functions/customerLogout.js +1 -0
- package/dist/analytics/analytics-functions/customerVisit.js +1 -0
- package/dist/analytics/analytics-functions/helpers.js +1 -0
- package/dist/analytics/analytics-functions/pageView.js +1 -0
- package/dist/analytics/analytics-functions/productView.js +1 -0
- package/dist/analytics/analytics-functions/removeFromCart.js +1 -0
- package/dist/analytics/analytics-functions/search.js +1 -0
- package/dist/analytics/analytics-functions/viewBrand.js +1 -0
- package/dist/analytics/analytics-functions/viewCart.js +1 -0
- package/dist/analytics/analytics-functions/viewCategory.js +1 -0
- package/dist/analytics/analytics-functions/viewListing.js +1 -0
- package/dist/analytics/analytics-functions/viewSearchResults.js +1 -0
- package/dist/analytics/analytics-functions/viewStorefrontPopup.js +1 -0
- package/dist/analytics/analytics.js +1 -0
- package/dist/analytics/events.js +1 -0
- package/dist/analytics/facebook/addToCart.js +1 -0
- package/dist/analytics/facebook/addToWishlist.js +1 -0
- package/dist/analytics/facebook/completeRegistration.js +1 -0
- package/dist/analytics/facebook/contactForm.js +1 -0
- package/dist/analytics/facebook/pageView.js +1 -0
- package/dist/analytics/facebook/productView.js +1 -0
- package/dist/analytics/facebook/search.js +1 -0
- package/dist/analytics/facebook/utils.js +1 -0
- package/dist/analytics/facebook/viewCart.js +1 -0
- package/dist/analytics/facebook/viewCategory.js +1 -0
- package/dist/analytics/google-analytics/addToCart.js +1 -0
- package/dist/analytics/google-analytics/productView.js +1 -0
- package/dist/analytics/google-analytics/removeFromCart.js +1 -0
- package/dist/analytics/google-analytics/search.js +1 -0
- package/dist/analytics/google-analytics/utils.js +1 -0
- package/dist/analytics/google-analytics/viewCart.js +1 -0
- package/dist/analytics/google-tag-manager/addToCart.js +1 -0
- package/dist/analytics/google-tag-manager/completeRegistration.js +1 -0
- package/dist/analytics/google-tag-manager/customerLogin.js +1 -0
- package/dist/analytics/google-tag-manager/customerLogout.js +1 -0
- package/dist/analytics/google-tag-manager/customerVisit.js +1 -0
- package/dist/analytics/google-tag-manager/pageView.js +1 -0
- package/dist/analytics/google-tag-manager/productView.js +1 -0
- package/dist/analytics/google-tag-manager/removeFromCart.js +1 -0
- package/dist/analytics/google-tag-manager/search.js +1 -0
- package/dist/analytics/google-tag-manager/utils.js +1 -0
- package/dist/analytics/google-tag-manager/viewCart.js +1 -0
- package/dist/analytics/google-tag-manager/viewCategory.js +1 -0
- package/dist/analytics/ikas/analytics.js +1 -0
- package/dist/analytics/tiktok/addToCart.js +1 -0
- package/dist/analytics/tiktok/addToWishlist.js +1 -0
- package/dist/analytics/tiktok/completeRegistration.js +1 -0
- package/dist/analytics/tiktok/contactForm.js +1 -0
- package/dist/analytics/tiktok/identify.js +1 -0
- package/dist/analytics/tiktok/pageView.js +1 -0
- package/dist/analytics/tiktok/productView.js +1 -0
- package/dist/analytics/tiktok/search.js +1 -0
- package/dist/analytics/tiktok/utils.js +1 -0
- package/dist/analytics/tiktok/viewCategory.js +1 -0
- package/dist/analytics/utils.js +1 -0
- package/dist/ext/animejs/lib/anime.esm.js +9 -0
- package/dist/ext/isomorphic-fetch/fetch-npm-node.js +1 -0
- package/dist/ext/lodash/_DataView.js +1 -0
- package/dist/ext/lodash/_Hash.js +1 -0
- package/dist/ext/lodash/_ListCache.js +1 -0
- package/dist/ext/lodash/_Map.js +1 -0
- package/dist/ext/lodash/_MapCache.js +1 -0
- package/dist/ext/lodash/_Promise.js +1 -0
- package/dist/ext/lodash/_Set.js +1 -0
- package/dist/ext/lodash/_SetCache.js +1 -0
- package/dist/ext/lodash/_Stack.js +1 -0
- package/dist/ext/lodash/_Symbol.js +1 -0
- package/dist/ext/lodash/_Uint8Array.js +1 -0
- package/dist/ext/lodash/_WeakMap.js +1 -0
- package/dist/ext/lodash/_apply.js +1 -0
- package/dist/ext/lodash/_arrayFilter.js +1 -0
- package/dist/ext/lodash/_arrayLikeKeys.js +1 -0
- package/dist/ext/lodash/_arrayMap.js +1 -0
- package/dist/ext/lodash/_arrayPush.js +1 -0
- package/dist/ext/lodash/_arraySome.js +1 -0
- package/dist/ext/lodash/_assocIndexOf.js +1 -0
- package/dist/ext/lodash/_baseEach.js +1 -0
- package/dist/ext/lodash/_baseFlatten.js +1 -0
- package/dist/ext/lodash/_baseFor.js +1 -0
- package/dist/ext/lodash/_baseForOwn.js +1 -0
- package/dist/ext/lodash/_baseGet.js +1 -0
- package/dist/ext/lodash/_baseGetAllKeys.js +1 -0
- package/dist/ext/lodash/_baseGetTag.js +1 -0
- package/dist/ext/lodash/_baseHasIn.js +1 -0
- package/dist/ext/lodash/_baseIsArguments.js +1 -0
- package/dist/ext/lodash/_baseIsEqual.js +1 -0
- package/dist/ext/lodash/_baseIsEqualDeep.js +1 -0
- package/dist/ext/lodash/_baseIsMatch.js +1 -0
- package/dist/ext/lodash/_baseIsNative.js +1 -0
- package/dist/ext/lodash/_baseIsTypedArray.js +1 -0
- package/dist/ext/lodash/_baseIteratee.js +1 -0
- package/dist/ext/lodash/_baseKeys.js +1 -0
- package/dist/ext/lodash/_baseMap.js +1 -0
- package/dist/ext/lodash/_baseMatches.js +1 -0
- package/dist/ext/lodash/_baseMatchesProperty.js +1 -0
- package/dist/ext/lodash/_baseOrderBy.js +1 -0
- package/dist/ext/lodash/_baseProperty.js +1 -0
- package/dist/ext/lodash/_basePropertyDeep.js +1 -0
- package/dist/ext/lodash/_baseRest.js +1 -0
- package/dist/ext/lodash/_baseSetToString.js +1 -0
- package/dist/ext/lodash/_baseSortBy.js +1 -0
- package/dist/ext/lodash/_baseTimes.js +1 -0
- package/dist/ext/lodash/_baseToString.js +1 -0
- package/dist/ext/lodash/_baseUnary.js +1 -0
- package/dist/ext/lodash/_cacheHas.js +1 -0
- package/dist/ext/lodash/_castPath.js +1 -0
- package/dist/ext/lodash/_compareAscending.js +1 -0
- package/dist/ext/lodash/_compareMultiple.js +1 -0
- package/dist/ext/lodash/_coreJsData.js +1 -0
- package/dist/ext/lodash/_createBaseEach.js +1 -0
- package/dist/ext/lodash/_createBaseFor.js +1 -0
- package/dist/ext/lodash/_defineProperty.js +1 -0
- package/dist/ext/lodash/_equalArrays.js +1 -0
- package/dist/ext/lodash/_equalByTag.js +1 -0
- package/dist/ext/lodash/_equalObjects.js +1 -0
- package/dist/ext/lodash/_freeGlobal.js +1 -0
- package/dist/ext/lodash/_getAllKeys.js +1 -0
- package/dist/ext/lodash/_getMapData.js +1 -0
- package/dist/ext/lodash/_getMatchData.js +1 -0
- package/dist/ext/lodash/_getNative.js +1 -0
- package/dist/ext/lodash/_getRawTag.js +1 -0
- package/dist/ext/lodash/_getSymbols.js +1 -0
- package/dist/ext/lodash/_getTag.js +1 -0
- package/dist/ext/lodash/_getValue.js +1 -0
- package/dist/ext/lodash/_hasPath.js +1 -0
- package/dist/ext/lodash/_hashClear.js +1 -0
- package/dist/ext/lodash/_hashDelete.js +1 -0
- package/dist/ext/lodash/_hashGet.js +1 -0
- package/dist/ext/lodash/_hashHas.js +1 -0
- package/dist/ext/lodash/_hashSet.js +1 -0
- package/dist/ext/lodash/_isFlattenable.js +1 -0
- package/dist/ext/lodash/_isIndex.js +1 -0
- package/dist/ext/lodash/_isIterateeCall.js +1 -0
- package/dist/ext/lodash/_isKey.js +1 -0
- package/dist/ext/lodash/_isKeyable.js +1 -0
- package/dist/ext/lodash/_isMasked.js +1 -0
- package/dist/ext/lodash/_isPrototype.js +1 -0
- package/dist/ext/lodash/_isStrictComparable.js +1 -0
- package/dist/ext/lodash/_listCacheClear.js +1 -0
- package/dist/ext/lodash/_listCacheDelete.js +1 -0
- package/dist/ext/lodash/_listCacheGet.js +1 -0
- package/dist/ext/lodash/_listCacheHas.js +1 -0
- package/dist/ext/lodash/_listCacheSet.js +1 -0
- package/dist/ext/lodash/_mapCacheClear.js +1 -0
- package/dist/ext/lodash/_mapCacheDelete.js +1 -0
- package/dist/ext/lodash/_mapCacheGet.js +1 -0
- package/dist/ext/lodash/_mapCacheHas.js +1 -0
- package/dist/ext/lodash/_mapCacheSet.js +1 -0
- package/dist/ext/lodash/_mapToArray.js +1 -0
- package/dist/ext/lodash/_matchesStrictComparable.js +1 -0
- package/dist/ext/lodash/_memoizeCapped.js +1 -0
- package/dist/ext/lodash/_nativeCreate.js +1 -0
- package/dist/ext/lodash/_nativeKeys.js +1 -0
- package/dist/ext/lodash/_nodeUtil.js +1 -0
- package/dist/ext/lodash/_objectToString.js +1 -0
- package/dist/ext/lodash/_overArg.js +1 -0
- package/dist/ext/lodash/_overRest.js +1 -0
- package/dist/ext/lodash/_root.js +1 -0
- package/dist/ext/lodash/_setCacheAdd.js +1 -0
- package/dist/ext/lodash/_setCacheHas.js +1 -0
- package/dist/ext/lodash/_setToArray.js +1 -0
- package/dist/ext/lodash/_setToString.js +1 -0
- package/dist/ext/lodash/_shortOut.js +1 -0
- package/dist/ext/lodash/_stackClear.js +1 -0
- package/dist/ext/lodash/_stackDelete.js +1 -0
- package/dist/ext/lodash/_stackGet.js +1 -0
- package/dist/ext/lodash/_stackHas.js +1 -0
- package/dist/ext/lodash/_stackSet.js +1 -0
- package/dist/ext/lodash/_stringToPath.js +1 -0
- package/dist/ext/lodash/_toKey.js +1 -0
- package/dist/ext/lodash/_toSource.js +1 -0
- package/dist/ext/lodash/constant.js +1 -0
- package/dist/ext/lodash/eq.js +1 -0
- package/dist/ext/lodash/get.js +1 -0
- package/dist/ext/lodash/hasIn.js +1 -0
- package/dist/ext/lodash/identity.js +1 -0
- package/dist/ext/lodash/isArguments.js +1 -0
- package/dist/ext/lodash/isArray.js +1 -0
- package/dist/ext/lodash/isArrayLike.js +1 -0
- package/dist/ext/lodash/isBuffer.js +1 -0
- package/dist/ext/lodash/isFunction.js +1 -0
- package/dist/ext/lodash/isLength.js +1 -0
- package/dist/ext/lodash/isObject.js +1 -0
- package/dist/ext/lodash/isObjectLike.js +1 -0
- package/dist/ext/lodash/isSymbol.js +1 -0
- package/dist/ext/lodash/isTypedArray.js +1 -0
- package/dist/ext/lodash/keys.js +1 -0
- package/dist/ext/lodash/memoize.js +1 -0
- package/dist/ext/lodash/property.js +1 -0
- package/dist/ext/lodash/sortBy.js +1 -0
- package/dist/ext/lodash/stubArray.js +1 -0
- package/dist/ext/lodash/stubFalse.js +1 -0
- package/dist/ext/lodash/toString.js +1 -0
- package/dist/ext/mobx/dist/mobx.esm.js +1 -0
- package/dist/ext/node-fetch/lib/index.mjs.js +1 -0
- package/dist/ext/tr46/index.js +1 -0
- package/dist/ext/tr46/lib/mappingTable.json.js +1 -0
- package/dist/ext/tslib/tslib.es6.mjs.js +1 -0
- package/dist/ext/uuid/dist/esm-browser/md5.js +1 -0
- package/dist/ext/uuid/dist/esm-browser/native.js +1 -0
- package/dist/ext/uuid/dist/esm-browser/parse.js +1 -0
- package/dist/ext/uuid/dist/esm-browser/regex.js +1 -0
- package/dist/ext/uuid/dist/esm-browser/rng.js +1 -0
- package/dist/ext/uuid/dist/esm-browser/sha1.js +1 -0
- package/dist/ext/uuid/dist/esm-browser/stringify.js +1 -0
- package/dist/ext/uuid/dist/esm-browser/v3.js +1 -0
- package/dist/ext/uuid/dist/esm-browser/v35.js +1 -0
- package/dist/ext/uuid/dist/esm-browser/v4.js +1 -0
- package/dist/ext/uuid/dist/esm-browser/v5.js +1 -0
- package/dist/ext/uuid/dist/esm-browser/validate.js +1 -0
- package/dist/ext/webidl-conversions/lib/index.js +1 -0
- package/dist/ext/whatwg-url/lib/URL-impl.js +1 -0
- package/dist/ext/whatwg-url/lib/URL.js +1 -0
- package/dist/ext/whatwg-url/lib/public-api.js +1 -0
- package/dist/ext/whatwg-url/lib/url-state-machine.js +1 -0
- package/dist/ext/whatwg-url/lib/utils.js +1 -0
- package/dist/externals/index.js +1 -0
- package/dist/functions/api/blog/index.js +1 -0
- package/dist/functions/api/brand/index.js +1 -0
- package/dist/functions/api/cart/index.js +1 -0
- package/dist/functions/api/category/index.js +1 -0
- package/dist/functions/api/checkout/index.js +1 -0
- package/dist/functions/api/customer/index.js +1 -0
- package/dist/functions/api/file/index.js +1 -0
- package/dist/functions/api/location/index.js +1 -0
- package/dist/functions/api/loyalty/index.js +1 -0
- package/dist/functions/api/popup/index.js +1 -0
- package/dist/functions/api/product/index.js +1 -0
- package/dist/functions/models/attribute-detail/index.js +1 -0
- package/dist/functions/models/attribute-list/index.js +1 -0
- package/dist/functions/models/base/index.js +1 -0
- package/dist/functions/models/blog/category/index.js +1 -0
- package/dist/functions/models/blog/category/init.js +1 -0
- package/dist/functions/models/blog/index.js +1 -0
- package/dist/functions/models/blog/init.js +1 -0
- package/dist/functions/models/blog-category-list/index.js +1 -0
- package/dist/functions/models/blog-category-list/init.js +1 -0
- package/dist/functions/models/blog-list/index.js +1 -0
- package/dist/functions/models/blog-list/init.js +1 -0
- package/dist/functions/models/brand/index.js +1 -0
- package/dist/functions/models/brand/init.js +1 -0
- package/dist/functions/models/brand-list/index.js +1 -0
- package/dist/functions/models/brand-list/init.js +1 -0
- package/dist/functions/models/campaign-offer/index.js +1 -0
- package/dist/functions/models/category/index.js +1 -0
- package/dist/functions/models/category/init.js +1 -0
- package/dist/functions/models/category/path-item/index.js +1 -0
- package/dist/functions/models/category/path-item/init.js +1 -0
- package/dist/functions/models/category-list/index.js +1 -0
- package/dist/functions/models/category-list/init.js +1 -0
- package/dist/functions/models/checkout/index.js +1 -0
- package/dist/functions/models/country/init.js +1 -0
- package/dist/functions/models/customer/address/index.js +1 -0
- package/dist/functions/models/customer/attribute/index.js +1 -0
- package/dist/functions/models/customer/attribute/init.js +1 -0
- package/dist/functions/models/customer/index.js +1 -0
- package/dist/functions/models/customer/review/index.js +1 -0
- package/dist/functions/models/customer/review/init.js +1 -0
- package/dist/functions/models/customer-review-list/index.js +1 -0
- package/dist/functions/models/customer-review-list/init.js +1 -0
- package/dist/functions/models/customer-review-summary-list/index.js +1 -0
- package/dist/functions/models/customer-review-summary-list/init.js +1 -0
- package/dist/functions/models/filter-category/index.js +1 -0
- package/dist/functions/models/html-meta-data/init.js +1 -0
- package/dist/functions/models/ikas-theme/date-picker.js +1 -0
- package/dist/functions/models/image/index.js +1 -0
- package/dist/functions/models/merchant-settings/init.js +1 -0
- package/dist/functions/models/order/address/index.js +1 -0
- package/dist/functions/models/order/adjustment/index.js +1 -0
- package/dist/functions/models/order/gift-package/index.js +1 -0
- package/dist/functions/models/order/index.js +1 -0
- package/dist/functions/models/order/line-item/index.js +1 -0
- package/dist/functions/models/order/line-item/variant/bundle-product/bundle-variant/index.js +1 -0
- package/dist/functions/models/order/line-item/variant/index.js +1 -0
- package/dist/functions/models/order/line-item/variant/value/index.js +1 -0
- package/dist/functions/models/order/transaction/index.js +1 -0
- package/dist/functions/models/payment-gateway/index.js +1 -0
- package/dist/functions/models/payment-gateway/init.js +1 -0
- package/dist/functions/models/product/attribute/init.js +1 -0
- package/dist/functions/models/product/attribute-value/index.js +1 -0
- package/dist/functions/models/product/attribute-value/init.js +1 -0
- package/dist/functions/models/product/campaign-offer/index.js +1 -0
- package/dist/functions/models/product/campaign-offer/init.js +1 -0
- package/dist/functions/models/product/campaign-offer/product/init.js +1 -0
- package/dist/functions/models/product/filter/index.js +1 -0
- package/dist/functions/models/product/group/init.js +1 -0
- package/dist/functions/models/product/image/init.js +1 -0
- package/dist/functions/models/product/index.js +1 -0
- package/dist/functions/models/product/init.js +1 -0
- package/dist/functions/models/product/option-set/index.js +1 -0
- package/dist/functions/models/product/option-set/init.js +1 -0
- package/dist/functions/models/product/option-set/option/index.js +1 -0
- package/dist/functions/models/product/option-set/option/init.js +1 -0
- package/dist/functions/models/product/variant/index.js +1 -0
- package/dist/functions/models/product/variant/init.js +1 -0
- package/dist/functions/models/product/variant/price/index.js +1 -0
- package/dist/functions/models/product/variant-type/init.js +1 -0
- package/dist/functions/models/product-list/index.js +1 -0
- package/dist/functions/models/raffle/index.js +1 -0
- package/dist/functions/models/raffle/init.js +1 -0
- package/dist/functions/models/state/init.js +1 -0
- package/dist/functions/models/validator/account-info/index.js +1 -0
- package/dist/functions/models/validator/address/index.js +1 -0
- package/dist/functions/models/validator/back-in-stock-notification/index.js +1 -0
- package/dist/functions/models/validator/contact-form/index.js +1 -0
- package/dist/functions/models/validator/coupon-code-form/index.js +1 -0
- package/dist/functions/models/validator/customer-review/index.js +1 -0
- package/dist/functions/models/validator/forgot-password/index.js +1 -0
- package/dist/functions/models/validator/index.js +1 -0
- package/dist/functions/models/validator/login/index.js +1 -0
- package/dist/functions/models/validator/newsletter-subscription/index.js +1 -0
- package/dist/functions/models/validator/order-tracking/index.js +1 -0
- package/dist/functions/models/validator/recover-password/index.js +1 -0
- package/dist/functions/models/validator/register/index.js +1 -0
- package/dist/functions/models/validator/sms-login/index.js +1 -0
- package/dist/functions/models/validator/verify-phone-number/index.js +1 -0
- package/dist/functions/models/variant-type/index.js +1 -0
- package/dist/functions/models/variant-type/init.js +1 -0
- package/dist/functions/models/variant-type/variant-value/index.js +1 -0
- package/dist/functions/others/index.js +1 -0
- package/dist/functions/stores/base/index.js +1 -0
- package/dist/functions/stores/cart/index.js +1 -0
- package/dist/functions/stores/customer/index.js +1 -0
- package/dist/i18n/index.js +1 -0
- package/dist/index.js +1 -0
- package/dist/packages/storefront-api/src/__api/mutations/activateCustomer.js +1 -0
- package/dist/packages/storefront-api/src/__api/mutations/addItemToCart.js +1 -0
- package/dist/packages/storefront-api/src/__api/mutations/createAdyenBalancePlatformPaymentSession.js +1 -0
- package/dist/packages/storefront-api/src/__api/mutations/createCustomerReview.js +1 -0
- package/dist/packages/storefront-api/src/__api/mutations/createKlarnaClientToken.js +1 -0
- package/dist/packages/storefront-api/src/__api/mutations/createOrderRefundRequest.js +1 -0
- package/dist/packages/storefront-api/src/__api/mutations/createPayWithIkasSessionUrl.js +1 -0
- package/dist/packages/storefront-api/src/__api/mutations/createPaypalOrder.js +1 -0
- package/dist/packages/storefront-api/src/__api/mutations/createSaleTransactionWithCart.js +1 -0
- package/dist/packages/storefront-api/src/__api/mutations/createStripePaymentIntent.js +1 -0
- package/dist/packages/storefront-api/src/__api/mutations/customerDeactivate.js +1 -0
- package/dist/packages/storefront-api/src/__api/mutations/customerForgotPassword.js +1 -0
- package/dist/packages/storefront-api/src/__api/mutations/customerLogin.js +1 -0
- package/dist/packages/storefront-api/src/__api/mutations/customerRecoverPassword.js +1 -0
- package/dist/packages/storefront-api/src/__api/mutations/customerRefreshToken.js +1 -0
- package/dist/packages/storefront-api/src/__api/mutations/getOrderLineFile.js +1 -0
- package/dist/packages/storefront-api/src/__api/mutations/getPaypalClientId.js +1 -0
- package/dist/packages/storefront-api/src/__api/mutations/registerCustomer.js +1 -0
- package/dist/packages/storefront-api/src/__api/mutations/removeLoyaltyPointsFromCart.js +1 -0
- package/dist/packages/storefront-api/src/__api/mutations/resendCustomerActivationMail.js +1 -0
- package/dist/packages/storefront-api/src/__api/mutations/resendCustomerPhoneVerificationCode.js +1 -0
- package/dist/packages/storefront-api/src/__api/mutations/retrieveInstallmentInfo.js +1 -0
- package/dist/packages/storefront-api/src/__api/mutations/saveCart.js +1 -0
- package/dist/packages/storefront-api/src/__api/mutations/saveCartCouponCode.js +1 -0
- package/dist/packages/storefront-api/src/__api/mutations/saveCustomerFormData.js +1 -0
- package/dist/packages/storefront-api/src/__api/mutations/saveFavoriteProduct.js +1 -0
- package/dist/packages/storefront-api/src/__api/mutations/saveLastViewedProducts.js +1 -0
- package/dist/packages/storefront-api/src/__api/mutations/saveMyCustomer.js +1 -0
- package/dist/packages/storefront-api/src/__api/mutations/saveProductBackInStockRemind.js +1 -0
- package/dist/packages/storefront-api/src/__api/mutations/sendContactFormToMerchant.js +1 -0
- package/dist/packages/storefront-api/src/__api/mutations/subscribeToMarketingNotifications.js +1 -0
- package/dist/packages/storefront-api/src/__api/mutations/updateCartCampaignOffer.js +1 -0
- package/dist/packages/storefront-api/src/__api/mutations/useLoyaltyPoints.js +1 -0
- package/dist/packages/storefront-api/src/__api/mutations/validateCustomerPhoneVerificationCode.js +1 -0
- package/dist/packages/storefront-api/src/__api/mutations/validateOTPCode.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/checkCartStocks.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/checkCustomerEmail.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/checkStocks.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/customerSocialLogin.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/exportCustomerPersonalData.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/getAvailableShippingCountries.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/getAvailableShippingZones.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/getAvailableStockLocations.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/getCartById.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/getCustomerOrders.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/getDigitalProductFileDownloadUrl.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/getLastViewedProducts.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/getLoyaltyCustomerInfo.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/getMyCountry.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/getMyCustomer.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/getOrderByEmail.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/getProductCampaigns.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/getProductFilterData.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/getProductOptionFileUrl.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/getRelatedProducts.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/getStorefrontWidgetSettings.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/getSuggestedProducts.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/getVariantStockLocations.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/isFavoriteProduct.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/listBlog.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/listBlogCategory.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/listBlogMetadata.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/listCampaignOffer.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/listCategory.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/listCheckoutSettings.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/listCity.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/listCountry.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/listCustomerAttribute.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/listCustomerReviewSummary.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/listCustomerReviews.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/listCustomerSettings.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/listDistrict.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/listEarningMethods.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/listFavoriteProducts.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/listLoyaltyProgramPointHistory.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/listLoyaltyProgramTiers.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/listOrderRefundSettings.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/listOrderTransactions.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/listPaymentGateway.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/listProductAttribute.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/listProductBackInStockRemind.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/listProductBrand.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/listProductFile.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/listProductOptionSet.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/listSpendingMethodsByCartId.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/listState.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/listStockLocation.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/listStorefrontPopup.js +1 -0
- package/dist/packages/storefront-api/src/__api/queries/searchProducts.js +1 -0
- package/dist/packages/storefront-api/src/index.js +1 -0
- package/dist/packages/storefront-api-client/ext/tslib/tslib.es6.js +15 -0
- package/dist/packages/storefront-api-client/src/config/index.js +1 -0
- package/dist/packages/storefront-api-client/src/utils/api.js +1 -0
- package/dist/packages/storefront-api-client/src/utils/fetch-query.js +1 -0
- package/dist/packages/storefront-config/src/index.js +1 -0
- package/dist/packages/storefront-models/src/models/merchant-settings/index.js +1 -0
- package/dist/router/index.js +1 -0
- package/dist/storefront/src/analytics/analytics-functions/addToCart.d.ts +2 -0
- package/dist/storefront/src/analytics/analytics-functions/addToWishlist.d.ts +1 -0
- package/dist/storefront/src/analytics/analytics-functions/completeRegistration.d.ts +2 -0
- package/dist/storefront/src/analytics/analytics-functions/contactForm.d.ts +2 -0
- package/dist/storefront/src/analytics/analytics-functions/createEmailSubscription.d.ts +1 -0
- package/dist/storefront/src/analytics/analytics-functions/customerLogin.d.ts +1 -0
- package/dist/storefront/src/analytics/analytics-functions/customerLogout.d.ts +1 -0
- package/dist/storefront/src/analytics/analytics-functions/customerVisit.d.ts +1 -0
- package/dist/storefront/src/analytics/analytics-functions/helpers.d.ts +12 -0
- package/dist/storefront/src/analytics/analytics-functions/index.d.ts +18 -0
- package/dist/storefront/src/analytics/analytics-functions/pageView.d.ts +2 -0
- package/dist/storefront/src/analytics/analytics-functions/productView.d.ts +2 -0
- package/dist/storefront/src/analytics/analytics-functions/removeFromCart.d.ts +2 -0
- package/dist/storefront/src/analytics/analytics-functions/search.d.ts +1 -0
- package/dist/storefront/src/analytics/analytics-functions/viewBrand.d.ts +2 -0
- package/dist/storefront/src/analytics/analytics-functions/viewCart.d.ts +2 -0
- package/dist/storefront/src/analytics/analytics-functions/viewCategory.d.ts +2 -0
- package/dist/storefront/src/analytics/analytics-functions/viewListing.d.ts +2 -0
- package/dist/storefront/src/analytics/analytics-functions/viewSearchResults.d.ts +2 -0
- package/dist/storefront/src/analytics/analytics-functions/viewStorefrontPopup.d.ts +2 -0
- package/dist/storefront/src/analytics/analytics.d.ts +5 -0
- package/dist/storefront/src/analytics/events.d.ts +15 -0
- package/dist/storefront/src/analytics/facebook/addToCart.d.ts +2 -0
- package/dist/storefront/src/analytics/facebook/addToWishlist.d.ts +1 -0
- package/dist/storefront/src/analytics/facebook/completeRegistration.d.ts +1 -0
- package/dist/storefront/src/analytics/facebook/contactForm.d.ts +1 -0
- package/dist/storefront/src/analytics/facebook/pageView.d.ts +1 -0
- package/dist/storefront/src/analytics/facebook/productView.d.ts +2 -0
- package/dist/storefront/src/analytics/facebook/purchase.d.ts +2 -0
- package/dist/storefront/src/analytics/facebook/search.d.ts +1 -0
- package/dist/storefront/src/analytics/facebook/utils.d.ts +3 -0
- package/dist/storefront/src/analytics/facebook/viewCart.d.ts +2 -0
- package/dist/storefront/src/analytics/facebook/viewCategory.d.ts +1 -0
- package/dist/storefront/src/analytics/google-analytics/addToCart.d.ts +2 -0
- package/dist/storefront/src/analytics/google-analytics/productView.d.ts +2 -0
- package/dist/storefront/src/analytics/google-analytics/removeFromCart.d.ts +2 -0
- package/dist/storefront/src/analytics/google-analytics/search.d.ts +1 -0
- package/dist/storefront/src/analytics/google-analytics/utils.d.ts +16 -0
- package/dist/storefront/src/analytics/google-analytics/viewCart.d.ts +2 -0
- package/dist/storefront/src/analytics/google-tag-manager/addToCart.d.ts +22 -0
- package/dist/storefront/src/analytics/google-tag-manager/completeRegistration.d.ts +5 -0
- package/dist/storefront/src/analytics/google-tag-manager/customerLogin.d.ts +4 -0
- package/dist/storefront/src/analytics/google-tag-manager/customerLogout.d.ts +3 -0
- package/dist/storefront/src/analytics/google-tag-manager/customerVisit.d.ts +4 -0
- package/dist/storefront/src/analytics/google-tag-manager/disableHTML.d.ts +1 -0
- package/dist/storefront/src/analytics/google-tag-manager/pageView.d.ts +4 -0
- package/dist/storefront/src/analytics/google-tag-manager/productView.d.ts +30 -0
- package/dist/storefront/src/analytics/google-tag-manager/removeFromCart.d.ts +22 -0
- package/dist/storefront/src/analytics/google-tag-manager/search.d.ts +4 -0
- package/dist/storefront/src/analytics/google-tag-manager/utils.d.ts +16 -0
- package/dist/storefront/src/analytics/google-tag-manager/viewCart.d.ts +7 -0
- package/dist/storefront/src/analytics/google-tag-manager/viewCategory.d.ts +14 -0
- package/dist/storefront/src/analytics/ikas/analytics.d.ts +28 -0
- package/dist/storefront/src/analytics/tiktok/addToCart.d.ts +2 -0
- package/dist/storefront/src/analytics/tiktok/addToWishlist.d.ts +1 -0
- package/dist/storefront/src/analytics/tiktok/completeRegistration.d.ts +1 -0
- package/dist/storefront/src/analytics/tiktok/contactForm.d.ts +1 -0
- package/dist/storefront/src/analytics/tiktok/identify.d.ts +1 -0
- package/dist/storefront/src/analytics/tiktok/pageView.d.ts +1 -0
- package/dist/storefront/src/analytics/tiktok/productView.d.ts +2 -0
- package/dist/storefront/src/analytics/tiktok/search.d.ts +1 -0
- package/dist/storefront/src/analytics/tiktok/utils.d.ts +2 -0
- package/dist/storefront/src/analytics/tiktok/viewCategory.d.ts +2 -0
- package/dist/storefront/src/analytics/utils.d.ts +43 -0
- package/dist/storefront/src/externals/index.d.ts +6 -0
- package/dist/storefront/src/functions/api/blog/index.d.ts +26 -0
- package/dist/storefront/src/functions/api/brand/index.d.ts +11 -0
- package/dist/storefront/src/functions/api/cart/index.d.ts +14 -0
- package/dist/storefront/src/functions/api/category/index.d.ts +10 -0
- package/dist/storefront/src/functions/api/checkout/index.d.ts +32 -0
- package/dist/storefront/src/functions/api/customer/index.d.ts +204 -0
- package/dist/storefront/src/functions/api/file/index.d.ts +10 -0
- package/dist/storefront/src/functions/api/html-meta-data/index.d.ts +4 -0
- package/dist/storefront/src/functions/api/location/index.d.ts +13 -0
- package/dist/storefront/src/functions/api/loyalty/index.d.ts +15 -0
- package/dist/storefront/src/functions/api/masterpass/index.d.ts +2 -0
- package/dist/storefront/src/functions/api/merchant/index.d.ts +4 -0
- package/dist/storefront/src/functions/api/popup/index.d.ts +4 -0
- package/dist/storefront/src/functions/api/product/index.d.ts +55 -0
- package/dist/storefront/src/functions/api/raffle/index.d.ts +15 -0
- package/dist/storefront/src/functions/api/storefront/index.d.ts +3 -0
- package/dist/storefront/src/functions/models/attribute-detail/index.d.ts +21 -0
- package/dist/storefront/src/functions/models/attribute-list/index.d.ts +21 -0
- package/dist/storefront/src/functions/models/base/index.d.ts +18 -0
- package/dist/storefront/src/functions/models/blog/category/index.d.ts +33 -0
- package/dist/storefront/src/functions/models/blog/category/init.d.ts +17 -0
- package/dist/storefront/src/functions/models/blog/index.d.ts +35 -0
- package/dist/storefront/src/functions/models/blog/init.d.ts +17 -0
- package/dist/storefront/src/functions/models/blog-category-list/index.d.ts +149 -0
- package/dist/storefront/src/functions/models/blog-category-list/init.d.ts +17 -0
- package/dist/storefront/src/functions/models/blog-list/index.d.ts +149 -0
- package/dist/storefront/src/functions/models/blog-list/init.d.ts +17 -0
- package/dist/storefront/src/functions/models/brand/index.d.ts +18 -0
- package/dist/storefront/src/functions/models/brand/init.d.ts +18 -0
- package/dist/storefront/src/functions/models/brand-list/index.d.ts +149 -0
- package/dist/storefront/src/functions/models/brand-list/init.d.ts +17 -0
- package/dist/storefront/src/functions/models/campaign-offer/index.d.ts +55 -0
- package/dist/storefront/src/functions/models/category/index.d.ts +35 -0
- package/dist/storefront/src/functions/models/category/init.d.ts +18 -0
- package/dist/storefront/src/functions/models/category/path-item/index.d.ts +35 -0
- package/dist/storefront/src/functions/models/category/path-item/init.d.ts +18 -0
- package/dist/storefront/src/functions/models/category-list/index.d.ts +149 -0
- package/dist/storefront/src/functions/models/category-list/init.d.ts +17 -0
- package/dist/storefront/src/functions/models/checkout/index.d.ts +39 -0
- package/dist/storefront/src/functions/models/country/init.d.ts +20 -0
- package/dist/storefront/src/functions/models/customer/address/index.d.ts +106 -0
- package/dist/storefront/src/functions/models/customer/attribute/index.d.ts +39 -0
- package/dist/storefront/src/functions/models/customer/attribute/init.d.ts +19 -0
- package/dist/storefront/src/functions/models/customer/index.d.ts +47 -0
- package/dist/storefront/src/functions/models/customer/review/index.d.ts +18 -0
- package/dist/storefront/src/functions/models/customer/review/init.d.ts +18 -0
- package/dist/storefront/src/functions/models/customer-review-list/index.d.ts +141 -0
- package/dist/storefront/src/functions/models/customer-review-list/init.d.ts +17 -0
- package/dist/storefront/src/functions/models/customer-review-summary-list/index.d.ts +106 -0
- package/dist/storefront/src/functions/models/customer-review-summary-list/init.d.ts +17 -0
- package/dist/storefront/src/functions/models/filter-category/index.d.ts +35 -0
- package/dist/storefront/src/functions/models/html-meta-data/init.d.ts +38 -0
- package/dist/storefront/src/functions/models/ikas-theme/date-picker.d.ts +379 -0
- package/dist/storefront/src/functions/models/image/index.d.ts +56 -0
- package/dist/storefront/src/functions/models/index.d.ts +84 -0
- package/dist/storefront/src/functions/models/merchant-settings/init.d.ts +18 -0
- package/dist/storefront/src/functions/models/order/address/index.d.ts +93 -0
- package/dist/storefront/src/functions/models/order/adjustment/index.d.ts +56 -0
- package/dist/storefront/src/functions/models/order/gift-package/index.d.ts +19 -0
- package/dist/storefront/src/functions/models/order/index.d.ts +428 -0
- package/dist/storefront/src/functions/models/order/line-item/index.d.ts +307 -0
- package/dist/storefront/src/functions/models/order/line-item/option/value/index.d.ts +37 -0
- package/dist/storefront/src/functions/models/order/line-item/variant/bundle-product/bundle-variant/index.d.ts +20 -0
- package/dist/storefront/src/functions/models/order/line-item/variant/index.d.ts +37 -0
- package/dist/storefront/src/functions/models/order/line-item/variant/value/index.d.ts +35 -0
- package/dist/storefront/src/functions/models/order/package/index.d.ts +20 -0
- package/dist/storefront/src/functions/models/order/transaction/index.d.ts +37 -0
- package/dist/storefront/src/functions/models/payment-gateway/index.d.ts +31 -0
- package/dist/storefront/src/functions/models/payment-gateway/init.d.ts +20 -0
- package/dist/storefront/src/functions/models/product/attribute/init.d.ts +17 -0
- package/dist/storefront/src/functions/models/product/attribute-value/index.d.ts +52 -0
- package/dist/storefront/src/functions/models/product/attribute-value/init.d.ts +16 -0
- package/dist/storefront/src/functions/models/product/campaign-offer/index.d.ts +18 -0
- package/dist/storefront/src/functions/models/product/campaign-offer/init.d.ts +18 -0
- package/dist/storefront/src/functions/models/product/campaign-offer/product/init.d.ts +17 -0
- package/dist/storefront/src/functions/models/product/filter/index.d.ts +344 -0
- package/dist/storefront/src/functions/models/product/filter/settings/init.d.ts +22 -0
- package/dist/storefront/src/functions/models/product/group/init.d.ts +35 -0
- package/dist/storefront/src/functions/models/product/image/init.d.ts +16 -0
- package/dist/storefront/src/functions/models/product/index.d.ts +1055 -0
- package/dist/storefront/src/functions/models/product/init.d.ts +57 -0
- package/dist/storefront/src/functions/models/product/option-set/index.d.ts +84 -0
- package/dist/storefront/src/functions/models/product/option-set/init.d.ts +19 -0
- package/dist/storefront/src/functions/models/product/option-set/option/index.d.ts +449 -0
- package/dist/storefront/src/functions/models/product/option-set/option/init.d.ts +17 -0
- package/dist/storefront/src/functions/models/product/stock-location/index.d.ts +17 -0
- package/dist/storefront/src/functions/models/product/variant/index.d.ts +868 -0
- package/dist/storefront/src/functions/models/product/variant/init.d.ts +16 -0
- package/dist/storefront/src/functions/models/product/variant/price/index.d.ts +70 -0
- package/dist/storefront/src/functions/models/product/variant-type/init.d.ts +17 -0
- package/dist/storefront/src/functions/models/product-list/index.d.ts +669 -0
- package/dist/storefront/src/functions/models/raffle/index.d.ts +19 -0
- package/dist/storefront/src/functions/models/raffle/init.d.ts +20 -0
- package/dist/storefront/src/functions/models/state/init.d.ts +20 -0
- package/dist/storefront/src/functions/models/validator/account-info/index.d.ts +87 -0
- package/dist/storefront/src/functions/models/validator/address/index.d.ts +333 -0
- package/dist/storefront/src/functions/models/validator/back-in-stock-notification/index.d.ts +54 -0
- package/dist/storefront/src/functions/models/validator/contact-form/index.d.ts +121 -0
- package/dist/storefront/src/functions/models/validator/coupon-code-form/index.d.ts +72 -0
- package/dist/storefront/src/functions/models/validator/customer-review/index.d.ts +88 -0
- package/dist/storefront/src/functions/models/validator/forgot-password/index.d.ts +53 -0
- package/dist/storefront/src/functions/models/validator/index.d.ts +54 -0
- package/dist/storefront/src/functions/models/validator/login/index.d.ts +70 -0
- package/dist/storefront/src/functions/models/validator/newsletter-subscription/index.d.ts +70 -0
- package/dist/storefront/src/functions/models/validator/order-tracking/index.d.ts +70 -0
- package/dist/storefront/src/functions/models/validator/recover-password/index.d.ts +70 -0
- package/dist/storefront/src/functions/models/validator/register/index.d.ts +297 -0
- package/dist/storefront/src/functions/models/validator/sms-login/index.d.ts +171 -0
- package/dist/storefront/src/functions/models/validator/verify-phone-number/index.d.ts +69 -0
- package/dist/storefront/src/functions/models/variant-type/index.d.ts +37 -0
- package/dist/storefront/src/functions/models/variant-type/init.d.ts +18 -0
- package/dist/storefront/src/functions/models/variant-type/variant-value/index.d.ts +91 -0
- package/dist/storefront/src/functions/others/index.d.ts +18 -0
- package/dist/storefront/src/functions/stores/base/index.d.ts +18 -0
- package/dist/storefront/src/functions/stores/cart/index.d.ts +547 -0
- package/dist/storefront/src/functions/stores/customer/index.d.ts +1919 -0
- package/dist/storefront/src/functions/stores/index.d.ts +3 -0
- package/dist/storefront/src/i18n/index.d.ts +9 -0
- package/dist/storefront/src/index.d.ts +28 -0
- package/dist/storefront/src/router/index.d.ts +161 -0
- package/dist/storefront/src/stores/base/index.d.ts +11 -0
- package/dist/storefront/src/stores/cart/index.d.ts +9 -0
- package/dist/storefront/src/stores/customer/index.d.ts +44 -0
- package/dist/storefront/src/theme/infinite-scroller/index.d.ts +3 -0
- package/dist/storefront/src/theme/overlay/index.d.ts +5 -0
- package/dist/storefront/src/theme/slider/index.d.ts +8 -0
- package/dist/storefront/src/theme/styles/index.d.ts +7 -0
- package/dist/storefront/src/utils/blueprint.d.ts +4 -0
- package/dist/storefront/src/utils/currency.d.ts +7 -0
- package/dist/storefront/src/utils/fetch.d.ts +7 -0
- package/dist/storefront/src/utils/helper.d.ts +21 -0
- package/dist/storefront/src/utils/object-wrapper.d.ts +9 -0
- package/dist/storefront-api/src/__api/mutations/activateCustomer.d.ts +6 -0
- package/dist/storefront-api/src/__api/mutations/addItemToCart.d.ts +6 -0
- package/dist/storefront-api/src/__api/mutations/createAdyenBalancePlatformPaymentSession.d.ts +6 -0
- package/dist/storefront-api/src/__api/mutations/createCustomerReview.d.ts +6 -0
- package/dist/storefront-api/src/__api/mutations/createKlarnaClientToken.d.ts +6 -0
- package/dist/storefront-api/src/__api/mutations/createOrderRefundRequest.d.ts +6 -0
- package/dist/storefront-api/src/__api/mutations/createPayWithIkasSessionUrl.d.ts +6 -0
- package/dist/storefront-api/src/__api/mutations/createPaypalOrder.d.ts +7 -0
- package/dist/storefront-api/src/__api/mutations/createSaleTransactionWithCart.d.ts +6 -0
- package/dist/storefront-api/src/__api/mutations/createStripePaymentIntent.d.ts +6 -0
- package/dist/storefront-api/src/__api/mutations/customerDeactivate.d.ts +5 -0
- package/dist/storefront-api/src/__api/mutations/customerForgotPassword.d.ts +7 -0
- package/dist/storefront-api/src/__api/mutations/customerLogin.d.ts +9 -0
- package/dist/storefront-api/src/__api/mutations/customerRecoverPassword.d.ts +8 -0
- package/dist/storefront-api/src/__api/mutations/customerRefreshToken.d.ts +6 -0
- package/dist/storefront-api/src/__api/mutations/getOrderLineFile.d.ts +6 -0
- package/dist/storefront-api/src/__api/mutations/getPaypalClientId.d.ts +6 -0
- package/dist/storefront-api/src/__api/mutations/registerCustomer.d.ts +20 -0
- package/dist/storefront-api/src/__api/mutations/removeLoyaltyPointsFromCart.d.ts +7 -0
- package/dist/storefront-api/src/__api/mutations/resendCustomerActivationMail.d.ts +6 -0
- package/dist/storefront-api/src/__api/mutations/resendCustomerPhoneVerificationCode.d.ts +6 -0
- package/dist/storefront-api/src/__api/mutations/retrieveInstallmentInfo.d.ts +6 -0
- package/dist/storefront-api/src/__api/mutations/saveCart.d.ts +6 -0
- package/dist/storefront-api/src/__api/mutations/saveCartCouponCode.d.ts +7 -0
- package/dist/storefront-api/src/__api/mutations/saveCustomerFormData.d.ts +6 -0
- package/dist/storefront-api/src/__api/mutations/saveFavoriteProduct.d.ts +8 -0
- package/dist/storefront-api/src/__api/mutations/saveLastViewedProducts.d.ts +6 -0
- package/dist/storefront-api/src/__api/mutations/saveMyCustomer.d.ts +6 -0
- package/dist/storefront-api/src/__api/mutations/saveProductBackInStockRemind.d.ts +6 -0
- package/dist/storefront-api/src/__api/mutations/sendContactFormToMerchant.d.ts +12 -0
- package/dist/storefront-api/src/__api/mutations/subscribeToMarketingNotifications.d.ts +6 -0
- package/dist/storefront-api/src/__api/mutations/updateCartCampaignOffer.d.ts +6 -0
- package/dist/storefront-api/src/__api/mutations/useLoyaltyPoints.d.ts +6 -0
- package/dist/storefront-api/src/__api/mutations/validateCustomerPhoneVerificationCode.d.ts +7 -0
- package/dist/storefront-api/src/__api/mutations/validateOTPCode.d.ts +8 -0
- package/dist/storefront-api/src/__api/queries/checkCartStocks.d.ts +7 -0
- package/dist/storefront-api/src/__api/queries/checkCustomerEmail.d.ts +8 -0
- package/dist/storefront-api/src/__api/queries/checkStocks.d.ts +7 -0
- package/dist/storefront-api/src/__api/queries/customerSocialLogin.d.ts +6 -0
- package/dist/storefront-api/src/__api/queries/exportCustomerPersonalData.d.ts +2 -0
- package/dist/storefront-api/src/__api/queries/getAvailableShippingCountries.d.ts +5 -0
- package/dist/storefront-api/src/__api/queries/getAvailableShippingZones.d.ts +6 -0
- package/dist/storefront-api/src/__api/queries/getAvailableStockLocations.d.ts +8 -0
- package/dist/storefront-api/src/__api/queries/getCartById.d.ts +9 -0
- package/dist/storefront-api/src/__api/queries/getCustomerOrders.d.ts +6 -0
- package/dist/storefront-api/src/__api/queries/getDigitalProductFileDownloadUrl.d.ts +6 -0
- package/dist/storefront-api/src/__api/queries/getLastViewedProducts.d.ts +6 -0
- package/dist/storefront-api/src/__api/queries/getLoyaltyCustomerInfo.d.ts +6 -0
- package/dist/storefront-api/src/__api/queries/getMyCountry.d.ts +2 -0
- package/dist/storefront-api/src/__api/queries/getMyCustomer.d.ts +3 -0
- package/dist/storefront-api/src/__api/queries/getOrderByEmail.d.ts +7 -0
- package/dist/storefront-api/src/__api/queries/getProductCampaigns.d.ts +6 -0
- package/dist/storefront-api/src/__api/queries/getProductFilterData.d.ts +7 -0
- package/dist/storefront-api/src/__api/queries/getProductOptionFileUrl.d.ts +8 -0
- package/dist/storefront-api/src/__api/queries/getRelatedProducts.d.ts +16 -0
- package/dist/storefront-api/src/__api/queries/getStorefrontWidgetSettings.d.ts +3 -0
- package/dist/storefront-api/src/__api/queries/getSuggestedProducts.d.ts +16 -0
- package/dist/storefront-api/src/__api/queries/getVariantStockLocations.d.ts +7 -0
- package/dist/storefront-api/src/__api/queries/isFavoriteProduct.d.ts +5 -0
- package/dist/storefront-api/src/__api/queries/listBlog.d.ts +14 -0
- package/dist/storefront-api/src/__api/queries/listBlogCategory.d.ts +11 -0
- package/dist/storefront-api/src/__api/queries/listBlogMetadata.d.ts +12 -0
- package/dist/storefront-api/src/__api/queries/listCampaignOffer.d.ts +6 -0
- package/dist/storefront-api/src/__api/queries/listCategory.d.ts +12 -0
- package/dist/storefront-api/src/__api/queries/listCheckoutSettings.d.ts +8 -0
- package/dist/storefront-api/src/__api/queries/listCity.d.ts +11 -0
- package/dist/storefront-api/src/__api/queries/listCountry.d.ts +12 -0
- package/dist/storefront-api/src/__api/queries/listCustomerAttribute.d.ts +3 -0
- package/dist/storefront-api/src/__api/queries/listCustomerReviewSummary.d.ts +8 -0
- package/dist/storefront-api/src/__api/queries/listCustomerReviews.d.ts +15 -0
- package/dist/storefront-api/src/__api/queries/listCustomerSettings.d.ts +7 -0
- package/dist/storefront-api/src/__api/queries/listDistrict.d.ts +12 -0
- package/dist/storefront-api/src/__api/queries/listEarningMethods.d.ts +3 -0
- package/dist/storefront-api/src/__api/queries/listFavoriteProducts.d.ts +3 -0
- package/dist/storefront-api/src/__api/queries/listLoyaltyProgramPointHistory.d.ts +6 -0
- package/dist/storefront-api/src/__api/queries/listLoyaltyProgramTiers.d.ts +3 -0
- package/dist/storefront-api/src/__api/queries/listOrderRefundSettings.d.ts +9 -0
- package/dist/storefront-api/src/__api/queries/listOrderTransactions.d.ts +8 -0
- package/dist/storefront-api/src/__api/queries/listPaymentGateway.d.ts +11 -0
- package/dist/storefront-api/src/__api/queries/listProductAttribute.d.ts +9 -0
- package/dist/storefront-api/src/__api/queries/listProductBackInStockRemind.d.ts +11 -0
- package/dist/storefront-api/src/__api/queries/listProductBrand.d.ts +11 -0
- package/dist/storefront-api/src/__api/queries/listProductFile.d.ts +6 -0
- package/dist/storefront-api/src/__api/queries/listProductOptionSet.d.ts +8 -0
- package/dist/storefront-api/src/__api/queries/listSpendingMethodsByCartId.d.ts +6 -0
- package/dist/storefront-api/src/__api/queries/listState.d.ts +11 -0
- package/dist/storefront-api/src/__api/queries/listStockLocation.d.ts +7 -0
- package/dist/storefront-api/src/__api/queries/listStorefrontPopup.d.ts +6 -0
- package/dist/storefront-api/src/__api/queries/searchProducts.d.ts +6 -0
- package/dist/storefront-api/src/__api/types/index.d.ts +3532 -0
- package/dist/storefront-api/src/index.d.ts +7 -0
- package/dist/storefront-api-client/src/config/index.d.ts +32 -0
- package/dist/storefront-api-client/src/index.d.ts +4 -0
- package/dist/storefront-api-client/src/utils/api.d.ts +40 -0
- package/dist/storefront-api-client/src/utils/fetch-query.d.ts +9 -0
- package/dist/storefront-config/src/index.d.ts +130 -0
- package/dist/storefront-models/src/index.d.ts +220 -0
- package/dist/storefront-models/src/models/_theme/styles.d.ts +34 -0
- package/dist/storefront-models/src/models/attribute-detail/index.d.ts +6 -0
- package/dist/storefront-models/src/models/attribute-list/index.d.ts +6 -0
- package/dist/storefront-models/src/models/base/index.d.ts +6 -0
- package/dist/storefront-models/src/models/blog/category/index.d.ts +12 -0
- package/dist/storefront-models/src/models/blog/content/index.d.ts +7 -0
- package/dist/storefront-models/src/models/blog/index.d.ts +27 -0
- package/dist/storefront-models/src/models/blog/meta-data/index.d.ts +14 -0
- package/dist/storefront-models/src/models/blog/tag/index.d.ts +7 -0
- package/dist/storefront-models/src/models/blog/writer/index.d.ts +4 -0
- package/dist/storefront-models/src/models/blog-category-list/index.d.ts +14 -0
- package/dist/storefront-models/src/models/blog-list/index.d.ts +15 -0
- package/dist/storefront-models/src/models/blueprint/prop-value/attribute-list.d.ts +6 -0
- package/dist/storefront-models/src/models/blueprint/prop-value/attribute.d.ts +6 -0
- package/dist/storefront-models/src/models/blueprint/prop-value/blog-category-list.d.ts +6 -0
- package/dist/storefront-models/src/models/blueprint/prop-value/blog-category.d.ts +4 -0
- package/dist/storefront-models/src/models/blueprint/prop-value/blog-list.d.ts +8 -0
- package/dist/storefront-models/src/models/blueprint/prop-value/blog.d.ts +4 -0
- package/dist/storefront-models/src/models/blueprint/prop-value/boolean.d.ts +3 -0
- package/dist/storefront-models/src/models/blueprint/prop-value/brand-list.d.ts +8 -0
- package/dist/storefront-models/src/models/blueprint/prop-value/brand.d.ts +4 -0
- package/dist/storefront-models/src/models/blueprint/prop-value/category-list.d.ts +7 -0
- package/dist/storefront-models/src/models/blueprint/prop-value/category.d.ts +4 -0
- package/dist/storefront-models/src/models/blueprint/prop-value/color.d.ts +3 -0
- package/dist/storefront-models/src/models/blueprint/prop-value/component-list.d.ts +4 -0
- package/dist/storefront-models/src/models/blueprint/prop-value/component.d.ts +8 -0
- package/dist/storefront-models/src/models/blueprint/prop-value/date.d.ts +3 -0
- package/dist/storefront-models/src/models/blueprint/prop-value/enum.d.ts +3 -0
- package/dist/storefront-models/src/models/blueprint/prop-value/image-list.d.ts +4 -0
- package/dist/storefront-models/src/models/blueprint/prop-value/image.d.ts +5 -0
- package/dist/storefront-models/src/models/blueprint/prop-value/index.d.ts +29 -0
- package/dist/storefront-models/src/models/blueprint/prop-value/link-list.d.ts +4 -0
- package/dist/storefront-models/src/models/blueprint/prop-value/link.d.ts +15 -0
- package/dist/storefront-models/src/models/blueprint/prop-value/number-range.d.ts +4 -0
- package/dist/storefront-models/src/models/blueprint/prop-value/number.d.ts +3 -0
- package/dist/storefront-models/src/models/blueprint/prop-value/product-list.d.ts +16 -0
- package/dist/storefront-models/src/models/blueprint/prop-value/product.d.ts +5 -0
- package/dist/storefront-models/src/models/blueprint/prop-value/raffle-list.d.ts +5 -0
- package/dist/storefront-models/src/models/blueprint/prop-value/raffle.d.ts +4 -0
- package/dist/storefront-models/src/models/blueprint/prop-value/rich-text.d.ts +3 -0
- package/dist/storefront-models/src/models/blueprint/prop-value/text.d.ts +3 -0
- package/dist/storefront-models/src/models/blueprint/prop-value/video.d.ts +9 -0
- package/dist/storefront-models/src/models/brand/index.d.ts +17 -0
- package/dist/storefront-models/src/models/brand/translation/index.d.ts +5 -0
- package/dist/storefront-models/src/models/brand-list/index.d.ts +16 -0
- package/dist/storefront-models/src/models/campaign-offer/index.d.ts +21 -0
- package/dist/storefront-models/src/models/campaign-offer/product/index.d.ts +23 -0
- package/dist/storefront-models/src/models/cart/available-shipping-method/estimated-delivery-time/index.d.ts +5 -0
- package/dist/storefront-models/src/models/cart/available-shipping-method/index.d.ts +10 -0
- package/dist/storefront-models/src/models/cart/campaign-offer/index.d.ts +17 -0
- package/dist/storefront-models/src/models/cart/index.d.ts +13 -0
- package/dist/storefront-models/src/models/category/conditions/index.d.ts +9 -0
- package/dist/storefront-models/src/models/category/index.d.ts +24 -0
- package/dist/storefront-models/src/models/category/path-item/index.d.ts +13 -0
- package/dist/storefront-models/src/models/category/translations/index.d.ts +5 -0
- package/dist/storefront-models/src/models/category-list/index.d.ts +16 -0
- package/dist/storefront-models/src/models/checkout/index.d.ts +10 -0
- package/dist/storefront-models/src/models/checkout-settings/index.d.ts +24 -0
- package/dist/storefront-models/src/models/checkout-settings/option/index.d.ts +4 -0
- package/dist/storefront-models/src/models/checkout-settings/price/index.d.ts +6 -0
- package/dist/storefront-models/src/models/city/index.d.ts +13 -0
- package/dist/storefront-models/src/models/contact-form/index.d.ts +8 -0
- package/dist/storefront-models/src/models/country/index.d.ts +19 -0
- package/dist/storefront-models/src/models/customer/address/city/index.d.ts +5 -0
- package/dist/storefront-models/src/models/customer/address/country/index.d.ts +7 -0
- package/dist/storefront-models/src/models/customer/address/district/index.d.ts +5 -0
- package/dist/storefront-models/src/models/customer/address/index.d.ts +30 -0
- package/dist/storefront-models/src/models/customer/address/region/index.d.ts +7 -0
- package/dist/storefront-models/src/models/customer/address/state/index.d.ts +5 -0
- package/dist/storefront-models/src/models/customer/attribute/index.d.ts +17 -0
- package/dist/storefront-models/src/models/customer/attribute/option/index.d.ts +7 -0
- package/dist/storefront-models/src/models/customer/attribute/sales-channel/index.d.ts +8 -0
- package/dist/storefront-models/src/models/customer/attribute/translation/index.d.ts +7 -0
- package/dist/storefront-models/src/models/customer/attribute/translation/option/index.d.ts +4 -0
- package/dist/storefront-models/src/models/customer/attribute/value/index.d.ts +9 -0
- package/dist/storefront-models/src/models/customer/index.d.ts +45 -0
- package/dist/storefront-models/src/models/customer/price-list-rule/filter/index.d.ts +5 -0
- package/dist/storefront-models/src/models/customer/price-list-rule/index.d.ts +8 -0
- package/dist/storefront-models/src/models/customer/review/index.d.ts +26 -0
- package/dist/storefront-models/src/models/customer/review/settings/index.d.ts +4 -0
- package/dist/storefront-models/src/models/customer/review/summary/index.d.ts +11 -0
- package/dist/storefront-models/src/models/customer/review/summary/star/index.d.ts +4 -0
- package/dist/storefront-models/src/models/customer-form-data-input/customer-register-subscription-input/index.d.ts +5 -0
- package/dist/storefront-models/src/models/customer-form-data-input/index.d.ts +13 -0
- package/dist/storefront-models/src/models/customer-review-form/index.d.ts +6 -0
- package/dist/storefront-models/src/models/customer-review-list/index.d.ts +13 -0
- package/dist/storefront-models/src/models/customer-review-summary-list/index.d.ts +11 -0
- package/dist/storefront-models/src/models/customer-settings/index.d.ts +10 -0
- package/dist/storefront-models/src/models/district/index.d.ts +13 -0
- package/dist/storefront-models/src/models/favorite-product/index.d.ts +10 -0
- package/dist/storefront-models/src/models/filter-category/index.d.ts +12 -0
- package/dist/storefront-models/src/models/html-meta-data/index.d.ts +23 -0
- package/dist/storefront-models/src/models/html-meta-data/translations/index.d.ts +6 -0
- package/dist/storefront-models/src/models/ikas-theme/date-picker/index.d.ts +7 -0
- package/dist/storefront-models/src/models/image/index.d.ts +6 -0
- package/dist/storefront-models/src/models/image-list/index.d.ts +4 -0
- package/dist/storefront-models/src/models/language-option/index.d.ts +8 -0
- package/dist/storefront-models/src/models/last-viewed-product/index.d.ts +4 -0
- package/dist/storefront-models/src/models/locale-option/index.d.ts +9 -0
- package/dist/storefront-models/src/models/location-translations/index.d.ts +5 -0
- package/dist/storefront-models/src/models/loyalty-program/customer-info/index.d.ts +17 -0
- package/dist/storefront-models/src/models/loyalty-program/earning-method/index.d.ts +33 -0
- package/dist/storefront-models/src/models/loyalty-program/index.d.ts +25 -0
- package/dist/storefront-models/src/models/loyalty-program/point-history/index.d.ts +16 -0
- package/dist/storefront-models/src/models/loyalty-program/spending-method/index.d.ts +17 -0
- package/dist/storefront-models/src/models/loyalty-program/tier/index.d.ts +15 -0
- package/dist/storefront-models/src/models/merchant-settings/address/city/index.d.ts +5 -0
- package/dist/storefront-models/src/models/merchant-settings/address/country/index.d.ts +7 -0
- package/dist/storefront-models/src/models/merchant-settings/address/district/index.d.ts +5 -0
- package/dist/storefront-models/src/models/merchant-settings/address/index.d.ts +21 -0
- package/dist/storefront-models/src/models/merchant-settings/address/state/index.d.ts +5 -0
- package/dist/storefront-models/src/models/merchant-settings/address/type/index.d.ts +1 -0
- package/dist/storefront-models/src/models/merchant-settings/index.d.ts +24 -0
- package/dist/storefront-models/src/models/navigation-link/index.d.ts +9 -0
- package/dist/storefront-models/src/models/navigation-link-list/index.d.ts +4 -0
- package/dist/storefront-models/src/models/number-range/index.d.ts +4 -0
- package/dist/storefront-models/src/models/order/address/city/index.d.ts +5 -0
- package/dist/storefront-models/src/models/order/address/country/index.d.ts +7 -0
- package/dist/storefront-models/src/models/order/address/district/index.d.ts +5 -0
- package/dist/storefront-models/src/models/order/address/index.d.ts +24 -0
- package/dist/storefront-models/src/models/order/address/region/index.d.ts +7 -0
- package/dist/storefront-models/src/models/order/address/state/index.d.ts +5 -0
- package/dist/storefront-models/src/models/order/adjustment/applied-order-line/index.d.ts +6 -0
- package/dist/storefront-models/src/models/order/adjustment/index.d.ts +17 -0
- package/dist/storefront-models/src/models/order/customer/index.d.ts +9 -0
- package/dist/storefront-models/src/models/order/gift-line/index.d.ts +6 -0
- package/dist/storefront-models/src/models/order/index.d.ts +51 -0
- package/dist/storefront-models/src/models/order/invoice/index.d.ts +10 -0
- package/dist/storefront-models/src/models/order/line-item/base-unit/index.d.ts +7 -0
- package/dist/storefront-models/src/models/order/line-item/base-unit/unit-type/index.d.ts +4 -0
- package/dist/storefront-models/src/models/order/line-item/discount/index.d.ts +9 -0
- package/dist/storefront-models/src/models/order/line-item/index.d.ts +28 -0
- package/dist/storefront-models/src/models/order/line-item/option/index.d.ts +9 -0
- package/dist/storefront-models/src/models/order/line-item/option/value/index.d.ts +5 -0
- package/dist/storefront-models/src/models/order/line-item/variant/brand/index.d.ts +4 -0
- package/dist/storefront-models/src/models/order/line-item/variant/bundle-product/bundle-variant/index.d.ts +29 -0
- package/dist/storefront-models/src/models/order/line-item/variant/bundle-product/index.d.ts +13 -0
- package/dist/storefront-models/src/models/order/line-item/variant/category/index.d.ts +9 -0
- package/dist/storefront-models/src/models/order/line-item/variant/index.d.ts +31 -0
- package/dist/storefront-models/src/models/order/line-item/variant/price/index.d.ts +8 -0
- package/dist/storefront-models/src/models/order/line-item/variant/tag/index.d.ts +4 -0
- package/dist/storefront-models/src/models/order/line-item/variant/unit/index.d.ts +5 -0
- package/dist/storefront-models/src/models/order/line-item/variant/value/index.d.ts +7 -0
- package/dist/storefront-models/src/models/order/package/index.d.ts +31 -0
- package/dist/storefront-models/src/models/order/package/tracking-info/index.d.ts +7 -0
- package/dist/storefront-models/src/models/order/payment-method/index.d.ts +8 -0
- package/dist/storefront-models/src/models/order/refund/index.d.ts +5 -0
- package/dist/storefront-models/src/models/order/refund/line-item/index.d.ts +4 -0
- package/dist/storefront-models/src/models/order/refund/settings/index.d.ts +5 -0
- package/dist/storefront-models/src/models/order/shipping-line/index.d.ts +11 -0
- package/dist/storefront-models/src/models/order/tax-line/index.d.ts +4 -0
- package/dist/storefront-models/src/models/order/transaction/error/index.d.ts +5 -0
- package/dist/storefront-models/src/models/order/transaction/index.d.ts +26 -0
- package/dist/storefront-models/src/models/order/transaction/payment-method-detail/index.d.ts +14 -0
- package/dist/storefront-models/src/models/order/transaction/payment-method-detail/installment-price/index.d.ts +7 -0
- package/dist/storefront-models/src/models/payment-gateway/additional-price/index.d.ts +8 -0
- package/dist/storefront-models/src/models/payment-gateway/index.d.ts +30 -0
- package/dist/storefront-models/src/models/payment-gateway/settings/index.d.ts +7 -0
- package/dist/storefront-models/src/models/payment-gateway/translation/index.d.ts +5 -0
- package/dist/storefront-models/src/models/product/attribute/index.d.ts +13 -0
- package/dist/storefront-models/src/models/product/attribute/option/index.d.ts +4 -0
- package/dist/storefront-models/src/models/product/attribute/table-cell/index.d.ts +4 -0
- package/dist/storefront-models/src/models/product/attribute/table-template/index.d.ts +5 -0
- package/dist/storefront-models/src/models/product/attribute/translation/index.d.ts +10 -0
- package/dist/storefront-models/src/models/product/attribute-value/index.d.ts +21 -0
- package/dist/storefront-models/src/models/product/back-in-stock-settings/index.d.ts +3 -0
- package/dist/storefront-models/src/models/product/base-unit/index.d.ts +10 -0
- package/dist/storefront-models/src/models/product/campaign/data/index.d.ts +27 -0
- package/dist/storefront-models/src/models/product/campaign/filter/index.d.ts +5 -0
- package/dist/storefront-models/src/models/product/campaign/index.d.ts +5 -0
- package/dist/storefront-models/src/models/product/campaign/product-buyx-then-gety/index.d.ts +16 -0
- package/dist/storefront-models/src/models/product/campaign/product-campaign-date-range-field/index.d.ts +4 -0
- package/dist/storefront-models/src/models/product/campaign/product-fixed-discount/index.d.ts +11 -0
- package/dist/storefront-models/src/models/product/campaign-offer/index.d.ts +11 -0
- package/dist/storefront-models/src/models/product/filter/index.d.ts +58 -0
- package/dist/storefront-models/src/models/product/group/index.d.ts +11 -0
- package/dist/storefront-models/src/models/product/group/order/index.d.ts +4 -0
- package/dist/storefront-models/src/models/product/group/translation/index.d.ts +9 -0
- package/dist/storefront-models/src/models/product/group/value/index.d.ts +5 -0
- package/dist/storefront-models/src/models/product/image/index.d.ts +9 -0
- package/dist/storefront-models/src/models/product/index.d.ts +88 -0
- package/dist/storefront-models/src/models/product/option-set/index.d.ts +21 -0
- package/dist/storefront-models/src/models/product/option-set/option/index.d.ts +67 -0
- package/dist/storefront-models/src/models/product/sales-channel/index.d.ts +9 -0
- package/dist/storefront-models/src/models/product/star/index.d.ts +4 -0
- package/dist/storefront-models/src/models/product/stock-location/index.d.ts +26 -0
- package/dist/storefront-models/src/models/product/tag/index.d.ts +4 -0
- package/dist/storefront-models/src/models/product/variant/bundle-settings/bundle-product/index.d.ts +14 -0
- package/dist/storefront-models/src/models/product/variant/bundle-settings/index.d.ts +6 -0
- package/dist/storefront-models/src/models/product/variant/index.d.ts +31 -0
- package/dist/storefront-models/src/models/product/variant/price/index.d.ts +11 -0
- package/dist/storefront-models/src/models/product/variant/price/product-campaign-price/index.d.ts +4 -0
- package/dist/storefront-models/src/models/product/variant/unit/index.d.ts +5 -0
- package/dist/storefront-models/src/models/product/variant-type/index.d.ts +6 -0
- package/dist/storefront-models/src/models/product-file/index.d.ts +6 -0
- package/dist/storefront-models/src/models/product-list/index.d.ts +53 -0
- package/dist/storefront-models/src/models/product-list/suggestion/index.d.ts +6 -0
- package/dist/storefront-models/src/models/product-option-file/index.d.ts +5 -0
- package/dist/storefront-models/src/models/raffle/index.d.ts +58 -0
- package/dist/storefront-models/src/models/raffle-list/index.d.ts +16 -0
- package/dist/storefront-models/src/models/sales-channel/index.d.ts +15 -0
- package/dist/storefront-models/src/models/shipping-zone/index.d.ts +7 -0
- package/dist/storefront-models/src/models/shipping-zone/state/city/district/index.d.ts +5 -0
- package/dist/storefront-models/src/models/shipping-zone/state/city/district/region/index.d.ts +7 -0
- package/dist/storefront-models/src/models/shipping-zone/state/city/index.d.ts +6 -0
- package/dist/storefront-models/src/models/shipping-zone/state/index.d.ts +7 -0
- package/dist/storefront-models/src/models/state/index.d.ts +12 -0
- package/dist/storefront-models/src/models/stock-location/address/city/index.d.ts +5 -0
- package/dist/storefront-models/src/models/stock-location/address/country/index.d.ts +7 -0
- package/dist/storefront-models/src/models/stock-location/address/district/index.d.ts +5 -0
- package/dist/storefront-models/src/models/stock-location/address/index.d.ts +13 -0
- package/dist/storefront-models/src/models/stock-location/address/state/index.d.ts +5 -0
- package/dist/storefront-models/src/models/stock-location/available/index.d.ts +8 -0
- package/dist/storefront-models/src/models/stock-location/index.d.ts +13 -0
- package/dist/storefront-models/src/models/storefront/b2b-settings/index.d.ts +7 -0
- package/dist/storefront-models/src/models/storefront/domain/index.d.ts +7 -0
- package/dist/storefront-models/src/models/storefront/index-page-seo-setting/index.d.ts +15 -0
- package/dist/storefront-models/src/models/storefront/index.d.ts +33 -0
- package/dist/storefront-models/src/models/storefront/localization/index.d.ts +6 -0
- package/dist/storefront-models/src/models/storefront/meta-templates/index.d.ts +7 -0
- package/dist/storefront-models/src/models/storefront/routing/dynamic-currency/index.d.ts +4 -0
- package/dist/storefront-models/src/models/storefront/routing/index.d.ts +12 -0
- package/dist/storefront-models/src/models/storefront/settings/index.d.ts +20 -0
- package/dist/storefront-models/src/models/storefront/theme/index.d.ts +9 -0
- package/dist/storefront-models/src/models/storefront/theme-localization/index.d.ts +11 -0
- package/dist/storefront-models/src/models/storefront-popup/index.d.ts +27 -0
- package/dist/storefront-models/src/models/storefront-popup/storefront-popup-analytics/index.d.ts +5 -0
- package/dist/storefront-models/src/models/storefront-popup/storefront-popup-date-filter/index.d.ts +4 -0
- package/dist/storefront-models/src/models/storefront-popup/storefront-popup-display-filter/index.d.ts +6 -0
- package/dist/storefront-models/src/models/storefront-popup/storefront-popup-display-settings/index.d.ts +7 -0
- package/dist/storefront-models/src/models/storefront-popup/storefront-popup-page-filter/index.d.ts +6 -0
- package/dist/storefront-models/src/models/storefront-popup/storefront-popup-page-filter/storefront-popup-page-filter-data/index.d.ts +5 -0
- package/dist/storefront-models/src/models/storefront-popup/storefront-popup-routing/index.d.ts +4 -0
- package/dist/storefront-models/src/models/storefront-widget-settings/index.d.ts +10 -0
- package/dist/storefront-models/src/models/theme/index.d.ts +2 -0
- package/dist/storefront-models/src/models/validator/account-info/index.d.ts +7 -0
- package/dist/storefront-models/src/models/validator/address/index.d.ts +42 -0
- package/dist/storefront-models/src/models/validator/back-in-stock-notification/index.d.ts +6 -0
- package/dist/storefront-models/src/models/validator/contact-form/index.d.ts +8 -0
- package/dist/storefront-models/src/models/validator/coupon-code-form/index.d.ts +4 -0
- package/dist/storefront-models/src/models/validator/customer-review/index.d.ts +7 -0
- package/dist/storefront-models/src/models/validator/forgot-password/index.d.ts +4 -0
- package/dist/storefront-models/src/models/validator/index.d.ts +42 -0
- package/dist/storefront-models/src/models/validator/login/index.d.ts +5 -0
- package/dist/storefront-models/src/models/validator/newsletter-subscription/index.d.ts +5 -0
- package/dist/storefront-models/src/models/validator/order-tracking/index.d.ts +5 -0
- package/dist/storefront-models/src/models/validator/recover-password/index.d.ts +5 -0
- package/dist/storefront-models/src/models/validator/register/index.d.ts +12 -0
- package/dist/storefront-models/src/models/validator/sms-login/index.d.ts +15 -0
- package/dist/storefront-models/src/models/validator/verify-phone-number/index.d.ts +7 -0
- package/dist/storefront-models/src/models/variant-type/index.d.ts +18 -0
- package/dist/storefront-models/src/models/variant-type/variant-value/index.d.ts +7 -0
- package/dist/storefront-models/src/models/video/index.d.ts +9 -0
- package/dist/stores/base/index.js +1 -0
- package/dist/stores/cart/index.js +1 -0
- package/dist/stores/customer/index.js +1 -0
- package/dist/theme/styles/index.js +1 -0
- package/dist/utils/blueprint.js +1 -0
- package/dist/utils/currency.js +1 -0
- package/dist/utils/fetch.js +1 -0
- package/dist/utils/helper.js +1 -0
- package/dist/utils/object-wrapper.js +1 -0
- package/package.json +60 -0
|
@@ -0,0 +1,868 @@
|
|
|
1
|
+
import { BackInStockNotificationForm, IkasAppliedCampaignAmount, IkasProductAttributeMap, IkasProductPrice, IkasProductVariant } from "../../../../../../storefront-models/src";
|
|
2
|
+
/**
|
|
3
|
+
* Get the main/primary image for a product variant.
|
|
4
|
+
*
|
|
5
|
+
* @ai-category ProductDetail, ProductList
|
|
6
|
+
* @ai-related getSelectedProductVariant
|
|
7
|
+
*
|
|
8
|
+
* @param variant - The product variant
|
|
9
|
+
* @returns The first image of the variant, or undefined if no images
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import { getProductVariantMainImage, getSelectedProductVariant } from "@ikas/bp-storefront";
|
|
14
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
15
|
+
*
|
|
16
|
+
* function ProductImage({ product }: { product: IkasProduct }) {
|
|
17
|
+
* const variant = getSelectedProductVariant(product);
|
|
18
|
+
* const mainImage = getProductVariantMainImage(variant);
|
|
19
|
+
*
|
|
20
|
+
* if (!mainImage) {
|
|
21
|
+
* return <div className="no-image">No image available</div>;
|
|
22
|
+
* }
|
|
23
|
+
*
|
|
24
|
+
* return <img src={mainImage.src} alt={product.name} />;
|
|
25
|
+
* }
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare function getProductVariantMainImage(variant: IkasProductVariant): import("../../../../../../storefront-models/src").IkasProductImage | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Check if a specific product variant has stock available.
|
|
31
|
+
*
|
|
32
|
+
* @ai-category ProductDetail, ProductList
|
|
33
|
+
* @ai-related getSelectedProductVariant, addItemToCart
|
|
34
|
+
*
|
|
35
|
+
* @param variant - The product variant to check
|
|
36
|
+
* @returns True if variant has stock or allows selling when out of stock
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```typescript
|
|
40
|
+
* import { hasProductVariantStock, getSelectedProductVariant } from "@ikas/bp-storefront";
|
|
41
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
42
|
+
*
|
|
43
|
+
* function AddToCartButton({ product }: { product: IkasProduct }) {
|
|
44
|
+
* const variant = getSelectedProductVariant(product);
|
|
45
|
+
* const hasStock = hasProductVariantStock(variant);
|
|
46
|
+
*
|
|
47
|
+
* return (
|
|
48
|
+
* <button disabled={!hasStock}>
|
|
49
|
+
* {hasStock ? "Add to Cart" : "Out of Stock"}
|
|
50
|
+
* </button>
|
|
51
|
+
* );
|
|
52
|
+
* }
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
export declare function hasProductVariantStock(variant: IkasProductVariant): boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Get grouped attribute values for a product variant, organized by attribute ID.
|
|
58
|
+
*
|
|
59
|
+
* @ai-category ProductVariant, ProductDetail
|
|
60
|
+
* @ai-related getSelectedProductVariant
|
|
61
|
+
*
|
|
62
|
+
* @param variant - The product variant whose attributes to group
|
|
63
|
+
* @returns An array of attribute maps, each containing the attribute and its grouped values
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* ```typescript
|
|
67
|
+
* import { getGroupedAttributeValuesForVariant, getSelectedProductVariant } from "@ikas/bp-storefront";
|
|
68
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
69
|
+
*
|
|
70
|
+
* function VariantAttributes({ product }: { product: IkasProduct }) {
|
|
71
|
+
* const variant = getSelectedProductVariant(product);
|
|
72
|
+
* const groupedAttributes = getGroupedAttributeValuesForVariant(variant);
|
|
73
|
+
*
|
|
74
|
+
* return (
|
|
75
|
+
* <ul>
|
|
76
|
+
* {groupedAttributes.map((attr) => (
|
|
77
|
+
* <li key={attr.attribute.id}>{attr.attribute.name}: {attr.values.map(v => v.value).join(", ")}</li>
|
|
78
|
+
* ))}
|
|
79
|
+
* </ul>
|
|
80
|
+
* );
|
|
81
|
+
* }
|
|
82
|
+
* ```
|
|
83
|
+
*/
|
|
84
|
+
export declare function getGroupedAttributeValuesForVariant(variant: IkasProductVariant): IkasProductAttributeMap[];
|
|
85
|
+
/**
|
|
86
|
+
* Get the applicable B2B price list rule for a product variant based on the current customer.
|
|
87
|
+
*
|
|
88
|
+
* @ai-category Pricing, ProductVariant
|
|
89
|
+
* @ai-related getProductVariantPrice, getProductVariantFinalPrice
|
|
90
|
+
*
|
|
91
|
+
* @param variant - The product variant to evaluate against B2B price rules
|
|
92
|
+
* @returns The matching price list rule, or null if no rule applies or no customer is logged in
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* ```typescript
|
|
96
|
+
* import { getProductVariantB2bPriceRule, getSelectedProductVariant } from "@ikas/bp-storefront";
|
|
97
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
98
|
+
*
|
|
99
|
+
* function B2BPriceInfo({ product }: { product: IkasProduct }) {
|
|
100
|
+
* const variant = getSelectedProductVariant(product);
|
|
101
|
+
* const priceRule = getProductVariantB2bPriceRule(variant);
|
|
102
|
+
*
|
|
103
|
+
* if (priceRule) {
|
|
104
|
+
* return <span>B2B pricing applied: {priceRule.valueType}</span>;
|
|
105
|
+
* }
|
|
106
|
+
* return null;
|
|
107
|
+
* }
|
|
108
|
+
* ```
|
|
109
|
+
*/
|
|
110
|
+
export declare function getProductVariantB2bPriceRule(variant: IkasProductVariant): import("../../../../../../storefront-models/src").IkasCustomerPriceListRule | null;
|
|
111
|
+
/**
|
|
112
|
+
* Get the applicable price object for a product variant based on the storefront or B2B customer price list.
|
|
113
|
+
*
|
|
114
|
+
* @ai-category Pricing, ProductVariant
|
|
115
|
+
* @ai-related getProductVariantFinalPrice, getProductVariantSellPrice, getProductVariantBundlePrice
|
|
116
|
+
*
|
|
117
|
+
* @param variant - The product variant whose price to retrieve
|
|
118
|
+
* @returns The matching IkasProductPrice for the current storefront or B2B customer
|
|
119
|
+
*
|
|
120
|
+
* @example
|
|
121
|
+
* ```typescript
|
|
122
|
+
* import { getProductVariantPrice, getSelectedProductVariant } from "@ikas/bp-storefront";
|
|
123
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
124
|
+
*
|
|
125
|
+
* function PriceCurrency({ product }: { product: IkasProduct }) {
|
|
126
|
+
* const variant = getSelectedProductVariant(product);
|
|
127
|
+
* const price = getProductVariantPrice(variant);
|
|
128
|
+
*
|
|
129
|
+
* return <span>Currency: {price.currency}</span>;
|
|
130
|
+
* }
|
|
131
|
+
* ```
|
|
132
|
+
*/
|
|
133
|
+
export declare function getProductVariantPrice(variant: IkasProductVariant): IkasProductPrice;
|
|
134
|
+
/**
|
|
135
|
+
* Check if a product variant has bundle settings configured.
|
|
136
|
+
*
|
|
137
|
+
* @ai-category ProductVariant, ProductDetail
|
|
138
|
+
* @ai-related getProductVariantBundlePrice, getProductVariantFinalPrice
|
|
139
|
+
*
|
|
140
|
+
* @param variant - The product variant to check
|
|
141
|
+
* @returns True if the variant has bundle settings, false otherwise
|
|
142
|
+
*
|
|
143
|
+
* @example
|
|
144
|
+
* ```typescript
|
|
145
|
+
* import { hasBundleSettings, getSelectedProductVariant } from "@ikas/bp-storefront";
|
|
146
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
147
|
+
*
|
|
148
|
+
* function BundleIndicator({ product }: { product: IkasProduct }) {
|
|
149
|
+
* const variant = getSelectedProductVariant(product);
|
|
150
|
+
*
|
|
151
|
+
* if (hasBundleSettings(variant)) {
|
|
152
|
+
* return <span className="bundle-badge">Bundle</span>;
|
|
153
|
+
* }
|
|
154
|
+
* return null;
|
|
155
|
+
* }
|
|
156
|
+
* ```
|
|
157
|
+
*/
|
|
158
|
+
export declare function hasBundleSettings(variant: IkasProductVariant): boolean;
|
|
159
|
+
/**
|
|
160
|
+
* Get the base bundle price for a product variant, considering B2B and storefront price lists.
|
|
161
|
+
*
|
|
162
|
+
* @ai-category Pricing, ProductVariant
|
|
163
|
+
* @ai-related hasBundleSettings, getProductVariantPrice, getProductVariantFinalPrice
|
|
164
|
+
*
|
|
165
|
+
* @param variant - The product variant whose bundle price to retrieve
|
|
166
|
+
* @returns The bundle price object, or falls back to the regular variant price if no bundle price exists
|
|
167
|
+
*
|
|
168
|
+
* @example
|
|
169
|
+
* ```typescript
|
|
170
|
+
* import { getProductVariantBundlePrice, hasBundleSettings, getSelectedProductVariant } from "@ikas/bp-storefront";
|
|
171
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
172
|
+
*
|
|
173
|
+
* function BundlePrice({ product }: { product: IkasProduct }) {
|
|
174
|
+
* const variant = getSelectedProductVariant(product);
|
|
175
|
+
*
|
|
176
|
+
* if (hasBundleSettings(variant)) {
|
|
177
|
+
* const bundlePrice = getProductVariantBundlePrice(variant);
|
|
178
|
+
* return <span>Bundle base: {bundlePrice.sellPrice}</span>;
|
|
179
|
+
* }
|
|
180
|
+
* return null;
|
|
181
|
+
* }
|
|
182
|
+
* ```
|
|
183
|
+
*/
|
|
184
|
+
export declare function getProductVariantBundlePrice(variant: IkasProductVariant): IkasProductPrice;
|
|
185
|
+
/**
|
|
186
|
+
* Get the final price of a variant after all discounts and campaigns.
|
|
187
|
+
* Use this for calculations. For display, use getProductVariantFormattedFinalPrice.
|
|
188
|
+
*
|
|
189
|
+
* @ai-category ProductDetail, ProductList
|
|
190
|
+
* @ai-related getProductVariantFormattedFinalPrice, getProductVariantSellPrice, hasProductVariantDiscount
|
|
191
|
+
*
|
|
192
|
+
* @param variant - The product variant
|
|
193
|
+
* @returns The final price as a number
|
|
194
|
+
*
|
|
195
|
+
* @example
|
|
196
|
+
* ```typescript
|
|
197
|
+
* import { getProductVariantFinalPrice, getSelectedProductVariant } from "@ikas/bp-storefront";
|
|
198
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
199
|
+
*
|
|
200
|
+
* function calculateTotal(product: IkasProduct, quantity: number) {
|
|
201
|
+
* const variant = getSelectedProductVariant(product);
|
|
202
|
+
* const unitPrice = getProductVariantFinalPrice(variant);
|
|
203
|
+
* return unitPrice * quantity;
|
|
204
|
+
* }
|
|
205
|
+
* ```
|
|
206
|
+
*/
|
|
207
|
+
export declare function getProductVariantFinalPrice(variant: IkasProductVariant): number;
|
|
208
|
+
/**
|
|
209
|
+
* Get the formatted final price string with currency symbol.
|
|
210
|
+
* Use this for displaying prices in the UI.
|
|
211
|
+
*
|
|
212
|
+
* @ai-category ProductDetail, ProductList
|
|
213
|
+
* @ai-related getProductVariantFinalPrice, getProductVariantFormattedSellPrice, hasProductVariantDiscount
|
|
214
|
+
*
|
|
215
|
+
* @param variant - The product variant
|
|
216
|
+
* @returns Formatted price string (e.g., "$19.99" or "€15,00")
|
|
217
|
+
*
|
|
218
|
+
* @example
|
|
219
|
+
* ```typescript
|
|
220
|
+
* import { getProductVariantFormattedFinalPrice, getSelectedProductVariant } from "@ikas/bp-storefront";
|
|
221
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
222
|
+
*
|
|
223
|
+
* function PriceDisplay({ product }: { product: IkasProduct }) {
|
|
224
|
+
* const variant = getSelectedProductVariant(product);
|
|
225
|
+
*
|
|
226
|
+
* return (
|
|
227
|
+
* <span className="price">
|
|
228
|
+
* {getProductVariantFormattedFinalPrice(variant)}
|
|
229
|
+
* </span>
|
|
230
|
+
* );
|
|
231
|
+
* }
|
|
232
|
+
* ```
|
|
233
|
+
*/
|
|
234
|
+
export declare function getProductVariantFormattedFinalPrice(variant: IkasProductVariant): string;
|
|
235
|
+
/**
|
|
236
|
+
* Get the original sell price of a variant (before discounts).
|
|
237
|
+
* Use this to show the original price when displaying discounts.
|
|
238
|
+
*
|
|
239
|
+
* @ai-category ProductDetail, ProductList
|
|
240
|
+
* @ai-related getProductVariantFormattedSellPrice, getProductVariantFinalPrice, hasProductVariantDiscount
|
|
241
|
+
*
|
|
242
|
+
* @param variant - The product variant
|
|
243
|
+
* @returns The original sell price as a number
|
|
244
|
+
*
|
|
245
|
+
* @example
|
|
246
|
+
* ```typescript
|
|
247
|
+
* import {
|
|
248
|
+
* getProductVariantSellPrice,
|
|
249
|
+
* getProductVariantFinalPrice,
|
|
250
|
+
* hasProductVariantDiscount
|
|
251
|
+
* } from "@ikas/bp-storefront";
|
|
252
|
+
*
|
|
253
|
+
* function calculateDiscount(variant: IkasProductVariant) {
|
|
254
|
+
* if (hasProductVariantDiscount(variant)) {
|
|
255
|
+
* const original = getProductVariantSellPrice(variant);
|
|
256
|
+
* const final = getProductVariantFinalPrice(variant);
|
|
257
|
+
* return original - final;
|
|
258
|
+
* }
|
|
259
|
+
* return 0;
|
|
260
|
+
* }
|
|
261
|
+
* ```
|
|
262
|
+
*/
|
|
263
|
+
export declare function getProductVariantSellPrice(variant: IkasProductVariant): number;
|
|
264
|
+
/**
|
|
265
|
+
* Get the formatted original sell price with currency symbol.
|
|
266
|
+
* Use this to display the original price with a strikethrough when showing discounts.
|
|
267
|
+
*
|
|
268
|
+
* @ai-category ProductDetail, ProductList
|
|
269
|
+
* @ai-related getProductVariantSellPrice, getProductVariantFormattedFinalPrice, hasProductVariantDiscount
|
|
270
|
+
*
|
|
271
|
+
* @param variant - The product variant
|
|
272
|
+
* @returns Formatted price string (e.g., "$29.99")
|
|
273
|
+
*
|
|
274
|
+
* @example
|
|
275
|
+
* ```typescript
|
|
276
|
+
* import {
|
|
277
|
+
* getProductVariantFormattedSellPrice,
|
|
278
|
+
* getProductVariantFormattedFinalPrice,
|
|
279
|
+
* hasProductVariantDiscount,
|
|
280
|
+
* getSelectedProductVariant
|
|
281
|
+
* } from "@ikas/bp-storefront";
|
|
282
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
283
|
+
*
|
|
284
|
+
* function PriceDisplay({ product }: { product: IkasProduct }) {
|
|
285
|
+
* const variant = getSelectedProductVariant(product);
|
|
286
|
+
* const hasDiscount = hasProductVariantDiscount(variant);
|
|
287
|
+
*
|
|
288
|
+
* return (
|
|
289
|
+
* <div>
|
|
290
|
+
* {hasDiscount && (
|
|
291
|
+
* <span className="original-price" style={{ textDecoration: "line-through" }}>
|
|
292
|
+
* {getProductVariantFormattedSellPrice(variant)}
|
|
293
|
+
* </span>
|
|
294
|
+
* )}
|
|
295
|
+
* <span className="final-price">
|
|
296
|
+
* {getProductVariantFormattedFinalPrice(variant)}
|
|
297
|
+
* </span>
|
|
298
|
+
* </div>
|
|
299
|
+
* );
|
|
300
|
+
* }
|
|
301
|
+
* ```
|
|
302
|
+
*/
|
|
303
|
+
export declare function getProductVariantFormattedSellPrice(variant: IkasProductVariant): string;
|
|
304
|
+
/**
|
|
305
|
+
* Get the formatted buy (cost) price of a product variant with currency symbol.
|
|
306
|
+
*
|
|
307
|
+
* @ai-category Pricing, ProductVariant
|
|
308
|
+
* @ai-related getProductVariantPrice, getProductVariantFormattedSellPrice, getProductVariantFormattedFinalPrice
|
|
309
|
+
*
|
|
310
|
+
* @param variant - The product variant whose buy price to format
|
|
311
|
+
* @returns Formatted buy price string with currency symbol (e.g., "$10.00")
|
|
312
|
+
*
|
|
313
|
+
* @example
|
|
314
|
+
* ```typescript
|
|
315
|
+
* import { getProductVariantFormattedBuyPrice, getSelectedProductVariant } from "@ikas/bp-storefront";
|
|
316
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
317
|
+
*
|
|
318
|
+
* function BuyPriceDisplay({ product }: { product: IkasProduct }) {
|
|
319
|
+
* const variant = getSelectedProductVariant(product);
|
|
320
|
+
* const formattedBuyPrice = getProductVariantFormattedBuyPrice(variant);
|
|
321
|
+
*
|
|
322
|
+
* return <span>Cost: {formattedBuyPrice}</span>;
|
|
323
|
+
* }
|
|
324
|
+
* ```
|
|
325
|
+
*/
|
|
326
|
+
export declare function getProductVariantFormattedBuyPrice(variant: IkasProductVariant): string;
|
|
327
|
+
/**
|
|
328
|
+
* Get the applied campaign discount amount details for a product variant, including type and formatted value.
|
|
329
|
+
*
|
|
330
|
+
* @ai-category Pricing, ProductVariant
|
|
331
|
+
* @ai-related getProductVariantCampaignPrice, getProductVariantFormattedCampaignPrice, hasProductVariantDiscount
|
|
332
|
+
*
|
|
333
|
+
* @param variant - The product variant to check for applied campaigns
|
|
334
|
+
* @returns An object with campaign type, formatted price, and discount percentage, or null if no campaign is applied
|
|
335
|
+
*
|
|
336
|
+
* @example
|
|
337
|
+
* ```typescript
|
|
338
|
+
* import { getProductVariantAppliedCampaignAmount, getSelectedProductVariant } from "@ikas/bp-storefront";
|
|
339
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
340
|
+
*
|
|
341
|
+
* function CampaignInfo({ product }: { product: IkasProduct }) {
|
|
342
|
+
* const variant = getSelectedProductVariant(product);
|
|
343
|
+
* const campaignAmount = getProductVariantAppliedCampaignAmount(variant);
|
|
344
|
+
*
|
|
345
|
+
* if (!campaignAmount) return null;
|
|
346
|
+
*
|
|
347
|
+
* return (
|
|
348
|
+
* <div>
|
|
349
|
+
* {campaignAmount.type === "RATIO"
|
|
350
|
+
* ? `${campaignAmount.discountPercentage}% off`
|
|
351
|
+
* : `${campaignAmount.formattedPrice} off`}
|
|
352
|
+
* </div>
|
|
353
|
+
* );
|
|
354
|
+
* }
|
|
355
|
+
* ```
|
|
356
|
+
*/
|
|
357
|
+
export declare function getProductVariantAppliedCampaignAmount(variant: IkasProductVariant): IkasAppliedCampaignAmount | null;
|
|
358
|
+
/**
|
|
359
|
+
* Get the raw campaign price value for a product variant.
|
|
360
|
+
*
|
|
361
|
+
* @ai-category Pricing, ProductVariant
|
|
362
|
+
* @ai-related getProductVariantFormattedCampaignPrice, getProductVariantAppliedCampaignAmount, getProductVariantPrice
|
|
363
|
+
*
|
|
364
|
+
* @param variant - The product variant whose campaign price to retrieve
|
|
365
|
+
* @returns The campaign price as a number, or null if no campaign price is set
|
|
366
|
+
*
|
|
367
|
+
* @example
|
|
368
|
+
* ```typescript
|
|
369
|
+
* import { getProductVariantCampaignPrice, getSelectedProductVariant } from "@ikas/bp-storefront";
|
|
370
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
371
|
+
*
|
|
372
|
+
* function CampaignPriceCheck({ product }: { product: IkasProduct }) {
|
|
373
|
+
* const variant = getSelectedProductVariant(product);
|
|
374
|
+
* const campaignPrice = getProductVariantCampaignPrice(variant);
|
|
375
|
+
*
|
|
376
|
+
* if (campaignPrice !== null) {
|
|
377
|
+
* return <span>Campaign price: {campaignPrice}</span>;
|
|
378
|
+
* }
|
|
379
|
+
* return null;
|
|
380
|
+
* }
|
|
381
|
+
* ```
|
|
382
|
+
*/
|
|
383
|
+
export declare function getProductVariantCampaignPrice(variant: IkasProductVariant): number | null;
|
|
384
|
+
/**
|
|
385
|
+
* Get the formatted campaign price string with currency symbol for a product variant.
|
|
386
|
+
*
|
|
387
|
+
* @ai-category Pricing, ProductVariant
|
|
388
|
+
* @ai-related getProductVariantCampaignPrice, getProductVariantAppliedCampaignAmount, getProductVariantFormattedFinalPrice
|
|
389
|
+
*
|
|
390
|
+
* @param variant - The product variant whose campaign price to format
|
|
391
|
+
* @returns Formatted campaign price string with currency symbol (e.g., "$14.99")
|
|
392
|
+
*
|
|
393
|
+
* @example
|
|
394
|
+
* ```typescript
|
|
395
|
+
* import { getProductVariantFormattedCampaignPrice, getProductVariantCampaignPrice, getSelectedProductVariant } from "@ikas/bp-storefront";
|
|
396
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
397
|
+
*
|
|
398
|
+
* function CampaignPriceDisplay({ product }: { product: IkasProduct }) {
|
|
399
|
+
* const variant = getSelectedProductVariant(product);
|
|
400
|
+
* const campaignPrice = getProductVariantCampaignPrice(variant);
|
|
401
|
+
*
|
|
402
|
+
* if (campaignPrice !== null) {
|
|
403
|
+
* return <span>Campaign: {getProductVariantFormattedCampaignPrice(variant)}</span>;
|
|
404
|
+
* }
|
|
405
|
+
* return null;
|
|
406
|
+
* }
|
|
407
|
+
* ```
|
|
408
|
+
*/
|
|
409
|
+
export declare function getProductVariantFormattedCampaignPrice(variant: IkasProductVariant): string;
|
|
410
|
+
/**
|
|
411
|
+
* Get the discounted price of a product variant, or null if there is no discount.
|
|
412
|
+
*
|
|
413
|
+
* @ai-category Pricing, ProductVariant
|
|
414
|
+
* @ai-related hasProductVariantDiscount, getProductVariantFormattedDiscountPrice, getProductVariantFinalPrice, getProductVariantSellPrice
|
|
415
|
+
*
|
|
416
|
+
* @param variant - The product variant to check for a discount price
|
|
417
|
+
* @returns The discounted final price as a number, or null if the final price equals the sell price
|
|
418
|
+
*
|
|
419
|
+
* @example
|
|
420
|
+
* ```typescript
|
|
421
|
+
* import { getProductVariantDiscountPrice, getSelectedProductVariant } from "@ikas/bp-storefront";
|
|
422
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
423
|
+
*
|
|
424
|
+
* function DiscountPriceDisplay({ product }: { product: IkasProduct }) {
|
|
425
|
+
* const variant = getSelectedProductVariant(product);
|
|
426
|
+
* const discountPrice = getProductVariantDiscountPrice(variant);
|
|
427
|
+
*
|
|
428
|
+
* if (discountPrice !== null) {
|
|
429
|
+
* return <span className="discount-price">{discountPrice}</span>;
|
|
430
|
+
* }
|
|
431
|
+
* return <span>No discount available</span>;
|
|
432
|
+
* }
|
|
433
|
+
* ```
|
|
434
|
+
*/
|
|
435
|
+
export declare function getProductVariantDiscountPrice(variant: IkasProductVariant): number | null;
|
|
436
|
+
/**
|
|
437
|
+
* Get the formatted discounted price string with currency symbol for a product variant.
|
|
438
|
+
*
|
|
439
|
+
* @ai-category Pricing, ProductVariant
|
|
440
|
+
* @ai-related getProductVariantDiscountPrice, hasProductVariantDiscount, getProductVariantFormattedFinalPrice
|
|
441
|
+
*
|
|
442
|
+
* @param variant - The product variant whose discount price to format
|
|
443
|
+
* @returns Formatted discount price string with currency symbol (e.g., "$17.99")
|
|
444
|
+
*
|
|
445
|
+
* @example
|
|
446
|
+
* ```typescript
|
|
447
|
+
* import { getProductVariantFormattedDiscountPrice, hasProductVariantDiscount, getSelectedProductVariant } from "@ikas/bp-storefront";
|
|
448
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
449
|
+
*
|
|
450
|
+
* function FormattedDiscountPrice({ product }: { product: IkasProduct }) {
|
|
451
|
+
* const variant = getSelectedProductVariant(product);
|
|
452
|
+
*
|
|
453
|
+
* if (hasProductVariantDiscount(variant)) {
|
|
454
|
+
* return <span className="sale-price">{getProductVariantFormattedDiscountPrice(variant)}</span>;
|
|
455
|
+
* }
|
|
456
|
+
* return null;
|
|
457
|
+
* }
|
|
458
|
+
* ```
|
|
459
|
+
*/
|
|
460
|
+
export declare function getProductVariantFormattedDiscountPrice(variant: IkasProductVariant): string;
|
|
461
|
+
/**
|
|
462
|
+
* Check if a variant has a discount applied.
|
|
463
|
+
* Use this to conditionally show sale badges or original prices.
|
|
464
|
+
*
|
|
465
|
+
* @ai-category ProductDetail, ProductList
|
|
466
|
+
* @ai-related getProductVariantDiscountPercentage, getProductVariantFormattedSellPrice, getProductVariantFormattedFinalPrice
|
|
467
|
+
*
|
|
468
|
+
* @param variant - The product variant
|
|
469
|
+
* @returns True if variant has a discount
|
|
470
|
+
*
|
|
471
|
+
* @example
|
|
472
|
+
* ```typescript
|
|
473
|
+
* import { hasProductVariantDiscount, getProductVariantDiscountPercentage, getSelectedProductVariant } from "@ikas/bp-storefront";
|
|
474
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
475
|
+
*
|
|
476
|
+
* function SaleBadge({ product }: { product: IkasProduct }) {
|
|
477
|
+
* const variant = getSelectedProductVariant(product);
|
|
478
|
+
*
|
|
479
|
+
* if (!hasProductVariantDiscount(variant)) {
|
|
480
|
+
* return null;
|
|
481
|
+
* }
|
|
482
|
+
*
|
|
483
|
+
* const discountPercent = getProductVariantDiscountPercentage(variant);
|
|
484
|
+
* return <span className="sale-badge">-{discountPercent}%</span>;
|
|
485
|
+
* }
|
|
486
|
+
* ```
|
|
487
|
+
*/
|
|
488
|
+
export declare function hasProductVariantDiscount(variant: IkasProductVariant): boolean;
|
|
489
|
+
/**
|
|
490
|
+
* Get the formatted discount amount string with currency symbol, showing how much the customer saves.
|
|
491
|
+
*
|
|
492
|
+
* @ai-category Pricing, ProductVariant
|
|
493
|
+
* @ai-related getProductVariantDiscountAmount, hasProductVariantDiscount, getProductVariantDiscountPercentage
|
|
494
|
+
*
|
|
495
|
+
* @param variant - The product variant whose discount amount to format
|
|
496
|
+
* @returns Formatted discount amount string with currency symbol (e.g., "$5.00")
|
|
497
|
+
*
|
|
498
|
+
* @example
|
|
499
|
+
* ```typescript
|
|
500
|
+
* import { getProductVariantFormattedDiscountAmount, hasProductVariantDiscount, getSelectedProductVariant } from "@ikas/bp-storefront";
|
|
501
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
502
|
+
*
|
|
503
|
+
* function SavingsDisplay({ product }: { product: IkasProduct }) {
|
|
504
|
+
* const variant = getSelectedProductVariant(product);
|
|
505
|
+
*
|
|
506
|
+
* if (hasProductVariantDiscount(variant)) {
|
|
507
|
+
* return <span>You save: {getProductVariantFormattedDiscountAmount(variant)}</span>;
|
|
508
|
+
* }
|
|
509
|
+
* return null;
|
|
510
|
+
* }
|
|
511
|
+
* ```
|
|
512
|
+
*/
|
|
513
|
+
export declare function getProductVariantFormattedDiscountAmount(variant: IkasProductVariant): string;
|
|
514
|
+
/**
|
|
515
|
+
* Get the absolute discount amount for a variant.
|
|
516
|
+
*
|
|
517
|
+
* @ai-category ProductDetail
|
|
518
|
+
* @ai-related hasProductVariantDiscount, getProductVariantDiscountPercentage, getProductVariantFormattedDiscountAmount
|
|
519
|
+
*
|
|
520
|
+
* @param variant - The product variant
|
|
521
|
+
* @returns Discount amount as a number (0 if no discount)
|
|
522
|
+
*
|
|
523
|
+
* @example
|
|
524
|
+
* ```typescript
|
|
525
|
+
* import { getProductVariantDiscountAmount, getSelectedProductVariant } from "@ikas/bp-storefront";
|
|
526
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
527
|
+
*
|
|
528
|
+
* function SavingsDisplay({ product }: { product: IkasProduct }) {
|
|
529
|
+
* const variant = getSelectedProductVariant(product);
|
|
530
|
+
* const savings = getProductVariantDiscountAmount(variant);
|
|
531
|
+
*
|
|
532
|
+
* if (savings > 0) {
|
|
533
|
+
* return <p>You save: ${savings.toFixed(2)}</p>;
|
|
534
|
+
* }
|
|
535
|
+
* return null;
|
|
536
|
+
* }
|
|
537
|
+
* ```
|
|
538
|
+
*/
|
|
539
|
+
export declare function getProductVariantDiscountAmount(variant: IkasProductVariant): number;
|
|
540
|
+
/**
|
|
541
|
+
* Get the discount percentage for a variant.
|
|
542
|
+
* Returns a string like "20" for a 20% discount.
|
|
543
|
+
*
|
|
544
|
+
* @ai-category ProductDetail, ProductList
|
|
545
|
+
* @ai-related hasProductVariantDiscount, getProductVariantDiscountAmount
|
|
546
|
+
*
|
|
547
|
+
* @param variant - The product variant
|
|
548
|
+
* @returns Discount percentage as a string (e.g., "20")
|
|
549
|
+
*
|
|
550
|
+
* @example
|
|
551
|
+
* ```typescript
|
|
552
|
+
* import { getProductVariantDiscountPercentage, hasProductVariantDiscount, getSelectedProductVariant } from "@ikas/bp-storefront";
|
|
553
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
554
|
+
*
|
|
555
|
+
* function DiscountBadge({ product }: { product: IkasProduct }) {
|
|
556
|
+
* const variant = getSelectedProductVariant(product);
|
|
557
|
+
*
|
|
558
|
+
* if (!hasProductVariantDiscount(variant)) {
|
|
559
|
+
* return null;
|
|
560
|
+
* }
|
|
561
|
+
*
|
|
562
|
+
* return (
|
|
563
|
+
* <div className="discount-badge">
|
|
564
|
+
* Save {getProductVariantDiscountPercentage(variant)}%
|
|
565
|
+
* </div>
|
|
566
|
+
* );
|
|
567
|
+
* }
|
|
568
|
+
* ```
|
|
569
|
+
*/
|
|
570
|
+
export declare function getProductVariantDiscountPercentage(variant: IkasProductVariant): string;
|
|
571
|
+
/**
|
|
572
|
+
* Get the final price of a product variant including prices from selected campaign offer products.
|
|
573
|
+
*
|
|
574
|
+
* @ai-category Pricing, ProductVariant
|
|
575
|
+
* @ai-related getProductVariantFormattedFinalPriceWithCampaignOffers, getProductVariantSellPriceWithCampaignOffers, getProductVariantFinalPrice
|
|
576
|
+
*
|
|
577
|
+
* @param variant - The product variant whose total final price with campaign offers to calculate
|
|
578
|
+
* @returns The total final price including all selected campaign offer products
|
|
579
|
+
*
|
|
580
|
+
* @example
|
|
581
|
+
* ```typescript
|
|
582
|
+
* import { getProductVariantFinalPriceWithCampaignOffers, getSelectedProductVariant } from "@ikas/bp-storefront";
|
|
583
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
584
|
+
*
|
|
585
|
+
* function TotalWithOffers({ product }: { product: IkasProduct }) {
|
|
586
|
+
* const variant = getSelectedProductVariant(product);
|
|
587
|
+
* const totalPrice = getProductVariantFinalPriceWithCampaignOffers(variant);
|
|
588
|
+
*
|
|
589
|
+
* return <span>Total with offers: {totalPrice}</span>;
|
|
590
|
+
* }
|
|
591
|
+
* ```
|
|
592
|
+
*/
|
|
593
|
+
export declare function getProductVariantFinalPriceWithCampaignOffers(variant: IkasProductVariant): number;
|
|
594
|
+
/**
|
|
595
|
+
* Get the formatted final price string with currency symbol, including selected campaign offer products.
|
|
596
|
+
*
|
|
597
|
+
* @ai-category Pricing, ProductVariant
|
|
598
|
+
* @ai-related getProductVariantFinalPriceWithCampaignOffers, getProductVariantFormattedSellPriceWithCampaignOffers, getProductVariantFormattedFinalPrice
|
|
599
|
+
*
|
|
600
|
+
* @param variant - The product variant whose formatted total price with campaign offers to retrieve
|
|
601
|
+
* @returns Formatted total price string with currency symbol (e.g., "$34.99")
|
|
602
|
+
*
|
|
603
|
+
* @example
|
|
604
|
+
* ```typescript
|
|
605
|
+
* import { getProductVariantFormattedFinalPriceWithCampaignOffers, getSelectedProductVariant } from "@ikas/bp-storefront";
|
|
606
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
607
|
+
*
|
|
608
|
+
* function FormattedTotalWithOffers({ product }: { product: IkasProduct }) {
|
|
609
|
+
* const variant = getSelectedProductVariant(product);
|
|
610
|
+
*
|
|
611
|
+
* return (
|
|
612
|
+
* <span className="total-price">
|
|
613
|
+
* {getProductVariantFormattedFinalPriceWithCampaignOffers(variant)}
|
|
614
|
+
* </span>
|
|
615
|
+
* );
|
|
616
|
+
* }
|
|
617
|
+
* ```
|
|
618
|
+
*/
|
|
619
|
+
export declare function getProductVariantFormattedFinalPriceWithCampaignOffers(variant: IkasProductVariant): string;
|
|
620
|
+
/**
|
|
621
|
+
* Get the original sell price of a product variant including prices from selected campaign offer products.
|
|
622
|
+
*
|
|
623
|
+
* @ai-category Pricing, ProductVariant
|
|
624
|
+
* @ai-related getProductVariantFormattedSellPriceWithCampaignOffers, getProductVariantFinalPriceWithCampaignOffers, getProductVariantSellPrice
|
|
625
|
+
*
|
|
626
|
+
* @param variant - The product variant whose total sell price with campaign offers to calculate
|
|
627
|
+
* @returns The total sell price including all selected campaign offer products
|
|
628
|
+
*
|
|
629
|
+
* @example
|
|
630
|
+
* ```typescript
|
|
631
|
+
* import { getProductVariantSellPriceWithCampaignOffers, getSelectedProductVariant } from "@ikas/bp-storefront";
|
|
632
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
633
|
+
*
|
|
634
|
+
* function OriginalTotalWithOffers({ product }: { product: IkasProduct }) {
|
|
635
|
+
* const variant = getSelectedProductVariant(product);
|
|
636
|
+
* const totalSellPrice = getProductVariantSellPriceWithCampaignOffers(variant);
|
|
637
|
+
*
|
|
638
|
+
* return <span>Original total: {totalSellPrice}</span>;
|
|
639
|
+
* }
|
|
640
|
+
* ```
|
|
641
|
+
*/
|
|
642
|
+
export declare function getProductVariantSellPriceWithCampaignOffers(variant: IkasProductVariant): number;
|
|
643
|
+
/**
|
|
644
|
+
* Get the formatted original sell price string with currency symbol, including selected campaign offer products.
|
|
645
|
+
*
|
|
646
|
+
* @ai-category Pricing, ProductVariant
|
|
647
|
+
* @ai-related getProductVariantSellPriceWithCampaignOffers, getProductVariantFormattedFinalPriceWithCampaignOffers, getProductVariantFormattedSellPrice
|
|
648
|
+
*
|
|
649
|
+
* @param variant - The product variant whose formatted total sell price with campaign offers to retrieve
|
|
650
|
+
* @returns Formatted total sell price string with currency symbol (e.g., "$49.99")
|
|
651
|
+
*
|
|
652
|
+
* @example
|
|
653
|
+
* ```typescript
|
|
654
|
+
* import {
|
|
655
|
+
* getProductVariantFormattedSellPriceWithCampaignOffers,
|
|
656
|
+
* getProductVariantFormattedFinalPriceWithCampaignOffers,
|
|
657
|
+
* getSelectedProductVariant
|
|
658
|
+
* } from "@ikas/bp-storefront";
|
|
659
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
660
|
+
*
|
|
661
|
+
* function PriceWithOffers({ product }: { product: IkasProduct }) {
|
|
662
|
+
* const variant = getSelectedProductVariant(product);
|
|
663
|
+
*
|
|
664
|
+
* return (
|
|
665
|
+
* <div>
|
|
666
|
+
* <span style={{ textDecoration: "line-through" }}>
|
|
667
|
+
* {getProductVariantFormattedSellPriceWithCampaignOffers(variant)}
|
|
668
|
+
* </span>
|
|
669
|
+
* <span>{getProductVariantFormattedFinalPriceWithCampaignOffers(variant)}</span>
|
|
670
|
+
* </div>
|
|
671
|
+
* );
|
|
672
|
+
* }
|
|
673
|
+
* ```
|
|
674
|
+
*/
|
|
675
|
+
export declare function getProductVariantFormattedSellPriceWithCampaignOffers(variant: IkasProductVariant): string;
|
|
676
|
+
/**
|
|
677
|
+
* Get the discount percentage when campaign offer products are included in the total price calculation.
|
|
678
|
+
*
|
|
679
|
+
* @ai-category Pricing, ProductVariant
|
|
680
|
+
* @ai-related getProductVariantFinalPriceWithCampaignOffers, getProductVariantSellPriceWithCampaignOffers, getProductVariantDiscountPercentage
|
|
681
|
+
*
|
|
682
|
+
* @param variant - The product variant whose campaign offers discount percentage to calculate
|
|
683
|
+
* @returns The discount percentage as a number (e.g., 20 for 20%), or 0 if there is no discount
|
|
684
|
+
*
|
|
685
|
+
* @example
|
|
686
|
+
* ```typescript
|
|
687
|
+
* import { getProductVariantCampaignOffersDiscountPercentage, getSelectedProductVariant } from "@ikas/bp-storefront";
|
|
688
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
689
|
+
*
|
|
690
|
+
* function CampaignOffersDiscount({ product }: { product: IkasProduct }) {
|
|
691
|
+
* const variant = getSelectedProductVariant(product);
|
|
692
|
+
* const discountPercent = getProductVariantCampaignOffersDiscountPercentage(variant);
|
|
693
|
+
*
|
|
694
|
+
* if (discountPercent > 0) {
|
|
695
|
+
* return <span className="discount-badge">-{discountPercent}%</span>;
|
|
696
|
+
* }
|
|
697
|
+
* return null;
|
|
698
|
+
* }
|
|
699
|
+
* ```
|
|
700
|
+
*/
|
|
701
|
+
export declare function getProductVariantCampaignOffersDiscountPercentage(variant: IkasProductVariant): number;
|
|
702
|
+
/**
|
|
703
|
+
* Check if the back-in-stock notification feature is enabled for the storefront.
|
|
704
|
+
*
|
|
705
|
+
* @ai-category Stock, Inventory
|
|
706
|
+
* @ai-related getProductVariantIsBackInStockCustomerLoginRequired, saveProductVariantBackInStockReminder, getProductVariantBackInStockForm, hasProductVariantStock
|
|
707
|
+
*
|
|
708
|
+
* @param variant - The product variant (used for context)
|
|
709
|
+
* @returns True if back-in-stock notifications are enabled in the storefront configuration
|
|
710
|
+
*
|
|
711
|
+
* @example
|
|
712
|
+
* ```typescript
|
|
713
|
+
* import { getProductVariantIsBackInStockEnabled, hasProductVariantStock, getSelectedProductVariant } from "@ikas/bp-storefront";
|
|
714
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
715
|
+
*
|
|
716
|
+
* function BackInStockSection({ product }: { product: IkasProduct }) {
|
|
717
|
+
* const variant = getSelectedProductVariant(product);
|
|
718
|
+
*
|
|
719
|
+
* if (!hasProductVariantStock(variant) && getProductVariantIsBackInStockEnabled(variant)) {
|
|
720
|
+
* return <div>Sign up to be notified when this item is back in stock!</div>;
|
|
721
|
+
* }
|
|
722
|
+
* return null;
|
|
723
|
+
* }
|
|
724
|
+
* ```
|
|
725
|
+
*/
|
|
726
|
+
export declare function getProductVariantIsBackInStockEnabled(variant: IkasProductVariant): boolean;
|
|
727
|
+
/**
|
|
728
|
+
* Check if customer login is required to subscribe to back-in-stock notifications.
|
|
729
|
+
*
|
|
730
|
+
* @ai-category Stock, Inventory
|
|
731
|
+
* @ai-related getProductVariantIsBackInStockEnabled, saveProductVariantBackInStockReminder, getProductVariantBackInStockForm
|
|
732
|
+
*
|
|
733
|
+
* @param variant - The product variant (used for context)
|
|
734
|
+
* @returns True if customer login is required for back-in-stock notification subscriptions
|
|
735
|
+
*
|
|
736
|
+
* @example
|
|
737
|
+
* ```typescript
|
|
738
|
+
* import {
|
|
739
|
+
* getProductVariantIsBackInStockCustomerLoginRequired,
|
|
740
|
+
* getProductVariantIsBackInStockEnabled,
|
|
741
|
+
* getSelectedProductVariant
|
|
742
|
+
* } from "@ikas/bp-storefront";
|
|
743
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
744
|
+
*
|
|
745
|
+
* function BackInStockForm({ product }: { product: IkasProduct }) {
|
|
746
|
+
* const variant = getSelectedProductVariant(product);
|
|
747
|
+
*
|
|
748
|
+
* if (!getProductVariantIsBackInStockEnabled(variant)) return null;
|
|
749
|
+
*
|
|
750
|
+
* if (getProductVariantIsBackInStockCustomerLoginRequired(variant)) {
|
|
751
|
+
* return <p>Please log in to subscribe to back-in-stock notifications.</p>;
|
|
752
|
+
* }
|
|
753
|
+
* return <input type="email" placeholder="Enter your email" />;
|
|
754
|
+
* }
|
|
755
|
+
* ```
|
|
756
|
+
*/
|
|
757
|
+
export declare function getProductVariantIsBackInStockCustomerLoginRequired(variant: IkasProductVariant): boolean | null | undefined;
|
|
758
|
+
/**
|
|
759
|
+
* Save a back-in-stock reminder for a product variant, notifying the customer via email when stock is replenished.
|
|
760
|
+
*
|
|
761
|
+
* @ai-category Stock, Inventory
|
|
762
|
+
* @ai-related getProductVariantIsBackInStockEnabled, getProductVariantIsBackInStockCustomerLoginRequired, getProductVariantBackInStockForm, hasProductVariantStock
|
|
763
|
+
*
|
|
764
|
+
* @param variant - The out-of-stock product variant to watch
|
|
765
|
+
* @param email - The email address to notify when the product is back in stock
|
|
766
|
+
* @returns True if the reminder was successfully created, false if it already exists or creation failed
|
|
767
|
+
*
|
|
768
|
+
* @example
|
|
769
|
+
* ```typescript
|
|
770
|
+
* import { saveProductVariantBackInStockReminder, getSelectedProductVariant } from "@ikas/bp-storefront";
|
|
771
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
772
|
+
*
|
|
773
|
+
* async function handleBackInStockSubmit(product: IkasProduct, email: string) {
|
|
774
|
+
* const variant = getSelectedProductVariant(product);
|
|
775
|
+
* const success = await saveProductVariantBackInStockReminder(variant, email);
|
|
776
|
+
*
|
|
777
|
+
* if (success) {
|
|
778
|
+
* alert("You will be notified when this product is back in stock!");
|
|
779
|
+
* } else {
|
|
780
|
+
* alert("A reminder already exists or could not be created.");
|
|
781
|
+
* }
|
|
782
|
+
* }
|
|
783
|
+
* ```
|
|
784
|
+
*/
|
|
785
|
+
export declare function saveProductVariantBackInStockReminder(variant: IkasProductVariant, email: string): Promise<boolean>;
|
|
786
|
+
/**
|
|
787
|
+
* Get the formatted unit price text for a product variant, including the base amount and unit name.
|
|
788
|
+
*
|
|
789
|
+
* @ai-category Pricing, ProductVariant
|
|
790
|
+
* @ai-related getProductVariantPrice, getProductVariantFormattedFinalPrice
|
|
791
|
+
*
|
|
792
|
+
* @param variant - The product variant whose unit price text to generate
|
|
793
|
+
* @returns A formatted string like "$2.50 / 100g", or undefined if no unit price or base unit is set, or "0" if the product is not found
|
|
794
|
+
*
|
|
795
|
+
* @example
|
|
796
|
+
* ```typescript
|
|
797
|
+
* import { getProductVariantUnitPriceText, getSelectedProductVariant } from "@ikas/bp-storefront";
|
|
798
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
799
|
+
*
|
|
800
|
+
* function UnitPriceDisplay({ product }: { product: IkasProduct }) {
|
|
801
|
+
* const variant = getSelectedProductVariant(product);
|
|
802
|
+
* const unitPriceText = getProductVariantUnitPriceText(variant);
|
|
803
|
+
*
|
|
804
|
+
* if (unitPriceText) {
|
|
805
|
+
* return <span className="unit-price">{unitPriceText}</span>;
|
|
806
|
+
* }
|
|
807
|
+
* return null;
|
|
808
|
+
* }
|
|
809
|
+
* ```
|
|
810
|
+
*/
|
|
811
|
+
export declare function getProductVariantUnitPriceText(variant: IkasProductVariant): string | undefined;
|
|
812
|
+
/**
|
|
813
|
+
* Get or initialize the back-in-stock notification form for a product variant.
|
|
814
|
+
*
|
|
815
|
+
* @ai-category Stock, Inventory
|
|
816
|
+
* @ai-related clearProductVariantBackInStockForm, saveProductVariantBackInStockReminder, getProductVariantIsBackInStockEnabled
|
|
817
|
+
*
|
|
818
|
+
* @param variant - The product variant whose back-in-stock form to retrieve or create
|
|
819
|
+
* @returns The BackInStockNotificationForm instance for the variant
|
|
820
|
+
*
|
|
821
|
+
* @example
|
|
822
|
+
* ```typescript
|
|
823
|
+
* import { getProductVariantBackInStockForm, getSelectedProductVariant } from "@ikas/bp-storefront";
|
|
824
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
825
|
+
*
|
|
826
|
+
* function BackInStockFormComponent({ product }: { product: IkasProduct }) {
|
|
827
|
+
* const variant = getSelectedProductVariant(product);
|
|
828
|
+
* const form = getProductVariantBackInStockForm(variant);
|
|
829
|
+
*
|
|
830
|
+
* return (
|
|
831
|
+
* <form>
|
|
832
|
+
* <input
|
|
833
|
+
* type="email"
|
|
834
|
+
* value={form.email}
|
|
835
|
+
* placeholder="Enter your email"
|
|
836
|
+
* />
|
|
837
|
+
* <button type="submit">Notify Me</button>
|
|
838
|
+
* </form>
|
|
839
|
+
* );
|
|
840
|
+
* }
|
|
841
|
+
* ```
|
|
842
|
+
*/
|
|
843
|
+
export declare function getProductVariantBackInStockForm(variant: IkasProductVariant): BackInStockNotificationForm;
|
|
844
|
+
/**
|
|
845
|
+
* Clear and remove the back-in-stock notification form data for a product variant.
|
|
846
|
+
*
|
|
847
|
+
* @ai-category Stock, Inventory
|
|
848
|
+
* @ai-related getProductVariantBackInStockForm, saveProductVariantBackInStockReminder, getProductVariantIsBackInStockEnabled
|
|
849
|
+
*
|
|
850
|
+
* @param variant - The product variant whose back-in-stock form to clear
|
|
851
|
+
* @returns void
|
|
852
|
+
*
|
|
853
|
+
* @example
|
|
854
|
+
* ```typescript
|
|
855
|
+
* import { clearProductVariantBackInStockForm, saveProductVariantBackInStockReminder, getSelectedProductVariant } from "@ikas/bp-storefront";
|
|
856
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
857
|
+
*
|
|
858
|
+
* async function handleSubmitAndReset(product: IkasProduct, email: string) {
|
|
859
|
+
* const variant = getSelectedProductVariant(product);
|
|
860
|
+
* const success = await saveProductVariantBackInStockReminder(variant, email);
|
|
861
|
+
*
|
|
862
|
+
* if (success) {
|
|
863
|
+
* clearProductVariantBackInStockForm(variant);
|
|
864
|
+
* }
|
|
865
|
+
* }
|
|
866
|
+
* ```
|
|
867
|
+
*/
|
|
868
|
+
export declare function clearProductVariantBackInStockForm(variant: IkasProductVariant): void;
|