@behio/storefront-sdk 2.21.0 → 2.23.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.
@@ -1407,6 +1407,12 @@ interface TaxBreakdownLine {
1407
1407
  grossAmount: number;
1408
1408
  }
1409
1409
  interface CartDiscount {
1410
+ /** Additional delivery benefit. Absent/null means none on older APIs.
1411
+ * FREE_SHIPPING in `type` still denotes a legacy delivery-only code. */
1412
+ shippingDiscountType?: "PERCENTAGE" | "FIXED_AMOUNT" | "FREE_SHIPPING" | null;
1413
+ /** Percentage or fixed amount, capped at delivery cost by checkout.
1414
+ * Do not subtract locally: use checkout preview's authoritative totals. */
1415
+ shippingDiscountValue?: number;
1410
1416
  code: string;
1411
1417
  type: string;
1412
1418
  value: number;
@@ -1844,6 +1850,9 @@ interface OrderDetail extends OrderListItem {
1844
1850
  * the order returned by `checkout.createOrder()`. Null/absent for
1845
1851
  * offline methods (bank transfer, COD) and zero-total orders.
1846
1852
  */
1853
+ /** Existing unexpired Stripe Checkout session for this authorized unpaid order.
1854
+ * Null after payment, cancellation, expiry, or when no eligible attempt exists.
1855
+ * Reopen it directly; never submit checkout again to retry this order. */
1847
1856
  paymentRedirectUrl?: string | null;
1848
1857
  }
1849
1858
  /** Generic response to `orders.requestAccessCode` — never reveals existence. */
@@ -2200,6 +2209,8 @@ interface Page {
2200
2209
  updatedAt?: number;
2201
2210
  }
2202
2211
  interface PageDetail {
2212
+ /** Stable public content identifier for template assignment. */
2213
+ id: string;
2203
2214
  slug: string;
2204
2215
  title: string;
2205
2216
  /**
@@ -2241,6 +2252,8 @@ interface BlogSettings {
2241
2252
  }
2242
2253
  /** One blog (a group of posts). A site can have several: news, recipes, stories. */
2243
2254
  interface Blog {
2255
+ /** Stable public content identifier for template assignment. */
2256
+ id: string;
2244
2257
  /** URL segment: /blog/{handle} */
2245
2258
  handle: string;
2246
2259
  name: string;
@@ -2275,6 +2288,8 @@ interface BlogPostsPage {
2275
2288
  tags: BlogTag[];
2276
2289
  }
2277
2290
  interface BlogPostDetail {
2291
+ /** Stable public content identifier for template assignment. */
2292
+ id: string;
2278
2293
  slug: string;
2279
2294
  blogHandle: string;
2280
2295
  blogName: string;
@@ -1407,6 +1407,12 @@ interface TaxBreakdownLine {
1407
1407
  grossAmount: number;
1408
1408
  }
1409
1409
  interface CartDiscount {
1410
+ /** Additional delivery benefit. Absent/null means none on older APIs.
1411
+ * FREE_SHIPPING in `type` still denotes a legacy delivery-only code. */
1412
+ shippingDiscountType?: "PERCENTAGE" | "FIXED_AMOUNT" | "FREE_SHIPPING" | null;
1413
+ /** Percentage or fixed amount, capped at delivery cost by checkout.
1414
+ * Do not subtract locally: use checkout preview's authoritative totals. */
1415
+ shippingDiscountValue?: number;
1410
1416
  code: string;
1411
1417
  type: string;
1412
1418
  value: number;
@@ -1844,6 +1850,9 @@ interface OrderDetail extends OrderListItem {
1844
1850
  * the order returned by `checkout.createOrder()`. Null/absent for
1845
1851
  * offline methods (bank transfer, COD) and zero-total orders.
1846
1852
  */
1853
+ /** Existing unexpired Stripe Checkout session for this authorized unpaid order.
1854
+ * Null after payment, cancellation, expiry, or when no eligible attempt exists.
1855
+ * Reopen it directly; never submit checkout again to retry this order. */
1847
1856
  paymentRedirectUrl?: string | null;
1848
1857
  }
1849
1858
  /** Generic response to `orders.requestAccessCode` — never reveals existence. */
@@ -2200,6 +2209,8 @@ interface Page {
2200
2209
  updatedAt?: number;
2201
2210
  }
2202
2211
  interface PageDetail {
2212
+ /** Stable public content identifier for template assignment. */
2213
+ id: string;
2203
2214
  slug: string;
2204
2215
  title: string;
2205
2216
  /**
@@ -2241,6 +2252,8 @@ interface BlogSettings {
2241
2252
  }
2242
2253
  /** One blog (a group of posts). A site can have several: news, recipes, stories. */
2243
2254
  interface Blog {
2255
+ /** Stable public content identifier for template assignment. */
2256
+ id: string;
2244
2257
  /** URL segment: /blog/{handle} */
2245
2258
  handle: string;
2246
2259
  name: string;
@@ -2275,6 +2288,8 @@ interface BlogPostsPage {
2275
2288
  tags: BlogTag[];
2276
2289
  }
2277
2290
  interface BlogPostDetail {
2291
+ /** Stable public content identifier for template assignment. */
2292
+ id: string;
2278
2293
  slug: string;
2279
2294
  blogHandle: string;
2280
2295
  blogName: string;
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { P as ProductDetail, a as ProductVariant, B as BehioStorefront, S as SdkResult, C as CookieConsent, b as StorefrontFormFieldError } from './client-C5ODb5cR.mjs';
2
- export { A as ActivePromotion, c as AddToCartInput, d as AddressDetail, e as AddressSuggestion, f as AddressType, g as AddressTypes, h as AuthTokens, i as BackInStockSubscription, j as BadgeTone, k as BehioApiError, l as BehioErrorCode, m as BehioEventHandler, n as BehioEventType, o as BehioNetworkError, p as BehioStorefrontConfig, q as Blog, r as BlogPostDetail, s as BlogPostListItem, t as BlogPostsPage, u as BlogPostsQuery, v as BlogSettings, w as BlogTag, x as Bundle, y as BundleCatalogQuery, z as BundleItem, D as Cart, E as CartBundleLine, F as CartBundleLineItem, G as CartDiscount, H as CartItem, I as CartItemProduct, J as CartLinkClaimed, K as CartPromotion, L as CartSummaryEvent, M as Category, N as CategoryDetail, O as CertificateVerification, Q as CheckoutAddress, R as CheckoutInput, T as CheckoutPaymentMethod, U as CheckoutPreview, V as CheckoutResult, W as CheckoutSettings, X as CookieConsentInput, Y as CourseAttachment, Z as CourseCertificate, _ as CourseComment, $ as CourseCommentReply, a0 as CourseCommentsList, a1 as CourseDetail, a2 as CourseLesson, a3 as CourseListItem, a4 as CourseModule, a5 as CoursePostedComment, a6 as CourseProgress, a7 as CourseTutorMessage, a8 as CourseTutorThread, a9 as CrossSellItem, aa as CurrencyDisplayFormat, ab as CustomerAddress, ac as CustomerBadge, ad as CustomerChallenge, ae as CustomerGamification, af as CustomerGamificationQuery, ag as CustomerProfile, ah as DigitalDownload, ai as DownloadUrl, aj as Facet, ak as FacetAvailability, al as FacetCategory, am as FacetLabel, an as FacetPriceRange, ao as FacetRange, ap as FacetRatingBucket, aq as FacetValue, ar as FacetsResponse, as as FilterField, at as FulfillmentStatus, au as FulfillmentStatuses, av as GamificationRefreshResult, aw as GiftCardBalance, ax as GiftCardPurchaseInput, ay as GiftCardPurchaseResult, az as GiftCardSummary, aA as LessonNote, aB as LessonQuiz, aC as LoginInput, aD as LoyaltyBalance, aE as LoyaltyNextTier, aF as LoyaltyProgram, aG as LoyaltyQuery, aH as LoyaltyReferralResult, aI as LoyaltySummary, aJ as LoyaltyTier, aK as LoyaltyTierPerks, aL as LoyaltyTransaction, aM as Menu, aN as MenuItem, aO as MenuItemRef, aP as MenuItemType, aQ as MessageResponse, aR as NewsletterOptInDefault, aS as NewsletterSubscribeInput, aT as NewsletterSubscribeResult, aU as NewsletterUnsubscribeResult, aV as OrderAccessRequestResponse, aW as OrderAccessVerifyResponse, aX as OrderDetail, aY as OrderDiscount, aZ as OrderItem, a_ as OrderListItem, a$ as OrderPaymentInstructions, b0 as OrderPickupPoint, b1 as OrderShipment, b2 as OrderStatus, b3 as OrderStatusHistory, b4 as OrderStatuses, b5 as OrderTracking, b6 as Page, b7 as PageAttachment, b8 as PageDetail, b9 as PaginatedResponse, ba as PaymentInstrument, bb as PaymentStatus, bc as PaymentStatuses, bd as PaymentSwift, be as PickupPoint, bf as PickupPointHours, bg as PickupPointsInput, bh as PickupWidgetConfig, bi as PriceDisplay, bj as ProductAssetGroup, bk as ProductAssetItem, bl as ProductAvailability, bm as ProductGroup, bn as ProductLabel, bo as ProductListItem, bp as ProductMedia, bq as ProductMediaVariant, br as ProductParameter, bs as ProductParameterGroup, bt as ProductParametersResponse, bu as ProductPrice, bv as ProductPromotionSummary, bw as ProductReview, bx as ProductReviewsResponse, by as ProductSibling, bz as ProductSort, bA as ProductSortValue, bB as ProductVolumePrice, bC as ProductsQuery, bD as QuizAnswerInput, bE as QuizAnswerResult, bF as QuizQuestion, bG as QuizResult, bH as QuoteItem, bI as QuoteRequest, bJ as RegisterInput, bK as RegisterResult, bL as RequestInterceptor, bM as RequestInterceptorConfig, bN as ResponseInterceptor, bO as ResponseInterceptorData, bP as ReturnRequest, bQ as ReturnRequestItem, bR as ReturnStatus, bS as ReturnStatusItem, bT as ReturnableOrder, bU as ReturnableOrderItem, bV as SdkError, bW as ShippingMethodSummary, bX as ShippingPublicConfig, bY as ShippingQuote, bZ as ShippingQuoteInput, b_ as ShopAppearance, b$ as ShopCommerce, c0 as ShopInfo, c1 as ShopScript, c2 as ShopScriptPlacement, c3 as ShopScriptType, c4 as ShopScripts, c5 as ShopSeo, c6 as ShopSeoIdentity, c7 as SiteFormField, c8 as SiteFormFieldOption, c9 as SiteFormFieldType, ca as Sitemap, cb as SitemapEntry, cc as StockBehavior, cd as StockMode, ce as StorefrontCollection, cf as StorefrontCollectionField, cg as StorefrontCollectionFieldType, ch as StorefrontCollectionItem, ci as StorefrontCollectionQuery, cj as StorefrontFaqGroup, ck as StorefrontFaqGroupSummary, cl as StorefrontFaqGroups, cm as StorefrontFaqItem, cn as StorefrontFaqQuery, co as StorefrontForm, cp as StorefrontFormFieldErrorCode, cq as StorefrontFormFile, cr as StorefrontFormSettings, cs as StorefrontFormSubmitInput, ct as StorefrontFormSubmitResult, cu as StorefrontFormUpload, cv as SubmitQuoteInput, cw as SubmitReturnInput, cx as SubmitReviewInput, cy as Subscription, cz as SubscriptionAction, cA as SubscriptionFrequency, cB as SubscriptionItem, cC as SubscriptionStatus, cD as TaxBreakdownLine, cE as VariantAxis, cF as VariantAxisValue, cG as WishlistItem, cH as clearCartSummary, cI as err, cJ as ok, cK as publishCartSummary, cL as toSdkError } from './client-C5ODb5cR.mjs';
1
+ import { P as ProductDetail, a as ProductVariant, B as BehioStorefront, S as SdkResult, C as CookieConsent, b as StorefrontFormFieldError } from './client-BeI4IFKu.mjs';
2
+ export { A as ActivePromotion, c as AddToCartInput, d as AddressDetail, e as AddressSuggestion, f as AddressType, g as AddressTypes, h as AuthTokens, i as BackInStockSubscription, j as BadgeTone, k as BehioApiError, l as BehioErrorCode, m as BehioEventHandler, n as BehioEventType, o as BehioNetworkError, p as BehioStorefrontConfig, q as Blog, r as BlogPostDetail, s as BlogPostListItem, t as BlogPostsPage, u as BlogPostsQuery, v as BlogSettings, w as BlogTag, x as Bundle, y as BundleCatalogQuery, z as BundleItem, D as Cart, E as CartBundleLine, F as CartBundleLineItem, G as CartDiscount, H as CartItem, I as CartItemProduct, J as CartLinkClaimed, K as CartPromotion, L as CartSummaryEvent, M as Category, N as CategoryDetail, O as CertificateVerification, Q as CheckoutAddress, R as CheckoutInput, T as CheckoutPaymentMethod, U as CheckoutPreview, V as CheckoutResult, W as CheckoutSettings, X as CookieConsentInput, Y as CourseAttachment, Z as CourseCertificate, _ as CourseComment, $ as CourseCommentReply, a0 as CourseCommentsList, a1 as CourseDetail, a2 as CourseLesson, a3 as CourseListItem, a4 as CourseModule, a5 as CoursePostedComment, a6 as CourseProgress, a7 as CourseTutorMessage, a8 as CourseTutorThread, a9 as CrossSellItem, aa as CurrencyDisplayFormat, ab as CustomerAddress, ac as CustomerBadge, ad as CustomerChallenge, ae as CustomerGamification, af as CustomerGamificationQuery, ag as CustomerProfile, ah as DigitalDownload, ai as DownloadUrl, aj as Facet, ak as FacetAvailability, al as FacetCategory, am as FacetLabel, an as FacetPriceRange, ao as FacetRange, ap as FacetRatingBucket, aq as FacetValue, ar as FacetsResponse, as as FilterField, at as FulfillmentStatus, au as FulfillmentStatuses, av as GamificationRefreshResult, aw as GiftCardBalance, ax as GiftCardPurchaseInput, ay as GiftCardPurchaseResult, az as GiftCardSummary, aA as LessonNote, aB as LessonQuiz, aC as LoginInput, aD as LoyaltyBalance, aE as LoyaltyNextTier, aF as LoyaltyProgram, aG as LoyaltyQuery, aH as LoyaltyReferralResult, aI as LoyaltySummary, aJ as LoyaltyTier, aK as LoyaltyTierPerks, aL as LoyaltyTransaction, aM as Menu, aN as MenuItem, aO as MenuItemRef, aP as MenuItemType, aQ as MessageResponse, aR as NewsletterOptInDefault, aS as NewsletterSubscribeInput, aT as NewsletterSubscribeResult, aU as NewsletterUnsubscribeResult, aV as OrderAccessRequestResponse, aW as OrderAccessVerifyResponse, aX as OrderDetail, aY as OrderDiscount, aZ as OrderItem, a_ as OrderListItem, a$ as OrderPaymentInstructions, b0 as OrderPickupPoint, b1 as OrderShipment, b2 as OrderStatus, b3 as OrderStatusHistory, b4 as OrderStatuses, b5 as OrderTracking, b6 as Page, b7 as PageAttachment, b8 as PageDetail, b9 as PaginatedResponse, ba as PaymentInstrument, bb as PaymentStatus, bc as PaymentStatuses, bd as PaymentSwift, be as PickupPoint, bf as PickupPointHours, bg as PickupPointsInput, bh as PickupWidgetConfig, bi as PriceDisplay, bj as ProductAssetGroup, bk as ProductAssetItem, bl as ProductAvailability, bm as ProductGroup, bn as ProductLabel, bo as ProductListItem, bp as ProductMedia, bq as ProductMediaVariant, br as ProductParameter, bs as ProductParameterGroup, bt as ProductParametersResponse, bu as ProductPrice, bv as ProductPromotionSummary, bw as ProductReview, bx as ProductReviewsResponse, by as ProductSibling, bz as ProductSort, bA as ProductSortValue, bB as ProductVolumePrice, bC as ProductsQuery, bD as QuizAnswerInput, bE as QuizAnswerResult, bF as QuizQuestion, bG as QuizResult, bH as QuoteItem, bI as QuoteRequest, bJ as RegisterInput, bK as RegisterResult, bL as RequestInterceptor, bM as RequestInterceptorConfig, bN as ResponseInterceptor, bO as ResponseInterceptorData, bP as ReturnRequest, bQ as ReturnRequestItem, bR as ReturnStatus, bS as ReturnStatusItem, bT as ReturnableOrder, bU as ReturnableOrderItem, bV as SdkError, bW as ShippingMethodSummary, bX as ShippingPublicConfig, bY as ShippingQuote, bZ as ShippingQuoteInput, b_ as ShopAppearance, b$ as ShopCommerce, c0 as ShopInfo, c1 as ShopScript, c2 as ShopScriptPlacement, c3 as ShopScriptType, c4 as ShopScripts, c5 as ShopSeo, c6 as ShopSeoIdentity, c7 as SiteFormField, c8 as SiteFormFieldOption, c9 as SiteFormFieldType, ca as Sitemap, cb as SitemapEntry, cc as StockBehavior, cd as StockMode, ce as StorefrontCollection, cf as StorefrontCollectionField, cg as StorefrontCollectionFieldType, ch as StorefrontCollectionItem, ci as StorefrontCollectionQuery, cj as StorefrontFaqGroup, ck as StorefrontFaqGroupSummary, cl as StorefrontFaqGroups, cm as StorefrontFaqItem, cn as StorefrontFaqQuery, co as StorefrontForm, cp as StorefrontFormFieldErrorCode, cq as StorefrontFormFile, cr as StorefrontFormSettings, cs as StorefrontFormSubmitInput, ct as StorefrontFormSubmitResult, cu as StorefrontFormUpload, cv as SubmitQuoteInput, cw as SubmitReturnInput, cx as SubmitReviewInput, cy as Subscription, cz as SubscriptionAction, cA as SubscriptionFrequency, cB as SubscriptionItem, cC as SubscriptionStatus, cD as TaxBreakdownLine, cE as VariantAxis, cF as VariantAxisValue, cG as WishlistItem, cH as clearCartSummary, cI as err, cJ as ok, cK as publishCartSummary, cL as toSdkError } from './client-BeI4IFKu.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 { P as ProductDetail, a as ProductVariant, B as BehioStorefront, S as SdkResult, C as CookieConsent, b as StorefrontFormFieldError } from './client-C5ODb5cR.js';
2
- export { A as ActivePromotion, c as AddToCartInput, d as AddressDetail, e as AddressSuggestion, f as AddressType, g as AddressTypes, h as AuthTokens, i as BackInStockSubscription, j as BadgeTone, k as BehioApiError, l as BehioErrorCode, m as BehioEventHandler, n as BehioEventType, o as BehioNetworkError, p as BehioStorefrontConfig, q as Blog, r as BlogPostDetail, s as BlogPostListItem, t as BlogPostsPage, u as BlogPostsQuery, v as BlogSettings, w as BlogTag, x as Bundle, y as BundleCatalogQuery, z as BundleItem, D as Cart, E as CartBundleLine, F as CartBundleLineItem, G as CartDiscount, H as CartItem, I as CartItemProduct, J as CartLinkClaimed, K as CartPromotion, L as CartSummaryEvent, M as Category, N as CategoryDetail, O as CertificateVerification, Q as CheckoutAddress, R as CheckoutInput, T as CheckoutPaymentMethod, U as CheckoutPreview, V as CheckoutResult, W as CheckoutSettings, X as CookieConsentInput, Y as CourseAttachment, Z as CourseCertificate, _ as CourseComment, $ as CourseCommentReply, a0 as CourseCommentsList, a1 as CourseDetail, a2 as CourseLesson, a3 as CourseListItem, a4 as CourseModule, a5 as CoursePostedComment, a6 as CourseProgress, a7 as CourseTutorMessage, a8 as CourseTutorThread, a9 as CrossSellItem, aa as CurrencyDisplayFormat, ab as CustomerAddress, ac as CustomerBadge, ad as CustomerChallenge, ae as CustomerGamification, af as CustomerGamificationQuery, ag as CustomerProfile, ah as DigitalDownload, ai as DownloadUrl, aj as Facet, ak as FacetAvailability, al as FacetCategory, am as FacetLabel, an as FacetPriceRange, ao as FacetRange, ap as FacetRatingBucket, aq as FacetValue, ar as FacetsResponse, as as FilterField, at as FulfillmentStatus, au as FulfillmentStatuses, av as GamificationRefreshResult, aw as GiftCardBalance, ax as GiftCardPurchaseInput, ay as GiftCardPurchaseResult, az as GiftCardSummary, aA as LessonNote, aB as LessonQuiz, aC as LoginInput, aD as LoyaltyBalance, aE as LoyaltyNextTier, aF as LoyaltyProgram, aG as LoyaltyQuery, aH as LoyaltyReferralResult, aI as LoyaltySummary, aJ as LoyaltyTier, aK as LoyaltyTierPerks, aL as LoyaltyTransaction, aM as Menu, aN as MenuItem, aO as MenuItemRef, aP as MenuItemType, aQ as MessageResponse, aR as NewsletterOptInDefault, aS as NewsletterSubscribeInput, aT as NewsletterSubscribeResult, aU as NewsletterUnsubscribeResult, aV as OrderAccessRequestResponse, aW as OrderAccessVerifyResponse, aX as OrderDetail, aY as OrderDiscount, aZ as OrderItem, a_ as OrderListItem, a$ as OrderPaymentInstructions, b0 as OrderPickupPoint, b1 as OrderShipment, b2 as OrderStatus, b3 as OrderStatusHistory, b4 as OrderStatuses, b5 as OrderTracking, b6 as Page, b7 as PageAttachment, b8 as PageDetail, b9 as PaginatedResponse, ba as PaymentInstrument, bb as PaymentStatus, bc as PaymentStatuses, bd as PaymentSwift, be as PickupPoint, bf as PickupPointHours, bg as PickupPointsInput, bh as PickupWidgetConfig, bi as PriceDisplay, bj as ProductAssetGroup, bk as ProductAssetItem, bl as ProductAvailability, bm as ProductGroup, bn as ProductLabel, bo as ProductListItem, bp as ProductMedia, bq as ProductMediaVariant, br as ProductParameter, bs as ProductParameterGroup, bt as ProductParametersResponse, bu as ProductPrice, bv as ProductPromotionSummary, bw as ProductReview, bx as ProductReviewsResponse, by as ProductSibling, bz as ProductSort, bA as ProductSortValue, bB as ProductVolumePrice, bC as ProductsQuery, bD as QuizAnswerInput, bE as QuizAnswerResult, bF as QuizQuestion, bG as QuizResult, bH as QuoteItem, bI as QuoteRequest, bJ as RegisterInput, bK as RegisterResult, bL as RequestInterceptor, bM as RequestInterceptorConfig, bN as ResponseInterceptor, bO as ResponseInterceptorData, bP as ReturnRequest, bQ as ReturnRequestItem, bR as ReturnStatus, bS as ReturnStatusItem, bT as ReturnableOrder, bU as ReturnableOrderItem, bV as SdkError, bW as ShippingMethodSummary, bX as ShippingPublicConfig, bY as ShippingQuote, bZ as ShippingQuoteInput, b_ as ShopAppearance, b$ as ShopCommerce, c0 as ShopInfo, c1 as ShopScript, c2 as ShopScriptPlacement, c3 as ShopScriptType, c4 as ShopScripts, c5 as ShopSeo, c6 as ShopSeoIdentity, c7 as SiteFormField, c8 as SiteFormFieldOption, c9 as SiteFormFieldType, ca as Sitemap, cb as SitemapEntry, cc as StockBehavior, cd as StockMode, ce as StorefrontCollection, cf as StorefrontCollectionField, cg as StorefrontCollectionFieldType, ch as StorefrontCollectionItem, ci as StorefrontCollectionQuery, cj as StorefrontFaqGroup, ck as StorefrontFaqGroupSummary, cl as StorefrontFaqGroups, cm as StorefrontFaqItem, cn as StorefrontFaqQuery, co as StorefrontForm, cp as StorefrontFormFieldErrorCode, cq as StorefrontFormFile, cr as StorefrontFormSettings, cs as StorefrontFormSubmitInput, ct as StorefrontFormSubmitResult, cu as StorefrontFormUpload, cv as SubmitQuoteInput, cw as SubmitReturnInput, cx as SubmitReviewInput, cy as Subscription, cz as SubscriptionAction, cA as SubscriptionFrequency, cB as SubscriptionItem, cC as SubscriptionStatus, cD as TaxBreakdownLine, cE as VariantAxis, cF as VariantAxisValue, cG as WishlistItem, cH as clearCartSummary, cI as err, cJ as ok, cK as publishCartSummary, cL as toSdkError } from './client-C5ODb5cR.js';
1
+ import { P as ProductDetail, a as ProductVariant, B as BehioStorefront, S as SdkResult, C as CookieConsent, b as StorefrontFormFieldError } from './client-BeI4IFKu.js';
2
+ export { A as ActivePromotion, c as AddToCartInput, d as AddressDetail, e as AddressSuggestion, f as AddressType, g as AddressTypes, h as AuthTokens, i as BackInStockSubscription, j as BadgeTone, k as BehioApiError, l as BehioErrorCode, m as BehioEventHandler, n as BehioEventType, o as BehioNetworkError, p as BehioStorefrontConfig, q as Blog, r as BlogPostDetail, s as BlogPostListItem, t as BlogPostsPage, u as BlogPostsQuery, v as BlogSettings, w as BlogTag, x as Bundle, y as BundleCatalogQuery, z as BundleItem, D as Cart, E as CartBundleLine, F as CartBundleLineItem, G as CartDiscount, H as CartItem, I as CartItemProduct, J as CartLinkClaimed, K as CartPromotion, L as CartSummaryEvent, M as Category, N as CategoryDetail, O as CertificateVerification, Q as CheckoutAddress, R as CheckoutInput, T as CheckoutPaymentMethod, U as CheckoutPreview, V as CheckoutResult, W as CheckoutSettings, X as CookieConsentInput, Y as CourseAttachment, Z as CourseCertificate, _ as CourseComment, $ as CourseCommentReply, a0 as CourseCommentsList, a1 as CourseDetail, a2 as CourseLesson, a3 as CourseListItem, a4 as CourseModule, a5 as CoursePostedComment, a6 as CourseProgress, a7 as CourseTutorMessage, a8 as CourseTutorThread, a9 as CrossSellItem, aa as CurrencyDisplayFormat, ab as CustomerAddress, ac as CustomerBadge, ad as CustomerChallenge, ae as CustomerGamification, af as CustomerGamificationQuery, ag as CustomerProfile, ah as DigitalDownload, ai as DownloadUrl, aj as Facet, ak as FacetAvailability, al as FacetCategory, am as FacetLabel, an as FacetPriceRange, ao as FacetRange, ap as FacetRatingBucket, aq as FacetValue, ar as FacetsResponse, as as FilterField, at as FulfillmentStatus, au as FulfillmentStatuses, av as GamificationRefreshResult, aw as GiftCardBalance, ax as GiftCardPurchaseInput, ay as GiftCardPurchaseResult, az as GiftCardSummary, aA as LessonNote, aB as LessonQuiz, aC as LoginInput, aD as LoyaltyBalance, aE as LoyaltyNextTier, aF as LoyaltyProgram, aG as LoyaltyQuery, aH as LoyaltyReferralResult, aI as LoyaltySummary, aJ as LoyaltyTier, aK as LoyaltyTierPerks, aL as LoyaltyTransaction, aM as Menu, aN as MenuItem, aO as MenuItemRef, aP as MenuItemType, aQ as MessageResponse, aR as NewsletterOptInDefault, aS as NewsletterSubscribeInput, aT as NewsletterSubscribeResult, aU as NewsletterUnsubscribeResult, aV as OrderAccessRequestResponse, aW as OrderAccessVerifyResponse, aX as OrderDetail, aY as OrderDiscount, aZ as OrderItem, a_ as OrderListItem, a$ as OrderPaymentInstructions, b0 as OrderPickupPoint, b1 as OrderShipment, b2 as OrderStatus, b3 as OrderStatusHistory, b4 as OrderStatuses, b5 as OrderTracking, b6 as Page, b7 as PageAttachment, b8 as PageDetail, b9 as PaginatedResponse, ba as PaymentInstrument, bb as PaymentStatus, bc as PaymentStatuses, bd as PaymentSwift, be as PickupPoint, bf as PickupPointHours, bg as PickupPointsInput, bh as PickupWidgetConfig, bi as PriceDisplay, bj as ProductAssetGroup, bk as ProductAssetItem, bl as ProductAvailability, bm as ProductGroup, bn as ProductLabel, bo as ProductListItem, bp as ProductMedia, bq as ProductMediaVariant, br as ProductParameter, bs as ProductParameterGroup, bt as ProductParametersResponse, bu as ProductPrice, bv as ProductPromotionSummary, bw as ProductReview, bx as ProductReviewsResponse, by as ProductSibling, bz as ProductSort, bA as ProductSortValue, bB as ProductVolumePrice, bC as ProductsQuery, bD as QuizAnswerInput, bE as QuizAnswerResult, bF as QuizQuestion, bG as QuizResult, bH as QuoteItem, bI as QuoteRequest, bJ as RegisterInput, bK as RegisterResult, bL as RequestInterceptor, bM as RequestInterceptorConfig, bN as ResponseInterceptor, bO as ResponseInterceptorData, bP as ReturnRequest, bQ as ReturnRequestItem, bR as ReturnStatus, bS as ReturnStatusItem, bT as ReturnableOrder, bU as ReturnableOrderItem, bV as SdkError, bW as ShippingMethodSummary, bX as ShippingPublicConfig, bY as ShippingQuote, bZ as ShippingQuoteInput, b_ as ShopAppearance, b$ as ShopCommerce, c0 as ShopInfo, c1 as ShopScript, c2 as ShopScriptPlacement, c3 as ShopScriptType, c4 as ShopScripts, c5 as ShopSeo, c6 as ShopSeoIdentity, c7 as SiteFormField, c8 as SiteFormFieldOption, c9 as SiteFormFieldType, ca as Sitemap, cb as SitemapEntry, cc as StockBehavior, cd as StockMode, ce as StorefrontCollection, cf as StorefrontCollectionField, cg as StorefrontCollectionFieldType, ch as StorefrontCollectionItem, ci as StorefrontCollectionQuery, cj as StorefrontFaqGroup, ck as StorefrontFaqGroupSummary, cl as StorefrontFaqGroups, cm as StorefrontFaqItem, cn as StorefrontFaqQuery, co as StorefrontForm, cp as StorefrontFormFieldErrorCode, cq as StorefrontFormFile, cr as StorefrontFormSettings, cs as StorefrontFormSubmitInput, ct as StorefrontFormSubmitResult, cu as StorefrontFormUpload, cv as SubmitQuoteInput, cw as SubmitReturnInput, cx as SubmitReviewInput, cy as Subscription, cz as SubscriptionAction, cA as SubscriptionFrequency, cB as SubscriptionItem, cC as SubscriptionStatus, cD as TaxBreakdownLine, cE as VariantAxis, cF as VariantAxisValue, cG as WishlistItem, cH as clearCartSummary, cI as err, cJ as ok, cK as publishCartSummary, cL as toSdkError } from './client-BeI4IFKu.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 { p as BehioStorefrontConfig, B as BehioStorefront } from './client-C5ODb5cR.mjs';
1
+ import { p as BehioStorefrontConfig, B as BehioStorefront } from './client-BeI4IFKu.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 { p as BehioStorefrontConfig, B as BehioStorefront } from './client-C5ODb5cR.js';
1
+ import { p as BehioStorefrontConfig, B as BehioStorefront } from './client-BeI4IFKu.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
@@ -1464,6 +1464,12 @@ interface TaxBreakdownLine {
1464
1464
  grossAmount: number;
1465
1465
  }
1466
1466
  interface CartDiscount {
1467
+ /** Additional delivery benefit. Absent/null means none on older APIs.
1468
+ * FREE_SHIPPING in `type` still denotes a legacy delivery-only code. */
1469
+ shippingDiscountType?: "PERCENTAGE" | "FIXED_AMOUNT" | "FREE_SHIPPING" | null;
1470
+ /** Percentage or fixed amount, capped at delivery cost by checkout.
1471
+ * Do not subtract locally: use checkout preview's authoritative totals. */
1472
+ shippingDiscountValue?: number;
1467
1473
  code: string;
1468
1474
  type: string;
1469
1475
  value: number;
@@ -1901,6 +1907,9 @@ interface OrderDetail extends OrderListItem {
1901
1907
  * the order returned by `checkout.createOrder()`. Null/absent for
1902
1908
  * offline methods (bank transfer, COD) and zero-total orders.
1903
1909
  */
1910
+ /** Existing unexpired Stripe Checkout session for this authorized unpaid order.
1911
+ * Null after payment, cancellation, expiry, or when no eligible attempt exists.
1912
+ * Reopen it directly; never submit checkout again to retry this order. */
1904
1913
  paymentRedirectUrl?: string | null;
1905
1914
  }
1906
1915
  /** Generic response to `orders.requestAccessCode` — never reveals existence. */
@@ -2257,6 +2266,8 @@ interface Page {
2257
2266
  updatedAt?: number;
2258
2267
  }
2259
2268
  interface PageDetail {
2269
+ /** Stable public content identifier for template assignment. */
2270
+ id: string;
2260
2271
  slug: string;
2261
2272
  title: string;
2262
2273
  /**
@@ -2298,6 +2309,8 @@ interface BlogSettings {
2298
2309
  }
2299
2310
  /** One blog (a group of posts). A site can have several: news, recipes, stories. */
2300
2311
  interface Blog {
2312
+ /** Stable public content identifier for template assignment. */
2313
+ id: string;
2301
2314
  /** URL segment: /blog/{handle} */
2302
2315
  handle: string;
2303
2316
  name: string;
@@ -2332,6 +2345,8 @@ interface BlogPostsPage {
2332
2345
  tags: BlogTag[];
2333
2346
  }
2334
2347
  interface BlogPostDetail {
2348
+ /** Stable public content identifier for template assignment. */
2349
+ id: string;
2335
2350
  slug: string;
2336
2351
  blogHandle: string;
2337
2352
  blogName: string;
package/dist/react.d.ts CHANGED
@@ -1464,6 +1464,12 @@ interface TaxBreakdownLine {
1464
1464
  grossAmount: number;
1465
1465
  }
1466
1466
  interface CartDiscount {
1467
+ /** Additional delivery benefit. Absent/null means none on older APIs.
1468
+ * FREE_SHIPPING in `type` still denotes a legacy delivery-only code. */
1469
+ shippingDiscountType?: "PERCENTAGE" | "FIXED_AMOUNT" | "FREE_SHIPPING" | null;
1470
+ /** Percentage or fixed amount, capped at delivery cost by checkout.
1471
+ * Do not subtract locally: use checkout preview's authoritative totals. */
1472
+ shippingDiscountValue?: number;
1467
1473
  code: string;
1468
1474
  type: string;
1469
1475
  value: number;
@@ -1901,6 +1907,9 @@ interface OrderDetail extends OrderListItem {
1901
1907
  * the order returned by `checkout.createOrder()`. Null/absent for
1902
1908
  * offline methods (bank transfer, COD) and zero-total orders.
1903
1909
  */
1910
+ /** Existing unexpired Stripe Checkout session for this authorized unpaid order.
1911
+ * Null after payment, cancellation, expiry, or when no eligible attempt exists.
1912
+ * Reopen it directly; never submit checkout again to retry this order. */
1904
1913
  paymentRedirectUrl?: string | null;
1905
1914
  }
1906
1915
  /** Generic response to `orders.requestAccessCode` — never reveals existence. */
@@ -2257,6 +2266,8 @@ interface Page {
2257
2266
  updatedAt?: number;
2258
2267
  }
2259
2268
  interface PageDetail {
2269
+ /** Stable public content identifier for template assignment. */
2270
+ id: string;
2260
2271
  slug: string;
2261
2272
  title: string;
2262
2273
  /**
@@ -2298,6 +2309,8 @@ interface BlogSettings {
2298
2309
  }
2299
2310
  /** One blog (a group of posts). A site can have several: news, recipes, stories. */
2300
2311
  interface Blog {
2312
+ /** Stable public content identifier for template assignment. */
2313
+ id: string;
2301
2314
  /** URL segment: /blog/{handle} */
2302
2315
  handle: string;
2303
2316
  name: string;
@@ -2332,6 +2345,8 @@ interface BlogPostsPage {
2332
2345
  tags: BlogTag[];
2333
2346
  }
2334
2347
  interface BlogPostDetail {
2348
+ /** Stable public content identifier for template assignment. */
2349
+ id: string;
2335
2350
  slug: string;
2336
2351
  blogHandle: string;
2337
2352
  blogName: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@behio/storefront-sdk",
3
- "version": "2.21.0",
3
+ "version": "2.23.0",
4
4
  "description": "TypeScript SDK for Behio headless e-commerce: core client + React hooks",
5
5
  "author": "Behio",
6
6
  "license": "MIT",