@behio/storefront-sdk 2.15.0 → 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.
- package/dist/{client-DF78Zgb0.d.mts → client-Ddk-DIHi.d.mts} +38 -4
- package/dist/{client-DF78Zgb0.d.ts → client-Ddk-DIHi.d.ts} +38 -4
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/next.d.mts +1 -1
- package/dist/next.d.ts +1 -1
- package/dist/react.d.mts +62 -2
- package/dist/react.d.ts +62 -2
- package/package.json +1 -1
|
@@ -2557,8 +2557,23 @@ interface ShippingMethodSummary {
|
|
|
2557
2557
|
etaDaysMin: number | null;
|
|
2558
2558
|
etaDaysMax: number | null;
|
|
2559
2559
|
allowedCountries: string[];
|
|
2560
|
-
/** Customer-safe config fields the merchant filled in (pickup address, instructions). */
|
|
2561
|
-
publicConfig:
|
|
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;
|
|
2562
2577
|
}
|
|
2563
2578
|
/**
|
|
2564
2579
|
* Input for `behio.shipping.quote()`. At minimum requires the destination
|
|
@@ -2619,6 +2634,12 @@ interface ShippingQuote extends ShippingMethodSummary {
|
|
|
2619
2634
|
* `String(point.id)` back as `checkout.pickupPointId`). SDK 1.15.0.
|
|
2620
2635
|
* `provider: "behio"` (SDK 1.16.0) means "draw the map yourself from
|
|
2621
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.
|
|
2622
2643
|
*/
|
|
2623
2644
|
type PickupWidgetConfig = {
|
|
2624
2645
|
provider: "packeta";
|
|
@@ -2628,9 +2649,22 @@ type PickupWidgetConfig = {
|
|
|
2628
2649
|
/**
|
|
2629
2650
|
* No carrier widget, but every point from `getPickupPoints()` carries
|
|
2630
2651
|
* `latitude`/`longitude`: render your own map (SDK 1.16.0; PPL, GLS,
|
|
2631
|
-
* Aramex
|
|
2652
|
+
* Aramex).
|
|
2632
2653
|
*/
|
|
2633
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;
|
|
2634
2668
|
};
|
|
2635
2669
|
interface PickupPoint {
|
|
2636
2670
|
/** Carrier-native id. Send this back as `checkout.pickupPointId`. */
|
|
@@ -4125,4 +4159,4 @@ declare function clearCartSummary(): void;
|
|
|
4125
4159
|
/** Publish only authoritative current totals; server cart consumers call this after hydration and revalidation. */
|
|
4126
4160
|
declare function publishCartSummary(summary: CartSummaryEvent): void;
|
|
4127
4161
|
|
|
4128
|
-
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
|
|
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 };
|
|
@@ -2557,8 +2557,23 @@ interface ShippingMethodSummary {
|
|
|
2557
2557
|
etaDaysMin: number | null;
|
|
2558
2558
|
etaDaysMax: number | null;
|
|
2559
2559
|
allowedCountries: string[];
|
|
2560
|
-
/** Customer-safe config fields the merchant filled in (pickup address, instructions). */
|
|
2561
|
-
publicConfig:
|
|
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;
|
|
2562
2577
|
}
|
|
2563
2578
|
/**
|
|
2564
2579
|
* Input for `behio.shipping.quote()`. At minimum requires the destination
|
|
@@ -2619,6 +2634,12 @@ interface ShippingQuote extends ShippingMethodSummary {
|
|
|
2619
2634
|
* `String(point.id)` back as `checkout.pickupPointId`). SDK 1.15.0.
|
|
2620
2635
|
* `provider: "behio"` (SDK 1.16.0) means "draw the map yourself from
|
|
2621
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.
|
|
2622
2643
|
*/
|
|
2623
2644
|
type PickupWidgetConfig = {
|
|
2624
2645
|
provider: "packeta";
|
|
@@ -2628,9 +2649,22 @@ type PickupWidgetConfig = {
|
|
|
2628
2649
|
/**
|
|
2629
2650
|
* No carrier widget, but every point from `getPickupPoints()` carries
|
|
2630
2651
|
* `latitude`/`longitude`: render your own map (SDK 1.16.0; PPL, GLS,
|
|
2631
|
-
* Aramex
|
|
2652
|
+
* Aramex).
|
|
2632
2653
|
*/
|
|
2633
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;
|
|
2634
2668
|
};
|
|
2635
2669
|
interface PickupPoint {
|
|
2636
2670
|
/** Carrier-native id. Send this back as `checkout.pickupPointId`. */
|
|
@@ -4125,4 +4159,4 @@ declare function clearCartSummary(): void;
|
|
|
4125
4159
|
/** Publish only authoritative current totals; server cart consumers call this after hydration and revalidation. */
|
|
4126
4160
|
declare function publishCartSummary(summary: CartSummaryEvent): void;
|
|
4127
4161
|
|
|
4128
|
-
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
|
|
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-
|
|
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
|
|
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-
|
|
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
|
|
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/next.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as BehioStorefrontConfig, B as BehioStorefront } from './client-
|
|
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-
|
|
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
|
@@ -2593,8 +2593,23 @@ interface ShippingMethodSummary {
|
|
|
2593
2593
|
etaDaysMin: number | null;
|
|
2594
2594
|
etaDaysMax: number | null;
|
|
2595
2595
|
allowedCountries: string[];
|
|
2596
|
-
/** Customer-safe config fields the merchant filled in (pickup address, instructions). */
|
|
2597
|
-
publicConfig:
|
|
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;
|
|
2598
2613
|
}
|
|
2599
2614
|
/**
|
|
2600
2615
|
* Input for `behio.shipping.quote()`. At minimum requires the destination
|
|
@@ -2642,6 +2657,51 @@ interface ShippingQuote extends ShippingMethodSummary {
|
|
|
2642
2657
|
/** Quote expiry (epoch ms). Null for fixed-price methods. */
|
|
2643
2658
|
expiresAt: number | null;
|
|
2644
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
|
+
};
|
|
2645
2705
|
interface PickupPoint {
|
|
2646
2706
|
/** Carrier-native id. Send this back as `checkout.pickupPointId`. */
|
|
2647
2707
|
externalId: string;
|
package/dist/react.d.ts
CHANGED
|
@@ -2593,8 +2593,23 @@ interface ShippingMethodSummary {
|
|
|
2593
2593
|
etaDaysMin: number | null;
|
|
2594
2594
|
etaDaysMax: number | null;
|
|
2595
2595
|
allowedCountries: string[];
|
|
2596
|
-
/** Customer-safe config fields the merchant filled in (pickup address, instructions). */
|
|
2597
|
-
publicConfig:
|
|
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;
|
|
2598
2613
|
}
|
|
2599
2614
|
/**
|
|
2600
2615
|
* Input for `behio.shipping.quote()`. At minimum requires the destination
|
|
@@ -2642,6 +2657,51 @@ interface ShippingQuote extends ShippingMethodSummary {
|
|
|
2642
2657
|
/** Quote expiry (epoch ms). Null for fixed-price methods. */
|
|
2643
2658
|
expiresAt: number | null;
|
|
2644
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
|
+
};
|
|
2645
2705
|
interface PickupPoint {
|
|
2646
2706
|
/** Carrier-native id. Send this back as `checkout.pickupPointId`. */
|
|
2647
2707
|
externalId: string;
|