@behio/storefront-sdk 2.28.0 → 2.30.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.
@@ -48,6 +48,7 @@ var BE_CODE_TO_ERROR = {
48
48
  "be.storefront.discountNotApplicable": "INVALID_DISCOUNT",
49
49
  "be.storefront.discountNotYetValid": "INVALID_DISCOUNT",
50
50
  "be.storefront.discountUsageLimitReached": "INVALID_DISCOUNT",
51
+ "be.storefront.personalDiscountNotEligible": "INVALID_DISCOUNT",
51
52
  "be.storefront.discountLimitedToGroups": "INVALID_DISCOUNT",
52
53
  "be.storefront.tokenInvalid": "TOKEN_INVALID",
53
54
  "be.storefront.orderAccessTokenInvalid": "TOKEN_INVALID",
@@ -1955,6 +1956,10 @@ var FormsModule = class {
1955
1956
  constructor(client) {
1956
1957
  this.client = client;
1957
1958
  }
1959
+ /** Only active, published placements. Internal delivery/CRM settings never leave the server. */
1960
+ async placements() {
1961
+ return this.client.request("GET", "/forms");
1962
+ }
1958
1963
  /** Public definition of one form (fields + settings). 404 for an unknown or inactive slug. */
1959
1964
  async get(slug) {
1960
1965
  return this.client.request(
@@ -2315,6 +2320,12 @@ var NewsletterModule = class {
2315
2320
  }
2316
2321
  );
2317
2322
  }
2323
+ async confirm(token) {
2324
+ return this.client.request("POST", "/newsletter/confirm", {
2325
+ body: { token },
2326
+ auth: false
2327
+ });
2328
+ }
2318
2329
  async unsubscribe(email) {
2319
2330
  return this.client.request(
2320
2331
  "POST",
@@ -48,6 +48,7 @@ var BE_CODE_TO_ERROR = {
48
48
  "be.storefront.discountNotApplicable": "INVALID_DISCOUNT",
49
49
  "be.storefront.discountNotYetValid": "INVALID_DISCOUNT",
50
50
  "be.storefront.discountUsageLimitReached": "INVALID_DISCOUNT",
51
+ "be.storefront.personalDiscountNotEligible": "INVALID_DISCOUNT",
51
52
  "be.storefront.discountLimitedToGroups": "INVALID_DISCOUNT",
52
53
  "be.storefront.tokenInvalid": "TOKEN_INVALID",
53
54
  "be.storefront.orderAccessTokenInvalid": "TOKEN_INVALID",
@@ -1955,6 +1956,10 @@ var FormsModule = class {
1955
1956
  constructor(client) {
1956
1957
  this.client = client;
1957
1958
  }
1959
+ /** Only active, published placements. Internal delivery/CRM settings never leave the server. */
1960
+ async placements() {
1961
+ return this.client.request("GET", "/forms");
1962
+ }
1958
1963
  /** Public definition of one form (fields + settings). 404 for an unknown or inactive slug. */
1959
1964
  async get(slug) {
1960
1965
  return this.client.request(
@@ -2315,6 +2320,12 @@ var NewsletterModule = class {
2315
2320
  }
2316
2321
  );
2317
2322
  }
2323
+ async confirm(token) {
2324
+ return this.client.request("POST", "/newsletter/confirm", {
2325
+ body: { token },
2326
+ auth: false
2327
+ });
2328
+ }
2318
2329
  async unsubscribe(email) {
2319
2330
  return this.client.request(
2320
2331
  "POST",
@@ -303,9 +303,16 @@ interface NewsletterSubscribeInput {
303
303
  }
304
304
  interface NewsletterSubscribeResult {
305
305
  success: boolean;
306
+ /** Confirm the email before the subscription becomes active. */
307
+ confirmationRequired?: boolean;
306
308
  /** True when this email was already an active subscriber. */
307
309
  alreadySubscribed: boolean;
308
310
  }
311
+ interface NewsletterConfirmResult {
312
+ success: boolean;
313
+ /** The actual code is delivered by email, never returned to the browser. */
314
+ welcomeDiscountIssued: boolean;
315
+ }
309
316
  interface NewsletterUnsubscribeResult {
310
317
  success: boolean;
311
318
  }
@@ -2489,7 +2496,35 @@ interface StorefrontFaqQuery {
2489
2496
  locale?: string;
2490
2497
  }
2491
2498
  /** Public definition of a form (`GET /forms/{slug}`). */
2499
+ interface StorefrontFormPlacement {
2500
+ key: string;
2501
+ mode: "inline" | "popup";
2502
+ enabled: boolean;
2503
+ delaySeconds: number;
2504
+ dismissDays: number;
2505
+ devices: "all" | "mobile" | "desktop";
2506
+ /** Exact path or prefix ending in *. No regex. */
2507
+ includePaths: string[];
2508
+ excludePaths: string[];
2509
+ }
2510
+ interface StorefrontFormPresentation {
2511
+ purpose: "general" | "newsletter";
2512
+ content: {
2513
+ eyebrow: string;
2514
+ heading: string;
2515
+ body: string;
2516
+ imageUrl: string;
2517
+ imageAlt: string;
2518
+ dismissLabel: string;
2519
+ backgroundColor: string;
2520
+ accentColor: string;
2521
+ };
2522
+ placements: StorefrontFormPlacement[];
2523
+ }
2492
2524
  interface StorefrontForm {
2525
+ /** Published content version. Requires the managed Forms API. */
2526
+ revision: number;
2527
+ presentation: StorefrontFormPresentation;
2493
2528
  slug: string;
2494
2529
  name: string;
2495
2530
  description: string | null;
@@ -2497,6 +2532,8 @@ interface StorefrontForm {
2497
2532
  settings: StorefrontFormSettings;
2498
2533
  }
2499
2534
  interface StorefrontFormSubmitInput {
2535
+ revision?: number;
2536
+ placement?: string;
2500
2537
  /** `{fieldKey: value}`; unknown keys are dropped server-side. */
2501
2538
  data: Record<string, unknown>;
2502
2539
  locale?: string;
@@ -2532,6 +2569,8 @@ interface StorefrontFormFile {
2532
2569
  type: string;
2533
2570
  }
2534
2571
  interface StorefrontFormSubmitResult {
2572
+ confirmationRequired?: boolean;
2573
+ alreadySubscribed?: boolean;
2535
2574
  ok: boolean;
2536
2575
  /** Id of the stored submission (null when the form does not store responses). */
2537
2576
  id: string | null;
@@ -4416,6 +4455,10 @@ declare class BookingsModule {
4416
4455
  declare class FormsModule {
4417
4456
  private client;
4418
4457
  constructor(client: BehioStorefront);
4458
+ /** Only active, published placements. Internal delivery/CRM settings never leave the server. */
4459
+ placements(): Promise<SdkResult<{
4460
+ items: StorefrontForm[];
4461
+ }>>;
4419
4462
  /** Public definition of one form (fields + settings). 404 for an unknown or inactive slug. */
4420
4463
  get(slug: string): Promise<SdkResult<StorefrontForm>>;
4421
4464
  /**
@@ -4624,6 +4667,7 @@ declare class NewsletterModule {
4624
4667
  private client;
4625
4668
  constructor(client: BehioStorefront);
4626
4669
  subscribe(input: NewsletterSubscribeInput): Promise<SdkResult<NewsletterSubscribeResult>>;
4670
+ confirm(token: string): Promise<SdkResult<NewsletterConfirmResult>>;
4627
4671
  unsubscribe(email: string): Promise<SdkResult<NewsletterUnsubscribeResult>>;
4628
4672
  }
4629
4673
  /** Souhrn kosiku pro skripty na strance (Behio Chat, analytika). */
@@ -4637,4 +4681,4 @@ declare function clearCartSummary(): void;
4637
4681
  /** Publish only authoritative current totals; server cart consumers call this after hydration and revalidation. */
4638
4682
  declare function publishCartSummary(summary: CartSummaryEvent): void;
4639
4683
 
4640
- export { type CartPromotion as $, type ActivePromotion as A, BehioStorefront as B, type CookieConsent as C, type BookingConfig as D, type BookingCreateInput as E, type BookingCreated as F, type BookingLocale as G, type BookingLocation as H, type BookingManageSlotsQuery as I, type BookingService as J, type BookingSlot as K, type BookingSlots as L, type BookingSlotsQuery as M, type BookingStaff as N, type BookingStatus as O, type ProductDetail as P, type Bundle as Q, type BundleCatalogQuery as R, type SdkResult as S, type BundleItem as T, type Cart as U, type CartBundleLine as V, type CartBundleLineItem as W, type CartDiscount as X, type CartItem as Y, type CartItemProduct as Z, type CartLinkClaimed as _, type ProductVariant as a, type Menu as a$, type CartSummaryEvent as a0, type Category as a1, type CategoryDetail as a2, type CertificateVerification as a3, type CheckoutAddress as a4, type CheckoutInput as a5, type CheckoutPaymentMethod as a6, type CheckoutPreview as a7, type CheckoutResult as a8, type CheckoutSettings as a9, type FacetCategory as aA, type FacetLabel as aB, type FacetPriceRange as aC, type FacetRange as aD, type FacetRatingBucket as aE, type FacetValue as aF, type FacetsResponse as aG, type FilterField as aH, type FulfillmentStatus as aI, FulfillmentStatuses as aJ, type GamificationRefreshResult as aK, type GiftCardBalance as aL, type GiftCardPurchaseInput as aM, type GiftCardPurchaseResult as aN, type GiftCardSummary as aO, type LessonNote as aP, type LessonQuiz as aQ, type LoginInput as aR, type LoyaltyBalance as aS, type LoyaltyNextTier as aT, type LoyaltyProgram as aU, type LoyaltyQuery as aV, type LoyaltyReferralResult as aW, type LoyaltySummary as aX, type LoyaltyTier as aY, type LoyaltyTierPerks as aZ, type LoyaltyTransaction as a_, type CookieConsentInput as aa, type CourseAttachment as ab, type CourseCertificate as ac, type CourseComment as ad, type CourseCommentReply as ae, type CourseCommentsList as af, type CourseDetail as ag, type CourseLesson as ah, type CourseListItem as ai, type CourseModule as aj, type CoursePostedComment as ak, type CourseProgress as al, type CourseTutorMessage as am, type CourseTutorThread as an, type CrossSellItem as ao, type CurrencyDisplayFormat as ap, type CustomerAddress as aq, type CustomerBadge as ar, type CustomerChallenge as as, type CustomerGamification as at, type CustomerGamificationQuery as au, type CustomerProfile as av, type DigitalDownload as aw, type DownloadUrl as ax, type Facet as ay, type FacetAvailability as az, type StorefrontFormFieldError as b, type RequestInterceptor as b$, type MenuItem as b0, type MenuItemRef as b1, type MenuItemType as b2, type MessageResponse as b3, type NewsletterOptInDefault as b4, type NewsletterSubscribeInput as b5, type NewsletterSubscribeResult as b6, type NewsletterUnsubscribeResult as b7, type OrderAccessRequestResponse as b8, type OrderAccessVerifyResponse as b9, type ProductAssetItem as bA, type ProductAvailability as bB, type ProductGroup as bC, type ProductLabel as bD, type ProductListItem as bE, type ProductMedia as bF, type ProductMediaVariant as bG, type ProductParameter as bH, type ProductParameterGroup as bI, type ProductParametersResponse as bJ, type ProductPrice as bK, type ProductPromotionSummary as bL, type ProductReview as bM, type ProductReviewsResponse as bN, type ProductSibling as bO, ProductSort as bP, type ProductSortValue as bQ, type ProductVolumePrice as bR, type ProductsQuery as bS, type QuizAnswerInput as bT, type QuizAnswerResult as bU, type QuizQuestion as bV, type QuizResult as bW, type QuoteItem as bX, type QuoteRequest as bY, type RegisterInput as bZ, type RegisterResult as b_, type OrderDetail as ba, type OrderDiscount as bb, type OrderDocument as bc, type OrderItem as bd, type OrderListItem as be, type OrderPaymentInstructions as bf, type OrderPickupPoint as bg, type OrderShipment as bh, type OrderStatus as bi, type OrderStatusHistory as bj, OrderStatuses as bk, type OrderTracking as bl, type Page as bm, type PageAttachment as bn, type PageDetail as bo, type PaginatedResponse as bp, type PaymentInstrument as bq, type PaymentStatus as br, PaymentStatuses as bs, type PaymentSwift as bt, type PickupPoint as bu, type PickupPointHours as bv, type PickupPointsInput as bw, type PickupWidgetConfig as bx, type PriceDisplay as by, type ProductAssetGroup as bz, type AddToCartInput as c, type WithdrawalWindow as c$, type RequestInterceptorConfig as c0, type ResponseInterceptor as c1, type ResponseInterceptorData as c2, type ReturnRequest as c3, type ReturnRequestItem as c4, type ReturnStatus as c5, type ReturnStatusItem as c6, type ReturnableOrder as c7, type ReturnableOrderItem as c8, type SdkError as c9, type StorefrontFaqGroupSummary as cA, type StorefrontFaqGroups as cB, type StorefrontFaqItem as cC, type StorefrontFaqQuery as cD, type StorefrontForm as cE, type StorefrontFormFieldErrorCode as cF, type StorefrontFormFile as cG, type StorefrontFormSettings as cH, type StorefrontFormSubmitInput as cI, type StorefrontFormSubmitResult as cJ, type StorefrontFormUpload as cK, type SubmitQuoteInput as cL, type SubmitReturnInput as cM, type SubmitReviewInput as cN, type SubmitWithdrawalInput as cO, type Subscription as cP, type SubscriptionAction as cQ, type SubscriptionFrequency as cR, type SubscriptionItem as cS, type SubscriptionStatus as cT, type TaxBreakdownLine as cU, type VariantAxis as cV, type VariantAxisValue as cW, type WishlistItem as cX, type WithdrawalAcknowledgement as cY, type WithdrawalFlag as cZ, type WithdrawalSettings as c_, type ShippingMethodSummary as ca, type ShippingPublicConfig as cb, type ShippingQuote as cc, type ShippingQuoteInput as cd, type ShopAppearance as ce, type ShopCommerce as cf, type ShopInfo as cg, type ShopScript as ch, type ShopScriptPlacement as ci, type ShopScriptType as cj, type ShopScripts as ck, type ShopSeo as cl, type ShopSeoIdentity as cm, type SiteFormField as cn, type SiteFormFieldOption as co, type SiteFormFieldType as cp, type Sitemap as cq, type SitemapEntry as cr, type StockBehavior as cs, type StockMode as ct, type StorefrontCollection as cu, type StorefrontCollectionField as cv, type StorefrontCollectionFieldType as cw, type StorefrontCollectionItem as cx, type StorefrontCollectionQuery as cy, type StorefrontFaqGroup as cz, type AddToCartItemsInput as d, clearCartSummary as d0, err as d1, ok as d2, publishCartSummary as d3, toSdkError as d4, type AddressDetail as e, type AddressSuggestion as f, type AddressType as g, AddressTypes as h, type AuthTokens as i, type BackInStockSubscription as j, type BadgeTone as k, BehioApiError as l, type BehioErrorCode as m, type BehioEventHandler as n, type BehioEventType as o, BehioNetworkError as p, type BehioStorefrontConfig as q, type Blog as r, type BlogPostDetail as s, type BlogPostListItem as t, type BlogPostsPage as u, type BlogPostsQuery as v, type BlogSettings as w, type BlogTag as x, type Booking as y, type BookingCategory as z };
4684
+ export { type CartLinkClaimed as $, type ActivePromotion as A, BehioStorefront as B, type CookieConsent as C, type BookingCategory as D, type BookingConfig as E, type BookingCreateInput as F, type BookingCreated as G, type BookingLocale as H, type BookingLocation as I, type BookingManageSlotsQuery as J, type BookingService as K, type BookingSlot as L, type BookingSlots as M, type BookingSlotsQuery as N, type BookingStaff as O, type ProductDetail as P, type BookingStatus as Q, type Bundle as R, type SdkResult as S, type BundleCatalogQuery as T, type BundleItem as U, type Cart as V, type CartBundleLine as W, type CartBundleLineItem as X, type CartDiscount as Y, type CartItem as Z, type CartItemProduct as _, type ProductVariant as a, type LoyaltyTransaction as a$, type CartPromotion as a0, type CartSummaryEvent as a1, type Category as a2, type CategoryDetail as a3, type CertificateVerification as a4, type CheckoutAddress as a5, type CheckoutInput as a6, type CheckoutPaymentMethod as a7, type CheckoutPreview as a8, type CheckoutResult as a9, type FacetAvailability as aA, type FacetCategory as aB, type FacetLabel as aC, type FacetPriceRange as aD, type FacetRange as aE, type FacetRatingBucket as aF, type FacetValue as aG, type FacetsResponse as aH, type FilterField as aI, type FulfillmentStatus as aJ, FulfillmentStatuses as aK, type GamificationRefreshResult as aL, type GiftCardBalance as aM, type GiftCardPurchaseInput as aN, type GiftCardPurchaseResult as aO, type GiftCardSummary as aP, type LessonNote as aQ, type LessonQuiz as aR, type LoginInput as aS, type LoyaltyBalance as aT, type LoyaltyNextTier as aU, type LoyaltyProgram as aV, type LoyaltyQuery as aW, type LoyaltyReferralResult as aX, type LoyaltySummary as aY, type LoyaltyTier as aZ, type LoyaltyTierPerks as a_, type CheckoutSettings as aa, type CookieConsentInput as ab, type CourseAttachment as ac, type CourseCertificate as ad, type CourseComment as ae, type CourseCommentReply as af, type CourseCommentsList as ag, type CourseDetail as ah, type CourseLesson as ai, type CourseListItem as aj, type CourseModule as ak, type CoursePostedComment as al, type CourseProgress as am, type CourseTutorMessage as an, type CourseTutorThread as ao, type CrossSellItem as ap, type CurrencyDisplayFormat as aq, type CustomerAddress as ar, type CustomerBadge as as, type CustomerChallenge as at, type CustomerGamification as au, type CustomerGamificationQuery as av, type CustomerProfile as aw, type DigitalDownload as ax, type DownloadUrl as ay, type Facet as az, type StorefrontFormFieldError as b, type RegisterInput as b$, type Menu as b0, type MenuItem as b1, type MenuItemRef as b2, type MenuItemType as b3, type MessageResponse as b4, type NewsletterConfirmResult as b5, type NewsletterOptInDefault as b6, type NewsletterSubscribeInput as b7, type NewsletterSubscribeResult as b8, type NewsletterUnsubscribeResult as b9, type PriceDisplay as bA, type ProductAssetGroup as bB, type ProductAssetItem as bC, type ProductAvailability as bD, type ProductGroup as bE, type ProductLabel as bF, type ProductListItem as bG, type ProductMedia as bH, type ProductMediaVariant as bI, type ProductParameter as bJ, type ProductParameterGroup as bK, type ProductParametersResponse as bL, type ProductPrice as bM, type ProductPromotionSummary as bN, type ProductReview as bO, type ProductReviewsResponse as bP, type ProductSibling as bQ, ProductSort as bR, type ProductSortValue as bS, type ProductVolumePrice as bT, type ProductsQuery as bU, type QuizAnswerInput as bV, type QuizAnswerResult as bW, type QuizQuestion as bX, type QuizResult as bY, type QuoteItem as bZ, type QuoteRequest as b_, type OrderAccessRequestResponse as ba, type OrderAccessVerifyResponse as bb, type OrderDetail as bc, type OrderDiscount as bd, type OrderDocument as be, type OrderItem as bf, type OrderListItem as bg, type OrderPaymentInstructions as bh, type OrderPickupPoint as bi, type OrderShipment as bj, type OrderStatus as bk, type OrderStatusHistory as bl, OrderStatuses as bm, type OrderTracking as bn, type Page as bo, type PageAttachment as bp, type PageDetail as bq, type PaginatedResponse as br, type PaymentInstrument as bs, type PaymentStatus as bt, PaymentStatuses as bu, type PaymentSwift as bv, type PickupPoint as bw, type PickupPointHours as bx, type PickupPointsInput as by, type PickupWidgetConfig as bz, type StorefrontFormPlacement as c, type WithdrawalAcknowledgement as c$, type RegisterResult as c0, type RequestInterceptor as c1, type RequestInterceptorConfig as c2, type ResponseInterceptor as c3, type ResponseInterceptorData as c4, type ReturnRequest as c5, type ReturnRequestItem as c6, type ReturnStatus as c7, type ReturnStatusItem as c8, type ReturnableOrder as c9, type StorefrontCollectionQuery as cA, type StorefrontFaqGroup as cB, type StorefrontFaqGroupSummary as cC, type StorefrontFaqGroups as cD, type StorefrontFaqItem as cE, type StorefrontFaqQuery as cF, type StorefrontForm as cG, type StorefrontFormFieldErrorCode as cH, type StorefrontFormFile as cI, type StorefrontFormPresentation as cJ, type StorefrontFormSettings as cK, type StorefrontFormSubmitInput as cL, type StorefrontFormSubmitResult as cM, type StorefrontFormUpload as cN, type SubmitQuoteInput as cO, type SubmitReturnInput as cP, type SubmitReviewInput as cQ, type SubmitWithdrawalInput 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 WishlistItem as c_, type ReturnableOrderItem as ca, type SdkError as cb, type ShippingMethodSummary as cc, type ShippingPublicConfig as cd, type ShippingQuote as ce, type ShippingQuoteInput as cf, type ShopAppearance as cg, type ShopCommerce as ch, type ShopInfo as ci, type ShopScript as cj, type ShopScriptPlacement as ck, type ShopScriptType as cl, type ShopScripts as cm, type ShopSeo as cn, type ShopSeoIdentity as co, type SiteFormField as cp, type SiteFormFieldOption as cq, type SiteFormFieldType as cr, type Sitemap as cs, type SitemapEntry as ct, type StockBehavior as cu, type StockMode as cv, type StorefrontCollection as cw, type StorefrontCollectionField as cx, type StorefrontCollectionFieldType as cy, type StorefrontCollectionItem as cz, type AddToCartInput as d, type WithdrawalFlag as d0, type WithdrawalSettings as d1, type WithdrawalWindow as d2, clearCartSummary as d3, err as d4, ok as d5, publishCartSummary as d6, toSdkError as d7, type AddToCartItemsInput as e, type AddressDetail as f, type AddressSuggestion as g, type AddressType as h, AddressTypes as i, type AuthTokens as j, type BackInStockSubscription as k, type BadgeTone as l, BehioApiError as m, type BehioErrorCode as n, type BehioEventHandler as o, type BehioEventType as p, BehioNetworkError as q, type BehioStorefrontConfig as r, type Blog as s, type BlogPostDetail as t, type BlogPostListItem as u, type BlogPostsPage as v, type BlogPostsQuery as w, type BlogSettings as x, type BlogTag as y, type Booking as z };
@@ -303,9 +303,16 @@ interface NewsletterSubscribeInput {
303
303
  }
304
304
  interface NewsletterSubscribeResult {
305
305
  success: boolean;
306
+ /** Confirm the email before the subscription becomes active. */
307
+ confirmationRequired?: boolean;
306
308
  /** True when this email was already an active subscriber. */
307
309
  alreadySubscribed: boolean;
308
310
  }
311
+ interface NewsletterConfirmResult {
312
+ success: boolean;
313
+ /** The actual code is delivered by email, never returned to the browser. */
314
+ welcomeDiscountIssued: boolean;
315
+ }
309
316
  interface NewsletterUnsubscribeResult {
310
317
  success: boolean;
311
318
  }
@@ -2489,7 +2496,35 @@ interface StorefrontFaqQuery {
2489
2496
  locale?: string;
2490
2497
  }
2491
2498
  /** Public definition of a form (`GET /forms/{slug}`). */
2499
+ interface StorefrontFormPlacement {
2500
+ key: string;
2501
+ mode: "inline" | "popup";
2502
+ enabled: boolean;
2503
+ delaySeconds: number;
2504
+ dismissDays: number;
2505
+ devices: "all" | "mobile" | "desktop";
2506
+ /** Exact path or prefix ending in *. No regex. */
2507
+ includePaths: string[];
2508
+ excludePaths: string[];
2509
+ }
2510
+ interface StorefrontFormPresentation {
2511
+ purpose: "general" | "newsletter";
2512
+ content: {
2513
+ eyebrow: string;
2514
+ heading: string;
2515
+ body: string;
2516
+ imageUrl: string;
2517
+ imageAlt: string;
2518
+ dismissLabel: string;
2519
+ backgroundColor: string;
2520
+ accentColor: string;
2521
+ };
2522
+ placements: StorefrontFormPlacement[];
2523
+ }
2492
2524
  interface StorefrontForm {
2525
+ /** Published content version. Requires the managed Forms API. */
2526
+ revision: number;
2527
+ presentation: StorefrontFormPresentation;
2493
2528
  slug: string;
2494
2529
  name: string;
2495
2530
  description: string | null;
@@ -2497,6 +2532,8 @@ interface StorefrontForm {
2497
2532
  settings: StorefrontFormSettings;
2498
2533
  }
2499
2534
  interface StorefrontFormSubmitInput {
2535
+ revision?: number;
2536
+ placement?: string;
2500
2537
  /** `{fieldKey: value}`; unknown keys are dropped server-side. */
2501
2538
  data: Record<string, unknown>;
2502
2539
  locale?: string;
@@ -2532,6 +2569,8 @@ interface StorefrontFormFile {
2532
2569
  type: string;
2533
2570
  }
2534
2571
  interface StorefrontFormSubmitResult {
2572
+ confirmationRequired?: boolean;
2573
+ alreadySubscribed?: boolean;
2535
2574
  ok: boolean;
2536
2575
  /** Id of the stored submission (null when the form does not store responses). */
2537
2576
  id: string | null;
@@ -4416,6 +4455,10 @@ declare class BookingsModule {
4416
4455
  declare class FormsModule {
4417
4456
  private client;
4418
4457
  constructor(client: BehioStorefront);
4458
+ /** Only active, published placements. Internal delivery/CRM settings never leave the server. */
4459
+ placements(): Promise<SdkResult<{
4460
+ items: StorefrontForm[];
4461
+ }>>;
4419
4462
  /** Public definition of one form (fields + settings). 404 for an unknown or inactive slug. */
4420
4463
  get(slug: string): Promise<SdkResult<StorefrontForm>>;
4421
4464
  /**
@@ -4624,6 +4667,7 @@ declare class NewsletterModule {
4624
4667
  private client;
4625
4668
  constructor(client: BehioStorefront);
4626
4669
  subscribe(input: NewsletterSubscribeInput): Promise<SdkResult<NewsletterSubscribeResult>>;
4670
+ confirm(token: string): Promise<SdkResult<NewsletterConfirmResult>>;
4627
4671
  unsubscribe(email: string): Promise<SdkResult<NewsletterUnsubscribeResult>>;
4628
4672
  }
4629
4673
  /** Souhrn kosiku pro skripty na strance (Behio Chat, analytika). */
@@ -4637,4 +4681,4 @@ declare function clearCartSummary(): void;
4637
4681
  /** Publish only authoritative current totals; server cart consumers call this after hydration and revalidation. */
4638
4682
  declare function publishCartSummary(summary: CartSummaryEvent): void;
4639
4683
 
4640
- export { type CartPromotion as $, type ActivePromotion as A, BehioStorefront as B, type CookieConsent as C, type BookingConfig as D, type BookingCreateInput as E, type BookingCreated as F, type BookingLocale as G, type BookingLocation as H, type BookingManageSlotsQuery as I, type BookingService as J, type BookingSlot as K, type BookingSlots as L, type BookingSlotsQuery as M, type BookingStaff as N, type BookingStatus as O, type ProductDetail as P, type Bundle as Q, type BundleCatalogQuery as R, type SdkResult as S, type BundleItem as T, type Cart as U, type CartBundleLine as V, type CartBundleLineItem as W, type CartDiscount as X, type CartItem as Y, type CartItemProduct as Z, type CartLinkClaimed as _, type ProductVariant as a, type Menu as a$, type CartSummaryEvent as a0, type Category as a1, type CategoryDetail as a2, type CertificateVerification as a3, type CheckoutAddress as a4, type CheckoutInput as a5, type CheckoutPaymentMethod as a6, type CheckoutPreview as a7, type CheckoutResult as a8, type CheckoutSettings as a9, type FacetCategory as aA, type FacetLabel as aB, type FacetPriceRange as aC, type FacetRange as aD, type FacetRatingBucket as aE, type FacetValue as aF, type FacetsResponse as aG, type FilterField as aH, type FulfillmentStatus as aI, FulfillmentStatuses as aJ, type GamificationRefreshResult as aK, type GiftCardBalance as aL, type GiftCardPurchaseInput as aM, type GiftCardPurchaseResult as aN, type GiftCardSummary as aO, type LessonNote as aP, type LessonQuiz as aQ, type LoginInput as aR, type LoyaltyBalance as aS, type LoyaltyNextTier as aT, type LoyaltyProgram as aU, type LoyaltyQuery as aV, type LoyaltyReferralResult as aW, type LoyaltySummary as aX, type LoyaltyTier as aY, type LoyaltyTierPerks as aZ, type LoyaltyTransaction as a_, type CookieConsentInput as aa, type CourseAttachment as ab, type CourseCertificate as ac, type CourseComment as ad, type CourseCommentReply as ae, type CourseCommentsList as af, type CourseDetail as ag, type CourseLesson as ah, type CourseListItem as ai, type CourseModule as aj, type CoursePostedComment as ak, type CourseProgress as al, type CourseTutorMessage as am, type CourseTutorThread as an, type CrossSellItem as ao, type CurrencyDisplayFormat as ap, type CustomerAddress as aq, type CustomerBadge as ar, type CustomerChallenge as as, type CustomerGamification as at, type CustomerGamificationQuery as au, type CustomerProfile as av, type DigitalDownload as aw, type DownloadUrl as ax, type Facet as ay, type FacetAvailability as az, type StorefrontFormFieldError as b, type RequestInterceptor as b$, type MenuItem as b0, type MenuItemRef as b1, type MenuItemType as b2, type MessageResponse as b3, type NewsletterOptInDefault as b4, type NewsletterSubscribeInput as b5, type NewsletterSubscribeResult as b6, type NewsletterUnsubscribeResult as b7, type OrderAccessRequestResponse as b8, type OrderAccessVerifyResponse as b9, type ProductAssetItem as bA, type ProductAvailability as bB, type ProductGroup as bC, type ProductLabel as bD, type ProductListItem as bE, type ProductMedia as bF, type ProductMediaVariant as bG, type ProductParameter as bH, type ProductParameterGroup as bI, type ProductParametersResponse as bJ, type ProductPrice as bK, type ProductPromotionSummary as bL, type ProductReview as bM, type ProductReviewsResponse as bN, type ProductSibling as bO, ProductSort as bP, type ProductSortValue as bQ, type ProductVolumePrice as bR, type ProductsQuery as bS, type QuizAnswerInput as bT, type QuizAnswerResult as bU, type QuizQuestion as bV, type QuizResult as bW, type QuoteItem as bX, type QuoteRequest as bY, type RegisterInput as bZ, type RegisterResult as b_, type OrderDetail as ba, type OrderDiscount as bb, type OrderDocument as bc, type OrderItem as bd, type OrderListItem as be, type OrderPaymentInstructions as bf, type OrderPickupPoint as bg, type OrderShipment as bh, type OrderStatus as bi, type OrderStatusHistory as bj, OrderStatuses as bk, type OrderTracking as bl, type Page as bm, type PageAttachment as bn, type PageDetail as bo, type PaginatedResponse as bp, type PaymentInstrument as bq, type PaymentStatus as br, PaymentStatuses as bs, type PaymentSwift as bt, type PickupPoint as bu, type PickupPointHours as bv, type PickupPointsInput as bw, type PickupWidgetConfig as bx, type PriceDisplay as by, type ProductAssetGroup as bz, type AddToCartInput as c, type WithdrawalWindow as c$, type RequestInterceptorConfig as c0, type ResponseInterceptor as c1, type ResponseInterceptorData as c2, type ReturnRequest as c3, type ReturnRequestItem as c4, type ReturnStatus as c5, type ReturnStatusItem as c6, type ReturnableOrder as c7, type ReturnableOrderItem as c8, type SdkError as c9, type StorefrontFaqGroupSummary as cA, type StorefrontFaqGroups as cB, type StorefrontFaqItem as cC, type StorefrontFaqQuery as cD, type StorefrontForm as cE, type StorefrontFormFieldErrorCode as cF, type StorefrontFormFile as cG, type StorefrontFormSettings as cH, type StorefrontFormSubmitInput as cI, type StorefrontFormSubmitResult as cJ, type StorefrontFormUpload as cK, type SubmitQuoteInput as cL, type SubmitReturnInput as cM, type SubmitReviewInput as cN, type SubmitWithdrawalInput as cO, type Subscription as cP, type SubscriptionAction as cQ, type SubscriptionFrequency as cR, type SubscriptionItem as cS, type SubscriptionStatus as cT, type TaxBreakdownLine as cU, type VariantAxis as cV, type VariantAxisValue as cW, type WishlistItem as cX, type WithdrawalAcknowledgement as cY, type WithdrawalFlag as cZ, type WithdrawalSettings as c_, type ShippingMethodSummary as ca, type ShippingPublicConfig as cb, type ShippingQuote as cc, type ShippingQuoteInput as cd, type ShopAppearance as ce, type ShopCommerce as cf, type ShopInfo as cg, type ShopScript as ch, type ShopScriptPlacement as ci, type ShopScriptType as cj, type ShopScripts as ck, type ShopSeo as cl, type ShopSeoIdentity as cm, type SiteFormField as cn, type SiteFormFieldOption as co, type SiteFormFieldType as cp, type Sitemap as cq, type SitemapEntry as cr, type StockBehavior as cs, type StockMode as ct, type StorefrontCollection as cu, type StorefrontCollectionField as cv, type StorefrontCollectionFieldType as cw, type StorefrontCollectionItem as cx, type StorefrontCollectionQuery as cy, type StorefrontFaqGroup as cz, type AddToCartItemsInput as d, clearCartSummary as d0, err as d1, ok as d2, publishCartSummary as d3, toSdkError as d4, type AddressDetail as e, type AddressSuggestion as f, type AddressType as g, AddressTypes as h, type AuthTokens as i, type BackInStockSubscription as j, type BadgeTone as k, BehioApiError as l, type BehioErrorCode as m, type BehioEventHandler as n, type BehioEventType as o, BehioNetworkError as p, type BehioStorefrontConfig as q, type Blog as r, type BlogPostDetail as s, type BlogPostListItem as t, type BlogPostsPage as u, type BlogPostsQuery as v, type BlogSettings as w, type BlogTag as x, type Booking as y, type BookingCategory as z };
4684
+ export { type CartLinkClaimed as $, type ActivePromotion as A, BehioStorefront as B, type CookieConsent as C, type BookingCategory as D, type BookingConfig as E, type BookingCreateInput as F, type BookingCreated as G, type BookingLocale as H, type BookingLocation as I, type BookingManageSlotsQuery as J, type BookingService as K, type BookingSlot as L, type BookingSlots as M, type BookingSlotsQuery as N, type BookingStaff as O, type ProductDetail as P, type BookingStatus as Q, type Bundle as R, type SdkResult as S, type BundleCatalogQuery as T, type BundleItem as U, type Cart as V, type CartBundleLine as W, type CartBundleLineItem as X, type CartDiscount as Y, type CartItem as Z, type CartItemProduct as _, type ProductVariant as a, type LoyaltyTransaction as a$, type CartPromotion as a0, type CartSummaryEvent as a1, type Category as a2, type CategoryDetail as a3, type CertificateVerification as a4, type CheckoutAddress as a5, type CheckoutInput as a6, type CheckoutPaymentMethod as a7, type CheckoutPreview as a8, type CheckoutResult as a9, type FacetAvailability as aA, type FacetCategory as aB, type FacetLabel as aC, type FacetPriceRange as aD, type FacetRange as aE, type FacetRatingBucket as aF, type FacetValue as aG, type FacetsResponse as aH, type FilterField as aI, type FulfillmentStatus as aJ, FulfillmentStatuses as aK, type GamificationRefreshResult as aL, type GiftCardBalance as aM, type GiftCardPurchaseInput as aN, type GiftCardPurchaseResult as aO, type GiftCardSummary as aP, type LessonNote as aQ, type LessonQuiz as aR, type LoginInput as aS, type LoyaltyBalance as aT, type LoyaltyNextTier as aU, type LoyaltyProgram as aV, type LoyaltyQuery as aW, type LoyaltyReferralResult as aX, type LoyaltySummary as aY, type LoyaltyTier as aZ, type LoyaltyTierPerks as a_, type CheckoutSettings as aa, type CookieConsentInput as ab, type CourseAttachment as ac, type CourseCertificate as ad, type CourseComment as ae, type CourseCommentReply as af, type CourseCommentsList as ag, type CourseDetail as ah, type CourseLesson as ai, type CourseListItem as aj, type CourseModule as ak, type CoursePostedComment as al, type CourseProgress as am, type CourseTutorMessage as an, type CourseTutorThread as ao, type CrossSellItem as ap, type CurrencyDisplayFormat as aq, type CustomerAddress as ar, type CustomerBadge as as, type CustomerChallenge as at, type CustomerGamification as au, type CustomerGamificationQuery as av, type CustomerProfile as aw, type DigitalDownload as ax, type DownloadUrl as ay, type Facet as az, type StorefrontFormFieldError as b, type RegisterInput as b$, type Menu as b0, type MenuItem as b1, type MenuItemRef as b2, type MenuItemType as b3, type MessageResponse as b4, type NewsletterConfirmResult as b5, type NewsletterOptInDefault as b6, type NewsletterSubscribeInput as b7, type NewsletterSubscribeResult as b8, type NewsletterUnsubscribeResult as b9, type PriceDisplay as bA, type ProductAssetGroup as bB, type ProductAssetItem as bC, type ProductAvailability as bD, type ProductGroup as bE, type ProductLabel as bF, type ProductListItem as bG, type ProductMedia as bH, type ProductMediaVariant as bI, type ProductParameter as bJ, type ProductParameterGroup as bK, type ProductParametersResponse as bL, type ProductPrice as bM, type ProductPromotionSummary as bN, type ProductReview as bO, type ProductReviewsResponse as bP, type ProductSibling as bQ, ProductSort as bR, type ProductSortValue as bS, type ProductVolumePrice as bT, type ProductsQuery as bU, type QuizAnswerInput as bV, type QuizAnswerResult as bW, type QuizQuestion as bX, type QuizResult as bY, type QuoteItem as bZ, type QuoteRequest as b_, type OrderAccessRequestResponse as ba, type OrderAccessVerifyResponse as bb, type OrderDetail as bc, type OrderDiscount as bd, type OrderDocument as be, type OrderItem as bf, type OrderListItem as bg, type OrderPaymentInstructions as bh, type OrderPickupPoint as bi, type OrderShipment as bj, type OrderStatus as bk, type OrderStatusHistory as bl, OrderStatuses as bm, type OrderTracking as bn, type Page as bo, type PageAttachment as bp, type PageDetail as bq, type PaginatedResponse as br, type PaymentInstrument as bs, type PaymentStatus as bt, PaymentStatuses as bu, type PaymentSwift as bv, type PickupPoint as bw, type PickupPointHours as bx, type PickupPointsInput as by, type PickupWidgetConfig as bz, type StorefrontFormPlacement as c, type WithdrawalAcknowledgement as c$, type RegisterResult as c0, type RequestInterceptor as c1, type RequestInterceptorConfig as c2, type ResponseInterceptor as c3, type ResponseInterceptorData as c4, type ReturnRequest as c5, type ReturnRequestItem as c6, type ReturnStatus as c7, type ReturnStatusItem as c8, type ReturnableOrder as c9, type StorefrontCollectionQuery as cA, type StorefrontFaqGroup as cB, type StorefrontFaqGroupSummary as cC, type StorefrontFaqGroups as cD, type StorefrontFaqItem as cE, type StorefrontFaqQuery as cF, type StorefrontForm as cG, type StorefrontFormFieldErrorCode as cH, type StorefrontFormFile as cI, type StorefrontFormPresentation as cJ, type StorefrontFormSettings as cK, type StorefrontFormSubmitInput as cL, type StorefrontFormSubmitResult as cM, type StorefrontFormUpload as cN, type SubmitQuoteInput as cO, type SubmitReturnInput as cP, type SubmitReviewInput as cQ, type SubmitWithdrawalInput 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 WishlistItem as c_, type ReturnableOrderItem as ca, type SdkError as cb, type ShippingMethodSummary as cc, type ShippingPublicConfig as cd, type ShippingQuote as ce, type ShippingQuoteInput as cf, type ShopAppearance as cg, type ShopCommerce as ch, type ShopInfo as ci, type ShopScript as cj, type ShopScriptPlacement as ck, type ShopScriptType as cl, type ShopScripts as cm, type ShopSeo as cn, type ShopSeoIdentity as co, type SiteFormField as cp, type SiteFormFieldOption as cq, type SiteFormFieldType as cr, type Sitemap as cs, type SitemapEntry as ct, type StockBehavior as cu, type StockMode as cv, type StorefrontCollection as cw, type StorefrontCollectionField as cx, type StorefrontCollectionFieldType as cy, type StorefrontCollectionItem as cz, type AddToCartInput as d, type WithdrawalFlag as d0, type WithdrawalSettings as d1, type WithdrawalWindow as d2, clearCartSummary as d3, err as d4, ok as d5, publishCartSummary as d6, toSdkError as d7, type AddToCartItemsInput as e, type AddressDetail as f, type AddressSuggestion as g, type AddressType as h, AddressTypes as i, type AuthTokens as j, type BackInStockSubscription as k, type BadgeTone as l, BehioApiError as m, type BehioErrorCode as n, type BehioEventHandler as o, type BehioEventType as p, BehioNetworkError as q, type BehioStorefrontConfig as r, type Blog as s, type BlogPostDetail as t, type BlogPostListItem as u, type BlogPostsPage as v, type BlogPostsQuery as w, type BlogSettings as x, type BlogTag as y, type Booking 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-Bm8Fwcp7.mjs';
2
- export { A as ActivePromotion, c as AddToCartInput, d as AddToCartItemsInput, e as AddressDetail, f as AddressSuggestion, g as AddressType, h as AddressTypes, i as AuthTokens, j as BackInStockSubscription, k as BadgeTone, l as BehioApiError, m as BehioErrorCode, n as BehioEventHandler, o as BehioEventType, p as BehioNetworkError, q as BehioStorefrontConfig, r as Blog, s as BlogPostDetail, t as BlogPostListItem, u as BlogPostsPage, v as BlogPostsQuery, w as BlogSettings, x as BlogTag, y as Booking, z as BookingCategory, D as BookingConfig, E as BookingCreateInput, F as BookingCreated, G as BookingLocale, H as BookingLocation, I as BookingManageSlotsQuery, J as BookingService, K as BookingSlot, L as BookingSlots, M as BookingSlotsQuery, N as BookingStaff, O as BookingStatus, Q as Bundle, R as BundleCatalogQuery, T as BundleItem, U as Cart, V as CartBundleLine, W as CartBundleLineItem, X as CartDiscount, Y as CartItem, Z as CartItemProduct, _ as CartLinkClaimed, $ as CartPromotion, a0 as CartSummaryEvent, a1 as Category, a2 as CategoryDetail, a3 as CertificateVerification, a4 as CheckoutAddress, a5 as CheckoutInput, a6 as CheckoutPaymentMethod, a7 as CheckoutPreview, a8 as CheckoutResult, a9 as CheckoutSettings, aa as CookieConsentInput, ab as CourseAttachment, ac as CourseCertificate, ad as CourseComment, ae as CourseCommentReply, af as CourseCommentsList, ag as CourseDetail, ah as CourseLesson, ai as CourseListItem, aj as CourseModule, ak as CoursePostedComment, al as CourseProgress, am as CourseTutorMessage, an as CourseTutorThread, ao as CrossSellItem, ap as CurrencyDisplayFormat, aq as CustomerAddress, ar as CustomerBadge, as as CustomerChallenge, at as CustomerGamification, au as CustomerGamificationQuery, av as CustomerProfile, aw as DigitalDownload, ax as DownloadUrl, ay as Facet, az as FacetAvailability, aA as FacetCategory, aB as FacetLabel, aC as FacetPriceRange, aD as FacetRange, aE as FacetRatingBucket, aF as FacetValue, aG as FacetsResponse, aH as FilterField, aI as FulfillmentStatus, aJ as FulfillmentStatuses, aK as GamificationRefreshResult, aL as GiftCardBalance, aM as GiftCardPurchaseInput, aN as GiftCardPurchaseResult, aO as GiftCardSummary, aP as LessonNote, aQ as LessonQuiz, aR as LoginInput, aS as LoyaltyBalance, aT as LoyaltyNextTier, aU as LoyaltyProgram, aV as LoyaltyQuery, aW as LoyaltyReferralResult, aX as LoyaltySummary, aY as LoyaltyTier, aZ as LoyaltyTierPerks, a_ as LoyaltyTransaction, a$ as Menu, b0 as MenuItem, b1 as MenuItemRef, b2 as MenuItemType, b3 as MessageResponse, b4 as NewsletterOptInDefault, b5 as NewsletterSubscribeInput, b6 as NewsletterSubscribeResult, b7 as NewsletterUnsubscribeResult, b8 as OrderAccessRequestResponse, b9 as OrderAccessVerifyResponse, ba as OrderDetail, bb as OrderDiscount, bc as OrderDocument, bd as OrderItem, be as OrderListItem, bf as OrderPaymentInstructions, bg as OrderPickupPoint, bh as OrderShipment, bi as OrderStatus, bj as OrderStatusHistory, bk as OrderStatuses, bl as OrderTracking, bm as Page, bn as PageAttachment, bo as PageDetail, bp as PaginatedResponse, bq as PaymentInstrument, br as PaymentStatus, bs as PaymentStatuses, bt as PaymentSwift, bu as PickupPoint, bv as PickupPointHours, bw as PickupPointsInput, bx as PickupWidgetConfig, by as PriceDisplay, bz as ProductAssetGroup, bA as ProductAssetItem, bB as ProductAvailability, bC as ProductGroup, bD as ProductLabel, bE as ProductListItem, bF as ProductMedia, bG as ProductMediaVariant, bH as ProductParameter, bI as ProductParameterGroup, bJ as ProductParametersResponse, bK as ProductPrice, bL as ProductPromotionSummary, bM as ProductReview, bN as ProductReviewsResponse, bO as ProductSibling, bP as ProductSort, bQ as ProductSortValue, bR as ProductVolumePrice, bS as ProductsQuery, bT as QuizAnswerInput, bU as QuizAnswerResult, bV as QuizQuestion, bW as QuizResult, bX as QuoteItem, bY as QuoteRequest, bZ as RegisterInput, b_ as RegisterResult, b$ as RequestInterceptor, c0 as RequestInterceptorConfig, c1 as ResponseInterceptor, c2 as ResponseInterceptorData, c3 as ReturnRequest, c4 as ReturnRequestItem, c5 as ReturnStatus, c6 as ReturnStatusItem, c7 as ReturnableOrder, c8 as ReturnableOrderItem, c9 as SdkError, ca as ShippingMethodSummary, cb as ShippingPublicConfig, cc as ShippingQuote, cd as ShippingQuoteInput, ce as ShopAppearance, cf as ShopCommerce, cg as ShopInfo, ch as ShopScript, ci as ShopScriptPlacement, cj as ShopScriptType, ck as ShopScripts, cl as ShopSeo, cm as ShopSeoIdentity, cn as SiteFormField, co as SiteFormFieldOption, cp as SiteFormFieldType, cq as Sitemap, cr as SitemapEntry, cs as StockBehavior, ct as StockMode, cu as StorefrontCollection, cv as StorefrontCollectionField, cw as StorefrontCollectionFieldType, cx as StorefrontCollectionItem, cy as StorefrontCollectionQuery, cz as StorefrontFaqGroup, cA as StorefrontFaqGroupSummary, cB as StorefrontFaqGroups, cC as StorefrontFaqItem, cD as StorefrontFaqQuery, cE as StorefrontForm, cF as StorefrontFormFieldErrorCode, cG as StorefrontFormFile, cH as StorefrontFormSettings, cI as StorefrontFormSubmitInput, cJ as StorefrontFormSubmitResult, cK as StorefrontFormUpload, cL as SubmitQuoteInput, cM as SubmitReturnInput, cN as SubmitReviewInput, cO as SubmitWithdrawalInput, cP as Subscription, cQ as SubscriptionAction, cR as SubscriptionFrequency, cS as SubscriptionItem, cT as SubscriptionStatus, cU as TaxBreakdownLine, cV as VariantAxis, cW as VariantAxisValue, cX as WishlistItem, cY as WithdrawalAcknowledgement, cZ as WithdrawalFlag, c_ as WithdrawalSettings, c$ as WithdrawalWindow, d0 as clearCartSummary, d1 as err, d2 as ok, d3 as publishCartSummary, d4 as toSdkError } from './client-Bm8Fwcp7.mjs';
1
+ import { P as ProductDetail, a as ProductVariant, B as BehioStorefront, S as SdkResult, C as CookieConsent, b as StorefrontFormFieldError, c as StorefrontFormPlacement } from './client-DtAz0rDJ.mjs';
2
+ export { A as ActivePromotion, d as AddToCartInput, e as AddToCartItemsInput, f as AddressDetail, g as AddressSuggestion, h as AddressType, i as AddressTypes, j as AuthTokens, k as BackInStockSubscription, l as BadgeTone, m as BehioApiError, n as BehioErrorCode, o as BehioEventHandler, p as BehioEventType, q as BehioNetworkError, r as BehioStorefrontConfig, s as Blog, t as BlogPostDetail, u as BlogPostListItem, v as BlogPostsPage, w as BlogPostsQuery, x as BlogSettings, y as BlogTag, z as Booking, D as BookingCategory, E as BookingConfig, F as BookingCreateInput, G as BookingCreated, H as BookingLocale, I as BookingLocation, J as BookingManageSlotsQuery, K as BookingService, L as BookingSlot, M as BookingSlots, N as BookingSlotsQuery, O as BookingStaff, Q as BookingStatus, R as Bundle, T as BundleCatalogQuery, U as BundleItem, V as Cart, W as CartBundleLine, X as CartBundleLineItem, Y as CartDiscount, Z as CartItem, _ as CartItemProduct, $ as CartLinkClaimed, a0 as CartPromotion, a1 as CartSummaryEvent, a2 as Category, a3 as CategoryDetail, a4 as CertificateVerification, a5 as CheckoutAddress, a6 as CheckoutInput, a7 as CheckoutPaymentMethod, a8 as CheckoutPreview, a9 as CheckoutResult, aa as CheckoutSettings, ab as CookieConsentInput, ac as CourseAttachment, ad as CourseCertificate, ae as CourseComment, af as CourseCommentReply, ag as CourseCommentsList, ah as CourseDetail, ai as CourseLesson, aj as CourseListItem, ak as CourseModule, al as CoursePostedComment, am as CourseProgress, an as CourseTutorMessage, ao as CourseTutorThread, ap as CrossSellItem, aq as CurrencyDisplayFormat, ar as CustomerAddress, as as CustomerBadge, at as CustomerChallenge, au as CustomerGamification, av as CustomerGamificationQuery, aw as CustomerProfile, ax as DigitalDownload, ay as DownloadUrl, az as Facet, aA as FacetAvailability, aB as FacetCategory, aC as FacetLabel, aD as FacetPriceRange, aE as FacetRange, aF as FacetRatingBucket, aG as FacetValue, aH as FacetsResponse, aI as FilterField, aJ as FulfillmentStatus, aK as FulfillmentStatuses, aL as GamificationRefreshResult, aM as GiftCardBalance, aN as GiftCardPurchaseInput, aO as GiftCardPurchaseResult, aP as GiftCardSummary, aQ as LessonNote, aR as LessonQuiz, aS as LoginInput, aT as LoyaltyBalance, aU as LoyaltyNextTier, aV as LoyaltyProgram, aW as LoyaltyQuery, aX as LoyaltyReferralResult, aY as LoyaltySummary, aZ as LoyaltyTier, a_ as LoyaltyTierPerks, a$ as LoyaltyTransaction, b0 as Menu, b1 as MenuItem, b2 as MenuItemRef, b3 as MenuItemType, b4 as MessageResponse, b5 as NewsletterConfirmResult, b6 as NewsletterOptInDefault, b7 as NewsletterSubscribeInput, b8 as NewsletterSubscribeResult, b9 as NewsletterUnsubscribeResult, ba as OrderAccessRequestResponse, bb as OrderAccessVerifyResponse, bc as OrderDetail, bd as OrderDiscount, be as OrderDocument, bf as OrderItem, bg as OrderListItem, bh as OrderPaymentInstructions, bi as OrderPickupPoint, bj as OrderShipment, bk as OrderStatus, bl as OrderStatusHistory, bm as OrderStatuses, bn as OrderTracking, bo as Page, bp as PageAttachment, bq as PageDetail, br as PaginatedResponse, bs as PaymentInstrument, bt as PaymentStatus, bu as PaymentStatuses, bv as PaymentSwift, bw as PickupPoint, bx as PickupPointHours, by as PickupPointsInput, bz as PickupWidgetConfig, bA as PriceDisplay, bB as ProductAssetGroup, bC as ProductAssetItem, bD as ProductAvailability, bE as ProductGroup, bF as ProductLabel, bG as ProductListItem, bH as ProductMedia, bI as ProductMediaVariant, bJ as ProductParameter, bK as ProductParameterGroup, bL as ProductParametersResponse, bM as ProductPrice, bN as ProductPromotionSummary, bO as ProductReview, bP as ProductReviewsResponse, bQ as ProductSibling, bR as ProductSort, bS as ProductSortValue, bT as ProductVolumePrice, bU as ProductsQuery, bV as QuizAnswerInput, bW as QuizAnswerResult, bX as QuizQuestion, bY as QuizResult, bZ as QuoteItem, b_ as QuoteRequest, b$ as RegisterInput, c0 as RegisterResult, c1 as RequestInterceptor, c2 as RequestInterceptorConfig, c3 as ResponseInterceptor, c4 as ResponseInterceptorData, c5 as ReturnRequest, c6 as ReturnRequestItem, c7 as ReturnStatus, c8 as ReturnStatusItem, c9 as ReturnableOrder, ca as ReturnableOrderItem, cb as SdkError, cc as ShippingMethodSummary, cd as ShippingPublicConfig, ce as ShippingQuote, cf as ShippingQuoteInput, cg as ShopAppearance, ch as ShopCommerce, ci as ShopInfo, cj as ShopScript, ck as ShopScriptPlacement, cl as ShopScriptType, cm as ShopScripts, cn as ShopSeo, co as ShopSeoIdentity, cp as SiteFormField, cq as SiteFormFieldOption, cr as SiteFormFieldType, cs as Sitemap, ct as SitemapEntry, cu as StockBehavior, cv as StockMode, cw as StorefrontCollection, cx as StorefrontCollectionField, cy as StorefrontCollectionFieldType, cz as StorefrontCollectionItem, cA as StorefrontCollectionQuery, cB as StorefrontFaqGroup, cC as StorefrontFaqGroupSummary, cD as StorefrontFaqGroups, cE as StorefrontFaqItem, cF as StorefrontFaqQuery, cG as StorefrontForm, cH as StorefrontFormFieldErrorCode, cI as StorefrontFormFile, cJ as StorefrontFormPresentation, cK as StorefrontFormSettings, cL as StorefrontFormSubmitInput, cM as StorefrontFormSubmitResult, cN as StorefrontFormUpload, cO as SubmitQuoteInput, cP as SubmitReturnInput, cQ as SubmitReviewInput, cR as SubmitWithdrawalInput, cS as Subscription, cT as SubscriptionAction, cU as SubscriptionFrequency, cV as SubscriptionItem, cW as SubscriptionStatus, cX as TaxBreakdownLine, cY as VariantAxis, cZ as VariantAxisValue, c_ as WishlistItem, c$ as WithdrawalAcknowledgement, d0 as WithdrawalFlag, d1 as WithdrawalSettings, d2 as WithdrawalWindow, d3 as clearCartSummary, d4 as err, d5 as ok, d6 as publishCartSummary, d7 as toSdkError } from './client-DtAz0rDJ.mjs';
3
3
 
4
4
  /**
5
5
  * Format a price amount with currency using Intl.NumberFormat.
@@ -140,7 +140,7 @@ declare function buildVariantComparison(product: ProductDetail, labels: {
140
140
  * Consent stays the script layer's job: this helper never loads anything, it
141
141
  * only talks to runtimes that already exist on the page.
142
142
  */
143
- type EcommerceEventName = "view_item" | "view_item_list" | "select_item" | "add_to_cart" | "remove_from_cart" | "view_cart" | "add_to_wishlist" | "view_promotion" | "select_promotion" | "begin_checkout" | "add_payment_info" | "add_shipping_info" | "search" | "generate_lead" | "purchase" | "variant_selected" | "newsletter_signup";
143
+ type EcommerceEventName = "view_item" | "view_item_list" | "select_item" | "add_to_cart" | "remove_from_cart" | "view_cart" | "add_to_wishlist" | "view_promotion" | "select_promotion" | "begin_checkout" | "add_payment_info" | "add_shipping_info" | "search" | "generate_lead" | "purchase" | "variant_selected" | "newsletter_signup" | "newsletter_request" | "form_popup_view";
144
144
  type EcommerceItem = {
145
145
  item_id: string;
146
146
  item_name: string;
@@ -269,4 +269,38 @@ declare function validationFieldMessages(err: unknown, locale?: ErrorMessageLoca
269
269
  */
270
270
  declare function formFieldErrors(err: unknown): StorefrontFormFieldError[];
271
271
 
272
- export { BehioStorefront, CookieConsent, type EcommerceEventName, type EcommerceItem, type EcommercePayload, type ErrorMessageLocale, ProductDetail, ProductVariant, type ResolvedVariantContent, SdkResult, StorefrontFormFieldError, VARIANT_QUERY_PARAM, type VariantComparisonRow, availableAxisValues, buildVariantComparison, errorCode, errorMessage, errorParams, findVariantByAttributes, formFieldErrors, formatPrice, generateVisitorId, getStoredVisitorId, grantAnalyticsConsent, resolveVariantContent, revokeAnalyticsConsent, trackEcommerceEvent, validationFieldMessages, variantFromQuery, variantHref };
272
+ interface StorageAdapter {
273
+ get(key: string): string | null;
274
+ set(key: string, value: string): void;
275
+ remove(key: string): void;
276
+ }
277
+
278
+ declare const NEWSLETTER_REQUESTED_EVENT = "behio:newsletter-requested";
279
+ /** A preference only, no email, subscriber lookup, visitor id or fingerprint. Pending confirmation counts too. */
280
+ declare function markNewsletterRequested(): void;
281
+ declare function newsletterWasRequested(): boolean;
282
+ declare function matchesFormPath(rule: string, pathname: string): boolean;
283
+ declare function formPopupRouteAllowed(pathname: string, placement: StorefrontFormPlacement): boolean;
284
+ /** Visible time survives hard navigation. Hidden time is never persisted as active time. */
285
+ declare class FormPopupClock {
286
+ elapsedMs: number;
287
+ private since;
288
+ constructor(elapsedMs?: number);
289
+ setVisible(visible: boolean, now: number): void;
290
+ elapsed(now: number): number;
291
+ }
292
+ declare class FormPopupPreferences {
293
+ private session;
294
+ private persistent;
295
+ private now;
296
+ private shownInVisit;
297
+ constructor(session?: StorageAdapter, persistent?: StorageAdapter, now?: () => number);
298
+ private number;
299
+ visibleMs(): number;
300
+ saveTime(visible: number): void;
301
+ suppressed(slug: string, newsletter?: boolean): boolean;
302
+ shown(): void;
303
+ dismiss(slug: string, days: number): void;
304
+ }
305
+
306
+ export { BehioStorefront, CookieConsent, type EcommerceEventName, type EcommerceItem, type EcommercePayload, type ErrorMessageLocale, FormPopupClock, FormPopupPreferences, NEWSLETTER_REQUESTED_EVENT, ProductDetail, ProductVariant, type ResolvedVariantContent, SdkResult, StorefrontFormFieldError, StorefrontFormPlacement, VARIANT_QUERY_PARAM, type VariantComparisonRow, availableAxisValues, buildVariantComparison, errorCode, errorMessage, errorParams, findVariantByAttributes, formFieldErrors, formPopupRouteAllowed, formatPrice, generateVisitorId, getStoredVisitorId, grantAnalyticsConsent, markNewsletterRequested, matchesFormPath, newsletterWasRequested, resolveVariantContent, revokeAnalyticsConsent, trackEcommerceEvent, validationFieldMessages, variantFromQuery, variantHref };
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-Bm8Fwcp7.js';
2
- export { A as ActivePromotion, c as AddToCartInput, d as AddToCartItemsInput, e as AddressDetail, f as AddressSuggestion, g as AddressType, h as AddressTypes, i as AuthTokens, j as BackInStockSubscription, k as BadgeTone, l as BehioApiError, m as BehioErrorCode, n as BehioEventHandler, o as BehioEventType, p as BehioNetworkError, q as BehioStorefrontConfig, r as Blog, s as BlogPostDetail, t as BlogPostListItem, u as BlogPostsPage, v as BlogPostsQuery, w as BlogSettings, x as BlogTag, y as Booking, z as BookingCategory, D as BookingConfig, E as BookingCreateInput, F as BookingCreated, G as BookingLocale, H as BookingLocation, I as BookingManageSlotsQuery, J as BookingService, K as BookingSlot, L as BookingSlots, M as BookingSlotsQuery, N as BookingStaff, O as BookingStatus, Q as Bundle, R as BundleCatalogQuery, T as BundleItem, U as Cart, V as CartBundleLine, W as CartBundleLineItem, X as CartDiscount, Y as CartItem, Z as CartItemProduct, _ as CartLinkClaimed, $ as CartPromotion, a0 as CartSummaryEvent, a1 as Category, a2 as CategoryDetail, a3 as CertificateVerification, a4 as CheckoutAddress, a5 as CheckoutInput, a6 as CheckoutPaymentMethod, a7 as CheckoutPreview, a8 as CheckoutResult, a9 as CheckoutSettings, aa as CookieConsentInput, ab as CourseAttachment, ac as CourseCertificate, ad as CourseComment, ae as CourseCommentReply, af as CourseCommentsList, ag as CourseDetail, ah as CourseLesson, ai as CourseListItem, aj as CourseModule, ak as CoursePostedComment, al as CourseProgress, am as CourseTutorMessage, an as CourseTutorThread, ao as CrossSellItem, ap as CurrencyDisplayFormat, aq as CustomerAddress, ar as CustomerBadge, as as CustomerChallenge, at as CustomerGamification, au as CustomerGamificationQuery, av as CustomerProfile, aw as DigitalDownload, ax as DownloadUrl, ay as Facet, az as FacetAvailability, aA as FacetCategory, aB as FacetLabel, aC as FacetPriceRange, aD as FacetRange, aE as FacetRatingBucket, aF as FacetValue, aG as FacetsResponse, aH as FilterField, aI as FulfillmentStatus, aJ as FulfillmentStatuses, aK as GamificationRefreshResult, aL as GiftCardBalance, aM as GiftCardPurchaseInput, aN as GiftCardPurchaseResult, aO as GiftCardSummary, aP as LessonNote, aQ as LessonQuiz, aR as LoginInput, aS as LoyaltyBalance, aT as LoyaltyNextTier, aU as LoyaltyProgram, aV as LoyaltyQuery, aW as LoyaltyReferralResult, aX as LoyaltySummary, aY as LoyaltyTier, aZ as LoyaltyTierPerks, a_ as LoyaltyTransaction, a$ as Menu, b0 as MenuItem, b1 as MenuItemRef, b2 as MenuItemType, b3 as MessageResponse, b4 as NewsletterOptInDefault, b5 as NewsletterSubscribeInput, b6 as NewsletterSubscribeResult, b7 as NewsletterUnsubscribeResult, b8 as OrderAccessRequestResponse, b9 as OrderAccessVerifyResponse, ba as OrderDetail, bb as OrderDiscount, bc as OrderDocument, bd as OrderItem, be as OrderListItem, bf as OrderPaymentInstructions, bg as OrderPickupPoint, bh as OrderShipment, bi as OrderStatus, bj as OrderStatusHistory, bk as OrderStatuses, bl as OrderTracking, bm as Page, bn as PageAttachment, bo as PageDetail, bp as PaginatedResponse, bq as PaymentInstrument, br as PaymentStatus, bs as PaymentStatuses, bt as PaymentSwift, bu as PickupPoint, bv as PickupPointHours, bw as PickupPointsInput, bx as PickupWidgetConfig, by as PriceDisplay, bz as ProductAssetGroup, bA as ProductAssetItem, bB as ProductAvailability, bC as ProductGroup, bD as ProductLabel, bE as ProductListItem, bF as ProductMedia, bG as ProductMediaVariant, bH as ProductParameter, bI as ProductParameterGroup, bJ as ProductParametersResponse, bK as ProductPrice, bL as ProductPromotionSummary, bM as ProductReview, bN as ProductReviewsResponse, bO as ProductSibling, bP as ProductSort, bQ as ProductSortValue, bR as ProductVolumePrice, bS as ProductsQuery, bT as QuizAnswerInput, bU as QuizAnswerResult, bV as QuizQuestion, bW as QuizResult, bX as QuoteItem, bY as QuoteRequest, bZ as RegisterInput, b_ as RegisterResult, b$ as RequestInterceptor, c0 as RequestInterceptorConfig, c1 as ResponseInterceptor, c2 as ResponseInterceptorData, c3 as ReturnRequest, c4 as ReturnRequestItem, c5 as ReturnStatus, c6 as ReturnStatusItem, c7 as ReturnableOrder, c8 as ReturnableOrderItem, c9 as SdkError, ca as ShippingMethodSummary, cb as ShippingPublicConfig, cc as ShippingQuote, cd as ShippingQuoteInput, ce as ShopAppearance, cf as ShopCommerce, cg as ShopInfo, ch as ShopScript, ci as ShopScriptPlacement, cj as ShopScriptType, ck as ShopScripts, cl as ShopSeo, cm as ShopSeoIdentity, cn as SiteFormField, co as SiteFormFieldOption, cp as SiteFormFieldType, cq as Sitemap, cr as SitemapEntry, cs as StockBehavior, ct as StockMode, cu as StorefrontCollection, cv as StorefrontCollectionField, cw as StorefrontCollectionFieldType, cx as StorefrontCollectionItem, cy as StorefrontCollectionQuery, cz as StorefrontFaqGroup, cA as StorefrontFaqGroupSummary, cB as StorefrontFaqGroups, cC as StorefrontFaqItem, cD as StorefrontFaqQuery, cE as StorefrontForm, cF as StorefrontFormFieldErrorCode, cG as StorefrontFormFile, cH as StorefrontFormSettings, cI as StorefrontFormSubmitInput, cJ as StorefrontFormSubmitResult, cK as StorefrontFormUpload, cL as SubmitQuoteInput, cM as SubmitReturnInput, cN as SubmitReviewInput, cO as SubmitWithdrawalInput, cP as Subscription, cQ as SubscriptionAction, cR as SubscriptionFrequency, cS as SubscriptionItem, cT as SubscriptionStatus, cU as TaxBreakdownLine, cV as VariantAxis, cW as VariantAxisValue, cX as WishlistItem, cY as WithdrawalAcknowledgement, cZ as WithdrawalFlag, c_ as WithdrawalSettings, c$ as WithdrawalWindow, d0 as clearCartSummary, d1 as err, d2 as ok, d3 as publishCartSummary, d4 as toSdkError } from './client-Bm8Fwcp7.js';
1
+ import { P as ProductDetail, a as ProductVariant, B as BehioStorefront, S as SdkResult, C as CookieConsent, b as StorefrontFormFieldError, c as StorefrontFormPlacement } from './client-DtAz0rDJ.js';
2
+ export { A as ActivePromotion, d as AddToCartInput, e as AddToCartItemsInput, f as AddressDetail, g as AddressSuggestion, h as AddressType, i as AddressTypes, j as AuthTokens, k as BackInStockSubscription, l as BadgeTone, m as BehioApiError, n as BehioErrorCode, o as BehioEventHandler, p as BehioEventType, q as BehioNetworkError, r as BehioStorefrontConfig, s as Blog, t as BlogPostDetail, u as BlogPostListItem, v as BlogPostsPage, w as BlogPostsQuery, x as BlogSettings, y as BlogTag, z as Booking, D as BookingCategory, E as BookingConfig, F as BookingCreateInput, G as BookingCreated, H as BookingLocale, I as BookingLocation, J as BookingManageSlotsQuery, K as BookingService, L as BookingSlot, M as BookingSlots, N as BookingSlotsQuery, O as BookingStaff, Q as BookingStatus, R as Bundle, T as BundleCatalogQuery, U as BundleItem, V as Cart, W as CartBundleLine, X as CartBundleLineItem, Y as CartDiscount, Z as CartItem, _ as CartItemProduct, $ as CartLinkClaimed, a0 as CartPromotion, a1 as CartSummaryEvent, a2 as Category, a3 as CategoryDetail, a4 as CertificateVerification, a5 as CheckoutAddress, a6 as CheckoutInput, a7 as CheckoutPaymentMethod, a8 as CheckoutPreview, a9 as CheckoutResult, aa as CheckoutSettings, ab as CookieConsentInput, ac as CourseAttachment, ad as CourseCertificate, ae as CourseComment, af as CourseCommentReply, ag as CourseCommentsList, ah as CourseDetail, ai as CourseLesson, aj as CourseListItem, ak as CourseModule, al as CoursePostedComment, am as CourseProgress, an as CourseTutorMessage, ao as CourseTutorThread, ap as CrossSellItem, aq as CurrencyDisplayFormat, ar as CustomerAddress, as as CustomerBadge, at as CustomerChallenge, au as CustomerGamification, av as CustomerGamificationQuery, aw as CustomerProfile, ax as DigitalDownload, ay as DownloadUrl, az as Facet, aA as FacetAvailability, aB as FacetCategory, aC as FacetLabel, aD as FacetPriceRange, aE as FacetRange, aF as FacetRatingBucket, aG as FacetValue, aH as FacetsResponse, aI as FilterField, aJ as FulfillmentStatus, aK as FulfillmentStatuses, aL as GamificationRefreshResult, aM as GiftCardBalance, aN as GiftCardPurchaseInput, aO as GiftCardPurchaseResult, aP as GiftCardSummary, aQ as LessonNote, aR as LessonQuiz, aS as LoginInput, aT as LoyaltyBalance, aU as LoyaltyNextTier, aV as LoyaltyProgram, aW as LoyaltyQuery, aX as LoyaltyReferralResult, aY as LoyaltySummary, aZ as LoyaltyTier, a_ as LoyaltyTierPerks, a$ as LoyaltyTransaction, b0 as Menu, b1 as MenuItem, b2 as MenuItemRef, b3 as MenuItemType, b4 as MessageResponse, b5 as NewsletterConfirmResult, b6 as NewsletterOptInDefault, b7 as NewsletterSubscribeInput, b8 as NewsletterSubscribeResult, b9 as NewsletterUnsubscribeResult, ba as OrderAccessRequestResponse, bb as OrderAccessVerifyResponse, bc as OrderDetail, bd as OrderDiscount, be as OrderDocument, bf as OrderItem, bg as OrderListItem, bh as OrderPaymentInstructions, bi as OrderPickupPoint, bj as OrderShipment, bk as OrderStatus, bl as OrderStatusHistory, bm as OrderStatuses, bn as OrderTracking, bo as Page, bp as PageAttachment, bq as PageDetail, br as PaginatedResponse, bs as PaymentInstrument, bt as PaymentStatus, bu as PaymentStatuses, bv as PaymentSwift, bw as PickupPoint, bx as PickupPointHours, by as PickupPointsInput, bz as PickupWidgetConfig, bA as PriceDisplay, bB as ProductAssetGroup, bC as ProductAssetItem, bD as ProductAvailability, bE as ProductGroup, bF as ProductLabel, bG as ProductListItem, bH as ProductMedia, bI as ProductMediaVariant, bJ as ProductParameter, bK as ProductParameterGroup, bL as ProductParametersResponse, bM as ProductPrice, bN as ProductPromotionSummary, bO as ProductReview, bP as ProductReviewsResponse, bQ as ProductSibling, bR as ProductSort, bS as ProductSortValue, bT as ProductVolumePrice, bU as ProductsQuery, bV as QuizAnswerInput, bW as QuizAnswerResult, bX as QuizQuestion, bY as QuizResult, bZ as QuoteItem, b_ as QuoteRequest, b$ as RegisterInput, c0 as RegisterResult, c1 as RequestInterceptor, c2 as RequestInterceptorConfig, c3 as ResponseInterceptor, c4 as ResponseInterceptorData, c5 as ReturnRequest, c6 as ReturnRequestItem, c7 as ReturnStatus, c8 as ReturnStatusItem, c9 as ReturnableOrder, ca as ReturnableOrderItem, cb as SdkError, cc as ShippingMethodSummary, cd as ShippingPublicConfig, ce as ShippingQuote, cf as ShippingQuoteInput, cg as ShopAppearance, ch as ShopCommerce, ci as ShopInfo, cj as ShopScript, ck as ShopScriptPlacement, cl as ShopScriptType, cm as ShopScripts, cn as ShopSeo, co as ShopSeoIdentity, cp as SiteFormField, cq as SiteFormFieldOption, cr as SiteFormFieldType, cs as Sitemap, ct as SitemapEntry, cu as StockBehavior, cv as StockMode, cw as StorefrontCollection, cx as StorefrontCollectionField, cy as StorefrontCollectionFieldType, cz as StorefrontCollectionItem, cA as StorefrontCollectionQuery, cB as StorefrontFaqGroup, cC as StorefrontFaqGroupSummary, cD as StorefrontFaqGroups, cE as StorefrontFaqItem, cF as StorefrontFaqQuery, cG as StorefrontForm, cH as StorefrontFormFieldErrorCode, cI as StorefrontFormFile, cJ as StorefrontFormPresentation, cK as StorefrontFormSettings, cL as StorefrontFormSubmitInput, cM as StorefrontFormSubmitResult, cN as StorefrontFormUpload, cO as SubmitQuoteInput, cP as SubmitReturnInput, cQ as SubmitReviewInput, cR as SubmitWithdrawalInput, cS as Subscription, cT as SubscriptionAction, cU as SubscriptionFrequency, cV as SubscriptionItem, cW as SubscriptionStatus, cX as TaxBreakdownLine, cY as VariantAxis, cZ as VariantAxisValue, c_ as WishlistItem, c$ as WithdrawalAcknowledgement, d0 as WithdrawalFlag, d1 as WithdrawalSettings, d2 as WithdrawalWindow, d3 as clearCartSummary, d4 as err, d5 as ok, d6 as publishCartSummary, d7 as toSdkError } from './client-DtAz0rDJ.js';
3
3
 
4
4
  /**
5
5
  * Format a price amount with currency using Intl.NumberFormat.
@@ -140,7 +140,7 @@ declare function buildVariantComparison(product: ProductDetail, labels: {
140
140
  * Consent stays the script layer's job: this helper never loads anything, it
141
141
  * only talks to runtimes that already exist on the page.
142
142
  */
143
- type EcommerceEventName = "view_item" | "view_item_list" | "select_item" | "add_to_cart" | "remove_from_cart" | "view_cart" | "add_to_wishlist" | "view_promotion" | "select_promotion" | "begin_checkout" | "add_payment_info" | "add_shipping_info" | "search" | "generate_lead" | "purchase" | "variant_selected" | "newsletter_signup";
143
+ type EcommerceEventName = "view_item" | "view_item_list" | "select_item" | "add_to_cart" | "remove_from_cart" | "view_cart" | "add_to_wishlist" | "view_promotion" | "select_promotion" | "begin_checkout" | "add_payment_info" | "add_shipping_info" | "search" | "generate_lead" | "purchase" | "variant_selected" | "newsletter_signup" | "newsletter_request" | "form_popup_view";
144
144
  type EcommerceItem = {
145
145
  item_id: string;
146
146
  item_name: string;
@@ -269,4 +269,38 @@ declare function validationFieldMessages(err: unknown, locale?: ErrorMessageLoca
269
269
  */
270
270
  declare function formFieldErrors(err: unknown): StorefrontFormFieldError[];
271
271
 
272
- export { BehioStorefront, CookieConsent, type EcommerceEventName, type EcommerceItem, type EcommercePayload, type ErrorMessageLocale, ProductDetail, ProductVariant, type ResolvedVariantContent, SdkResult, StorefrontFormFieldError, VARIANT_QUERY_PARAM, type VariantComparisonRow, availableAxisValues, buildVariantComparison, errorCode, errorMessage, errorParams, findVariantByAttributes, formFieldErrors, formatPrice, generateVisitorId, getStoredVisitorId, grantAnalyticsConsent, resolveVariantContent, revokeAnalyticsConsent, trackEcommerceEvent, validationFieldMessages, variantFromQuery, variantHref };
272
+ interface StorageAdapter {
273
+ get(key: string): string | null;
274
+ set(key: string, value: string): void;
275
+ remove(key: string): void;
276
+ }
277
+
278
+ declare const NEWSLETTER_REQUESTED_EVENT = "behio:newsletter-requested";
279
+ /** A preference only, no email, subscriber lookup, visitor id or fingerprint. Pending confirmation counts too. */
280
+ declare function markNewsletterRequested(): void;
281
+ declare function newsletterWasRequested(): boolean;
282
+ declare function matchesFormPath(rule: string, pathname: string): boolean;
283
+ declare function formPopupRouteAllowed(pathname: string, placement: StorefrontFormPlacement): boolean;
284
+ /** Visible time survives hard navigation. Hidden time is never persisted as active time. */
285
+ declare class FormPopupClock {
286
+ elapsedMs: number;
287
+ private since;
288
+ constructor(elapsedMs?: number);
289
+ setVisible(visible: boolean, now: number): void;
290
+ elapsed(now: number): number;
291
+ }
292
+ declare class FormPopupPreferences {
293
+ private session;
294
+ private persistent;
295
+ private now;
296
+ private shownInVisit;
297
+ constructor(session?: StorageAdapter, persistent?: StorageAdapter, now?: () => number);
298
+ private number;
299
+ visibleMs(): number;
300
+ saveTime(visible: number): void;
301
+ suppressed(slug: string, newsletter?: boolean): boolean;
302
+ shown(): void;
303
+ dismiss(slug: string, days: number): void;
304
+ }
305
+
306
+ export { BehioStorefront, CookieConsent, type EcommerceEventName, type EcommerceItem, type EcommercePayload, type ErrorMessageLocale, FormPopupClock, FormPopupPreferences, NEWSLETTER_REQUESTED_EVENT, ProductDetail, ProductVariant, type ResolvedVariantContent, SdkResult, StorefrontFormFieldError, StorefrontFormPlacement, VARIANT_QUERY_PARAM, type VariantComparisonRow, availableAxisValues, buildVariantComparison, errorCode, errorMessage, errorParams, findVariantByAttributes, formFieldErrors, formPopupRouteAllowed, formatPrice, generateVisitorId, getStoredVisitorId, grantAnalyticsConsent, markNewsletterRequested, matchesFormPath, newsletterWasRequested, resolveVariantContent, revokeAnalyticsConsent, trackEcommerceEvent, validationFieldMessages, variantFromQuery, variantHref };