@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,1055 @@
|
|
|
1
|
+
import { CustomerReviewForm, IkasBundleProduct, IkasDisplayedProductGroup, IkasDisplayedVariantType, IkasProduct, IkasProductAttributeMap, IkasProductVariant, IkasVariantValue } from "../../../../../storefront-models/src";
|
|
2
|
+
/**
|
|
3
|
+
* Initialize product state on the browser by reading variant selections from URL parameters.
|
|
4
|
+
* Sets the selected variant values based on `vid` query param or variant type slugs in the URL.
|
|
5
|
+
*
|
|
6
|
+
* @ai-category Product, ProductDetail
|
|
7
|
+
* @ai-related getSelectedProductVariant, selectVariantValue, initIkasProductExtraFields
|
|
8
|
+
*
|
|
9
|
+
* @param product - The product instance to initialize (modified in place)
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import { initProductOnBrowser } from "@ikas/bp-storefront";
|
|
14
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
15
|
+
*
|
|
16
|
+
* function initProduct(product: IkasProduct) {
|
|
17
|
+
* initProductOnBrowser(product);
|
|
18
|
+
* // product.selectedVariantValues is now set based on URL params
|
|
19
|
+
* }
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function initProductOnBrowser(product: IkasProduct): void;
|
|
23
|
+
/**
|
|
24
|
+
* Check if a product has multiple variants (e.g., different sizes or colors).
|
|
25
|
+
*
|
|
26
|
+
* @ai-category ProductDetail, ProductList
|
|
27
|
+
* @ai-related getSelectedProductVariant, getDisplayedProductVariantTypes
|
|
28
|
+
*
|
|
29
|
+
* @param product - The product to check
|
|
30
|
+
* @param showVariantsInGroup - Whether to consider product group variants
|
|
31
|
+
* @returns True if product has variants, false otherwise
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```typescript
|
|
35
|
+
* import { hasProductVariant } from "@ikas/bp-storefront";
|
|
36
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
37
|
+
*
|
|
38
|
+
* function ProductCard({ product }: { product: IkasProduct }) {
|
|
39
|
+
* const hasVariants = hasProductVariant(product);
|
|
40
|
+
*
|
|
41
|
+
* return (
|
|
42
|
+
* <div>
|
|
43
|
+
* {hasVariants && <span>Multiple options available</span>}
|
|
44
|
+
* </div>
|
|
45
|
+
* );
|
|
46
|
+
* }
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
export declare function hasProductVariant(product: IkasProduct, showVariantsInGroup?: boolean): boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Check if any variant of a product has stock available.
|
|
52
|
+
*
|
|
53
|
+
* @ai-category ProductDetail, ProductList
|
|
54
|
+
* @ai-related hasProductVariantStock, getSelectedProductVariant
|
|
55
|
+
*
|
|
56
|
+
* @param product - The product to check
|
|
57
|
+
* @returns True if any variant has stock, false otherwise
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```typescript
|
|
61
|
+
* import { hasProductStock } from "@ikas/bp-storefront";
|
|
62
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
63
|
+
*
|
|
64
|
+
* function ProductCard({ product }: { product: IkasProduct }) {
|
|
65
|
+
* const inStock = hasProductStock(product);
|
|
66
|
+
*
|
|
67
|
+
* return (
|
|
68
|
+
* <div>
|
|
69
|
+
* {!inStock && <span className="out-of-stock">Out of Stock</span>}
|
|
70
|
+
* </div>
|
|
71
|
+
* );
|
|
72
|
+
* }
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
export declare function hasProductStock(product: IkasProduct): boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Check if all required product options have been selected.
|
|
78
|
+
* Used to validate before adding to cart.
|
|
79
|
+
*
|
|
80
|
+
* @ai-category ProductDetail
|
|
81
|
+
* @ai-related addItemToCart, getSelectedProductVariant
|
|
82
|
+
*
|
|
83
|
+
* @param product - The product to validate
|
|
84
|
+
* @returns True if all required options are selected, false otherwise
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* ```typescript
|
|
88
|
+
* import { hasProductValidOptionValues, addItemToCart, getSelectedProductVariant } from "@ikas/bp-storefront";
|
|
89
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
90
|
+
*
|
|
91
|
+
* async function handleAddToCart(product: IkasProduct) {
|
|
92
|
+
* if (!hasProductValidOptionValues(product)) {
|
|
93
|
+
* showToast("Please select all required options");
|
|
94
|
+
* return;
|
|
95
|
+
* }
|
|
96
|
+
*
|
|
97
|
+
* const variant = getSelectedProductVariant(product);
|
|
98
|
+
* await addItemToCart(variant, product, 1);
|
|
99
|
+
* }
|
|
100
|
+
* ```
|
|
101
|
+
*/
|
|
102
|
+
export declare function hasProductValidOptionValues(product: IkasProduct): boolean;
|
|
103
|
+
/**
|
|
104
|
+
* Get the currently selected product variant based on selected variant values.
|
|
105
|
+
* This is the primary function for getting the variant to add to cart.
|
|
106
|
+
*
|
|
107
|
+
* @ai-category ProductDetail, ProductList, Cart
|
|
108
|
+
* @ai-related addItemToCart, hasProductVariantStock, getProductVariantFormattedFinalPrice
|
|
109
|
+
*
|
|
110
|
+
* @param product - The product with selectedVariantValues set
|
|
111
|
+
* @returns The matching product variant
|
|
112
|
+
*
|
|
113
|
+
* @example
|
|
114
|
+
* ```typescript
|
|
115
|
+
* import {
|
|
116
|
+
* getSelectedProductVariant,
|
|
117
|
+
* hasProductVariantStock,
|
|
118
|
+
* getProductVariantFormattedFinalPrice
|
|
119
|
+
* } from "@ikas/bp-storefront";
|
|
120
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
121
|
+
*
|
|
122
|
+
* function ProductDetail({ product }: { product: IkasProduct }) {
|
|
123
|
+
* const selectedVariant = getSelectedProductVariant(product);
|
|
124
|
+
*
|
|
125
|
+
* return (
|
|
126
|
+
* <div>
|
|
127
|
+
* <p>Price: {getProductVariantFormattedFinalPrice(selectedVariant)}</p>
|
|
128
|
+
* <p>In Stock: {hasProductVariantStock(selectedVariant) ? "Yes" : "No"}</p>
|
|
129
|
+
* </div>
|
|
130
|
+
* );
|
|
131
|
+
* }
|
|
132
|
+
* ```
|
|
133
|
+
*/
|
|
134
|
+
export declare function getSelectedProductVariant(product: IkasProduct): IkasProductVariant;
|
|
135
|
+
/**
|
|
136
|
+
* Get the first (main) selected variant value for a product.
|
|
137
|
+
* Useful for displaying the primary variant selection such as color or size.
|
|
138
|
+
*
|
|
139
|
+
* @ai-category ProductDetail, Variant
|
|
140
|
+
* @ai-related getMainProductVariantType, getSelectedProductVariant, selectVariantValue
|
|
141
|
+
*
|
|
142
|
+
* @param product - The product to get the main variant value from
|
|
143
|
+
* @returns The first selected variant value, or undefined if none selected
|
|
144
|
+
*
|
|
145
|
+
* @example
|
|
146
|
+
* ```typescript
|
|
147
|
+
* import { getMainProductVariantValue } from "@ikas/bp-storefront";
|
|
148
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
149
|
+
*
|
|
150
|
+
* function ProductCard({ product }: { product: IkasProduct }) {
|
|
151
|
+
* const mainValue = getMainProductVariantValue(product);
|
|
152
|
+
* return <span>{mainValue?.name}</span>;
|
|
153
|
+
* }
|
|
154
|
+
* ```
|
|
155
|
+
*/
|
|
156
|
+
export declare function getMainProductVariantValue(product: IkasProduct): IkasVariantValue | undefined;
|
|
157
|
+
/**
|
|
158
|
+
* Get the first (main) variant type for a product (e.g., "Color" or "Size").
|
|
159
|
+
* Returns undefined if the product has no variants.
|
|
160
|
+
*
|
|
161
|
+
* @ai-category ProductDetail, Variant
|
|
162
|
+
* @ai-related getMainProductVariantValue, getDisplayedProductVariantTypes, hasProductVariant
|
|
163
|
+
*
|
|
164
|
+
* @param product - The product to get the main variant type from
|
|
165
|
+
* @returns The first variant type, or undefined if the product has no variants
|
|
166
|
+
*
|
|
167
|
+
* @example
|
|
168
|
+
* ```typescript
|
|
169
|
+
* import { getMainProductVariantType } from "@ikas/bp-storefront";
|
|
170
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
171
|
+
*
|
|
172
|
+
* function ProductCard({ product }: { product: IkasProduct }) {
|
|
173
|
+
* const mainType = getMainProductVariantType(product);
|
|
174
|
+
* if (mainType) {
|
|
175
|
+
* return <span>{mainType.name}: {mainType.values.length} options</span>;
|
|
176
|
+
* }
|
|
177
|
+
* return null;
|
|
178
|
+
* }
|
|
179
|
+
* ```
|
|
180
|
+
*/
|
|
181
|
+
export declare function getMainProductVariantType(product: IkasProduct): import("../../../../../storefront-models/src").IkasVariantType | undefined;
|
|
182
|
+
/**
|
|
183
|
+
* Get the URL for the currently selected product variant.
|
|
184
|
+
* Includes variant selection parameters in the URL.
|
|
185
|
+
*
|
|
186
|
+
* @ai-category ProductDetail, Navigation
|
|
187
|
+
* @ai-related getProductHref, Router.navigate
|
|
188
|
+
*
|
|
189
|
+
* @param product - The product with selectedVariantValues set
|
|
190
|
+
* @returns The full URL path including variant parameters
|
|
191
|
+
*
|
|
192
|
+
* @example
|
|
193
|
+
* ```typescript
|
|
194
|
+
* import { getSelectedProductVariantHref } from "@ikas/bp-storefront";
|
|
195
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
196
|
+
*
|
|
197
|
+
* function ProductLink({ product }: { product: IkasProduct }) {
|
|
198
|
+
* const href = getSelectedProductVariantHref(product);
|
|
199
|
+
* return <a href={href}>View Product</a>;
|
|
200
|
+
* }
|
|
201
|
+
* ```
|
|
202
|
+
*/
|
|
203
|
+
export declare function getSelectedProductVariantHref(product: IkasProduct): string;
|
|
204
|
+
/**
|
|
205
|
+
* Get the base URL for a product (without variant parameters).
|
|
206
|
+
*
|
|
207
|
+
* @ai-category ProductList, Navigation
|
|
208
|
+
* @ai-related getSelectedProductVariantHref, Router.navigate
|
|
209
|
+
*
|
|
210
|
+
* @param product - The product to get URL for
|
|
211
|
+
* @returns The product URL path
|
|
212
|
+
*
|
|
213
|
+
* @example
|
|
214
|
+
* ```typescript
|
|
215
|
+
* import { getProductHref } from "@ikas/bp-storefront";
|
|
216
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
217
|
+
*
|
|
218
|
+
* function ProductCard({ product }: { product: IkasProduct }) {
|
|
219
|
+
* return (
|
|
220
|
+
* <a href={getProductHref(product)}>
|
|
221
|
+
* <img src={product.images[0]?.src} alt={product.name} />
|
|
222
|
+
* <h3>{product.name}</h3>
|
|
223
|
+
* </a>
|
|
224
|
+
* );
|
|
225
|
+
* }
|
|
226
|
+
* ```
|
|
227
|
+
*/
|
|
228
|
+
export declare function getProductHref(product: IkasProduct): string;
|
|
229
|
+
/**
|
|
230
|
+
* Get variant types with their available values for building variant selectors.
|
|
231
|
+
* Returns data needed to render size/color/etc. selection UI.
|
|
232
|
+
*
|
|
233
|
+
* @ai-category ProductDetail
|
|
234
|
+
* @ai-related selectVariantValue, getSelectedProductVariant
|
|
235
|
+
*
|
|
236
|
+
* @param product - The product to get variant types for
|
|
237
|
+
* @returns Array of variant types with their displayable values
|
|
238
|
+
*
|
|
239
|
+
* @example
|
|
240
|
+
* ```typescript
|
|
241
|
+
* import { getDisplayedProductVariantTypes, selectVariantValue } from "@ikas/bp-storefront";
|
|
242
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
243
|
+
*
|
|
244
|
+
* function VariantSelector({ product }: { product: IkasProduct }) {
|
|
245
|
+
* const variantTypes = getDisplayedProductVariantTypes(product);
|
|
246
|
+
*
|
|
247
|
+
* return (
|
|
248
|
+
* <div>
|
|
249
|
+
* {variantTypes.map(vt => (
|
|
250
|
+
* <div key={vt.variantType.id}>
|
|
251
|
+
* <label>{vt.variantType.name}</label>
|
|
252
|
+
* <div>
|
|
253
|
+
* {vt.displayedVariantValues.map(dvv => (
|
|
254
|
+
* <button
|
|
255
|
+
* key={dvv.variantValue.id}
|
|
256
|
+
* className={dvv.isSelected ? "selected" : ""}
|
|
257
|
+
* disabled={!dvv.hasStock}
|
|
258
|
+
* onClick={() => selectVariantValue(product, dvv.variantValue)}
|
|
259
|
+
* >
|
|
260
|
+
* {dvv.variantValue.name}
|
|
261
|
+
* {!dvv.hasStock && " (Out of stock)"}
|
|
262
|
+
* </button>
|
|
263
|
+
* ))}
|
|
264
|
+
* </div>
|
|
265
|
+
* </div>
|
|
266
|
+
* ))}
|
|
267
|
+
* </div>
|
|
268
|
+
* );
|
|
269
|
+
* }
|
|
270
|
+
* ```
|
|
271
|
+
*/
|
|
272
|
+
export declare function getDisplayedProductVariantTypes(product: IkasProduct): IkasDisplayedVariantType[];
|
|
273
|
+
/**
|
|
274
|
+
* Check whether the "Add to Cart" action should be enabled for a product.
|
|
275
|
+
* Validates that all required option values are selected and the selected variant has stock (or allows overselling).
|
|
276
|
+
*
|
|
277
|
+
* @ai-category ProductDetail, Cart
|
|
278
|
+
* @ai-related hasProductValidOptionValues, hasProductVariantStock, getSelectedProductVariant
|
|
279
|
+
*
|
|
280
|
+
* @param product - The product to check
|
|
281
|
+
* @returns True if the product can be added to cart, false otherwise
|
|
282
|
+
*
|
|
283
|
+
* @example
|
|
284
|
+
* ```typescript
|
|
285
|
+
* import { isAddToCartEnabled } from "@ikas/bp-storefront";
|
|
286
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
287
|
+
*
|
|
288
|
+
* function AddToCartButton({ product }: { product: IkasProduct }) {
|
|
289
|
+
* const enabled = isAddToCartEnabled(product);
|
|
290
|
+
* return (
|
|
291
|
+
* <button disabled={!enabled}>
|
|
292
|
+
* {enabled ? "Add to Cart" : "Unavailable"}
|
|
293
|
+
* </button>
|
|
294
|
+
* );
|
|
295
|
+
* }
|
|
296
|
+
* ```
|
|
297
|
+
*/
|
|
298
|
+
export declare function isAddToCartEnabled(product: IkasProduct): boolean;
|
|
299
|
+
/**
|
|
300
|
+
* Check if customer reviews are enabled for the storefront.
|
|
301
|
+
*
|
|
302
|
+
* @ai-category Product, ProductDetail
|
|
303
|
+
* @ai-related isCustomerReviewLoginRequired, getIkasProductCustomerReviewForm
|
|
304
|
+
*
|
|
305
|
+
* @param product - The product to check (currently unused; reads from storefront config)
|
|
306
|
+
* @returns True if customer reviews are enabled in the storefront configuration
|
|
307
|
+
*
|
|
308
|
+
* @example
|
|
309
|
+
* ```typescript
|
|
310
|
+
* import { isCustomerReviewEnabled } from "@ikas/bp-storefront";
|
|
311
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
312
|
+
*
|
|
313
|
+
* function ProductReviews({ product }: { product: IkasProduct }) {
|
|
314
|
+
* if (!isCustomerReviewEnabled(product)) return null;
|
|
315
|
+
* return <div>Reviews section...</div>;
|
|
316
|
+
* }
|
|
317
|
+
* ```
|
|
318
|
+
*/
|
|
319
|
+
export declare function isCustomerReviewEnabled(product: IkasProduct): boolean;
|
|
320
|
+
/**
|
|
321
|
+
* Check if customers must be logged in to leave a review.
|
|
322
|
+
*
|
|
323
|
+
* @ai-category Product, ProductDetail
|
|
324
|
+
* @ai-related isCustomerReviewEnabled, getIkasProductCustomerReviewForm
|
|
325
|
+
*
|
|
326
|
+
* @param product - The product to check (currently unused; reads from storefront config)
|
|
327
|
+
* @returns True if login is required for leaving reviews
|
|
328
|
+
*
|
|
329
|
+
* @example
|
|
330
|
+
* ```typescript
|
|
331
|
+
* import { isCustomerReviewLoginRequired, isCustomerReviewEnabled, customerStore } from "@ikas/bp-storefront";
|
|
332
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
333
|
+
*
|
|
334
|
+
* function ReviewForm({ product }: { product: IkasProduct }) {
|
|
335
|
+
* if (!isCustomerReviewEnabled(product)) return null;
|
|
336
|
+
* if (isCustomerReviewLoginRequired(product) && !customerStore.customer) {
|
|
337
|
+
* return <p>Please log in to leave a review.</p>;
|
|
338
|
+
* }
|
|
339
|
+
* return <form>...</form>;
|
|
340
|
+
* }
|
|
341
|
+
* ```
|
|
342
|
+
*/
|
|
343
|
+
export declare function isCustomerReviewLoginRequired(product: IkasProduct): boolean;
|
|
344
|
+
/**
|
|
345
|
+
* Get product attributes grouped by their attribute ID.
|
|
346
|
+
* Returns an array of attribute maps with the attribute definition and its values.
|
|
347
|
+
*
|
|
348
|
+
* @ai-category Product, Attribute
|
|
349
|
+
* @ai-related getSelectedProductVariant, getDisplayedProductGroups
|
|
350
|
+
*
|
|
351
|
+
* @param product - The product to get attributes from
|
|
352
|
+
* @returns Array of attribute maps, each containing the attribute definition and its values
|
|
353
|
+
*
|
|
354
|
+
* @example
|
|
355
|
+
* ```typescript
|
|
356
|
+
* import { getGroupedAttributeValues } from "@ikas/bp-storefront";
|
|
357
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
358
|
+
*
|
|
359
|
+
* function ProductAttributes({ product }: { product: IkasProduct }) {
|
|
360
|
+
* const attributes = getGroupedAttributeValues(product);
|
|
361
|
+
* return (
|
|
362
|
+
* <ul>
|
|
363
|
+
* {attributes.map(attr => (
|
|
364
|
+
* <li key={attr.attribute.id}>
|
|
365
|
+
* <strong>{attr.attribute.name}:</strong> {attr.values.map(v => v.value).join(", ")}
|
|
366
|
+
* </li>
|
|
367
|
+
* ))}
|
|
368
|
+
* </ul>
|
|
369
|
+
* );
|
|
370
|
+
* }
|
|
371
|
+
* ```
|
|
372
|
+
*/
|
|
373
|
+
export declare function getGroupedAttributeValues(product: IkasProduct): IkasProductAttributeMap[];
|
|
374
|
+
/**
|
|
375
|
+
* Get product group items organized by group type for display.
|
|
376
|
+
* Builds selectable group options (e.g., different product colors within a product group) with selection state and links.
|
|
377
|
+
*
|
|
378
|
+
* @ai-category Product, ProductDetail
|
|
379
|
+
* @ai-related getSelectedProductVariantHref, getDisplayedProductVariantTypes
|
|
380
|
+
*
|
|
381
|
+
* @param product - The product whose group items to display
|
|
382
|
+
* @returns Array of displayed product groups, each containing group name and selectable items
|
|
383
|
+
*
|
|
384
|
+
* @example
|
|
385
|
+
* ```typescript
|
|
386
|
+
* import { getDisplayedProductGroups } from "@ikas/bp-storefront";
|
|
387
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
388
|
+
*
|
|
389
|
+
* function ProductGroupSelector({ product }: { product: IkasProduct }) {
|
|
390
|
+
* const groups = getDisplayedProductGroups(product);
|
|
391
|
+
* return (
|
|
392
|
+
* <div>
|
|
393
|
+
* {groups.map(group => (
|
|
394
|
+
* <div key={group.name}>
|
|
395
|
+
* <h4>{group.name}</h4>
|
|
396
|
+
* {group.items.map(item => (
|
|
397
|
+
* <a
|
|
398
|
+
* key={item.value}
|
|
399
|
+
* href={item.href}
|
|
400
|
+
* className={item.isSelected ? "selected" : ""}
|
|
401
|
+
* >
|
|
402
|
+
* {item.value}
|
|
403
|
+
* </a>
|
|
404
|
+
* ))}
|
|
405
|
+
* </div>
|
|
406
|
+
* ))}
|
|
407
|
+
* </div>
|
|
408
|
+
* );
|
|
409
|
+
* }
|
|
410
|
+
* ```
|
|
411
|
+
*/
|
|
412
|
+
export declare function getDisplayedProductGroups(product: IkasProduct): IkasDisplayedProductGroup[];
|
|
413
|
+
/**
|
|
414
|
+
* Select a variant value (e.g., choose a size or color).
|
|
415
|
+
* Updates product.selectedVariantValues and optionally updates the URL.
|
|
416
|
+
*
|
|
417
|
+
* @ai-category ProductDetail
|
|
418
|
+
* @ai-related getDisplayedProductVariantTypes, getSelectedProductVariant
|
|
419
|
+
*
|
|
420
|
+
* @param product - The product to update
|
|
421
|
+
* @param variantValue - The variant value to select
|
|
422
|
+
* @param disableRoute - If true, don't update the browser URL
|
|
423
|
+
*
|
|
424
|
+
* @example
|
|
425
|
+
* ```typescript
|
|
426
|
+
* import { selectVariantValue, getDisplayedProductVariantTypes } from "@ikas/bp-storefront";
|
|
427
|
+
* import { IkasProduct, IkasVariantValue } from "@ikas/bp-storefront-models";
|
|
428
|
+
*
|
|
429
|
+
* function SizeSelector({ product }: { product: IkasProduct }) {
|
|
430
|
+
* const variantTypes = getDisplayedProductVariantTypes(product);
|
|
431
|
+
* const sizeType = variantTypes.find(vt => vt.variantType.name === "Size");
|
|
432
|
+
*
|
|
433
|
+
* const handleSizeChange = (value: IkasVariantValue) => {
|
|
434
|
+
* selectVariantValue(product, value);
|
|
435
|
+
* // URL will automatically update with the new selection
|
|
436
|
+
* };
|
|
437
|
+
*
|
|
438
|
+
* return (
|
|
439
|
+
* <div>
|
|
440
|
+
* {sizeType?.displayedVariantValues.map(dvv => (
|
|
441
|
+
* <button
|
|
442
|
+
* key={dvv.variantValue.id}
|
|
443
|
+
* onClick={() => handleSizeChange(dvv.variantValue)}
|
|
444
|
+
* >
|
|
445
|
+
* {dvv.variantValue.name}
|
|
446
|
+
* </button>
|
|
447
|
+
* ))}
|
|
448
|
+
* </div>
|
|
449
|
+
* );
|
|
450
|
+
* }
|
|
451
|
+
* ```
|
|
452
|
+
*/
|
|
453
|
+
export declare function selectVariantValue(product: IkasProduct, variantValue: IkasVariantValue, disableRoute?: boolean): void;
|
|
454
|
+
/**
|
|
455
|
+
* Fetch and attach active campaigns for a product's variants.
|
|
456
|
+
* Retrieves campaign data from the API and assigns matching campaigns to each variant.
|
|
457
|
+
*
|
|
458
|
+
* @ai-category Product, Pricing
|
|
459
|
+
* @ai-related getSelectedProductVariant, getProductVariantFormattedFinalPrice
|
|
460
|
+
*
|
|
461
|
+
* @param product - The product to fetch campaigns for (modified in place)
|
|
462
|
+
* @returns The array of campaigns, or undefined if none exist
|
|
463
|
+
*
|
|
464
|
+
* @example
|
|
465
|
+
* ```typescript
|
|
466
|
+
* import { getProductCampaigns } from "@ikas/bp-storefront";
|
|
467
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
468
|
+
*
|
|
469
|
+
* async function loadCampaigns(product: IkasProduct) {
|
|
470
|
+
* const campaigns = await getProductCampaigns(product);
|
|
471
|
+
* if (campaigns?.length) {
|
|
472
|
+
* console.log("Active campaigns:", campaigns);
|
|
473
|
+
* }
|
|
474
|
+
* }
|
|
475
|
+
* ```
|
|
476
|
+
*/
|
|
477
|
+
export declare function getProductCampaigns(product: IkasProduct): Promise<import("../../../../../storefront-models/src").IkasProductCampaign[] | undefined>;
|
|
478
|
+
/**
|
|
479
|
+
* Fetch available stock locations for a product's variants.
|
|
480
|
+
* Queries the API using configured pickup stock location IDs and the product's variant IDs.
|
|
481
|
+
*
|
|
482
|
+
* @ai-category Product, Variant
|
|
483
|
+
* @ai-related getSelectedProductVariant, hasProductStock
|
|
484
|
+
*
|
|
485
|
+
* @param product - The product to get stock locations for
|
|
486
|
+
* @returns Array of variant stock location data
|
|
487
|
+
*
|
|
488
|
+
* @example
|
|
489
|
+
* ```typescript
|
|
490
|
+
* import { getProductAvailableStockLocations } from "@ikas/bp-storefront";
|
|
491
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
492
|
+
*
|
|
493
|
+
* async function showPickupLocations(product: IkasProduct) {
|
|
494
|
+
* const locations = await getProductAvailableStockLocations(product);
|
|
495
|
+
* locations.forEach(loc => {
|
|
496
|
+
* console.log("Available at:", loc);
|
|
497
|
+
* });
|
|
498
|
+
* }
|
|
499
|
+
* ```
|
|
500
|
+
*/
|
|
501
|
+
export declare function getProductAvailableStockLocations(product: IkasProduct): Promise<import("../../../../../storefront-models/src").IkasProductStockLocations[]>;
|
|
502
|
+
/**
|
|
503
|
+
* Fetch and attach the product option set if not already loaded.
|
|
504
|
+
* Loads option set data from the API and sets currency-specific prices for each option.
|
|
505
|
+
*
|
|
506
|
+
* @ai-category Product, ProductDetail
|
|
507
|
+
* @ai-related hasProductValidOptionValues, isAddToCartEnabled
|
|
508
|
+
*
|
|
509
|
+
* @param product - The product to load the option set for (modified in place)
|
|
510
|
+
* @returns True if the product has an option set (already loaded or fetched), false otherwise
|
|
511
|
+
*
|
|
512
|
+
* @example
|
|
513
|
+
* ```typescript
|
|
514
|
+
* import { getProductOptionSet } from "@ikas/bp-storefront";
|
|
515
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
516
|
+
*
|
|
517
|
+
* async function loadProductOptions(product: IkasProduct) {
|
|
518
|
+
* const hasOptions = await getProductOptionSet(product);
|
|
519
|
+
* if (hasOptions) {
|
|
520
|
+
* console.log("Product options:", product.productOptionSet);
|
|
521
|
+
* }
|
|
522
|
+
* }
|
|
523
|
+
* ```
|
|
524
|
+
*/
|
|
525
|
+
export declare function getProductOptionSet(product: IkasProduct): Promise<boolean>;
|
|
526
|
+
/**
|
|
527
|
+
* Initialize bundle product data for a product.
|
|
528
|
+
* If an `editLineID` URL param is present, restores bundle selections from the cart line item;
|
|
529
|
+
* otherwise loads bundle products for the currently selected variant.
|
|
530
|
+
*
|
|
531
|
+
* @ai-category Product, ProductDetail
|
|
532
|
+
* @ai-related getBundleProductsOfVariant, getSelectedProductVariant, isBundleProductQuantityEditable
|
|
533
|
+
*
|
|
534
|
+
* @param product - The product whose bundle products to initialize (modified in place)
|
|
535
|
+
*
|
|
536
|
+
* @example
|
|
537
|
+
* ```typescript
|
|
538
|
+
* import { initBundleProducts } from "@ikas/bp-storefront";
|
|
539
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
540
|
+
*
|
|
541
|
+
* async function loadProduct(product: IkasProduct) {
|
|
542
|
+
* await initBundleProducts(product);
|
|
543
|
+
* // Bundle products are now loaded on each variant's bundleSettings
|
|
544
|
+
* }
|
|
545
|
+
* ```
|
|
546
|
+
*/
|
|
547
|
+
export declare function initBundleProducts(product: IkasProduct): Promise<void>;
|
|
548
|
+
/**
|
|
549
|
+
* Fetch and attach bundle product data for a specific variant.
|
|
550
|
+
* Loads the full product data for each bundle product and caches the results on the parent product.
|
|
551
|
+
*
|
|
552
|
+
* @ai-category Product, Variant
|
|
553
|
+
* @ai-related initBundleProducts, setProductOfBundleProduct, getSelectedProductVariant
|
|
554
|
+
*
|
|
555
|
+
* @param product - The parent product (modified in place; uses bundleProductCache)
|
|
556
|
+
* @param variant - The variant whose bundle products to load
|
|
557
|
+
*
|
|
558
|
+
* @example
|
|
559
|
+
* ```typescript
|
|
560
|
+
* import { getBundleProductsOfVariant, getSelectedProductVariant } from "@ikas/bp-storefront";
|
|
561
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
562
|
+
*
|
|
563
|
+
* async function refreshBundleProducts(product: IkasProduct) {
|
|
564
|
+
* const variant = getSelectedProductVariant(product);
|
|
565
|
+
* await getBundleProductsOfVariant(product, variant);
|
|
566
|
+
* }
|
|
567
|
+
* ```
|
|
568
|
+
*/
|
|
569
|
+
export declare function getBundleProductsOfVariant(product: IkasProduct, variant: IkasProductVariant): Promise<void>;
|
|
570
|
+
/**
|
|
571
|
+
* Check if a bundle product's quantity can be edited by the customer.
|
|
572
|
+
* Returns true when either a min or max quantity constraint is set.
|
|
573
|
+
*
|
|
574
|
+
* @ai-category Product, Pricing
|
|
575
|
+
* @ai-related setBundleProductQuantity, shouldDisplayBundleProductPrice, initBundleProducts
|
|
576
|
+
*
|
|
577
|
+
* @param bundleProduct - The bundle product to check
|
|
578
|
+
* @returns True if quantity is editable (has min or max constraints), false otherwise
|
|
579
|
+
*
|
|
580
|
+
* @example
|
|
581
|
+
* ```typescript
|
|
582
|
+
* import { isBundleProductQuantityEditable, setBundleProductQuantity } from "@ikas/bp-storefront";
|
|
583
|
+
* import { IkasBundleProduct } from "@ikas/bp-storefront-models";
|
|
584
|
+
*
|
|
585
|
+
* function BundleItem({ bundleProduct }: { bundleProduct: IkasBundleProduct }) {
|
|
586
|
+
* const editable = isBundleProductQuantityEditable(bundleProduct);
|
|
587
|
+
* return editable ? (
|
|
588
|
+
* <input
|
|
589
|
+
* type="number"
|
|
590
|
+
* value={bundleProduct.quantity}
|
|
591
|
+
* onChange={(e) => setBundleProductQuantity(bundleProduct, Number(e.target.value))}
|
|
592
|
+
* />
|
|
593
|
+
* ) : (
|
|
594
|
+
* <span>Qty: {bundleProduct.quantity}</span>
|
|
595
|
+
* );
|
|
596
|
+
* }
|
|
597
|
+
* ```
|
|
598
|
+
*/
|
|
599
|
+
export declare function isBundleProductQuantityEditable(bundleProduct: IkasBundleProduct): boolean;
|
|
600
|
+
/**
|
|
601
|
+
* Check if the price of a bundle product should be displayed to the customer.
|
|
602
|
+
* Only shows the price when the bundle product adds to the bundle's base price.
|
|
603
|
+
*
|
|
604
|
+
* @ai-category Product, Pricing
|
|
605
|
+
* @ai-related getBundleProductFinalPrice, getBundleProductFormattedFinalPrice, isBundleProductQuantityEditable
|
|
606
|
+
*
|
|
607
|
+
* @param bundleProduct - The bundle product to check
|
|
608
|
+
* @returns True if the bundle product price should be displayed
|
|
609
|
+
*
|
|
610
|
+
* @example
|
|
611
|
+
* ```typescript
|
|
612
|
+
* import { shouldDisplayBundleProductPrice, getBundleProductFormattedFinalPrice } from "@ikas/bp-storefront";
|
|
613
|
+
* import { IkasBundleProduct } from "@ikas/bp-storefront-models";
|
|
614
|
+
*
|
|
615
|
+
* function BundleItem({ bundleProduct }: { bundleProduct: IkasBundleProduct }) {
|
|
616
|
+
* return (
|
|
617
|
+
* <div>
|
|
618
|
+
* <span>{bundleProduct.product?.name}</span>
|
|
619
|
+
* {shouldDisplayBundleProductPrice(bundleProduct) && (
|
|
620
|
+
* <span>{getBundleProductFormattedFinalPrice(bundleProduct)}</span>
|
|
621
|
+
* )}
|
|
622
|
+
* </div>
|
|
623
|
+
* );
|
|
624
|
+
* }
|
|
625
|
+
* ```
|
|
626
|
+
*/
|
|
627
|
+
export declare function shouldDisplayBundleProductPrice(bundleProduct: IkasBundleProduct): boolean;
|
|
628
|
+
/**
|
|
629
|
+
* Calculate the final price of a bundle product after applying any discount ratio.
|
|
630
|
+
* Uses the selected variant's final price and applies the bundle-specific discount if applicable.
|
|
631
|
+
*
|
|
632
|
+
* @ai-category Product, Pricing
|
|
633
|
+
* @ai-related getBundleProductFormattedFinalPrice, getBundleProductFinalPriceWithQuantity, shouldDisplayBundleProductPrice
|
|
634
|
+
*
|
|
635
|
+
* @param bundleProduct - The bundle product to calculate price for
|
|
636
|
+
* @returns The final price as a number, or 0 if no product is attached
|
|
637
|
+
*
|
|
638
|
+
* @example
|
|
639
|
+
* ```typescript
|
|
640
|
+
* import { getBundleProductFinalPrice } from "@ikas/bp-storefront";
|
|
641
|
+
* import { IkasBundleProduct } from "@ikas/bp-storefront-models";
|
|
642
|
+
*
|
|
643
|
+
* function BundlePrice({ bundleProduct }: { bundleProduct: IkasBundleProduct }) {
|
|
644
|
+
* const price = getBundleProductFinalPrice(bundleProduct);
|
|
645
|
+
* return <span>{price.toFixed(2)}</span>;
|
|
646
|
+
* }
|
|
647
|
+
* ```
|
|
648
|
+
*/
|
|
649
|
+
export declare function getBundleProductFinalPrice(bundleProduct: IkasBundleProduct): number;
|
|
650
|
+
/**
|
|
651
|
+
* Get the formatted (currency-aware) final price string for a bundle product.
|
|
652
|
+
*
|
|
653
|
+
* @ai-category Product, Pricing
|
|
654
|
+
* @ai-related getBundleProductFinalPrice, getBundleProductFormattedFinalPriceWithQuantity, shouldDisplayBundleProductPrice
|
|
655
|
+
*
|
|
656
|
+
* @param bundleProduct - The bundle product to format price for
|
|
657
|
+
* @returns Formatted price string with currency symbol
|
|
658
|
+
*
|
|
659
|
+
* @example
|
|
660
|
+
* ```typescript
|
|
661
|
+
* import { getBundleProductFormattedFinalPrice, shouldDisplayBundleProductPrice } from "@ikas/bp-storefront";
|
|
662
|
+
* import { IkasBundleProduct } from "@ikas/bp-storefront-models";
|
|
663
|
+
*
|
|
664
|
+
* function BundleItemPrice({ bundleProduct }: { bundleProduct: IkasBundleProduct }) {
|
|
665
|
+
* if (!shouldDisplayBundleProductPrice(bundleProduct)) return null;
|
|
666
|
+
* return <span>{getBundleProductFormattedFinalPrice(bundleProduct)}</span>;
|
|
667
|
+
* }
|
|
668
|
+
* ```
|
|
669
|
+
*/
|
|
670
|
+
export declare function getBundleProductFormattedFinalPrice(bundleProduct: IkasBundleProduct): string;
|
|
671
|
+
/**
|
|
672
|
+
* Calculate the total final price of a bundle product multiplied by its quantity.
|
|
673
|
+
*
|
|
674
|
+
* @ai-category Product, Pricing
|
|
675
|
+
* @ai-related getBundleProductFinalPrice, getBundleProductFormattedFinalPriceWithQuantity
|
|
676
|
+
*
|
|
677
|
+
* @param bundleProduct - The bundle product to calculate total price for
|
|
678
|
+
* @returns The total price (unit final price times quantity)
|
|
679
|
+
*
|
|
680
|
+
* @example
|
|
681
|
+
* ```typescript
|
|
682
|
+
* import { getBundleProductFinalPriceWithQuantity } from "@ikas/bp-storefront";
|
|
683
|
+
* import { IkasBundleProduct } from "@ikas/bp-storefront-models";
|
|
684
|
+
*
|
|
685
|
+
* function BundleTotal({ bundleProduct }: { bundleProduct: IkasBundleProduct }) {
|
|
686
|
+
* const total = getBundleProductFinalPriceWithQuantity(bundleProduct);
|
|
687
|
+
* return <span>Total: {total.toFixed(2)}</span>;
|
|
688
|
+
* }
|
|
689
|
+
* ```
|
|
690
|
+
*/
|
|
691
|
+
export declare function getBundleProductFinalPriceWithQuantity(bundleProduct: IkasBundleProduct): number;
|
|
692
|
+
/**
|
|
693
|
+
* Get the formatted total final price string for a bundle product (unit price times quantity).
|
|
694
|
+
*
|
|
695
|
+
* @ai-category Product, Pricing
|
|
696
|
+
* @ai-related getBundleProductFinalPriceWithQuantity, getBundleProductFormattedFinalPrice
|
|
697
|
+
*
|
|
698
|
+
* @param bundleProduct - The bundle product to format total price for
|
|
699
|
+
* @returns Formatted total price string with currency symbol
|
|
700
|
+
*
|
|
701
|
+
* @example
|
|
702
|
+
* ```typescript
|
|
703
|
+
* import { getBundleProductFormattedFinalPriceWithQuantity } from "@ikas/bp-storefront";
|
|
704
|
+
* import { IkasBundleProduct } from "@ikas/bp-storefront-models";
|
|
705
|
+
*
|
|
706
|
+
* function BundleItemTotal({ bundleProduct }: { bundleProduct: IkasBundleProduct }) {
|
|
707
|
+
* return <span>{getBundleProductFormattedFinalPriceWithQuantity(bundleProduct)}</span>;
|
|
708
|
+
* }
|
|
709
|
+
* ```
|
|
710
|
+
*/
|
|
711
|
+
export declare function getBundleProductFormattedFinalPriceWithQuantity(bundleProduct: IkasBundleProduct): string;
|
|
712
|
+
/**
|
|
713
|
+
* Get the sell price (before discounts) of a bundle product's selected variant.
|
|
714
|
+
*
|
|
715
|
+
* @ai-category Product, Pricing
|
|
716
|
+
* @ai-related getBundleProductFormattedSellPrice, getBundleProductSellPriceWithQuantity, getBundleProductFinalPrice
|
|
717
|
+
*
|
|
718
|
+
* @param bundleProduct - The bundle product to get sell price for
|
|
719
|
+
* @returns The sell price as a number, or 0 if no product is attached
|
|
720
|
+
*
|
|
721
|
+
* @example
|
|
722
|
+
* ```typescript
|
|
723
|
+
* import { getBundleProductSellPrice, getBundleProductFinalPrice } from "@ikas/bp-storefront";
|
|
724
|
+
* import { IkasBundleProduct } from "@ikas/bp-storefront-models";
|
|
725
|
+
*
|
|
726
|
+
* function BundleDiscount({ bundleProduct }: { bundleProduct: IkasBundleProduct }) {
|
|
727
|
+
* const sell = getBundleProductSellPrice(bundleProduct);
|
|
728
|
+
* const final = getBundleProductFinalPrice(bundleProduct);
|
|
729
|
+
* const discount = sell - final;
|
|
730
|
+
* return discount > 0 ? <span>You save: {discount.toFixed(2)}</span> : null;
|
|
731
|
+
* }
|
|
732
|
+
* ```
|
|
733
|
+
*/
|
|
734
|
+
export declare function getBundleProductSellPrice(bundleProduct: IkasBundleProduct): number;
|
|
735
|
+
/**
|
|
736
|
+
* Get the formatted (currency-aware) sell price string for a bundle product.
|
|
737
|
+
*
|
|
738
|
+
* @ai-category Product, Pricing
|
|
739
|
+
* @ai-related getBundleProductSellPrice, getBundleProductFormattedSellPriceWithQuantity, getBundleProductFormattedFinalPrice
|
|
740
|
+
*
|
|
741
|
+
* @param bundleProduct - The bundle product to format sell price for
|
|
742
|
+
* @returns Formatted sell price string with currency symbol
|
|
743
|
+
*
|
|
744
|
+
* @example
|
|
745
|
+
* ```typescript
|
|
746
|
+
* import { getBundleProductFormattedSellPrice } from "@ikas/bp-storefront";
|
|
747
|
+
* import { IkasBundleProduct } from "@ikas/bp-storefront-models";
|
|
748
|
+
*
|
|
749
|
+
* function BundleOriginalPrice({ bundleProduct }: { bundleProduct: IkasBundleProduct }) {
|
|
750
|
+
* return <span className="original-price">{getBundleProductFormattedSellPrice(bundleProduct)}</span>;
|
|
751
|
+
* }
|
|
752
|
+
* ```
|
|
753
|
+
*/
|
|
754
|
+
export declare function getBundleProductFormattedSellPrice(bundleProduct: IkasBundleProduct): string;
|
|
755
|
+
/**
|
|
756
|
+
* Calculate the total sell price of a bundle product multiplied by its quantity.
|
|
757
|
+
*
|
|
758
|
+
* @ai-category Product, Pricing
|
|
759
|
+
* @ai-related getBundleProductSellPrice, getBundleProductFormattedSellPriceWithQuantity, getBundleProductFinalPriceWithQuantity
|
|
760
|
+
*
|
|
761
|
+
* @param bundleProduct - The bundle product to calculate total sell price for
|
|
762
|
+
* @returns The total sell price (unit sell price times quantity)
|
|
763
|
+
*
|
|
764
|
+
* @example
|
|
765
|
+
* ```typescript
|
|
766
|
+
* import { getBundleProductSellPriceWithQuantity } from "@ikas/bp-storefront";
|
|
767
|
+
* import { IkasBundleProduct } from "@ikas/bp-storefront-models";
|
|
768
|
+
*
|
|
769
|
+
* function BundleOriginalTotal({ bundleProduct }: { bundleProduct: IkasBundleProduct }) {
|
|
770
|
+
* const total = getBundleProductSellPriceWithQuantity(bundleProduct);
|
|
771
|
+
* return <span className="original-price">Total: {total.toFixed(2)}</span>;
|
|
772
|
+
* }
|
|
773
|
+
* ```
|
|
774
|
+
*/
|
|
775
|
+
export declare function getBundleProductSellPriceWithQuantity(bundleProduct: IkasBundleProduct): number;
|
|
776
|
+
/**
|
|
777
|
+
* Get the formatted total sell price string for a bundle product (unit sell price times quantity).
|
|
778
|
+
*
|
|
779
|
+
* @ai-category Product, Pricing
|
|
780
|
+
* @ai-related getBundleProductSellPriceWithQuantity, getBundleProductFormattedSellPrice, getBundleProductFormattedFinalPriceWithQuantity
|
|
781
|
+
*
|
|
782
|
+
* @param bundleProduct - The bundle product to format total sell price for
|
|
783
|
+
* @returns Formatted total sell price string with currency symbol
|
|
784
|
+
*
|
|
785
|
+
* @example
|
|
786
|
+
* ```typescript
|
|
787
|
+
* import { getBundleProductFormattedSellPriceWithQuantity } from "@ikas/bp-storefront";
|
|
788
|
+
* import { IkasBundleProduct } from "@ikas/bp-storefront-models";
|
|
789
|
+
*
|
|
790
|
+
* function BundleOriginalTotal({ bundleProduct }: { bundleProduct: IkasBundleProduct }) {
|
|
791
|
+
* return (
|
|
792
|
+
* <span className="original-price">
|
|
793
|
+
* {getBundleProductFormattedSellPriceWithQuantity(bundleProduct)}
|
|
794
|
+
* </span>
|
|
795
|
+
* );
|
|
796
|
+
* }
|
|
797
|
+
* ```
|
|
798
|
+
*/
|
|
799
|
+
export declare function getBundleProductFormattedSellPriceWithQuantity(bundleProduct: IkasBundleProduct): string;
|
|
800
|
+
/**
|
|
801
|
+
* Attach a product to a bundle product entry, filtering its variants to only those allowed by the bundle.
|
|
802
|
+
* Sets default selected variant values to the first filtered variant and resets quantity.
|
|
803
|
+
*
|
|
804
|
+
* @ai-category Product, Variant
|
|
805
|
+
* @ai-related getBundleProductsOfVariant, initBundleProducts, setBundleProductQuantity
|
|
806
|
+
*
|
|
807
|
+
* @param bundleProduct - The bundle product entry to attach the product to (modified in place)
|
|
808
|
+
* @param product - The full product data to attach (filtered and modified in place)
|
|
809
|
+
*
|
|
810
|
+
* @example
|
|
811
|
+
* ```typescript
|
|
812
|
+
* import { setProductOfBundleProduct } from "@ikas/bp-storefront";
|
|
813
|
+
* import { IkasBundleProduct, IkasProduct } from "@ikas/bp-storefront-models";
|
|
814
|
+
*
|
|
815
|
+
* function attachProduct(bundleProduct: IkasBundleProduct, product: IkasProduct) {
|
|
816
|
+
* setProductOfBundleProduct(bundleProduct, product);
|
|
817
|
+
* // bundleProduct.product is now set with filtered variants
|
|
818
|
+
* }
|
|
819
|
+
* ```
|
|
820
|
+
*/
|
|
821
|
+
export declare function setProductOfBundleProduct(bundleProduct: IkasBundleProduct, product: IkasProduct): void;
|
|
822
|
+
/**
|
|
823
|
+
* Set the quantity for a bundle product, respecting min/max constraints and available stock.
|
|
824
|
+
* Clamps the value to the allowed range and does nothing if quantity is negative or no product is attached.
|
|
825
|
+
*
|
|
826
|
+
* @ai-category Product, Pricing
|
|
827
|
+
* @ai-related isBundleProductQuantityEditable, getBundleProductFinalPriceWithQuantity, initBundleProducts
|
|
828
|
+
*
|
|
829
|
+
* @param bundleProduct - The bundle product to update (modified in place)
|
|
830
|
+
* @param quantity - The desired quantity
|
|
831
|
+
*
|
|
832
|
+
* @example
|
|
833
|
+
* ```typescript
|
|
834
|
+
* import { setBundleProductQuantity, isBundleProductQuantityEditable } from "@ikas/bp-storefront";
|
|
835
|
+
* import { IkasBundleProduct } from "@ikas/bp-storefront-models";
|
|
836
|
+
*
|
|
837
|
+
* function QuantityControl({ bundleProduct }: { bundleProduct: IkasBundleProduct }) {
|
|
838
|
+
* if (!isBundleProductQuantityEditable(bundleProduct)) return null;
|
|
839
|
+
*
|
|
840
|
+
* return (
|
|
841
|
+
* <div>
|
|
842
|
+
* <button onClick={() => setBundleProductQuantity(bundleProduct, bundleProduct.quantity - 1)}>-</button>
|
|
843
|
+
* <span>{bundleProduct.quantity}</span>
|
|
844
|
+
* <button onClick={() => setBundleProductQuantity(bundleProduct, bundleProduct.quantity + 1)}>+</button>
|
|
845
|
+
* </div>
|
|
846
|
+
* );
|
|
847
|
+
* }
|
|
848
|
+
* ```
|
|
849
|
+
*/
|
|
850
|
+
export declare function setBundleProductQuantity(bundleProduct: IkasBundleProduct, quantity: number): void;
|
|
851
|
+
/**
|
|
852
|
+
* Recalculate option prices based on the selected variant's price list and final price.
|
|
853
|
+
* For ratio-based options, computes the actual price from the variant's final price and the ratio.
|
|
854
|
+
*
|
|
855
|
+
* @ai-category Product, Pricing
|
|
856
|
+
* @ai-related getProductOptionSet, getSelectedProductVariant, selectVariantValue
|
|
857
|
+
*
|
|
858
|
+
* @param product - The product whose option prices to recalculate (modified in place)
|
|
859
|
+
*
|
|
860
|
+
* @example
|
|
861
|
+
* ```typescript
|
|
862
|
+
* import { setOptionRealPrices } from "@ikas/bp-storefront";
|
|
863
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
864
|
+
*
|
|
865
|
+
* function recalculateOptions(product: IkasProduct) {
|
|
866
|
+
* setOptionRealPrices(product);
|
|
867
|
+
* // product.productOptionSet option prices are now updated
|
|
868
|
+
* }
|
|
869
|
+
* ```
|
|
870
|
+
*/
|
|
871
|
+
export declare function setOptionRealPrices(product: IkasProduct): void;
|
|
872
|
+
/**
|
|
873
|
+
* Get the full category breadcrumb path for a product based on its first category.
|
|
874
|
+
* Returns an empty array if the product has no categories.
|
|
875
|
+
*
|
|
876
|
+
* @ai-category Product, Navigation
|
|
877
|
+
* @ai-related getProductFirstCategory, getProductHref
|
|
878
|
+
*
|
|
879
|
+
* @param product - The product to get category path for
|
|
880
|
+
* @returns Array of categories forming the breadcrumb path
|
|
881
|
+
*
|
|
882
|
+
* @example
|
|
883
|
+
* ```typescript
|
|
884
|
+
* import { getProductCategoryPath } from "@ikas/bp-storefront";
|
|
885
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
886
|
+
*
|
|
887
|
+
* function Breadcrumb({ product }: { product: IkasProduct }) {
|
|
888
|
+
* const path = getProductCategoryPath(product);
|
|
889
|
+
* return (
|
|
890
|
+
* <nav>
|
|
891
|
+
* {path.map((category, i) => (
|
|
892
|
+
* <span key={category.id}>
|
|
893
|
+
* {i > 0 && " / "}
|
|
894
|
+
* <a href={category.href}>{category.name}</a>
|
|
895
|
+
* </span>
|
|
896
|
+
* ))}
|
|
897
|
+
* </nav>
|
|
898
|
+
* );
|
|
899
|
+
* }
|
|
900
|
+
* ```
|
|
901
|
+
*/
|
|
902
|
+
export declare function getProductCategoryPath(product: IkasProduct): import("../../../../../storefront-models/src").IkasCategoryPathItem[];
|
|
903
|
+
/**
|
|
904
|
+
* Get the first category assigned to a product.
|
|
905
|
+
* Returns null if the product has no categories.
|
|
906
|
+
*
|
|
907
|
+
* @ai-category Product, Navigation
|
|
908
|
+
* @ai-related getProductCategoryPath, getProductHref
|
|
909
|
+
*
|
|
910
|
+
* @param product - The product to get the first category from
|
|
911
|
+
* @returns The first category, or null if none exist
|
|
912
|
+
*
|
|
913
|
+
* @example
|
|
914
|
+
* ```typescript
|
|
915
|
+
* import { getProductFirstCategory } from "@ikas/bp-storefront";
|
|
916
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
917
|
+
*
|
|
918
|
+
* function ProductCategory({ product }: { product: IkasProduct }) {
|
|
919
|
+
* const category = getProductFirstCategory(product);
|
|
920
|
+
* return category ? <span>{category.name}</span> : null;
|
|
921
|
+
* }
|
|
922
|
+
* ```
|
|
923
|
+
*/
|
|
924
|
+
export declare function getProductFirstCategory(product: IkasProduct): import("../../../../../storefront-models/src").IkasCategory | null;
|
|
925
|
+
/**
|
|
926
|
+
* Get or create the customer review form for a product.
|
|
927
|
+
* Lazily initializes the form on first access and caches it in the customer store.
|
|
928
|
+
*
|
|
929
|
+
* @ai-category Product, ProductDetail
|
|
930
|
+
* @ai-related clearIkasProductCustomerReviewForm, isCustomerReviewEnabled, isCustomerReviewLoginRequired
|
|
931
|
+
*
|
|
932
|
+
* @param product - The product to get the review form for
|
|
933
|
+
* @returns The customer review form instance for this product
|
|
934
|
+
*
|
|
935
|
+
* @example
|
|
936
|
+
* ```typescript
|
|
937
|
+
* import { getIkasProductCustomerReviewForm, isCustomerReviewEnabled } from "@ikas/bp-storefront";
|
|
938
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
939
|
+
*
|
|
940
|
+
* function ReviewForm({ product }: { product: IkasProduct }) {
|
|
941
|
+
* if (!isCustomerReviewEnabled(product)) return null;
|
|
942
|
+
* const form = getIkasProductCustomerReviewForm(product);
|
|
943
|
+
* return (
|
|
944
|
+
* <form>
|
|
945
|
+
* <textarea value={form.comment} />
|
|
946
|
+
* </form>
|
|
947
|
+
* );
|
|
948
|
+
* }
|
|
949
|
+
* ```
|
|
950
|
+
*/
|
|
951
|
+
export declare function getIkasProductCustomerReviewForm(product: IkasProduct): CustomerReviewForm;
|
|
952
|
+
/**
|
|
953
|
+
* Clear the cached customer review form for a product.
|
|
954
|
+
* Removes the form from the customer store so it will be re-initialized on next access.
|
|
955
|
+
*
|
|
956
|
+
* @ai-category Product, ProductDetail
|
|
957
|
+
* @ai-related getIkasProductCustomerReviewForm, isCustomerReviewEnabled
|
|
958
|
+
*
|
|
959
|
+
* @param product - The product whose review form to clear
|
|
960
|
+
*
|
|
961
|
+
* @example
|
|
962
|
+
* ```typescript
|
|
963
|
+
* import { clearIkasProductCustomerReviewForm } from "@ikas/bp-storefront";
|
|
964
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
965
|
+
*
|
|
966
|
+
* function handleReviewSubmitted(product: IkasProduct) {
|
|
967
|
+
* clearIkasProductCustomerReviewForm(product);
|
|
968
|
+
* // Form will be fresh when the user opens the review form again
|
|
969
|
+
* }
|
|
970
|
+
* ```
|
|
971
|
+
*/
|
|
972
|
+
export declare function clearIkasProductCustomerReviewForm(product: IkasProduct): void;
|
|
973
|
+
/**
|
|
974
|
+
* Check if a product is in the customer's favorites list.
|
|
975
|
+
*
|
|
976
|
+
* @ai-category ProductList, ProductDetail, Customer
|
|
977
|
+
* @ai-related addIkasProductToFavorites, removeIkasProductFromFavorites
|
|
978
|
+
*
|
|
979
|
+
* @param product - The product to check
|
|
980
|
+
* @returns True if product is favorited, false otherwise
|
|
981
|
+
*
|
|
982
|
+
* @example
|
|
983
|
+
* ```typescript
|
|
984
|
+
* import { isFavoriteIkasProduct, addIkasProductToFavorites, removeIkasProductFromFavorites } from "@ikas/bp-storefront";
|
|
985
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
986
|
+
*
|
|
987
|
+
* function FavoriteButton({ product }: { product: IkasProduct }) {
|
|
988
|
+
* const isFavorite = isFavoriteIkasProduct(product);
|
|
989
|
+
*
|
|
990
|
+
* const handleClick = async () => {
|
|
991
|
+
* if (isFavorite) {
|
|
992
|
+
* await removeIkasProductFromFavorites(product);
|
|
993
|
+
* } else {
|
|
994
|
+
* await addIkasProductToFavorites(product);
|
|
995
|
+
* }
|
|
996
|
+
* };
|
|
997
|
+
*
|
|
998
|
+
* return (
|
|
999
|
+
* <button onClick={handleClick}>
|
|
1000
|
+
* {isFavorite ? "Remove from favorites" : "Add to favorites"}
|
|
1001
|
+
* </button>
|
|
1002
|
+
* );
|
|
1003
|
+
* }
|
|
1004
|
+
* ```
|
|
1005
|
+
*/
|
|
1006
|
+
export declare function isFavoriteIkasProduct(product: IkasProduct): boolean;
|
|
1007
|
+
/**
|
|
1008
|
+
* Add a product to the customer's favorites list.
|
|
1009
|
+
* Requires customer to be logged in.
|
|
1010
|
+
*
|
|
1011
|
+
* @ai-category ProductList, ProductDetail, Customer
|
|
1012
|
+
* @ai-related isFavoriteIkasProduct, removeIkasProductFromFavorites
|
|
1013
|
+
*
|
|
1014
|
+
* @param product - The product to add to favorites
|
|
1015
|
+
* @returns True if successful
|
|
1016
|
+
*
|
|
1017
|
+
* @example
|
|
1018
|
+
* ```typescript
|
|
1019
|
+
* import { addIkasProductToFavorites, customerStore } from "@ikas/bp-storefront";
|
|
1020
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
1021
|
+
*
|
|
1022
|
+
* async function handleAddToFavorites(product: IkasProduct) {
|
|
1023
|
+
* if (!customerStore.customer) {
|
|
1024
|
+
* // Redirect to login
|
|
1025
|
+
* Router.navigateToPage("LOGIN");
|
|
1026
|
+
* return;
|
|
1027
|
+
* }
|
|
1028
|
+
*
|
|
1029
|
+
* await addIkasProductToFavorites(product);
|
|
1030
|
+
* showToast("Added to favorites!");
|
|
1031
|
+
* }
|
|
1032
|
+
* ```
|
|
1033
|
+
*/
|
|
1034
|
+
export declare function addIkasProductToFavorites(product: IkasProduct): Promise<boolean>;
|
|
1035
|
+
/**
|
|
1036
|
+
* Remove a product from the customer's favorites list.
|
|
1037
|
+
*
|
|
1038
|
+
* @ai-category ProductList, ProductDetail, Customer
|
|
1039
|
+
* @ai-related isFavoriteIkasProduct, addIkasProductToFavorites
|
|
1040
|
+
*
|
|
1041
|
+
* @param product - The product to remove from favorites
|
|
1042
|
+
* @returns True if successful
|
|
1043
|
+
*
|
|
1044
|
+
* @example
|
|
1045
|
+
* ```typescript
|
|
1046
|
+
* import { removeIkasProductFromFavorites } from "@ikas/bp-storefront";
|
|
1047
|
+
* import { IkasProduct } from "@ikas/bp-storefront-models";
|
|
1048
|
+
*
|
|
1049
|
+
* async function handleRemoveFromFavorites(product: IkasProduct) {
|
|
1050
|
+
* await removeIkasProductFromFavorites(product);
|
|
1051
|
+
* showToast("Removed from favorites");
|
|
1052
|
+
* }
|
|
1053
|
+
* ```
|
|
1054
|
+
*/
|
|
1055
|
+
export declare function removeIkasProductFromFavorites(product: IkasProduct): Promise<boolean>;
|