@behio/storefront-sdk 2.16.0 → 2.17.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.
@@ -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",
@@ -2325,6 +2325,43 @@ interface StorefrontFormSettings {
2325
2325
  /** When true, `consent: true` is required for the submit to pass. */
2326
2326
  requireConsent?: boolean;
2327
2327
  }
2328
+ /** Field types of a data collection. */
2329
+ type StorefrontCollectionFieldType = "text" | "longtext" | "number" | "boolean" | "date" | "url" | "image" | "email" | "select" | "tags";
2330
+ /** One field of a data collection; item values live under `data[key]`. */
2331
+ interface StorefrontCollectionField {
2332
+ key: string;
2333
+ type: StorefrontCollectionFieldType;
2334
+ label: string;
2335
+ required: boolean;
2336
+ help?: string;
2337
+ /** Choices for `select`, suggestions for `tags`. */
2338
+ options?: string[];
2339
+ }
2340
+ /** One published item of a data collection. */
2341
+ interface StorefrontCollectionItem {
2342
+ id: string;
2343
+ /** Detail address, unique in the collection; null when the item has none. */
2344
+ slug: string | null;
2345
+ /** `{fieldKey: value}`: text, number, boolean, `YYYY-MM-DD` date, URL, string[] for tags. */
2346
+ data: Record<string, unknown>;
2347
+ createdAt: number;
2348
+ updatedAt: number;
2349
+ }
2350
+ /** A public data collection (`GET /collections/{slug}`). */
2351
+ interface StorefrontCollection {
2352
+ slug: string;
2353
+ name: string;
2354
+ description: string | null;
2355
+ fields: StorefrontCollectionField[];
2356
+ items: StorefrontCollectionItem[];
2357
+ /** Number of published items (for paging). */
2358
+ total: number;
2359
+ }
2360
+ interface StorefrontCollectionQuery {
2361
+ /** 1 to 200, default 100. */
2362
+ limit?: number;
2363
+ offset?: number;
2364
+ }
2328
2365
  /** Public definition of a form (`GET /forms/{slug}`). */
2329
2366
  interface StorefrontForm {
2330
2367
  slug: string;
@@ -3231,6 +3268,7 @@ declare class BehioStorefront {
3231
3268
  readonly pages: PagesModule;
3232
3269
  readonly blog: BlogModule;
3233
3270
  readonly forms: FormsModule;
3271
+ readonly collections: CollectionsModule;
3234
3272
  readonly wishlist: WishlistModule;
3235
3273
  readonly reviews: ReviewsModule;
3236
3274
  readonly returns: ReturnsModule;
@@ -3938,6 +3976,29 @@ declare class BlogModule {
3938
3976
  /** One published post with sanitised HTML content and related posts. */
3939
3977
  post(handle: string, slug: string, locale?: string): Promise<SdkResult<BlogPostDetail>>;
3940
3978
  }
3979
+ /**
3980
+ * Data collections: structured content the owner edits in Behio (team,
3981
+ * references, price list, FAQ, listings) and the site reads at runtime, so
3982
+ * no site needs its own database. Only public collections and published
3983
+ * items are returned. Cached by Behio and invalidated on every admin change.
3984
+ * Works with website keys that have no e-shop attached.
3985
+ */
3986
+ declare class CollectionsModule {
3987
+ private client;
3988
+ constructor(client: BehioStorefront);
3989
+ /**
3990
+ * One collection with its published items in the owner's order.
3991
+ * `limit` 1 to 200 (default 100), `offset` for paging; `total` is the
3992
+ * number of published items. 404 `be.collections.collectionNotFound` for an
3993
+ * unknown or private slug.
3994
+ */
3995
+ get(slug: string, query?: StorefrontCollectionQuery): Promise<SdkResult<StorefrontCollection>>;
3996
+ /**
3997
+ * One published item by its slug or id (detail page). 404
3998
+ * `be.collections.itemNotFound` for a draft or unknown item.
3999
+ */
4000
+ item(slug: string, itemSlugOrId: string): Promise<SdkResult<StorefrontCollectionItem>>;
4001
+ }
3941
4002
  /**
3942
4003
  * Merchant-defined forms (contact, demand, registration to an event...).
3943
4004
  * The definition is public and cacheable; a submit is validated server-side
@@ -4159,4 +4220,4 @@ declare function clearCartSummary(): void;
4159
4220
  /** Publish only authoritative current totals; server cart consumers call this after hydration and revalidation. */
4160
4221
  declare function publishCartSummary(summary: CartSummaryEvent): void;
4161
4222
 
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 };
4223
+ 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, type WishlistItem as cA, clearCartSummary as cB, err as cC, ok as cD, publishCartSummary as cE, toSdkError as cF, type SitemapEntry as ca, type StockBehavior as cb, type StockMode as cc, type StorefrontCollection as cd, type StorefrontCollectionField as ce, type StorefrontCollectionFieldType as cf, type StorefrontCollectionItem as cg, type StorefrontCollectionQuery as ch, type StorefrontForm as ci, type StorefrontFormFieldErrorCode as cj, type StorefrontFormFile as ck, type StorefrontFormSettings as cl, type StorefrontFormSubmitInput as cm, type StorefrontFormSubmitResult as cn, type StorefrontFormUpload as co, type SubmitQuoteInput as cp, type SubmitReturnInput as cq, type SubmitReviewInput as cr, type Subscription as cs, type SubscriptionAction as ct, type SubscriptionFrequency as cu, type SubscriptionItem as cv, type SubscriptionStatus as cw, type TaxBreakdownLine as cx, type VariantAxis as cy, type VariantAxisValue 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 };
@@ -2325,6 +2325,43 @@ interface StorefrontFormSettings {
2325
2325
  /** When true, `consent: true` is required for the submit to pass. */
2326
2326
  requireConsent?: boolean;
2327
2327
  }
2328
+ /** Field types of a data collection. */
2329
+ type StorefrontCollectionFieldType = "text" | "longtext" | "number" | "boolean" | "date" | "url" | "image" | "email" | "select" | "tags";
2330
+ /** One field of a data collection; item values live under `data[key]`. */
2331
+ interface StorefrontCollectionField {
2332
+ key: string;
2333
+ type: StorefrontCollectionFieldType;
2334
+ label: string;
2335
+ required: boolean;
2336
+ help?: string;
2337
+ /** Choices for `select`, suggestions for `tags`. */
2338
+ options?: string[];
2339
+ }
2340
+ /** One published item of a data collection. */
2341
+ interface StorefrontCollectionItem {
2342
+ id: string;
2343
+ /** Detail address, unique in the collection; null when the item has none. */
2344
+ slug: string | null;
2345
+ /** `{fieldKey: value}`: text, number, boolean, `YYYY-MM-DD` date, URL, string[] for tags. */
2346
+ data: Record<string, unknown>;
2347
+ createdAt: number;
2348
+ updatedAt: number;
2349
+ }
2350
+ /** A public data collection (`GET /collections/{slug}`). */
2351
+ interface StorefrontCollection {
2352
+ slug: string;
2353
+ name: string;
2354
+ description: string | null;
2355
+ fields: StorefrontCollectionField[];
2356
+ items: StorefrontCollectionItem[];
2357
+ /** Number of published items (for paging). */
2358
+ total: number;
2359
+ }
2360
+ interface StorefrontCollectionQuery {
2361
+ /** 1 to 200, default 100. */
2362
+ limit?: number;
2363
+ offset?: number;
2364
+ }
2328
2365
  /** Public definition of a form (`GET /forms/{slug}`). */
2329
2366
  interface StorefrontForm {
2330
2367
  slug: string;
@@ -3231,6 +3268,7 @@ declare class BehioStorefront {
3231
3268
  readonly pages: PagesModule;
3232
3269
  readonly blog: BlogModule;
3233
3270
  readonly forms: FormsModule;
3271
+ readonly collections: CollectionsModule;
3234
3272
  readonly wishlist: WishlistModule;
3235
3273
  readonly reviews: ReviewsModule;
3236
3274
  readonly returns: ReturnsModule;
@@ -3938,6 +3976,29 @@ declare class BlogModule {
3938
3976
  /** One published post with sanitised HTML content and related posts. */
3939
3977
  post(handle: string, slug: string, locale?: string): Promise<SdkResult<BlogPostDetail>>;
3940
3978
  }
3979
+ /**
3980
+ * Data collections: structured content the owner edits in Behio (team,
3981
+ * references, price list, FAQ, listings) and the site reads at runtime, so
3982
+ * no site needs its own database. Only public collections and published
3983
+ * items are returned. Cached by Behio and invalidated on every admin change.
3984
+ * Works with website keys that have no e-shop attached.
3985
+ */
3986
+ declare class CollectionsModule {
3987
+ private client;
3988
+ constructor(client: BehioStorefront);
3989
+ /**
3990
+ * One collection with its published items in the owner's order.
3991
+ * `limit` 1 to 200 (default 100), `offset` for paging; `total` is the
3992
+ * number of published items. 404 `be.collections.collectionNotFound` for an
3993
+ * unknown or private slug.
3994
+ */
3995
+ get(slug: string, query?: StorefrontCollectionQuery): Promise<SdkResult<StorefrontCollection>>;
3996
+ /**
3997
+ * One published item by its slug or id (detail page). 404
3998
+ * `be.collections.itemNotFound` for a draft or unknown item.
3999
+ */
4000
+ item(slug: string, itemSlugOrId: string): Promise<SdkResult<StorefrontCollectionItem>>;
4001
+ }
3941
4002
  /**
3942
4003
  * Merchant-defined forms (contact, demand, registration to an event...).
3943
4004
  * The definition is public and cacheable; a submit is validated server-side
@@ -4159,4 +4220,4 @@ declare function clearCartSummary(): void;
4159
4220
  /** Publish only authoritative current totals; server cart consumers call this after hydration and revalidation. */
4160
4221
  declare function publishCartSummary(summary: CartSummaryEvent): void;
4161
4222
 
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 };
4223
+ 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, type WishlistItem as cA, clearCartSummary as cB, err as cC, ok as cD, publishCartSummary as cE, toSdkError as cF, type SitemapEntry as ca, type StockBehavior as cb, type StockMode as cc, type StorefrontCollection as cd, type StorefrontCollectionField as ce, type StorefrontCollectionFieldType as cf, type StorefrontCollectionItem as cg, type StorefrontCollectionQuery as ch, type StorefrontForm as ci, type StorefrontFormFieldErrorCode as cj, type StorefrontFormFile as ck, type StorefrontFormSettings as cl, type StorefrontFormSubmitInput as cm, type StorefrontFormSubmitResult as cn, type StorefrontFormUpload as co, type SubmitQuoteInput as cp, type SubmitReturnInput as cq, type SubmitReviewInput as cr, type Subscription as cs, type SubscriptionAction as ct, type SubscriptionFrequency as cu, type SubscriptionItem as cv, type SubscriptionStatus as cw, type TaxBreakdownLine as cx, type VariantAxis as cy, type VariantAxisValue 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-CKg4F98v.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 StorefrontCollection, ce as StorefrontCollectionField, cf as StorefrontCollectionFieldType, cg as StorefrontCollectionItem, ch as StorefrontCollectionQuery, ci as StorefrontForm, cj as StorefrontFormFieldErrorCode, ck as StorefrontFormFile, cl as StorefrontFormSettings, cm as StorefrontFormSubmitInput, cn as StorefrontFormSubmitResult, co as StorefrontFormUpload, cp as SubmitQuoteInput, cq as SubmitReturnInput, cr as SubmitReviewInput, cs as Subscription, ct as SubscriptionAction, cu as SubscriptionFrequency, cv as SubscriptionItem, cw as SubscriptionStatus, cx as TaxBreakdownLine, cy as VariantAxis, cz as VariantAxisValue, cA as WishlistItem, cB as clearCartSummary, cC as err, cD as ok, cE as publishCartSummary, cF as toSdkError } from './client-CKg4F98v.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-CKg4F98v.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 StorefrontCollection, ce as StorefrontCollectionField, cf as StorefrontCollectionFieldType, cg as StorefrontCollectionItem, ch as StorefrontCollectionQuery, ci as StorefrontForm, cj as StorefrontFormFieldErrorCode, ck as StorefrontFormFile, cl as StorefrontFormSettings, cm as StorefrontFormSubmitInput, cn as StorefrontFormSubmitResult, co as StorefrontFormUpload, cp as SubmitQuoteInput, cq as SubmitReturnInput, cr as SubmitReviewInput, cs as Subscription, ct as SubscriptionAction, cu as SubscriptionFrequency, cv as SubscriptionItem, cw as SubscriptionStatus, cx as TaxBreakdownLine, cy as VariantAxis, cz as VariantAxisValue, cA as WishlistItem, cB as clearCartSummary, cC as err, cD as ok, cE as publishCartSummary, cF as toSdkError } from './client-CKg4F98v.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.",
@@ -500,6 +502,8 @@ var ERROR_MESSAGES = {
500
502
  },
501
503
  "sk": {
502
504
  "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.",
505
+ "be.collections.collectionNotFound": "Kolekcia sa nena\u0161la.",
506
+ "be.collections.itemNotFound": "Polo\u017Eka kolekcie sa nena\u0161la.",
503
507
  "be.common.notFound": "Toto u\u017E neexistuje.",
504
508
  "be.forms.consentRequired": "Bez s\xFAhlasu sa formul\xE1r ned\xE1 odosla\u0165.",
505
509
  "be.forms.fileFieldNotFound": "Formul\xE1r tak\xE9to pole pre s\xFAbor nem\xE1.",
@@ -762,6 +766,8 @@ var ERROR_MESSAGES = {
762
766
  },
763
767
  "en": {
764
768
  "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.",
769
+ "be.collections.collectionNotFound": "Collection not found.",
770
+ "be.collections.itemNotFound": "Collection item not found.",
765
771
  "be.common.notFound": "This no longer exists.",
766
772
  "be.forms.consentRequired": "The form cannot be sent without consent.",
767
773
  "be.forms.fileFieldNotFound": "This form has no such file field.",
@@ -1031,7 +1037,7 @@ var GENERIC = {
1031
1037
  en: "Something went wrong, please try again."
1032
1038
  };
1033
1039
  function bodyOf(err2) {
1034
- const body = err2 instanceof _chunkAOUXSMSRjs.BehioApiError ? err2.body : err2 && typeof err2 === "object" && "body" in err2 ? err2.body : err2;
1040
+ const body = err2 instanceof _chunkNBYEO5KCjs.BehioApiError ? err2.body : err2 && typeof err2 === "object" && "body" in err2 ? err2.body : err2;
1035
1041
  return body && typeof body === "object" ? body : null;
1036
1042
  }
1037
1043
  function errorCode(err2) {
@@ -1148,4 +1154,4 @@ function formFieldErrors(err2) {
1148
1154
 
1149
1155
 
1150
1156
 
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;
1157
+ 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;
package/dist/index.mjs CHANGED
@@ -12,7 +12,7 @@ import {
12
12
  ok,
13
13
  publishCartSummary,
14
14
  toSdkError
15
- } from "./chunk-AUH7KNL6.mjs";
15
+ } from "./chunk-N6YG4AJ4.mjs";
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.",
@@ -500,6 +502,8 @@ var ERROR_MESSAGES = {
500
502
  },
501
503
  "sk": {
502
504
  "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.",
505
+ "be.collections.collectionNotFound": "Kolekcia sa nena\u0161la.",
506
+ "be.collections.itemNotFound": "Polo\u017Eka kolekcie sa nena\u0161la.",
503
507
  "be.common.notFound": "Toto u\u017E neexistuje.",
504
508
  "be.forms.consentRequired": "Bez s\xFAhlasu sa formul\xE1r ned\xE1 odosla\u0165.",
505
509
  "be.forms.fileFieldNotFound": "Formul\xE1r tak\xE9to pole pre s\xFAbor nem\xE1.",
@@ -762,6 +766,8 @@ var ERROR_MESSAGES = {
762
766
  },
763
767
  "en": {
764
768
  "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.",
769
+ "be.collections.collectionNotFound": "Collection not found.",
770
+ "be.collections.itemNotFound": "Collection item not found.",
765
771
  "be.common.notFound": "This no longer exists.",
766
772
  "be.forms.consentRequired": "The form cannot be sent without consent.",
767
773
  "be.forms.fileFieldNotFound": "This form has no such file field.",
package/dist/next.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { p as BehioStorefrontConfig, B as BehioStorefront } from './client-Ddk-DIHi.mjs';
1
+ import { p as BehioStorefrontConfig, B as BehioStorefront } from './client-CKg4F98v.mjs';
2
2
 
3
3
  interface GetBehioOptions extends Partial<BehioStorefrontConfig> {
4
4
  /** Override the cart session cookie name (default: "behio_cart_session"). */
package/dist/next.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { p as BehioStorefrontConfig, B as BehioStorefront } from './client-Ddk-DIHi.js';
1
+ import { p as BehioStorefrontConfig, B as BehioStorefront } from './client-CKg4F98v.js';
2
2
 
3
3
  interface GetBehioOptions extends Partial<BehioStorefrontConfig> {
4
4
  /** Override the cart session cookie name (default: "behio_cart_session"). */
package/dist/next.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkAOUXSMSRjs = require('./chunk-AOUXSMSR.js');
3
+ var _chunkNBYEO5KCjs = require('./chunk-NBYEO5KC.js');
4
4
 
5
5
  // src/next.ts
6
6
  var _headers = require('next/headers');
@@ -19,7 +19,7 @@ async function getBehio(options = {}) {
19
19
  const locale = _nullishCoalesce(options.locale, () => ( process.env.BEHIO_LOCALE));
20
20
  const currency = _nullishCoalesce(options.currency, () => ( process.env.BEHIO_CURRENCY));
21
21
  const cookieName = _nullishCoalesce(options.cartCookieName, () => ( CART_COOKIE_NAME));
22
- const client = new (0, _chunkAOUXSMSRjs.BehioStorefront)({
22
+ const client = new (0, _chunkNBYEO5KCjs.BehioStorefront)({
23
23
  apiKey,
24
24
  ...baseUrl ? { baseUrl } : {},
25
25
  ...locale ? { locale } : {},
package/dist/next.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  BehioStorefront
3
- } from "./chunk-AUH7KNL6.mjs";
3
+ } from "./chunk-N6YG4AJ4.mjs";
4
4
 
5
5
  // src/next.ts
6
6
  import { cookies, headers } from "next/headers";