@behio/storefront-sdk 2.12.0 → 2.13.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-D1nNDDVw.d.mts → client-Cf_xibuw.d.mts} +34 -1
- package/dist/{client-D1nNDDVw.d.ts → client-Cf_xibuw.d.ts} +34 -1
- 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 +33 -0
- package/dist/react.d.ts +33 -0
- package/package.json +1 -1
|
@@ -482,6 +482,8 @@ interface ProductVariant {
|
|
|
482
482
|
stockQuantity?: number | null;
|
|
483
483
|
/** "Only X left" for this variant — same contract as ProductListItem.lowStockRemaining. */
|
|
484
484
|
lowStockRemaining?: number | null;
|
|
485
|
+
/** Most pieces the cart accepts for this variant; null = uncapped or hidden stock. SDK 2.13.0. */
|
|
486
|
+
maxPurchasableQuantity?: number | null;
|
|
485
487
|
/**
|
|
486
488
|
* Cover image URL for the variant. Falls back to the parent product's
|
|
487
489
|
* cover when the variant has no photo of its own — see `imageIsInherited`.
|
|
@@ -837,6 +839,10 @@ interface ProductAssetGroup {
|
|
|
837
839
|
items: ProductAssetItem[];
|
|
838
840
|
}
|
|
839
841
|
interface ProductDetail extends ProductListItem {
|
|
842
|
+
/** Most pieces the cart accepts (stock, plus safetyStock under BACKORDER);
|
|
843
|
+
* null when uncapped or the shop hides stock counts. Cap the PDP quantity
|
|
844
|
+
* stepper with it, it is exactly the cart rule. SDK 2.13.0. */
|
|
845
|
+
maxPurchasableQuantity?: number | null;
|
|
840
846
|
longDescription?: string;
|
|
841
847
|
/**
|
|
842
848
|
* @deprecated Legacy per-listing images. Prefer `media`. Each carries its
|
|
@@ -1282,6 +1288,9 @@ interface CartItemProduct {
|
|
|
1282
1288
|
sku: string;
|
|
1283
1289
|
imageUrl?: string;
|
|
1284
1290
|
inStock: boolean;
|
|
1291
|
+
/** Pieces left for an "only X left" note on the cart line; null when the
|
|
1292
|
+
* shop does not track stock, hides the nudge or has plenty. SDK 2.13.0. */
|
|
1293
|
+
lowStockRemaining?: number | null;
|
|
1285
1294
|
currentPrice: number | null;
|
|
1286
1295
|
/** Minimum order quantity (units); null = no minimum. Clamp the cart
|
|
1287
1296
|
* stepper's lower bound to this (GAP-48). */
|
|
@@ -1512,6 +1521,14 @@ interface CheckoutInput {
|
|
|
1512
1521
|
termsConsent?: boolean;
|
|
1513
1522
|
gdprConsent?: boolean;
|
|
1514
1523
|
newsletterOptIn?: boolean;
|
|
1524
|
+
/**
|
|
1525
|
+
* Consent to start delivering digital content (courses, downloads,
|
|
1526
|
+
* services) before the withdrawal period ends, which waives the right of
|
|
1527
|
+
* withdrawal (EU Directive 2011/83 art. 16(m)). Render the checkbox for carts
|
|
1528
|
+
* without physical goods (`cart.requiresShipping === false`). Stored on the
|
|
1529
|
+
* order consent record; it does not block the order. SDK 2.13.0.
|
|
1530
|
+
*/
|
|
1531
|
+
digitalDeliveryConsent?: boolean;
|
|
1515
1532
|
/**
|
|
1516
1533
|
* Consent to marketing SMS, from the optional checkout checkbox. Render it
|
|
1517
1534
|
* only when `ShopInfo.checkout.collectSmsConsent` is true; shops that do not
|
|
@@ -1659,6 +1676,18 @@ interface OrderStatusHistory {
|
|
|
1659
1676
|
changedBy?: string;
|
|
1660
1677
|
createdAt: number;
|
|
1661
1678
|
}
|
|
1679
|
+
/** Bank transfer details of an unpaid order (SDK 2.13.0). */
|
|
1680
|
+
interface OrderPaymentInstructions {
|
|
1681
|
+
accountNumber: string | null;
|
|
1682
|
+
iban: string | null;
|
|
1683
|
+
bic: string | null;
|
|
1684
|
+
bankName: string | null;
|
|
1685
|
+
/** Digits only, at most 10 (Czech banks); from the method pattern with the order number. */
|
|
1686
|
+
variableSymbol: string | null;
|
|
1687
|
+
amount: number;
|
|
1688
|
+
currency: string;
|
|
1689
|
+
instructions: string | null;
|
|
1690
|
+
}
|
|
1662
1691
|
interface OrderDetail extends OrderListItem {
|
|
1663
1692
|
/** Payment is recorded; access delivery will retry automatically. Do not place a duplicate order. */
|
|
1664
1693
|
contentDeliveryPending?: boolean;
|
|
@@ -1668,6 +1697,10 @@ interface OrderDetail extends OrderListItem {
|
|
|
1668
1697
|
shippingMethodName?: string | null;
|
|
1669
1698
|
/** Payment method in the order language (SDK 2.8.0). */
|
|
1670
1699
|
paymentMethodName?: string | null;
|
|
1700
|
+
/** Bank transfer details while the order is unpaid; render them on the
|
|
1701
|
+
* confirmation (account, IBAN, variable symbol, amount). Null for other
|
|
1702
|
+
* methods and paid orders. SDK 2.13.0. */
|
|
1703
|
+
paymentInstructions?: OrderPaymentInstructions | null;
|
|
1671
1704
|
/** Pickup point the customer chose, a public place (SDK 2.8.0). */
|
|
1672
1705
|
pickupPoint?: OrderPickupPoint | null;
|
|
1673
1706
|
/** Parcels the customer can follow (SDK 2.8.0). */
|
|
@@ -4008,4 +4041,4 @@ declare function clearCartSummary(): void;
|
|
|
4008
4041
|
/** Publish only authoritative current totals; server cart consumers call this after hydration and revalidation. */
|
|
4009
4042
|
declare function publishCartSummary(summary: CartSummaryEvent): void;
|
|
4010
4043
|
|
|
4011
|
-
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
|
|
4044
|
+
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 OrderPickupPoint 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 OrderItem as aY, type OrderListItem as aZ, type OrderPaymentInstructions 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 ShopScriptPlacement as b$, type OrderShipment as b0, type OrderStatus as b1, type OrderStatusHistory as b2, OrderStatuses as b3, type OrderTracking as b4, type Page as b5, type PageAttachment as b6, type PageDetail as b7, type PaginatedResponse as b8, type PaymentInstrument as b9, type ProductVolumePrice as bA, type ProductsQuery as bB, type QuizAnswerInput as bC, type QuizAnswerResult as bD, type QuizQuestion as bE, type QuizResult as bF, type QuoteItem as bG, type QuoteRequest as bH, type RegisterInput as bI, type RegisterResult as bJ, type RequestInterceptor as bK, type RequestInterceptorConfig as bL, type ResponseInterceptor as bM, type ResponseInterceptorData as bN, type ReturnRequest as bO, type ReturnRequestItem as bP, type ReturnStatus as bQ, type ReturnStatusItem as bR, type ReturnableOrder as bS, type ReturnableOrderItem as bT, type SdkError as bU, type ShippingMethodSummary as bV, type ShippingQuote as bW, type ShippingQuoteInput as bX, type ShopAppearance as bY, type ShopInfo as bZ, type ShopScript as b_, type PaymentStatus as ba, PaymentStatuses as bb, type PaymentSwift as bc, type PickupPoint as bd, type PickupPointHours as be, type PickupPointsInput as bf, type PickupWidgetConfig as bg, type PriceDisplay as bh, type ProductAssetGroup as bi, type ProductAssetItem as bj, type ProductAvailability as bk, type ProductGroup as bl, type ProductLabel as bm, type ProductListItem as bn, type ProductMedia as bo, type ProductMediaVariant as bp, type ProductParameter as bq, type ProductParameterGroup as br, type ProductParametersResponse as bs, type ProductPrice as bt, type ProductPromotionSummary as bu, type ProductReview as bv, type ProductReviewsResponse as bw, type ProductSibling as bx, ProductSort as by, type ProductSortValue as bz, type AddToCartInput as c, type ShopScriptType as c0, type ShopScripts as c1, type ShopSeo as c2, type ShopSeoIdentity as c3, type SiteFormField as c4, type SiteFormFieldOption as c5, type SiteFormFieldType as c6, type Sitemap as c7, type SitemapEntry as c8, type StockBehavior as c9, type StockMode as ca, type StorefrontForm as cb, type StorefrontFormFieldErrorCode as cc, type StorefrontFormFile as cd, type StorefrontFormSettings as ce, type StorefrontFormSubmitInput as cf, type StorefrontFormSubmitResult as cg, type StorefrontFormUpload as ch, type SubmitQuoteInput as ci, type SubmitReturnInput as cj, type SubmitReviewInput as ck, type Subscription as cl, type SubscriptionAction as cm, type SubscriptionFrequency as cn, type SubscriptionItem as co, type SubscriptionStatus as cp, type TaxBreakdownLine as cq, type VariantAxis as cr, type VariantAxisValue as cs, type WishlistItem as ct, clearCartSummary as cu, err as cv, ok as cw, publishCartSummary as cx, toSdkError as cy, 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 };
|
|
@@ -482,6 +482,8 @@ interface ProductVariant {
|
|
|
482
482
|
stockQuantity?: number | null;
|
|
483
483
|
/** "Only X left" for this variant — same contract as ProductListItem.lowStockRemaining. */
|
|
484
484
|
lowStockRemaining?: number | null;
|
|
485
|
+
/** Most pieces the cart accepts for this variant; null = uncapped or hidden stock. SDK 2.13.0. */
|
|
486
|
+
maxPurchasableQuantity?: number | null;
|
|
485
487
|
/**
|
|
486
488
|
* Cover image URL for the variant. Falls back to the parent product's
|
|
487
489
|
* cover when the variant has no photo of its own — see `imageIsInherited`.
|
|
@@ -837,6 +839,10 @@ interface ProductAssetGroup {
|
|
|
837
839
|
items: ProductAssetItem[];
|
|
838
840
|
}
|
|
839
841
|
interface ProductDetail extends ProductListItem {
|
|
842
|
+
/** Most pieces the cart accepts (stock, plus safetyStock under BACKORDER);
|
|
843
|
+
* null when uncapped or the shop hides stock counts. Cap the PDP quantity
|
|
844
|
+
* stepper with it, it is exactly the cart rule. SDK 2.13.0. */
|
|
845
|
+
maxPurchasableQuantity?: number | null;
|
|
840
846
|
longDescription?: string;
|
|
841
847
|
/**
|
|
842
848
|
* @deprecated Legacy per-listing images. Prefer `media`. Each carries its
|
|
@@ -1282,6 +1288,9 @@ interface CartItemProduct {
|
|
|
1282
1288
|
sku: string;
|
|
1283
1289
|
imageUrl?: string;
|
|
1284
1290
|
inStock: boolean;
|
|
1291
|
+
/** Pieces left for an "only X left" note on the cart line; null when the
|
|
1292
|
+
* shop does not track stock, hides the nudge or has plenty. SDK 2.13.0. */
|
|
1293
|
+
lowStockRemaining?: number | null;
|
|
1285
1294
|
currentPrice: number | null;
|
|
1286
1295
|
/** Minimum order quantity (units); null = no minimum. Clamp the cart
|
|
1287
1296
|
* stepper's lower bound to this (GAP-48). */
|
|
@@ -1512,6 +1521,14 @@ interface CheckoutInput {
|
|
|
1512
1521
|
termsConsent?: boolean;
|
|
1513
1522
|
gdprConsent?: boolean;
|
|
1514
1523
|
newsletterOptIn?: boolean;
|
|
1524
|
+
/**
|
|
1525
|
+
* Consent to start delivering digital content (courses, downloads,
|
|
1526
|
+
* services) before the withdrawal period ends, which waives the right of
|
|
1527
|
+
* withdrawal (EU Directive 2011/83 art. 16(m)). Render the checkbox for carts
|
|
1528
|
+
* without physical goods (`cart.requiresShipping === false`). Stored on the
|
|
1529
|
+
* order consent record; it does not block the order. SDK 2.13.0.
|
|
1530
|
+
*/
|
|
1531
|
+
digitalDeliveryConsent?: boolean;
|
|
1515
1532
|
/**
|
|
1516
1533
|
* Consent to marketing SMS, from the optional checkout checkbox. Render it
|
|
1517
1534
|
* only when `ShopInfo.checkout.collectSmsConsent` is true; shops that do not
|
|
@@ -1659,6 +1676,18 @@ interface OrderStatusHistory {
|
|
|
1659
1676
|
changedBy?: string;
|
|
1660
1677
|
createdAt: number;
|
|
1661
1678
|
}
|
|
1679
|
+
/** Bank transfer details of an unpaid order (SDK 2.13.0). */
|
|
1680
|
+
interface OrderPaymentInstructions {
|
|
1681
|
+
accountNumber: string | null;
|
|
1682
|
+
iban: string | null;
|
|
1683
|
+
bic: string | null;
|
|
1684
|
+
bankName: string | null;
|
|
1685
|
+
/** Digits only, at most 10 (Czech banks); from the method pattern with the order number. */
|
|
1686
|
+
variableSymbol: string | null;
|
|
1687
|
+
amount: number;
|
|
1688
|
+
currency: string;
|
|
1689
|
+
instructions: string | null;
|
|
1690
|
+
}
|
|
1662
1691
|
interface OrderDetail extends OrderListItem {
|
|
1663
1692
|
/** Payment is recorded; access delivery will retry automatically. Do not place a duplicate order. */
|
|
1664
1693
|
contentDeliveryPending?: boolean;
|
|
@@ -1668,6 +1697,10 @@ interface OrderDetail extends OrderListItem {
|
|
|
1668
1697
|
shippingMethodName?: string | null;
|
|
1669
1698
|
/** Payment method in the order language (SDK 2.8.0). */
|
|
1670
1699
|
paymentMethodName?: string | null;
|
|
1700
|
+
/** Bank transfer details while the order is unpaid; render them on the
|
|
1701
|
+
* confirmation (account, IBAN, variable symbol, amount). Null for other
|
|
1702
|
+
* methods and paid orders. SDK 2.13.0. */
|
|
1703
|
+
paymentInstructions?: OrderPaymentInstructions | null;
|
|
1671
1704
|
/** Pickup point the customer chose, a public place (SDK 2.8.0). */
|
|
1672
1705
|
pickupPoint?: OrderPickupPoint | null;
|
|
1673
1706
|
/** Parcels the customer can follow (SDK 2.8.0). */
|
|
@@ -4008,4 +4041,4 @@ declare function clearCartSummary(): void;
|
|
|
4008
4041
|
/** Publish only authoritative current totals; server cart consumers call this after hydration and revalidation. */
|
|
4009
4042
|
declare function publishCartSummary(summary: CartSummaryEvent): void;
|
|
4010
4043
|
|
|
4011
|
-
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
|
|
4044
|
+
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 OrderPickupPoint 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 OrderItem as aY, type OrderListItem as aZ, type OrderPaymentInstructions 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 ShopScriptPlacement as b$, type OrderShipment as b0, type OrderStatus as b1, type OrderStatusHistory as b2, OrderStatuses as b3, type OrderTracking as b4, type Page as b5, type PageAttachment as b6, type PageDetail as b7, type PaginatedResponse as b8, type PaymentInstrument as b9, type ProductVolumePrice as bA, type ProductsQuery as bB, type QuizAnswerInput as bC, type QuizAnswerResult as bD, type QuizQuestion as bE, type QuizResult as bF, type QuoteItem as bG, type QuoteRequest as bH, type RegisterInput as bI, type RegisterResult as bJ, type RequestInterceptor as bK, type RequestInterceptorConfig as bL, type ResponseInterceptor as bM, type ResponseInterceptorData as bN, type ReturnRequest as bO, type ReturnRequestItem as bP, type ReturnStatus as bQ, type ReturnStatusItem as bR, type ReturnableOrder as bS, type ReturnableOrderItem as bT, type SdkError as bU, type ShippingMethodSummary as bV, type ShippingQuote as bW, type ShippingQuoteInput as bX, type ShopAppearance as bY, type ShopInfo as bZ, type ShopScript as b_, type PaymentStatus as ba, PaymentStatuses as bb, type PaymentSwift as bc, type PickupPoint as bd, type PickupPointHours as be, type PickupPointsInput as bf, type PickupWidgetConfig as bg, type PriceDisplay as bh, type ProductAssetGroup as bi, type ProductAssetItem as bj, type ProductAvailability as bk, type ProductGroup as bl, type ProductLabel as bm, type ProductListItem as bn, type ProductMedia as bo, type ProductMediaVariant as bp, type ProductParameter as bq, type ProductParameterGroup as br, type ProductParametersResponse as bs, type ProductPrice as bt, type ProductPromotionSummary as bu, type ProductReview as bv, type ProductReviewsResponse as bw, type ProductSibling as bx, ProductSort as by, type ProductSortValue as bz, type AddToCartInput as c, type ShopScriptType as c0, type ShopScripts as c1, type ShopSeo as c2, type ShopSeoIdentity as c3, type SiteFormField as c4, type SiteFormFieldOption as c5, type SiteFormFieldType as c6, type Sitemap as c7, type SitemapEntry as c8, type StockBehavior as c9, type StockMode as ca, type StorefrontForm as cb, type StorefrontFormFieldErrorCode as cc, type StorefrontFormFile as cd, type StorefrontFormSettings as ce, type StorefrontFormSubmitInput as cf, type StorefrontFormSubmitResult as cg, type StorefrontFormUpload as ch, type SubmitQuoteInput as ci, type SubmitReturnInput as cj, type SubmitReviewInput as ck, type Subscription as cl, type SubscriptionAction as cm, type SubscriptionFrequency as cn, type SubscriptionItem as co, type SubscriptionStatus as cp, type TaxBreakdownLine as cq, type VariantAxis as cr, type VariantAxisValue as cs, type WishlistItem as ct, clearCartSummary as cu, err as cv, ok as cw, publishCartSummary as cx, toSdkError as cy, 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 OrderItem, aZ as OrderListItem, a_ as
|
|
1
|
+
import { P as ProductDetail, a as ProductVariant, B as BehioStorefront, S as SdkResult, C as CookieConsent, b as StorefrontFormFieldError } from './client-Cf_xibuw.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 OrderItem, aZ as OrderListItem, a_ as OrderPaymentInstructions, a$ as OrderPickupPoint, b0 as OrderShipment, b1 as OrderStatus, b2 as OrderStatusHistory, b3 as OrderStatuses, b4 as OrderTracking, b5 as Page, b6 as PageAttachment, b7 as PageDetail, b8 as PaginatedResponse, b9 as PaymentInstrument, ba as PaymentStatus, bb as PaymentStatuses, bc as PaymentSwift, bd as PickupPoint, be as PickupPointHours, bf as PickupPointsInput, bg as PickupWidgetConfig, bh as PriceDisplay, bi as ProductAssetGroup, bj as ProductAssetItem, bk as ProductAvailability, bl as ProductGroup, bm as ProductLabel, bn as ProductListItem, bo as ProductMedia, bp as ProductMediaVariant, bq as ProductParameter, br as ProductParameterGroup, bs as ProductParametersResponse, bt as ProductPrice, bu as ProductPromotionSummary, bv as ProductReview, bw as ProductReviewsResponse, bx as ProductSibling, by as ProductSort, bz as ProductSortValue, bA as ProductVolumePrice, bB as ProductsQuery, bC as QuizAnswerInput, bD as QuizAnswerResult, bE as QuizQuestion, bF as QuizResult, bG as QuoteItem, bH as QuoteRequest, bI as RegisterInput, bJ as RegisterResult, bK as RequestInterceptor, bL as RequestInterceptorConfig, bM as ResponseInterceptor, bN as ResponseInterceptorData, bO as ReturnRequest, bP as ReturnRequestItem, bQ as ReturnStatus, bR as ReturnStatusItem, bS as ReturnableOrder, bT as ReturnableOrderItem, bU as SdkError, bV as ShippingMethodSummary, bW as ShippingQuote, bX as ShippingQuoteInput, bY as ShopAppearance, bZ as ShopInfo, b_ as ShopScript, b$ as ShopScriptPlacement, c0 as ShopScriptType, c1 as ShopScripts, c2 as ShopSeo, c3 as ShopSeoIdentity, c4 as SiteFormField, c5 as SiteFormFieldOption, c6 as SiteFormFieldType, c7 as Sitemap, c8 as SitemapEntry, c9 as StockBehavior, ca as StockMode, cb as StorefrontForm, cc as StorefrontFormFieldErrorCode, cd as StorefrontFormFile, ce as StorefrontFormSettings, cf as StorefrontFormSubmitInput, cg as StorefrontFormSubmitResult, ch as StorefrontFormUpload, ci as SubmitQuoteInput, cj as SubmitReturnInput, ck as SubmitReviewInput, cl as Subscription, cm as SubscriptionAction, cn as SubscriptionFrequency, co as SubscriptionItem, cp as SubscriptionStatus, cq as TaxBreakdownLine, cr as VariantAxis, cs as VariantAxisValue, ct as WishlistItem, cu as clearCartSummary, cv as err, cw as ok, cx as publishCartSummary, cy as toSdkError } from './client-Cf_xibuw.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 OrderItem, aZ as OrderListItem, a_ as
|
|
1
|
+
import { P as ProductDetail, a as ProductVariant, B as BehioStorefront, S as SdkResult, C as CookieConsent, b as StorefrontFormFieldError } from './client-Cf_xibuw.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 OrderItem, aZ as OrderListItem, a_ as OrderPaymentInstructions, a$ as OrderPickupPoint, b0 as OrderShipment, b1 as OrderStatus, b2 as OrderStatusHistory, b3 as OrderStatuses, b4 as OrderTracking, b5 as Page, b6 as PageAttachment, b7 as PageDetail, b8 as PaginatedResponse, b9 as PaymentInstrument, ba as PaymentStatus, bb as PaymentStatuses, bc as PaymentSwift, bd as PickupPoint, be as PickupPointHours, bf as PickupPointsInput, bg as PickupWidgetConfig, bh as PriceDisplay, bi as ProductAssetGroup, bj as ProductAssetItem, bk as ProductAvailability, bl as ProductGroup, bm as ProductLabel, bn as ProductListItem, bo as ProductMedia, bp as ProductMediaVariant, bq as ProductParameter, br as ProductParameterGroup, bs as ProductParametersResponse, bt as ProductPrice, bu as ProductPromotionSummary, bv as ProductReview, bw as ProductReviewsResponse, bx as ProductSibling, by as ProductSort, bz as ProductSortValue, bA as ProductVolumePrice, bB as ProductsQuery, bC as QuizAnswerInput, bD as QuizAnswerResult, bE as QuizQuestion, bF as QuizResult, bG as QuoteItem, bH as QuoteRequest, bI as RegisterInput, bJ as RegisterResult, bK as RequestInterceptor, bL as RequestInterceptorConfig, bM as ResponseInterceptor, bN as ResponseInterceptorData, bO as ReturnRequest, bP as ReturnRequestItem, bQ as ReturnStatus, bR as ReturnStatusItem, bS as ReturnableOrder, bT as ReturnableOrderItem, bU as SdkError, bV as ShippingMethodSummary, bW as ShippingQuote, bX as ShippingQuoteInput, bY as ShopAppearance, bZ as ShopInfo, b_ as ShopScript, b$ as ShopScriptPlacement, c0 as ShopScriptType, c1 as ShopScripts, c2 as ShopSeo, c3 as ShopSeoIdentity, c4 as SiteFormField, c5 as SiteFormFieldOption, c6 as SiteFormFieldType, c7 as Sitemap, c8 as SitemapEntry, c9 as StockBehavior, ca as StockMode, cb as StorefrontForm, cc as StorefrontFormFieldErrorCode, cd as StorefrontFormFile, ce as StorefrontFormSettings, cf as StorefrontFormSubmitInput, cg as StorefrontFormSubmitResult, ch as StorefrontFormUpload, ci as SubmitQuoteInput, cj as SubmitReturnInput, ck as SubmitReviewInput, cl as Subscription, cm as SubscriptionAction, cn as SubscriptionFrequency, co as SubscriptionItem, cp as SubscriptionStatus, cq as TaxBreakdownLine, cr as VariantAxis, cs as VariantAxisValue, ct as WishlistItem, cu as clearCartSummary, cv as err, cw as ok, cx as publishCartSummary, cy as toSdkError } from './client-Cf_xibuw.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-Cf_xibuw.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-Cf_xibuw.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
|
@@ -538,6 +538,8 @@ interface ProductVariant {
|
|
|
538
538
|
stockQuantity?: number | null;
|
|
539
539
|
/** "Only X left" for this variant — same contract as ProductListItem.lowStockRemaining. */
|
|
540
540
|
lowStockRemaining?: number | null;
|
|
541
|
+
/** Most pieces the cart accepts for this variant; null = uncapped or hidden stock. SDK 2.13.0. */
|
|
542
|
+
maxPurchasableQuantity?: number | null;
|
|
541
543
|
/**
|
|
542
544
|
* Cover image URL for the variant. Falls back to the parent product's
|
|
543
545
|
* cover when the variant has no photo of its own — see `imageIsInherited`.
|
|
@@ -893,6 +895,10 @@ interface ProductAssetGroup {
|
|
|
893
895
|
items: ProductAssetItem[];
|
|
894
896
|
}
|
|
895
897
|
interface ProductDetail extends ProductListItem {
|
|
898
|
+
/** Most pieces the cart accepts (stock, plus safetyStock under BACKORDER);
|
|
899
|
+
* null when uncapped or the shop hides stock counts. Cap the PDP quantity
|
|
900
|
+
* stepper with it, it is exactly the cart rule. SDK 2.13.0. */
|
|
901
|
+
maxPurchasableQuantity?: number | null;
|
|
896
902
|
longDescription?: string;
|
|
897
903
|
/**
|
|
898
904
|
* @deprecated Legacy per-listing images. Prefer `media`. Each carries its
|
|
@@ -1338,6 +1344,9 @@ interface CartItemProduct {
|
|
|
1338
1344
|
sku: string;
|
|
1339
1345
|
imageUrl?: string;
|
|
1340
1346
|
inStock: boolean;
|
|
1347
|
+
/** Pieces left for an "only X left" note on the cart line; null when the
|
|
1348
|
+
* shop does not track stock, hides the nudge or has plenty. SDK 2.13.0. */
|
|
1349
|
+
lowStockRemaining?: number | null;
|
|
1341
1350
|
currentPrice: number | null;
|
|
1342
1351
|
/** Minimum order quantity (units); null = no minimum. Clamp the cart
|
|
1343
1352
|
* stepper's lower bound to this (GAP-48). */
|
|
@@ -1568,6 +1577,14 @@ interface CheckoutInput {
|
|
|
1568
1577
|
termsConsent?: boolean;
|
|
1569
1578
|
gdprConsent?: boolean;
|
|
1570
1579
|
newsletterOptIn?: boolean;
|
|
1580
|
+
/**
|
|
1581
|
+
* Consent to start delivering digital content (courses, downloads,
|
|
1582
|
+
* services) before the withdrawal period ends, which waives the right of
|
|
1583
|
+
* withdrawal (EU Directive 2011/83 art. 16(m)). Render the checkbox for carts
|
|
1584
|
+
* without physical goods (`cart.requiresShipping === false`). Stored on the
|
|
1585
|
+
* order consent record; it does not block the order. SDK 2.13.0.
|
|
1586
|
+
*/
|
|
1587
|
+
digitalDeliveryConsent?: boolean;
|
|
1571
1588
|
/**
|
|
1572
1589
|
* Consent to marketing SMS, from the optional checkout checkbox. Render it
|
|
1573
1590
|
* only when `ShopInfo.checkout.collectSmsConsent` is true; shops that do not
|
|
@@ -1715,6 +1732,18 @@ interface OrderStatusHistory {
|
|
|
1715
1732
|
changedBy?: string;
|
|
1716
1733
|
createdAt: number;
|
|
1717
1734
|
}
|
|
1735
|
+
/** Bank transfer details of an unpaid order (SDK 2.13.0). */
|
|
1736
|
+
interface OrderPaymentInstructions {
|
|
1737
|
+
accountNumber: string | null;
|
|
1738
|
+
iban: string | null;
|
|
1739
|
+
bic: string | null;
|
|
1740
|
+
bankName: string | null;
|
|
1741
|
+
/** Digits only, at most 10 (Czech banks); from the method pattern with the order number. */
|
|
1742
|
+
variableSymbol: string | null;
|
|
1743
|
+
amount: number;
|
|
1744
|
+
currency: string;
|
|
1745
|
+
instructions: string | null;
|
|
1746
|
+
}
|
|
1718
1747
|
interface OrderDetail extends OrderListItem {
|
|
1719
1748
|
/** Payment is recorded; access delivery will retry automatically. Do not place a duplicate order. */
|
|
1720
1749
|
contentDeliveryPending?: boolean;
|
|
@@ -1724,6 +1753,10 @@ interface OrderDetail extends OrderListItem {
|
|
|
1724
1753
|
shippingMethodName?: string | null;
|
|
1725
1754
|
/** Payment method in the order language (SDK 2.8.0). */
|
|
1726
1755
|
paymentMethodName?: string | null;
|
|
1756
|
+
/** Bank transfer details while the order is unpaid; render them on the
|
|
1757
|
+
* confirmation (account, IBAN, variable symbol, amount). Null for other
|
|
1758
|
+
* methods and paid orders. SDK 2.13.0. */
|
|
1759
|
+
paymentInstructions?: OrderPaymentInstructions | null;
|
|
1727
1760
|
/** Pickup point the customer chose, a public place (SDK 2.8.0). */
|
|
1728
1761
|
pickupPoint?: OrderPickupPoint | null;
|
|
1729
1762
|
/** Parcels the customer can follow (SDK 2.8.0). */
|
package/dist/react.d.ts
CHANGED
|
@@ -538,6 +538,8 @@ interface ProductVariant {
|
|
|
538
538
|
stockQuantity?: number | null;
|
|
539
539
|
/** "Only X left" for this variant — same contract as ProductListItem.lowStockRemaining. */
|
|
540
540
|
lowStockRemaining?: number | null;
|
|
541
|
+
/** Most pieces the cart accepts for this variant; null = uncapped or hidden stock. SDK 2.13.0. */
|
|
542
|
+
maxPurchasableQuantity?: number | null;
|
|
541
543
|
/**
|
|
542
544
|
* Cover image URL for the variant. Falls back to the parent product's
|
|
543
545
|
* cover when the variant has no photo of its own — see `imageIsInherited`.
|
|
@@ -893,6 +895,10 @@ interface ProductAssetGroup {
|
|
|
893
895
|
items: ProductAssetItem[];
|
|
894
896
|
}
|
|
895
897
|
interface ProductDetail extends ProductListItem {
|
|
898
|
+
/** Most pieces the cart accepts (stock, plus safetyStock under BACKORDER);
|
|
899
|
+
* null when uncapped or the shop hides stock counts. Cap the PDP quantity
|
|
900
|
+
* stepper with it, it is exactly the cart rule. SDK 2.13.0. */
|
|
901
|
+
maxPurchasableQuantity?: number | null;
|
|
896
902
|
longDescription?: string;
|
|
897
903
|
/**
|
|
898
904
|
* @deprecated Legacy per-listing images. Prefer `media`. Each carries its
|
|
@@ -1338,6 +1344,9 @@ interface CartItemProduct {
|
|
|
1338
1344
|
sku: string;
|
|
1339
1345
|
imageUrl?: string;
|
|
1340
1346
|
inStock: boolean;
|
|
1347
|
+
/** Pieces left for an "only X left" note on the cart line; null when the
|
|
1348
|
+
* shop does not track stock, hides the nudge or has plenty. SDK 2.13.0. */
|
|
1349
|
+
lowStockRemaining?: number | null;
|
|
1341
1350
|
currentPrice: number | null;
|
|
1342
1351
|
/** Minimum order quantity (units); null = no minimum. Clamp the cart
|
|
1343
1352
|
* stepper's lower bound to this (GAP-48). */
|
|
@@ -1568,6 +1577,14 @@ interface CheckoutInput {
|
|
|
1568
1577
|
termsConsent?: boolean;
|
|
1569
1578
|
gdprConsent?: boolean;
|
|
1570
1579
|
newsletterOptIn?: boolean;
|
|
1580
|
+
/**
|
|
1581
|
+
* Consent to start delivering digital content (courses, downloads,
|
|
1582
|
+
* services) before the withdrawal period ends, which waives the right of
|
|
1583
|
+
* withdrawal (EU Directive 2011/83 art. 16(m)). Render the checkbox for carts
|
|
1584
|
+
* without physical goods (`cart.requiresShipping === false`). Stored on the
|
|
1585
|
+
* order consent record; it does not block the order. SDK 2.13.0.
|
|
1586
|
+
*/
|
|
1587
|
+
digitalDeliveryConsent?: boolean;
|
|
1571
1588
|
/**
|
|
1572
1589
|
* Consent to marketing SMS, from the optional checkout checkbox. Render it
|
|
1573
1590
|
* only when `ShopInfo.checkout.collectSmsConsent` is true; shops that do not
|
|
@@ -1715,6 +1732,18 @@ interface OrderStatusHistory {
|
|
|
1715
1732
|
changedBy?: string;
|
|
1716
1733
|
createdAt: number;
|
|
1717
1734
|
}
|
|
1735
|
+
/** Bank transfer details of an unpaid order (SDK 2.13.0). */
|
|
1736
|
+
interface OrderPaymentInstructions {
|
|
1737
|
+
accountNumber: string | null;
|
|
1738
|
+
iban: string | null;
|
|
1739
|
+
bic: string | null;
|
|
1740
|
+
bankName: string | null;
|
|
1741
|
+
/** Digits only, at most 10 (Czech banks); from the method pattern with the order number. */
|
|
1742
|
+
variableSymbol: string | null;
|
|
1743
|
+
amount: number;
|
|
1744
|
+
currency: string;
|
|
1745
|
+
instructions: string | null;
|
|
1746
|
+
}
|
|
1718
1747
|
interface OrderDetail extends OrderListItem {
|
|
1719
1748
|
/** Payment is recorded; access delivery will retry automatically. Do not place a duplicate order. */
|
|
1720
1749
|
contentDeliveryPending?: boolean;
|
|
@@ -1724,6 +1753,10 @@ interface OrderDetail extends OrderListItem {
|
|
|
1724
1753
|
shippingMethodName?: string | null;
|
|
1725
1754
|
/** Payment method in the order language (SDK 2.8.0). */
|
|
1726
1755
|
paymentMethodName?: string | null;
|
|
1756
|
+
/** Bank transfer details while the order is unpaid; render them on the
|
|
1757
|
+
* confirmation (account, IBAN, variable symbol, amount). Null for other
|
|
1758
|
+
* methods and paid orders. SDK 2.13.0. */
|
|
1759
|
+
paymentInstructions?: OrderPaymentInstructions | null;
|
|
1727
1760
|
/** Pickup point the customer chose, a public place (SDK 2.8.0). */
|
|
1728
1761
|
pickupPoint?: OrderPickupPoint | null;
|
|
1729
1762
|
/** Parcels the customer can follow (SDK 2.8.0). */
|