@behio/storefront-sdk 2.16.0 → 2.18.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/README.md CHANGED
@@ -75,6 +75,29 @@ if (orderResult.error) throw new Error(orderResult.error.message);
75
75
 
76
76
  ```
77
77
 
78
+ ### Websites without a shop (2.17.1)
79
+
80
+ Every Behio storefront belongs to a site. A site starts as a website: shop
81
+ info, SEO, pages, blogs, forms, collections and analytics work with its key,
82
+ and categories and featured products return empty lists. The other shop
83
+ endpoints (products, cart, checkout, customer accounts, orders) answer 404 with
84
+ the code `be.storefront.siteKeyNotAllowed` until the merchant adds a shop to
85
+ the website, in the Behio admin or with the MCP tool `site-commerce-enable`.
86
+ From then on the same key and the same site id serve the shop too, and the shop
87
+ shares the website's name, languages, logo, appearance and SEO.
88
+
89
+ ```ts
90
+ import { errorCode } from '@behio/storefront-sdk';
91
+
92
+ const {data, error} = await storefront.catalog.getProducts({limit: 12});
93
+ if (errorCode(error) === 'be.storefront.siteKeyNotAllowed') {
94
+ // Website without a shop: hide the shop navigation instead of an error page.
95
+ }
96
+ ```
97
+
98
+ `errorMessage(error, locale)` returns a translated sentence for this code in
99
+ cs, sk and en.
100
+
78
101
  Paid orders may briefly return `contentDeliveryPending: true` while purchased
79
102
  files and course access are being assigned. Render this state in the initial
80
103
  receipt HTML and refresh the authenticated order detail until it clears. Tell
@@ -202,6 +202,7 @@ var BehioStorefront = class {
202
202
  this.pages = new PagesModule(this);
203
203
  this.blog = new BlogModule(this);
204
204
  this.forms = new FormsModule(this);
205
+ this.collections = new CollectionsModule(this);
205
206
  this.wishlist = new WishlistModule(this);
206
207
  this.reviews = new ReviewsModule(this);
207
208
  this.returns = new ReturnsModule(this);
@@ -1830,6 +1831,34 @@ var BlogModule = class {
1830
1831
  });
1831
1832
  }
1832
1833
  };
1834
+ var CollectionsModule = class {
1835
+ constructor(client) {
1836
+ this.client = client;
1837
+ }
1838
+ /**
1839
+ * One collection with its published items in the owner's order.
1840
+ * `limit` 1 to 200 (default 100), `offset` for paging; `total` is the
1841
+ * number of published items. 404 `be.collections.collectionNotFound` for an
1842
+ * unknown or private slug.
1843
+ */
1844
+ async get(slug, query) {
1845
+ return this.client.request(
1846
+ "GET",
1847
+ `/collections/${encodeURIComponent(slug)}`,
1848
+ { query: { limit: query?.limit, offset: query?.offset } }
1849
+ );
1850
+ }
1851
+ /**
1852
+ * One published item by its slug or id (detail page). 404
1853
+ * `be.collections.itemNotFound` for a draft or unknown item.
1854
+ */
1855
+ async item(slug, itemSlugOrId) {
1856
+ return this.client.request(
1857
+ "GET",
1858
+ `/collections/${encodeURIComponent(slug)}/items/${encodeURIComponent(itemSlugOrId)}`
1859
+ );
1860
+ }
1861
+ };
1833
1862
  var FormsModule = class {
1834
1863
  constructor(client) {
1835
1864
  this.client = client;
@@ -202,6 +202,7 @@ var BehioStorefront = class {
202
202
  this.pages = new PagesModule(this);
203
203
  this.blog = new BlogModule(this);
204
204
  this.forms = new FormsModule(this);
205
+ this.collections = new CollectionsModule(this);
205
206
  this.wishlist = new WishlistModule(this);
206
207
  this.reviews = new ReviewsModule(this);
207
208
  this.returns = new ReturnsModule(this);
@@ -1830,6 +1831,34 @@ var BlogModule = class {
1830
1831
  });
1831
1832
  }
1832
1833
  };
1834
+ var CollectionsModule = class {
1835
+ constructor(client) {
1836
+ this.client = client;
1837
+ }
1838
+ /**
1839
+ * One collection with its published items in the owner's order.
1840
+ * `limit` 1 to 200 (default 100), `offset` for paging; `total` is the
1841
+ * number of published items. 404 `be.collections.collectionNotFound` for an
1842
+ * unknown or private slug.
1843
+ */
1844
+ async get(slug, query) {
1845
+ return this.client.request(
1846
+ "GET",
1847
+ `/collections/${encodeURIComponent(slug)}`,
1848
+ { query: { limit: _optionalChain([query, 'optionalAccess', _47 => _47.limit]), offset: _optionalChain([query, 'optionalAccess', _48 => _48.offset]) } }
1849
+ );
1850
+ }
1851
+ /**
1852
+ * One published item by its slug or id (detail page). 404
1853
+ * `be.collections.itemNotFound` for a draft or unknown item.
1854
+ */
1855
+ async item(slug, itemSlugOrId) {
1856
+ return this.client.request(
1857
+ "GET",
1858
+ `/collections/${encodeURIComponent(slug)}/items/${encodeURIComponent(itemSlugOrId)}`
1859
+ );
1860
+ }
1861
+ };
1833
1862
  var FormsModule = class {
1834
1863
  constructor(client) {
1835
1864
  this.client = client;
@@ -2031,7 +2060,7 @@ var ConsentModule = class {
2031
2060
  }
2032
2061
  if (result.error) return { data: null, error: result.error };
2033
2062
  return {
2034
- data: _optionalChain([result, 'access', _47 => _47.data, 'optionalAccess', _48 => _48.consented]) ? result.data.consent : null,
2063
+ data: _optionalChain([result, 'access', _49 => _49.data, 'optionalAccess', _50 => _50.consented]) ? result.data.consent : null,
2035
2064
  error: null
2036
2065
  };
2037
2066
  }
@@ -2118,10 +2147,10 @@ var ShippingModule = class {
2118
2147
  */
2119
2148
  async listMethods(opts) {
2120
2149
  const query = {};
2121
- if (_optionalChain([opts, 'optionalAccess', _49 => _49.currency])) query.currency = opts.currency;
2122
- if (_optionalChain([opts, 'optionalAccess', _50 => _50.country])) query.country = opts.country;
2123
- if (_optionalChain([opts, 'optionalAccess', _51 => _51.cartTotal]) != null) query.cartTotal = String(opts.cartTotal);
2124
- if (_optionalChain([opts, 'optionalAccess', _52 => _52.cartWeightKg]) != null)
2150
+ if (_optionalChain([opts, 'optionalAccess', _51 => _51.currency])) query.currency = opts.currency;
2151
+ if (_optionalChain([opts, 'optionalAccess', _52 => _52.country])) query.country = opts.country;
2152
+ if (_optionalChain([opts, 'optionalAccess', _53 => _53.cartTotal]) != null) query.cartTotal = String(opts.cartTotal);
2153
+ if (_optionalChain([opts, 'optionalAccess', _54 => _54.cartWeightKg]) != null)
2125
2154
  query.cartWeightKg = String(opts.cartWeightKg);
2126
2155
  return this.client.request(
2127
2156
  "GET",
@@ -180,6 +180,18 @@ interface CheckoutSettings {
180
180
  /** Price presentation mode (Eshop.priceDisplay). See `CheckoutSettings.priceDisplay`. */
181
181
  type PriceDisplay = "INCL_VAT" | "EXCL_VAT" | "CUSTOMER_CHOICE";
182
182
  type CurrencyDisplayFormat = "SYMBOL_BEFORE" | "SYMBOL_AFTER" | "CODE";
183
+ /**
184
+ * Selling state of the site (SDK 2.18.0). `NONE` = website without a shop,
185
+ * `ADDED` = shop being set up (orders are accepted), `LIVE` = selling,
186
+ * `PAUSED` = not accepting orders right now: cart writes, checkout and gift
187
+ * card purchases answer 403 `be.storefront.shopPaused`. Keep the catalog
188
+ * visible and replace the buy buttons with a notice.
189
+ */
190
+ interface ShopCommerce {
191
+ state: "NONE" | "ADDED" | "LIVE" | "PAUSED";
192
+ /** False for PAUSED and for a website without a shop. */
193
+ acceptsOrders: boolean;
194
+ }
183
195
  interface ShopInfo {
184
196
  /** Merchant default catalog order, normalized to the public sort values. */
185
197
  defaultProductSort?: ProductSortValue;
@@ -195,6 +207,8 @@ interface ShopInfo {
195
207
  enabled: boolean;
196
208
  message: string | null;
197
209
  };
210
+ /** Selling state. Optional because cached payloads predating SDK 2.18.0 may still be served; missing = accepting orders. */
211
+ commerce?: ShopCommerce;
198
212
  id: string;
199
213
  name: string;
200
214
  domain: string;
@@ -2325,6 +2339,43 @@ interface StorefrontFormSettings {
2325
2339
  /** When true, `consent: true` is required for the submit to pass. */
2326
2340
  requireConsent?: boolean;
2327
2341
  }
2342
+ /** Field types of a data collection. */
2343
+ type StorefrontCollectionFieldType = "text" | "longtext" | "number" | "boolean" | "date" | "url" | "image" | "email" | "select" | "tags";
2344
+ /** One field of a data collection; item values live under `data[key]`. */
2345
+ interface StorefrontCollectionField {
2346
+ key: string;
2347
+ type: StorefrontCollectionFieldType;
2348
+ label: string;
2349
+ required: boolean;
2350
+ help?: string;
2351
+ /** Choices for `select`, suggestions for `tags`. */
2352
+ options?: string[];
2353
+ }
2354
+ /** One published item of a data collection. */
2355
+ interface StorefrontCollectionItem {
2356
+ id: string;
2357
+ /** Detail address, unique in the collection; null when the item has none. */
2358
+ slug: string | null;
2359
+ /** `{fieldKey: value}`: text, number, boolean, `YYYY-MM-DD` date, URL, string[] for tags. */
2360
+ data: Record<string, unknown>;
2361
+ createdAt: number;
2362
+ updatedAt: number;
2363
+ }
2364
+ /** A public data collection (`GET /collections/{slug}`). */
2365
+ interface StorefrontCollection {
2366
+ slug: string;
2367
+ name: string;
2368
+ description: string | null;
2369
+ fields: StorefrontCollectionField[];
2370
+ items: StorefrontCollectionItem[];
2371
+ /** Number of published items (for paging). */
2372
+ total: number;
2373
+ }
2374
+ interface StorefrontCollectionQuery {
2375
+ /** 1 to 200, default 100. */
2376
+ limit?: number;
2377
+ offset?: number;
2378
+ }
2328
2379
  /** Public definition of a form (`GET /forms/{slug}`). */
2329
2380
  interface StorefrontForm {
2330
2381
  slug: string;
@@ -3231,6 +3282,7 @@ declare class BehioStorefront {
3231
3282
  readonly pages: PagesModule;
3232
3283
  readonly blog: BlogModule;
3233
3284
  readonly forms: FormsModule;
3285
+ readonly collections: CollectionsModule;
3234
3286
  readonly wishlist: WishlistModule;
3235
3287
  readonly reviews: ReviewsModule;
3236
3288
  readonly returns: ReturnsModule;
@@ -3938,6 +3990,29 @@ declare class BlogModule {
3938
3990
  /** One published post with sanitised HTML content and related posts. */
3939
3991
  post(handle: string, slug: string, locale?: string): Promise<SdkResult<BlogPostDetail>>;
3940
3992
  }
3993
+ /**
3994
+ * Data collections: structured content the owner edits in Behio (team,
3995
+ * references, price list, FAQ, listings) and the site reads at runtime, so
3996
+ * no site needs its own database. Only public collections and published
3997
+ * items are returned. Cached by Behio and invalidated on every admin change.
3998
+ * Works with website keys that have no e-shop attached.
3999
+ */
4000
+ declare class CollectionsModule {
4001
+ private client;
4002
+ constructor(client: BehioStorefront);
4003
+ /**
4004
+ * One collection with its published items in the owner's order.
4005
+ * `limit` 1 to 200 (default 100), `offset` for paging; `total` is the
4006
+ * number of published items. 404 `be.collections.collectionNotFound` for an
4007
+ * unknown or private slug.
4008
+ */
4009
+ get(slug: string, query?: StorefrontCollectionQuery): Promise<SdkResult<StorefrontCollection>>;
4010
+ /**
4011
+ * One published item by its slug or id (detail page). 404
4012
+ * `be.collections.itemNotFound` for a draft or unknown item.
4013
+ */
4014
+ item(slug: string, itemSlugOrId: string): Promise<SdkResult<StorefrontCollectionItem>>;
4015
+ }
3941
4016
  /**
3942
4017
  * Merchant-defined forms (contact, demand, registration to an event...).
3943
4018
  * The definition is public and cacheable; a submit is validated server-side
@@ -4159,4 +4234,4 @@ declare function clearCartSummary(): void;
4159
4234
  /** Publish only authoritative current totals; server cart consumers call this after hydration and revalidation. */
4160
4235
  declare function publishCartSummary(summary: CartSummaryEvent): void;
4161
4236
 
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 };
4237
+ 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 ShopCommerce 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 ShopInfo as c0, type ShopScript as c1, type ShopScriptPlacement as c2, type ShopScriptType as c3, type ShopScripts as c4, type ShopSeo as c5, type ShopSeoIdentity as c6, type SiteFormField as c7, type SiteFormFieldOption as c8, type SiteFormFieldType as c9, type VariantAxisValue as cA, type WishlistItem as cB, clearCartSummary as cC, err as cD, ok as cE, publishCartSummary as cF, toSdkError as cG, type Sitemap as ca, type SitemapEntry as cb, type StockBehavior as cc, type StockMode as cd, type StorefrontCollection as ce, type StorefrontCollectionField as cf, type StorefrontCollectionFieldType as cg, type StorefrontCollectionItem as ch, type StorefrontCollectionQuery as ci, type StorefrontForm as cj, type StorefrontFormFieldErrorCode as ck, type StorefrontFormFile as cl, type StorefrontFormSettings as cm, type StorefrontFormSubmitInput as cn, type StorefrontFormSubmitResult as co, type StorefrontFormUpload as cp, type SubmitQuoteInput as cq, type SubmitReturnInput as cr, type SubmitReviewInput as cs, type Subscription as ct, type SubscriptionAction as cu, type SubscriptionFrequency as cv, type SubscriptionItem as cw, type SubscriptionStatus as cx, type TaxBreakdownLine as cy, type VariantAxis 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 };
@@ -180,6 +180,18 @@ interface CheckoutSettings {
180
180
  /** Price presentation mode (Eshop.priceDisplay). See `CheckoutSettings.priceDisplay`. */
181
181
  type PriceDisplay = "INCL_VAT" | "EXCL_VAT" | "CUSTOMER_CHOICE";
182
182
  type CurrencyDisplayFormat = "SYMBOL_BEFORE" | "SYMBOL_AFTER" | "CODE";
183
+ /**
184
+ * Selling state of the site (SDK 2.18.0). `NONE` = website without a shop,
185
+ * `ADDED` = shop being set up (orders are accepted), `LIVE` = selling,
186
+ * `PAUSED` = not accepting orders right now: cart writes, checkout and gift
187
+ * card purchases answer 403 `be.storefront.shopPaused`. Keep the catalog
188
+ * visible and replace the buy buttons with a notice.
189
+ */
190
+ interface ShopCommerce {
191
+ state: "NONE" | "ADDED" | "LIVE" | "PAUSED";
192
+ /** False for PAUSED and for a website without a shop. */
193
+ acceptsOrders: boolean;
194
+ }
183
195
  interface ShopInfo {
184
196
  /** Merchant default catalog order, normalized to the public sort values. */
185
197
  defaultProductSort?: ProductSortValue;
@@ -195,6 +207,8 @@ interface ShopInfo {
195
207
  enabled: boolean;
196
208
  message: string | null;
197
209
  };
210
+ /** Selling state. Optional because cached payloads predating SDK 2.18.0 may still be served; missing = accepting orders. */
211
+ commerce?: ShopCommerce;
198
212
  id: string;
199
213
  name: string;
200
214
  domain: string;
@@ -2325,6 +2339,43 @@ interface StorefrontFormSettings {
2325
2339
  /** When true, `consent: true` is required for the submit to pass. */
2326
2340
  requireConsent?: boolean;
2327
2341
  }
2342
+ /** Field types of a data collection. */
2343
+ type StorefrontCollectionFieldType = "text" | "longtext" | "number" | "boolean" | "date" | "url" | "image" | "email" | "select" | "tags";
2344
+ /** One field of a data collection; item values live under `data[key]`. */
2345
+ interface StorefrontCollectionField {
2346
+ key: string;
2347
+ type: StorefrontCollectionFieldType;
2348
+ label: string;
2349
+ required: boolean;
2350
+ help?: string;
2351
+ /** Choices for `select`, suggestions for `tags`. */
2352
+ options?: string[];
2353
+ }
2354
+ /** One published item of a data collection. */
2355
+ interface StorefrontCollectionItem {
2356
+ id: string;
2357
+ /** Detail address, unique in the collection; null when the item has none. */
2358
+ slug: string | null;
2359
+ /** `{fieldKey: value}`: text, number, boolean, `YYYY-MM-DD` date, URL, string[] for tags. */
2360
+ data: Record<string, unknown>;
2361
+ createdAt: number;
2362
+ updatedAt: number;
2363
+ }
2364
+ /** A public data collection (`GET /collections/{slug}`). */
2365
+ interface StorefrontCollection {
2366
+ slug: string;
2367
+ name: string;
2368
+ description: string | null;
2369
+ fields: StorefrontCollectionField[];
2370
+ items: StorefrontCollectionItem[];
2371
+ /** Number of published items (for paging). */
2372
+ total: number;
2373
+ }
2374
+ interface StorefrontCollectionQuery {
2375
+ /** 1 to 200, default 100. */
2376
+ limit?: number;
2377
+ offset?: number;
2378
+ }
2328
2379
  /** Public definition of a form (`GET /forms/{slug}`). */
2329
2380
  interface StorefrontForm {
2330
2381
  slug: string;
@@ -3231,6 +3282,7 @@ declare class BehioStorefront {
3231
3282
  readonly pages: PagesModule;
3232
3283
  readonly blog: BlogModule;
3233
3284
  readonly forms: FormsModule;
3285
+ readonly collections: CollectionsModule;
3234
3286
  readonly wishlist: WishlistModule;
3235
3287
  readonly reviews: ReviewsModule;
3236
3288
  readonly returns: ReturnsModule;
@@ -3938,6 +3990,29 @@ declare class BlogModule {
3938
3990
  /** One published post with sanitised HTML content and related posts. */
3939
3991
  post(handle: string, slug: string, locale?: string): Promise<SdkResult<BlogPostDetail>>;
3940
3992
  }
3993
+ /**
3994
+ * Data collections: structured content the owner edits in Behio (team,
3995
+ * references, price list, FAQ, listings) and the site reads at runtime, so
3996
+ * no site needs its own database. Only public collections and published
3997
+ * items are returned. Cached by Behio and invalidated on every admin change.
3998
+ * Works with website keys that have no e-shop attached.
3999
+ */
4000
+ declare class CollectionsModule {
4001
+ private client;
4002
+ constructor(client: BehioStorefront);
4003
+ /**
4004
+ * One collection with its published items in the owner's order.
4005
+ * `limit` 1 to 200 (default 100), `offset` for paging; `total` is the
4006
+ * number of published items. 404 `be.collections.collectionNotFound` for an
4007
+ * unknown or private slug.
4008
+ */
4009
+ get(slug: string, query?: StorefrontCollectionQuery): Promise<SdkResult<StorefrontCollection>>;
4010
+ /**
4011
+ * One published item by its slug or id (detail page). 404
4012
+ * `be.collections.itemNotFound` for a draft or unknown item.
4013
+ */
4014
+ item(slug: string, itemSlugOrId: string): Promise<SdkResult<StorefrontCollectionItem>>;
4015
+ }
3941
4016
  /**
3942
4017
  * Merchant-defined forms (contact, demand, registration to an event...).
3943
4018
  * The definition is public and cacheable; a submit is validated server-side
@@ -4159,4 +4234,4 @@ declare function clearCartSummary(): void;
4159
4234
  /** Publish only authoritative current totals; server cart consumers call this after hydration and revalidation. */
4160
4235
  declare function publishCartSummary(summary: CartSummaryEvent): void;
4161
4236
 
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 };
4237
+ 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 ShopCommerce 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 ShopInfo as c0, type ShopScript as c1, type ShopScriptPlacement as c2, type ShopScriptType as c3, type ShopScripts as c4, type ShopSeo as c5, type ShopSeoIdentity as c6, type SiteFormField as c7, type SiteFormFieldOption as c8, type SiteFormFieldType as c9, type VariantAxisValue as cA, type WishlistItem as cB, clearCartSummary as cC, err as cD, ok as cE, publishCartSummary as cF, toSdkError as cG, type Sitemap as ca, type SitemapEntry as cb, type StockBehavior as cc, type StockMode as cd, type StorefrontCollection as ce, type StorefrontCollectionField as cf, type StorefrontCollectionFieldType as cg, type StorefrontCollectionItem as ch, type StorefrontCollectionQuery as ci, type StorefrontForm as cj, type StorefrontFormFieldErrorCode as ck, type StorefrontFormFile as cl, type StorefrontFormSettings as cm, type StorefrontFormSubmitInput as cn, type StorefrontFormSubmitResult as co, type StorefrontFormUpload as cp, type SubmitQuoteInput as cq, type SubmitReturnInput as cr, type SubmitReviewInput as cs, type Subscription as ct, type SubscriptionAction as cu, type SubscriptionFrequency as cv, type SubscriptionItem as cw, type SubscriptionStatus as cx, type TaxBreakdownLine as cy, type VariantAxis 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-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';
1
+ import { P as ProductDetail, a as ProductVariant, B as BehioStorefront, S as SdkResult, C as CookieConsent, b as StorefrontFormFieldError } from './client-CBNbEn0x.mjs';
2
+ export { A as ActivePromotion, c as AddToCartInput, d as AddressDetail, e as AddressSuggestion, f as AddressType, g as AddressTypes, h as AuthTokens, i as BackInStockSubscription, j as BadgeTone, k as BehioApiError, l as BehioErrorCode, m as BehioEventHandler, n as BehioEventType, o as BehioNetworkError, p as BehioStorefrontConfig, q as Blog, r as BlogPostDetail, s as BlogPostListItem, t as BlogPostsPage, u as BlogPostsQuery, v as BlogSettings, w as BlogTag, x as Bundle, y as BundleCatalogQuery, z as BundleItem, D as Cart, E as CartBundleLine, F as CartBundleLineItem, G as CartDiscount, H as CartItem, I as CartItemProduct, J as CartLinkClaimed, K as CartPromotion, L as CartSummaryEvent, M as Category, N as CategoryDetail, O as CertificateVerification, Q as CheckoutAddress, R as CheckoutInput, T as CheckoutPaymentMethod, U as CheckoutPreview, V as CheckoutResult, W as CheckoutSettings, X as CookieConsentInput, Y as CourseAttachment, Z as CourseCertificate, _ as CourseComment, $ as CourseCommentReply, a0 as CourseCommentsList, a1 as CourseDetail, a2 as CourseLesson, a3 as CourseListItem, a4 as CourseModule, a5 as CoursePostedComment, a6 as CourseProgress, a7 as CourseTutorMessage, a8 as CourseTutorThread, a9 as CrossSellItem, aa as CurrencyDisplayFormat, ab as CustomerAddress, ac as CustomerBadge, ad as CustomerChallenge, ae as CustomerGamification, af as CustomerGamificationQuery, ag as CustomerProfile, ah as DigitalDownload, ai as DownloadUrl, aj as Facet, ak as FacetAvailability, al as FacetCategory, am as FacetLabel, an as FacetPriceRange, ao as FacetRange, ap as FacetRatingBucket, aq as FacetValue, ar as FacetsResponse, as as FilterField, at as FulfillmentStatus, au as FulfillmentStatuses, av as GamificationRefreshResult, aw as GiftCardBalance, ax as GiftCardPurchaseInput, ay as GiftCardPurchaseResult, az as GiftCardSummary, aA as LessonNote, aB as LessonQuiz, aC as LoginInput, aD as LoyaltyBalance, aE as LoyaltyNextTier, aF as LoyaltyProgram, aG as LoyaltyQuery, aH as LoyaltyReferralResult, aI as LoyaltySummary, aJ as LoyaltyTier, aK as LoyaltyTierPerks, aL as LoyaltyTransaction, aM as Menu, aN as MenuItem, aO as MenuItemRef, aP as MenuItemType, aQ as MessageResponse, aR as NewsletterOptInDefault, aS as NewsletterSubscribeInput, aT as NewsletterSubscribeResult, aU as NewsletterUnsubscribeResult, aV as OrderAccessRequestResponse, aW as OrderAccessVerifyResponse, aX as OrderDetail, aY as OrderDiscount, aZ as OrderItem, a_ as OrderListItem, a$ as OrderPaymentInstructions, b0 as OrderPickupPoint, b1 as OrderShipment, b2 as OrderStatus, b3 as OrderStatusHistory, b4 as OrderStatuses, b5 as OrderTracking, b6 as Page, b7 as PageAttachment, b8 as PageDetail, b9 as PaginatedResponse, ba as PaymentInstrument, bb as PaymentStatus, bc as PaymentStatuses, bd as PaymentSwift, be as PickupPoint, bf as PickupPointHours, bg as PickupPointsInput, bh as PickupWidgetConfig, bi as PriceDisplay, bj as ProductAssetGroup, bk as ProductAssetItem, bl as ProductAvailability, bm as ProductGroup, bn as ProductLabel, bo as ProductListItem, bp as ProductMedia, bq as ProductMediaVariant, br as ProductParameter, bs as ProductParameterGroup, bt as ProductParametersResponse, bu as ProductPrice, bv as ProductPromotionSummary, bw as ProductReview, bx as ProductReviewsResponse, by as ProductSibling, bz as ProductSort, bA as ProductSortValue, bB as ProductVolumePrice, bC as ProductsQuery, bD as QuizAnswerInput, bE as QuizAnswerResult, bF as QuizQuestion, bG as QuizResult, bH as QuoteItem, bI as QuoteRequest, bJ as RegisterInput, bK as RegisterResult, bL as RequestInterceptor, bM as RequestInterceptorConfig, bN as ResponseInterceptor, bO as ResponseInterceptorData, bP as ReturnRequest, bQ as ReturnRequestItem, bR as ReturnStatus, bS as ReturnStatusItem, bT as ReturnableOrder, bU as ReturnableOrderItem, bV as SdkError, bW as ShippingMethodSummary, bX as ShippingPublicConfig, bY as ShippingQuote, bZ as ShippingQuoteInput, b_ as ShopAppearance, b$ as ShopCommerce, c0 as ShopInfo, c1 as ShopScript, c2 as ShopScriptPlacement, c3 as ShopScriptType, c4 as ShopScripts, c5 as ShopSeo, c6 as ShopSeoIdentity, c7 as SiteFormField, c8 as SiteFormFieldOption, c9 as SiteFormFieldType, ca as Sitemap, cb as SitemapEntry, cc as StockBehavior, cd as StockMode, ce as StorefrontCollection, cf as StorefrontCollectionField, cg as StorefrontCollectionFieldType, ch as StorefrontCollectionItem, ci as StorefrontCollectionQuery, cj as StorefrontForm, ck as StorefrontFormFieldErrorCode, cl as StorefrontFormFile, cm as StorefrontFormSettings, cn as StorefrontFormSubmitInput, co as StorefrontFormSubmitResult, cp as StorefrontFormUpload, cq as SubmitQuoteInput, cr as SubmitReturnInput, cs as SubmitReviewInput, ct as Subscription, cu as SubscriptionAction, cv as SubscriptionFrequency, cw as SubscriptionItem, cx as SubscriptionStatus, cy as TaxBreakdownLine, cz as VariantAxis, cA as VariantAxisValue, cB as WishlistItem, cC as clearCartSummary, cD as err, cE as ok, cF as publishCartSummary, cG as toSdkError } from './client-CBNbEn0x.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-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';
1
+ import { P as ProductDetail, a as ProductVariant, B as BehioStorefront, S as SdkResult, C as CookieConsent, b as StorefrontFormFieldError } from './client-CBNbEn0x.js';
2
+ export { A as ActivePromotion, c as AddToCartInput, d as AddressDetail, e as AddressSuggestion, f as AddressType, g as AddressTypes, h as AuthTokens, i as BackInStockSubscription, j as BadgeTone, k as BehioApiError, l as BehioErrorCode, m as BehioEventHandler, n as BehioEventType, o as BehioNetworkError, p as BehioStorefrontConfig, q as Blog, r as BlogPostDetail, s as BlogPostListItem, t as BlogPostsPage, u as BlogPostsQuery, v as BlogSettings, w as BlogTag, x as Bundle, y as BundleCatalogQuery, z as BundleItem, D as Cart, E as CartBundleLine, F as CartBundleLineItem, G as CartDiscount, H as CartItem, I as CartItemProduct, J as CartLinkClaimed, K as CartPromotion, L as CartSummaryEvent, M as Category, N as CategoryDetail, O as CertificateVerification, Q as CheckoutAddress, R as CheckoutInput, T as CheckoutPaymentMethod, U as CheckoutPreview, V as CheckoutResult, W as CheckoutSettings, X as CookieConsentInput, Y as CourseAttachment, Z as CourseCertificate, _ as CourseComment, $ as CourseCommentReply, a0 as CourseCommentsList, a1 as CourseDetail, a2 as CourseLesson, a3 as CourseListItem, a4 as CourseModule, a5 as CoursePostedComment, a6 as CourseProgress, a7 as CourseTutorMessage, a8 as CourseTutorThread, a9 as CrossSellItem, aa as CurrencyDisplayFormat, ab as CustomerAddress, ac as CustomerBadge, ad as CustomerChallenge, ae as CustomerGamification, af as CustomerGamificationQuery, ag as CustomerProfile, ah as DigitalDownload, ai as DownloadUrl, aj as Facet, ak as FacetAvailability, al as FacetCategory, am as FacetLabel, an as FacetPriceRange, ao as FacetRange, ap as FacetRatingBucket, aq as FacetValue, ar as FacetsResponse, as as FilterField, at as FulfillmentStatus, au as FulfillmentStatuses, av as GamificationRefreshResult, aw as GiftCardBalance, ax as GiftCardPurchaseInput, ay as GiftCardPurchaseResult, az as GiftCardSummary, aA as LessonNote, aB as LessonQuiz, aC as LoginInput, aD as LoyaltyBalance, aE as LoyaltyNextTier, aF as LoyaltyProgram, aG as LoyaltyQuery, aH as LoyaltyReferralResult, aI as LoyaltySummary, aJ as LoyaltyTier, aK as LoyaltyTierPerks, aL as LoyaltyTransaction, aM as Menu, aN as MenuItem, aO as MenuItemRef, aP as MenuItemType, aQ as MessageResponse, aR as NewsletterOptInDefault, aS as NewsletterSubscribeInput, aT as NewsletterSubscribeResult, aU as NewsletterUnsubscribeResult, aV as OrderAccessRequestResponse, aW as OrderAccessVerifyResponse, aX as OrderDetail, aY as OrderDiscount, aZ as OrderItem, a_ as OrderListItem, a$ as OrderPaymentInstructions, b0 as OrderPickupPoint, b1 as OrderShipment, b2 as OrderStatus, b3 as OrderStatusHistory, b4 as OrderStatuses, b5 as OrderTracking, b6 as Page, b7 as PageAttachment, b8 as PageDetail, b9 as PaginatedResponse, ba as PaymentInstrument, bb as PaymentStatus, bc as PaymentStatuses, bd as PaymentSwift, be as PickupPoint, bf as PickupPointHours, bg as PickupPointsInput, bh as PickupWidgetConfig, bi as PriceDisplay, bj as ProductAssetGroup, bk as ProductAssetItem, bl as ProductAvailability, bm as ProductGroup, bn as ProductLabel, bo as ProductListItem, bp as ProductMedia, bq as ProductMediaVariant, br as ProductParameter, bs as ProductParameterGroup, bt as ProductParametersResponse, bu as ProductPrice, bv as ProductPromotionSummary, bw as ProductReview, bx as ProductReviewsResponse, by as ProductSibling, bz as ProductSort, bA as ProductSortValue, bB as ProductVolumePrice, bC as ProductsQuery, bD as QuizAnswerInput, bE as QuizAnswerResult, bF as QuizQuestion, bG as QuizResult, bH as QuoteItem, bI as QuoteRequest, bJ as RegisterInput, bK as RegisterResult, bL as RequestInterceptor, bM as RequestInterceptorConfig, bN as ResponseInterceptor, bO as ResponseInterceptorData, bP as ReturnRequest, bQ as ReturnRequestItem, bR as ReturnStatus, bS as ReturnStatusItem, bT as ReturnableOrder, bU as ReturnableOrderItem, bV as SdkError, bW as ShippingMethodSummary, bX as ShippingPublicConfig, bY as ShippingQuote, bZ as ShippingQuoteInput, b_ as ShopAppearance, b$ as ShopCommerce, c0 as ShopInfo, c1 as ShopScript, c2 as ShopScriptPlacement, c3 as ShopScriptType, c4 as ShopScripts, c5 as ShopSeo, c6 as ShopSeoIdentity, c7 as SiteFormField, c8 as SiteFormFieldOption, c9 as SiteFormFieldType, ca as Sitemap, cb as SitemapEntry, cc as StockBehavior, cd as StockMode, ce as StorefrontCollection, cf as StorefrontCollectionField, cg as StorefrontCollectionFieldType, ch as StorefrontCollectionItem, ci as StorefrontCollectionQuery, cj as StorefrontForm, ck as StorefrontFormFieldErrorCode, cl as StorefrontFormFile, cm as StorefrontFormSettings, cn as StorefrontFormSubmitInput, co as StorefrontFormSubmitResult, cp as StorefrontFormUpload, cq as SubmitQuoteInput, cr as SubmitReturnInput, cs as SubmitReviewInput, ct as Subscription, cu as SubscriptionAction, cv as SubscriptionFrequency, cw as SubscriptionItem, cx as SubscriptionStatus, cy as TaxBreakdownLine, cz as VariantAxis, cA as VariantAxisValue, cB as WishlistItem, cC as clearCartSummary, cD as err, cE as ok, cF as publishCartSummary, cG as toSdkError } from './client-CBNbEn0x.js';
3
3
 
4
4
  /**
5
5
  * Format a price amount with currency using Intl.NumberFormat.
package/dist/index.js CHANGED
@@ -12,7 +12,7 @@
12
12
 
13
13
 
14
14
 
15
- var _chunkAOUXSMSRjs = require('./chunk-AOUXSMSR.js');
15
+ var _chunkNBYEO5KCjs = require('./chunk-NBYEO5KC.js');
16
16
 
17
17
  // src/react/utils/format-price.ts
18
18
  function formatPrice(amount, currency, locale, display) {
@@ -238,6 +238,8 @@ async function revokeAnalyticsConsent(client) {
238
238
  var ERROR_MESSAGES = {
239
239
  "cs": {
240
240
  "be.billing.apiDailyLimit": "Denn\xED limit vol\xE1n\xED API va\u0161eho tarifu ({limit}) je vy\u010Derpan\xFD. Obnov\xED se o p\u016Flnoci UTC, vy\u0161\u0161\xED tarif m\xE1 limit vy\u0161\u0161\xED.",
241
+ "be.collections.collectionNotFound": "Kolekce nebyla nalezena.",
242
+ "be.collections.itemNotFound": "Polo\u017Eka kolekce nebyla nalezena.",
241
243
  "be.common.notFound": "Tohle u\u017E neexistuje.",
242
244
  "be.forms.consentRequired": "Bez souhlasu nejde formul\xE1\u0159 odeslat.",
243
245
  "be.forms.fileFieldNotFound": "Formul\xE1\u0159 takov\xE9 pole pro soubor nem\xE1.",
@@ -461,7 +463,8 @@ var ERROR_MESSAGES = {
461
463
  "be.storefront.shippingQuoteStale": "Ko\u0161\xEDk se od kalkulace dopravy zm\u011Bnil. Na\u010Dt\u011Bte mo\u017Enosti dopravy znovu.",
462
464
  "be.storefront.shopMaintenance": "Obchod je v \xFAdr\u017Eb\u011B. Zkuste to pros\xEDm pozd\u011Bji.",
463
465
  "be.storefront.shopNotAvailable": "E-shop nen\xED dostupn\xFD.",
464
- "be.storefront.siteKeyNotAllowed": "Tento kl\xED\u010D pat\u0159\xED webu bez napojen\xE9ho e-shopu, obchodn\xED endpointy pro n\u011Bj nejsou dostupn\xE9.",
466
+ "be.storefront.shopPaused": "Obchod te\u010F nep\u0159ij\xEDm\xE1 objedn\xE1vky.",
467
+ "be.storefront.siteKeyNotAllowed": "Tento web zat\xEDm neprod\xE1v\xE1, tak\u017Ee obchodn\xED endpointy jako katalog, ko\u0161\xEDk a pokladna nejsou pro jeho kl\xED\u010D dostupn\xE9. Prodej zapnete p\u0159id\xE1n\xEDm obchodu k webu v Behiu (site-commerce-enable).",
465
468
  "be.storefront.siteOwnerMissing": "Web nem\xE1 vlastn\xEDka (e-shop ani web).",
466
469
  "be.storefront.someProductsNotFound": "N\u011Bkter\xE9 produkty nebyly nalezeny.",
467
470
  "be.storefront.stockBusyRetry": "Zbo\u017E\xED si pr\xE1v\u011B kupuje v\xEDc lid\xED najednou, zkuste to pros\xEDm znovu.",
@@ -500,6 +503,8 @@ var ERROR_MESSAGES = {
500
503
  },
501
504
  "sk": {
502
505
  "be.billing.apiDailyLimit": "Denn\xFD limit volan\xED API v\xE1\u0161ho tarifu ({limit}) je vy\u010Derpan\xFD. Obnov\xED sa o polnoci UTC, vy\u0161\u0161\xED tarif m\xE1 vy\u0161\u0161\xED limit.",
506
+ "be.collections.collectionNotFound": "Kolekcia sa nena\u0161la.",
507
+ "be.collections.itemNotFound": "Polo\u017Eka kolekcie sa nena\u0161la.",
503
508
  "be.common.notFound": "Toto u\u017E neexistuje.",
504
509
  "be.forms.consentRequired": "Bez s\xFAhlasu sa formul\xE1r ned\xE1 odosla\u0165.",
505
510
  "be.forms.fileFieldNotFound": "Formul\xE1r tak\xE9to pole pre s\xFAbor nem\xE1.",
@@ -723,7 +728,8 @@ var ERROR_MESSAGES = {
723
728
  "be.storefront.shippingQuoteStale": "Ko\u0161\xEDk sa od kalkul\xE1cie dopravy zmenil. Na\u010D\xEDtajte mo\u017Enosti dopravy znova.",
724
729
  "be.storefront.shopMaintenance": "Obchod je v \xFAdr\u017Ebe. Sk\xFAste to pros\xEDm nesk\xF4r.",
725
730
  "be.storefront.shopNotAvailable": "E-shop nie je dostupn\xFD.",
726
- "be.storefront.siteKeyNotAllowed": "Tento k\u013E\xFA\u010D patr\xED webu bez napojen\xE9ho e-shopu, obchodn\xE9 endpointy pre\u0148 nie s\xFA dostupn\xE9.",
731
+ "be.storefront.shopPaused": "Obchod teraz neprij\xEDma objedn\xE1vky.",
732
+ "be.storefront.siteKeyNotAllowed": "Tento web zatia\u013E nepred\xE1va, tak\u017Ee obchodn\xE9 endpointy ako katal\xF3g, ko\u0161\xEDk a poklad\u0148a nie s\xFA pre jeho k\u013E\xFA\u010D dostupn\xE9. Predaj zapnete pridan\xEDm obchodu k webu v Behiu (site-commerce-enable).",
727
733
  "be.storefront.siteOwnerMissing": "Web nem\xE1 vlastn\xEDka (e-shop ani web).",
728
734
  "be.storefront.someProductsNotFound": "Niektor\xE9 produkty sa nena\u0161li.",
729
735
  "be.storefront.stockBusyRetry": "Tovar si pr\xE1ve kupuje viac \u013Eud\xED naraz, sk\xFAste to pros\xEDm znova.",
@@ -762,6 +768,8 @@ var ERROR_MESSAGES = {
762
768
  },
763
769
  "en": {
764
770
  "be.billing.apiDailyLimit": "Your plan's daily API limit ({limit} calls) has been reached. It resets at midnight UTC; higher plans have a higher limit.",
771
+ "be.collections.collectionNotFound": "Collection not found.",
772
+ "be.collections.itemNotFound": "Collection item not found.",
765
773
  "be.common.notFound": "This no longer exists.",
766
774
  "be.forms.consentRequired": "The form cannot be sent without consent.",
767
775
  "be.forms.fileFieldNotFound": "This form has no such file field.",
@@ -985,7 +993,8 @@ var ERROR_MESSAGES = {
985
993
  "be.storefront.shippingQuoteStale": "Cart has changed since the shipping quote was issued, re-fetch shipping",
986
994
  "be.storefront.shopMaintenance": "The shop is under maintenance. Please try again later.",
987
995
  "be.storefront.shopNotAvailable": "Shop is not available",
988
- "be.storefront.siteKeyNotAllowed": "This key belongs to a website without a linked e-shop, commerce endpoints are not available for it",
996
+ "be.storefront.shopPaused": "The shop is not accepting orders right now.",
997
+ "be.storefront.siteKeyNotAllowed": "This website does not sell yet, so shop endpoints such as the catalog, cart and checkout are not available for its key. Add a shop to the website in Behio (site-commerce-enable) to start selling.",
989
998
  "be.storefront.siteOwnerMissing": "The site has no owner (neither e-shop nor website)",
990
999
  "be.storefront.someProductsNotFound": "One or more products were not found",
991
1000
  "be.storefront.stockBusyRetry": "Many people are buying this item right now, please try again.",
@@ -1031,7 +1040,7 @@ var GENERIC = {
1031
1040
  en: "Something went wrong, please try again."
1032
1041
  };
1033
1042
  function bodyOf(err2) {
1034
- const body = err2 instanceof _chunkAOUXSMSRjs.BehioApiError ? err2.body : err2 && typeof err2 === "object" && "body" in err2 ? err2.body : err2;
1043
+ const body = err2 instanceof _chunkNBYEO5KCjs.BehioApiError ? err2.body : err2 && typeof err2 === "object" && "body" in err2 ? err2.body : err2;
1035
1044
  return body && typeof body === "object" ? body : null;
1036
1045
  }
1037
1046
  function errorCode(err2) {
@@ -1148,4 +1157,4 @@ function formFieldErrors(err2) {
1148
1157
 
1149
1158
 
1150
1159
 
1151
- exports.AddressTypes = _chunkAOUXSMSRjs.AddressTypes; exports.BehioApiError = _chunkAOUXSMSRjs.BehioApiError; exports.BehioNetworkError = _chunkAOUXSMSRjs.BehioNetworkError; exports.BehioStorefront = _chunkAOUXSMSRjs.BehioStorefront; exports.FulfillmentStatuses = _chunkAOUXSMSRjs.FulfillmentStatuses; exports.OrderStatuses = _chunkAOUXSMSRjs.OrderStatuses; exports.PaymentStatuses = _chunkAOUXSMSRjs.PaymentStatuses; exports.ProductSort = _chunkAOUXSMSRjs.ProductSort; exports.VARIANT_QUERY_PARAM = VARIANT_QUERY_PARAM; exports.availableAxisValues = availableAxisValues; exports.buildVariantComparison = buildVariantComparison; exports.clearCartSummary = _chunkAOUXSMSRjs.clearCartSummary; exports.err = _chunkAOUXSMSRjs.err; exports.errorCode = errorCode; exports.errorMessage = errorMessage; exports.errorParams = errorParams; exports.findVariantByAttributes = findVariantByAttributes; exports.formFieldErrors = formFieldErrors; exports.formatPrice = formatPrice; exports.generateVisitorId = generateVisitorId; exports.getStoredVisitorId = getStoredVisitorId; exports.grantAnalyticsConsent = grantAnalyticsConsent; exports.ok = _chunkAOUXSMSRjs.ok; exports.publishCartSummary = _chunkAOUXSMSRjs.publishCartSummary; exports.resolveVariantContent = resolveVariantContent; exports.revokeAnalyticsConsent = revokeAnalyticsConsent; exports.toSdkError = _chunkAOUXSMSRjs.toSdkError; exports.trackEcommerceEvent = trackEcommerceEvent; exports.validationFieldMessages = validationFieldMessages; exports.variantFromQuery = variantFromQuery; exports.variantHref = variantHref;
1160
+ exports.AddressTypes = _chunkNBYEO5KCjs.AddressTypes; exports.BehioApiError = _chunkNBYEO5KCjs.BehioApiError; exports.BehioNetworkError = _chunkNBYEO5KCjs.BehioNetworkError; exports.BehioStorefront = _chunkNBYEO5KCjs.BehioStorefront; exports.FulfillmentStatuses = _chunkNBYEO5KCjs.FulfillmentStatuses; exports.OrderStatuses = _chunkNBYEO5KCjs.OrderStatuses; exports.PaymentStatuses = _chunkNBYEO5KCjs.PaymentStatuses; exports.ProductSort = _chunkNBYEO5KCjs.ProductSort; exports.VARIANT_QUERY_PARAM = VARIANT_QUERY_PARAM; exports.availableAxisValues = availableAxisValues; exports.buildVariantComparison = buildVariantComparison; exports.clearCartSummary = _chunkNBYEO5KCjs.clearCartSummary; exports.err = _chunkNBYEO5KCjs.err; exports.errorCode = errorCode; exports.errorMessage = errorMessage; exports.errorParams = errorParams; exports.findVariantByAttributes = findVariantByAttributes; exports.formFieldErrors = formFieldErrors; exports.formatPrice = formatPrice; exports.generateVisitorId = generateVisitorId; exports.getStoredVisitorId = getStoredVisitorId; exports.grantAnalyticsConsent = grantAnalyticsConsent; exports.ok = _chunkNBYEO5KCjs.ok; exports.publishCartSummary = _chunkNBYEO5KCjs.publishCartSummary; exports.resolveVariantContent = resolveVariantContent; exports.revokeAnalyticsConsent = revokeAnalyticsConsent; exports.toSdkError = _chunkNBYEO5KCjs.toSdkError; exports.trackEcommerceEvent = trackEcommerceEvent; exports.validationFieldMessages = validationFieldMessages; exports.variantFromQuery = variantFromQuery; exports.variantHref = variantHref;