@behio/storefront-sdk 0.31.1 → 0.33.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.
@@ -100,7 +100,21 @@ interface CheckoutSettings {
100
100
  lowStockThreshold: number;
101
101
  /** Google Places address autocomplete is enabled; mount the UX when true. */
102
102
  addressAutocompleteEnabled: boolean;
103
+ /**
104
+ * How prices are presented to the customer (GAP-30):
105
+ * - `INCL_VAT` (default, B2C): catalog/cart prices already include VAT; the
106
+ * VAT breakdown is the portion contained within.
107
+ * - `EXCL_VAT` (B2B): prices are net; render "bez DPH" labels and show VAT
108
+ * added on top.
109
+ * - `CUSTOMER_CHOICE`: the customer toggles incl/excl.
110
+ * Pair with per-line `taxRate` + cart/order `taxBreakdown` to render VAT rows.
111
+ */
112
+ priceDisplay: PriceDisplay;
113
+ /** Shop default VAT rate (percent, e.g. 21) for labelling a single-rate cart. */
114
+ vatRate: number;
103
115
  }
116
+ /** Price presentation mode (Eshop.priceDisplay). See `CheckoutSettings.priceDisplay`. */
117
+ type PriceDisplay = "INCL_VAT" | "EXCL_VAT" | "CUSTOMER_CHOICE";
104
118
  interface ShopInfo {
105
119
  id: string;
106
120
  name: string;
@@ -125,6 +139,20 @@ interface ShopInfo {
125
139
  quotesEnabled: boolean;
126
140
  /** Full merchant checkout & cart contract. Honour these in cart + checkout. */
127
141
  checkout: CheckoutSettings;
142
+ /**
143
+ * Public shop identity for SEO / structured data (GAP-31). Reads of existing
144
+ * merchant data — feed into the Organization JSON-LD and degrade gracefully
145
+ * on nulls. Optional because cached ShopInfo payloads predating the field
146
+ * may still be served.
147
+ */
148
+ seo?: ShopSeoIdentity;
149
+ }
150
+ /** Public shop identity for SEO / structured data (GAP-31). */
151
+ interface ShopSeoIdentity {
152
+ /** Merchant shop description — Organization JSON-LD `description`. */
153
+ description: string | null;
154
+ /** Public contact e-mail (shop e-mail sender config) for ContactPoint. */
155
+ contactEmail: string | null;
128
156
  }
129
157
  interface NewsletterSubscribeInput {
130
158
  email: string;
@@ -233,11 +261,21 @@ interface ProductVariant {
233
261
  id: string;
234
262
  sku: string;
235
263
  name: string;
236
- attributes: Record<string, string>;
264
+ /**
265
+ * Axis name/value pairs identifying this variant (e.g.
266
+ * `[{name: 'Barva', value: 'červená'}]`) — matches the wire shape the API
267
+ * actually sends. Join to `ProductDetail.variantAxes` by name + value.
268
+ */
269
+ attributes: Array<{
270
+ name: string;
271
+ value: string;
272
+ }>;
237
273
  /** `null` when prices are gated behind login for guests (B2B mode). */
238
274
  price: ProductPrice | null;
239
275
  inStock: boolean;
240
- stockQuantity?: number;
276
+ /** Exact remaining stock, or `null` when the merchant hides the count
277
+ * (showStockCount off) — treat null as "unknown", never as 0. */
278
+ stockQuantity?: number | null;
241
279
  /** "Only X left" for this variant — same contract as ProductListItem.lowStockRemaining. */
242
280
  lowStockRemaining?: number | null;
243
281
  /**
@@ -290,7 +328,9 @@ interface ProductListItem {
290
328
  /** `null` when prices are gated behind login for guests (B2B mode). */
291
329
  price: ProductPrice | null;
292
330
  inStock: boolean;
293
- stockQuantity?: number;
331
+ /** Exact remaining stock, or `null` when the merchant hides the count
332
+ * (showStockCount off) — treat null as "unknown", never as 0. */
333
+ stockQuantity?: number | null;
294
334
  /**
295
335
  * "Zbývá posledních X kusů" nudge, computed SERVER-side. Non-null ONLY when
296
336
  * the merchant enabled the low-stock indicator AND 0 < stock <= threshold;
@@ -308,6 +348,57 @@ interface ProductListItem {
308
348
  } | null;
309
349
  labels: ProductLabel[];
310
350
  isFeatured: boolean;
351
+ /**
352
+ * Minimum order quantity (units); null/undefined = no minimum. Start the
353
+ * quantity stepper here — the server rejects add-to-cart / checkout below it.
354
+ */
355
+ minOrderQuantity?: number | null;
356
+ /**
357
+ * Order quantity step / multiple (units); null/undefined = any quantity. The
358
+ * stepper moves by this amount and the server rejects non-multiple quantities.
359
+ */
360
+ orderQuantityStep?: number | null;
361
+ /**
362
+ * Cheapest applicable auto-promotion for this product (GAP-13), or null. Same
363
+ * priority-based selection the checkout uses, so a card badge matches what the
364
+ * customer pays. Render a badge chip + a STATIC end date ("do 20. 7.") on
365
+ * cards; keep the live countdown on the PDP only (no per-card tickers).
366
+ */
367
+ activePromotion?: ProductPromotionSummary | null;
368
+ /**
369
+ * Rollover image URL for the card (GAP-27), from the product's HOVER-role
370
+ * image when the merchant set one. Null/absent = no hover image (show the
371
+ * cover only). Crossfade to it on desktop hover (opacity only, no transform).
372
+ */
373
+ hoverImageUrl?: string | null;
374
+ /**
375
+ * Aggregate rating from APPROVED reviews (GAP-23): mean 1-5 rating, or null
376
+ * when the product has no approved reviews. Server-computed + cached. Render
377
+ * gold stars only when `ratingCount > 0`; do NOT compute this from the
378
+ * paginated reviews endpoint.
379
+ */
380
+ ratingAverage?: number | null;
381
+ /** Number of approved reviews behind `ratingAverage` (0 when none). */
382
+ ratingCount?: number;
383
+ /**
384
+ * Last modification of the product record (epoch ms) — sitemap `lastmod`
385
+ * and `dateModified` structured data (GAP-31).
386
+ */
387
+ updatedAt?: number;
388
+ }
389
+ /** Display-only summary of the promotion winning for a card (GAP-13). */
390
+ interface ProductPromotionSummary {
391
+ promotionId: string;
392
+ /** Merchant badge label ("1+1"); null → render "-{discountValue} %" from the discount. */
393
+ badgeText: string | null;
394
+ /** Merchant hex badge color; null falls back to the shop's sale color. */
395
+ badgeColor: string | null;
396
+ discountType: 'PERCENTAGE' | 'FIXED_AMOUNT' | 'BUY_X_GET_Y';
397
+ discountValue: number;
398
+ /** Promotion end (epoch ms), or null for open-ended. */
399
+ endsAt: number | null;
400
+ /** Merchant opted into a countdown (the PDP shows a ticker; cards stay static). */
401
+ showCountdown: boolean;
311
402
  }
312
403
  /** A single responsive derivative (size + format) of a media image. */
313
404
  interface ProductMediaVariant {
@@ -333,13 +424,61 @@ interface ProductMedia {
333
424
  order: number;
334
425
  variants: ProductMediaVariant[];
335
426
  }
427
+ /** One value on a variant axis, with optional merchant-configured swatch data. */
428
+ interface VariantAxisValue {
429
+ /** Human-readable value; matches `variant.attributes[].value` on this axis. */
430
+ value: string;
431
+ /** Hex color for SWATCH_COLOR rendering. */
432
+ swatchColor: string | null;
433
+ /** Image URL for SWATCH_IMAGE rendering. */
434
+ swatchImage: string | null;
435
+ }
436
+ /**
437
+ * A variant axis ("Barva", "Velikost") with the merchant's display
438
+ * configuration. `displayType` is "BUTTON" when the merchant has not
439
+ * configured the axis (the storefront's historical default). Join to
440
+ * `variants[].attributes` by axis `name` + `value`.
441
+ */
442
+ interface VariantAxis {
443
+ name: string;
444
+ displayType: 'DROPDOWN' | 'BUTTON' | 'SWATCH_COLOR' | 'SWATCH_IMAGE';
445
+ order: number;
446
+ /** Values present among the purchasable variants, in admin-defined order. */
447
+ values: VariantAxisValue[];
448
+ }
449
+ /**
450
+ * One custom-field (data-group value) rendered as a spec-table row. BOOLEAN
451
+ * carries a typed `booleanValue` (value is null) so the storefront can localize
452
+ * Ano/Ne; MONEY carries its currency in `unit`; PERCENTAGE carries "%" in
453
+ * `unit`.
454
+ */
455
+ interface ProductCustomField {
456
+ key: string;
457
+ name: string;
458
+ /** TEXT | NUMBER | DECIMAL | BOOLEAN | DATE | TIME | DATETIME | PERCENTAGE | MONEY | ITEM_LIST | ... */
459
+ type: string;
460
+ value: string | null;
461
+ booleanValue: boolean | null;
462
+ unit: string | null;
463
+ }
464
+ /** A spec-table section (one inventory data group) with its fields. */
465
+ interface ProductCustomFieldGroup {
466
+ key: string;
467
+ name: string;
468
+ fields: ProductCustomField[];
469
+ }
336
470
  interface ProductDetail extends ProductListItem {
337
471
  longDescription?: string;
338
- /** @deprecated Legacy per-listing images. Prefer `media`. */
472
+ /**
473
+ * @deprecated Legacy per-listing images. Prefer `media`. Each carries its
474
+ * `role` (COVER | LISTING | HOVER | GALLERY) so the storefront can pick a
475
+ * specific image deliberately (GAP-27).
476
+ */
339
477
  images: Array<{
340
478
  url: string;
341
479
  alt?: string;
342
480
  order: number;
481
+ role?: string;
343
482
  }>;
344
483
  /** Product gallery (images + videos) with responsive derivatives. */
345
484
  media: ProductMedia[];
@@ -349,8 +488,21 @@ interface ProductDetail extends ProductListItem {
349
488
  name: string;
350
489
  }>;
351
490
  variants: ProductVariant[];
491
+ /**
492
+ * Variant axes with display config (dropdown / buttons / swatches).
493
+ * Empty when the product has no variants.
494
+ */
495
+ variantAxes: VariantAxis[];
352
496
  volumePricing: ProductVolumePrice[];
353
- customFields: Record<string, unknown>;
497
+ /**
498
+ * Structured product parameters from custom fields (inventory data groups),
499
+ * grouped into spec-table sections (GAP-12). Empty when the product has no
500
+ * data-group values. Distinct from `longDescription` (free HTML): this is
501
+ * machine-readable key/value data for a "Parametry" table + comparison
502
+ * engines. (Corrected from the old untyped `Record<string, unknown>` — the
503
+ * API never populated that; it now sends this structured shape.)
504
+ */
505
+ customFields: ProductCustomFieldGroup[];
354
506
  seo: {
355
507
  title?: string | null;
356
508
  description?: string | null;
@@ -368,6 +520,11 @@ interface ProductDetail extends ProductListItem {
368
520
  weight?: number | null;
369
521
  /** Weight unit: GRAM, KILOGRAM, TONNE */
370
522
  weightUnit?: string | null;
523
+ /**
524
+ * Digital product delivery (GAP-07): true when the product has at least one
525
+ * active digital asset (PDF, MP3, ...) delivered instantly after purchase.
526
+ */
527
+ isDigital?: boolean;
371
528
  }
372
529
  interface Category {
373
530
  id: string;
@@ -561,6 +718,12 @@ interface CartItemProduct {
561
718
  imageUrl?: string;
562
719
  inStock: boolean;
563
720
  currentPrice: number;
721
+ /** Minimum order quantity (units); null = no minimum. Clamp the cart
722
+ * stepper's lower bound to this (GAP-48). */
723
+ minOrderQuantity?: number | null;
724
+ /** Order quantity step/multiple (units); null = any. Move the cart stepper
725
+ * by this amount so quantities stay valid. */
726
+ orderQuantityStep?: number | null;
564
727
  }
565
728
  interface CartItem {
566
729
  id: string;
@@ -576,6 +739,27 @@ interface CartItem {
576
739
  totalPrice: number;
577
740
  priceChanged: boolean;
578
741
  volumePriceApplied: boolean;
742
+ /** VAT rate for this line in percent (e.g. 21). Estimated from the shop /
743
+ * product rate; refined by the shipping country at checkout (GAP-30). */
744
+ taxRate: number;
745
+ /** Net amount for this line (without VAT) = totalPrice. */
746
+ netAmount: number;
747
+ /** VAT amount for this line at `taxRate`. */
748
+ taxAmount: number;
749
+ /** Gross amount for this line (net + VAT). */
750
+ grossAmount: number;
751
+ }
752
+ /** One VAT rate's slice of a cart or order (GAP-30). Render "DPH {rate} %:
753
+ * {taxAmount}" summary rows from these. `netAmount + taxAmount = grossAmount`. */
754
+ interface TaxBreakdownLine {
755
+ /** VAT rate in percent, e.g. 21 or 12 or 0. */
756
+ rate: number;
757
+ /** Base amount (net, without VAT) taxed at this rate. */
758
+ netAmount: number;
759
+ /** VAT amount charged at this rate. */
760
+ taxAmount: number;
761
+ /** Gross amount (net + VAT) at this rate. */
762
+ grossAmount: number;
579
763
  }
580
764
  interface CartDiscount {
581
765
  code: string;
@@ -603,6 +787,12 @@ interface Cart {
603
787
  /** Sum of `appliedPromotions[].discountAmount`; already reflected in `grandTotal`. */
604
788
  promotionDiscountTotal: number;
605
789
  grandTotal: number;
790
+ /** Total VAT contained in / added to the cart across all lines (GAP-30). An
791
+ * estimate finalized at checkout once the shipping country is known. */
792
+ taxTotal: number;
793
+ /** VAT split by rate for "DPH 21 %: X Kč" summary rows. Empty for a
794
+ * non-VAT-payer shop. */
795
+ taxBreakdown: TaxBreakdownLine[];
606
796
  currency: string;
607
797
  itemCount: number;
608
798
  /** Applied gift cards (multi). They deduct at checkout (consumed in order, each
@@ -768,11 +958,21 @@ interface OrderDetail extends OrderListItem {
768
958
  customerNote?: string;
769
959
  subtotal: number;
770
960
  taxTotal: number;
961
+ /** VAT split by rate (GAP-30), summed from the order lines. Render
962
+ * "DPH 21 %: X Kč" rows. Empty for a non-VAT order. */
963
+ taxBreakdown: TaxBreakdownLine[];
771
964
  shippingTotal: number;
772
965
  discountTotal: number;
773
966
  fulfillmentStatus: FulfillmentStatus;
774
967
  statusHistory: OrderStatusHistory[];
775
968
  trackingToken?: string;
969
+ /**
970
+ * Digital product delivery (GAP-07): download grants for any digital assets
971
+ * on this order. Populated only for PAID orders; empty otherwise. Mint a
972
+ * short-lived signed URL with `customer.getDownloadUrl(id)` (logged in) or the
973
+ * guest order-access URL flow.
974
+ */
975
+ downloads: DigitalDownload[];
776
976
  /**
777
977
  * For redirect payment gateways (GoPay, ...), the hosted URL the
778
978
  * storefront must send the customer to in order to pay. Present only on
@@ -794,6 +994,46 @@ interface OrderAccessVerifyResponse {
794
994
  expiresIn: number;
795
995
  order: OrderDetail;
796
996
  }
997
+ /**
998
+ * A download grant: the right to fetch one digital asset (PDF, MP3, ...) that
999
+ * a customer purchased. Enforced budget: `downloadCount` of `maxDownloads`
1000
+ * (null = unlimited), optional `expiresAt`.
1001
+ */
1002
+ interface DigitalDownload {
1003
+ id: string;
1004
+ /** Order this grant originates from (null for legacy/manual grants). */
1005
+ orderId: string | null;
1006
+ fileName: string;
1007
+ /** Localized product name the file belongs to (may be null). */
1008
+ productName: string | null;
1009
+ /** Product slug for linking back to the PDP (may be null). */
1010
+ productSlug: string | null;
1011
+ fileSize: number;
1012
+ mimeType: string;
1013
+ version: string | null;
1014
+ downloadCount: number;
1015
+ /** Max downloads allowed (null = unlimited). */
1016
+ maxDownloads: number | null;
1017
+ /** Remaining downloads (null = unlimited). */
1018
+ remainingDownloads: number | null;
1019
+ lastDownloadAt: number | null;
1020
+ /** Access expiry (epoch ms, null = never expires). */
1021
+ expiresAt: number | null;
1022
+ isExpired: boolean;
1023
+ isMaxedOut: boolean;
1024
+ createdAt: number;
1025
+ }
1026
+ /** Short-lived signed URL to fetch a purchased digital file. */
1027
+ interface DownloadUrl {
1028
+ /** Short-lived (15 min) signed URL. */
1029
+ url: string;
1030
+ fileName: string;
1031
+ mimeType: string;
1032
+ fileSize: number;
1033
+ /** Remaining downloads after this one is counted (null = unlimited). */
1034
+ remainingDownloads: number | null;
1035
+ expiresAt: number | null;
1036
+ }
797
1037
  interface CustomerProfile {
798
1038
  id: string;
799
1039
  email: string;
@@ -801,6 +1041,14 @@ interface CustomerProfile {
801
1041
  lastName?: string;
802
1042
  phone?: string;
803
1043
  emailVerified: boolean;
1044
+ /**
1045
+ * B2B approval gate (GAP-19). `false` = the account is awaiting merchant
1046
+ * approval (or was deactivated) — show a "pending approval" banner and gate
1047
+ * ordering. `true` = approved / active. New registrations on a shop with
1048
+ * `requireRegistrationApproval` start unapproved and cannot log in until
1049
+ * approved (register returns `pendingApproval`).
1050
+ */
1051
+ isApproved: boolean;
804
1052
  }
805
1053
  interface CustomerAddress {
806
1054
  id: string;
@@ -819,6 +1067,8 @@ interface Page {
819
1067
  slug: string;
820
1068
  title: string;
821
1069
  isActive: boolean;
1070
+ /** Last modification of the page record (epoch ms) — sitemap `lastmod` (GAP-31). */
1071
+ updatedAt?: number;
822
1072
  }
823
1073
  interface PageDetail {
824
1074
  slug: string;
@@ -1194,6 +1444,34 @@ interface GiftCardBalance {
1194
1444
  balance: number;
1195
1445
  currency: string;
1196
1446
  }
1447
+ /** Customer gift card purchase (GAP-39): amount + recipient + optional payment method. */
1448
+ interface GiftCardPurchaseInput {
1449
+ /** Gift card value in whole units of the currency (50 to 50000). */
1450
+ amount: number;
1451
+ /** Must be supported by the shop; defaults to the shop default currency. */
1452
+ currency?: string;
1453
+ /** Buyer contact; owns the order and gets the order confirmation. */
1454
+ buyerEmail: string;
1455
+ /** Receives the gift card code once the order is paid. */
1456
+ recipientEmail: string;
1457
+ recipientName?: string;
1458
+ personalMessage?: string;
1459
+ /** Online payment method id (from listPaymentMethods) to start payment right away. */
1460
+ paymentMethodId?: string;
1461
+ locale?: string;
1462
+ }
1463
+ interface GiftCardPurchaseResult {
1464
+ orderId: string;
1465
+ orderNumber: string;
1466
+ grandTotal: number;
1467
+ currency: string;
1468
+ /**
1469
+ * Hosted gateway URL to pay the order, or null (offline method / no method /
1470
+ * gateway init failed). The gift card is generated and emailed to the
1471
+ * recipient only AFTER the order is paid.
1472
+ */
1473
+ paymentRedirectUrl: string | null;
1474
+ }
1197
1475
  interface WishlistItem {
1198
1476
  id: string;
1199
1477
  productId: string;
@@ -1205,6 +1483,46 @@ interface WishlistItem {
1205
1483
  stockCached: number;
1206
1484
  createdAt: number;
1207
1485
  }
1486
+ type SubscriptionStatus = "ACTIVE" | "PAUSED" | "CANCELLED" | "EXPIRED" | "PAYMENT_FAILED";
1487
+ type SubscriptionFrequency = "WEEKLY" | "BIWEEKLY" | "MONTHLY" | "BIMONTHLY" | "QUARTERLY" | "EVERY_6_MONTHS" | "YEARLY" | "CUSTOM_DAYS";
1488
+ interface SubscriptionItem {
1489
+ id: string;
1490
+ productId: string;
1491
+ product: {
1492
+ id: string;
1493
+ slug: string | null;
1494
+ };
1495
+ quantity: number;
1496
+ unitPriceSnapshot: number;
1497
+ currency: string;
1498
+ }
1499
+ interface Subscription {
1500
+ id: string;
1501
+ status: SubscriptionStatus;
1502
+ frequency: SubscriptionFrequency;
1503
+ /** For CUSTOM_DAYS frequency: order every N days. */
1504
+ customDays: number | null;
1505
+ /** Unix ms of the next scheduled order. */
1506
+ nextOrderAt: number;
1507
+ /** Unix ms of the last generated order, if any. */
1508
+ lastOrderAt: number | null;
1509
+ totalOrders: number;
1510
+ /** Max number of orders before the subscription expires (null = unlimited). */
1511
+ maxOrders: number | null;
1512
+ /** Subscriber discount percent applied to each generated order. */
1513
+ discountPercent: number | null;
1514
+ items: SubscriptionItem[];
1515
+ orderCount: number;
1516
+ createdAt: number;
1517
+ updatedAt: number;
1518
+ }
1519
+ interface SubscriptionAction {
1520
+ id: string;
1521
+ status: SubscriptionStatus;
1522
+ /** Present after resume — the newly scheduled next order (Unix ms). */
1523
+ nextOrderAt?: number | null;
1524
+ updatedAt: number;
1525
+ }
1208
1526
  interface ProductReview {
1209
1527
  id: string;
1210
1528
  authorName: string;
@@ -1408,6 +1726,7 @@ declare class BehioStorefront {
1408
1726
  readonly addresses: AddressModule;
1409
1727
  readonly shipping: ShippingModule;
1410
1728
  readonly newsletter: NewsletterModule;
1729
+ readonly subscriptions: SubscriptionsModule;
1411
1730
  /**
1412
1731
  * Called by the analytics tracker when the visitor grants (id) or revokes
1413
1732
  * (null) analytics consent. When set, requests carry the X-Behio-Vid header
@@ -1625,6 +1944,12 @@ declare class CatalogModule {
1625
1944
  }>>;
1626
1945
  /** Check a gift card code — returns validity and remaining balance */
1627
1946
  checkGiftCard(code: string): Promise<SdkResult<GiftCardBalance>>;
1947
+ /**
1948
+ * Buy a gift card (GAP-39): creates a cart-independent order for the chosen
1949
+ * amount. Redirect the customer to `paymentRedirectUrl` when present; the
1950
+ * code is generated and emailed to the recipient once the order is paid.
1951
+ */
1952
+ purchaseGiftCard(input: GiftCardPurchaseInput): Promise<SdkResult<GiftCardPurchaseResult>>;
1628
1953
  /** List configured payment methods (filtered by currency). */
1629
1954
  listPaymentMethods(opts?: {
1630
1955
  currency?: string;
@@ -1749,6 +2074,12 @@ declare class OrdersModule {
1749
2074
  * expires after 30 minutes.
1750
2075
  */
1751
2076
  getByAccessToken(accessToken: string): Promise<SdkResult<OrderDetail>>;
2077
+ /**
2078
+ * Guest digital download (GAP-07): mint a short-lived signed URL for a
2079
+ * download grant on a guest-accessed order, using the order-access token from
2080
+ * {@link verifyAccessCode}. Scoped to that one order.
2081
+ */
2082
+ getAccessDownloadUrl(accessToken: string, downloadId: string): Promise<SdkResult<DownloadUrl>>;
1752
2083
  }
1753
2084
  declare class CustomerModule {
1754
2085
  private client;
@@ -1775,6 +2106,20 @@ declare class CustomerModule {
1775
2106
  * recent transactions). Requires an authenticated customer session.
1776
2107
  */
1777
2108
  getLoyalty(): Promise<SdkResult<LoyaltySummary>>;
2109
+ /**
2110
+ * Digital product delivery (GAP-07): list the logged-in customer's download
2111
+ * grants across all their orders (file name, product, remaining downloads,
2112
+ * expiry). Requires an authenticated customer session.
2113
+ */
2114
+ getDownloads(): Promise<SdkResult<{
2115
+ items: DigitalDownload[];
2116
+ }>>;
2117
+ /**
2118
+ * Mint a short-lived signed URL for one download grant. Counts against the
2119
+ * grant's download budget and enforces the max-download + expiry limits
2120
+ * server-side. Requires an authenticated customer session.
2121
+ */
2122
+ getDownloadUrl(downloadId: string): Promise<SdkResult<DownloadUrl>>;
1778
2123
  }
1779
2124
  declare class PagesModule {
1780
2125
  private client;
@@ -1802,6 +2147,24 @@ declare class WishlistModule {
1802
2147
  inWishlist: boolean;
1803
2148
  }>>;
1804
2149
  }
2150
+ declare class SubscriptionsModule {
2151
+ private client;
2152
+ constructor(client: BehioStorefront);
2153
+ /**
2154
+ * List the logged-in customer's recurring-order subscriptions (products,
2155
+ * cadence, next order date, status). Requires an authenticated customer
2156
+ * session. Subscriptions are created by the merchant in v1.
2157
+ */
2158
+ list(): Promise<SdkResult<{
2159
+ items: Subscription[];
2160
+ }>>;
2161
+ /** Pause an active subscription (no orders are generated while paused). */
2162
+ pause(subscriptionId: string): Promise<SdkResult<SubscriptionAction>>;
2163
+ /** Resume a paused subscription (re-schedules the next order). */
2164
+ resume(subscriptionId: string): Promise<SdkResult<SubscriptionAction>>;
2165
+ /** Cancel a subscription permanently (no more orders). */
2166
+ cancel(subscriptionId: string): Promise<SdkResult<SubscriptionAction>>;
2167
+ }
1805
2168
  declare class ReviewsModule {
1806
2169
  private client;
1807
2170
  constructor(client: BehioStorefront);
@@ -1843,6 +2206,14 @@ declare class QuotesModule {
1843
2206
  /** Email is the ownership gate — quotes carry contact PII and negotiated
1844
2207
  * prices, so the id alone is never enough. POST keeps it out of URLs. */
1845
2208
  getStatus(quoteId: string, email: string): Promise<SdkResult<QuoteRequest>>;
2209
+ /**
2210
+ * The logged-in customer's own quote requests ("Moje poptávky", GAP-18).
2211
+ * Requires an authenticated session; ownership is the auth token (customer id
2212
+ * + verified email), never a payload. Newest first.
2213
+ */
2214
+ listMine(): Promise<SdkResult<{
2215
+ items: QuoteRequest[];
2216
+ }>>;
1846
2217
  }
1847
2218
  interface AddressSuggestion {
1848
2219
  placeId: string;
@@ -1939,4 +2310,4 @@ declare class NewsletterModule {
1939
2310
  unsubscribe(email: string): Promise<SdkResult<NewsletterUnsubscribeResult>>;
1940
2311
  }
1941
2312
 
1942
- export { type BundleItem as $, type AddressSuggestion as A, type BehioStorefrontConfig as B, type Category as C, type ProductReviewsResponse as D, type SubmitReviewInput as E, type FilterField as F, type GiftCardBalance as G, type ReturnableOrder as H, type ReturnStatus as I, type ReturnRequest as J, type SubmitReturnInput as K, type LoyaltySummary as L, type Menu as M, type NewsletterSubscribeResult as N, type OrderListItem as O, type ProductsQuery as P, type CookieConsent as Q, type RegisterInput as R, type ShopInfo as S, type CookieConsentInput as T, type QuoteRequest as U, type SubmitQuoteInput as V, type WishlistItem as W, type BackInStockSubscription as X, type AddToCartInput as Y, type AuthTokens as Z, BehioApiError as _, BehioStorefront as a, type ShippingQuoteInput as a$, type CartDiscount as a0, type CartItem as a1, type CheckoutAddress as a2, type FulfillmentStatus as a3, type LoginInput as a4, type MessageResponse as a5, type OrderItem as a6, type OrderStatus as a7, type PaymentStatus as a8, type ProductPrice as a9, type MenuItemType as aA, type NewsletterOptInDefault as aB, type OrderStatusHistory as aC, OrderStatuses as aD, type OrderTracking as aE, type PageAttachment as aF, PaymentStatuses as aG, type PickupPointHours as aH, type ProductAvailability as aI, type ProductMedia as aJ, type ProductMediaVariant as aK, ProductSort as aL, type ProductSortValue as aM, type ProductVolumePrice as aN, type QuoteItem as aO, type RegisterResult as aP, type RequestInterceptor as aQ, type RequestInterceptorConfig as aR, type ResponseInterceptor as aS, type ResponseInterceptorData as aT, type ReturnRequestItem as aU, type ReturnStatusItem as aV, type ReturnableOrderItem as aW, type SdkError as aX, type SdkResult as aY, type ShippingMethodSummary as aZ, type ShippingQuote as a_, type ProductReview as aa, type ProductVariant as ab, type AddressType as ac, AddressTypes as ad, type BadgeTone as ae, type BehioErrorCode as af, type BehioEventHandler as ag, type BehioEventType as ah, BehioNetworkError as ai, type CartBundleLine as aj, type CartBundleLineItem as ak, type CartItemProduct as al, type CartPromotion as am, type CheckoutPaymentMethod as an, type CheckoutSettings as ao, type DataGroupFieldType as ap, FulfillmentStatuses as aq, type GiftCardSummary as ar, type LoyaltyBalance as as, type LoyaltyNextTier as at, type LoyaltyProgram as au, type LoyaltyTier as av, type LoyaltyTierPerks as aw, type LoyaltyTransaction as ax, type MenuItem as ay, type MenuItemRef as az, type PaginatedResponse as b, type ShopScript as b0, type ShopScriptPlacement as b1, type ShopScriptType as b2, type StockBehavior as b3, err as b4, ok as b5, toSdkError as b6, type ProductListItem as c, type ProductDetail as d, type CategoryDetail as e, type ProductLabel as f, type Cart as g, type CustomerProfile as h, type CustomerAddress as i, type AddressDetail as j, type PickupPointsInput as k, type PickupPoint as l, type NewsletterSubscribeInput as m, type NewsletterUnsubscribeResult as n, type OrderDetail as o, type OrderAccessRequestResponse as p, type OrderAccessVerifyResponse as q, type CheckoutInput as r, type PageDetail as s, type Page as t, type ShopScripts as u, type ShopSeo as v, type Bundle as w, type ProductGroup as x, type CrossSellItem as y, type ActivePromotion as z };
2313
+ export { type QuoteRequest as $, type AddressSuggestion as A, type BehioStorefrontConfig as B, type Category as C, type ShopScripts as D, type ShopSeo as E, type FilterField as F, type Bundle as G, type ProductGroup as H, type CrossSellItem as I, type ActivePromotion as J, type GiftCardBalance as K, type LoyaltySummary as L, type Menu as M, type NewsletterSubscribeResult as N, type OrderListItem as O, type ProductsQuery as P, type ProductReviewsResponse as Q, type RegisterInput as R, type Subscription as S, type SubmitReviewInput as T, type ReturnableOrder as U, type ReturnStatus as V, type WishlistItem as W, type ReturnRequest as X, type SubmitReturnInput as Y, type CookieConsent as Z, type CookieConsentInput as _, BehioStorefront as a, type QuoteItem as a$, type SubmitQuoteInput as a0, type BackInStockSubscription as a1, type AddToCartInput as a2, type AuthTokens as a3, BehioApiError as a4, type BundleItem as a5, type CartDiscount as a6, type CartItem as a7, type CheckoutAddress as a8, type FulfillmentStatus as a9, type GiftCardSummary as aA, type LoyaltyBalance as aB, type LoyaltyNextTier as aC, type LoyaltyProgram as aD, type LoyaltyTier as aE, type LoyaltyTierPerks as aF, type LoyaltyTransaction as aG, type MenuItem as aH, type MenuItemRef as aI, type MenuItemType as aJ, type NewsletterOptInDefault as aK, type OrderStatusHistory as aL, OrderStatuses as aM, type OrderTracking as aN, type PageAttachment as aO, PaymentStatuses as aP, type PickupPointHours as aQ, type PriceDisplay as aR, type ProductAvailability as aS, type ProductCustomField as aT, type ProductCustomFieldGroup as aU, type ProductMedia as aV, type ProductMediaVariant as aW, type ProductPromotionSummary as aX, ProductSort as aY, type ProductSortValue as aZ, type ProductVolumePrice as a_, type LoginInput as aa, type MessageResponse as ab, type OrderItem as ac, type OrderStatus as ad, type PaymentStatus as ae, type ProductPrice as af, type ProductReview as ag, type ProductVariant as ah, type AddressType as ai, AddressTypes as aj, type BadgeTone as ak, type BehioErrorCode as al, type BehioEventHandler as am, type BehioEventType as an, BehioNetworkError as ao, type CartBundleLine as ap, type CartBundleLineItem as aq, type CartItemProduct as ar, type CartPromotion as as, type CheckoutSettings as at, type DataGroupFieldType as au, type DigitalDownload as av, type DownloadUrl as aw, FulfillmentStatuses as ax, type GiftCardPurchaseInput as ay, type GiftCardPurchaseResult as az, type PaginatedResponse as b, type RegisterResult as b0, type RequestInterceptor as b1, type RequestInterceptorConfig as b2, type ResponseInterceptor as b3, type ResponseInterceptorData as b4, type ReturnRequestItem as b5, type ReturnStatusItem as b6, type ReturnableOrderItem as b7, type SdkError as b8, type SdkResult as b9, type ShopScript as ba, type ShopScriptPlacement as bb, type ShopScriptType as bc, type ShopSeoIdentity as bd, type StockBehavior as be, type SubscriptionFrequency as bf, type SubscriptionItem as bg, type SubscriptionStatus as bh, type TaxBreakdownLine as bi, type VariantAxis as bj, type VariantAxisValue as bk, err as bl, ok as bm, toSdkError as bn, type ProductListItem as c, type ProductDetail as d, type CategoryDetail as e, type ProductLabel as f, type Cart as g, type CustomerProfile as h, type CustomerAddress as i, type AddressDetail as j, type SubscriptionAction as k, type PickupPointsInput as l, type PickupPoint as m, type ShippingMethodSummary as n, type ShippingQuoteInput as o, type ShippingQuote as p, type CheckoutPaymentMethod as q, type NewsletterSubscribeInput as r, type NewsletterUnsubscribeResult as s, type OrderDetail as t, type OrderAccessRequestResponse as u, type OrderAccessVerifyResponse as v, type CheckoutInput as w, type PageDetail as x, type Page as y, type ShopInfo as z };
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- export { z as ActivePromotion, Y as AddToCartInput, j as AddressDetail, A as AddressSuggestion, ac as AddressType, ad as AddressTypes, Z as AuthTokens, X as BackInStockSubscription, ae as BadgeTone, _ as BehioApiError, af as BehioErrorCode, ag as BehioEventHandler, ah as BehioEventType, ai as BehioNetworkError, a as BehioStorefront, B as BehioStorefrontConfig, w as Bundle, $ as BundleItem, g as Cart, aj as CartBundleLine, ak as CartBundleLineItem, a0 as CartDiscount, a1 as CartItem, al as CartItemProduct, am as CartPromotion, C as Category, e as CategoryDetail, a2 as CheckoutAddress, r as CheckoutInput, an as CheckoutPaymentMethod, ao as CheckoutSettings, Q as CookieConsent, T as CookieConsentInput, y as CrossSellItem, i as CustomerAddress, h as CustomerProfile, ap as DataGroupFieldType, F as FilterField, a3 as FulfillmentStatus, aq as FulfillmentStatuses, G as GiftCardBalance, ar as GiftCardSummary, a4 as LoginInput, as as LoyaltyBalance, at as LoyaltyNextTier, au as LoyaltyProgram, L as LoyaltySummary, av as LoyaltyTier, aw as LoyaltyTierPerks, ax as LoyaltyTransaction, M as Menu, ay as MenuItem, az as MenuItemRef, aA as MenuItemType, a5 as MessageResponse, aB as NewsletterOptInDefault, m as NewsletterSubscribeInput, N as NewsletterSubscribeResult, n as NewsletterUnsubscribeResult, p as OrderAccessRequestResponse, q as OrderAccessVerifyResponse, o as OrderDetail, a6 as OrderItem, O as OrderListItem, a7 as OrderStatus, aC as OrderStatusHistory, aD as OrderStatuses, aE as OrderTracking, t as Page, aF as PageAttachment, s as PageDetail, b as PaginatedResponse, a8 as PaymentStatus, aG as PaymentStatuses, l as PickupPoint, aH as PickupPointHours, k as PickupPointsInput, aI as ProductAvailability, d as ProductDetail, x as ProductGroup, f as ProductLabel, c as ProductListItem, aJ as ProductMedia, aK as ProductMediaVariant, a9 as ProductPrice, aa as ProductReview, D as ProductReviewsResponse, aL as ProductSort, aM as ProductSortValue, ab as ProductVariant, aN as ProductVolumePrice, P as ProductsQuery, aO as QuoteItem, U as QuoteRequest, R as RegisterInput, aP as RegisterResult, aQ as RequestInterceptor, aR as RequestInterceptorConfig, aS as ResponseInterceptor, aT as ResponseInterceptorData, J as ReturnRequest, aU as ReturnRequestItem, I as ReturnStatus, aV as ReturnStatusItem, H as ReturnableOrder, aW as ReturnableOrderItem, aX as SdkError, aY as SdkResult, aZ as ShippingMethodSummary, a_ as ShippingQuote, a$ as ShippingQuoteInput, S as ShopInfo, b0 as ShopScript, b1 as ShopScriptPlacement, b2 as ShopScriptType, u as ShopScripts, v as ShopSeo, b3 as StockBehavior, V as SubmitQuoteInput, K as SubmitReturnInput, E as SubmitReviewInput, W as WishlistItem, b4 as err, b5 as ok, b6 as toSdkError } from './client-D1GZSa-N.mjs';
1
+ export { J as ActivePromotion, a2 as AddToCartInput, j as AddressDetail, A as AddressSuggestion, ai as AddressType, aj as AddressTypes, a3 as AuthTokens, a1 as BackInStockSubscription, ak as BadgeTone, a4 as BehioApiError, al as BehioErrorCode, am as BehioEventHandler, an as BehioEventType, ao as BehioNetworkError, a as BehioStorefront, B as BehioStorefrontConfig, G as Bundle, a5 as BundleItem, g as Cart, ap as CartBundleLine, aq as CartBundleLineItem, a6 as CartDiscount, a7 as CartItem, ar as CartItemProduct, as as CartPromotion, C as Category, e as CategoryDetail, a8 as CheckoutAddress, w as CheckoutInput, q as CheckoutPaymentMethod, at as CheckoutSettings, Z as CookieConsent, _ as CookieConsentInput, I as CrossSellItem, i as CustomerAddress, h as CustomerProfile, au as DataGroupFieldType, av as DigitalDownload, aw as DownloadUrl, F as FilterField, a9 as FulfillmentStatus, ax as FulfillmentStatuses, K as GiftCardBalance, ay as GiftCardPurchaseInput, az as GiftCardPurchaseResult, aA as GiftCardSummary, aa as LoginInput, aB as LoyaltyBalance, aC as LoyaltyNextTier, aD as LoyaltyProgram, L as LoyaltySummary, aE as LoyaltyTier, aF as LoyaltyTierPerks, aG as LoyaltyTransaction, M as Menu, aH as MenuItem, aI as MenuItemRef, aJ as MenuItemType, ab as MessageResponse, aK as NewsletterOptInDefault, r as NewsletterSubscribeInput, N as NewsletterSubscribeResult, s as NewsletterUnsubscribeResult, u as OrderAccessRequestResponse, v as OrderAccessVerifyResponse, t as OrderDetail, ac as OrderItem, O as OrderListItem, ad as OrderStatus, aL as OrderStatusHistory, aM as OrderStatuses, aN as OrderTracking, y as Page, aO as PageAttachment, x as PageDetail, b as PaginatedResponse, ae as PaymentStatus, aP as PaymentStatuses, m as PickupPoint, aQ as PickupPointHours, l as PickupPointsInput, aR as PriceDisplay, aS as ProductAvailability, aT as ProductCustomField, aU as ProductCustomFieldGroup, d as ProductDetail, H as ProductGroup, f as ProductLabel, c as ProductListItem, aV as ProductMedia, aW as ProductMediaVariant, af as ProductPrice, aX as ProductPromotionSummary, ag as ProductReview, Q as ProductReviewsResponse, aY as ProductSort, aZ as ProductSortValue, ah as ProductVariant, a_ as ProductVolumePrice, P as ProductsQuery, a$ as QuoteItem, $ as QuoteRequest, R as RegisterInput, b0 as RegisterResult, b1 as RequestInterceptor, b2 as RequestInterceptorConfig, b3 as ResponseInterceptor, b4 as ResponseInterceptorData, X as ReturnRequest, b5 as ReturnRequestItem, V as ReturnStatus, b6 as ReturnStatusItem, U as ReturnableOrder, b7 as ReturnableOrderItem, b8 as SdkError, b9 as SdkResult, n as ShippingMethodSummary, p as ShippingQuote, o as ShippingQuoteInput, z as ShopInfo, ba as ShopScript, bb as ShopScriptPlacement, bc as ShopScriptType, D as ShopScripts, E as ShopSeo, bd as ShopSeoIdentity, be as StockBehavior, a0 as SubmitQuoteInput, Y as SubmitReturnInput, T as SubmitReviewInput, S as Subscription, k as SubscriptionAction, bf as SubscriptionFrequency, bg as SubscriptionItem, bh as SubscriptionStatus, bi as TaxBreakdownLine, bj as VariantAxis, bk as VariantAxisValue, W as WishlistItem, bl as err, bm as ok, bn as toSdkError } from './client-BQlF_Vn9.mjs';
2
2
 
3
3
  /**
4
4
  * Format a price amount with currency using Intl.NumberFormat.
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { z as ActivePromotion, Y as AddToCartInput, j as AddressDetail, A as AddressSuggestion, ac as AddressType, ad as AddressTypes, Z as AuthTokens, X as BackInStockSubscription, ae as BadgeTone, _ as BehioApiError, af as BehioErrorCode, ag as BehioEventHandler, ah as BehioEventType, ai as BehioNetworkError, a as BehioStorefront, B as BehioStorefrontConfig, w as Bundle, $ as BundleItem, g as Cart, aj as CartBundleLine, ak as CartBundleLineItem, a0 as CartDiscount, a1 as CartItem, al as CartItemProduct, am as CartPromotion, C as Category, e as CategoryDetail, a2 as CheckoutAddress, r as CheckoutInput, an as CheckoutPaymentMethod, ao as CheckoutSettings, Q as CookieConsent, T as CookieConsentInput, y as CrossSellItem, i as CustomerAddress, h as CustomerProfile, ap as DataGroupFieldType, F as FilterField, a3 as FulfillmentStatus, aq as FulfillmentStatuses, G as GiftCardBalance, ar as GiftCardSummary, a4 as LoginInput, as as LoyaltyBalance, at as LoyaltyNextTier, au as LoyaltyProgram, L as LoyaltySummary, av as LoyaltyTier, aw as LoyaltyTierPerks, ax as LoyaltyTransaction, M as Menu, ay as MenuItem, az as MenuItemRef, aA as MenuItemType, a5 as MessageResponse, aB as NewsletterOptInDefault, m as NewsletterSubscribeInput, N as NewsletterSubscribeResult, n as NewsletterUnsubscribeResult, p as OrderAccessRequestResponse, q as OrderAccessVerifyResponse, o as OrderDetail, a6 as OrderItem, O as OrderListItem, a7 as OrderStatus, aC as OrderStatusHistory, aD as OrderStatuses, aE as OrderTracking, t as Page, aF as PageAttachment, s as PageDetail, b as PaginatedResponse, a8 as PaymentStatus, aG as PaymentStatuses, l as PickupPoint, aH as PickupPointHours, k as PickupPointsInput, aI as ProductAvailability, d as ProductDetail, x as ProductGroup, f as ProductLabel, c as ProductListItem, aJ as ProductMedia, aK as ProductMediaVariant, a9 as ProductPrice, aa as ProductReview, D as ProductReviewsResponse, aL as ProductSort, aM as ProductSortValue, ab as ProductVariant, aN as ProductVolumePrice, P as ProductsQuery, aO as QuoteItem, U as QuoteRequest, R as RegisterInput, aP as RegisterResult, aQ as RequestInterceptor, aR as RequestInterceptorConfig, aS as ResponseInterceptor, aT as ResponseInterceptorData, J as ReturnRequest, aU as ReturnRequestItem, I as ReturnStatus, aV as ReturnStatusItem, H as ReturnableOrder, aW as ReturnableOrderItem, aX as SdkError, aY as SdkResult, aZ as ShippingMethodSummary, a_ as ShippingQuote, a$ as ShippingQuoteInput, S as ShopInfo, b0 as ShopScript, b1 as ShopScriptPlacement, b2 as ShopScriptType, u as ShopScripts, v as ShopSeo, b3 as StockBehavior, V as SubmitQuoteInput, K as SubmitReturnInput, E as SubmitReviewInput, W as WishlistItem, b4 as err, b5 as ok, b6 as toSdkError } from './client-D1GZSa-N.js';
1
+ export { J as ActivePromotion, a2 as AddToCartInput, j as AddressDetail, A as AddressSuggestion, ai as AddressType, aj as AddressTypes, a3 as AuthTokens, a1 as BackInStockSubscription, ak as BadgeTone, a4 as BehioApiError, al as BehioErrorCode, am as BehioEventHandler, an as BehioEventType, ao as BehioNetworkError, a as BehioStorefront, B as BehioStorefrontConfig, G as Bundle, a5 as BundleItem, g as Cart, ap as CartBundleLine, aq as CartBundleLineItem, a6 as CartDiscount, a7 as CartItem, ar as CartItemProduct, as as CartPromotion, C as Category, e as CategoryDetail, a8 as CheckoutAddress, w as CheckoutInput, q as CheckoutPaymentMethod, at as CheckoutSettings, Z as CookieConsent, _ as CookieConsentInput, I as CrossSellItem, i as CustomerAddress, h as CustomerProfile, au as DataGroupFieldType, av as DigitalDownload, aw as DownloadUrl, F as FilterField, a9 as FulfillmentStatus, ax as FulfillmentStatuses, K as GiftCardBalance, ay as GiftCardPurchaseInput, az as GiftCardPurchaseResult, aA as GiftCardSummary, aa as LoginInput, aB as LoyaltyBalance, aC as LoyaltyNextTier, aD as LoyaltyProgram, L as LoyaltySummary, aE as LoyaltyTier, aF as LoyaltyTierPerks, aG as LoyaltyTransaction, M as Menu, aH as MenuItem, aI as MenuItemRef, aJ as MenuItemType, ab as MessageResponse, aK as NewsletterOptInDefault, r as NewsletterSubscribeInput, N as NewsletterSubscribeResult, s as NewsletterUnsubscribeResult, u as OrderAccessRequestResponse, v as OrderAccessVerifyResponse, t as OrderDetail, ac as OrderItem, O as OrderListItem, ad as OrderStatus, aL as OrderStatusHistory, aM as OrderStatuses, aN as OrderTracking, y as Page, aO as PageAttachment, x as PageDetail, b as PaginatedResponse, ae as PaymentStatus, aP as PaymentStatuses, m as PickupPoint, aQ as PickupPointHours, l as PickupPointsInput, aR as PriceDisplay, aS as ProductAvailability, aT as ProductCustomField, aU as ProductCustomFieldGroup, d as ProductDetail, H as ProductGroup, f as ProductLabel, c as ProductListItem, aV as ProductMedia, aW as ProductMediaVariant, af as ProductPrice, aX as ProductPromotionSummary, ag as ProductReview, Q as ProductReviewsResponse, aY as ProductSort, aZ as ProductSortValue, ah as ProductVariant, a_ as ProductVolumePrice, P as ProductsQuery, a$ as QuoteItem, $ as QuoteRequest, R as RegisterInput, b0 as RegisterResult, b1 as RequestInterceptor, b2 as RequestInterceptorConfig, b3 as ResponseInterceptor, b4 as ResponseInterceptorData, X as ReturnRequest, b5 as ReturnRequestItem, V as ReturnStatus, b6 as ReturnStatusItem, U as ReturnableOrder, b7 as ReturnableOrderItem, b8 as SdkError, b9 as SdkResult, n as ShippingMethodSummary, p as ShippingQuote, o as ShippingQuoteInput, z as ShopInfo, ba as ShopScript, bb as ShopScriptPlacement, bc as ShopScriptType, D as ShopScripts, E as ShopSeo, bd as ShopSeoIdentity, be as StockBehavior, a0 as SubmitQuoteInput, Y as SubmitReturnInput, T as SubmitReviewInput, S as Subscription, k as SubscriptionAction, bf as SubscriptionFrequency, bg as SubscriptionItem, bh as SubscriptionStatus, bi as TaxBreakdownLine, bj as VariantAxis, bk as VariantAxisValue, W as WishlistItem, bl as err, bm as ok, bn as toSdkError } from './client-BQlF_Vn9.js';
2
2
 
3
3
  /**
4
4
  * Format a price amount with currency using Intl.NumberFormat.
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ var _chunkJIAOZ5YWjs = require('./chunk-JIAOZ5YW.js');
14
14
 
15
15
 
16
16
 
17
- var _chunkNG46DR3Ajs = require('./chunk-NG46DR3A.js');
17
+ var _chunkY4ZCK5HDjs = require('./chunk-Y4ZCK5HD.js');
18
18
 
19
19
 
20
20
 
@@ -29,4 +29,4 @@ var _chunkNG46DR3Ajs = require('./chunk-NG46DR3A.js');
29
29
 
30
30
 
31
31
 
32
- exports.AddressTypes = _chunkNG46DR3Ajs.AddressTypes; exports.BehioApiError = _chunkNG46DR3Ajs.BehioApiError; exports.BehioNetworkError = _chunkNG46DR3Ajs.BehioNetworkError; exports.BehioStorefront = _chunkNG46DR3Ajs.BehioStorefront; exports.FulfillmentStatuses = _chunkNG46DR3Ajs.FulfillmentStatuses; exports.OrderStatuses = _chunkNG46DR3Ajs.OrderStatuses; exports.PaymentStatuses = _chunkNG46DR3Ajs.PaymentStatuses; exports.ProductSort = _chunkNG46DR3Ajs.ProductSort; exports.err = _chunkNG46DR3Ajs.err; exports.formatPrice = _chunkJIAOZ5YWjs.formatPrice; exports.ok = _chunkNG46DR3Ajs.ok; exports.toSdkError = _chunkNG46DR3Ajs.toSdkError; exports.trackEcommerceEvent = _chunkJIAOZ5YWjs.trackEcommerceEvent;
32
+ exports.AddressTypes = _chunkY4ZCK5HDjs.AddressTypes; exports.BehioApiError = _chunkY4ZCK5HDjs.BehioApiError; exports.BehioNetworkError = _chunkY4ZCK5HDjs.BehioNetworkError; exports.BehioStorefront = _chunkY4ZCK5HDjs.BehioStorefront; exports.FulfillmentStatuses = _chunkY4ZCK5HDjs.FulfillmentStatuses; exports.OrderStatuses = _chunkY4ZCK5HDjs.OrderStatuses; exports.PaymentStatuses = _chunkY4ZCK5HDjs.PaymentStatuses; exports.ProductSort = _chunkY4ZCK5HDjs.ProductSort; exports.err = _chunkY4ZCK5HDjs.err; exports.formatPrice = _chunkJIAOZ5YWjs.formatPrice; exports.ok = _chunkY4ZCK5HDjs.ok; exports.toSdkError = _chunkY4ZCK5HDjs.toSdkError; exports.trackEcommerceEvent = _chunkJIAOZ5YWjs.trackEcommerceEvent;
package/dist/index.mjs CHANGED
@@ -14,7 +14,7 @@ import {
14
14
  err,
15
15
  ok,
16
16
  toSdkError
17
- } from "./chunk-O7HDB5R4.mjs";
17
+ } from "./chunk-5KJDVDUM.mjs";
18
18
  export {
19
19
  AddressTypes,
20
20
  BehioApiError,
package/dist/next.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { B as BehioStorefrontConfig, a as BehioStorefront } from './client-D1GZSa-N.mjs';
1
+ import { B as BehioStorefrontConfig, a as BehioStorefront } from './client-BQlF_Vn9.mjs';
2
2
 
3
3
  interface GetBehioOptions extends Partial<BehioStorefrontConfig> {
4
4
  /** Override the cart session cookie name (default: "behio_cart_session"). */
package/dist/next.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { B as BehioStorefrontConfig, a as BehioStorefront } from './client-D1GZSa-N.js';
1
+ import { B as BehioStorefrontConfig, a as BehioStorefront } from './client-BQlF_Vn9.js';
2
2
 
3
3
  interface GetBehioOptions extends Partial<BehioStorefrontConfig> {
4
4
  /** Override the cart session cookie name (default: "behio_cart_session"). */