@behio/storefront-sdk 0.30.0 → 0.31.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-CJ_CoUIh.d.mts → client-D1GZSa-N.d.mts} +55 -2
- package/dist/{client-CJ_CoUIh.d.ts → client-D1GZSa-N.d.ts} +55 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/next.d.mts +1 -1
- package/dist/next.d.ts +1 -1
- package/dist/react.d.mts +2 -2
- package/dist/react.d.ts +2 -2
- package/package.json +3 -3
|
@@ -76,8 +76,28 @@ interface CheckoutSettings {
|
|
|
76
76
|
minItemsInCart: number;
|
|
77
77
|
/** Maximum quantity of a single product per order, or null when unlimited. */
|
|
78
78
|
maxItemsPerProduct: number | null;
|
|
79
|
-
/**
|
|
79
|
+
/**
|
|
80
|
+
* How sold-out products behave. The SERVER enforces the buying rules; the
|
|
81
|
+
* template mirrors them in UX:
|
|
82
|
+
* - `HIDE`: sold-out products are already filtered out of browse/search/
|
|
83
|
+
* featured responses server-side; PDP direct links still resolve — render
|
|
84
|
+
* them as sold out with the buy button disabled.
|
|
85
|
+
* - `SHOW_SOLD_OUT`: sold-out products render with a "Vyprodáno" state and
|
|
86
|
+
* a disabled buy button; the API rejects over-stock adds with a 400.
|
|
87
|
+
* - `BACKORDER`: out-of-stock products stay purchasable (any quantity);
|
|
88
|
+
* render "Na objednávku" instead of disabling the button.
|
|
89
|
+
* For HIDE/SHOW_SOLD_OUT cap quantity steppers at `stockQuantity` — the
|
|
90
|
+
* cart API 400s on anything above it.
|
|
91
|
+
*/
|
|
80
92
|
stockBehavior: StockBehavior;
|
|
93
|
+
/**
|
|
94
|
+
* Merchant enabled the "only X left" nudge. When true, products whose stock
|
|
95
|
+
* is within `lowStockThreshold` carry `lowStockRemaining` — render the badge
|
|
96
|
+
* from that field alone (it is null everywhere else).
|
|
97
|
+
*/
|
|
98
|
+
showLowStock: boolean;
|
|
99
|
+
/** Stock level at (and below) which the low-stock nudge shows. */
|
|
100
|
+
lowStockThreshold: number;
|
|
81
101
|
/** Google Places address autocomplete is enabled; mount the UX when true. */
|
|
82
102
|
addressAutocompleteEnabled: boolean;
|
|
83
103
|
}
|
|
@@ -218,6 +238,8 @@ interface ProductVariant {
|
|
|
218
238
|
price: ProductPrice | null;
|
|
219
239
|
inStock: boolean;
|
|
220
240
|
stockQuantity?: number;
|
|
241
|
+
/** "Only X left" for this variant — same contract as ProductListItem.lowStockRemaining. */
|
|
242
|
+
lowStockRemaining?: number | null;
|
|
221
243
|
/**
|
|
222
244
|
* Cover image URL for the variant. Falls back to the parent product's
|
|
223
245
|
* cover when the variant has no photo of its own — see `imageIsInherited`.
|
|
@@ -236,6 +258,28 @@ interface ProductLabel {
|
|
|
236
258
|
name: string;
|
|
237
259
|
color?: string;
|
|
238
260
|
}
|
|
261
|
+
/**
|
|
262
|
+
* Resolved availability status of a product. Either a merchant preset
|
|
263
|
+
* ("skladem", "na objednávku", "předobjednávka", custom) or, when the product
|
|
264
|
+
* has none assigned, a status DERIVED from stock server-side. Render `label`
|
|
265
|
+
* as-is — it is already localized to the requested locale.
|
|
266
|
+
*/
|
|
267
|
+
interface ProductAvailability {
|
|
268
|
+
/**
|
|
269
|
+
* Stable machine code for styling hooks: a merchant preset slug (e.g.
|
|
270
|
+
* "preorder") or the derived `"in-stock"` / `"sold-out"`.
|
|
271
|
+
*/
|
|
272
|
+
code: string;
|
|
273
|
+
/** Localized display label (requested locale → shop default → slug). */
|
|
274
|
+
label: string;
|
|
275
|
+
/** Optional merchant-configured hex badge color (e.g. "#f59e0b"). */
|
|
276
|
+
color?: string | null;
|
|
277
|
+
/**
|
|
278
|
+
* "Available from" date (epoch ms) for preorder / on-order style states.
|
|
279
|
+
* Render as "Skladem od 20. 7." when present; null when not scheduled.
|
|
280
|
+
*/
|
|
281
|
+
restockAt?: number | null;
|
|
282
|
+
}
|
|
239
283
|
interface ProductListItem {
|
|
240
284
|
id: string;
|
|
241
285
|
slug: string;
|
|
@@ -247,6 +291,15 @@ interface ProductListItem {
|
|
|
247
291
|
price: ProductPrice | null;
|
|
248
292
|
inStock: boolean;
|
|
249
293
|
stockQuantity?: number;
|
|
294
|
+
/**
|
|
295
|
+
* "Zbývá posledních X kusů" nudge, computed SERVER-side. Non-null ONLY when
|
|
296
|
+
* the merchant enabled the low-stock indicator AND 0 < stock <= threshold;
|
|
297
|
+
* the value is the exact remaining quantity. Render the badge whenever this
|
|
298
|
+
* is a number — no client-side threshold math needed.
|
|
299
|
+
*/
|
|
300
|
+
lowStockRemaining?: number | null;
|
|
301
|
+
/** Resolved availability status (merchant preset or derived from stock). */
|
|
302
|
+
availability: ProductAvailability;
|
|
250
303
|
/** Cover image of the listing. The API returns an object (url + alt + order), never a bare string. */
|
|
251
304
|
image?: {
|
|
252
305
|
url: string;
|
|
@@ -1886,4 +1939,4 @@ declare class NewsletterModule {
|
|
|
1886
1939
|
unsubscribe(email: string): Promise<SdkResult<NewsletterUnsubscribeResult>>;
|
|
1887
1940
|
}
|
|
1888
1941
|
|
|
1889
|
-
export { type BundleItem as $, type AddressSuggestion as A, type BehioStorefrontConfig as B, type Category as C, type ProductReviewsResponse as D, type SubmitReviewInput as E, type FilterField as F, type GiftCardBalance as G, type ReturnableOrder as H, type ReturnStatus as I, type ReturnRequest as J, type SubmitReturnInput as K, type LoyaltySummary as L, type Menu as M, type NewsletterSubscribeResult as N, type OrderListItem as O, type ProductsQuery as P, type CookieConsent as Q, type RegisterInput as R, type ShopInfo as S, type CookieConsentInput as T, type QuoteRequest as U, type SubmitQuoteInput as V, type WishlistItem as W, type BackInStockSubscription as X, type AddToCartInput as Y, type AuthTokens as Z, BehioApiError as _, BehioStorefront as a, type
|
|
1942
|
+
export { type BundleItem as $, type AddressSuggestion as A, type BehioStorefrontConfig as B, type Category as C, type ProductReviewsResponse as D, type SubmitReviewInput as E, type FilterField as F, type GiftCardBalance as G, type ReturnableOrder as H, type ReturnStatus as I, type ReturnRequest as J, type SubmitReturnInput as K, type LoyaltySummary as L, type Menu as M, type NewsletterSubscribeResult as N, type OrderListItem as O, type ProductsQuery as P, type CookieConsent as Q, type RegisterInput as R, type ShopInfo as S, type CookieConsentInput as T, type QuoteRequest as U, type SubmitQuoteInput as V, type WishlistItem as W, type BackInStockSubscription as X, type AddToCartInput as Y, type AuthTokens as Z, BehioApiError as _, BehioStorefront as a, type ShippingQuoteInput as a$, type CartDiscount as a0, type CartItem as a1, type CheckoutAddress as a2, type FulfillmentStatus as a3, type LoginInput as a4, type MessageResponse as a5, type OrderItem as a6, type OrderStatus as a7, type PaymentStatus as a8, type ProductPrice as a9, type MenuItemType as aA, type NewsletterOptInDefault as aB, type OrderStatusHistory as aC, OrderStatuses as aD, type OrderTracking as aE, type PageAttachment as aF, PaymentStatuses as aG, type PickupPointHours as aH, type ProductAvailability as aI, type ProductMedia as aJ, type ProductMediaVariant as aK, ProductSort as aL, type ProductSortValue as aM, type ProductVolumePrice as aN, type QuoteItem as aO, type RegisterResult as aP, type RequestInterceptor as aQ, type RequestInterceptorConfig as aR, type ResponseInterceptor as aS, type ResponseInterceptorData as aT, type ReturnRequestItem as aU, type ReturnStatusItem as aV, type ReturnableOrderItem as aW, type SdkError as aX, type SdkResult as aY, type ShippingMethodSummary as aZ, type ShippingQuote as a_, type ProductReview as aa, type ProductVariant as ab, type AddressType as ac, AddressTypes as ad, type BadgeTone as ae, type BehioErrorCode as af, type BehioEventHandler as ag, type BehioEventType as ah, BehioNetworkError as ai, type CartBundleLine as aj, type CartBundleLineItem as ak, type CartItemProduct as al, type CartPromotion as am, type CheckoutPaymentMethod as an, type CheckoutSettings as ao, type DataGroupFieldType as ap, FulfillmentStatuses as aq, type GiftCardSummary as ar, type LoyaltyBalance as as, type LoyaltyNextTier as at, type LoyaltyProgram as au, type LoyaltyTier as av, type LoyaltyTierPerks as aw, type LoyaltyTransaction as ax, type MenuItem as ay, type MenuItemRef as az, type PaginatedResponse as b, type ShopScript as b0, type ShopScriptPlacement as b1, type ShopScriptType as b2, type StockBehavior as b3, err as b4, ok as b5, toSdkError as b6, type ProductListItem as c, type ProductDetail as d, type CategoryDetail as e, type ProductLabel as f, type Cart as g, type CustomerProfile as h, type CustomerAddress as i, type AddressDetail as j, type PickupPointsInput as k, type PickupPoint as l, type NewsletterSubscribeInput as m, type NewsletterUnsubscribeResult as n, type OrderDetail as o, type OrderAccessRequestResponse as p, type OrderAccessVerifyResponse as q, type CheckoutInput as r, type PageDetail as s, type Page as t, type ShopScripts as u, type ShopSeo as v, type Bundle as w, type ProductGroup as x, type CrossSellItem as y, type ActivePromotion as z };
|
|
@@ -76,8 +76,28 @@ interface CheckoutSettings {
|
|
|
76
76
|
minItemsInCart: number;
|
|
77
77
|
/** Maximum quantity of a single product per order, or null when unlimited. */
|
|
78
78
|
maxItemsPerProduct: number | null;
|
|
79
|
-
/**
|
|
79
|
+
/**
|
|
80
|
+
* How sold-out products behave. The SERVER enforces the buying rules; the
|
|
81
|
+
* template mirrors them in UX:
|
|
82
|
+
* - `HIDE`: sold-out products are already filtered out of browse/search/
|
|
83
|
+
* featured responses server-side; PDP direct links still resolve — render
|
|
84
|
+
* them as sold out with the buy button disabled.
|
|
85
|
+
* - `SHOW_SOLD_OUT`: sold-out products render with a "Vyprodáno" state and
|
|
86
|
+
* a disabled buy button; the API rejects over-stock adds with a 400.
|
|
87
|
+
* - `BACKORDER`: out-of-stock products stay purchasable (any quantity);
|
|
88
|
+
* render "Na objednávku" instead of disabling the button.
|
|
89
|
+
* For HIDE/SHOW_SOLD_OUT cap quantity steppers at `stockQuantity` — the
|
|
90
|
+
* cart API 400s on anything above it.
|
|
91
|
+
*/
|
|
80
92
|
stockBehavior: StockBehavior;
|
|
93
|
+
/**
|
|
94
|
+
* Merchant enabled the "only X left" nudge. When true, products whose stock
|
|
95
|
+
* is within `lowStockThreshold` carry `lowStockRemaining` — render the badge
|
|
96
|
+
* from that field alone (it is null everywhere else).
|
|
97
|
+
*/
|
|
98
|
+
showLowStock: boolean;
|
|
99
|
+
/** Stock level at (and below) which the low-stock nudge shows. */
|
|
100
|
+
lowStockThreshold: number;
|
|
81
101
|
/** Google Places address autocomplete is enabled; mount the UX when true. */
|
|
82
102
|
addressAutocompleteEnabled: boolean;
|
|
83
103
|
}
|
|
@@ -218,6 +238,8 @@ interface ProductVariant {
|
|
|
218
238
|
price: ProductPrice | null;
|
|
219
239
|
inStock: boolean;
|
|
220
240
|
stockQuantity?: number;
|
|
241
|
+
/** "Only X left" for this variant — same contract as ProductListItem.lowStockRemaining. */
|
|
242
|
+
lowStockRemaining?: number | null;
|
|
221
243
|
/**
|
|
222
244
|
* Cover image URL for the variant. Falls back to the parent product's
|
|
223
245
|
* cover when the variant has no photo of its own — see `imageIsInherited`.
|
|
@@ -236,6 +258,28 @@ interface ProductLabel {
|
|
|
236
258
|
name: string;
|
|
237
259
|
color?: string;
|
|
238
260
|
}
|
|
261
|
+
/**
|
|
262
|
+
* Resolved availability status of a product. Either a merchant preset
|
|
263
|
+
* ("skladem", "na objednávku", "předobjednávka", custom) or, when the product
|
|
264
|
+
* has none assigned, a status DERIVED from stock server-side. Render `label`
|
|
265
|
+
* as-is — it is already localized to the requested locale.
|
|
266
|
+
*/
|
|
267
|
+
interface ProductAvailability {
|
|
268
|
+
/**
|
|
269
|
+
* Stable machine code for styling hooks: a merchant preset slug (e.g.
|
|
270
|
+
* "preorder") or the derived `"in-stock"` / `"sold-out"`.
|
|
271
|
+
*/
|
|
272
|
+
code: string;
|
|
273
|
+
/** Localized display label (requested locale → shop default → slug). */
|
|
274
|
+
label: string;
|
|
275
|
+
/** Optional merchant-configured hex badge color (e.g. "#f59e0b"). */
|
|
276
|
+
color?: string | null;
|
|
277
|
+
/**
|
|
278
|
+
* "Available from" date (epoch ms) for preorder / on-order style states.
|
|
279
|
+
* Render as "Skladem od 20. 7." when present; null when not scheduled.
|
|
280
|
+
*/
|
|
281
|
+
restockAt?: number | null;
|
|
282
|
+
}
|
|
239
283
|
interface ProductListItem {
|
|
240
284
|
id: string;
|
|
241
285
|
slug: string;
|
|
@@ -247,6 +291,15 @@ interface ProductListItem {
|
|
|
247
291
|
price: ProductPrice | null;
|
|
248
292
|
inStock: boolean;
|
|
249
293
|
stockQuantity?: number;
|
|
294
|
+
/**
|
|
295
|
+
* "Zbývá posledních X kusů" nudge, computed SERVER-side. Non-null ONLY when
|
|
296
|
+
* the merchant enabled the low-stock indicator AND 0 < stock <= threshold;
|
|
297
|
+
* the value is the exact remaining quantity. Render the badge whenever this
|
|
298
|
+
* is a number — no client-side threshold math needed.
|
|
299
|
+
*/
|
|
300
|
+
lowStockRemaining?: number | null;
|
|
301
|
+
/** Resolved availability status (merchant preset or derived from stock). */
|
|
302
|
+
availability: ProductAvailability;
|
|
250
303
|
/** Cover image of the listing. The API returns an object (url + alt + order), never a bare string. */
|
|
251
304
|
image?: {
|
|
252
305
|
url: string;
|
|
@@ -1886,4 +1939,4 @@ declare class NewsletterModule {
|
|
|
1886
1939
|
unsubscribe(email: string): Promise<SdkResult<NewsletterUnsubscribeResult>>;
|
|
1887
1940
|
}
|
|
1888
1941
|
|
|
1889
|
-
export { type BundleItem as $, type AddressSuggestion as A, type BehioStorefrontConfig as B, type Category as C, type ProductReviewsResponse as D, type SubmitReviewInput as E, type FilterField as F, type GiftCardBalance as G, type ReturnableOrder as H, type ReturnStatus as I, type ReturnRequest as J, type SubmitReturnInput as K, type LoyaltySummary as L, type Menu as M, type NewsletterSubscribeResult as N, type OrderListItem as O, type ProductsQuery as P, type CookieConsent as Q, type RegisterInput as R, type ShopInfo as S, type CookieConsentInput as T, type QuoteRequest as U, type SubmitQuoteInput as V, type WishlistItem as W, type BackInStockSubscription as X, type AddToCartInput as Y, type AuthTokens as Z, BehioApiError as _, BehioStorefront as a, type
|
|
1942
|
+
export { type BundleItem as $, type AddressSuggestion as A, type BehioStorefrontConfig as B, type Category as C, type ProductReviewsResponse as D, type SubmitReviewInput as E, type FilterField as F, type GiftCardBalance as G, type ReturnableOrder as H, type ReturnStatus as I, type ReturnRequest as J, type SubmitReturnInput as K, type LoyaltySummary as L, type Menu as M, type NewsletterSubscribeResult as N, type OrderListItem as O, type ProductsQuery as P, type CookieConsent as Q, type RegisterInput as R, type ShopInfo as S, type CookieConsentInput as T, type QuoteRequest as U, type SubmitQuoteInput as V, type WishlistItem as W, type BackInStockSubscription as X, type AddToCartInput as Y, type AuthTokens as Z, BehioApiError as _, BehioStorefront as a, type ShippingQuoteInput as a$, type CartDiscount as a0, type CartItem as a1, type CheckoutAddress as a2, type FulfillmentStatus as a3, type LoginInput as a4, type MessageResponse as a5, type OrderItem as a6, type OrderStatus as a7, type PaymentStatus as a8, type ProductPrice as a9, type MenuItemType as aA, type NewsletterOptInDefault as aB, type OrderStatusHistory as aC, OrderStatuses as aD, type OrderTracking as aE, type PageAttachment as aF, PaymentStatuses as aG, type PickupPointHours as aH, type ProductAvailability as aI, type ProductMedia as aJ, type ProductMediaVariant as aK, ProductSort as aL, type ProductSortValue as aM, type ProductVolumePrice as aN, type QuoteItem as aO, type RegisterResult as aP, type RequestInterceptor as aQ, type RequestInterceptorConfig as aR, type ResponseInterceptor as aS, type ResponseInterceptorData as aT, type ReturnRequestItem as aU, type ReturnStatusItem as aV, type ReturnableOrderItem as aW, type SdkError as aX, type SdkResult as aY, type ShippingMethodSummary as aZ, type ShippingQuote as a_, type ProductReview as aa, type ProductVariant as ab, type AddressType as ac, AddressTypes as ad, type BadgeTone as ae, type BehioErrorCode as af, type BehioEventHandler as ag, type BehioEventType as ah, BehioNetworkError as ai, type CartBundleLine as aj, type CartBundleLineItem as ak, type CartItemProduct as al, type CartPromotion as am, type CheckoutPaymentMethod as an, type CheckoutSettings as ao, type DataGroupFieldType as ap, FulfillmentStatuses as aq, type GiftCardSummary as ar, type LoyaltyBalance as as, type LoyaltyNextTier as at, type LoyaltyProgram as au, type LoyaltyTier as av, type LoyaltyTierPerks as aw, type LoyaltyTransaction as ax, type MenuItem as ay, type MenuItemRef as az, type PaginatedResponse as b, type ShopScript as b0, type ShopScriptPlacement as b1, type ShopScriptType as b2, type StockBehavior as b3, err as b4, ok as b5, toSdkError as b6, type ProductListItem as c, type ProductDetail as d, type CategoryDetail as e, type ProductLabel as f, type Cart as g, type CustomerProfile as h, type CustomerAddress as i, type AddressDetail as j, type PickupPointsInput as k, type PickupPoint as l, type NewsletterSubscribeInput as m, type NewsletterUnsubscribeResult as n, type OrderDetail as o, type OrderAccessRequestResponse as p, type OrderAccessVerifyResponse as q, type CheckoutInput as r, type PageDetail as s, type Page as t, type ShopScripts as u, type ShopSeo as v, type Bundle as w, type ProductGroup as x, type CrossSellItem as y, type ActivePromotion as z };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { z as ActivePromotion, Y as AddToCartInput, j as AddressDetail, A as AddressSuggestion, ac as AddressType, ad as AddressTypes, Z as AuthTokens, X as BackInStockSubscription, ae as BadgeTone, _ as BehioApiError, af as BehioErrorCode, ag as BehioEventHandler, ah as BehioEventType, ai as BehioNetworkError, a as BehioStorefront, B as BehioStorefrontConfig, w as Bundle, $ as BundleItem, g as Cart, aj as CartBundleLine, ak as CartBundleLineItem, a0 as CartDiscount, a1 as CartItem, al as CartItemProduct, am as CartPromotion, C as Category, e as CategoryDetail, a2 as CheckoutAddress, r as CheckoutInput, an as CheckoutPaymentMethod, ao as CheckoutSettings, Q as CookieConsent, T as CookieConsentInput, y as CrossSellItem, i as CustomerAddress, h as CustomerProfile, ap as DataGroupFieldType, F as FilterField, a3 as FulfillmentStatus, aq as FulfillmentStatuses, G as GiftCardBalance, ar as GiftCardSummary, a4 as LoginInput, as as LoyaltyBalance, at as LoyaltyNextTier, au as LoyaltyProgram, L as LoyaltySummary, av as LoyaltyTier, aw as LoyaltyTierPerks, ax as LoyaltyTransaction, M as Menu, ay as MenuItem, az as MenuItemRef, aA as MenuItemType, a5 as MessageResponse, aB as NewsletterOptInDefault, m as NewsletterSubscribeInput, N as NewsletterSubscribeResult, n as NewsletterUnsubscribeResult, p as OrderAccessRequestResponse, q as OrderAccessVerifyResponse, o as OrderDetail, a6 as OrderItem, O as OrderListItem, a7 as OrderStatus, aC as OrderStatusHistory, aD as OrderStatuses, aE as OrderTracking, t as Page, aF as PageAttachment, s as PageDetail, b as PaginatedResponse, a8 as PaymentStatus, aG as PaymentStatuses, l as PickupPoint, aH as PickupPointHours, k as PickupPointsInput, d as ProductDetail, x as ProductGroup, f as ProductLabel, c as ProductListItem,
|
|
1
|
+
export { z as ActivePromotion, Y as AddToCartInput, j as AddressDetail, A as AddressSuggestion, ac as AddressType, ad as AddressTypes, Z as AuthTokens, X as BackInStockSubscription, ae as BadgeTone, _ as BehioApiError, af as BehioErrorCode, ag as BehioEventHandler, ah as BehioEventType, ai as BehioNetworkError, a as BehioStorefront, B as BehioStorefrontConfig, w as Bundle, $ as BundleItem, g as Cart, aj as CartBundleLine, ak as CartBundleLineItem, a0 as CartDiscount, a1 as CartItem, al as CartItemProduct, am as CartPromotion, C as Category, e as CategoryDetail, a2 as CheckoutAddress, r as CheckoutInput, an as CheckoutPaymentMethod, ao as CheckoutSettings, Q as CookieConsent, T as CookieConsentInput, y as CrossSellItem, i as CustomerAddress, h as CustomerProfile, ap as DataGroupFieldType, F as FilterField, a3 as FulfillmentStatus, aq as FulfillmentStatuses, G as GiftCardBalance, ar as GiftCardSummary, a4 as LoginInput, as as LoyaltyBalance, at as LoyaltyNextTier, au as LoyaltyProgram, L as LoyaltySummary, av as LoyaltyTier, aw as LoyaltyTierPerks, ax as LoyaltyTransaction, M as Menu, ay as MenuItem, az as MenuItemRef, aA as MenuItemType, a5 as MessageResponse, aB as NewsletterOptInDefault, m as NewsletterSubscribeInput, N as NewsletterSubscribeResult, n as NewsletterUnsubscribeResult, p as OrderAccessRequestResponse, q as OrderAccessVerifyResponse, o as OrderDetail, a6 as OrderItem, O as OrderListItem, a7 as OrderStatus, aC as OrderStatusHistory, aD as OrderStatuses, aE as OrderTracking, t as Page, aF as PageAttachment, s as PageDetail, b as PaginatedResponse, a8 as PaymentStatus, aG as PaymentStatuses, l as PickupPoint, aH as PickupPointHours, k as PickupPointsInput, aI as ProductAvailability, d as ProductDetail, x as ProductGroup, f as ProductLabel, c as ProductListItem, aJ as ProductMedia, aK as ProductMediaVariant, a9 as ProductPrice, aa as ProductReview, D as ProductReviewsResponse, aL as ProductSort, aM as ProductSortValue, ab as ProductVariant, aN as ProductVolumePrice, P as ProductsQuery, aO as QuoteItem, U as QuoteRequest, R as RegisterInput, aP as RegisterResult, aQ as RequestInterceptor, aR as RequestInterceptorConfig, aS as ResponseInterceptor, aT as ResponseInterceptorData, J as ReturnRequest, aU as ReturnRequestItem, I as ReturnStatus, aV as ReturnStatusItem, H as ReturnableOrder, aW as ReturnableOrderItem, aX as SdkError, aY as SdkResult, aZ as ShippingMethodSummary, a_ as ShippingQuote, a$ as ShippingQuoteInput, S as ShopInfo, b0 as ShopScript, b1 as ShopScriptPlacement, b2 as ShopScriptType, u as ShopScripts, v as ShopSeo, b3 as StockBehavior, V as SubmitQuoteInput, K as SubmitReturnInput, E as SubmitReviewInput, W as WishlistItem, b4 as err, b5 as ok, b6 as toSdkError } from './client-D1GZSa-N.mjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Format a price amount with currency using Intl.NumberFormat.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { z as ActivePromotion, Y as AddToCartInput, j as AddressDetail, A as AddressSuggestion, ac as AddressType, ad as AddressTypes, Z as AuthTokens, X as BackInStockSubscription, ae as BadgeTone, _ as BehioApiError, af as BehioErrorCode, ag as BehioEventHandler, ah as BehioEventType, ai as BehioNetworkError, a as BehioStorefront, B as BehioStorefrontConfig, w as Bundle, $ as BundleItem, g as Cart, aj as CartBundleLine, ak as CartBundleLineItem, a0 as CartDiscount, a1 as CartItem, al as CartItemProduct, am as CartPromotion, C as Category, e as CategoryDetail, a2 as CheckoutAddress, r as CheckoutInput, an as CheckoutPaymentMethod, ao as CheckoutSettings, Q as CookieConsent, T as CookieConsentInput, y as CrossSellItem, i as CustomerAddress, h as CustomerProfile, ap as DataGroupFieldType, F as FilterField, a3 as FulfillmentStatus, aq as FulfillmentStatuses, G as GiftCardBalance, ar as GiftCardSummary, a4 as LoginInput, as as LoyaltyBalance, at as LoyaltyNextTier, au as LoyaltyProgram, L as LoyaltySummary, av as LoyaltyTier, aw as LoyaltyTierPerks, ax as LoyaltyTransaction, M as Menu, ay as MenuItem, az as MenuItemRef, aA as MenuItemType, a5 as MessageResponse, aB as NewsletterOptInDefault, m as NewsletterSubscribeInput, N as NewsletterSubscribeResult, n as NewsletterUnsubscribeResult, p as OrderAccessRequestResponse, q as OrderAccessVerifyResponse, o as OrderDetail, a6 as OrderItem, O as OrderListItem, a7 as OrderStatus, aC as OrderStatusHistory, aD as OrderStatuses, aE as OrderTracking, t as Page, aF as PageAttachment, s as PageDetail, b as PaginatedResponse, a8 as PaymentStatus, aG as PaymentStatuses, l as PickupPoint, aH as PickupPointHours, k as PickupPointsInput, d as ProductDetail, x as ProductGroup, f as ProductLabel, c as ProductListItem,
|
|
1
|
+
export { z as ActivePromotion, Y as AddToCartInput, j as AddressDetail, A as AddressSuggestion, ac as AddressType, ad as AddressTypes, Z as AuthTokens, X as BackInStockSubscription, ae as BadgeTone, _ as BehioApiError, af as BehioErrorCode, ag as BehioEventHandler, ah as BehioEventType, ai as BehioNetworkError, a as BehioStorefront, B as BehioStorefrontConfig, w as Bundle, $ as BundleItem, g as Cart, aj as CartBundleLine, ak as CartBundleLineItem, a0 as CartDiscount, a1 as CartItem, al as CartItemProduct, am as CartPromotion, C as Category, e as CategoryDetail, a2 as CheckoutAddress, r as CheckoutInput, an as CheckoutPaymentMethod, ao as CheckoutSettings, Q as CookieConsent, T as CookieConsentInput, y as CrossSellItem, i as CustomerAddress, h as CustomerProfile, ap as DataGroupFieldType, F as FilterField, a3 as FulfillmentStatus, aq as FulfillmentStatuses, G as GiftCardBalance, ar as GiftCardSummary, a4 as LoginInput, as as LoyaltyBalance, at as LoyaltyNextTier, au as LoyaltyProgram, L as LoyaltySummary, av as LoyaltyTier, aw as LoyaltyTierPerks, ax as LoyaltyTransaction, M as Menu, ay as MenuItem, az as MenuItemRef, aA as MenuItemType, a5 as MessageResponse, aB as NewsletterOptInDefault, m as NewsletterSubscribeInput, N as NewsletterSubscribeResult, n as NewsletterUnsubscribeResult, p as OrderAccessRequestResponse, q as OrderAccessVerifyResponse, o as OrderDetail, a6 as OrderItem, O as OrderListItem, a7 as OrderStatus, aC as OrderStatusHistory, aD as OrderStatuses, aE as OrderTracking, t as Page, aF as PageAttachment, s as PageDetail, b as PaginatedResponse, a8 as PaymentStatus, aG as PaymentStatuses, l as PickupPoint, aH as PickupPointHours, k as PickupPointsInput, aI as ProductAvailability, d as ProductDetail, x as ProductGroup, f as ProductLabel, c as ProductListItem, aJ as ProductMedia, aK as ProductMediaVariant, a9 as ProductPrice, aa as ProductReview, D as ProductReviewsResponse, aL as ProductSort, aM as ProductSortValue, ab as ProductVariant, aN as ProductVolumePrice, P as ProductsQuery, aO as QuoteItem, U as QuoteRequest, R as RegisterInput, aP as RegisterResult, aQ as RequestInterceptor, aR as RequestInterceptorConfig, aS as ResponseInterceptor, aT as ResponseInterceptorData, J as ReturnRequest, aU as ReturnRequestItem, I as ReturnStatus, aV as ReturnStatusItem, H as ReturnableOrder, aW as ReturnableOrderItem, aX as SdkError, aY as SdkResult, aZ as ShippingMethodSummary, a_ as ShippingQuote, a$ as ShippingQuoteInput, S as ShopInfo, b0 as ShopScript, b1 as ShopScriptPlacement, b2 as ShopScriptType, u as ShopScripts, v as ShopSeo, b3 as StockBehavior, V as SubmitQuoteInput, K as SubmitReturnInput, E as SubmitReviewInput, W as WishlistItem, b4 as err, b5 as ok, b6 as toSdkError } from './client-D1GZSa-N.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Format a price amount with currency using Intl.NumberFormat.
|
package/dist/next.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BehioStorefrontConfig, a as BehioStorefront } from './client-
|
|
1
|
+
import { B as BehioStorefrontConfig, a as BehioStorefront } from './client-D1GZSa-N.mjs';
|
|
2
2
|
|
|
3
3
|
interface GetBehioOptions extends Partial<BehioStorefrontConfig> {
|
|
4
4
|
/** Override the cart session cookie name (default: "behio_cart_session"). */
|
package/dist/next.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BehioStorefrontConfig, a as BehioStorefront } from './client-
|
|
1
|
+
import { B as BehioStorefrontConfig, a as BehioStorefront } from './client-D1GZSa-N.js';
|
|
2
2
|
|
|
3
3
|
interface GetBehioOptions extends Partial<BehioStorefrontConfig> {
|
|
4
4
|
/** Override the cart session cookie name (default: "behio_cart_session"). */
|
package/dist/react.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
3
3
|
import { QueryClient } from '@tanstack/react-query';
|
|
4
|
-
import { a as BehioStorefront, P as ProductsQuery, b as PaginatedResponse, c as ProductListItem, d as ProductDetail, C as Category, e as CategoryDetail, M as Menu, f as ProductLabel, F as FilterField, g as Cart, h as CustomerProfile, R as RegisterInput, i as CustomerAddress, A as AddressSuggestion, j as AddressDetail, L as LoyaltySummary, k as PickupPointsInput, l as PickupPoint, N as NewsletterSubscribeResult, m as NewsletterSubscribeInput, n as NewsletterUnsubscribeResult, O as OrderListItem, o as OrderDetail, p as OrderAccessRequestResponse, q as OrderAccessVerifyResponse, r as CheckoutInput, s as PageDetail, t as Page, S as ShopInfo, u as ShopScripts, v as ShopSeo, w as Bundle, x as ProductGroup, y as CrossSellItem, z as ActivePromotion, G as GiftCardBalance, W as WishlistItem, D as ProductReviewsResponse, E as SubmitReviewInput, H as ReturnableOrder, I as ReturnStatus, J as ReturnRequest, K as SubmitReturnInput, Q as CookieConsent, T as CookieConsentInput, U as QuoteRequest, V as SubmitQuoteInput, X as BackInStockSubscription } from './client-
|
|
5
|
-
export { Y as AddToCartInput, Z as AuthTokens, _ as BehioApiError, $ as BundleItem, a0 as CartDiscount, a1 as CartItem, a2 as CheckoutAddress, a3 as FulfillmentStatus, a4 as LoginInput, a5 as MessageResponse, a6 as OrderItem, a7 as OrderStatus, a8 as PaymentStatus, a9 as ProductPrice, aa as ProductReview, ab as ProductVariant } from './client-
|
|
4
|
+
import { a as BehioStorefront, P as ProductsQuery, b as PaginatedResponse, c as ProductListItem, d as ProductDetail, C as Category, e as CategoryDetail, M as Menu, f as ProductLabel, F as FilterField, g as Cart, h as CustomerProfile, R as RegisterInput, i as CustomerAddress, A as AddressSuggestion, j as AddressDetail, L as LoyaltySummary, k as PickupPointsInput, l as PickupPoint, N as NewsletterSubscribeResult, m as NewsletterSubscribeInput, n as NewsletterUnsubscribeResult, O as OrderListItem, o as OrderDetail, p as OrderAccessRequestResponse, q as OrderAccessVerifyResponse, r as CheckoutInput, s as PageDetail, t as Page, S as ShopInfo, u as ShopScripts, v as ShopSeo, w as Bundle, x as ProductGroup, y as CrossSellItem, z as ActivePromotion, G as GiftCardBalance, W as WishlistItem, D as ProductReviewsResponse, E as SubmitReviewInput, H as ReturnableOrder, I as ReturnStatus, J as ReturnRequest, K as SubmitReturnInput, Q as CookieConsent, T as CookieConsentInput, U as QuoteRequest, V as SubmitQuoteInput, X as BackInStockSubscription } from './client-D1GZSa-N.mjs';
|
|
5
|
+
export { Y as AddToCartInput, Z as AuthTokens, _ as BehioApiError, $ as BundleItem, a0 as CartDiscount, a1 as CartItem, a2 as CheckoutAddress, a3 as FulfillmentStatus, a4 as LoginInput, a5 as MessageResponse, a6 as OrderItem, a7 as OrderStatus, a8 as PaymentStatus, a9 as ProductPrice, aa as ProductReview, ab as ProductVariant } from './client-D1GZSa-N.mjs';
|
|
6
6
|
import * as _tanstack_query_core from '@tanstack/query-core';
|
|
7
7
|
export { EcommerceEventName, EcommerceItem, EcommercePayload, formatPrice, trackEcommerceEvent } from './index.mjs';
|
|
8
8
|
|
package/dist/react.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
3
3
|
import { QueryClient } from '@tanstack/react-query';
|
|
4
|
-
import { a as BehioStorefront, P as ProductsQuery, b as PaginatedResponse, c as ProductListItem, d as ProductDetail, C as Category, e as CategoryDetail, M as Menu, f as ProductLabel, F as FilterField, g as Cart, h as CustomerProfile, R as RegisterInput, i as CustomerAddress, A as AddressSuggestion, j as AddressDetail, L as LoyaltySummary, k as PickupPointsInput, l as PickupPoint, N as NewsletterSubscribeResult, m as NewsletterSubscribeInput, n as NewsletterUnsubscribeResult, O as OrderListItem, o as OrderDetail, p as OrderAccessRequestResponse, q as OrderAccessVerifyResponse, r as CheckoutInput, s as PageDetail, t as Page, S as ShopInfo, u as ShopScripts, v as ShopSeo, w as Bundle, x as ProductGroup, y as CrossSellItem, z as ActivePromotion, G as GiftCardBalance, W as WishlistItem, D as ProductReviewsResponse, E as SubmitReviewInput, H as ReturnableOrder, I as ReturnStatus, J as ReturnRequest, K as SubmitReturnInput, Q as CookieConsent, T as CookieConsentInput, U as QuoteRequest, V as SubmitQuoteInput, X as BackInStockSubscription } from './client-
|
|
5
|
-
export { Y as AddToCartInput, Z as AuthTokens, _ as BehioApiError, $ as BundleItem, a0 as CartDiscount, a1 as CartItem, a2 as CheckoutAddress, a3 as FulfillmentStatus, a4 as LoginInput, a5 as MessageResponse, a6 as OrderItem, a7 as OrderStatus, a8 as PaymentStatus, a9 as ProductPrice, aa as ProductReview, ab as ProductVariant } from './client-
|
|
4
|
+
import { a as BehioStorefront, P as ProductsQuery, b as PaginatedResponse, c as ProductListItem, d as ProductDetail, C as Category, e as CategoryDetail, M as Menu, f as ProductLabel, F as FilterField, g as Cart, h as CustomerProfile, R as RegisterInput, i as CustomerAddress, A as AddressSuggestion, j as AddressDetail, L as LoyaltySummary, k as PickupPointsInput, l as PickupPoint, N as NewsletterSubscribeResult, m as NewsletterSubscribeInput, n as NewsletterUnsubscribeResult, O as OrderListItem, o as OrderDetail, p as OrderAccessRequestResponse, q as OrderAccessVerifyResponse, r as CheckoutInput, s as PageDetail, t as Page, S as ShopInfo, u as ShopScripts, v as ShopSeo, w as Bundle, x as ProductGroup, y as CrossSellItem, z as ActivePromotion, G as GiftCardBalance, W as WishlistItem, D as ProductReviewsResponse, E as SubmitReviewInput, H as ReturnableOrder, I as ReturnStatus, J as ReturnRequest, K as SubmitReturnInput, Q as CookieConsent, T as CookieConsentInput, U as QuoteRequest, V as SubmitQuoteInput, X as BackInStockSubscription } from './client-D1GZSa-N.js';
|
|
5
|
+
export { Y as AddToCartInput, Z as AuthTokens, _ as BehioApiError, $ as BundleItem, a0 as CartDiscount, a1 as CartItem, a2 as CheckoutAddress, a3 as FulfillmentStatus, a4 as LoginInput, a5 as MessageResponse, a6 as OrderItem, a7 as OrderStatus, a8 as PaymentStatus, a9 as ProductPrice, aa as ProductReview, ab as ProductVariant } from './client-D1GZSa-N.js';
|
|
6
6
|
import * as _tanstack_query_core from '@tanstack/query-core';
|
|
7
7
|
export { EcommerceEventName, EcommerceItem, EcommercePayload, formatPrice, trackEcommerceEvent } from './index.js';
|
|
8
8
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@behio/storefront-sdk",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "TypeScript SDK for Behio Headless E-Shop
|
|
3
|
+
"version": "0.31.0",
|
|
4
|
+
"description": "TypeScript SDK for Behio Headless E-Shop \u2014 core client + React hooks",
|
|
5
5
|
"author": "Behio",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -63,4 +63,4 @@
|
|
|
63
63
|
"tsup": "^8.0.0",
|
|
64
64
|
"typescript": "^5.2.0"
|
|
65
65
|
}
|
|
66
|
-
}
|
|
66
|
+
}
|