@behio/storefront-sdk 0.36.0 → 0.37.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.
@@ -38,6 +38,13 @@ interface MessageResponse {
38
38
  type NewsletterOptInDefault = "CHECKED" | "UNCHECKED" | "HIDDEN";
39
39
  /** How sold-out products behave in the catalog. */
40
40
  type StockBehavior = "HIDE" | "BACKORDER" | "SHOW_SOLD_OUT";
41
+ /**
42
+ * Shop-level stock mode preset. ALWAYS_AVAILABLE (reseller) and MADE_TO_ORDER
43
+ * (production) shops sell regardless of stock: `inStock` is always true,
44
+ * availability derives to "in-stock" / "on-order" and stock counts are hidden.
45
+ * Templates can hide stock UI entirely when the mode is not TRACKED.
46
+ */
47
+ type StockMode = "TRACKED" | "ALWAYS_AVAILABLE" | "MADE_TO_ORDER";
41
48
  /**
42
49
  * Merchant-configured checkout & cart rules the storefront MUST honour so the
43
50
  * shop behaves exactly as it was configured in the admin. Mirrors the backend
@@ -92,6 +99,8 @@ interface CheckoutSettings {
92
99
  * cart API 400s on anything above it.
93
100
  */
94
101
  stockBehavior: StockBehavior;
102
+ /** Stock mode preset; non-TRACKED shops are always purchasable. */
103
+ stockMode: StockMode;
95
104
  /**
96
105
  * Merchant enabled the "only X left" nudge. When true, products whose stock
97
106
  * is within `lowStockThreshold` carry `lowStockRemaining` — render the badge
@@ -2399,4 +2408,4 @@ declare class NewsletterModule {
2399
2408
  unsubscribe(email: string): Promise<SdkResult<NewsletterUnsubscribeResult>>;
2400
2409
  }
2401
2410
 
2402
- export { type CookieConsentInput as $, type AddressSuggestion as A, type BehioStorefrontConfig as B, type Category as C, type ShopInfo as D, type ShopScripts as E, type FilterField as F, type ShopSeo as G, type Bundle as H, type ProductGroup as I, type CrossSellItem as J, type ActivePromotion as K, type LoyaltySummary as L, type Menu as M, type NewsletterSubscribeResult as N, type OrderListItem as O, type ProductsQuery as P, type GiftCardBalance as Q, type RegisterInput as R, type Subscription as S, type ProductReviewsResponse as T, type SubmitReviewInput as U, type ReturnableOrder as V, type WishlistItem as W, type ReturnStatus as X, type ReturnRequest as Y, type SubmitReturnInput as Z, type CookieConsent as _, BehioStorefront as a, type PriceDisplay as a$, type QuoteRequest as a0, type SubmitQuoteInput as a1, type BackInStockSubscription as a2, type AddToCartInput as a3, type AuthTokens as a4, BehioApiError as a5, type BundleItem as a6, type CartDiscount as a7, type CartItem as a8, type CheckoutAddress as a9, type FacetAvailability as aA, type FacetCategory as aB, type FacetLabel as aC, type FacetPriceRange as aD, type FacetRange as aE, type FacetRatingBucket as aF, type FacetValue as aG, FulfillmentStatuses as aH, type GiftCardPurchaseInput as aI, type GiftCardPurchaseResult as aJ, type GiftCardSummary as aK, type LoyaltyBalance as aL, type LoyaltyNextTier as aM, type LoyaltyProgram as aN, type LoyaltyTier as aO, type LoyaltyTierPerks as aP, type LoyaltyTransaction as aQ, type MenuItem as aR, type MenuItemRef as aS, type MenuItemType as aT, type NewsletterOptInDefault as aU, type OrderStatusHistory as aV, OrderStatuses as aW, type OrderTracking as aX, type PageAttachment as aY, PaymentStatuses as aZ, type PickupPointHours as a_, type FulfillmentStatus as aa, type LoginInput as ab, type MessageResponse as ac, type OrderItem as ad, type OrderStatus as ae, type PaymentStatus as af, type ProductPrice as ag, type ProductReview as ah, type ProductVariant as ai, type SdkResult as aj, type AddressType as ak, AddressTypes as al, type BadgeTone as am, type BehioErrorCode as an, type BehioEventHandler as ao, type BehioEventType as ap, BehioNetworkError as aq, type CartBundleLine as ar, type CartBundleLineItem as as, type CartItemProduct as at, type CartPromotion as au, type CheckoutSettings as av, type DataGroupFieldType as aw, type DigitalDownload as ax, type DownloadUrl as ay, type Facet as az, type PaginatedResponse as b, type ProductAvailability as b0, type ProductCustomField as b1, type ProductCustomFieldGroup as b2, type ProductMedia as b3, type ProductMediaVariant as b4, type ProductPromotionSummary as b5, ProductSort as b6, type ProductSortValue as b7, type ProductVolumePrice as b8, type QuoteItem as b9, type RegisterResult as ba, type RequestInterceptor as bb, type RequestInterceptorConfig as bc, type ResponseInterceptor as bd, type ResponseInterceptorData as be, type ReturnRequestItem as bf, type ReturnStatusItem as bg, type ReturnableOrderItem as bh, type SdkError as bi, type ShopScript as bj, type ShopScriptPlacement as bk, type ShopScriptType as bl, type ShopSeoIdentity as bm, type StockBehavior as bn, type SubscriptionFrequency as bo, type SubscriptionItem as bp, type SubscriptionStatus as bq, type TaxBreakdownLine as br, type VariantAxis as bs, type VariantAxisValue as bt, err as bu, ok as bv, toSdkError as bw, type ProductListItem as c, type ProductDetail as d, type CategoryDetail as e, type ProductLabel as f, type FacetsResponse as g, type Cart as h, type CustomerProfile as i, type CustomerAddress as j, type AddressDetail as k, type SubscriptionAction as l, type PickupPointsInput as m, type PickupPoint as n, type ShippingMethodSummary as o, type ShippingQuoteInput as p, type ShippingQuote as q, type CheckoutPaymentMethod as r, type NewsletterSubscribeInput as s, type NewsletterUnsubscribeResult as t, type OrderDetail as u, type OrderAccessRequestResponse as v, type OrderAccessVerifyResponse as w, type CheckoutInput as x, type PageDetail as y, type Page as z };
2411
+ export { type CookieConsentInput as $, type AddressSuggestion as A, type BehioStorefrontConfig as B, type Category as C, type ShopInfo as D, type ShopScripts as E, type FilterField as F, type ShopSeo as G, type Bundle as H, type ProductGroup as I, type CrossSellItem as J, type ActivePromotion as K, type LoyaltySummary as L, type Menu as M, type NewsletterSubscribeResult as N, type OrderListItem as O, type ProductsQuery as P, type GiftCardBalance as Q, type RegisterInput as R, type Subscription as S, type ProductReviewsResponse as T, type SubmitReviewInput as U, type ReturnableOrder as V, type WishlistItem as W, type ReturnStatus as X, type ReturnRequest as Y, type SubmitReturnInput as Z, type CookieConsent as _, BehioStorefront as a, type PriceDisplay as a$, type QuoteRequest as a0, type SubmitQuoteInput as a1, type BackInStockSubscription as a2, type AddToCartInput as a3, type AuthTokens as a4, BehioApiError as a5, type BundleItem as a6, type CartDiscount as a7, type CartItem as a8, type CheckoutAddress as a9, type FacetAvailability as aA, type FacetCategory as aB, type FacetLabel as aC, type FacetPriceRange as aD, type FacetRange as aE, type FacetRatingBucket as aF, type FacetValue as aG, FulfillmentStatuses as aH, type GiftCardPurchaseInput as aI, type GiftCardPurchaseResult as aJ, type GiftCardSummary as aK, type LoyaltyBalance as aL, type LoyaltyNextTier as aM, type LoyaltyProgram as aN, type LoyaltyTier as aO, type LoyaltyTierPerks as aP, type LoyaltyTransaction as aQ, type MenuItem as aR, type MenuItemRef as aS, type MenuItemType as aT, type NewsletterOptInDefault as aU, type OrderStatusHistory as aV, OrderStatuses as aW, type OrderTracking as aX, type PageAttachment as aY, PaymentStatuses as aZ, type PickupPointHours as a_, type FulfillmentStatus as aa, type LoginInput as ab, type MessageResponse as ac, type OrderItem as ad, type OrderStatus as ae, type PaymentStatus as af, type ProductPrice as ag, type ProductReview as ah, type ProductVariant as ai, type SdkResult as aj, type AddressType as ak, AddressTypes as al, type BadgeTone as am, type BehioErrorCode as an, type BehioEventHandler as ao, type BehioEventType as ap, BehioNetworkError as aq, type CartBundleLine as ar, type CartBundleLineItem as as, type CartItemProduct as at, type CartPromotion as au, type CheckoutSettings as av, type DataGroupFieldType as aw, type DigitalDownload as ax, type DownloadUrl as ay, type Facet as az, type PaginatedResponse as b, type ProductAvailability as b0, type ProductCustomField as b1, type ProductCustomFieldGroup as b2, type ProductMedia as b3, type ProductMediaVariant as b4, type ProductPromotionSummary as b5, ProductSort as b6, type ProductSortValue as b7, type ProductVolumePrice as b8, type QuoteItem as b9, type RegisterResult as ba, type RequestInterceptor as bb, type RequestInterceptorConfig as bc, type ResponseInterceptor as bd, type ResponseInterceptorData as be, type ReturnRequestItem as bf, type ReturnStatusItem as bg, type ReturnableOrderItem as bh, type SdkError as bi, type ShopScript as bj, type ShopScriptPlacement as bk, type ShopScriptType as bl, type ShopSeoIdentity as bm, type StockBehavior as bn, type StockMode as bo, type SubscriptionFrequency as bp, type SubscriptionItem as bq, type SubscriptionStatus as br, type TaxBreakdownLine as bs, type VariantAxis as bt, type VariantAxisValue as bu, err as bv, ok as bw, toSdkError as bx, type ProductListItem as c, type ProductDetail as d, type CategoryDetail as e, type ProductLabel as f, type FacetsResponse as g, type Cart as h, type CustomerProfile as i, type CustomerAddress as j, type AddressDetail as k, type SubscriptionAction as l, type PickupPointsInput as m, type PickupPoint as n, type ShippingMethodSummary as o, type ShippingQuoteInput as p, type ShippingQuote as q, type CheckoutPaymentMethod as r, type NewsletterSubscribeInput as s, type NewsletterUnsubscribeResult as t, type OrderDetail as u, type OrderAccessRequestResponse as v, type OrderAccessVerifyResponse as w, type CheckoutInput as x, type PageDetail as y, type Page as z };
@@ -38,6 +38,13 @@ interface MessageResponse {
38
38
  type NewsletterOptInDefault = "CHECKED" | "UNCHECKED" | "HIDDEN";
39
39
  /** How sold-out products behave in the catalog. */
40
40
  type StockBehavior = "HIDE" | "BACKORDER" | "SHOW_SOLD_OUT";
41
+ /**
42
+ * Shop-level stock mode preset. ALWAYS_AVAILABLE (reseller) and MADE_TO_ORDER
43
+ * (production) shops sell regardless of stock: `inStock` is always true,
44
+ * availability derives to "in-stock" / "on-order" and stock counts are hidden.
45
+ * Templates can hide stock UI entirely when the mode is not TRACKED.
46
+ */
47
+ type StockMode = "TRACKED" | "ALWAYS_AVAILABLE" | "MADE_TO_ORDER";
41
48
  /**
42
49
  * Merchant-configured checkout & cart rules the storefront MUST honour so the
43
50
  * shop behaves exactly as it was configured in the admin. Mirrors the backend
@@ -92,6 +99,8 @@ interface CheckoutSettings {
92
99
  * cart API 400s on anything above it.
93
100
  */
94
101
  stockBehavior: StockBehavior;
102
+ /** Stock mode preset; non-TRACKED shops are always purchasable. */
103
+ stockMode: StockMode;
95
104
  /**
96
105
  * Merchant enabled the "only X left" nudge. When true, products whose stock
97
106
  * is within `lowStockThreshold` carry `lowStockRemaining` — render the badge
@@ -2399,4 +2408,4 @@ declare class NewsletterModule {
2399
2408
  unsubscribe(email: string): Promise<SdkResult<NewsletterUnsubscribeResult>>;
2400
2409
  }
2401
2410
 
2402
- export { type CookieConsentInput as $, type AddressSuggestion as A, type BehioStorefrontConfig as B, type Category as C, type ShopInfo as D, type ShopScripts as E, type FilterField as F, type ShopSeo as G, type Bundle as H, type ProductGroup as I, type CrossSellItem as J, type ActivePromotion as K, type LoyaltySummary as L, type Menu as M, type NewsletterSubscribeResult as N, type OrderListItem as O, type ProductsQuery as P, type GiftCardBalance as Q, type RegisterInput as R, type Subscription as S, type ProductReviewsResponse as T, type SubmitReviewInput as U, type ReturnableOrder as V, type WishlistItem as W, type ReturnStatus as X, type ReturnRequest as Y, type SubmitReturnInput as Z, type CookieConsent as _, BehioStorefront as a, type PriceDisplay as a$, type QuoteRequest as a0, type SubmitQuoteInput as a1, type BackInStockSubscription as a2, type AddToCartInput as a3, type AuthTokens as a4, BehioApiError as a5, type BundleItem as a6, type CartDiscount as a7, type CartItem as a8, type CheckoutAddress as a9, type FacetAvailability as aA, type FacetCategory as aB, type FacetLabel as aC, type FacetPriceRange as aD, type FacetRange as aE, type FacetRatingBucket as aF, type FacetValue as aG, FulfillmentStatuses as aH, type GiftCardPurchaseInput as aI, type GiftCardPurchaseResult as aJ, type GiftCardSummary as aK, type LoyaltyBalance as aL, type LoyaltyNextTier as aM, type LoyaltyProgram as aN, type LoyaltyTier as aO, type LoyaltyTierPerks as aP, type LoyaltyTransaction as aQ, type MenuItem as aR, type MenuItemRef as aS, type MenuItemType as aT, type NewsletterOptInDefault as aU, type OrderStatusHistory as aV, OrderStatuses as aW, type OrderTracking as aX, type PageAttachment as aY, PaymentStatuses as aZ, type PickupPointHours as a_, type FulfillmentStatus as aa, type LoginInput as ab, type MessageResponse as ac, type OrderItem as ad, type OrderStatus as ae, type PaymentStatus as af, type ProductPrice as ag, type ProductReview as ah, type ProductVariant as ai, type SdkResult as aj, type AddressType as ak, AddressTypes as al, type BadgeTone as am, type BehioErrorCode as an, type BehioEventHandler as ao, type BehioEventType as ap, BehioNetworkError as aq, type CartBundleLine as ar, type CartBundleLineItem as as, type CartItemProduct as at, type CartPromotion as au, type CheckoutSettings as av, type DataGroupFieldType as aw, type DigitalDownload as ax, type DownloadUrl as ay, type Facet as az, type PaginatedResponse as b, type ProductAvailability as b0, type ProductCustomField as b1, type ProductCustomFieldGroup as b2, type ProductMedia as b3, type ProductMediaVariant as b4, type ProductPromotionSummary as b5, ProductSort as b6, type ProductSortValue as b7, type ProductVolumePrice as b8, type QuoteItem as b9, type RegisterResult as ba, type RequestInterceptor as bb, type RequestInterceptorConfig as bc, type ResponseInterceptor as bd, type ResponseInterceptorData as be, type ReturnRequestItem as bf, type ReturnStatusItem as bg, type ReturnableOrderItem as bh, type SdkError as bi, type ShopScript as bj, type ShopScriptPlacement as bk, type ShopScriptType as bl, type ShopSeoIdentity as bm, type StockBehavior as bn, type SubscriptionFrequency as bo, type SubscriptionItem as bp, type SubscriptionStatus as bq, type TaxBreakdownLine as br, type VariantAxis as bs, type VariantAxisValue as bt, err as bu, ok as bv, toSdkError as bw, type ProductListItem as c, type ProductDetail as d, type CategoryDetail as e, type ProductLabel as f, type FacetsResponse as g, type Cart as h, type CustomerProfile as i, type CustomerAddress as j, type AddressDetail as k, type SubscriptionAction as l, type PickupPointsInput as m, type PickupPoint as n, type ShippingMethodSummary as o, type ShippingQuoteInput as p, type ShippingQuote as q, type CheckoutPaymentMethod as r, type NewsletterSubscribeInput as s, type NewsletterUnsubscribeResult as t, type OrderDetail as u, type OrderAccessRequestResponse as v, type OrderAccessVerifyResponse as w, type CheckoutInput as x, type PageDetail as y, type Page as z };
2411
+ export { type CookieConsentInput as $, type AddressSuggestion as A, type BehioStorefrontConfig as B, type Category as C, type ShopInfo as D, type ShopScripts as E, type FilterField as F, type ShopSeo as G, type Bundle as H, type ProductGroup as I, type CrossSellItem as J, type ActivePromotion as K, type LoyaltySummary as L, type Menu as M, type NewsletterSubscribeResult as N, type OrderListItem as O, type ProductsQuery as P, type GiftCardBalance as Q, type RegisterInput as R, type Subscription as S, type ProductReviewsResponse as T, type SubmitReviewInput as U, type ReturnableOrder as V, type WishlistItem as W, type ReturnStatus as X, type ReturnRequest as Y, type SubmitReturnInput as Z, type CookieConsent as _, BehioStorefront as a, type PriceDisplay as a$, type QuoteRequest as a0, type SubmitQuoteInput as a1, type BackInStockSubscription as a2, type AddToCartInput as a3, type AuthTokens as a4, BehioApiError as a5, type BundleItem as a6, type CartDiscount as a7, type CartItem as a8, type CheckoutAddress as a9, type FacetAvailability as aA, type FacetCategory as aB, type FacetLabel as aC, type FacetPriceRange as aD, type FacetRange as aE, type FacetRatingBucket as aF, type FacetValue as aG, FulfillmentStatuses as aH, type GiftCardPurchaseInput as aI, type GiftCardPurchaseResult as aJ, type GiftCardSummary as aK, type LoyaltyBalance as aL, type LoyaltyNextTier as aM, type LoyaltyProgram as aN, type LoyaltyTier as aO, type LoyaltyTierPerks as aP, type LoyaltyTransaction as aQ, type MenuItem as aR, type MenuItemRef as aS, type MenuItemType as aT, type NewsletterOptInDefault as aU, type OrderStatusHistory as aV, OrderStatuses as aW, type OrderTracking as aX, type PageAttachment as aY, PaymentStatuses as aZ, type PickupPointHours as a_, type FulfillmentStatus as aa, type LoginInput as ab, type MessageResponse as ac, type OrderItem as ad, type OrderStatus as ae, type PaymentStatus as af, type ProductPrice as ag, type ProductReview as ah, type ProductVariant as ai, type SdkResult as aj, type AddressType as ak, AddressTypes as al, type BadgeTone as am, type BehioErrorCode as an, type BehioEventHandler as ao, type BehioEventType as ap, BehioNetworkError as aq, type CartBundleLine as ar, type CartBundleLineItem as as, type CartItemProduct as at, type CartPromotion as au, type CheckoutSettings as av, type DataGroupFieldType as aw, type DigitalDownload as ax, type DownloadUrl as ay, type Facet as az, type PaginatedResponse as b, type ProductAvailability as b0, type ProductCustomField as b1, type ProductCustomFieldGroup as b2, type ProductMedia as b3, type ProductMediaVariant as b4, type ProductPromotionSummary as b5, ProductSort as b6, type ProductSortValue as b7, type ProductVolumePrice as b8, type QuoteItem as b9, type RegisterResult as ba, type RequestInterceptor as bb, type RequestInterceptorConfig as bc, type ResponseInterceptor as bd, type ResponseInterceptorData as be, type ReturnRequestItem as bf, type ReturnStatusItem as bg, type ReturnableOrderItem as bh, type SdkError as bi, type ShopScript as bj, type ShopScriptPlacement as bk, type ShopScriptType as bl, type ShopSeoIdentity as bm, type StockBehavior as bn, type StockMode as bo, type SubscriptionFrequency as bp, type SubscriptionItem as bq, type SubscriptionStatus as br, type TaxBreakdownLine as bs, type VariantAxis as bt, type VariantAxisValue as bu, err as bv, ok as bw, toSdkError as bx, type ProductListItem as c, type ProductDetail as d, type CategoryDetail as e, type ProductLabel as f, type FacetsResponse as g, type Cart as h, type CustomerProfile as i, type CustomerAddress as j, type AddressDetail as k, type SubscriptionAction as l, type PickupPointsInput as m, type PickupPoint as n, type ShippingMethodSummary as o, type ShippingQuoteInput as p, type ShippingQuote as q, type CheckoutPaymentMethod as r, type NewsletterSubscribeInput as s, type NewsletterUnsubscribeResult as t, type OrderDetail as u, type OrderAccessRequestResponse as v, type OrderAccessVerifyResponse as w, type CheckoutInput as x, type PageDetail as y, type Page as z };
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { a as BehioStorefront, aj as SdkResult, _ as CookieConsent } from './client-Bf2bJGyN.mjs';
2
- export { K as ActivePromotion, a3 as AddToCartInput, k as AddressDetail, A as AddressSuggestion, ak as AddressType, al as AddressTypes, a4 as AuthTokens, a2 as BackInStockSubscription, am as BadgeTone, a5 as BehioApiError, an as BehioErrorCode, ao as BehioEventHandler, ap as BehioEventType, aq as BehioNetworkError, B as BehioStorefrontConfig, H as Bundle, a6 as BundleItem, h as Cart, ar as CartBundleLine, as as CartBundleLineItem, a7 as CartDiscount, a8 as CartItem, at as CartItemProduct, au as CartPromotion, C as Category, e as CategoryDetail, a9 as CheckoutAddress, x as CheckoutInput, r as CheckoutPaymentMethod, av as CheckoutSettings, $ as CookieConsentInput, J as CrossSellItem, j as CustomerAddress, i as CustomerProfile, aw as DataGroupFieldType, ax as DigitalDownload, ay as DownloadUrl, az as Facet, aA as FacetAvailability, aB as FacetCategory, aC as FacetLabel, aD as FacetPriceRange, aE as FacetRange, aF as FacetRatingBucket, aG as FacetValue, g as FacetsResponse, F as FilterField, aa as FulfillmentStatus, aH as FulfillmentStatuses, Q as GiftCardBalance, aI as GiftCardPurchaseInput, aJ as GiftCardPurchaseResult, aK as GiftCardSummary, ab as LoginInput, aL as LoyaltyBalance, aM as LoyaltyNextTier, aN as LoyaltyProgram, L as LoyaltySummary, aO as LoyaltyTier, aP as LoyaltyTierPerks, aQ as LoyaltyTransaction, M as Menu, aR as MenuItem, aS as MenuItemRef, aT as MenuItemType, ac as MessageResponse, aU as NewsletterOptInDefault, s as NewsletterSubscribeInput, N as NewsletterSubscribeResult, t as NewsletterUnsubscribeResult, v as OrderAccessRequestResponse, w as OrderAccessVerifyResponse, u as OrderDetail, ad as OrderItem, O as OrderListItem, ae as OrderStatus, aV as OrderStatusHistory, aW as OrderStatuses, aX as OrderTracking, z as Page, aY as PageAttachment, y as PageDetail, b as PaginatedResponse, af as PaymentStatus, aZ as PaymentStatuses, n as PickupPoint, a_ as PickupPointHours, m as PickupPointsInput, a$ as PriceDisplay, b0 as ProductAvailability, b1 as ProductCustomField, b2 as ProductCustomFieldGroup, d as ProductDetail, I as ProductGroup, f as ProductLabel, c as ProductListItem, b3 as ProductMedia, b4 as ProductMediaVariant, ag as ProductPrice, b5 as ProductPromotionSummary, ah as ProductReview, T as ProductReviewsResponse, b6 as ProductSort, b7 as ProductSortValue, ai as ProductVariant, b8 as ProductVolumePrice, P as ProductsQuery, b9 as QuoteItem, a0 as QuoteRequest, R as RegisterInput, ba as RegisterResult, bb as RequestInterceptor, bc as RequestInterceptorConfig, bd as ResponseInterceptor, be as ResponseInterceptorData, Y as ReturnRequest, bf as ReturnRequestItem, X as ReturnStatus, bg as ReturnStatusItem, V as ReturnableOrder, bh as ReturnableOrderItem, bi as SdkError, o as ShippingMethodSummary, q as ShippingQuote, p as ShippingQuoteInput, D as ShopInfo, bj as ShopScript, bk as ShopScriptPlacement, bl as ShopScriptType, E as ShopScripts, G as ShopSeo, bm as ShopSeoIdentity, bn as StockBehavior, a1 as SubmitQuoteInput, Z as SubmitReturnInput, U as SubmitReviewInput, S as Subscription, l as SubscriptionAction, bo as SubscriptionFrequency, bp as SubscriptionItem, bq as SubscriptionStatus, br as TaxBreakdownLine, bs as VariantAxis, bt as VariantAxisValue, W as WishlistItem, bu as err, bv as ok, bw as toSdkError } from './client-Bf2bJGyN.mjs';
1
+ import { a as BehioStorefront, aj as SdkResult, _ as CookieConsent } from './client-BgYibdTK.mjs';
2
+ export { K as ActivePromotion, a3 as AddToCartInput, k as AddressDetail, A as AddressSuggestion, ak as AddressType, al as AddressTypes, a4 as AuthTokens, a2 as BackInStockSubscription, am as BadgeTone, a5 as BehioApiError, an as BehioErrorCode, ao as BehioEventHandler, ap as BehioEventType, aq as BehioNetworkError, B as BehioStorefrontConfig, H as Bundle, a6 as BundleItem, h as Cart, ar as CartBundleLine, as as CartBundleLineItem, a7 as CartDiscount, a8 as CartItem, at as CartItemProduct, au as CartPromotion, C as Category, e as CategoryDetail, a9 as CheckoutAddress, x as CheckoutInput, r as CheckoutPaymentMethod, av as CheckoutSettings, $ as CookieConsentInput, J as CrossSellItem, j as CustomerAddress, i as CustomerProfile, aw as DataGroupFieldType, ax as DigitalDownload, ay as DownloadUrl, az as Facet, aA as FacetAvailability, aB as FacetCategory, aC as FacetLabel, aD as FacetPriceRange, aE as FacetRange, aF as FacetRatingBucket, aG as FacetValue, g as FacetsResponse, F as FilterField, aa as FulfillmentStatus, aH as FulfillmentStatuses, Q as GiftCardBalance, aI as GiftCardPurchaseInput, aJ as GiftCardPurchaseResult, aK as GiftCardSummary, ab as LoginInput, aL as LoyaltyBalance, aM as LoyaltyNextTier, aN as LoyaltyProgram, L as LoyaltySummary, aO as LoyaltyTier, aP as LoyaltyTierPerks, aQ as LoyaltyTransaction, M as Menu, aR as MenuItem, aS as MenuItemRef, aT as MenuItemType, ac as MessageResponse, aU as NewsletterOptInDefault, s as NewsletterSubscribeInput, N as NewsletterSubscribeResult, t as NewsletterUnsubscribeResult, v as OrderAccessRequestResponse, w as OrderAccessVerifyResponse, u as OrderDetail, ad as OrderItem, O as OrderListItem, ae as OrderStatus, aV as OrderStatusHistory, aW as OrderStatuses, aX as OrderTracking, z as Page, aY as PageAttachment, y as PageDetail, b as PaginatedResponse, af as PaymentStatus, aZ as PaymentStatuses, n as PickupPoint, a_ as PickupPointHours, m as PickupPointsInput, a$ as PriceDisplay, b0 as ProductAvailability, b1 as ProductCustomField, b2 as ProductCustomFieldGroup, d as ProductDetail, I as ProductGroup, f as ProductLabel, c as ProductListItem, b3 as ProductMedia, b4 as ProductMediaVariant, ag as ProductPrice, b5 as ProductPromotionSummary, ah as ProductReview, T as ProductReviewsResponse, b6 as ProductSort, b7 as ProductSortValue, ai as ProductVariant, b8 as ProductVolumePrice, P as ProductsQuery, b9 as QuoteItem, a0 as QuoteRequest, R as RegisterInput, ba as RegisterResult, bb as RequestInterceptor, bc as RequestInterceptorConfig, bd as ResponseInterceptor, be as ResponseInterceptorData, Y as ReturnRequest, bf as ReturnRequestItem, X as ReturnStatus, bg as ReturnStatusItem, V as ReturnableOrder, bh as ReturnableOrderItem, bi as SdkError, o as ShippingMethodSummary, q as ShippingQuote, p as ShippingQuoteInput, D as ShopInfo, bj as ShopScript, bk as ShopScriptPlacement, bl as ShopScriptType, E as ShopScripts, G as ShopSeo, bm as ShopSeoIdentity, bn as StockBehavior, bo as StockMode, a1 as SubmitQuoteInput, Z as SubmitReturnInput, U as SubmitReviewInput, S as Subscription, l as SubscriptionAction, bp as SubscriptionFrequency, bq as SubscriptionItem, br as SubscriptionStatus, bs as TaxBreakdownLine, bt as VariantAxis, bu as VariantAxisValue, W as WishlistItem, bv as err, bw as ok, bx as toSdkError } from './client-BgYibdTK.mjs';
3
3
 
4
4
  /**
5
5
  * Format a price amount with currency using Intl.NumberFormat.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { a as BehioStorefront, aj as SdkResult, _ as CookieConsent } from './client-Bf2bJGyN.js';
2
- export { K as ActivePromotion, a3 as AddToCartInput, k as AddressDetail, A as AddressSuggestion, ak as AddressType, al as AddressTypes, a4 as AuthTokens, a2 as BackInStockSubscription, am as BadgeTone, a5 as BehioApiError, an as BehioErrorCode, ao as BehioEventHandler, ap as BehioEventType, aq as BehioNetworkError, B as BehioStorefrontConfig, H as Bundle, a6 as BundleItem, h as Cart, ar as CartBundleLine, as as CartBundleLineItem, a7 as CartDiscount, a8 as CartItem, at as CartItemProduct, au as CartPromotion, C as Category, e as CategoryDetail, a9 as CheckoutAddress, x as CheckoutInput, r as CheckoutPaymentMethod, av as CheckoutSettings, $ as CookieConsentInput, J as CrossSellItem, j as CustomerAddress, i as CustomerProfile, aw as DataGroupFieldType, ax as DigitalDownload, ay as DownloadUrl, az as Facet, aA as FacetAvailability, aB as FacetCategory, aC as FacetLabel, aD as FacetPriceRange, aE as FacetRange, aF as FacetRatingBucket, aG as FacetValue, g as FacetsResponse, F as FilterField, aa as FulfillmentStatus, aH as FulfillmentStatuses, Q as GiftCardBalance, aI as GiftCardPurchaseInput, aJ as GiftCardPurchaseResult, aK as GiftCardSummary, ab as LoginInput, aL as LoyaltyBalance, aM as LoyaltyNextTier, aN as LoyaltyProgram, L as LoyaltySummary, aO as LoyaltyTier, aP as LoyaltyTierPerks, aQ as LoyaltyTransaction, M as Menu, aR as MenuItem, aS as MenuItemRef, aT as MenuItemType, ac as MessageResponse, aU as NewsletterOptInDefault, s as NewsletterSubscribeInput, N as NewsletterSubscribeResult, t as NewsletterUnsubscribeResult, v as OrderAccessRequestResponse, w as OrderAccessVerifyResponse, u as OrderDetail, ad as OrderItem, O as OrderListItem, ae as OrderStatus, aV as OrderStatusHistory, aW as OrderStatuses, aX as OrderTracking, z as Page, aY as PageAttachment, y as PageDetail, b as PaginatedResponse, af as PaymentStatus, aZ as PaymentStatuses, n as PickupPoint, a_ as PickupPointHours, m as PickupPointsInput, a$ as PriceDisplay, b0 as ProductAvailability, b1 as ProductCustomField, b2 as ProductCustomFieldGroup, d as ProductDetail, I as ProductGroup, f as ProductLabel, c as ProductListItem, b3 as ProductMedia, b4 as ProductMediaVariant, ag as ProductPrice, b5 as ProductPromotionSummary, ah as ProductReview, T as ProductReviewsResponse, b6 as ProductSort, b7 as ProductSortValue, ai as ProductVariant, b8 as ProductVolumePrice, P as ProductsQuery, b9 as QuoteItem, a0 as QuoteRequest, R as RegisterInput, ba as RegisterResult, bb as RequestInterceptor, bc as RequestInterceptorConfig, bd as ResponseInterceptor, be as ResponseInterceptorData, Y as ReturnRequest, bf as ReturnRequestItem, X as ReturnStatus, bg as ReturnStatusItem, V as ReturnableOrder, bh as ReturnableOrderItem, bi as SdkError, o as ShippingMethodSummary, q as ShippingQuote, p as ShippingQuoteInput, D as ShopInfo, bj as ShopScript, bk as ShopScriptPlacement, bl as ShopScriptType, E as ShopScripts, G as ShopSeo, bm as ShopSeoIdentity, bn as StockBehavior, a1 as SubmitQuoteInput, Z as SubmitReturnInput, U as SubmitReviewInput, S as Subscription, l as SubscriptionAction, bo as SubscriptionFrequency, bp as SubscriptionItem, bq as SubscriptionStatus, br as TaxBreakdownLine, bs as VariantAxis, bt as VariantAxisValue, W as WishlistItem, bu as err, bv as ok, bw as toSdkError } from './client-Bf2bJGyN.js';
1
+ import { a as BehioStorefront, aj as SdkResult, _ as CookieConsent } from './client-BgYibdTK.js';
2
+ export { K as ActivePromotion, a3 as AddToCartInput, k as AddressDetail, A as AddressSuggestion, ak as AddressType, al as AddressTypes, a4 as AuthTokens, a2 as BackInStockSubscription, am as BadgeTone, a5 as BehioApiError, an as BehioErrorCode, ao as BehioEventHandler, ap as BehioEventType, aq as BehioNetworkError, B as BehioStorefrontConfig, H as Bundle, a6 as BundleItem, h as Cart, ar as CartBundleLine, as as CartBundleLineItem, a7 as CartDiscount, a8 as CartItem, at as CartItemProduct, au as CartPromotion, C as Category, e as CategoryDetail, a9 as CheckoutAddress, x as CheckoutInput, r as CheckoutPaymentMethod, av as CheckoutSettings, $ as CookieConsentInput, J as CrossSellItem, j as CustomerAddress, i as CustomerProfile, aw as DataGroupFieldType, ax as DigitalDownload, ay as DownloadUrl, az as Facet, aA as FacetAvailability, aB as FacetCategory, aC as FacetLabel, aD as FacetPriceRange, aE as FacetRange, aF as FacetRatingBucket, aG as FacetValue, g as FacetsResponse, F as FilterField, aa as FulfillmentStatus, aH as FulfillmentStatuses, Q as GiftCardBalance, aI as GiftCardPurchaseInput, aJ as GiftCardPurchaseResult, aK as GiftCardSummary, ab as LoginInput, aL as LoyaltyBalance, aM as LoyaltyNextTier, aN as LoyaltyProgram, L as LoyaltySummary, aO as LoyaltyTier, aP as LoyaltyTierPerks, aQ as LoyaltyTransaction, M as Menu, aR as MenuItem, aS as MenuItemRef, aT as MenuItemType, ac as MessageResponse, aU as NewsletterOptInDefault, s as NewsletterSubscribeInput, N as NewsletterSubscribeResult, t as NewsletterUnsubscribeResult, v as OrderAccessRequestResponse, w as OrderAccessVerifyResponse, u as OrderDetail, ad as OrderItem, O as OrderListItem, ae as OrderStatus, aV as OrderStatusHistory, aW as OrderStatuses, aX as OrderTracking, z as Page, aY as PageAttachment, y as PageDetail, b as PaginatedResponse, af as PaymentStatus, aZ as PaymentStatuses, n as PickupPoint, a_ as PickupPointHours, m as PickupPointsInput, a$ as PriceDisplay, b0 as ProductAvailability, b1 as ProductCustomField, b2 as ProductCustomFieldGroup, d as ProductDetail, I as ProductGroup, f as ProductLabel, c as ProductListItem, b3 as ProductMedia, b4 as ProductMediaVariant, ag as ProductPrice, b5 as ProductPromotionSummary, ah as ProductReview, T as ProductReviewsResponse, b6 as ProductSort, b7 as ProductSortValue, ai as ProductVariant, b8 as ProductVolumePrice, P as ProductsQuery, b9 as QuoteItem, a0 as QuoteRequest, R as RegisterInput, ba as RegisterResult, bb as RequestInterceptor, bc as RequestInterceptorConfig, bd as ResponseInterceptor, be as ResponseInterceptorData, Y as ReturnRequest, bf as ReturnRequestItem, X as ReturnStatus, bg as ReturnStatusItem, V as ReturnableOrder, bh as ReturnableOrderItem, bi as SdkError, o as ShippingMethodSummary, q as ShippingQuote, p as ShippingQuoteInput, D as ShopInfo, bj as ShopScript, bk as ShopScriptPlacement, bl as ShopScriptType, E as ShopScripts, G as ShopSeo, bm as ShopSeoIdentity, bn as StockBehavior, bo as StockMode, a1 as SubmitQuoteInput, Z as SubmitReturnInput, U as SubmitReviewInput, S as Subscription, l as SubscriptionAction, bp as SubscriptionFrequency, bq as SubscriptionItem, br as SubscriptionStatus, bs as TaxBreakdownLine, bt as VariantAxis, bu as VariantAxisValue, W as WishlistItem, bv as err, bw as ok, bx as toSdkError } from './client-BgYibdTK.js';
3
3
 
4
4
  /**
5
5
  * Format a price amount with currency using Intl.NumberFormat.
package/dist/next.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { B as BehioStorefrontConfig, a as BehioStorefront } from './client-Bf2bJGyN.mjs';
1
+ import { B as BehioStorefrontConfig, a as BehioStorefront } from './client-BgYibdTK.mjs';
2
2
 
3
3
  interface GetBehioOptions extends Partial<BehioStorefrontConfig> {
4
4
  /** Override the cart session cookie name (default: "behio_cart_session"). */
package/dist/next.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { B as BehioStorefrontConfig, a as BehioStorefront } from './client-Bf2bJGyN.js';
1
+ import { B as BehioStorefrontConfig, a as BehioStorefront } from './client-BgYibdTK.js';
2
2
 
3
3
  interface GetBehioOptions extends Partial<BehioStorefrontConfig> {
4
4
  /** Override the cart session cookie name (default: "behio_cart_session"). */
package/dist/react.d.mts CHANGED
@@ -1,8 +1,8 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as _tanstack_react_query from '@tanstack/react-query';
3
3
  import { QueryClient } from '@tanstack/react-query';
4
- import { a as BehioStorefront, P as ProductsQuery, b as PaginatedResponse, c as ProductListItem, d as ProductDetail, C as Category, e as CategoryDetail, M as Menu, f as ProductLabel, F as FilterField, g as FacetsResponse, h as Cart, i as CustomerProfile, R as RegisterInput, j as CustomerAddress, A as AddressSuggestion, k as AddressDetail, L as LoyaltySummary, S as Subscription, l as SubscriptionAction, m as PickupPointsInput, n as PickupPoint, o as ShippingMethodSummary, p as ShippingQuoteInput, q as ShippingQuote, r as CheckoutPaymentMethod, N as NewsletterSubscribeResult, s as NewsletterSubscribeInput, t as NewsletterUnsubscribeResult, O as OrderListItem, u as OrderDetail, v as OrderAccessRequestResponse, w as OrderAccessVerifyResponse, x as CheckoutInput, y as PageDetail, z as Page, D as ShopInfo, E as ShopScripts, G as ShopSeo, H as Bundle, I as ProductGroup, J as CrossSellItem, K as ActivePromotion, Q as GiftCardBalance, W as WishlistItem, T as ProductReviewsResponse, U as SubmitReviewInput, V as ReturnableOrder, X as ReturnStatus, Y as ReturnRequest, Z as SubmitReturnInput, _ as CookieConsent, $ as CookieConsentInput, a0 as QuoteRequest, a1 as SubmitQuoteInput, a2 as BackInStockSubscription } from './client-Bf2bJGyN.mjs';
5
- export { a3 as AddToCartInput, a4 as AuthTokens, a5 as BehioApiError, a6 as BundleItem, a7 as CartDiscount, a8 as CartItem, a9 as CheckoutAddress, aa as FulfillmentStatus, ab as LoginInput, ac as MessageResponse, ad as OrderItem, ae as OrderStatus, af as PaymentStatus, ag as ProductPrice, ah as ProductReview, ai as ProductVariant } from './client-Bf2bJGyN.mjs';
4
+ import { a as BehioStorefront, P as ProductsQuery, b as PaginatedResponse, c as ProductListItem, d as ProductDetail, C as Category, e as CategoryDetail, M as Menu, f as ProductLabel, F as FilterField, g as FacetsResponse, h as Cart, i as CustomerProfile, R as RegisterInput, j as CustomerAddress, A as AddressSuggestion, k as AddressDetail, L as LoyaltySummary, S as Subscription, l as SubscriptionAction, m as PickupPointsInput, n as PickupPoint, o as ShippingMethodSummary, p as ShippingQuoteInput, q as ShippingQuote, r as CheckoutPaymentMethod, N as NewsletterSubscribeResult, s as NewsletterSubscribeInput, t as NewsletterUnsubscribeResult, O as OrderListItem, u as OrderDetail, v as OrderAccessRequestResponse, w as OrderAccessVerifyResponse, x as CheckoutInput, y as PageDetail, z as Page, D as ShopInfo, E as ShopScripts, G as ShopSeo, H as Bundle, I as ProductGroup, J as CrossSellItem, K as ActivePromotion, Q as GiftCardBalance, W as WishlistItem, T as ProductReviewsResponse, U as SubmitReviewInput, V as ReturnableOrder, X as ReturnStatus, Y as ReturnRequest, Z as SubmitReturnInput, _ as CookieConsent, $ as CookieConsentInput, a0 as QuoteRequest, a1 as SubmitQuoteInput, a2 as BackInStockSubscription } from './client-BgYibdTK.mjs';
5
+ export { a3 as AddToCartInput, a4 as AuthTokens, a5 as BehioApiError, a6 as BundleItem, a7 as CartDiscount, a8 as CartItem, a9 as CheckoutAddress, aa as FulfillmentStatus, ab as LoginInput, ac as MessageResponse, ad as OrderItem, ae as OrderStatus, af as PaymentStatus, ag as ProductPrice, ah as ProductReview, ai as ProductVariant } from './client-BgYibdTK.mjs';
6
6
  import * as _tanstack_query_core from '@tanstack/query-core';
7
7
  export { EcommerceEventName, EcommerceItem, EcommercePayload, formatPrice, generateVisitorId, getStoredVisitorId, grantAnalyticsConsent, revokeAnalyticsConsent, trackEcommerceEvent } from './index.mjs';
8
8
 
package/dist/react.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as _tanstack_react_query from '@tanstack/react-query';
3
3
  import { QueryClient } from '@tanstack/react-query';
4
- import { a as BehioStorefront, P as ProductsQuery, b as PaginatedResponse, c as ProductListItem, d as ProductDetail, C as Category, e as CategoryDetail, M as Menu, f as ProductLabel, F as FilterField, g as FacetsResponse, h as Cart, i as CustomerProfile, R as RegisterInput, j as CustomerAddress, A as AddressSuggestion, k as AddressDetail, L as LoyaltySummary, S as Subscription, l as SubscriptionAction, m as PickupPointsInput, n as PickupPoint, o as ShippingMethodSummary, p as ShippingQuoteInput, q as ShippingQuote, r as CheckoutPaymentMethod, N as NewsletterSubscribeResult, s as NewsletterSubscribeInput, t as NewsletterUnsubscribeResult, O as OrderListItem, u as OrderDetail, v as OrderAccessRequestResponse, w as OrderAccessVerifyResponse, x as CheckoutInput, y as PageDetail, z as Page, D as ShopInfo, E as ShopScripts, G as ShopSeo, H as Bundle, I as ProductGroup, J as CrossSellItem, K as ActivePromotion, Q as GiftCardBalance, W as WishlistItem, T as ProductReviewsResponse, U as SubmitReviewInput, V as ReturnableOrder, X as ReturnStatus, Y as ReturnRequest, Z as SubmitReturnInput, _ as CookieConsent, $ as CookieConsentInput, a0 as QuoteRequest, a1 as SubmitQuoteInput, a2 as BackInStockSubscription } from './client-Bf2bJGyN.js';
5
- export { a3 as AddToCartInput, a4 as AuthTokens, a5 as BehioApiError, a6 as BundleItem, a7 as CartDiscount, a8 as CartItem, a9 as CheckoutAddress, aa as FulfillmentStatus, ab as LoginInput, ac as MessageResponse, ad as OrderItem, ae as OrderStatus, af as PaymentStatus, ag as ProductPrice, ah as ProductReview, ai as ProductVariant } from './client-Bf2bJGyN.js';
4
+ import { a as BehioStorefront, P as ProductsQuery, b as PaginatedResponse, c as ProductListItem, d as ProductDetail, C as Category, e as CategoryDetail, M as Menu, f as ProductLabel, F as FilterField, g as FacetsResponse, h as Cart, i as CustomerProfile, R as RegisterInput, j as CustomerAddress, A as AddressSuggestion, k as AddressDetail, L as LoyaltySummary, S as Subscription, l as SubscriptionAction, m as PickupPointsInput, n as PickupPoint, o as ShippingMethodSummary, p as ShippingQuoteInput, q as ShippingQuote, r as CheckoutPaymentMethod, N as NewsletterSubscribeResult, s as NewsletterSubscribeInput, t as NewsletterUnsubscribeResult, O as OrderListItem, u as OrderDetail, v as OrderAccessRequestResponse, w as OrderAccessVerifyResponse, x as CheckoutInput, y as PageDetail, z as Page, D as ShopInfo, E as ShopScripts, G as ShopSeo, H as Bundle, I as ProductGroup, J as CrossSellItem, K as ActivePromotion, Q as GiftCardBalance, W as WishlistItem, T as ProductReviewsResponse, U as SubmitReviewInput, V as ReturnableOrder, X as ReturnStatus, Y as ReturnRequest, Z as SubmitReturnInput, _ as CookieConsent, $ as CookieConsentInput, a0 as QuoteRequest, a1 as SubmitQuoteInput, a2 as BackInStockSubscription } from './client-BgYibdTK.js';
5
+ export { a3 as AddToCartInput, a4 as AuthTokens, a5 as BehioApiError, a6 as BundleItem, a7 as CartDiscount, a8 as CartItem, a9 as CheckoutAddress, aa as FulfillmentStatus, ab as LoginInput, ac as MessageResponse, ad as OrderItem, ae as OrderStatus, af as PaymentStatus, ag as ProductPrice, ah as ProductReview, ai as ProductVariant } from './client-BgYibdTK.js';
6
6
  import * as _tanstack_query_core from '@tanstack/query-core';
7
7
  export { EcommerceEventName, EcommerceItem, EcommercePayload, formatPrice, generateVisitorId, getStoredVisitorId, grantAnalyticsConsent, revokeAnalyticsConsent, trackEcommerceEvent } from './index.js';
8
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@behio/storefront-sdk",
3
- "version": "0.36.0",
3
+ "version": "0.37.0",
4
4
  "description": "TypeScript SDK for Behio Headless E-Shop \u2014 core client + React hooks",
5
5
  "author": "Behio",
6
6
  "license": "MIT",