@cimplify/sdk 0.78.0 → 0.79.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.
Files changed (42) hide show
  1. package/dist/advanced.d.mts +1 -1
  2. package/dist/advanced.d.ts +1 -1
  3. package/dist/{chunk-QS4XDVHI.js → chunk-5BPBDWAA.js} +94 -0
  4. package/dist/{chunk-XRJCLWJ2.mjs → chunk-BNA4GW4D.mjs} +11 -1
  5. package/dist/{chunk-7EYA527E.mjs → chunk-FURKCWVG.mjs} +2 -2
  6. package/dist/{chunk-H337NF4O.mjs → chunk-LBFTEXGD.mjs} +94 -1
  7. package/dist/{chunk-2SJUHD32.js → chunk-OSTOGR4F.js} +11 -1
  8. package/dist/{chunk-EIJKO43W.js → chunk-T7ALPOK7.js} +4 -4
  9. package/dist/{client-BW82Vq-p.d.ts → client-BAzvXSLJ.d.ts} +1 -1
  10. package/dist/{client-BFuRYjAL.d.mts → client-Byysg2IX.d.mts} +1 -1
  11. package/dist/{client-DxW_uHll.d.ts → client-Cn5trGYV.d.ts} +31 -1
  12. package/dist/{client-B1ix2-Og.d.mts → client-D16qfHAB.d.mts} +31 -1
  13. package/dist/index.d.mts +1 -1
  14. package/dist/index.d.ts +1 -1
  15. package/dist/index.js +13 -9
  16. package/dist/index.mjs +1 -1
  17. package/dist/mock/cli.mjs +11 -1
  18. package/dist/mock/library.js +11 -1
  19. package/dist/mock/library.mjs +11 -1
  20. package/dist/mock/msw.js +11 -1
  21. package/dist/mock/msw.mjs +11 -1
  22. package/dist/react.d.mts +15 -2
  23. package/dist/react.d.ts +15 -2
  24. package/dist/react.js +18 -2
  25. package/dist/react.mjs +17 -2
  26. package/dist/server-BXT62nBC.d.mts +1186 -0
  27. package/dist/server-BXT62nBC.d.ts +1186 -0
  28. package/dist/server.d.mts +2 -2
  29. package/dist/server.d.ts +2 -2
  30. package/dist/server.js +2 -2
  31. package/dist/server.mjs +1 -1
  32. package/dist/testing/msw.js +2 -2
  33. package/dist/testing/msw.mjs +1 -1
  34. package/dist/testing/suite.d.mts +2 -2
  35. package/dist/testing/suite.d.ts +2 -2
  36. package/dist/testing/suite.js +22 -22
  37. package/dist/testing/suite.mjs +3 -3
  38. package/dist/testing.d.mts +2 -2
  39. package/dist/testing.d.ts +2 -2
  40. package/dist/testing.js +78 -78
  41. package/dist/testing.mjs +4 -4
  42. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- export { k as AuthService, C as BusinessService, P as CartOperations, Q as CatalogueQueries, a9 as CheckoutOperations, a9 as CheckoutService, af as CimplifyElement, ag as CimplifyElements, aF as ELEMENT_TYPES, aG as EVENT_TYPES, aJ as ElementEventType, aK as ElementOptions, aL as ElementType, aT as ElementsOptions, a$ as FetchQuoteInput, b7 as FxService, ba as GetProductsOptions, bd as InventoryService, bk as LinkService, bo as LiteService, bv as MESSAGE_TYPES, bY as OrderQueries, cf as PriceQuote, cl as QuoteBundleSelectionInput, cm as QuoteCompositeSelectionInput, cn as QuoteDynamicBuckets, co as QuoteStatus, cp as QuoteUiMessage, cr as RefreshQuoteInput, cs as RefreshQuoteResult, cT as SchedulingService, dw as createElements } from './client-B1ix2-Og.mjs';
1
+ export { k as AuthService, C as BusinessService, P as CartOperations, Q as CatalogueQueries, a9 as CheckoutOperations, a9 as CheckoutService, af as CimplifyElement, ag as CimplifyElements, aF as ELEMENT_TYPES, aG as EVENT_TYPES, aJ as ElementEventType, aK as ElementOptions, aL as ElementType, aT as ElementsOptions, a$ as FetchQuoteInput, b7 as FxService, ba as GetProductsOptions, bd as InventoryService, bk as LinkService, bo as LiteService, bv as MESSAGE_TYPES, bY as OrderQueries, cf as PriceQuote, cl as QuoteBundleSelectionInput, cm as QuoteCompositeSelectionInput, cn as QuoteDynamicBuckets, co as QuoteStatus, cp as QuoteUiMessage, cr as RefreshQuoteInput, cs as RefreshQuoteResult, cT as SchedulingService, dy as createElements } from './client-D16qfHAB.mjs';
2
2
  import './product-BgFOFmQw.mjs';
3
3
  import './payment-B7qzWdaJ.mjs';
4
4
 
@@ -1,4 +1,4 @@
1
- export { k as AuthService, C as BusinessService, P as CartOperations, Q as CatalogueQueries, a9 as CheckoutOperations, a9 as CheckoutService, af as CimplifyElement, ag as CimplifyElements, aF as ELEMENT_TYPES, aG as EVENT_TYPES, aJ as ElementEventType, aK as ElementOptions, aL as ElementType, aT as ElementsOptions, a$ as FetchQuoteInput, b7 as FxService, ba as GetProductsOptions, bd as InventoryService, bk as LinkService, bo as LiteService, bv as MESSAGE_TYPES, bY as OrderQueries, cf as PriceQuote, cl as QuoteBundleSelectionInput, cm as QuoteCompositeSelectionInput, cn as QuoteDynamicBuckets, co as QuoteStatus, cp as QuoteUiMessage, cr as RefreshQuoteInput, cs as RefreshQuoteResult, cT as SchedulingService, dw as createElements } from './client-DxW_uHll.js';
1
+ export { k as AuthService, C as BusinessService, P as CartOperations, Q as CatalogueQueries, a9 as CheckoutOperations, a9 as CheckoutService, af as CimplifyElement, ag as CimplifyElements, aF as ELEMENT_TYPES, aG as EVENT_TYPES, aJ as ElementEventType, aK as ElementOptions, aL as ElementType, aT as ElementsOptions, a$ as FetchQuoteInput, b7 as FxService, ba as GetProductsOptions, bd as InventoryService, bk as LinkService, bo as LiteService, bv as MESSAGE_TYPES, bY as OrderQueries, cf as PriceQuote, cl as QuoteBundleSelectionInput, cm as QuoteCompositeSelectionInput, cn as QuoteDynamicBuckets, co as QuoteStatus, cp as QuoteUiMessage, cr as RefreshQuoteInput, cs as RefreshQuoteResult, cT as SchedulingService, dy as createElements } from './client-Cn5trGYV.js';
2
2
  import './product-BgFOFmQw.js';
3
3
  import './payment-mVIJIJcq.js';
4
4
 
@@ -3,11 +3,77 @@
3
3
  var chunkCV5QMDQS_js = require('./chunk-CV5QMDQS.js');
4
4
  var chunkXA3ZNR75_js = require('./chunk-XA3ZNR75.js');
5
5
 
6
+ // src/store-credit.ts
7
+ var StoreCreditQueries = class {
8
+ constructor(client) {
9
+ this.client = client;
10
+ }
11
+ /**
12
+ * The shopper's available store-credit balance, in the business's default
13
+ * currency. Requires a signed-in customer; returns an error otherwise.
14
+ */
15
+ async balance() {
16
+ return chunkCV5QMDQS_js.safe(this.client.get("/api/v1/store-credit/balance"));
17
+ }
18
+ };
19
+
6
20
  // src/activity.ts
21
+ var VISITOR_ID_STORAGE_KEY = "cimplify_visitor_id";
22
+ var SESSION_STARTED_STORAGE_KEY = "cimplify_session_started_at";
7
23
  var ActivityService = class {
8
24
  constructor(client) {
9
25
  this.client = client;
10
26
  }
27
+ /**
28
+ * Record session start (landing, referrer, UTM, device). Fire-and-forget,
29
+ * at most once per tab session; called automatically by the track* methods.
30
+ */
31
+ startSession() {
32
+ if (typeof window === "undefined") return;
33
+ let alreadyStarted = null;
34
+ try {
35
+ alreadyStarted = sessionStorage.getItem(SESSION_STARTED_STORAGE_KEY);
36
+ } catch {
37
+ }
38
+ if (alreadyStarted) return;
39
+ const startedAt = (/* @__PURE__ */ new Date()).toISOString();
40
+ try {
41
+ sessionStorage.setItem(SESSION_STARTED_STORAGE_KEY, startedAt);
42
+ } catch {
43
+ }
44
+ this.client.post("/api/v1/activity/session", this.buildSessionPayload(startedAt)).catch(() => {
45
+ });
46
+ }
47
+ buildSessionPayload(startedAt) {
48
+ const params = new URLSearchParams(window.location.search);
49
+ const utm = (key) => params.get(`utm_${key}`) || void 0;
50
+ const { visitorId, isNewVisitor } = resolveVisitor();
51
+ let timezone;
52
+ try {
53
+ timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
54
+ } catch {
55
+ }
56
+ return {
57
+ started_at: startedAt,
58
+ landing_page: window.location.pathname,
59
+ landing_url: window.location.href,
60
+ referrer_url: document.referrer || void 0,
61
+ utm_source: utm("source"),
62
+ utm_medium: utm("medium"),
63
+ utm_campaign: utm("campaign"),
64
+ utm_term: utm("term"),
65
+ utm_content: utm("content"),
66
+ screen_width: window.screen?.width,
67
+ screen_height: window.screen?.height,
68
+ viewport_width: window.innerWidth,
69
+ viewport_height: window.innerHeight,
70
+ pixel_density: window.devicePixelRatio,
71
+ language: navigator.language,
72
+ timezone,
73
+ fingerprint: visitorId,
74
+ is_new_visitor: isNewVisitor
75
+ };
76
+ }
11
77
  trackProductView(productId, options = {}) {
12
78
  const event = {
13
79
  type: "product_view",
@@ -45,6 +111,7 @@ var ActivityService = class {
45
111
  );
46
112
  }
47
113
  sendEvents(events) {
114
+ this.startSession();
48
115
  this.client.post("/api/v1/activity/events", { events }).catch(() => {
49
116
  });
50
117
  }
@@ -55,6 +122,19 @@ function currentPath() {
55
122
  }
56
123
  return void 0;
57
124
  }
125
+ function resolveVisitor() {
126
+ try {
127
+ const existing = localStorage.getItem(VISITOR_ID_STORAGE_KEY);
128
+ if (existing) {
129
+ return { visitorId: existing, isNewVisitor: false };
130
+ }
131
+ const visitorId = typeof crypto !== "undefined" && crypto.randomUUID ? crypto.randomUUID() : `v_${Date.now().toString(36)}${Math.random().toString(36).slice(2)}`;
132
+ localStorage.setItem(VISITOR_ID_STORAGE_KEY, visitorId);
133
+ return { visitorId, isNewVisitor: true };
134
+ } catch {
135
+ return {};
136
+ }
137
+ }
58
138
 
59
139
  // src/subscriptions.ts
60
140
  var SubscriptionService = class {
@@ -567,6 +647,13 @@ var CimplifyClient = class {
567
647
  if (this.sessionToken) {
568
648
  headers[SESSION_TOKEN_HEADER] = this.sessionToken;
569
649
  }
650
+ if (typeof window !== "undefined") {
651
+ headers["X-Storefront-Host"] = window.location.host;
652
+ const preview = new URLSearchParams(window.location.search).get("preview");
653
+ if (preview) {
654
+ headers["X-Storefront-Preview"] = preview;
655
+ }
656
+ }
570
657
  return headers;
571
658
  }
572
659
  async resilientFetch(url, options) {
@@ -836,6 +923,12 @@ var CimplifyClient = class {
836
923
  }
837
924
  return this._orders;
838
925
  }
926
+ get storeCredit() {
927
+ if (!this._storeCredit) {
928
+ this._storeCredit = new StoreCreditQueries(this);
929
+ }
930
+ return this._storeCredit;
931
+ }
839
932
  get subscriptions() {
840
933
  if (!this._subscriptions) {
841
934
  this._subscriptions = new SubscriptionService(this);
@@ -938,6 +1031,7 @@ exports.ActivityService = ActivityService;
938
1031
  exports.CimplifyClient = CimplifyClient;
939
1032
  exports.DeliveryService = DeliveryService;
940
1033
  exports.PlacesService = PlacesService;
1034
+ exports.StoreCreditQueries = StoreCreditQueries;
941
1035
  exports.SubscriptionService = SubscriptionService;
942
1036
  exports.SupportService = SupportService;
943
1037
  exports.UploadService = UploadService;
@@ -2446,6 +2446,14 @@ function buildV1(deps) {
2446
2446
  const body = await c.req.json().catch(() => ({}));
2447
2447
  return tryRoute(c, () => deps.uploads.confirm(body));
2448
2448
  });
2449
+ app.get(
2450
+ "/store-credit/balance",
2451
+ (c) => c.json({ data: { balance: "0.00", currency: "USD" } })
2452
+ );
2453
+ app.post("/activity/session", async (c) => {
2454
+ await c.req.json().catch(() => ({}));
2455
+ return c.json({ data: { recorded: true } });
2456
+ });
2449
2457
  app.post("/activity/events", async (c) => {
2450
2458
  const body = await c.req.json().catch(() => ({}));
2451
2459
  return tryRoute(c, () => deps.activity.recordEvents(deps.defaultBusinessId, c.var.session.id, body.events ?? []));
@@ -4608,7 +4616,9 @@ function toUICart(registry, cart) {
4608
4616
  currency: cart.currency,
4609
4617
  tax_rate: cart.tax_rate,
4610
4618
  service_charge_rate: cart.service_charge_rate,
4611
- tax_inclusive: false
4619
+ tax_inclusive: false,
4620
+ deposit_required: false,
4621
+ deposit_amount: "0.00"
4612
4622
  },
4613
4623
  customer_info: {
4614
4624
  name: cart.customer_name,
@@ -1,5 +1,5 @@
1
- import { createMockApp } from './chunk-XRJCLWJ2.mjs';
2
- import { createCimplifyClient } from './chunk-H337NF4O.mjs';
1
+ import { createMockApp } from './chunk-BNA4GW4D.mjs';
2
+ import { createCimplifyClient } from './chunk-LBFTEXGD.mjs';
3
3
  import { z } from 'zod';
4
4
 
5
5
  var cimplifyRegistry = z.registry();
@@ -1,11 +1,77 @@
1
1
  import { safe, generateIdempotencyKey, CatalogueQueries, CartOperations, CheckoutService, OrderQueries, LinkService, AuthService, BusinessService, InventoryService, SchedulingService, LiteService, FxService, createElements } from './chunk-3BKMNVTR.mjs';
2
2
  import { CimplifyError, ErrorCode, IdempotencyMismatchError, enrichError } from './chunk-AMZXALF6.mjs';
3
3
 
4
+ // src/store-credit.ts
5
+ var StoreCreditQueries = class {
6
+ constructor(client) {
7
+ this.client = client;
8
+ }
9
+ /**
10
+ * The shopper's available store-credit balance, in the business's default
11
+ * currency. Requires a signed-in customer; returns an error otherwise.
12
+ */
13
+ async balance() {
14
+ return safe(this.client.get("/api/v1/store-credit/balance"));
15
+ }
16
+ };
17
+
4
18
  // src/activity.ts
19
+ var VISITOR_ID_STORAGE_KEY = "cimplify_visitor_id";
20
+ var SESSION_STARTED_STORAGE_KEY = "cimplify_session_started_at";
5
21
  var ActivityService = class {
6
22
  constructor(client) {
7
23
  this.client = client;
8
24
  }
25
+ /**
26
+ * Record session start (landing, referrer, UTM, device). Fire-and-forget,
27
+ * at most once per tab session; called automatically by the track* methods.
28
+ */
29
+ startSession() {
30
+ if (typeof window === "undefined") return;
31
+ let alreadyStarted = null;
32
+ try {
33
+ alreadyStarted = sessionStorage.getItem(SESSION_STARTED_STORAGE_KEY);
34
+ } catch {
35
+ }
36
+ if (alreadyStarted) return;
37
+ const startedAt = (/* @__PURE__ */ new Date()).toISOString();
38
+ try {
39
+ sessionStorage.setItem(SESSION_STARTED_STORAGE_KEY, startedAt);
40
+ } catch {
41
+ }
42
+ this.client.post("/api/v1/activity/session", this.buildSessionPayload(startedAt)).catch(() => {
43
+ });
44
+ }
45
+ buildSessionPayload(startedAt) {
46
+ const params = new URLSearchParams(window.location.search);
47
+ const utm = (key) => params.get(`utm_${key}`) || void 0;
48
+ const { visitorId, isNewVisitor } = resolveVisitor();
49
+ let timezone;
50
+ try {
51
+ timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
52
+ } catch {
53
+ }
54
+ return {
55
+ started_at: startedAt,
56
+ landing_page: window.location.pathname,
57
+ landing_url: window.location.href,
58
+ referrer_url: document.referrer || void 0,
59
+ utm_source: utm("source"),
60
+ utm_medium: utm("medium"),
61
+ utm_campaign: utm("campaign"),
62
+ utm_term: utm("term"),
63
+ utm_content: utm("content"),
64
+ screen_width: window.screen?.width,
65
+ screen_height: window.screen?.height,
66
+ viewport_width: window.innerWidth,
67
+ viewport_height: window.innerHeight,
68
+ pixel_density: window.devicePixelRatio,
69
+ language: navigator.language,
70
+ timezone,
71
+ fingerprint: visitorId,
72
+ is_new_visitor: isNewVisitor
73
+ };
74
+ }
9
75
  trackProductView(productId, options = {}) {
10
76
  const event = {
11
77
  type: "product_view",
@@ -43,6 +109,7 @@ var ActivityService = class {
43
109
  );
44
110
  }
45
111
  sendEvents(events) {
112
+ this.startSession();
46
113
  this.client.post("/api/v1/activity/events", { events }).catch(() => {
47
114
  });
48
115
  }
@@ -53,6 +120,19 @@ function currentPath() {
53
120
  }
54
121
  return void 0;
55
122
  }
123
+ function resolveVisitor() {
124
+ try {
125
+ const existing = localStorage.getItem(VISITOR_ID_STORAGE_KEY);
126
+ if (existing) {
127
+ return { visitorId: existing, isNewVisitor: false };
128
+ }
129
+ const visitorId = typeof crypto !== "undefined" && crypto.randomUUID ? crypto.randomUUID() : `v_${Date.now().toString(36)}${Math.random().toString(36).slice(2)}`;
130
+ localStorage.setItem(VISITOR_ID_STORAGE_KEY, visitorId);
131
+ return { visitorId, isNewVisitor: true };
132
+ } catch {
133
+ return {};
134
+ }
135
+ }
56
136
 
57
137
  // src/subscriptions.ts
58
138
  var SubscriptionService = class {
@@ -565,6 +645,13 @@ var CimplifyClient = class {
565
645
  if (this.sessionToken) {
566
646
  headers[SESSION_TOKEN_HEADER] = this.sessionToken;
567
647
  }
648
+ if (typeof window !== "undefined") {
649
+ headers["X-Storefront-Host"] = window.location.host;
650
+ const preview = new URLSearchParams(window.location.search).get("preview");
651
+ if (preview) {
652
+ headers["X-Storefront-Preview"] = preview;
653
+ }
654
+ }
568
655
  return headers;
569
656
  }
570
657
  async resilientFetch(url, options) {
@@ -834,6 +921,12 @@ var CimplifyClient = class {
834
921
  }
835
922
  return this._orders;
836
923
  }
924
+ get storeCredit() {
925
+ if (!this._storeCredit) {
926
+ this._storeCredit = new StoreCreditQueries(this);
927
+ }
928
+ return this._storeCredit;
929
+ }
837
930
  get subscriptions() {
838
931
  if (!this._subscriptions) {
839
932
  this._subscriptions = new SubscriptionService(this);
@@ -932,4 +1025,4 @@ function createCimplifyClient(config = {}) {
932
1025
  return new CimplifyClient(config);
933
1026
  }
934
1027
 
935
- export { ActivityService, CimplifyClient, DeliveryService, PlacesService, SubscriptionService, SupportService, UploadService, createCimplifyClient };
1028
+ export { ActivityService, CimplifyClient, DeliveryService, PlacesService, StoreCreditQueries, SubscriptionService, SupportService, UploadService, createCimplifyClient };
@@ -2448,6 +2448,14 @@ function buildV1(deps) {
2448
2448
  const body = await c.req.json().catch(() => ({}));
2449
2449
  return tryRoute(c, () => deps.uploads.confirm(body));
2450
2450
  });
2451
+ app.get(
2452
+ "/store-credit/balance",
2453
+ (c) => c.json({ data: { balance: "0.00", currency: "USD" } })
2454
+ );
2455
+ app.post("/activity/session", async (c) => {
2456
+ await c.req.json().catch(() => ({}));
2457
+ return c.json({ data: { recorded: true } });
2458
+ });
2451
2459
  app.post("/activity/events", async (c) => {
2452
2460
  const body = await c.req.json().catch(() => ({}));
2453
2461
  return tryRoute(c, () => deps.activity.recordEvents(deps.defaultBusinessId, c.var.session.id, body.events ?? []));
@@ -4610,7 +4618,9 @@ function toUICart(registry, cart) {
4610
4618
  currency: cart.currency,
4611
4619
  tax_rate: cart.tax_rate,
4612
4620
  service_charge_rate: cart.service_charge_rate,
4613
- tax_inclusive: false
4621
+ tax_inclusive: false,
4622
+ deposit_required: false,
4623
+ deposit_amount: "0.00"
4614
4624
  },
4615
4625
  customer_info: {
4616
4626
  name: cart.customer_name,
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunk2SJUHD32_js = require('./chunk-2SJUHD32.js');
4
- var chunkQS4XDVHI_js = require('./chunk-QS4XDVHI.js');
3
+ var chunkOSTOGR4F_js = require('./chunk-OSTOGR4F.js');
4
+ var chunk5BPBDWAA_js = require('./chunk-5BPBDWAA.js');
5
5
  var zod = require('zod');
6
6
 
7
7
  var cimplifyRegistry = zod.z.registry();
@@ -598,7 +598,7 @@ async function toForwardedRequest(input, init) {
598
598
  };
599
599
  }
600
600
  function createTestClient(options = {}) {
601
- const mock = chunk2SJUHD32_js.createMockApp(options);
601
+ const mock = chunkOSTOGR4F_js.createMockApp(options);
602
602
  let sessionToken;
603
603
  const fetchImpl = async (input, init) => {
604
604
  const url = typeof input === "string" ? input : input instanceof URL ? input.toString() : input.url;
@@ -617,7 +617,7 @@ function createTestClient(options = {}) {
617
617
  if (echoed) sessionToken = echoed;
618
618
  return res;
619
619
  };
620
- const client = chunkQS4XDVHI_js.createCimplifyClient({
620
+ const client = chunk5BPBDWAA_js.createCimplifyClient({
621
621
  baseUrl: TEST_BASE_URL,
622
622
  // Link mock lives at /v1/link on the same Hono app, so point the SDK's
623
623
  // separate Link transport at the same TEST_BASE_URL.
@@ -1,4 +1,4 @@
1
- import { ad as CimplifyClient } from './client-DxW_uHll.js';
1
+ import { ad as CimplifyClient } from './client-Cn5trGYV.js';
2
2
  import { A as AppHandle, C as CreateAppOptions } from './server-Daq42vK7.js';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { ad as CimplifyClient } from './client-B1ix2-Og.mjs';
1
+ import { ad as CimplifyClient } from './client-D16qfHAB.mjs';
2
2
  import { A as AppHandle, C as CreateAppOptions } from './server-CGO4zneR.mjs';
3
3
 
4
4
  /**
@@ -1065,6 +1065,12 @@ interface CheckoutFormData {
1065
1065
  metadata?: Record<string, unknown>;
1066
1066
  pay_currency?: CurrencyCode;
1067
1067
  fx_quote_id?: string;
1068
+ /** Apply the shopper's available store credit (capped at the amount owed) as a
1069
+ * fee-exempt tender before charging the rail. */
1070
+ use_store_credit?: boolean;
1071
+ /** Store-credit voucher / gift code to claim into the wallet and apply to this
1072
+ * order. Presenting a code implies applying store credit. */
1073
+ voucher_code?: string;
1068
1074
  }
1069
1075
  type NextAction = {
1070
1076
  type: "none";
@@ -1336,6 +1342,22 @@ declare class OrderQueries {
1336
1342
  cancel(orderId: string, reason?: string, opts?: IdempotencyOption$7): Promise<Result<Order, CimplifyError>>;
1337
1343
  }
1338
1344
 
1345
+ interface StoreCreditBalance {
1346
+ /** Available balance (a Money string — use `parsePrice` before arithmetic). */
1347
+ balance: Money;
1348
+ currency: CurrencyCode;
1349
+ }
1350
+ /** Reads the signed-in shopper's store-credit balance for the current storefront. */
1351
+ declare class StoreCreditQueries {
1352
+ private client;
1353
+ constructor(client: CimplifyClient);
1354
+ /**
1355
+ * The shopper's available store-credit balance, in the business's default
1356
+ * currency. Requires a signed-in customer; returns an error otherwise.
1357
+ */
1358
+ balance(): Promise<Result<StoreCreditBalance, CimplifyError>>;
1359
+ }
1360
+
1339
1361
  interface GetLinkOrdersOptions {
1340
1362
  status?: OrderStatus;
1341
1363
  limit?: number;
@@ -2034,6 +2056,12 @@ interface DismissMessageResponse {
2034
2056
  declare class ActivityService {
2035
2057
  private client;
2036
2058
  constructor(client: CimplifyClient);
2059
+ /**
2060
+ * Record session start (landing, referrer, UTM, device). Fire-and-forget,
2061
+ * at most once per tab session; called automatically by the track* methods.
2062
+ */
2063
+ startSession(): void;
2064
+ private buildSessionPayload;
2037
2065
  trackProductView(productId: string, options?: TrackProductViewOptions): void;
2038
2066
  trackCategoryView(categoryId: string, options?: TrackCategoryViewOptions): void;
2039
2067
  getState(): Promise<Result<ActivityStateResponse, CimplifyError>>;
@@ -2615,6 +2643,7 @@ declare class CimplifyClient {
2615
2643
  private _cart?;
2616
2644
  private _checkout?;
2617
2645
  private _orders?;
2646
+ private _storeCredit?;
2618
2647
  private _subscriptions?;
2619
2648
  private _uploads?;
2620
2649
  private _places?;
@@ -2662,6 +2691,7 @@ declare class CimplifyClient {
2662
2691
  get cart(): CartOperations;
2663
2692
  get checkout(): CheckoutService;
2664
2693
  get orders(): OrderQueries;
2694
+ get storeCredit(): StoreCreditQueries;
2665
2695
  get subscriptions(): SubscriptionService;
2666
2696
  get uploads(): UploadService;
2667
2697
  get places(): PlacesService;
@@ -2680,4 +2710,4 @@ declare class CimplifyClient {
2680
2710
  }
2681
2711
  declare function createCimplifyClient(config?: CimplifyConfig): CimplifyClient;
2682
2712
 
2683
- export { type CheckoutAddressInfo as $, AUTHORIZATION_TYPE as A, type Booking as B, BusinessService as C, type BusinessSettings as D, type BusinessType as E, type BusinessWithLocations as F, CHECKOUT_MODE as G, CHECKOUT_MUTATION as H, CHECKOUT_STEP as I, CONTACT_TYPE as J, type CacheOptions as K, type CancelBookingInput as L, type CancelBookingResult as M, type CancelOrderInput as N, type CancellationPolicy as O, CartOperations as P, CatalogueQueries as Q, type CatalogueResult as R, type CatalogueSnapshot as S, type CategoryInfo as T, type ChatAttachment as U, type ChatConversation as V, type ChatConversationResponse as W, type ChatMessage as X, type ChatWidgetStarter as Y, type CheckSlotAvailabilityInput as Z, type CheckSlotAvailabilityResult as _, AUTH_MUTATION as a, type FetchQuoteInput as a$, type CheckoutCartData as a0, type CheckoutCartItem as a1, type CheckoutCustomerInfo as a2, type CheckoutFormData as a3, type CheckoutInput as a4, type CheckoutMode as a5, type CheckoutOrderType as a6, type CheckoutPaymentMethod as a7, type CheckoutResult as a8, CheckoutService as a9, type DeviceType as aA, type DismissMessageResponse as aB, ELEMENTS_AUTH_CONTACT_TYPES as aC, ELEMENTS_AUTH_MODES as aD, ELEMENTS_AUTH_PROMPTS as aE, ELEMENT_TYPES as aF, EVENT_TYPES as aG, type ElementAppearance as aH, type ElementEventHandler as aI, type ElementEventType as aJ, type ElementOptions as aK, type ElementType as aL, type ElementsAuthContactType as aM, type ElementsAuthMode as aN, type ElementsAuthOptions as aO, type ElementsAuthPrompt as aP, type ElementsCheckoutData as aQ, type ElementsCheckoutResult as aR, type ElementsCustomerInfo as aS, type ElementsOptions as aT, type EnrichedOrder as aU, type EnrichedOrderItem as aV, type EnrollAndLinkOrderInput as aW, type EnrollAndLinkOrderResult as aX, type EnrollmentData as aY, type Err as aZ, type FeeBearerType as a_, type CheckoutStatus as aa, type CheckoutStatusContext as ab, type CheckoutStep as ac, CimplifyClient as ad, type CimplifyConfig as ae, CimplifyElement as af, CimplifyElements as ag, type ContactType as ah, type ContentType as ai, type CreateAddressInput as aj, type CreateMobileMoneyInput as ak, type Customer as al, type CustomerAddress as am, type CustomerBooking as an, type CustomerBookingServiceItem as ao, type CustomerLinkPreferences as ap, type CustomerMobileMoney as aq, type CustomerServicePreferences as ar, DEFAULT_COUNTRY as as, DEFAULT_CURRENCY as at, DEVICE_TYPE as au, type DayAvailability as av, type DeliveryFeeDetails as aw, type DeliveryFeeResponse as ax, DeliveryService as ay, type DepositResult as az, type AbortablePromise as b, type OrderStatus as b$, type FulfillmentLink as b0, type FulfillmentStatus as b1, type FulfillmentSummaryDTO as b2, type FulfillmentType as b3, type FxQuote as b4, type FxQuoteRequest as b5, type FxRateResponse as b6, FxService as b7, type GetAvailableSlotsInput as b8, type GetOrdersOptions as b9, type NextAction as bA, ORDER_MUTATION as bB, ORDER_TYPE as bC, type ObservabilityHooks as bD, type Ok as bE, type Order as bF, type OrderChannel as bG, type OrderCustomerInfo as bH, type OrderDiscountInfo as bI, type OrderFilter as bJ, type OrderFulfillmentSummary as bK, type OrderGroup as bL, type OrderGroupDetails as bM, type OrderGroupPayment as bN, type OrderGroupPaymentState as bO, type OrderGroupPaymentStatus as bP, type OrderGroupPaymentSummary as bQ, type OrderGroupStatus as bR, type OrderHistory as bS, type OrderLineState as bT, type OrderLineStatus as bU, type OrderLocationInfo as bV, type OrderPaymentEvent as bW, type OrderPricingView as bX, OrderQueries as bY, type OrderSplitDetail as bZ, type OrderStaffInfo as b_, type GetProductsOptions as ba, type GroupOrderInfo as bb, type IframeToParentMessage as bc, InventoryService as bd, LINK_MUTATION as be, LINK_QUERY as bf, type LineItem as bg, type LineType as bh, type LinkData as bi, type LinkEnrollResult as bj, LinkService as bk, type LinkSession as bl, type LinkStatusResult as bm, type LiteBootstrap as bn, LiteService as bo, type Location as bp, type LocationBooking as bq, type LocationTaxBehavior as br, type LocationTaxOverrides as bs, type LocationTimeProfile as bt, type LocationWithDetails as bu, MESSAGE_TYPES as bv, MOBILE_MONEY_PROVIDER as bw, type MobileMoneyData as bx, type MobileMoneyDetails as by, type MobileMoneyProvider as bz, type ActivityRecommendation as c, type ServiceStatus as c$, type OrderTimestampsDTO as c0, type OrderType as c1, type OtpResult as c2, PAYMENT_METHOD as c3, PAYMENT_MUTATION as c4, PAYMENT_STATE as c5, PICKUP_TIME_TYPE as c6, type ParentToIframeMessage as c7, type PaymentInfoDTO as c8, type PaymentMethodInfo as c9, type ReorderResult as cA, type RequestContext as cB, type RequestErrorEvent as cC, type RequestOptions as cD, type RequestOtpInput as cE, type RequestSource as cF, type RequestStartEvent as cG, type RequestSuccessEvent as cH, type RescheduleBookingInput as cI, type RescheduleBookingResult as cJ, type RescheduleHistoryRecord as cK, type ResourceAssignment as cL, type Result as cM, type RetryEvent as cN, type RevokeAllSessionsResult as cO, type RevokeSessionResult as cP, type Room as cQ, type SchedulingMetadata as cR, type SchedulingResult as cS, SchedulingService as cT, type SenderType as cU, type Service as cV, type ServiceAvailabilityParams as cW, type ServiceAvailabilityResult as cX, type ServiceCharge as cY, type ServiceNotes as cZ, type ServiceScheduleRequest as c_, type PaymentState as ca, type PickupTime as cb, type PickupTimeType as cc, type PlaceDetailsResponse as cd, PlacesService as ce, type PriceQuote as cf, type PricingOverrides as cg, type ProcessAndResolveOptions as ch, type ProcessCheckoutOptions as ci, type ProcessCheckoutResult as cj, type ProviderResolutionSource as ck, type QuoteBundleSelectionInput as cl, type QuoteCompositeSelectionInput as cm, type QuoteDynamicBuckets as cn, type QuoteStatus as co, type QuoteUiMessage as cp, type ReadRequestOptions as cq, type RefreshQuoteInput as cr, type RefreshQuoteResult as cs, type RefundOrderInput as ct, type RelatedCandidate as cu, type RelatedProduct as cv, type RelatedProductsEnrichment as cw, type RelationType as cx, type ReminderMethod as cy, type ReminderSettings as cz, type ActivityRecommendationsResponse as d, type SessionActivityData as d0, type SessionChangeEvent as d1, type SessionMessage as d2, type SlotResourceInfo as d3, type SlotStaffInfo as d4, type Staff as d5, type StaffAssignment as d6, type StaffRole as d7, type StaffScheduleItem as d8, type StockLevel as d9, getOrElse as dA, isErr as dB, isOk as dC, mapError as dD, mapResult as dE, ok as dF, toNullable as dG, tryCatch as dH, unwrap as dI, type StockStatus as da, type StorefrontBootstrap as db, SubscriptionService as dc, SupportService as dd, type Table as de, type TableInfo as df, type TimeRange as dg, type TimeRanges as dh, type TimeSlot as di, type TrackCategoryViewOptions as dj, type TrackProductViewOptions as dk, type UpdateAddressInput as dl, type UpdateOrderStatusInput as dm, type UpdateProfileInput as dn, type UploadInitResponse as dp, type UploadResult as dq, UploadService as dr, type VerifyOtpInput as ds, combine as dt, combineObject as du, createCimplifyClient as dv, createElements as dw, err as dx, flatMap as dy, fromPromise as dz, ActivityService as e, type ActivityStateResponse as f, type AddressData as g, type AddressInfo as h, type AmountToPay as i, type AuthResponse as j, AuthService as k, type AuthStatus as l, type AuthenticatedCustomer as m, type AuthenticatedData as n, type AutocompletePrediction as o, type AutocompleteResponse as p, type AvailabilityResult as q, type AvailableSlot as r, type BookingModificationType as s, type BookingStatus as t, type BookingWithDetails as u, type BufferTimes as v, type Business as w, type BusinessDetailsDTO as x, type BusinessHours as y, type BusinessPreferences as z };
2713
+ export { type CheckoutAddressInfo as $, AUTHORIZATION_TYPE as A, type Booking as B, BusinessService as C, type BusinessSettings as D, type BusinessType as E, type BusinessWithLocations as F, CHECKOUT_MODE as G, CHECKOUT_MUTATION as H, CHECKOUT_STEP as I, CONTACT_TYPE as J, type CacheOptions as K, type CancelBookingInput as L, type CancelBookingResult as M, type CancelOrderInput as N, type CancellationPolicy as O, CartOperations as P, CatalogueQueries as Q, type CatalogueResult as R, type CatalogueSnapshot as S, type CategoryInfo as T, type ChatAttachment as U, type ChatConversation as V, type ChatConversationResponse as W, type ChatMessage as X, type ChatWidgetStarter as Y, type CheckSlotAvailabilityInput as Z, type CheckSlotAvailabilityResult as _, AUTH_MUTATION as a, type FetchQuoteInput as a$, type CheckoutCartData as a0, type CheckoutCartItem as a1, type CheckoutCustomerInfo as a2, type CheckoutFormData as a3, type CheckoutInput as a4, type CheckoutMode as a5, type CheckoutOrderType as a6, type CheckoutPaymentMethod as a7, type CheckoutResult as a8, CheckoutService as a9, type DeviceType as aA, type DismissMessageResponse as aB, ELEMENTS_AUTH_CONTACT_TYPES as aC, ELEMENTS_AUTH_MODES as aD, ELEMENTS_AUTH_PROMPTS as aE, ELEMENT_TYPES as aF, EVENT_TYPES as aG, type ElementAppearance as aH, type ElementEventHandler as aI, type ElementEventType as aJ, type ElementOptions as aK, type ElementType as aL, type ElementsAuthContactType as aM, type ElementsAuthMode as aN, type ElementsAuthOptions as aO, type ElementsAuthPrompt as aP, type ElementsCheckoutData as aQ, type ElementsCheckoutResult as aR, type ElementsCustomerInfo as aS, type ElementsOptions as aT, type EnrichedOrder as aU, type EnrichedOrderItem as aV, type EnrollAndLinkOrderInput as aW, type EnrollAndLinkOrderResult as aX, type EnrollmentData as aY, type Err as aZ, type FeeBearerType as a_, type CheckoutStatus as aa, type CheckoutStatusContext as ab, type CheckoutStep as ac, CimplifyClient as ad, type CimplifyConfig as ae, CimplifyElement as af, CimplifyElements as ag, type ContactType as ah, type ContentType as ai, type CreateAddressInput as aj, type CreateMobileMoneyInput as ak, type Customer as al, type CustomerAddress as am, type CustomerBooking as an, type CustomerBookingServiceItem as ao, type CustomerLinkPreferences as ap, type CustomerMobileMoney as aq, type CustomerServicePreferences as ar, DEFAULT_COUNTRY as as, DEFAULT_CURRENCY as at, DEVICE_TYPE as au, type DayAvailability as av, type DeliveryFeeDetails as aw, type DeliveryFeeResponse as ax, DeliveryService as ay, type DepositResult as az, type AbortablePromise as b, type OrderStatus as b$, type FulfillmentLink as b0, type FulfillmentStatus as b1, type FulfillmentSummaryDTO as b2, type FulfillmentType as b3, type FxQuote as b4, type FxQuoteRequest as b5, type FxRateResponse as b6, FxService as b7, type GetAvailableSlotsInput as b8, type GetOrdersOptions as b9, type NextAction as bA, ORDER_MUTATION as bB, ORDER_TYPE as bC, type ObservabilityHooks as bD, type Ok as bE, type Order as bF, type OrderChannel as bG, type OrderCustomerInfo as bH, type OrderDiscountInfo as bI, type OrderFilter as bJ, type OrderFulfillmentSummary as bK, type OrderGroup as bL, type OrderGroupDetails as bM, type OrderGroupPayment as bN, type OrderGroupPaymentState as bO, type OrderGroupPaymentStatus as bP, type OrderGroupPaymentSummary as bQ, type OrderGroupStatus as bR, type OrderHistory as bS, type OrderLineState as bT, type OrderLineStatus as bU, type OrderLocationInfo as bV, type OrderPaymentEvent as bW, type OrderPricingView as bX, OrderQueries as bY, type OrderSplitDetail as bZ, type OrderStaffInfo as b_, type GetProductsOptions as ba, type GroupOrderInfo as bb, type IframeToParentMessage as bc, InventoryService as bd, LINK_MUTATION as be, LINK_QUERY as bf, type LineItem as bg, type LineType as bh, type LinkData as bi, type LinkEnrollResult as bj, LinkService as bk, type LinkSession as bl, type LinkStatusResult as bm, type LiteBootstrap as bn, LiteService as bo, type Location as bp, type LocationBooking as bq, type LocationTaxBehavior as br, type LocationTaxOverrides as bs, type LocationTimeProfile as bt, type LocationWithDetails as bu, MESSAGE_TYPES as bv, MOBILE_MONEY_PROVIDER as bw, type MobileMoneyData as bx, type MobileMoneyDetails as by, type MobileMoneyProvider as bz, type ActivityRecommendation as c, type ServiceStatus as c$, type OrderTimestampsDTO as c0, type OrderType as c1, type OtpResult as c2, PAYMENT_METHOD as c3, PAYMENT_MUTATION as c4, PAYMENT_STATE as c5, PICKUP_TIME_TYPE as c6, type ParentToIframeMessage as c7, type PaymentInfoDTO as c8, type PaymentMethodInfo as c9, type ReorderResult as cA, type RequestContext as cB, type RequestErrorEvent as cC, type RequestOptions as cD, type RequestOtpInput as cE, type RequestSource as cF, type RequestStartEvent as cG, type RequestSuccessEvent as cH, type RescheduleBookingInput as cI, type RescheduleBookingResult as cJ, type RescheduleHistoryRecord as cK, type ResourceAssignment as cL, type Result as cM, type RetryEvent as cN, type RevokeAllSessionsResult as cO, type RevokeSessionResult as cP, type Room as cQ, type SchedulingMetadata as cR, type SchedulingResult as cS, SchedulingService as cT, type SenderType as cU, type Service as cV, type ServiceAvailabilityParams as cW, type ServiceAvailabilityResult as cX, type ServiceCharge as cY, type ServiceNotes as cZ, type ServiceScheduleRequest as c_, type PaymentState as ca, type PickupTime as cb, type PickupTimeType as cc, type PlaceDetailsResponse as cd, PlacesService as ce, type PriceQuote as cf, type PricingOverrides as cg, type ProcessAndResolveOptions as ch, type ProcessCheckoutOptions as ci, type ProcessCheckoutResult as cj, type ProviderResolutionSource as ck, type QuoteBundleSelectionInput as cl, type QuoteCompositeSelectionInput as cm, type QuoteDynamicBuckets as cn, type QuoteStatus as co, type QuoteUiMessage as cp, type ReadRequestOptions as cq, type RefreshQuoteInput as cr, type RefreshQuoteResult as cs, type RefundOrderInput as ct, type RelatedCandidate as cu, type RelatedProduct as cv, type RelatedProductsEnrichment as cw, type RelationType as cx, type ReminderMethod as cy, type ReminderSettings as cz, type ActivityRecommendationsResponse as d, type SessionActivityData as d0, type SessionChangeEvent as d1, type SessionMessage as d2, type SlotResourceInfo as d3, type SlotStaffInfo as d4, type Staff as d5, type StaffAssignment as d6, type StaffRole as d7, type StaffScheduleItem as d8, type StockLevel as d9, flatMap as dA, fromPromise as dB, getOrElse as dC, isErr as dD, isOk as dE, mapError as dF, mapResult as dG, ok as dH, toNullable as dI, tryCatch as dJ, unwrap as dK, type StockStatus as da, type StoreCreditBalance as db, StoreCreditQueries as dc, type StorefrontBootstrap as dd, SubscriptionService as de, SupportService as df, type Table as dg, type TableInfo as dh, type TimeRange as di, type TimeRanges as dj, type TimeSlot as dk, type TrackCategoryViewOptions as dl, type TrackProductViewOptions as dm, type UpdateAddressInput as dn, type UpdateOrderStatusInput as dp, type UpdateProfileInput as dq, type UploadInitResponse as dr, type UploadResult as ds, UploadService as dt, type VerifyOtpInput as du, combine as dv, combineObject as dw, createCimplifyClient as dx, createElements as dy, err as dz, ActivityService as e, type ActivityStateResponse as f, type AddressData as g, type AddressInfo as h, type AmountToPay as i, type AuthResponse as j, AuthService as k, type AuthStatus as l, type AuthenticatedCustomer as m, type AuthenticatedData as n, type AutocompletePrediction as o, type AutocompleteResponse as p, type AvailabilityResult as q, type AvailableSlot as r, type BookingModificationType as s, type BookingStatus as t, type BookingWithDetails as u, type BufferTimes as v, type Business as w, type BusinessDetailsDTO as x, type BusinessHours as y, type BusinessPreferences as z };
@@ -1065,6 +1065,12 @@ interface CheckoutFormData {
1065
1065
  metadata?: Record<string, unknown>;
1066
1066
  pay_currency?: CurrencyCode;
1067
1067
  fx_quote_id?: string;
1068
+ /** Apply the shopper's available store credit (capped at the amount owed) as a
1069
+ * fee-exempt tender before charging the rail. */
1070
+ use_store_credit?: boolean;
1071
+ /** Store-credit voucher / gift code to claim into the wallet and apply to this
1072
+ * order. Presenting a code implies applying store credit. */
1073
+ voucher_code?: string;
1068
1074
  }
1069
1075
  type NextAction = {
1070
1076
  type: "none";
@@ -1336,6 +1342,22 @@ declare class OrderQueries {
1336
1342
  cancel(orderId: string, reason?: string, opts?: IdempotencyOption$7): Promise<Result<Order, CimplifyError>>;
1337
1343
  }
1338
1344
 
1345
+ interface StoreCreditBalance {
1346
+ /** Available balance (a Money string — use `parsePrice` before arithmetic). */
1347
+ balance: Money;
1348
+ currency: CurrencyCode;
1349
+ }
1350
+ /** Reads the signed-in shopper's store-credit balance for the current storefront. */
1351
+ declare class StoreCreditQueries {
1352
+ private client;
1353
+ constructor(client: CimplifyClient);
1354
+ /**
1355
+ * The shopper's available store-credit balance, in the business's default
1356
+ * currency. Requires a signed-in customer; returns an error otherwise.
1357
+ */
1358
+ balance(): Promise<Result<StoreCreditBalance, CimplifyError>>;
1359
+ }
1360
+
1339
1361
  interface GetLinkOrdersOptions {
1340
1362
  status?: OrderStatus;
1341
1363
  limit?: number;
@@ -2034,6 +2056,12 @@ interface DismissMessageResponse {
2034
2056
  declare class ActivityService {
2035
2057
  private client;
2036
2058
  constructor(client: CimplifyClient);
2059
+ /**
2060
+ * Record session start (landing, referrer, UTM, device). Fire-and-forget,
2061
+ * at most once per tab session; called automatically by the track* methods.
2062
+ */
2063
+ startSession(): void;
2064
+ private buildSessionPayload;
2037
2065
  trackProductView(productId: string, options?: TrackProductViewOptions): void;
2038
2066
  trackCategoryView(categoryId: string, options?: TrackCategoryViewOptions): void;
2039
2067
  getState(): Promise<Result<ActivityStateResponse, CimplifyError>>;
@@ -2615,6 +2643,7 @@ declare class CimplifyClient {
2615
2643
  private _cart?;
2616
2644
  private _checkout?;
2617
2645
  private _orders?;
2646
+ private _storeCredit?;
2618
2647
  private _subscriptions?;
2619
2648
  private _uploads?;
2620
2649
  private _places?;
@@ -2662,6 +2691,7 @@ declare class CimplifyClient {
2662
2691
  get cart(): CartOperations;
2663
2692
  get checkout(): CheckoutService;
2664
2693
  get orders(): OrderQueries;
2694
+ get storeCredit(): StoreCreditQueries;
2665
2695
  get subscriptions(): SubscriptionService;
2666
2696
  get uploads(): UploadService;
2667
2697
  get places(): PlacesService;
@@ -2680,4 +2710,4 @@ declare class CimplifyClient {
2680
2710
  }
2681
2711
  declare function createCimplifyClient(config?: CimplifyConfig): CimplifyClient;
2682
2712
 
2683
- export { type CheckoutAddressInfo as $, AUTHORIZATION_TYPE as A, type Booking as B, BusinessService as C, type BusinessSettings as D, type BusinessType as E, type BusinessWithLocations as F, CHECKOUT_MODE as G, CHECKOUT_MUTATION as H, CHECKOUT_STEP as I, CONTACT_TYPE as J, type CacheOptions as K, type CancelBookingInput as L, type CancelBookingResult as M, type CancelOrderInput as N, type CancellationPolicy as O, CartOperations as P, CatalogueQueries as Q, type CatalogueResult as R, type CatalogueSnapshot as S, type CategoryInfo as T, type ChatAttachment as U, type ChatConversation as V, type ChatConversationResponse as W, type ChatMessage as X, type ChatWidgetStarter as Y, type CheckSlotAvailabilityInput as Z, type CheckSlotAvailabilityResult as _, AUTH_MUTATION as a, type FetchQuoteInput as a$, type CheckoutCartData as a0, type CheckoutCartItem as a1, type CheckoutCustomerInfo as a2, type CheckoutFormData as a3, type CheckoutInput as a4, type CheckoutMode as a5, type CheckoutOrderType as a6, type CheckoutPaymentMethod as a7, type CheckoutResult as a8, CheckoutService as a9, type DeviceType as aA, type DismissMessageResponse as aB, ELEMENTS_AUTH_CONTACT_TYPES as aC, ELEMENTS_AUTH_MODES as aD, ELEMENTS_AUTH_PROMPTS as aE, ELEMENT_TYPES as aF, EVENT_TYPES as aG, type ElementAppearance as aH, type ElementEventHandler as aI, type ElementEventType as aJ, type ElementOptions as aK, type ElementType as aL, type ElementsAuthContactType as aM, type ElementsAuthMode as aN, type ElementsAuthOptions as aO, type ElementsAuthPrompt as aP, type ElementsCheckoutData as aQ, type ElementsCheckoutResult as aR, type ElementsCustomerInfo as aS, type ElementsOptions as aT, type EnrichedOrder as aU, type EnrichedOrderItem as aV, type EnrollAndLinkOrderInput as aW, type EnrollAndLinkOrderResult as aX, type EnrollmentData as aY, type Err as aZ, type FeeBearerType as a_, type CheckoutStatus as aa, type CheckoutStatusContext as ab, type CheckoutStep as ac, CimplifyClient as ad, type CimplifyConfig as ae, CimplifyElement as af, CimplifyElements as ag, type ContactType as ah, type ContentType as ai, type CreateAddressInput as aj, type CreateMobileMoneyInput as ak, type Customer as al, type CustomerAddress as am, type CustomerBooking as an, type CustomerBookingServiceItem as ao, type CustomerLinkPreferences as ap, type CustomerMobileMoney as aq, type CustomerServicePreferences as ar, DEFAULT_COUNTRY as as, DEFAULT_CURRENCY as at, DEVICE_TYPE as au, type DayAvailability as av, type DeliveryFeeDetails as aw, type DeliveryFeeResponse as ax, DeliveryService as ay, type DepositResult as az, type AbortablePromise as b, type OrderStatus as b$, type FulfillmentLink as b0, type FulfillmentStatus as b1, type FulfillmentSummaryDTO as b2, type FulfillmentType as b3, type FxQuote as b4, type FxQuoteRequest as b5, type FxRateResponse as b6, FxService as b7, type GetAvailableSlotsInput as b8, type GetOrdersOptions as b9, type NextAction as bA, ORDER_MUTATION as bB, ORDER_TYPE as bC, type ObservabilityHooks as bD, type Ok as bE, type Order as bF, type OrderChannel as bG, type OrderCustomerInfo as bH, type OrderDiscountInfo as bI, type OrderFilter as bJ, type OrderFulfillmentSummary as bK, type OrderGroup as bL, type OrderGroupDetails as bM, type OrderGroupPayment as bN, type OrderGroupPaymentState as bO, type OrderGroupPaymentStatus as bP, type OrderGroupPaymentSummary as bQ, type OrderGroupStatus as bR, type OrderHistory as bS, type OrderLineState as bT, type OrderLineStatus as bU, type OrderLocationInfo as bV, type OrderPaymentEvent as bW, type OrderPricingView as bX, OrderQueries as bY, type OrderSplitDetail as bZ, type OrderStaffInfo as b_, type GetProductsOptions as ba, type GroupOrderInfo as bb, type IframeToParentMessage as bc, InventoryService as bd, LINK_MUTATION as be, LINK_QUERY as bf, type LineItem as bg, type LineType as bh, type LinkData as bi, type LinkEnrollResult as bj, LinkService as bk, type LinkSession as bl, type LinkStatusResult as bm, type LiteBootstrap as bn, LiteService as bo, type Location as bp, type LocationBooking as bq, type LocationTaxBehavior as br, type LocationTaxOverrides as bs, type LocationTimeProfile as bt, type LocationWithDetails as bu, MESSAGE_TYPES as bv, MOBILE_MONEY_PROVIDER as bw, type MobileMoneyData as bx, type MobileMoneyDetails as by, type MobileMoneyProvider as bz, type ActivityRecommendation as c, type ServiceStatus as c$, type OrderTimestampsDTO as c0, type OrderType as c1, type OtpResult as c2, PAYMENT_METHOD as c3, PAYMENT_MUTATION as c4, PAYMENT_STATE as c5, PICKUP_TIME_TYPE as c6, type ParentToIframeMessage as c7, type PaymentInfoDTO as c8, type PaymentMethodInfo as c9, type ReorderResult as cA, type RequestContext as cB, type RequestErrorEvent as cC, type RequestOptions as cD, type RequestOtpInput as cE, type RequestSource as cF, type RequestStartEvent as cG, type RequestSuccessEvent as cH, type RescheduleBookingInput as cI, type RescheduleBookingResult as cJ, type RescheduleHistoryRecord as cK, type ResourceAssignment as cL, type Result as cM, type RetryEvent as cN, type RevokeAllSessionsResult as cO, type RevokeSessionResult as cP, type Room as cQ, type SchedulingMetadata as cR, type SchedulingResult as cS, SchedulingService as cT, type SenderType as cU, type Service as cV, type ServiceAvailabilityParams as cW, type ServiceAvailabilityResult as cX, type ServiceCharge as cY, type ServiceNotes as cZ, type ServiceScheduleRequest as c_, type PaymentState as ca, type PickupTime as cb, type PickupTimeType as cc, type PlaceDetailsResponse as cd, PlacesService as ce, type PriceQuote as cf, type PricingOverrides as cg, type ProcessAndResolveOptions as ch, type ProcessCheckoutOptions as ci, type ProcessCheckoutResult as cj, type ProviderResolutionSource as ck, type QuoteBundleSelectionInput as cl, type QuoteCompositeSelectionInput as cm, type QuoteDynamicBuckets as cn, type QuoteStatus as co, type QuoteUiMessage as cp, type ReadRequestOptions as cq, type RefreshQuoteInput as cr, type RefreshQuoteResult as cs, type RefundOrderInput as ct, type RelatedCandidate as cu, type RelatedProduct as cv, type RelatedProductsEnrichment as cw, type RelationType as cx, type ReminderMethod as cy, type ReminderSettings as cz, type ActivityRecommendationsResponse as d, type SessionActivityData as d0, type SessionChangeEvent as d1, type SessionMessage as d2, type SlotResourceInfo as d3, type SlotStaffInfo as d4, type Staff as d5, type StaffAssignment as d6, type StaffRole as d7, type StaffScheduleItem as d8, type StockLevel as d9, getOrElse as dA, isErr as dB, isOk as dC, mapError as dD, mapResult as dE, ok as dF, toNullable as dG, tryCatch as dH, unwrap as dI, type StockStatus as da, type StorefrontBootstrap as db, SubscriptionService as dc, SupportService as dd, type Table as de, type TableInfo as df, type TimeRange as dg, type TimeRanges as dh, type TimeSlot as di, type TrackCategoryViewOptions as dj, type TrackProductViewOptions as dk, type UpdateAddressInput as dl, type UpdateOrderStatusInput as dm, type UpdateProfileInput as dn, type UploadInitResponse as dp, type UploadResult as dq, UploadService as dr, type VerifyOtpInput as ds, combine as dt, combineObject as du, createCimplifyClient as dv, createElements as dw, err as dx, flatMap as dy, fromPromise as dz, ActivityService as e, type ActivityStateResponse as f, type AddressData as g, type AddressInfo as h, type AmountToPay as i, type AuthResponse as j, AuthService as k, type AuthStatus as l, type AuthenticatedCustomer as m, type AuthenticatedData as n, type AutocompletePrediction as o, type AutocompleteResponse as p, type AvailabilityResult as q, type AvailableSlot as r, type BookingModificationType as s, type BookingStatus as t, type BookingWithDetails as u, type BufferTimes as v, type Business as w, type BusinessDetailsDTO as x, type BusinessHours as y, type BusinessPreferences as z };
2713
+ export { type CheckoutAddressInfo as $, AUTHORIZATION_TYPE as A, type Booking as B, BusinessService as C, type BusinessSettings as D, type BusinessType as E, type BusinessWithLocations as F, CHECKOUT_MODE as G, CHECKOUT_MUTATION as H, CHECKOUT_STEP as I, CONTACT_TYPE as J, type CacheOptions as K, type CancelBookingInput as L, type CancelBookingResult as M, type CancelOrderInput as N, type CancellationPolicy as O, CartOperations as P, CatalogueQueries as Q, type CatalogueResult as R, type CatalogueSnapshot as S, type CategoryInfo as T, type ChatAttachment as U, type ChatConversation as V, type ChatConversationResponse as W, type ChatMessage as X, type ChatWidgetStarter as Y, type CheckSlotAvailabilityInput as Z, type CheckSlotAvailabilityResult as _, AUTH_MUTATION as a, type FetchQuoteInput as a$, type CheckoutCartData as a0, type CheckoutCartItem as a1, type CheckoutCustomerInfo as a2, type CheckoutFormData as a3, type CheckoutInput as a4, type CheckoutMode as a5, type CheckoutOrderType as a6, type CheckoutPaymentMethod as a7, type CheckoutResult as a8, CheckoutService as a9, type DeviceType as aA, type DismissMessageResponse as aB, ELEMENTS_AUTH_CONTACT_TYPES as aC, ELEMENTS_AUTH_MODES as aD, ELEMENTS_AUTH_PROMPTS as aE, ELEMENT_TYPES as aF, EVENT_TYPES as aG, type ElementAppearance as aH, type ElementEventHandler as aI, type ElementEventType as aJ, type ElementOptions as aK, type ElementType as aL, type ElementsAuthContactType as aM, type ElementsAuthMode as aN, type ElementsAuthOptions as aO, type ElementsAuthPrompt as aP, type ElementsCheckoutData as aQ, type ElementsCheckoutResult as aR, type ElementsCustomerInfo as aS, type ElementsOptions as aT, type EnrichedOrder as aU, type EnrichedOrderItem as aV, type EnrollAndLinkOrderInput as aW, type EnrollAndLinkOrderResult as aX, type EnrollmentData as aY, type Err as aZ, type FeeBearerType as a_, type CheckoutStatus as aa, type CheckoutStatusContext as ab, type CheckoutStep as ac, CimplifyClient as ad, type CimplifyConfig as ae, CimplifyElement as af, CimplifyElements as ag, type ContactType as ah, type ContentType as ai, type CreateAddressInput as aj, type CreateMobileMoneyInput as ak, type Customer as al, type CustomerAddress as am, type CustomerBooking as an, type CustomerBookingServiceItem as ao, type CustomerLinkPreferences as ap, type CustomerMobileMoney as aq, type CustomerServicePreferences as ar, DEFAULT_COUNTRY as as, DEFAULT_CURRENCY as at, DEVICE_TYPE as au, type DayAvailability as av, type DeliveryFeeDetails as aw, type DeliveryFeeResponse as ax, DeliveryService as ay, type DepositResult as az, type AbortablePromise as b, type OrderStatus as b$, type FulfillmentLink as b0, type FulfillmentStatus as b1, type FulfillmentSummaryDTO as b2, type FulfillmentType as b3, type FxQuote as b4, type FxQuoteRequest as b5, type FxRateResponse as b6, FxService as b7, type GetAvailableSlotsInput as b8, type GetOrdersOptions as b9, type NextAction as bA, ORDER_MUTATION as bB, ORDER_TYPE as bC, type ObservabilityHooks as bD, type Ok as bE, type Order as bF, type OrderChannel as bG, type OrderCustomerInfo as bH, type OrderDiscountInfo as bI, type OrderFilter as bJ, type OrderFulfillmentSummary as bK, type OrderGroup as bL, type OrderGroupDetails as bM, type OrderGroupPayment as bN, type OrderGroupPaymentState as bO, type OrderGroupPaymentStatus as bP, type OrderGroupPaymentSummary as bQ, type OrderGroupStatus as bR, type OrderHistory as bS, type OrderLineState as bT, type OrderLineStatus as bU, type OrderLocationInfo as bV, type OrderPaymentEvent as bW, type OrderPricingView as bX, OrderQueries as bY, type OrderSplitDetail as bZ, type OrderStaffInfo as b_, type GetProductsOptions as ba, type GroupOrderInfo as bb, type IframeToParentMessage as bc, InventoryService as bd, LINK_MUTATION as be, LINK_QUERY as bf, type LineItem as bg, type LineType as bh, type LinkData as bi, type LinkEnrollResult as bj, LinkService as bk, type LinkSession as bl, type LinkStatusResult as bm, type LiteBootstrap as bn, LiteService as bo, type Location as bp, type LocationBooking as bq, type LocationTaxBehavior as br, type LocationTaxOverrides as bs, type LocationTimeProfile as bt, type LocationWithDetails as bu, MESSAGE_TYPES as bv, MOBILE_MONEY_PROVIDER as bw, type MobileMoneyData as bx, type MobileMoneyDetails as by, type MobileMoneyProvider as bz, type ActivityRecommendation as c, type ServiceStatus as c$, type OrderTimestampsDTO as c0, type OrderType as c1, type OtpResult as c2, PAYMENT_METHOD as c3, PAYMENT_MUTATION as c4, PAYMENT_STATE as c5, PICKUP_TIME_TYPE as c6, type ParentToIframeMessage as c7, type PaymentInfoDTO as c8, type PaymentMethodInfo as c9, type ReorderResult as cA, type RequestContext as cB, type RequestErrorEvent as cC, type RequestOptions as cD, type RequestOtpInput as cE, type RequestSource as cF, type RequestStartEvent as cG, type RequestSuccessEvent as cH, type RescheduleBookingInput as cI, type RescheduleBookingResult as cJ, type RescheduleHistoryRecord as cK, type ResourceAssignment as cL, type Result as cM, type RetryEvent as cN, type RevokeAllSessionsResult as cO, type RevokeSessionResult as cP, type Room as cQ, type SchedulingMetadata as cR, type SchedulingResult as cS, SchedulingService as cT, type SenderType as cU, type Service as cV, type ServiceAvailabilityParams as cW, type ServiceAvailabilityResult as cX, type ServiceCharge as cY, type ServiceNotes as cZ, type ServiceScheduleRequest as c_, type PaymentState as ca, type PickupTime as cb, type PickupTimeType as cc, type PlaceDetailsResponse as cd, PlacesService as ce, type PriceQuote as cf, type PricingOverrides as cg, type ProcessAndResolveOptions as ch, type ProcessCheckoutOptions as ci, type ProcessCheckoutResult as cj, type ProviderResolutionSource as ck, type QuoteBundleSelectionInput as cl, type QuoteCompositeSelectionInput as cm, type QuoteDynamicBuckets as cn, type QuoteStatus as co, type QuoteUiMessage as cp, type ReadRequestOptions as cq, type RefreshQuoteInput as cr, type RefreshQuoteResult as cs, type RefundOrderInput as ct, type RelatedCandidate as cu, type RelatedProduct as cv, type RelatedProductsEnrichment as cw, type RelationType as cx, type ReminderMethod as cy, type ReminderSettings as cz, type ActivityRecommendationsResponse as d, type SessionActivityData as d0, type SessionChangeEvent as d1, type SessionMessage as d2, type SlotResourceInfo as d3, type SlotStaffInfo as d4, type Staff as d5, type StaffAssignment as d6, type StaffRole as d7, type StaffScheduleItem as d8, type StockLevel as d9, flatMap as dA, fromPromise as dB, getOrElse as dC, isErr as dD, isOk as dE, mapError as dF, mapResult as dG, ok as dH, toNullable as dI, tryCatch as dJ, unwrap as dK, type StockStatus as da, type StoreCreditBalance as db, StoreCreditQueries as dc, type StorefrontBootstrap as dd, SubscriptionService as de, SupportService as df, type Table as dg, type TableInfo as dh, type TimeRange as di, type TimeRanges as dj, type TimeSlot as dk, type TrackCategoryViewOptions as dl, type TrackProductViewOptions as dm, type UpdateAddressInput as dn, type UpdateOrderStatusInput as dp, type UpdateProfileInput as dq, type UploadInitResponse as dr, type UploadResult as ds, UploadService as dt, type VerifyOtpInput as du, combine as dv, combineObject as dw, createCimplifyClient as dx, createElements as dy, err as dz, ActivityService as e, type ActivityStateResponse as f, type AddressData as g, type AddressInfo as h, type AmountToPay as i, type AuthResponse as j, AuthService as k, type AuthStatus as l, type AuthenticatedCustomer as m, type AuthenticatedData as n, type AutocompletePrediction as o, type AutocompleteResponse as p, type AvailabilityResult as q, type AvailableSlot as r, type BookingModificationType as s, type BookingStatus as t, type BookingWithDetails as u, type BufferTimes as v, type Business as w, type BusinessDetailsDTO as x, type BusinessHours as y, type BusinessPreferences as z };
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- export { A as AUTHORIZATION_TYPE, a as AUTH_MUTATION, b as AbortablePromise, c as ActivityRecommendation, d as ActivityRecommendationsResponse, e as ActivityService, f as ActivityStateResponse, g as AddressData, h as AddressInfo, i as AmountToPay, j as AuthResponse, k as AuthService, l as AuthStatus, m as AuthenticatedCustomer, n as AuthenticatedData, o as AutocompletePrediction, p as AutocompleteResponse, q as AvailabilityResult, r as AvailableSlot, B as Booking, s as BookingModificationType, t as BookingStatus, u as BookingWithDetails, v as BufferTimes, w as Business, x as BusinessDetailsDTO, y as BusinessHours, z as BusinessPreferences, C as BusinessService, D as BusinessSettings, E as BusinessType, F as BusinessWithLocations, G as CHECKOUT_MODE, H as CHECKOUT_MUTATION, I as CHECKOUT_STEP, J as CONTACT_TYPE, K as CacheOptions, L as CancelBookingInput, M as CancelBookingResult, N as CancelOrderInput, O as CancellationPolicy, P as CartOperations, Q as CatalogueQueries, R as CatalogueResult, S as CatalogueSnapshot, T as CategoryInfo, U as ChatAttachment, V as ChatConversation, W as ChatConversationResponse, X as ChatMessage, Y as ChatWidgetStarter, Z as CheckSlotAvailabilityInput, _ as CheckSlotAvailabilityResult, $ as CheckoutAddressInfo, a0 as CheckoutCartData, a1 as CheckoutCartItem, a2 as CheckoutCustomerInfo, a3 as CheckoutFormData, a4 as CheckoutInput, a5 as CheckoutMode, a9 as CheckoutOperations, a6 as CheckoutOrderType, a7 as CheckoutPaymentMethod, a8 as CheckoutResult, a9 as CheckoutService, aa as CheckoutStatus, ab as CheckoutStatusContext, ac as CheckoutStep, ad as CimplifyClient, ae as CimplifyConfig, af as CimplifyElement, ag as CimplifyElements, ah as ContactType, ai as ContentType, aj as CreateAddressInput, ak as CreateMobileMoneyInput, al as Customer, am as CustomerAddress, an as CustomerBooking, ao as CustomerBookingServiceItem, ap as CustomerLinkPreferences, aq as CustomerMobileMoney, ar as CustomerServicePreferences, as as DEFAULT_COUNTRY, at as DEFAULT_CURRENCY, au as DEVICE_TYPE, av as DayAvailability, aw as DeliveryFeeDetails, ax as DeliveryFeeResponse, ay as DeliveryService, az as DepositResult, aA as DeviceType, aB as DismissMessageResponse, aC as ELEMENTS_AUTH_CONTACT_TYPES, aD as ELEMENTS_AUTH_MODES, aE as ELEMENTS_AUTH_PROMPTS, aF as ELEMENT_TYPES, aG as EVENT_TYPES, aH as ElementAppearance, aI as ElementEventHandler, aJ as ElementEventType, aK as ElementOptions, aL as ElementType, aM as ElementsAuthContactType, aN as ElementsAuthMode, aO as ElementsAuthOptions, aP as ElementsAuthPrompt, aQ as ElementsCheckoutData, aR as ElementsCheckoutResult, aS as ElementsCustomerInfo, aT as ElementsOptions, aU as EnrichedOrder, aV as EnrichedOrderItem, aW as EnrollAndLinkOrderInput, aX as EnrollAndLinkOrderResult, aY as EnrollmentData, aZ as Err, a_ as FeeBearerType, a$ as FetchQuoteInput, b0 as FulfillmentLink, b1 as FulfillmentStatus, b2 as FulfillmentSummaryDTO, b3 as FulfillmentType, b4 as FxQuote, b5 as FxQuoteRequest, b6 as FxRateResponse, b7 as FxService, b8 as GetAvailableSlotsInput, b9 as GetOrdersOptions, ba as GetProductsOptions, bb as GroupOrderInfo, bc as IframeToParentMessage, bd as InventoryService, be as LINK_MUTATION, bf as LINK_QUERY, bg as LineItem, bh as LineType, bi as LinkData, bj as LinkEnrollResult, bk as LinkService, bl as LinkSession, bm as LinkStatusResult, bn as LiteBootstrap, bo as LiteService, bp as Location, bq as LocationBooking, br as LocationTaxBehavior, bs as LocationTaxOverrides, bt as LocationTimeProfile, bu as LocationWithDetails, bv as MESSAGE_TYPES, bw as MOBILE_MONEY_PROVIDER, bx as MobileMoneyData, by as MobileMoneyDetails, bz as MobileMoneyProvider, bA as NextAction, bB as ORDER_MUTATION, bC as ORDER_TYPE, bD as ObservabilityHooks, bE as Ok, bF as Order, bG as OrderChannel, bH as OrderCustomerInfo, bI as OrderDiscountInfo, bJ as OrderFilter, bK as OrderFulfillmentSummary, bL as OrderGroup, bM as OrderGroupDetails, bN as OrderGroupPayment, bO as OrderGroupPaymentState, bP as OrderGroupPaymentStatus, bQ as OrderGroupPaymentSummary, bR as OrderGroupStatus, bS as OrderHistory, bT as OrderLineState, bU as OrderLineStatus, bV as OrderLocationInfo, bW as OrderPaymentEvent, bX as OrderPricingView, bY as OrderQueries, bZ as OrderSplitDetail, b_ as OrderStaffInfo, b$ as OrderStatus, c0 as OrderTimestampsDTO, c1 as OrderType, c2 as OtpResult, c3 as PAYMENT_METHOD, c4 as PAYMENT_MUTATION, c5 as PAYMENT_STATE, c6 as PICKUP_TIME_TYPE, c7 as ParentToIframeMessage, c8 as PaymentInfoDTO, c9 as PaymentMethodInfo, ca as PaymentState, cb as PickupTime, cc as PickupTimeType, cd as PlaceDetailsResponse, ce as PlacesService, cf as PriceQuote, cg as PricingOverrides, ch as ProcessAndResolveOptions, ci as ProcessCheckoutOptions, cj as ProcessCheckoutResult, ck as ProviderResolutionSource, cl as QuoteBundleSelectionInput, cm as QuoteCompositeSelectionInput, cn as QuoteDynamicBuckets, co as QuoteStatus, cp as QuoteUiMessage, cq as ReadRequestOptions, cr as RefreshQuoteInput, cs as RefreshQuoteResult, ct as RefundOrderInput, cu as RelatedCandidate, cv as RelatedProduct, cw as RelatedProductsEnrichment, cx as RelationType, cy as ReminderMethod, cz as ReminderSettings, cA as ReorderResult, cB as RequestContext, cC as RequestErrorEvent, cD as RequestOptions, cE as RequestOtpInput, cF as RequestSource, cG as RequestStartEvent, cH as RequestSuccessEvent, cI as RescheduleBookingInput, cJ as RescheduleBookingResult, cK as RescheduleHistoryRecord, cL as ResourceAssignment, cM as Result, cN as RetryEvent, cO as RevokeAllSessionsResult, cP as RevokeSessionResult, cQ as Room, cR as SchedulingMetadata, cS as SchedulingResult, cT as SchedulingService, cU as SenderType, cV as Service, cW as ServiceAvailabilityParams, cX as ServiceAvailabilityResult, cY as ServiceCharge, cZ as ServiceNotes, c_ as ServiceScheduleRequest, c$ as ServiceStatus, d0 as SessionActivityData, d1 as SessionChangeEvent, d2 as SessionMessage, d3 as SlotResourceInfo, d4 as SlotStaffInfo, d5 as Staff, d6 as StaffAssignment, d7 as StaffRole, d8 as StaffScheduleItem, d9 as StockLevel, da as StockStatus, db as StorefrontBootstrap, dc as SubscriptionService, dd as SupportService, de as Table, df as TableInfo, dg as TimeRange, dh as TimeRanges, di as TimeSlot, dj as TrackCategoryViewOptions, dk as TrackProductViewOptions, dl as UpdateAddressInput, dm as UpdateOrderStatusInput, dn as UpdateProfileInput, dp as UploadInitResponse, dq as UploadResult, dr as UploadService, ds as VerifyOtpInput, dt as combine, du as combineObject, dv as createCimplifyClient, dw as createElements, dx as err, dy as flatMap, dz as fromPromise, dA as getOrElse, dB as isErr, dC as isOk, dD as mapError, dE as mapResult, dF as ok, dG as toNullable, dH as tryCatch, dI as unwrap } from './client-B1ix2-Og.mjs';
1
+ export { A as AUTHORIZATION_TYPE, a as AUTH_MUTATION, b as AbortablePromise, c as ActivityRecommendation, d as ActivityRecommendationsResponse, e as ActivityService, f as ActivityStateResponse, g as AddressData, h as AddressInfo, i as AmountToPay, j as AuthResponse, k as AuthService, l as AuthStatus, m as AuthenticatedCustomer, n as AuthenticatedData, o as AutocompletePrediction, p as AutocompleteResponse, q as AvailabilityResult, r as AvailableSlot, B as Booking, s as BookingModificationType, t as BookingStatus, u as BookingWithDetails, v as BufferTimes, w as Business, x as BusinessDetailsDTO, y as BusinessHours, z as BusinessPreferences, C as BusinessService, D as BusinessSettings, E as BusinessType, F as BusinessWithLocations, G as CHECKOUT_MODE, H as CHECKOUT_MUTATION, I as CHECKOUT_STEP, J as CONTACT_TYPE, K as CacheOptions, L as CancelBookingInput, M as CancelBookingResult, N as CancelOrderInput, O as CancellationPolicy, P as CartOperations, Q as CatalogueQueries, R as CatalogueResult, S as CatalogueSnapshot, T as CategoryInfo, U as ChatAttachment, V as ChatConversation, W as ChatConversationResponse, X as ChatMessage, Y as ChatWidgetStarter, Z as CheckSlotAvailabilityInput, _ as CheckSlotAvailabilityResult, $ as CheckoutAddressInfo, a0 as CheckoutCartData, a1 as CheckoutCartItem, a2 as CheckoutCustomerInfo, a3 as CheckoutFormData, a4 as CheckoutInput, a5 as CheckoutMode, a9 as CheckoutOperations, a6 as CheckoutOrderType, a7 as CheckoutPaymentMethod, a8 as CheckoutResult, a9 as CheckoutService, aa as CheckoutStatus, ab as CheckoutStatusContext, ac as CheckoutStep, ad as CimplifyClient, ae as CimplifyConfig, af as CimplifyElement, ag as CimplifyElements, ah as ContactType, ai as ContentType, aj as CreateAddressInput, ak as CreateMobileMoneyInput, al as Customer, am as CustomerAddress, an as CustomerBooking, ao as CustomerBookingServiceItem, ap as CustomerLinkPreferences, aq as CustomerMobileMoney, ar as CustomerServicePreferences, as as DEFAULT_COUNTRY, at as DEFAULT_CURRENCY, au as DEVICE_TYPE, av as DayAvailability, aw as DeliveryFeeDetails, ax as DeliveryFeeResponse, ay as DeliveryService, az as DepositResult, aA as DeviceType, aB as DismissMessageResponse, aC as ELEMENTS_AUTH_CONTACT_TYPES, aD as ELEMENTS_AUTH_MODES, aE as ELEMENTS_AUTH_PROMPTS, aF as ELEMENT_TYPES, aG as EVENT_TYPES, aH as ElementAppearance, aI as ElementEventHandler, aJ as ElementEventType, aK as ElementOptions, aL as ElementType, aM as ElementsAuthContactType, aN as ElementsAuthMode, aO as ElementsAuthOptions, aP as ElementsAuthPrompt, aQ as ElementsCheckoutData, aR as ElementsCheckoutResult, aS as ElementsCustomerInfo, aT as ElementsOptions, aU as EnrichedOrder, aV as EnrichedOrderItem, aW as EnrollAndLinkOrderInput, aX as EnrollAndLinkOrderResult, aY as EnrollmentData, aZ as Err, a_ as FeeBearerType, a$ as FetchQuoteInput, b0 as FulfillmentLink, b1 as FulfillmentStatus, b2 as FulfillmentSummaryDTO, b3 as FulfillmentType, b4 as FxQuote, b5 as FxQuoteRequest, b6 as FxRateResponse, b7 as FxService, b8 as GetAvailableSlotsInput, b9 as GetOrdersOptions, ba as GetProductsOptions, bb as GroupOrderInfo, bc as IframeToParentMessage, bd as InventoryService, be as LINK_MUTATION, bf as LINK_QUERY, bg as LineItem, bh as LineType, bi as LinkData, bj as LinkEnrollResult, bk as LinkService, bl as LinkSession, bm as LinkStatusResult, bn as LiteBootstrap, bo as LiteService, bp as Location, bq as LocationBooking, br as LocationTaxBehavior, bs as LocationTaxOverrides, bt as LocationTimeProfile, bu as LocationWithDetails, bv as MESSAGE_TYPES, bw as MOBILE_MONEY_PROVIDER, bx as MobileMoneyData, by as MobileMoneyDetails, bz as MobileMoneyProvider, bA as NextAction, bB as ORDER_MUTATION, bC as ORDER_TYPE, bD as ObservabilityHooks, bE as Ok, bF as Order, bG as OrderChannel, bH as OrderCustomerInfo, bI as OrderDiscountInfo, bJ as OrderFilter, bK as OrderFulfillmentSummary, bL as OrderGroup, bM as OrderGroupDetails, bN as OrderGroupPayment, bO as OrderGroupPaymentState, bP as OrderGroupPaymentStatus, bQ as OrderGroupPaymentSummary, bR as OrderGroupStatus, bS as OrderHistory, bT as OrderLineState, bU as OrderLineStatus, bV as OrderLocationInfo, bW as OrderPaymentEvent, bX as OrderPricingView, bY as OrderQueries, bZ as OrderSplitDetail, b_ as OrderStaffInfo, b$ as OrderStatus, c0 as OrderTimestampsDTO, c1 as OrderType, c2 as OtpResult, c3 as PAYMENT_METHOD, c4 as PAYMENT_MUTATION, c5 as PAYMENT_STATE, c6 as PICKUP_TIME_TYPE, c7 as ParentToIframeMessage, c8 as PaymentInfoDTO, c9 as PaymentMethodInfo, ca as PaymentState, cb as PickupTime, cc as PickupTimeType, cd as PlaceDetailsResponse, ce as PlacesService, cf as PriceQuote, cg as PricingOverrides, ch as ProcessAndResolveOptions, ci as ProcessCheckoutOptions, cj as ProcessCheckoutResult, ck as ProviderResolutionSource, cl as QuoteBundleSelectionInput, cm as QuoteCompositeSelectionInput, cn as QuoteDynamicBuckets, co as QuoteStatus, cp as QuoteUiMessage, cq as ReadRequestOptions, cr as RefreshQuoteInput, cs as RefreshQuoteResult, ct as RefundOrderInput, cu as RelatedCandidate, cv as RelatedProduct, cw as RelatedProductsEnrichment, cx as RelationType, cy as ReminderMethod, cz as ReminderSettings, cA as ReorderResult, cB as RequestContext, cC as RequestErrorEvent, cD as RequestOptions, cE as RequestOtpInput, cF as RequestSource, cG as RequestStartEvent, cH as RequestSuccessEvent, cI as RescheduleBookingInput, cJ as RescheduleBookingResult, cK as RescheduleHistoryRecord, cL as ResourceAssignment, cM as Result, cN as RetryEvent, cO as RevokeAllSessionsResult, cP as RevokeSessionResult, cQ as Room, cR as SchedulingMetadata, cS as SchedulingResult, cT as SchedulingService, cU as SenderType, cV as Service, cW as ServiceAvailabilityParams, cX as ServiceAvailabilityResult, cY as ServiceCharge, cZ as ServiceNotes, c_ as ServiceScheduleRequest, c$ as ServiceStatus, d0 as SessionActivityData, d1 as SessionChangeEvent, d2 as SessionMessage, d3 as SlotResourceInfo, d4 as SlotStaffInfo, d5 as Staff, d6 as StaffAssignment, d7 as StaffRole, d8 as StaffScheduleItem, d9 as StockLevel, da as StockStatus, db as StoreCreditBalance, dc as StoreCreditQueries, dd as StorefrontBootstrap, de as SubscriptionService, df as SupportService, dg as Table, dh as TableInfo, di as TimeRange, dj as TimeRanges, dk as TimeSlot, dl as TrackCategoryViewOptions, dm as TrackProductViewOptions, dn as UpdateAddressInput, dp as UpdateOrderStatusInput, dq as UpdateProfileInput, dr as UploadInitResponse, ds as UploadResult, dt as UploadService, du as VerifyOtpInput, dv as combine, dw as combineObject, dx as createCimplifyClient, dy as createElements, dz as err, dA as flatMap, dB as fromPromise, dC as getOrElse, dD as isErr, dE as isOk, dF as mapError, dG as mapResult, dH as ok, dI as toNullable, dJ as tryCatch, dK as unwrap } from './client-D16qfHAB.mjs';
2
2
  import { b9 as ProductWithDetails, j as ApiError } from './product-BgFOFmQw.mjs';
3
3
  export { A as AddOn, a as AddOnDetails, b as AddOnGroupDetails, c as AddOnOption, d as AddOnOptionDetails, e as AddOnOptionPrice, f as AddOnWithOptions, g as AddToCartInput, h as AddressValue, i as AdjustmentType, k as AppliedDiscount, l as AttributeAppliesTo, m as AttributeType, n as AttributeValidationRules, o as AttributeVisibility, B as BenefitType, p as BillingFrequency, q as BillingMarkupType, r as BillingPlanType, s as Bundle, t as BundleComponentData, u as BundleComponentInfo, v as BundleComponentVariantView, w as BundleComponentView, x as BundlePriceType, y as BundleProduct, z as BundleSelectionData, C as BundleSelectionInput, D as BundleStoredSelection, E as BundleSummary, F as BundleWithDetails, G as Cart, H as CartAddOn, I as CartChannel, J as CartItem, K as CartItemDetails, L as CartMutationResult, M as CartNotice, N as CartStatus, O as CartSummary, P as CartTotals, Q as Category, R as CategorySummary, S as ChosenPrice, T as CimplifyError, U as Collection, V as CollectionProduct, W as CollectionSummary, X as ComponentGroup, Y as ComponentGroupWithComponents, Z as ComponentPriceBreakdown, _ as ComponentSchedulingData, $ as ComponentSelectionInput, a0 as ComponentSourceType, a1 as Composite, a2 as CompositeComponent, a3 as CompositeComponentView, a4 as CompositeGroupView, a5 as CompositePriceBreakdown, a6 as CompositePriceResult, a7 as CompositePricingMode, a8 as CompositeSelectionData, $ as CompositeSelectionInput, a9 as CompositeStoredSelection, aa as CompositeWithDetails, ab as CurrencyCode, ac as CustomAttributeDefinition, ad as CustomAttributeValue, ae as CustomerInputValue, af as DURATION_UNIT, ag as DateRangeValue, ah as Deal, ai as DealBenefitType, aj as DepositType, ak as DigitalProductType, al as DiscountBreakdown, am as DiscountDetails, an as DiscountValidation, ao as DisplayAddOn, ap as DisplayAddOnOption, aq as DisplayCart, ar as DisplayCartItem, as as DisplayMode, at as DurationUnit, au as ERROR_HINTS, av as EligiblePlansQuery, aw as ErrorCode, ax as ErrorCodeType, ay as ErrorHint, az as FacetValue, aA as FormattedPlanOption, aB as GroupPricingBehavior, aC as INPUT_FIELD_TYPE, aD as IdempotencyMismatchError, aE as InputFieldType, aF as InputFieldValidation, aG as InventoryType, aH as KnowledgeArticle, aI as LineConfiguration, aJ as LocationProductPrice, aK as LocationValue, aL as MeasurementValue, aM as Money, aN as PRODUCT_TYPE, aO as Pagination, aP as PaginationParams, aQ as PhoneValue, aR as Price, aS as PriceAdjustment, aT as PriceDecisionPath, aU as PriceEntryType, aV as PricePathTaxInfo, aW as PriceSource, aX as Product, aY as ProductAddOn, aZ as ProductAvailability, a_ as ProductAvailabilityNow, a$ as ProductBillingPlan, b0 as ProductDealInfo, b1 as ProductInputField, b2 as ProductProperty, b3 as ProductRenderHint, b4 as ProductTaxonomy, b5 as ProductTimeProfile, b6 as ProductType, b7 as ProductVariant, b8 as ProductVariantValue, ba as PropertyFacet, bb as PropertySource, bc as QuantityPricingTier, bd as RENDER_HINT, be as RelatedProductView, bf as SalesChannel, bg as SchedulingMode, bh as SelectedAddOnOption, bi as SemanticKind, bj as SignatureValue, bk as Subscription, bl as SubscriptionInvoice, bm as SubscriptionItem, bn as SubscriptionStatus, bo as SubscriptionWithDetails, bp as Tag, bq as TagsResponse, br as TaxPathComponent, bs as TaxonomyAttributeTemplate, bt as TaxonomyWithChildren, bu as UICart, bv as UICartBusiness, bw as UICartCustomer, bx as UICartLocation, by as UICartPricing, bz as UpdateCartItemInput, bA as VariantAxis, bB as VariantAxisSelection, bC as VariantAxisValue, bD as VariantAxisValueView, bE as VariantAxisView, bF as VariantAxisWithValues, bG as VariantDetails, bH as VariantDetailsDTO, bI as VariantDisplayAttribute, bJ as VariantLocationAvailability, bK as VariantStrategy, bL as VariantView, bM as ZERO, bN as currencyCode, bO as enrichError, bP as getErrorHint, bQ as isCimplifyError, bR as isIdempotencyMismatchError, bS as isQuoteConflictRequiringConsent, bT as isQuoteError, bU as isRetryableError, bV as isSupportedCurrency, bW as money, bX as moneyFromNumber } from './product-BgFOFmQw.mjs';
4
4
  export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, c as categorizePaymentError, d as detectMobileMoneyProvider, f as formatMoney, a as formatNumberCompact, b as formatPrice, e as formatPriceAdjustment, g as formatPriceCompact, h as formatPriceRange, i as formatPriceWithTax, j as formatProductPrice, k as getBasePrice, l as getCurrencySymbol, m as getDiscountPercentage, n as getDisplayPrice, o as getMarkupPercentage, p as getPriceRange, q as getProductCurrency, r as getTaxAmount, s as getUnitPriceAtQuantity, t as hasTaxInfo, u as isOnSale, v as isPaymentStatusFailure, w as isPaymentStatusRequiresAction, x as isPaymentStatusSuccess, y as isTaxInclusive, z as isValidPhoneForContext, A as normalizePaymentResponse, B as normalizePhoneToE164, D as normalizeStatusResponse, E as parsePrice, F as resolvePhoneCountryCode } from './index-Bu76UyFz.mjs';