@cimplify/sdk 0.66.0 → 0.67.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 (52) hide show
  1. package/dist/advanced.d.mts +1 -1
  2. package/dist/advanced.d.ts +1 -1
  3. package/dist/advanced.js +20 -20
  4. package/dist/advanced.mjs +1 -1
  5. package/dist/{chunk-AVQL3TSJ.js → chunk-3QSW33RG.js} +389 -78
  6. package/dist/chunk-E6T5VJMG.mjs +156 -0
  7. package/dist/{chunk-MWI5GAUF.mjs → chunk-FNK6UZOE.mjs} +2 -2
  8. package/dist/{chunk-3G4QCENX.mjs → chunk-FVGVJ4TC.mjs} +12 -50
  9. package/dist/chunk-IQLJJW2H.js +168 -0
  10. package/dist/{chunk-227XTAEB.mjs → chunk-JAPCAZN4.mjs} +2 -48
  11. package/dist/{chunk-R6363CC7.mjs → chunk-QQMDEGAK.mjs} +382 -79
  12. package/dist/{chunk-H6DBPHMZ.js → chunk-SH6HJW4A.js} +4 -4
  13. package/dist/{chunk-J3MGY6AU.js → chunk-SSLFZPAI.js} +36 -82
  14. package/dist/{chunk-HCZTBWU4.js → chunk-SXGFJEME.js} +12 -50
  15. package/dist/{client-Dka2cGhu.d.mts → client-ByI_3jfL.d.mts} +32 -20
  16. package/dist/{client-DasPHOJh.d.ts → client-CQlEWH5j.d.ts} +1 -1
  17. package/dist/{client-Bo5rujc2.d.ts → client-DVFQoDtI.d.ts} +32 -20
  18. package/dist/{client-CUrA1uQ0.d.mts → client-Dd82KQ_G.d.mts} +1 -1
  19. package/dist/index.d.mts +2 -2
  20. package/dist/index.d.ts +2 -2
  21. package/dist/index.js +80 -81
  22. package/dist/index.mjs +4 -5
  23. package/dist/mock/cli.mjs +12 -50
  24. package/dist/mock/library.js +12 -50
  25. package/dist/mock/library.mjs +12 -50
  26. package/dist/mock/msw.js +12 -50
  27. package/dist/mock/msw.mjs +12 -50
  28. package/dist/react.d.mts +4 -7
  29. package/dist/react.d.ts +4 -7
  30. package/dist/react.js +63 -71
  31. package/dist/react.mjs +5 -13
  32. package/dist/server.d.mts +2 -2
  33. package/dist/server.d.ts +2 -2
  34. package/dist/server.js +16 -9
  35. package/dist/server.mjs +11 -4
  36. package/dist/{sign-in-dr7m09nm.d.ts → sign-in-RFuWZOgF.d.mts} +6 -1
  37. package/dist/{sign-in-dr7m09nm.d.mts → sign-in-RFuWZOgF.d.ts} +6 -1
  38. package/dist/testing/msw.js +2 -2
  39. package/dist/testing/msw.mjs +1 -1
  40. package/dist/testing/suite.d.mts +2 -2
  41. package/dist/testing/suite.d.ts +2 -2
  42. package/dist/testing/suite.js +23 -23
  43. package/dist/testing/suite.mjs +4 -4
  44. package/dist/testing.d.mts +2 -2
  45. package/dist/testing.d.ts +2 -2
  46. package/dist/testing.js +79 -79
  47. package/dist/testing.mjs +5 -5
  48. package/package.json +1 -1
  49. package/dist/chunk-3Z3FQH7X.mjs +0 -323
  50. package/dist/chunk-7BKKBJQM.mjs +0 -52
  51. package/dist/chunk-GDAGM26J.js +0 -338
  52. package/dist/chunk-KWYI2TTA.js +0 -60
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkAVQL3TSJ_js = require('./chunk-AVQL3TSJ.js');
3
+ var chunk3QSW33RG_js = require('./chunk-3QSW33RG.js');
4
4
  var chunkXA3ZNR75_js = require('./chunk-XA3ZNR75.js');
5
5
 
6
6
  // src/activity.ts
@@ -29,7 +29,7 @@ var ActivityService = class {
29
29
  this.sendEvents([event]);
30
30
  }
31
31
  async getState() {
32
- return chunkAVQL3TSJ_js.safe(this.client.get("/api/v1/activity/state"));
32
+ return chunk3QSW33RG_js.safe(this.client.get("/api/v1/activity/state"));
33
33
  }
34
34
  async getRecommendations(options) {
35
35
  const params = new URLSearchParams();
@@ -37,10 +37,10 @@ var ActivityService = class {
37
37
  if (options?.limit) params.set("limit", String(options.limit));
38
38
  const query = params.toString();
39
39
  const path = query ? `/api/v1/activity/recommendations?${query}` : "/api/v1/activity/recommendations";
40
- return chunkAVQL3TSJ_js.safe(this.client.get(path));
40
+ return chunk3QSW33RG_js.safe(this.client.get(path));
41
41
  }
42
42
  async dismissMessage(code) {
43
- return chunkAVQL3TSJ_js.safe(
43
+ return chunk3QSW33RG_js.safe(
44
44
  this.client.post("/api/v1/activity/messages/dismiss", { code })
45
45
  );
46
46
  }
@@ -62,16 +62,16 @@ var SubscriptionService = class {
62
62
  this.client = client;
63
63
  }
64
64
  async list() {
65
- return chunkAVQL3TSJ_js.safe(this.client.get("/api/v1/subscriptions"));
65
+ return chunk3QSW33RG_js.safe(this.client.get("/api/v1/subscriptions"));
66
66
  }
67
67
  async get(id) {
68
68
  const encodedId = encodeURIComponent(id);
69
- return chunkAVQL3TSJ_js.safe(this.client.get(`/api/v1/subscriptions/${encodedId}`));
69
+ return chunk3QSW33RG_js.safe(this.client.get(`/api/v1/subscriptions/${encodedId}`));
70
70
  }
71
71
  async cancel(id, reason, opts) {
72
72
  const encodedId = encodeURIComponent(id);
73
- const idempotencyKey = opts?.idempotencyKey ?? chunkAVQL3TSJ_js.generateIdempotencyKey();
74
- return chunkAVQL3TSJ_js.safe(
73
+ const idempotencyKey = opts?.idempotencyKey ?? chunk3QSW33RG_js.generateIdempotencyKey();
74
+ return chunk3QSW33RG_js.safe(
75
75
  this.client.post(
76
76
  `/api/v1/subscriptions/${encodedId}/cancel`,
77
77
  { reason },
@@ -81,20 +81,20 @@ var SubscriptionService = class {
81
81
  }
82
82
  async pause(id) {
83
83
  const encodedId = encodeURIComponent(id);
84
- return chunkAVQL3TSJ_js.safe(
84
+ return chunk3QSW33RG_js.safe(
85
85
  this.client.post(`/api/v1/subscriptions/${encodedId}/pause`)
86
86
  );
87
87
  }
88
88
  async resume(id) {
89
89
  const encodedId = encodeURIComponent(id);
90
- return chunkAVQL3TSJ_js.safe(
90
+ return chunk3QSW33RG_js.safe(
91
91
  this.client.post(`/api/v1/subscriptions/${encodedId}/resume`)
92
92
  );
93
93
  }
94
94
  async skipNextRenewal(id, opts) {
95
95
  const encodedId = encodeURIComponent(id);
96
- const idempotencyKey = opts?.idempotencyKey ?? chunkAVQL3TSJ_js.generateIdempotencyKey();
97
- return chunkAVQL3TSJ_js.safe(
96
+ const idempotencyKey = opts?.idempotencyKey ?? chunk3QSW33RG_js.generateIdempotencyKey();
97
+ return chunk3QSW33RG_js.safe(
98
98
  this.client.post(
99
99
  `/api/v1/subscriptions/${encodedId}/skip`,
100
100
  void 0,
@@ -110,8 +110,8 @@ var UploadService = class {
110
110
  this.client = client;
111
111
  }
112
112
  async init(filename, contentType, sizeBytes, opts) {
113
- const idempotencyKey = opts?.idempotencyKey ?? chunkAVQL3TSJ_js.generateIdempotencyKey();
114
- return chunkAVQL3TSJ_js.safe(
113
+ const idempotencyKey = opts?.idempotencyKey ?? chunk3QSW33RG_js.generateIdempotencyKey();
114
+ return chunk3QSW33RG_js.safe(
115
115
  this.client.post(
116
116
  "/api/v1/uploads/init",
117
117
  {
@@ -124,7 +124,7 @@ var UploadService = class {
124
124
  );
125
125
  }
126
126
  async confirm(uploadId) {
127
- return chunkAVQL3TSJ_js.safe(
127
+ return chunk3QSW33RG_js.safe(
128
128
  this.client.post("/api/v1/uploads/confirm", {
129
129
  upload_id: uploadId
130
130
  })
@@ -170,7 +170,7 @@ var PlacesService = class {
170
170
  this.client = client;
171
171
  }
172
172
  async autocomplete(input, sessionToken) {
173
- return chunkAVQL3TSJ_js.safe(
173
+ return chunk3QSW33RG_js.safe(
174
174
  this.client.post("/api/v1/places/autocomplete", {
175
175
  input,
176
176
  sessionToken
@@ -178,7 +178,7 @@ var PlacesService = class {
178
178
  );
179
179
  }
180
180
  async details(placeId, sessionToken) {
181
- return chunkAVQL3TSJ_js.safe(
181
+ return chunk3QSW33RG_js.safe(
182
182
  this.client.post("/api/v1/places/details", {
183
183
  place_id: placeId,
184
184
  sessionToken
@@ -197,7 +197,7 @@ var DeliveryService = class {
197
197
  params.set("dropoff_lat", String(dropoffLat));
198
198
  params.set("dropoff_lng", String(dropoffLng));
199
199
  if (country) params.set("country", country);
200
- return chunkAVQL3TSJ_js.safe(
200
+ return chunk3QSW33RG_js.safe(
201
201
  this.client.get(`/api/v1/delivery/fee?${params.toString()}`)
202
202
  );
203
203
  }
@@ -210,8 +210,8 @@ var SupportService = class {
210
210
  }
211
211
  /** Open (or resume) the customer's widget conversation. */
212
212
  async openConversation(opts) {
213
- const idempotencyKey = opts?.idempotencyKey ?? chunkAVQL3TSJ_js.generateIdempotencyKey();
214
- return chunkAVQL3TSJ_js.safe(
213
+ const idempotencyKey = opts?.idempotencyKey ?? chunk3QSW33RG_js.generateIdempotencyKey();
214
+ return chunk3QSW33RG_js.safe(
215
215
  this.client.post("/api/v1/support/conversation", void 0, {
216
216
  idempotencyKey
217
217
  })
@@ -219,8 +219,8 @@ var SupportService = class {
219
219
  }
220
220
  /** Send a message in the active conversation. */
221
221
  async sendMessage(content, opts) {
222
- const idempotencyKey = opts?.idempotencyKey ?? chunkAVQL3TSJ_js.generateIdempotencyKey();
223
- return chunkAVQL3TSJ_js.safe(
222
+ const idempotencyKey = opts?.idempotencyKey ?? chunk3QSW33RG_js.generateIdempotencyKey();
223
+ return chunk3QSW33RG_js.safe(
224
224
  this.client.post(
225
225
  "/api/v1/support/conversation/messages",
226
226
  { content },
@@ -235,7 +235,7 @@ var SupportService = class {
235
235
  if (options.limit) params.set("limit", String(options.limit));
236
236
  const query = params.toString();
237
237
  const path = query ? `/api/v1/support/conversation/messages?${query}` : "/api/v1/support/conversation/messages";
238
- return chunkAVQL3TSJ_js.safe(this.client.get(path));
238
+ return chunk3QSW33RG_js.safe(this.client.get(path));
239
239
  }
240
240
  };
241
241
 
@@ -276,7 +276,6 @@ function createClientEvents() {
276
276
  var SESSION_TOKEN_STORAGE_KEY = "cimplify_session_token";
277
277
  var ORDER_TOKEN_PREFIX = "cimplify_ot_";
278
278
  var SESSION_TOKEN_HEADER = "x-session-token";
279
- var REFRESH_ENDPOINT = "/v1/link/elements/refresh";
280
279
  var ORDER_TOKEN_TTL_MS = 24 * 60 * 60 * 1e3;
281
280
  var DEFAULT_TIMEOUT_MS = 5e3;
282
281
  var DEFAULT_MAX_RETRIES = 3;
@@ -384,7 +383,6 @@ var CimplifyClient = class {
384
383
  this.context = {};
385
384
  this.businessId = null;
386
385
  this.businessIdResolvePromise = null;
387
- this.refreshInflight = null;
388
386
  this.inflightRequests = /* @__PURE__ */ new Map();
389
387
  /**
390
388
  * App-level event channel. Subscribe to surface mutation rollbacks, outbox
@@ -531,52 +529,8 @@ var CimplifyClient = class {
531
529
  this.businessIdResolvePromise = null;
532
530
  }
533
531
  }
534
- // Browser-only (the server is handed a token directly). Concurrent 401s share
535
- // one in-flight refresh so the rotating cookie rotates once, not N times.
536
- async refreshAccessToken() {
537
- if (typeof window === "undefined") return false;
538
- if (this.refreshInflight) return this.refreshInflight;
539
- this.refreshInflight = (async () => {
540
- try {
541
- const headers = { "Content-Type": "application/json" };
542
- const trimmedPublicKey = this.publicKey.trim();
543
- if (trimmedPublicKey) headers["X-API-Key"] = trimmedPublicKey;
544
- const res = await this.fetchImpl(`${this.linkApiUrl}${REFRESH_ENDPOINT}`, {
545
- method: "POST",
546
- credentials: this.credentials,
547
- headers,
548
- body: "{}"
549
- });
550
- if (!res.ok) return false;
551
- const json = await res.json();
552
- const token = json?.data?.token ?? json?.token;
553
- if (typeof token === "string" && token.length > 0) {
554
- this.setAccessToken(token);
555
- return true;
556
- }
557
- return false;
558
- } catch {
559
- return false;
560
- } finally {
561
- this.refreshInflight = null;
562
- }
563
- })();
564
- return this.refreshInflight;
565
- }
566
- // On 401, refresh from the session cookie once and retry — re-establishes a
567
- // session after a reload without persisting any token.
568
532
  async authedFetch(url, options) {
569
- const response = await this.resilientFetch(url, options);
570
- if (response.status !== 401 || typeof window === "undefined" || url.includes(REFRESH_ENDPOINT)) {
571
- return response;
572
- }
573
- const refreshed = await this.refreshAccessToken();
574
- if (!refreshed) return response;
575
- const retryHeaders = {
576
- ...options.headers,
577
- Authorization: `Bearer ${this.accessToken}`
578
- };
579
- return this.resilientFetch(url, { ...options, headers: retryHeaders });
533
+ return this.resilientFetch(url, options);
580
534
  }
581
535
  loadSessionToken() {
582
536
  if (typeof window !== "undefined" && window.localStorage) {
@@ -860,25 +814,25 @@ var CimplifyClient = class {
860
814
  }
861
815
  get catalogue() {
862
816
  if (!this._catalogue) {
863
- this._catalogue = new chunkAVQL3TSJ_js.CatalogueQueries(this);
817
+ this._catalogue = new chunk3QSW33RG_js.CatalogueQueries(this);
864
818
  }
865
819
  return this._catalogue;
866
820
  }
867
821
  get cart() {
868
822
  if (!this._cart) {
869
- this._cart = new chunkAVQL3TSJ_js.CartOperations(this);
823
+ this._cart = new chunk3QSW33RG_js.CartOperations(this);
870
824
  }
871
825
  return this._cart;
872
826
  }
873
827
  get checkout() {
874
828
  if (!this._checkout) {
875
- this._checkout = new chunkAVQL3TSJ_js.CheckoutService(this);
829
+ this._checkout = new chunk3QSW33RG_js.CheckoutService(this);
876
830
  }
877
831
  return this._checkout;
878
832
  }
879
833
  get orders() {
880
834
  if (!this._orders) {
881
- this._orders = new chunkAVQL3TSJ_js.OrderQueries(this);
835
+ this._orders = new chunk3QSW33RG_js.OrderQueries(this);
882
836
  }
883
837
  return this._orders;
884
838
  }
@@ -902,43 +856,43 @@ var CimplifyClient = class {
902
856
  }
903
857
  get link() {
904
858
  if (!this._link) {
905
- this._link = new chunkAVQL3TSJ_js.LinkService(this);
859
+ this._link = new chunk3QSW33RG_js.LinkService(this);
906
860
  }
907
861
  return this._link;
908
862
  }
909
863
  get auth() {
910
864
  if (!this._auth) {
911
- this._auth = new chunkAVQL3TSJ_js.AuthService(this);
865
+ this._auth = new chunk3QSW33RG_js.AuthService(this);
912
866
  }
913
867
  return this._auth;
914
868
  }
915
869
  get business() {
916
870
  if (!this._business) {
917
- this._business = new chunkAVQL3TSJ_js.BusinessService(this);
871
+ this._business = new chunk3QSW33RG_js.BusinessService(this);
918
872
  }
919
873
  return this._business;
920
874
  }
921
875
  get inventory() {
922
876
  if (!this._inventory) {
923
- this._inventory = new chunkAVQL3TSJ_js.InventoryService(this);
877
+ this._inventory = new chunk3QSW33RG_js.InventoryService(this);
924
878
  }
925
879
  return this._inventory;
926
880
  }
927
881
  get scheduling() {
928
882
  if (!this._scheduling) {
929
- this._scheduling = new chunkAVQL3TSJ_js.SchedulingService(this);
883
+ this._scheduling = new chunk3QSW33RG_js.SchedulingService(this);
930
884
  }
931
885
  return this._scheduling;
932
886
  }
933
887
  get lite() {
934
888
  if (!this._lite) {
935
- this._lite = new chunkAVQL3TSJ_js.LiteService(this);
889
+ this._lite = new chunk3QSW33RG_js.LiteService(this);
936
890
  }
937
891
  return this._lite;
938
892
  }
939
893
  get fx() {
940
894
  if (!this._fx) {
941
- this._fx = new chunkAVQL3TSJ_js.FxService(this);
895
+ this._fx = new chunk3QSW33RG_js.FxService(this);
942
896
  }
943
897
  return this._fx;
944
898
  }
@@ -973,7 +927,7 @@ var CimplifyClient = class {
973
927
  if (businessId) {
974
928
  this.setBusinessId(businessId);
975
929
  }
976
- return chunkAVQL3TSJ_js.createElements(this, businessId ?? this.businessId ?? void 0, options);
930
+ return chunk3QSW33RG_js.createElements(this, businessId ?? this.businessId ?? void 0, options);
977
931
  }
978
932
  };
979
933
  function createCimplifyClient(config = {}) {
@@ -2647,10 +2647,10 @@ var ELEMENT_HANDLER_JS = `/* eslint-disable */
2647
2647
  REFRESH_TOKEN: "refresh_token", LOGOUT: "logout",
2648
2648
  PROCESS_CHECKOUT: "process_checkout", ABORT_CHECKOUT: "abort_checkout",
2649
2649
  READY: "ready", HEIGHT_CHANGE: "height_change",
2650
- AUTHENTICATED: "authenticated", REQUIRES_OTP: "requires_otp", ERROR: "error",
2650
+ AUTH_REQUESTED: "auth_requested", ERROR: "error",
2651
2651
  ADDRESS_CHANGED: "address_changed", ADDRESS_SELECTED: "address_selected",
2652
2652
  PAYMENT_METHOD_SELECTED: "payment_method_selected",
2653
- TOKEN_REFRESHED: "token_refreshed", LOGOUT_COMPLETE: "logout_complete",
2653
+ LOGOUT_COMPLETE: "logout_complete",
2654
2654
  CONTACT_PROVIDED: "contact_provided",
2655
2655
  CHECKOUT_STATUS: "checkout_status", CHECKOUT_COMPLETE: "checkout_complete",
2656
2656
  ORDER_TYPE_CHANGED: "order_type_changed", REQUEST_SUBMIT: "request_submit"
@@ -2659,6 +2659,7 @@ var ELEMENT_HANDLER_JS = `/* eslint-disable */
2659
2659
  var AUTO = qs.get("auto") === "true";
2660
2660
  var DEMO_OTP = qs.get("otp") || "123456";
2661
2661
  var ORIGIN = qs.get("origin") || "*";
2662
+ var NONCE = qs.get("nonce");
2662
2663
  var state = {
2663
2664
  businessId: DEFAULT_BUSINESS,
2664
2665
  token: null,
@@ -2673,7 +2674,10 @@ var ELEMENT_HANDLER_JS = `/* eslint-disable */
2673
2674
  var content = document.getElementById("content");
2674
2675
  var title = document.getElementById("title");
2675
2676
 
2676
- function send(msg) { parent.postMessage(msg, ORIGIN); }
2677
+ function send(msg) {
2678
+ if (NONCE) msg.nonce = NONCE;
2679
+ parent.postMessage(msg, ORIGIN);
2680
+ }
2677
2681
  function reportHeight() { send({ type: MSG.HEIGHT_CHANGE, height: document.documentElement.scrollHeight }); }
2678
2682
  function ready() { send({ type: MSG.READY, height: document.documentElement.scrollHeight }); }
2679
2683
 
@@ -2693,54 +2697,13 @@ var ELEMENT_HANDLER_JS = `/* eslint-disable */
2693
2697
  function renderAuth() {
2694
2698
  title.textContent = "Sign in";
2695
2699
  content.innerHTML =
2696
- '<label>Email or phone</label>' +
2697
- '<input id="contact" placeholder="you@example.com or +233..." value="' + (qs.get("contact") || "") + '">' +
2698
- '<button id="send-otp">Send code</button>' +
2699
- '<div id="otp-box" style="display:none">' +
2700
- ' <label>Verification code (mock: ' + DEMO_OTP + ')</label>' +
2701
- ' <input id="otp" maxlength="6" value="' + DEMO_OTP + '">' +
2702
- ' <button id="verify-otp">Verify</button>' +
2703
- '</div>' +
2700
+ '<button id="start-auth">Continue with Cimplify</button>' +
2704
2701
  '<div class="err" id="err"></div>';
2705
- document.getElementById("send-otp").onclick = function () {
2706
- var contact = document.getElementById("contact").value.trim();
2707
- if (!contact) { document.getElementById("err").textContent = "Enter contact"; return; }
2708
- state.contact = contact;
2709
- var contactType = contact.indexOf("@") >= 0 ? "email" : "phone";
2710
- send({ type: MSG.CONTACT_PROVIDED, contact: contact, contactType: contactType });
2711
- send({ type: MSG.REQUIRES_OTP, contactMasked: contact.slice(0, 3) + "***" });
2712
- document.getElementById("otp-box").style.display = "block";
2713
- reportHeight();
2714
- };
2715
- document.getElementById("verify-otp").onclick = function () {
2716
- var code = document.getElementById("otp").value.trim();
2717
- if (code !== DEMO_OTP) { document.getElementById("err").textContent = "Invalid code"; return; }
2718
- fetch("/api/v1/auth/verify-otp", {
2719
- method: "POST",
2720
- headers: { "content-type": "application/json" },
2721
- body: JSON.stringify({ contact: state.contact, code: code })
2722
- }).then(function (r) { return r.json(); }).then(function (body) {
2723
- var session = body.session || {};
2724
- state.token = session.token || body.token;
2725
- state.customer = {
2726
- name: session.customer_name || "Customer",
2727
- email: session.customer_email || (state.contact && state.contact.indexOf("@") >= 0 ? state.contact : null),
2728
- phone: session.customer_phone || (state.contact && state.contact.indexOf("@") < 0 ? state.contact : null)
2729
- };
2730
- send({
2731
- type: MSG.AUTHENTICATED,
2732
- accountId: "acct_mock_" + (session.id || "x"),
2733
- customerId: session.customer_id || "cust_mock",
2734
- token: state.token,
2735
- customer: state.customer
2736
- });
2737
- }).catch(function (e) {
2738
- send({ type: MSG.ERROR, code: "AUTH_FAILED", message: String(e) });
2739
- });
2702
+ document.getElementById("start-auth").onclick = function () {
2703
+ send({ type: MSG.AUTH_REQUESTED });
2740
2704
  };
2741
2705
  if (AUTO) {
2742
- setTimeout(function () { document.getElementById("send-otp").click(); }, 50);
2743
- setTimeout(function () { document.getElementById("verify-otp").click(); }, 150);
2706
+ setTimeout(function () { document.getElementById("start-auth").click(); }, 50);
2744
2707
  }
2745
2708
  }
2746
2709
 
@@ -2917,7 +2880,6 @@ var ELEMENT_HANDLER_JS = `/* eslint-disable */
2917
2880
  break;
2918
2881
  case MSG.SET_TOKEN:
2919
2882
  state.token = msg.token;
2920
- send({ type: MSG.TOKEN_REFRESHED, token: state.token });
2921
2883
  break;
2922
2884
  case MSG.SET_CART:
2923
2885
  state.cart = msg.cart;
@@ -2929,7 +2891,7 @@ var ELEMENT_HANDLER_JS = `/* eslint-disable */
2929
2891
  send({ type: MSG.HEIGHT_CHANGE, height: document.documentElement.scrollHeight });
2930
2892
  break;
2931
2893
  case MSG.REFRESH_TOKEN:
2932
- send({ type: MSG.TOKEN_REFRESHED, token: state.token || "tok_mock_refreshed" });
2894
+ reportHeight();
2933
2895
  break;
2934
2896
  case MSG.LOGOUT:
2935
2897
  state.token = null;
@@ -999,11 +999,11 @@ interface VerifyOtpInput {
999
999
  contact: string;
1000
1000
  contact_type: ContactType;
1001
1001
  otp_code: string;
1002
- business_id?: string;
1003
1002
  }
1004
1003
  interface AuthResponse {
1005
1004
  success: boolean;
1006
1005
  session_token: string | null;
1006
+ refresh_token?: string | null;
1007
1007
  customer_id: string | null;
1008
1008
  message: string;
1009
1009
  }
@@ -1239,6 +1239,7 @@ declare class LinkService {
1239
1239
  constructor(client: CimplifyClient);
1240
1240
  requestOtp(input: RequestOtpInput, opts?: IdempotencyOption$6): Promise<Result<SuccessResult$1, CimplifyError>>;
1241
1241
  verifyOtp(input: VerifyOtpInput, opts?: IdempotencyOption$6): Promise<Result<AuthResponse, CimplifyError>>;
1242
+ refreshSession(sessionToken?: string, opts?: IdempotencyOption$6): Promise<Result<AuthResponse, CimplifyError>>;
1242
1243
  logout(): Promise<Result<SuccessResult$1, CimplifyError>>;
1243
1244
  checkStatus(contact: string): Promise<Result<LinkStatusResult, CimplifyError>>;
1244
1245
  getLinkData(): Promise<Result<LinkData, CimplifyError>>;
@@ -2026,20 +2027,19 @@ declare const MESSAGE_TYPES: {
2026
2027
  readonly SET_TOKEN: "set_token";
2027
2028
  readonly SET_CART: "set_cart";
2028
2029
  readonly GET_DATA: "get_data";
2030
+ readonly NAVIGATE: "navigate";
2029
2031
  readonly REFRESH_TOKEN: "refresh_token";
2030
2032
  readonly LOGOUT: "logout";
2031
2033
  readonly PROCESS_CHECKOUT: "process_checkout";
2032
2034
  readonly ABORT_CHECKOUT: "abort_checkout";
2033
2035
  readonly READY: "ready";
2034
2036
  readonly HEIGHT_CHANGE: "height_change";
2035
- readonly AUTHENTICATED: "authenticated";
2036
- readonly REQUIRES_OTP: "requires_otp";
2037
2037
  readonly ERROR: "error";
2038
2038
  readonly ADDRESS_CHANGED: "address_changed";
2039
2039
  readonly ADDRESS_SELECTED: "address_selected";
2040
2040
  readonly PAYMENT_METHOD_SELECTED: "payment_method_selected";
2041
- readonly TOKEN_REFRESHED: "token_refreshed";
2042
2041
  readonly LOGOUT_COMPLETE: "logout_complete";
2042
+ readonly AUTH_REQUESTED: "auth_requested";
2043
2043
  readonly CONTACT_PROVIDED: "contact_provided";
2044
2044
  readonly CHECKOUT_STATUS: "checkout_status";
2045
2045
  readonly CHECKOUT_COMPLETE: "checkout_complete";
@@ -2049,6 +2049,15 @@ declare const MESSAGE_TYPES: {
2049
2049
  interface ElementsOptions {
2050
2050
  linkUrl?: string;
2051
2051
  appearance?: ElementAppearance;
2052
+ auth?: ElementsAuthOptions;
2053
+ }
2054
+ interface ElementsAuthOptions {
2055
+ clientId?: string;
2056
+ redirectUri?: string;
2057
+ callbackUri?: string;
2058
+ scope?: string;
2059
+ issuer?: string;
2060
+ authUrl?: string;
2052
2061
  }
2053
2062
  interface ElementAppearance {
2054
2063
  theme?: "light" | "dark";
@@ -2164,9 +2173,14 @@ type ParentToIframeMessage = {
2164
2173
  defaultOrderType?: OrderType;
2165
2174
  renderSubmitButton?: boolean;
2166
2175
  submitLabel?: string;
2176
+ token?: string;
2177
+ merchantName?: string;
2167
2178
  } | {
2168
2179
  type: typeof MESSAGE_TYPES.SET_TOKEN;
2169
2180
  token: string;
2181
+ } | {
2182
+ type: typeof MESSAGE_TYPES.NAVIGATE;
2183
+ path: string;
2170
2184
  } | {
2171
2185
  type: typeof MESSAGE_TYPES.SET_CART;
2172
2186
  cart: CheckoutCartData;
@@ -2199,15 +2213,6 @@ type IframeToParentMessage = {
2199
2213
  } | {
2200
2214
  type: typeof MESSAGE_TYPES.HEIGHT_CHANGE;
2201
2215
  height: number;
2202
- } | {
2203
- type: typeof MESSAGE_TYPES.AUTHENTICATED;
2204
- accountId: string;
2205
- customerId: string;
2206
- token: string;
2207
- customer: AuthenticatedCustomer;
2208
- } | {
2209
- type: typeof MESSAGE_TYPES.REQUIRES_OTP;
2210
- contactMasked: string;
2211
2216
  } | {
2212
2217
  type: typeof MESSAGE_TYPES.CONTACT_PROVIDED;
2213
2218
  contact: string;
@@ -2227,11 +2232,10 @@ type IframeToParentMessage = {
2227
2232
  type: typeof MESSAGE_TYPES.PAYMENT_METHOD_SELECTED;
2228
2233
  method: PaymentMethodInfo;
2229
2234
  saveToLink: boolean;
2230
- } | {
2231
- type: typeof MESSAGE_TYPES.TOKEN_REFRESHED;
2232
- token: string;
2233
2235
  } | {
2234
2236
  type: typeof MESSAGE_TYPES.LOGOUT_COMPLETE;
2237
+ } | {
2238
+ type: typeof MESSAGE_TYPES.AUTH_REQUESTED;
2235
2239
  } | {
2236
2240
  type: typeof MESSAGE_TYPES.CHECKOUT_STATUS;
2237
2241
  status: CheckoutStatus;
@@ -2261,7 +2265,6 @@ type IframeToParentMessage = {
2261
2265
  declare const EVENT_TYPES: {
2262
2266
  readonly READY: "ready";
2263
2267
  readonly AUTHENTICATED: "authenticated";
2264
- readonly REQUIRES_OTP: "requires_otp";
2265
2268
  readonly ERROR: "error";
2266
2269
  readonly CHANGE: "change";
2267
2270
  readonly BLUR: "blur";
@@ -2285,6 +2288,7 @@ declare class CimplifyElements {
2285
2288
  private addressData;
2286
2289
  private paymentData;
2287
2290
  private checkoutInProgress;
2291
+ private authInProgress;
2288
2292
  private activeCheckoutAbort;
2289
2293
  private boundHandleMessage;
2290
2294
  private businessIdResolvePromise;
@@ -2303,6 +2307,10 @@ declare class CimplifyElements {
2303
2307
  resolveBusinessId(): Promise<string | null>;
2304
2308
  getAppearance(): ElementsOptions["appearance"];
2305
2309
  private hydrateCustomerData;
2310
+ private sourceElementFor;
2311
+ private applyAccessToken;
2312
+ private broadcastAccessToken;
2313
+ private startEmbeddedAuth;
2306
2314
  private handleMessage;
2307
2315
  _setAddressData(data: AddressInfo): void;
2308
2316
  _setPaymentData(data: PaymentMethodInfo): void;
@@ -2336,6 +2344,12 @@ declare class CimplifyElement {
2336
2344
  private flushPending;
2337
2345
  getContentWindow(): Window | null;
2338
2346
  isMounted(): boolean;
2347
+ _acceptsMessageEvent(event: MessageEvent, message: IframeToParentMessage): boolean;
2348
+ _emitAuthenticated(data: AuthenticatedData): void;
2349
+ _emitError(error: {
2350
+ code: string;
2351
+ message: string;
2352
+ }): void;
2339
2353
  private createIframe;
2340
2354
  private handleMessage;
2341
2355
  private emit;
@@ -2397,7 +2411,6 @@ declare class CimplifyClient {
2397
2411
  private context;
2398
2412
  private businessId;
2399
2413
  private businessIdResolvePromise;
2400
- private refreshInflight;
2401
2414
  private inflightRequests;
2402
2415
  /**
2403
2416
  * App-level event channel. Subscribe to surface mutation rollbacks, outbox
@@ -2438,7 +2451,6 @@ declare class CimplifyClient {
2438
2451
  setBusinessId(businessId: string): void;
2439
2452
  getBusinessId(): string | null;
2440
2453
  resolveBusinessId(): Promise<string>;
2441
- private refreshAccessToken;
2442
2454
  private authedFetch;
2443
2455
  private loadSessionToken;
2444
2456
  private saveSessionToken;
@@ -2477,4 +2489,4 @@ declare class CimplifyClient {
2477
2489
  }
2478
2490
  declare function createCimplifyClient(config?: CimplifyConfig): CimplifyClient;
2479
2491
 
2480
- export { type CheckoutCartData as $, AUTHORIZATION_TYPE as A, type Booking as B, type BusinessSettings as C, type BusinessType as D, type BusinessWithLocations as E, CHECKOUT_MODE as F, CHECKOUT_MUTATION as G, CHECKOUT_STEP as H, CONTACT_TYPE as I, type CacheOptions as J, type CancelBookingInput as K, type CancelBookingResult as L, type CancelOrderInput as M, type CancellationPolicy as N, CartOperations as O, CatalogueQueries as P, type CatalogueResult as Q, type CatalogueSnapshot as R, type CategoryInfo as S, type ChatAttachment as T, type ChatConversation as U, type ChatConversationResponse as V, type ChatMessage as W, type ChatWidgetStarter as X, type CheckSlotAvailabilityInput as Y, type CheckSlotAvailabilityResult as Z, type CheckoutAddressInfo as _, AUTH_MUTATION as a, type GetProductsOptions as a$, type CheckoutCartItem as a0, type CheckoutCustomerInfo as a1, type CheckoutFormData as a2, type CheckoutInput as a3, type CheckoutMode as a4, type CheckoutOrderType as a5, type CheckoutPaymentMethod as a6, type CheckoutResult as a7, CheckoutService as a8, type CheckoutStatus as a9, type DismissMessageResponse as aA, ELEMENT_TYPES as aB, EVENT_TYPES as aC, type ElementAppearance as aD, type ElementEventHandler as aE, type ElementEventType as aF, type ElementOptions as aG, type ElementType as aH, type ElementsCheckoutData as aI, type ElementsCheckoutResult as aJ, type ElementsCustomerInfo as aK, type ElementsOptions as aL, type EnrollAndLinkOrderInput as aM, type EnrollAndLinkOrderResult as aN, type EnrollmentData as aO, type Err as aP, type FeeBearerType as aQ, type FetchQuoteInput as aR, type FulfillmentLink as aS, type FulfillmentStatus as aT, type FulfillmentType as aU, type FxQuote as aV, type FxQuoteRequest as aW, type FxRateResponse as aX, FxService as aY, type GetAvailableSlotsInput as aZ, type GetOrdersOptions as a_, type CheckoutStatusContext as aa, type CheckoutStep as ab, CimplifyClient as ac, type CimplifyConfig as ad, CimplifyElement as ae, CimplifyElements as af, type ContactType as ag, type ContentType as ah, type CreateAddressInput as ai, type CreateMobileMoneyInput as aj, type Customer as ak, type CustomerAddress as al, type CustomerBooking as am, type CustomerBookingServiceItem as an, type CustomerLinkPreferences as ao, type CustomerMobileMoney as ap, type CustomerServicePreferences as aq, DEFAULT_COUNTRY as ar, DEFAULT_CURRENCY as as, DEVICE_TYPE as at, type DayAvailability as au, type DeliveryFeeDetails as av, type DeliveryFeeResponse as aw, DeliveryService as ax, type DepositResult as ay, type DeviceType as az, type AbortablePromise as b, type ProcessCheckoutOptions as b$, type IframeToParentMessage as b0, InventoryService as b1, LINK_MUTATION as b2, LINK_QUERY as b3, type LineItem as b4, type LineType as b5, type LinkData as b6, type LinkEnrollResult as b7, LinkService as b8, type LinkSession as b9, type OrderGroupPaymentState as bA, type OrderGroupPaymentStatus as bB, type OrderGroupPaymentSummary as bC, type OrderGroupStatus as bD, type OrderHistory as bE, type OrderLineState as bF, type OrderLineStatus as bG, type OrderPaymentEvent as bH, OrderQueries as bI, type OrderSplitDetail as bJ, type OrderStatus as bK, type OrderType as bL, type OtpResult as bM, PAYMENT_METHOD as bN, PAYMENT_MUTATION as bO, PAYMENT_STATE as bP, PICKUP_TIME_TYPE as bQ, type ParentToIframeMessage as bR, type PaymentMethodInfo as bS, type PaymentState as bT, type PickupTime as bU, type PickupTimeType as bV, type PlaceDetailsResponse as bW, PlacesService as bX, type PriceQuote as bY, type PricingOverrides as bZ, type ProcessAndResolveOptions as b_, type LinkStatusResult as ba, type LiteBootstrap as bb, LiteService as bc, type Location as bd, type LocationBooking as be, type LocationTaxBehavior as bf, type LocationTaxOverrides as bg, type LocationTimeProfile as bh, type LocationWithDetails as bi, MESSAGE_TYPES as bj, MOBILE_MONEY_PROVIDER as bk, type MobileMoneyData as bl, type MobileMoneyDetails as bm, type MobileMoneyProvider as bn, type NextAction as bo, ORDER_MUTATION as bp, ORDER_TYPE as bq, type ObservabilityHooks as br, type Ok as bs, type Order as bt, type OrderChannel as bu, type OrderFilter as bv, type OrderFulfillmentSummary as bw, type OrderGroup as bx, type OrderGroupDetails as by, type OrderGroupPayment as bz, type ActivityRecommendation as c, type TimeSlot as c$, type ProcessCheckoutResult as c0, type ProviderResolutionSource as c1, type QuoteBundleSelectionInput as c2, type QuoteCompositeSelectionInput as c3, type QuoteDynamicBuckets as c4, type QuoteStatus as c5, type QuoteUiMessage as c6, type ReadRequestOptions as c7, type RefreshQuoteInput as c8, type RefreshQuoteResult as c9, SchedulingService as cA, type SenderType as cB, type Service as cC, type ServiceAvailabilityParams as cD, type ServiceAvailabilityResult as cE, type ServiceCharge as cF, type ServiceNotes as cG, type ServiceScheduleRequest as cH, type ServiceStatus as cI, type SessionActivityData as cJ, type SessionChangeEvent as cK, type SessionMessage as cL, type SlotResourceInfo as cM, type SlotStaffInfo as cN, type Staff as cO, type StaffAssignment as cP, type StaffRole as cQ, type StaffScheduleItem as cR, type StockLevel as cS, type StockStatus as cT, type StorefrontBootstrap as cU, SubscriptionService as cV, SupportService as cW, type Table as cX, type TableInfo as cY, type TimeRange as cZ, type TimeRanges as c_, type RefundOrderInput as ca, type RelatedCandidate as cb, type RelatedProduct as cc, type RelatedProductsEnrichment as cd, type RelationType as ce, type ReminderMethod as cf, type ReminderSettings as cg, type ReorderResult as ch, type RequestContext as ci, type RequestErrorEvent as cj, type RequestOptions as ck, type RequestOtpInput as cl, type RequestSource as cm, type RequestStartEvent as cn, type RequestSuccessEvent as co, type RescheduleBookingInput as cp, type RescheduleBookingResult as cq, type RescheduleHistoryRecord as cr, type ResourceAssignment as cs, type Result as ct, type RetryEvent as cu, type RevokeAllSessionsResult as cv, type RevokeSessionResult as cw, type Room as cx, type SchedulingMetadata as cy, type SchedulingResult as cz, type ActivityRecommendationsResponse as d, type TrackCategoryViewOptions as d0, type TrackProductViewOptions as d1, type UpdateAddressInput as d2, type UpdateOrderStatusInput as d3, type UpdateProfileInput as d4, type UploadInitResponse as d5, type UploadResult as d6, UploadService as d7, type VerifyOtpInput as d8, combine as d9, combineObject as da, createCimplifyClient as db, createElements as dc, err as dd, flatMap as de, fromPromise as df, getOrElse as dg, isErr as dh, isOk as di, mapError as dj, mapResult as dk, ok as dl, toNullable as dm, tryCatch as dn, unwrap as dp, 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 BusinessHours as x, type BusinessPreferences as y, BusinessService as z };
2492
+ export { type CheckoutCartData as $, AUTHORIZATION_TYPE as A, type Booking as B, type BusinessSettings as C, type BusinessType as D, type BusinessWithLocations as E, CHECKOUT_MODE as F, CHECKOUT_MUTATION as G, CHECKOUT_STEP as H, CONTACT_TYPE as I, type CacheOptions as J, type CancelBookingInput as K, type CancelBookingResult as L, type CancelOrderInput as M, type CancellationPolicy as N, CartOperations as O, CatalogueQueries as P, type CatalogueResult as Q, type CatalogueSnapshot as R, type CategoryInfo as S, type ChatAttachment as T, type ChatConversation as U, type ChatConversationResponse as V, type ChatMessage as W, type ChatWidgetStarter as X, type CheckSlotAvailabilityInput as Y, type CheckSlotAvailabilityResult as Z, type CheckoutAddressInfo as _, AUTH_MUTATION as a, type GetOrdersOptions as a$, type CheckoutCartItem as a0, type CheckoutCustomerInfo as a1, type CheckoutFormData as a2, type CheckoutInput as a3, type CheckoutMode as a4, type CheckoutOrderType as a5, type CheckoutPaymentMethod as a6, type CheckoutResult as a7, CheckoutService as a8, type CheckoutStatus as a9, type DismissMessageResponse as aA, ELEMENT_TYPES as aB, EVENT_TYPES as aC, type ElementAppearance as aD, type ElementEventHandler as aE, type ElementEventType as aF, type ElementOptions as aG, type ElementType as aH, type ElementsAuthOptions as aI, type ElementsCheckoutData as aJ, type ElementsCheckoutResult as aK, type ElementsCustomerInfo as aL, type ElementsOptions as aM, type EnrollAndLinkOrderInput as aN, type EnrollAndLinkOrderResult as aO, type EnrollmentData as aP, type Err as aQ, type FeeBearerType as aR, type FetchQuoteInput as aS, type FulfillmentLink as aT, type FulfillmentStatus as aU, type FulfillmentType as aV, type FxQuote as aW, type FxQuoteRequest as aX, type FxRateResponse as aY, FxService as aZ, type GetAvailableSlotsInput as a_, type CheckoutStatusContext as aa, type CheckoutStep as ab, CimplifyClient as ac, type CimplifyConfig as ad, CimplifyElement as ae, CimplifyElements as af, type ContactType as ag, type ContentType as ah, type CreateAddressInput as ai, type CreateMobileMoneyInput as aj, type Customer as ak, type CustomerAddress as al, type CustomerBooking as am, type CustomerBookingServiceItem as an, type CustomerLinkPreferences as ao, type CustomerMobileMoney as ap, type CustomerServicePreferences as aq, DEFAULT_COUNTRY as ar, DEFAULT_CURRENCY as as, DEVICE_TYPE as at, type DayAvailability as au, type DeliveryFeeDetails as av, type DeliveryFeeResponse as aw, DeliveryService as ax, type DepositResult as ay, type DeviceType as az, type AbortablePromise as b, type ProcessAndResolveOptions as b$, type GetProductsOptions as b0, type IframeToParentMessage as b1, InventoryService as b2, LINK_MUTATION as b3, LINK_QUERY as b4, type LineItem as b5, type LineType as b6, type LinkData as b7, type LinkEnrollResult as b8, LinkService as b9, type OrderGroupPayment as bA, type OrderGroupPaymentState as bB, type OrderGroupPaymentStatus as bC, type OrderGroupPaymentSummary as bD, type OrderGroupStatus as bE, type OrderHistory as bF, type OrderLineState as bG, type OrderLineStatus as bH, type OrderPaymentEvent as bI, OrderQueries as bJ, type OrderSplitDetail as bK, type OrderStatus as bL, type OrderType as bM, type OtpResult as bN, PAYMENT_METHOD as bO, PAYMENT_MUTATION as bP, PAYMENT_STATE as bQ, PICKUP_TIME_TYPE as bR, type ParentToIframeMessage as bS, type PaymentMethodInfo as bT, type PaymentState as bU, type PickupTime as bV, type PickupTimeType as bW, type PlaceDetailsResponse as bX, PlacesService as bY, type PriceQuote as bZ, type PricingOverrides as b_, type LinkSession as ba, type LinkStatusResult as bb, type LiteBootstrap as bc, LiteService as bd, type Location as be, type LocationBooking as bf, type LocationTaxBehavior as bg, type LocationTaxOverrides as bh, type LocationTimeProfile as bi, type LocationWithDetails as bj, MESSAGE_TYPES as bk, MOBILE_MONEY_PROVIDER as bl, type MobileMoneyData as bm, type MobileMoneyDetails as bn, type MobileMoneyProvider as bo, type NextAction as bp, ORDER_MUTATION as bq, ORDER_TYPE as br, type ObservabilityHooks as bs, type Ok as bt, type Order as bu, type OrderChannel as bv, type OrderFilter as bw, type OrderFulfillmentSummary as bx, type OrderGroup as by, type OrderGroupDetails as bz, type ActivityRecommendation as c, type TimeRanges as c$, type ProcessCheckoutOptions as c0, type ProcessCheckoutResult as c1, type ProviderResolutionSource as c2, type QuoteBundleSelectionInput as c3, type QuoteCompositeSelectionInput as c4, type QuoteDynamicBuckets as c5, type QuoteStatus as c6, type QuoteUiMessage as c7, type ReadRequestOptions as c8, type RefreshQuoteInput as c9, type SchedulingResult as cA, SchedulingService as cB, type SenderType as cC, type Service as cD, type ServiceAvailabilityParams as cE, type ServiceAvailabilityResult as cF, type ServiceCharge as cG, type ServiceNotes as cH, type ServiceScheduleRequest as cI, type ServiceStatus as cJ, type SessionActivityData as cK, type SessionChangeEvent as cL, type SessionMessage as cM, type SlotResourceInfo as cN, type SlotStaffInfo as cO, type Staff as cP, type StaffAssignment as cQ, type StaffRole as cR, type StaffScheduleItem as cS, type StockLevel as cT, type StockStatus as cU, type StorefrontBootstrap as cV, SubscriptionService as cW, SupportService as cX, type Table as cY, type TableInfo as cZ, type TimeRange as c_, type RefreshQuoteResult as ca, type RefundOrderInput as cb, type RelatedCandidate as cc, type RelatedProduct as cd, type RelatedProductsEnrichment as ce, type RelationType as cf, type ReminderMethod as cg, type ReminderSettings as ch, type ReorderResult as ci, type RequestContext as cj, type RequestErrorEvent as ck, type RequestOptions as cl, type RequestOtpInput as cm, type RequestSource as cn, type RequestStartEvent as co, type RequestSuccessEvent as cp, type RescheduleBookingInput as cq, type RescheduleBookingResult as cr, type RescheduleHistoryRecord as cs, type ResourceAssignment as ct, type Result as cu, type RetryEvent as cv, type RevokeAllSessionsResult as cw, type RevokeSessionResult as cx, type Room as cy, type SchedulingMetadata as cz, type ActivityRecommendationsResponse as d, type TimeSlot as d0, type TrackCategoryViewOptions as d1, type TrackProductViewOptions as d2, type UpdateAddressInput as d3, type UpdateOrderStatusInput as d4, type UpdateProfileInput as d5, type UploadInitResponse as d6, type UploadResult as d7, UploadService as d8, type VerifyOtpInput as d9, combine as da, combineObject as db, createCimplifyClient as dc, createElements as dd, err as de, flatMap as df, fromPromise as dg, getOrElse as dh, isErr as di, isOk as dj, mapError as dk, mapResult as dl, ok as dm, toNullable as dn, tryCatch as dp, unwrap as dq, 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 BusinessHours as x, type BusinessPreferences as y, BusinessService as z };
@@ -1,4 +1,4 @@
1
- import { ac as CimplifyClient } from './client-Bo5rujc2.js';
1
+ import { ac as CimplifyClient } from './client-DVFQoDtI.js';
2
2
  import { A as AppHandle, C as CreateAppOptions } from './server-BQzz921M.js';
3
3
 
4
4
  /**