@behio/storefront-sdk 2.14.1 → 2.16.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.
@@ -153,6 +153,15 @@ interface CheckoutSettings {
153
153
  showLowStock: boolean;
154
154
  /** Stock level at (and below) which the low-stock nudge shows. */
155
155
  lowStockThreshold: number;
156
+ /**
157
+ * Cart reservations are on: pieces put into a cart are guaranteed to that
158
+ * cart until `CartItem.reservedUntil` and nobody else can buy them. True only
159
+ * when the merchant enabled it and the shop tracks stock (`stockMode`
160
+ * TRACKED). Render the countdown from the cart line, not from this flag.
161
+ */
162
+ cartReservationEnabled: boolean;
163
+ /** Default reservation length in minutes (0 when off). A product can override it, so never compute the countdown from this number. */
164
+ cartReservationMinutes: number;
156
165
  /** Google Places address autocomplete is enabled; mount the UX when true. */
157
166
  addressAutocompleteEnabled: boolean;
158
167
  /**
@@ -1335,6 +1344,13 @@ interface CartItem {
1335
1344
  decreaseTo: number | null;
1336
1345
  increaseTo: number | null;
1337
1346
  };
1347
+ /**
1348
+ * Cart reservation: until this moment (epoch milliseconds) the pieces on this
1349
+ * line are guaranteed to this cart. Null = not reserved (reservations off,
1350
+ * product excluded, or already expired). Expiry is lazy, nothing is pushed
1351
+ * when it passes, so re-fetch the cart. Older servers omit it.
1352
+ */
1353
+ reservedUntil?: number | null;
1338
1354
  /**
1339
1355
  * Eshop product ID of the sellable unit on this line. A variant is its own
1340
1356
  * product, so this is the exact product/variant the customer added — use it
@@ -1485,6 +1501,8 @@ interface CartBundleLine {
1485
1501
  decreaseTo: number | null;
1486
1502
  increaseTo: number | null;
1487
1503
  };
1504
+ /** Cart reservation end (epoch milliseconds) for this bundle line; null = not reserved or expired. Older servers omit it. */
1505
+ reservedUntil?: number | null;
1488
1506
  minQuantity: number;
1489
1507
  maxQuantity: number | null;
1490
1508
  remainingStock: number | null;
@@ -2539,8 +2557,23 @@ interface ShippingMethodSummary {
2539
2557
  etaDaysMin: number | null;
2540
2558
  etaDaysMax: number | null;
2541
2559
  allowedCountries: string[];
2542
- /** Customer-safe config fields the merchant filled in (pickup address, instructions). */
2543
- publicConfig: Record<string, unknown>;
2560
+ /** Customer-safe config fields the merchant filled in (pickup address, instructions) and the pickup map widget. */
2561
+ publicConfig: ShippingPublicConfig;
2562
+ }
2563
+ /**
2564
+ * Customer-safe part of a shipping method's config. Typed keys since
2565
+ * SDK 2.16.0; the index signature keeps older code that reads it as a
2566
+ * plain record compiling.
2567
+ */
2568
+ interface ShippingPublicConfig {
2569
+ instructions?: string;
2570
+ /** In-store pickup address. */
2571
+ pickupAddress?: string;
2572
+ /** In-store pickup opening hours. */
2573
+ openingHours?: string;
2574
+ /** Pickup point map for methods with `supportsPickupPoints`. */
2575
+ pickupWidget?: PickupWidgetConfig;
2576
+ [key: string]: unknown;
2544
2577
  }
2545
2578
  /**
2546
2579
  * Input for `behio.shipping.quote()`. At minimum requires the destination
@@ -2601,6 +2634,12 @@ interface ShippingQuote extends ShippingMethodSummary {
2601
2634
  * `String(point.id)` back as `checkout.pickupPointId`). SDK 1.15.0.
2602
2635
  * `provider: "behio"` (SDK 1.16.0) means "draw the map yourself from
2603
2636
  * `getPickupPoints()` coordinates".
2637
+ * `provider: "zaslat"` (SDK 2.16.0) is the Zaslat map widget
2638
+ * (https://docs.zaslat.cz/map_widget): load
2639
+ * https://app.zaslat.cz/map/zaslat-map.umd.min.js once, call
2640
+ * `zslt.openMap({addressType: "recipient", carriers, territory, lang, value})`
2641
+ * and send `place.code || String(place.id)` back as `checkout.pickupPointId`
2642
+ * together with a `checkout.pickupPoint` snapshot.
2604
2643
  */
2605
2644
  type PickupWidgetConfig = {
2606
2645
  provider: "packeta";
@@ -2610,9 +2649,22 @@ type PickupWidgetConfig = {
2610
2649
  /**
2611
2650
  * No carrier widget, but every point from `getPickupPoints()` carries
2612
2651
  * `latitude`/`longitude`: render your own map (SDK 1.16.0; PPL, GLS,
2613
- * Aramex, Zaslat).
2652
+ * Aramex).
2614
2653
  */
2615
2654
  provider: "behio";
2655
+ } | {
2656
+ /** Zaslat map widget, no key needed (SDK 2.16.0). */
2657
+ provider: "zaslat";
2658
+ /**
2659
+ * Zaslat carrier code for the widget `carriers` filter
2660
+ * (e.g. "ZASILKOVNA", "PPL"); null = show every carrier.
2661
+ */
2662
+ carrier: string | null;
2663
+ /**
2664
+ * Widget `territory` when the method ships to exactly one of CZ/SK;
2665
+ * null = use the delivery country (`"cz"` or `"sk"`).
2666
+ */
2667
+ territory: "cz" | "sk" | null;
2616
2668
  };
2617
2669
  interface PickupPoint {
2618
2670
  /** Carrier-native id. Send this back as `checkout.pickupPointId`. */
@@ -4107,4 +4159,4 @@ declare function clearCartSummary(): void;
4107
4159
  /** Publish only authoritative current totals; server cart consumers call this after hydration and revalidation. */
4108
4160
  declare function publishCartSummary(summary: CartSummaryEvent): void;
4109
4161
 
4110
- export { type CourseCommentReply as $, type ActivePromotion as A, BehioStorefront as B, type CookieConsent as C, type Cart as D, type CartBundleLine as E, type CartBundleLineItem as F, type CartDiscount as G, type CartItem as H, type CartItemProduct as I, type CartLinkClaimed as J, type CartPromotion as K, type CartSummaryEvent as L, type Category as M, type CategoryDetail as N, type CertificateVerification as O, type ProductDetail as P, type CheckoutAddress as Q, type CheckoutInput as R, type SdkResult as S, type CheckoutPaymentMethod as T, type CheckoutPreview as U, type CheckoutResult as V, type CheckoutSettings as W, type CookieConsentInput as X, type CourseAttachment as Y, type CourseCertificate as Z, type CourseComment as _, type ProductVariant as a, type OrderPaymentInstructions as a$, type CourseCommentsList as a0, type CourseDetail as a1, type CourseLesson as a2, type CourseListItem as a3, type CourseModule as a4, type CoursePostedComment as a5, type CourseProgress as a6, type CourseTutorMessage as a7, type CourseTutorThread as a8, type CrossSellItem as a9, type LessonNote as aA, type LessonQuiz as aB, type LoginInput as aC, type LoyaltyBalance as aD, type LoyaltyNextTier as aE, type LoyaltyProgram as aF, type LoyaltyQuery as aG, type LoyaltyReferralResult as aH, type LoyaltySummary as aI, type LoyaltyTier as aJ, type LoyaltyTierPerks as aK, type LoyaltyTransaction as aL, type Menu as aM, type MenuItem as aN, type MenuItemRef as aO, type MenuItemType as aP, type MessageResponse as aQ, type NewsletterOptInDefault as aR, type NewsletterSubscribeInput as aS, type NewsletterSubscribeResult as aT, type NewsletterUnsubscribeResult as aU, type OrderAccessRequestResponse as aV, type OrderAccessVerifyResponse as aW, type OrderDetail as aX, type OrderDiscount as aY, type OrderItem as aZ, type OrderListItem as a_, type CurrencyDisplayFormat as aa, type CustomerAddress as ab, type CustomerBadge as ac, type CustomerChallenge as ad, type CustomerGamification as ae, type CustomerGamificationQuery as af, type CustomerProfile as ag, type DigitalDownload as ah, type DownloadUrl as ai, type Facet as aj, type FacetAvailability as ak, type FacetCategory as al, type FacetLabel as am, type FacetPriceRange as an, type FacetRange as ao, type FacetRatingBucket as ap, type FacetValue as aq, type FacetsResponse as ar, type FilterField as as, type FulfillmentStatus as at, FulfillmentStatuses as au, type GamificationRefreshResult as av, type GiftCardBalance as aw, type GiftCardPurchaseInput as ax, type GiftCardPurchaseResult as ay, type GiftCardSummary as az, type StorefrontFormFieldError as b, type ShopScript as b$, type OrderPickupPoint as b0, type OrderShipment as b1, type OrderStatus as b2, type OrderStatusHistory as b3, OrderStatuses as b4, type OrderTracking as b5, type Page as b6, type PageAttachment as b7, type PageDetail as b8, type PaginatedResponse as b9, type ProductSortValue as bA, type ProductVolumePrice as bB, type ProductsQuery as bC, type QuizAnswerInput as bD, type QuizAnswerResult as bE, type QuizQuestion as bF, type QuizResult as bG, type QuoteItem as bH, type QuoteRequest as bI, type RegisterInput as bJ, type RegisterResult as bK, type RequestInterceptor as bL, type RequestInterceptorConfig as bM, type ResponseInterceptor as bN, type ResponseInterceptorData as bO, type ReturnRequest as bP, type ReturnRequestItem as bQ, type ReturnStatus as bR, type ReturnStatusItem as bS, type ReturnableOrder as bT, type ReturnableOrderItem as bU, type SdkError as bV, type ShippingMethodSummary as bW, type ShippingQuote as bX, type ShippingQuoteInput as bY, type ShopAppearance as bZ, type ShopInfo as b_, type PaymentInstrument as ba, type PaymentStatus as bb, PaymentStatuses as bc, type PaymentSwift as bd, type PickupPoint as be, type PickupPointHours as bf, type PickupPointsInput as bg, type PickupWidgetConfig as bh, type PriceDisplay as bi, type ProductAssetGroup as bj, type ProductAssetItem as bk, type ProductAvailability as bl, type ProductGroup as bm, type ProductLabel as bn, type ProductListItem as bo, type ProductMedia as bp, type ProductMediaVariant as bq, type ProductParameter as br, type ProductParameterGroup as bs, type ProductParametersResponse as bt, type ProductPrice as bu, type ProductPromotionSummary as bv, type ProductReview as bw, type ProductReviewsResponse as bx, type ProductSibling as by, ProductSort as bz, type AddToCartInput as c, type ShopScriptPlacement as c0, type ShopScriptType as c1, type ShopScripts as c2, type ShopSeo as c3, type ShopSeoIdentity as c4, type SiteFormField as c5, type SiteFormFieldOption as c6, type SiteFormFieldType as c7, type Sitemap as c8, type SitemapEntry as c9, type StockBehavior as ca, type StockMode as cb, type StorefrontForm as cc, type StorefrontFormFieldErrorCode as cd, type StorefrontFormFile as ce, type StorefrontFormSettings as cf, type StorefrontFormSubmitInput as cg, type StorefrontFormSubmitResult as ch, type StorefrontFormUpload as ci, type SubmitQuoteInput as cj, type SubmitReturnInput as ck, type SubmitReviewInput as cl, type Subscription as cm, type SubscriptionAction as cn, type SubscriptionFrequency as co, type SubscriptionItem as cp, type SubscriptionStatus as cq, type TaxBreakdownLine as cr, type VariantAxis as cs, type VariantAxisValue as ct, type WishlistItem as cu, clearCartSummary as cv, err as cw, ok as cx, publishCartSummary as cy, toSdkError as cz, type AddressDetail as d, type AddressSuggestion as e, type AddressType as f, AddressTypes as g, type AuthTokens as h, type BackInStockSubscription as i, type BadgeTone as j, BehioApiError as k, type BehioErrorCode as l, type BehioEventHandler as m, type BehioEventType as n, BehioNetworkError as o, type BehioStorefrontConfig as p, type Blog as q, type BlogPostDetail as r, type BlogPostListItem as s, type BlogPostsPage as t, type BlogPostsQuery as u, type BlogSettings as v, type BlogTag as w, type Bundle as x, type BundleCatalogQuery as y, type BundleItem as z };
4162
+ export { type CourseCommentReply as $, type ActivePromotion as A, BehioStorefront as B, type CookieConsent as C, type Cart as D, type CartBundleLine as E, type CartBundleLineItem as F, type CartDiscount as G, type CartItem as H, type CartItemProduct as I, type CartLinkClaimed as J, type CartPromotion as K, type CartSummaryEvent as L, type Category as M, type CategoryDetail as N, type CertificateVerification as O, type ProductDetail as P, type CheckoutAddress as Q, type CheckoutInput as R, type SdkResult as S, type CheckoutPaymentMethod as T, type CheckoutPreview as U, type CheckoutResult as V, type CheckoutSettings as W, type CookieConsentInput as X, type CourseAttachment as Y, type CourseCertificate as Z, type CourseComment as _, type ProductVariant as a, type OrderPaymentInstructions as a$, type CourseCommentsList as a0, type CourseDetail as a1, type CourseLesson as a2, type CourseListItem as a3, type CourseModule as a4, type CoursePostedComment as a5, type CourseProgress as a6, type CourseTutorMessage as a7, type CourseTutorThread as a8, type CrossSellItem as a9, type LessonNote as aA, type LessonQuiz as aB, type LoginInput as aC, type LoyaltyBalance as aD, type LoyaltyNextTier as aE, type LoyaltyProgram as aF, type LoyaltyQuery as aG, type LoyaltyReferralResult as aH, type LoyaltySummary as aI, type LoyaltyTier as aJ, type LoyaltyTierPerks as aK, type LoyaltyTransaction as aL, type Menu as aM, type MenuItem as aN, type MenuItemRef as aO, type MenuItemType as aP, type MessageResponse as aQ, type NewsletterOptInDefault as aR, type NewsletterSubscribeInput as aS, type NewsletterSubscribeResult as aT, type NewsletterUnsubscribeResult as aU, type OrderAccessRequestResponse as aV, type OrderAccessVerifyResponse as aW, type OrderDetail as aX, type OrderDiscount as aY, type OrderItem as aZ, type OrderListItem as a_, type CurrencyDisplayFormat as aa, type CustomerAddress as ab, type CustomerBadge as ac, type CustomerChallenge as ad, type CustomerGamification as ae, type CustomerGamificationQuery as af, type CustomerProfile as ag, type DigitalDownload as ah, type DownloadUrl as ai, type Facet as aj, type FacetAvailability as ak, type FacetCategory as al, type FacetLabel as am, type FacetPriceRange as an, type FacetRange as ao, type FacetRatingBucket as ap, type FacetValue as aq, type FacetsResponse as ar, type FilterField as as, type FulfillmentStatus as at, FulfillmentStatuses as au, type GamificationRefreshResult as av, type GiftCardBalance as aw, type GiftCardPurchaseInput as ax, type GiftCardPurchaseResult as ay, type GiftCardSummary as az, type StorefrontFormFieldError as b, type ShopInfo as b$, type OrderPickupPoint as b0, type OrderShipment as b1, type OrderStatus as b2, type OrderStatusHistory as b3, OrderStatuses as b4, type OrderTracking as b5, type Page as b6, type PageAttachment as b7, type PageDetail as b8, type PaginatedResponse as b9, type ProductSortValue as bA, type ProductVolumePrice as bB, type ProductsQuery as bC, type QuizAnswerInput as bD, type QuizAnswerResult as bE, type QuizQuestion as bF, type QuizResult as bG, type QuoteItem as bH, type QuoteRequest as bI, type RegisterInput as bJ, type RegisterResult as bK, type RequestInterceptor as bL, type RequestInterceptorConfig as bM, type ResponseInterceptor as bN, type ResponseInterceptorData as bO, type ReturnRequest as bP, type ReturnRequestItem as bQ, type ReturnStatus as bR, type ReturnStatusItem as bS, type ReturnableOrder as bT, type ReturnableOrderItem as bU, type SdkError as bV, type ShippingMethodSummary as bW, type ShippingPublicConfig as bX, type ShippingQuote as bY, type ShippingQuoteInput as bZ, type ShopAppearance as b_, type PaymentInstrument as ba, type PaymentStatus as bb, PaymentStatuses as bc, type PaymentSwift as bd, type PickupPoint as be, type PickupPointHours as bf, type PickupPointsInput as bg, type PickupWidgetConfig as bh, type PriceDisplay as bi, type ProductAssetGroup as bj, type ProductAssetItem as bk, type ProductAvailability as bl, type ProductGroup as bm, type ProductLabel as bn, type ProductListItem as bo, type ProductMedia as bp, type ProductMediaVariant as bq, type ProductParameter as br, type ProductParameterGroup as bs, type ProductParametersResponse as bt, type ProductPrice as bu, type ProductPromotionSummary as bv, type ProductReview as bw, type ProductReviewsResponse as bx, type ProductSibling as by, ProductSort as bz, type AddToCartInput as c, type ShopScript as c0, type ShopScriptPlacement as c1, type ShopScriptType as c2, type ShopScripts as c3, type ShopSeo as c4, type ShopSeoIdentity as c5, type SiteFormField as c6, type SiteFormFieldOption as c7, type SiteFormFieldType as c8, type Sitemap as c9, toSdkError as cA, type SitemapEntry as ca, type StockBehavior as cb, type StockMode as cc, type StorefrontForm as cd, type StorefrontFormFieldErrorCode as ce, type StorefrontFormFile as cf, type StorefrontFormSettings as cg, type StorefrontFormSubmitInput as ch, type StorefrontFormSubmitResult as ci, type StorefrontFormUpload as cj, type SubmitQuoteInput as ck, type SubmitReturnInput as cl, type SubmitReviewInput as cm, type Subscription as cn, type SubscriptionAction as co, type SubscriptionFrequency as cp, type SubscriptionItem as cq, type SubscriptionStatus as cr, type TaxBreakdownLine as cs, type VariantAxis as ct, type VariantAxisValue as cu, type WishlistItem as cv, clearCartSummary as cw, err as cx, ok as cy, publishCartSummary as cz, type AddressDetail as d, type AddressSuggestion as e, type AddressType as f, AddressTypes as g, type AuthTokens as h, type BackInStockSubscription as i, type BadgeTone as j, BehioApiError as k, type BehioErrorCode as l, type BehioEventHandler as m, type BehioEventType as n, BehioNetworkError as o, type BehioStorefrontConfig as p, type Blog as q, type BlogPostDetail as r, type BlogPostListItem as s, type BlogPostsPage as t, type BlogPostsQuery as u, type BlogSettings as v, type BlogTag as w, type Bundle as x, type BundleCatalogQuery as y, type BundleItem as z };
@@ -153,6 +153,15 @@ interface CheckoutSettings {
153
153
  showLowStock: boolean;
154
154
  /** Stock level at (and below) which the low-stock nudge shows. */
155
155
  lowStockThreshold: number;
156
+ /**
157
+ * Cart reservations are on: pieces put into a cart are guaranteed to that
158
+ * cart until `CartItem.reservedUntil` and nobody else can buy them. True only
159
+ * when the merchant enabled it and the shop tracks stock (`stockMode`
160
+ * TRACKED). Render the countdown from the cart line, not from this flag.
161
+ */
162
+ cartReservationEnabled: boolean;
163
+ /** Default reservation length in minutes (0 when off). A product can override it, so never compute the countdown from this number. */
164
+ cartReservationMinutes: number;
156
165
  /** Google Places address autocomplete is enabled; mount the UX when true. */
157
166
  addressAutocompleteEnabled: boolean;
158
167
  /**
@@ -1335,6 +1344,13 @@ interface CartItem {
1335
1344
  decreaseTo: number | null;
1336
1345
  increaseTo: number | null;
1337
1346
  };
1347
+ /**
1348
+ * Cart reservation: until this moment (epoch milliseconds) the pieces on this
1349
+ * line are guaranteed to this cart. Null = not reserved (reservations off,
1350
+ * product excluded, or already expired). Expiry is lazy, nothing is pushed
1351
+ * when it passes, so re-fetch the cart. Older servers omit it.
1352
+ */
1353
+ reservedUntil?: number | null;
1338
1354
  /**
1339
1355
  * Eshop product ID of the sellable unit on this line. A variant is its own
1340
1356
  * product, so this is the exact product/variant the customer added — use it
@@ -1485,6 +1501,8 @@ interface CartBundleLine {
1485
1501
  decreaseTo: number | null;
1486
1502
  increaseTo: number | null;
1487
1503
  };
1504
+ /** Cart reservation end (epoch milliseconds) for this bundle line; null = not reserved or expired. Older servers omit it. */
1505
+ reservedUntil?: number | null;
1488
1506
  minQuantity: number;
1489
1507
  maxQuantity: number | null;
1490
1508
  remainingStock: number | null;
@@ -2539,8 +2557,23 @@ interface ShippingMethodSummary {
2539
2557
  etaDaysMin: number | null;
2540
2558
  etaDaysMax: number | null;
2541
2559
  allowedCountries: string[];
2542
- /** Customer-safe config fields the merchant filled in (pickup address, instructions). */
2543
- publicConfig: Record<string, unknown>;
2560
+ /** Customer-safe config fields the merchant filled in (pickup address, instructions) and the pickup map widget. */
2561
+ publicConfig: ShippingPublicConfig;
2562
+ }
2563
+ /**
2564
+ * Customer-safe part of a shipping method's config. Typed keys since
2565
+ * SDK 2.16.0; the index signature keeps older code that reads it as a
2566
+ * plain record compiling.
2567
+ */
2568
+ interface ShippingPublicConfig {
2569
+ instructions?: string;
2570
+ /** In-store pickup address. */
2571
+ pickupAddress?: string;
2572
+ /** In-store pickup opening hours. */
2573
+ openingHours?: string;
2574
+ /** Pickup point map for methods with `supportsPickupPoints`. */
2575
+ pickupWidget?: PickupWidgetConfig;
2576
+ [key: string]: unknown;
2544
2577
  }
2545
2578
  /**
2546
2579
  * Input for `behio.shipping.quote()`. At minimum requires the destination
@@ -2601,6 +2634,12 @@ interface ShippingQuote extends ShippingMethodSummary {
2601
2634
  * `String(point.id)` back as `checkout.pickupPointId`). SDK 1.15.0.
2602
2635
  * `provider: "behio"` (SDK 1.16.0) means "draw the map yourself from
2603
2636
  * `getPickupPoints()` coordinates".
2637
+ * `provider: "zaslat"` (SDK 2.16.0) is the Zaslat map widget
2638
+ * (https://docs.zaslat.cz/map_widget): load
2639
+ * https://app.zaslat.cz/map/zaslat-map.umd.min.js once, call
2640
+ * `zslt.openMap({addressType: "recipient", carriers, territory, lang, value})`
2641
+ * and send `place.code || String(place.id)` back as `checkout.pickupPointId`
2642
+ * together with a `checkout.pickupPoint` snapshot.
2604
2643
  */
2605
2644
  type PickupWidgetConfig = {
2606
2645
  provider: "packeta";
@@ -2610,9 +2649,22 @@ type PickupWidgetConfig = {
2610
2649
  /**
2611
2650
  * No carrier widget, but every point from `getPickupPoints()` carries
2612
2651
  * `latitude`/`longitude`: render your own map (SDK 1.16.0; PPL, GLS,
2613
- * Aramex, Zaslat).
2652
+ * Aramex).
2614
2653
  */
2615
2654
  provider: "behio";
2655
+ } | {
2656
+ /** Zaslat map widget, no key needed (SDK 2.16.0). */
2657
+ provider: "zaslat";
2658
+ /**
2659
+ * Zaslat carrier code for the widget `carriers` filter
2660
+ * (e.g. "ZASILKOVNA", "PPL"); null = show every carrier.
2661
+ */
2662
+ carrier: string | null;
2663
+ /**
2664
+ * Widget `territory` when the method ships to exactly one of CZ/SK;
2665
+ * null = use the delivery country (`"cz"` or `"sk"`).
2666
+ */
2667
+ territory: "cz" | "sk" | null;
2616
2668
  };
2617
2669
  interface PickupPoint {
2618
2670
  /** Carrier-native id. Send this back as `checkout.pickupPointId`. */
@@ -4107,4 +4159,4 @@ declare function clearCartSummary(): void;
4107
4159
  /** Publish only authoritative current totals; server cart consumers call this after hydration and revalidation. */
4108
4160
  declare function publishCartSummary(summary: CartSummaryEvent): void;
4109
4161
 
4110
- export { type CourseCommentReply as $, type ActivePromotion as A, BehioStorefront as B, type CookieConsent as C, type Cart as D, type CartBundleLine as E, type CartBundleLineItem as F, type CartDiscount as G, type CartItem as H, type CartItemProduct as I, type CartLinkClaimed as J, type CartPromotion as K, type CartSummaryEvent as L, type Category as M, type CategoryDetail as N, type CertificateVerification as O, type ProductDetail as P, type CheckoutAddress as Q, type CheckoutInput as R, type SdkResult as S, type CheckoutPaymentMethod as T, type CheckoutPreview as U, type CheckoutResult as V, type CheckoutSettings as W, type CookieConsentInput as X, type CourseAttachment as Y, type CourseCertificate as Z, type CourseComment as _, type ProductVariant as a, type OrderPaymentInstructions as a$, type CourseCommentsList as a0, type CourseDetail as a1, type CourseLesson as a2, type CourseListItem as a3, type CourseModule as a4, type CoursePostedComment as a5, type CourseProgress as a6, type CourseTutorMessage as a7, type CourseTutorThread as a8, type CrossSellItem as a9, type LessonNote as aA, type LessonQuiz as aB, type LoginInput as aC, type LoyaltyBalance as aD, type LoyaltyNextTier as aE, type LoyaltyProgram as aF, type LoyaltyQuery as aG, type LoyaltyReferralResult as aH, type LoyaltySummary as aI, type LoyaltyTier as aJ, type LoyaltyTierPerks as aK, type LoyaltyTransaction as aL, type Menu as aM, type MenuItem as aN, type MenuItemRef as aO, type MenuItemType as aP, type MessageResponse as aQ, type NewsletterOptInDefault as aR, type NewsletterSubscribeInput as aS, type NewsletterSubscribeResult as aT, type NewsletterUnsubscribeResult as aU, type OrderAccessRequestResponse as aV, type OrderAccessVerifyResponse as aW, type OrderDetail as aX, type OrderDiscount as aY, type OrderItem as aZ, type OrderListItem as a_, type CurrencyDisplayFormat as aa, type CustomerAddress as ab, type CustomerBadge as ac, type CustomerChallenge as ad, type CustomerGamification as ae, type CustomerGamificationQuery as af, type CustomerProfile as ag, type DigitalDownload as ah, type DownloadUrl as ai, type Facet as aj, type FacetAvailability as ak, type FacetCategory as al, type FacetLabel as am, type FacetPriceRange as an, type FacetRange as ao, type FacetRatingBucket as ap, type FacetValue as aq, type FacetsResponse as ar, type FilterField as as, type FulfillmentStatus as at, FulfillmentStatuses as au, type GamificationRefreshResult as av, type GiftCardBalance as aw, type GiftCardPurchaseInput as ax, type GiftCardPurchaseResult as ay, type GiftCardSummary as az, type StorefrontFormFieldError as b, type ShopScript as b$, type OrderPickupPoint as b0, type OrderShipment as b1, type OrderStatus as b2, type OrderStatusHistory as b3, OrderStatuses as b4, type OrderTracking as b5, type Page as b6, type PageAttachment as b7, type PageDetail as b8, type PaginatedResponse as b9, type ProductSortValue as bA, type ProductVolumePrice as bB, type ProductsQuery as bC, type QuizAnswerInput as bD, type QuizAnswerResult as bE, type QuizQuestion as bF, type QuizResult as bG, type QuoteItem as bH, type QuoteRequest as bI, type RegisterInput as bJ, type RegisterResult as bK, type RequestInterceptor as bL, type RequestInterceptorConfig as bM, type ResponseInterceptor as bN, type ResponseInterceptorData as bO, type ReturnRequest as bP, type ReturnRequestItem as bQ, type ReturnStatus as bR, type ReturnStatusItem as bS, type ReturnableOrder as bT, type ReturnableOrderItem as bU, type SdkError as bV, type ShippingMethodSummary as bW, type ShippingQuote as bX, type ShippingQuoteInput as bY, type ShopAppearance as bZ, type ShopInfo as b_, type PaymentInstrument as ba, type PaymentStatus as bb, PaymentStatuses as bc, type PaymentSwift as bd, type PickupPoint as be, type PickupPointHours as bf, type PickupPointsInput as bg, type PickupWidgetConfig as bh, type PriceDisplay as bi, type ProductAssetGroup as bj, type ProductAssetItem as bk, type ProductAvailability as bl, type ProductGroup as bm, type ProductLabel as bn, type ProductListItem as bo, type ProductMedia as bp, type ProductMediaVariant as bq, type ProductParameter as br, type ProductParameterGroup as bs, type ProductParametersResponse as bt, type ProductPrice as bu, type ProductPromotionSummary as bv, type ProductReview as bw, type ProductReviewsResponse as bx, type ProductSibling as by, ProductSort as bz, type AddToCartInput as c, type ShopScriptPlacement as c0, type ShopScriptType as c1, type ShopScripts as c2, type ShopSeo as c3, type ShopSeoIdentity as c4, type SiteFormField as c5, type SiteFormFieldOption as c6, type SiteFormFieldType as c7, type Sitemap as c8, type SitemapEntry as c9, type StockBehavior as ca, type StockMode as cb, type StorefrontForm as cc, type StorefrontFormFieldErrorCode as cd, type StorefrontFormFile as ce, type StorefrontFormSettings as cf, type StorefrontFormSubmitInput as cg, type StorefrontFormSubmitResult as ch, type StorefrontFormUpload as ci, type SubmitQuoteInput as cj, type SubmitReturnInput as ck, type SubmitReviewInput as cl, type Subscription as cm, type SubscriptionAction as cn, type SubscriptionFrequency as co, type SubscriptionItem as cp, type SubscriptionStatus as cq, type TaxBreakdownLine as cr, type VariantAxis as cs, type VariantAxisValue as ct, type WishlistItem as cu, clearCartSummary as cv, err as cw, ok as cx, publishCartSummary as cy, toSdkError as cz, type AddressDetail as d, type AddressSuggestion as e, type AddressType as f, AddressTypes as g, type AuthTokens as h, type BackInStockSubscription as i, type BadgeTone as j, BehioApiError as k, type BehioErrorCode as l, type BehioEventHandler as m, type BehioEventType as n, BehioNetworkError as o, type BehioStorefrontConfig as p, type Blog as q, type BlogPostDetail as r, type BlogPostListItem as s, type BlogPostsPage as t, type BlogPostsQuery as u, type BlogSettings as v, type BlogTag as w, type Bundle as x, type BundleCatalogQuery as y, type BundleItem as z };
4162
+ export { type CourseCommentReply as $, type ActivePromotion as A, BehioStorefront as B, type CookieConsent as C, type Cart as D, type CartBundleLine as E, type CartBundleLineItem as F, type CartDiscount as G, type CartItem as H, type CartItemProduct as I, type CartLinkClaimed as J, type CartPromotion as K, type CartSummaryEvent as L, type Category as M, type CategoryDetail as N, type CertificateVerification as O, type ProductDetail as P, type CheckoutAddress as Q, type CheckoutInput as R, type SdkResult as S, type CheckoutPaymentMethod as T, type CheckoutPreview as U, type CheckoutResult as V, type CheckoutSettings as W, type CookieConsentInput as X, type CourseAttachment as Y, type CourseCertificate as Z, type CourseComment as _, type ProductVariant as a, type OrderPaymentInstructions as a$, type CourseCommentsList as a0, type CourseDetail as a1, type CourseLesson as a2, type CourseListItem as a3, type CourseModule as a4, type CoursePostedComment as a5, type CourseProgress as a6, type CourseTutorMessage as a7, type CourseTutorThread as a8, type CrossSellItem as a9, type LessonNote as aA, type LessonQuiz as aB, type LoginInput as aC, type LoyaltyBalance as aD, type LoyaltyNextTier as aE, type LoyaltyProgram as aF, type LoyaltyQuery as aG, type LoyaltyReferralResult as aH, type LoyaltySummary as aI, type LoyaltyTier as aJ, type LoyaltyTierPerks as aK, type LoyaltyTransaction as aL, type Menu as aM, type MenuItem as aN, type MenuItemRef as aO, type MenuItemType as aP, type MessageResponse as aQ, type NewsletterOptInDefault as aR, type NewsletterSubscribeInput as aS, type NewsletterSubscribeResult as aT, type NewsletterUnsubscribeResult as aU, type OrderAccessRequestResponse as aV, type OrderAccessVerifyResponse as aW, type OrderDetail as aX, type OrderDiscount as aY, type OrderItem as aZ, type OrderListItem as a_, type CurrencyDisplayFormat as aa, type CustomerAddress as ab, type CustomerBadge as ac, type CustomerChallenge as ad, type CustomerGamification as ae, type CustomerGamificationQuery as af, type CustomerProfile as ag, type DigitalDownload as ah, type DownloadUrl as ai, type Facet as aj, type FacetAvailability as ak, type FacetCategory as al, type FacetLabel as am, type FacetPriceRange as an, type FacetRange as ao, type FacetRatingBucket as ap, type FacetValue as aq, type FacetsResponse as ar, type FilterField as as, type FulfillmentStatus as at, FulfillmentStatuses as au, type GamificationRefreshResult as av, type GiftCardBalance as aw, type GiftCardPurchaseInput as ax, type GiftCardPurchaseResult as ay, type GiftCardSummary as az, type StorefrontFormFieldError as b, type ShopInfo as b$, type OrderPickupPoint as b0, type OrderShipment as b1, type OrderStatus as b2, type OrderStatusHistory as b3, OrderStatuses as b4, type OrderTracking as b5, type Page as b6, type PageAttachment as b7, type PageDetail as b8, type PaginatedResponse as b9, type ProductSortValue as bA, type ProductVolumePrice as bB, type ProductsQuery as bC, type QuizAnswerInput as bD, type QuizAnswerResult as bE, type QuizQuestion as bF, type QuizResult as bG, type QuoteItem as bH, type QuoteRequest as bI, type RegisterInput as bJ, type RegisterResult as bK, type RequestInterceptor as bL, type RequestInterceptorConfig as bM, type ResponseInterceptor as bN, type ResponseInterceptorData as bO, type ReturnRequest as bP, type ReturnRequestItem as bQ, type ReturnStatus as bR, type ReturnStatusItem as bS, type ReturnableOrder as bT, type ReturnableOrderItem as bU, type SdkError as bV, type ShippingMethodSummary as bW, type ShippingPublicConfig as bX, type ShippingQuote as bY, type ShippingQuoteInput as bZ, type ShopAppearance as b_, type PaymentInstrument as ba, type PaymentStatus as bb, PaymentStatuses as bc, type PaymentSwift as bd, type PickupPoint as be, type PickupPointHours as bf, type PickupPointsInput as bg, type PickupWidgetConfig as bh, type PriceDisplay as bi, type ProductAssetGroup as bj, type ProductAssetItem as bk, type ProductAvailability as bl, type ProductGroup as bm, type ProductLabel as bn, type ProductListItem as bo, type ProductMedia as bp, type ProductMediaVariant as bq, type ProductParameter as br, type ProductParameterGroup as bs, type ProductParametersResponse as bt, type ProductPrice as bu, type ProductPromotionSummary as bv, type ProductReview as bw, type ProductReviewsResponse as bx, type ProductSibling as by, ProductSort as bz, type AddToCartInput as c, type ShopScript as c0, type ShopScriptPlacement as c1, type ShopScriptType as c2, type ShopScripts as c3, type ShopSeo as c4, type ShopSeoIdentity as c5, type SiteFormField as c6, type SiteFormFieldOption as c7, type SiteFormFieldType as c8, type Sitemap as c9, toSdkError as cA, type SitemapEntry as ca, type StockBehavior as cb, type StockMode as cc, type StorefrontForm as cd, type StorefrontFormFieldErrorCode as ce, type StorefrontFormFile as cf, type StorefrontFormSettings as cg, type StorefrontFormSubmitInput as ch, type StorefrontFormSubmitResult as ci, type StorefrontFormUpload as cj, type SubmitQuoteInput as ck, type SubmitReturnInput as cl, type SubmitReviewInput as cm, type Subscription as cn, type SubscriptionAction as co, type SubscriptionFrequency as cp, type SubscriptionItem as cq, type SubscriptionStatus as cr, type TaxBreakdownLine as cs, type VariantAxis as ct, type VariantAxisValue as cu, type WishlistItem as cv, clearCartSummary as cw, err as cx, ok as cy, publishCartSummary as cz, type AddressDetail as d, type AddressSuggestion as e, type AddressType as f, AddressTypes as g, type AuthTokens as h, type BackInStockSubscription as i, type BadgeTone as j, BehioApiError as k, type BehioErrorCode as l, type BehioEventHandler as m, type BehioEventType as n, BehioNetworkError as o, type BehioStorefrontConfig as p, type Blog as q, type BlogPostDetail as r, type BlogPostListItem as s, type BlogPostsPage as t, type BlogPostsQuery as u, type BlogSettings as v, type BlogTag as w, type Bundle as x, type BundleCatalogQuery as y, type BundleItem as z };
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-DB_ve5Fp.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 ShippingQuote, bY as ShippingQuoteInput, bZ as ShopAppearance, b_ as ShopInfo, b$ as ShopScript, c0 as ShopScriptPlacement, c1 as ShopScriptType, c2 as ShopScripts, c3 as ShopSeo, c4 as ShopSeoIdentity, c5 as SiteFormField, c6 as SiteFormFieldOption, c7 as SiteFormFieldType, c8 as Sitemap, c9 as SitemapEntry, ca as StockBehavior, cb as StockMode, cc as StorefrontForm, cd as StorefrontFormFieldErrorCode, ce as StorefrontFormFile, cf as StorefrontFormSettings, cg as StorefrontFormSubmitInput, ch as StorefrontFormSubmitResult, ci as StorefrontFormUpload, cj as SubmitQuoteInput, ck as SubmitReturnInput, cl as SubmitReviewInput, cm as Subscription, cn as SubscriptionAction, co as SubscriptionFrequency, cp as SubscriptionItem, cq as SubscriptionStatus, cr as TaxBreakdownLine, cs as VariantAxis, ct as VariantAxisValue, cu as WishlistItem, cv as clearCartSummary, cw as err, cx as ok, cy as publishCartSummary, cz as toSdkError } from './client-DB_ve5Fp.mjs';
1
+ import { P as ProductDetail, a as ProductVariant, B as BehioStorefront, S as SdkResult, C as CookieConsent, b as StorefrontFormFieldError } from './client-Ddk-DIHi.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 ShopInfo, c0 as ShopScript, c1 as ShopScriptPlacement, c2 as ShopScriptType, c3 as ShopScripts, c4 as ShopSeo, c5 as ShopSeoIdentity, c6 as SiteFormField, c7 as SiteFormFieldOption, c8 as SiteFormFieldType, c9 as Sitemap, ca as SitemapEntry, cb as StockBehavior, cc as StockMode, cd as StorefrontForm, ce as StorefrontFormFieldErrorCode, cf as StorefrontFormFile, cg as StorefrontFormSettings, ch as StorefrontFormSubmitInput, ci as StorefrontFormSubmitResult, cj as StorefrontFormUpload, ck as SubmitQuoteInput, cl as SubmitReturnInput, cm as SubmitReviewInput, cn as Subscription, co as SubscriptionAction, cp as SubscriptionFrequency, cq as SubscriptionItem, cr as SubscriptionStatus, cs as TaxBreakdownLine, ct as VariantAxis, cu as VariantAxisValue, cv as WishlistItem, cw as clearCartSummary, cx as err, cy as ok, cz as publishCartSummary, cA as toSdkError } from './client-Ddk-DIHi.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-DB_ve5Fp.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 ShippingQuote, bY as ShippingQuoteInput, bZ as ShopAppearance, b_ as ShopInfo, b$ as ShopScript, c0 as ShopScriptPlacement, c1 as ShopScriptType, c2 as ShopScripts, c3 as ShopSeo, c4 as ShopSeoIdentity, c5 as SiteFormField, c6 as SiteFormFieldOption, c7 as SiteFormFieldType, c8 as Sitemap, c9 as SitemapEntry, ca as StockBehavior, cb as StockMode, cc as StorefrontForm, cd as StorefrontFormFieldErrorCode, ce as StorefrontFormFile, cf as StorefrontFormSettings, cg as StorefrontFormSubmitInput, ch as StorefrontFormSubmitResult, ci as StorefrontFormUpload, cj as SubmitQuoteInput, ck as SubmitReturnInput, cl as SubmitReviewInput, cm as Subscription, cn as SubscriptionAction, co as SubscriptionFrequency, cp as SubscriptionItem, cq as SubscriptionStatus, cr as TaxBreakdownLine, cs as VariantAxis, ct as VariantAxisValue, cu as WishlistItem, cv as clearCartSummary, cw as err, cx as ok, cy as publishCartSummary, cz as toSdkError } from './client-DB_ve5Fp.js';
1
+ import { P as ProductDetail, a as ProductVariant, B as BehioStorefront, S as SdkResult, C as CookieConsent, b as StorefrontFormFieldError } from './client-Ddk-DIHi.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 ShopInfo, c0 as ShopScript, c1 as ShopScriptPlacement, c2 as ShopScriptType, c3 as ShopScripts, c4 as ShopSeo, c5 as ShopSeoIdentity, c6 as SiteFormField, c7 as SiteFormFieldOption, c8 as SiteFormFieldType, c9 as Sitemap, ca as SitemapEntry, cb as StockBehavior, cc as StockMode, cd as StorefrontForm, ce as StorefrontFormFieldErrorCode, cf as StorefrontFormFile, cg as StorefrontFormSettings, ch as StorefrontFormSubmitInput, ci as StorefrontFormSubmitResult, cj as StorefrontFormUpload, ck as SubmitQuoteInput, cl as SubmitReturnInput, cm as SubmitReviewInput, cn as Subscription, co as SubscriptionAction, cp as SubscriptionFrequency, cq as SubscriptionItem, cr as SubscriptionStatus, cs as TaxBreakdownLine, ct as VariantAxis, cu as VariantAxisValue, cv as WishlistItem, cw as clearCartSummary, cx as err, cy as ok, cz as publishCartSummary, cA as toSdkError } from './client-Ddk-DIHi.js';
3
3
 
4
4
  /**
5
5
  * Format a price amount with currency using Intl.NumberFormat.
package/dist/index.js CHANGED
@@ -464,6 +464,8 @@ var ERROR_MESSAGES = {
464
464
  "be.storefront.siteKeyNotAllowed": "Tento kl\xED\u010D pat\u0159\xED webu bez napojen\xE9ho e-shopu, obchodn\xED endpointy pro n\u011Bj nejsou dostupn\xE9.",
465
465
  "be.storefront.siteOwnerMissing": "Web nem\xE1 vlastn\xEDka (e-shop ani web).",
466
466
  "be.storefront.someProductsNotFound": "N\u011Bkter\xE9 produkty nebyly nalezeny.",
467
+ "be.storefront.stockBusyRetry": "Zbo\u017E\xED si pr\xE1v\u011B kupuje v\xEDc lid\xED najednou, zkuste to pros\xEDm znovu.",
468
+ "be.storefront.stockReservedByOthers": "Zb\xFDvaj\xEDc\xED kusy produktu {name} m\xE1 pr\xE1v\u011B v ko\u0161\xEDku n\u011Bkdo jin\xFD. Zkuste to pros\xEDm za chv\xEDli.",
467
469
  "be.storefront.stripeConnectFailed": "Stripe nevr\xE1til propojen\xFD \xFA\u010Det.",
468
470
  "be.storefront.stripeConnectNotConfigured": "Stripe Connect nen\xED na serveru nastaven\xFD.",
469
471
  "be.storefront.stripeMethodNotFound": "Platebn\xED metoda Stripe nenalezena.",
@@ -724,6 +726,8 @@ var ERROR_MESSAGES = {
724
726
  "be.storefront.siteKeyNotAllowed": "Tento k\u013E\xFA\u010D patr\xED webu bez napojen\xE9ho e-shopu, obchodn\xE9 endpointy pre\u0148 nie s\xFA dostupn\xE9.",
725
727
  "be.storefront.siteOwnerMissing": "Web nem\xE1 vlastn\xEDka (e-shop ani web).",
726
728
  "be.storefront.someProductsNotFound": "Niektor\xE9 produkty sa nena\u0161li.",
729
+ "be.storefront.stockBusyRetry": "Tovar si pr\xE1ve kupuje viac \u013Eud\xED naraz, sk\xFAste to pros\xEDm znova.",
730
+ "be.storefront.stockReservedByOthers": "Zost\xE1vaj\xFAce kusy produktu {name} m\xE1 pr\xE1ve v ko\u0161\xEDku niekto in\xFD. Sk\xFAste to pros\xEDm o chv\xED\u013Eu.",
727
731
  "be.storefront.stripeConnectFailed": "Stripe nevr\xE1til prepojen\xFD \xFA\u010Det.",
728
732
  "be.storefront.stripeConnectNotConfigured": "Stripe Connect nie je na serveri nastaven\xFD.",
729
733
  "be.storefront.stripeMethodNotFound": "Platobn\xE1 met\xF3da Stripe sa nena\u0161la.",
@@ -984,6 +988,8 @@ var ERROR_MESSAGES = {
984
988
  "be.storefront.siteKeyNotAllowed": "This key belongs to a website without a linked e-shop, commerce endpoints are not available for it",
985
989
  "be.storefront.siteOwnerMissing": "The site has no owner (neither e-shop nor website)",
986
990
  "be.storefront.someProductsNotFound": "One or more products were not found",
991
+ "be.storefront.stockBusyRetry": "Many people are buying this item right now, please try again.",
992
+ "be.storefront.stockReservedByOthers": "The remaining pieces of {name} are currently reserved in someone else's cart. Please try again in a moment.",
987
993
  "be.storefront.stripeConnectFailed": "Stripe did not return a connected account",
988
994
  "be.storefront.stripeConnectNotConfigured": "Stripe Connect is not configured on the server",
989
995
  "be.storefront.stripeMethodNotFound": "Stripe payment method not found",
package/dist/index.mjs CHANGED
@@ -464,6 +464,8 @@ var ERROR_MESSAGES = {
464
464
  "be.storefront.siteKeyNotAllowed": "Tento kl\xED\u010D pat\u0159\xED webu bez napojen\xE9ho e-shopu, obchodn\xED endpointy pro n\u011Bj nejsou dostupn\xE9.",
465
465
  "be.storefront.siteOwnerMissing": "Web nem\xE1 vlastn\xEDka (e-shop ani web).",
466
466
  "be.storefront.someProductsNotFound": "N\u011Bkter\xE9 produkty nebyly nalezeny.",
467
+ "be.storefront.stockBusyRetry": "Zbo\u017E\xED si pr\xE1v\u011B kupuje v\xEDc lid\xED najednou, zkuste to pros\xEDm znovu.",
468
+ "be.storefront.stockReservedByOthers": "Zb\xFDvaj\xEDc\xED kusy produktu {name} m\xE1 pr\xE1v\u011B v ko\u0161\xEDku n\u011Bkdo jin\xFD. Zkuste to pros\xEDm za chv\xEDli.",
467
469
  "be.storefront.stripeConnectFailed": "Stripe nevr\xE1til propojen\xFD \xFA\u010Det.",
468
470
  "be.storefront.stripeConnectNotConfigured": "Stripe Connect nen\xED na serveru nastaven\xFD.",
469
471
  "be.storefront.stripeMethodNotFound": "Platebn\xED metoda Stripe nenalezena.",
@@ -724,6 +726,8 @@ var ERROR_MESSAGES = {
724
726
  "be.storefront.siteKeyNotAllowed": "Tento k\u013E\xFA\u010D patr\xED webu bez napojen\xE9ho e-shopu, obchodn\xE9 endpointy pre\u0148 nie s\xFA dostupn\xE9.",
725
727
  "be.storefront.siteOwnerMissing": "Web nem\xE1 vlastn\xEDka (e-shop ani web).",
726
728
  "be.storefront.someProductsNotFound": "Niektor\xE9 produkty sa nena\u0161li.",
729
+ "be.storefront.stockBusyRetry": "Tovar si pr\xE1ve kupuje viac \u013Eud\xED naraz, sk\xFAste to pros\xEDm znova.",
730
+ "be.storefront.stockReservedByOthers": "Zost\xE1vaj\xFAce kusy produktu {name} m\xE1 pr\xE1ve v ko\u0161\xEDku niekto in\xFD. Sk\xFAste to pros\xEDm o chv\xED\u013Eu.",
727
731
  "be.storefront.stripeConnectFailed": "Stripe nevr\xE1til prepojen\xFD \xFA\u010Det.",
728
732
  "be.storefront.stripeConnectNotConfigured": "Stripe Connect nie je na serveri nastaven\xFD.",
729
733
  "be.storefront.stripeMethodNotFound": "Platobn\xE1 met\xF3da Stripe sa nena\u0161la.",
@@ -984,6 +988,8 @@ var ERROR_MESSAGES = {
984
988
  "be.storefront.siteKeyNotAllowed": "This key belongs to a website without a linked e-shop, commerce endpoints are not available for it",
985
989
  "be.storefront.siteOwnerMissing": "The site has no owner (neither e-shop nor website)",
986
990
  "be.storefront.someProductsNotFound": "One or more products were not found",
991
+ "be.storefront.stockBusyRetry": "Many people are buying this item right now, please try again.",
992
+ "be.storefront.stockReservedByOthers": "The remaining pieces of {name} are currently reserved in someone else's cart. Please try again in a moment.",
987
993
  "be.storefront.stripeConnectFailed": "Stripe did not return a connected account",
988
994
  "be.storefront.stripeConnectNotConfigured": "Stripe Connect is not configured on the server",
989
995
  "be.storefront.stripeMethodNotFound": "Stripe payment method not found",
package/dist/next.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { p as BehioStorefrontConfig, B as BehioStorefront } from './client-DB_ve5Fp.mjs';
1
+ import { p as BehioStorefrontConfig, B as BehioStorefront } from './client-Ddk-DIHi.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-DB_ve5Fp.js';
1
+ import { p as BehioStorefrontConfig, B as BehioStorefront } from './client-Ddk-DIHi.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
@@ -209,6 +209,15 @@ interface CheckoutSettings {
209
209
  showLowStock: boolean;
210
210
  /** Stock level at (and below) which the low-stock nudge shows. */
211
211
  lowStockThreshold: number;
212
+ /**
213
+ * Cart reservations are on: pieces put into a cart are guaranteed to that
214
+ * cart until `CartItem.reservedUntil` and nobody else can buy them. True only
215
+ * when the merchant enabled it and the shop tracks stock (`stockMode`
216
+ * TRACKED). Render the countdown from the cart line, not from this flag.
217
+ */
218
+ cartReservationEnabled: boolean;
219
+ /** Default reservation length in minutes (0 when off). A product can override it, so never compute the countdown from this number. */
220
+ cartReservationMinutes: number;
212
221
  /** Google Places address autocomplete is enabled; mount the UX when true. */
213
222
  addressAutocompleteEnabled: boolean;
214
223
  /**
@@ -1391,6 +1400,13 @@ interface CartItem {
1391
1400
  decreaseTo: number | null;
1392
1401
  increaseTo: number | null;
1393
1402
  };
1403
+ /**
1404
+ * Cart reservation: until this moment (epoch milliseconds) the pieces on this
1405
+ * line are guaranteed to this cart. Null = not reserved (reservations off,
1406
+ * product excluded, or already expired). Expiry is lazy, nothing is pushed
1407
+ * when it passes, so re-fetch the cart. Older servers omit it.
1408
+ */
1409
+ reservedUntil?: number | null;
1394
1410
  /**
1395
1411
  * Eshop product ID of the sellable unit on this line. A variant is its own
1396
1412
  * product, so this is the exact product/variant the customer added — use it
@@ -1541,6 +1557,8 @@ interface CartBundleLine {
1541
1557
  decreaseTo: number | null;
1542
1558
  increaseTo: number | null;
1543
1559
  };
1560
+ /** Cart reservation end (epoch milliseconds) for this bundle line; null = not reserved or expired. Older servers omit it. */
1561
+ reservedUntil?: number | null;
1544
1562
  minQuantity: number;
1545
1563
  maxQuantity: number | null;
1546
1564
  remainingStock: number | null;
@@ -2575,8 +2593,23 @@ interface ShippingMethodSummary {
2575
2593
  etaDaysMin: number | null;
2576
2594
  etaDaysMax: number | null;
2577
2595
  allowedCountries: string[];
2578
- /** Customer-safe config fields the merchant filled in (pickup address, instructions). */
2579
- publicConfig: Record<string, unknown>;
2596
+ /** Customer-safe config fields the merchant filled in (pickup address, instructions) and the pickup map widget. */
2597
+ publicConfig: ShippingPublicConfig;
2598
+ }
2599
+ /**
2600
+ * Customer-safe part of a shipping method's config. Typed keys since
2601
+ * SDK 2.16.0; the index signature keeps older code that reads it as a
2602
+ * plain record compiling.
2603
+ */
2604
+ interface ShippingPublicConfig {
2605
+ instructions?: string;
2606
+ /** In-store pickup address. */
2607
+ pickupAddress?: string;
2608
+ /** In-store pickup opening hours. */
2609
+ openingHours?: string;
2610
+ /** Pickup point map for methods with `supportsPickupPoints`. */
2611
+ pickupWidget?: PickupWidgetConfig;
2612
+ [key: string]: unknown;
2580
2613
  }
2581
2614
  /**
2582
2615
  * Input for `behio.shipping.quote()`. At minimum requires the destination
@@ -2624,6 +2657,51 @@ interface ShippingQuote extends ShippingMethodSummary {
2624
2657
  /** Quote expiry (epoch ms). Null for fixed-price methods. */
2625
2658
  expiresAt: number | null;
2626
2659
  }
2660
+ /**
2661
+ * A pickup point (parcel shop / locker) for a shipping method with
2662
+ * `supportsPickupPoints`. Fetch with `behio.shipping.getPickupPoints()`,
2663
+ * then send the chosen `externalId` as `checkout.pickupPointId`.
2664
+ */
2665
+ /**
2666
+ * Carrier map widget for choosing a pickup point in checkout. Present in
2667
+ * `ShippingMethod.publicConfig.pickupWidget` when the merchant's carrier
2668
+ * supports it (today Packeta: load https://widget.packeta.com/v6/www/js/library.js
2669
+ * and call `Packeta.Widget.pick(apiKey, cb, {country, language})`; send
2670
+ * `String(point.id)` back as `checkout.pickupPointId`). SDK 1.15.0.
2671
+ * `provider: "behio"` (SDK 1.16.0) means "draw the map yourself from
2672
+ * `getPickupPoints()` coordinates".
2673
+ * `provider: "zaslat"` (SDK 2.16.0) is the Zaslat map widget
2674
+ * (https://docs.zaslat.cz/map_widget): load
2675
+ * https://app.zaslat.cz/map/zaslat-map.umd.min.js once, call
2676
+ * `zslt.openMap({addressType: "recipient", carriers, territory, lang, value})`
2677
+ * and send `place.code || String(place.id)` back as `checkout.pickupPointId`
2678
+ * together with a `checkout.pickupPoint` snapshot.
2679
+ */
2680
+ type PickupWidgetConfig = {
2681
+ provider: "packeta";
2682
+ /** Public widget key (never the API password). */
2683
+ apiKey: string;
2684
+ } | {
2685
+ /**
2686
+ * No carrier widget, but every point from `getPickupPoints()` carries
2687
+ * `latitude`/`longitude`: render your own map (SDK 1.16.0; PPL, GLS,
2688
+ * Aramex).
2689
+ */
2690
+ provider: "behio";
2691
+ } | {
2692
+ /** Zaslat map widget, no key needed (SDK 2.16.0). */
2693
+ provider: "zaslat";
2694
+ /**
2695
+ * Zaslat carrier code for the widget `carriers` filter
2696
+ * (e.g. "ZASILKOVNA", "PPL"); null = show every carrier.
2697
+ */
2698
+ carrier: string | null;
2699
+ /**
2700
+ * Widget `territory` when the method ships to exactly one of CZ/SK;
2701
+ * null = use the delivery country (`"cz"` or `"sk"`).
2702
+ */
2703
+ territory: "cz" | "sk" | null;
2704
+ };
2627
2705
  interface PickupPoint {
2628
2706
  /** Carrier-native id. Send this back as `checkout.pickupPointId`. */
2629
2707
  externalId: string;
package/dist/react.d.ts CHANGED
@@ -209,6 +209,15 @@ interface CheckoutSettings {
209
209
  showLowStock: boolean;
210
210
  /** Stock level at (and below) which the low-stock nudge shows. */
211
211
  lowStockThreshold: number;
212
+ /**
213
+ * Cart reservations are on: pieces put into a cart are guaranteed to that
214
+ * cart until `CartItem.reservedUntil` and nobody else can buy them. True only
215
+ * when the merchant enabled it and the shop tracks stock (`stockMode`
216
+ * TRACKED). Render the countdown from the cart line, not from this flag.
217
+ */
218
+ cartReservationEnabled: boolean;
219
+ /** Default reservation length in minutes (0 when off). A product can override it, so never compute the countdown from this number. */
220
+ cartReservationMinutes: number;
212
221
  /** Google Places address autocomplete is enabled; mount the UX when true. */
213
222
  addressAutocompleteEnabled: boolean;
214
223
  /**
@@ -1391,6 +1400,13 @@ interface CartItem {
1391
1400
  decreaseTo: number | null;
1392
1401
  increaseTo: number | null;
1393
1402
  };
1403
+ /**
1404
+ * Cart reservation: until this moment (epoch milliseconds) the pieces on this
1405
+ * line are guaranteed to this cart. Null = not reserved (reservations off,
1406
+ * product excluded, or already expired). Expiry is lazy, nothing is pushed
1407
+ * when it passes, so re-fetch the cart. Older servers omit it.
1408
+ */
1409
+ reservedUntil?: number | null;
1394
1410
  /**
1395
1411
  * Eshop product ID of the sellable unit on this line. A variant is its own
1396
1412
  * product, so this is the exact product/variant the customer added — use it
@@ -1541,6 +1557,8 @@ interface CartBundleLine {
1541
1557
  decreaseTo: number | null;
1542
1558
  increaseTo: number | null;
1543
1559
  };
1560
+ /** Cart reservation end (epoch milliseconds) for this bundle line; null = not reserved or expired. Older servers omit it. */
1561
+ reservedUntil?: number | null;
1544
1562
  minQuantity: number;
1545
1563
  maxQuantity: number | null;
1546
1564
  remainingStock: number | null;
@@ -2575,8 +2593,23 @@ interface ShippingMethodSummary {
2575
2593
  etaDaysMin: number | null;
2576
2594
  etaDaysMax: number | null;
2577
2595
  allowedCountries: string[];
2578
- /** Customer-safe config fields the merchant filled in (pickup address, instructions). */
2579
- publicConfig: Record<string, unknown>;
2596
+ /** Customer-safe config fields the merchant filled in (pickup address, instructions) and the pickup map widget. */
2597
+ publicConfig: ShippingPublicConfig;
2598
+ }
2599
+ /**
2600
+ * Customer-safe part of a shipping method's config. Typed keys since
2601
+ * SDK 2.16.0; the index signature keeps older code that reads it as a
2602
+ * plain record compiling.
2603
+ */
2604
+ interface ShippingPublicConfig {
2605
+ instructions?: string;
2606
+ /** In-store pickup address. */
2607
+ pickupAddress?: string;
2608
+ /** In-store pickup opening hours. */
2609
+ openingHours?: string;
2610
+ /** Pickup point map for methods with `supportsPickupPoints`. */
2611
+ pickupWidget?: PickupWidgetConfig;
2612
+ [key: string]: unknown;
2580
2613
  }
2581
2614
  /**
2582
2615
  * Input for `behio.shipping.quote()`. At minimum requires the destination
@@ -2624,6 +2657,51 @@ interface ShippingQuote extends ShippingMethodSummary {
2624
2657
  /** Quote expiry (epoch ms). Null for fixed-price methods. */
2625
2658
  expiresAt: number | null;
2626
2659
  }
2660
+ /**
2661
+ * A pickup point (parcel shop / locker) for a shipping method with
2662
+ * `supportsPickupPoints`. Fetch with `behio.shipping.getPickupPoints()`,
2663
+ * then send the chosen `externalId` as `checkout.pickupPointId`.
2664
+ */
2665
+ /**
2666
+ * Carrier map widget for choosing a pickup point in checkout. Present in
2667
+ * `ShippingMethod.publicConfig.pickupWidget` when the merchant's carrier
2668
+ * supports it (today Packeta: load https://widget.packeta.com/v6/www/js/library.js
2669
+ * and call `Packeta.Widget.pick(apiKey, cb, {country, language})`; send
2670
+ * `String(point.id)` back as `checkout.pickupPointId`). SDK 1.15.0.
2671
+ * `provider: "behio"` (SDK 1.16.0) means "draw the map yourself from
2672
+ * `getPickupPoints()` coordinates".
2673
+ * `provider: "zaslat"` (SDK 2.16.0) is the Zaslat map widget
2674
+ * (https://docs.zaslat.cz/map_widget): load
2675
+ * https://app.zaslat.cz/map/zaslat-map.umd.min.js once, call
2676
+ * `zslt.openMap({addressType: "recipient", carriers, territory, lang, value})`
2677
+ * and send `place.code || String(place.id)` back as `checkout.pickupPointId`
2678
+ * together with a `checkout.pickupPoint` snapshot.
2679
+ */
2680
+ type PickupWidgetConfig = {
2681
+ provider: "packeta";
2682
+ /** Public widget key (never the API password). */
2683
+ apiKey: string;
2684
+ } | {
2685
+ /**
2686
+ * No carrier widget, but every point from `getPickupPoints()` carries
2687
+ * `latitude`/`longitude`: render your own map (SDK 1.16.0; PPL, GLS,
2688
+ * Aramex).
2689
+ */
2690
+ provider: "behio";
2691
+ } | {
2692
+ /** Zaslat map widget, no key needed (SDK 2.16.0). */
2693
+ provider: "zaslat";
2694
+ /**
2695
+ * Zaslat carrier code for the widget `carriers` filter
2696
+ * (e.g. "ZASILKOVNA", "PPL"); null = show every carrier.
2697
+ */
2698
+ carrier: string | null;
2699
+ /**
2700
+ * Widget `territory` when the method ships to exactly one of CZ/SK;
2701
+ * null = use the delivery country (`"cz"` or `"sk"`).
2702
+ */
2703
+ territory: "cz" | "sk" | null;
2704
+ };
2627
2705
  interface PickupPoint {
2628
2706
  /** Carrier-native id. Send this back as `checkout.pickupPointId`. */
2629
2707
  externalId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@behio/storefront-sdk",
3
- "version": "2.14.1",
3
+ "version": "2.16.0",
4
4
  "description": "TypeScript SDK for Behio headless e-commerce: core client + React hooks",
5
5
  "author": "Behio",
6
6
  "license": "MIT",