@cimplify/sdk 0.51.1 → 0.52.1

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 (51) hide show
  1. package/dist/advanced.d.mts +1 -1
  2. package/dist/advanced.d.ts +1 -1
  3. package/dist/advanced.js +23 -22
  4. package/dist/advanced.mjs +4 -3
  5. package/dist/chunk-3G6RQLXK.mjs +21 -0
  6. package/dist/{chunk-GUZXQSGI.mjs → chunk-4QDCMYYB.mjs} +10 -21
  7. package/dist/{chunk-CAG3TEXO.js → chunk-7A3D3LFI.js} +4 -4
  8. package/dist/{chunk-6RP6OPYO.js → chunk-7Y2O3E4D.js} +3 -3
  9. package/dist/{chunk-Z2AYLZDF.mjs → chunk-AMZXALF6.mjs} +1 -21
  10. package/dist/{chunk-VOWMB2KR.js → chunk-EQLT46ZR.js} +75 -78
  11. package/dist/{chunk-FXACV333.mjs → chunk-GLAVTDDE.mjs} +55 -58
  12. package/dist/chunk-OWW5GUSB.js +28 -0
  13. package/dist/{chunk-GEWFWQYK.js → chunk-Q5VGDCQF.js} +235 -234
  14. package/dist/{chunk-632JEJUS.mjs → chunk-R3F55BRN.mjs} +2 -1
  15. package/dist/{chunk-QCS6D4XW.mjs → chunk-RDORJT7Y.mjs} +2 -2
  16. package/dist/{chunk-XY2DFX5K.mjs → chunk-TD3AY34U.mjs} +1 -1
  17. package/dist/{chunk-FJQC4VSN.js → chunk-W6CCBNGL.js} +68 -79
  18. package/dist/{chunk-TKOTACKZ.js → chunk-XA3ZNR75.js} +0 -26
  19. package/dist/{client-CF2pmEE9.d.mts → client-C6J_RGlr.d.mts} +27 -45
  20. package/dist/{client-B6x53-Al.d.ts → client-CX7IFIkL.d.ts} +27 -45
  21. package/dist/{client-BbrCopIS.d.mts → client-DdefKjcs.d.mts} +1 -1
  22. package/dist/{client-BvEjhvwq.d.ts → client-Lt7uGLmT.d.ts} +1 -1
  23. package/dist/index.d.mts +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.js +110 -109
  26. package/dist/index.mjs +5 -4
  27. package/dist/react.d.mts +1 -1
  28. package/dist/react.d.ts +1 -1
  29. package/dist/react.js +86 -85
  30. package/dist/react.mjs +5 -4
  31. package/dist/server/evict.d.mts +31 -0
  32. package/dist/server/evict.d.ts +31 -0
  33. package/dist/server/evict.js +75 -0
  34. package/dist/server/evict.mjs +73 -0
  35. package/dist/server.d.mts +11 -48
  36. package/dist/server.d.ts +11 -48
  37. package/dist/server.js +7 -76
  38. package/dist/server.mjs +6 -74
  39. package/dist/testing/msw.js +4 -3
  40. package/dist/testing/msw.mjs +3 -2
  41. package/dist/testing/suite.d.mts +2 -2
  42. package/dist/testing/suite.d.ts +2 -2
  43. package/dist/testing/suite.js +26 -25
  44. package/dist/testing/suite.mjs +7 -6
  45. package/dist/testing.d.mts +2 -2
  46. package/dist/testing.d.ts +2 -2
  47. package/dist/testing.js +82 -81
  48. package/dist/testing.mjs +8 -7
  49. package/dist/utils.js +30 -29
  50. package/dist/utils.mjs +3 -2
  51. package/package.json +7 -1
@@ -1,4 +1,5 @@
1
- import { __publicField, __privateAdd, __privateSet, __privateGet, __privateMethod, ErrorCode, __privateWrapper } from './chunk-Z2AYLZDF.mjs';
1
+ import { ErrorCode } from './chunk-AMZXALF6.mjs';
2
+ import { __publicField, __privateAdd, __privateSet, __privateGet, __privateMethod, __privateWrapper } from './chunk-3G6RQLXK.mjs';
2
3
 
3
4
  // ../node_modules/.bun/hono@4.12.16/node_modules/hono/dist/compose.js
4
5
  var compose = (middleware, onError, onNotFound) => {
@@ -1,5 +1,5 @@
1
- import { createCimplifyClient } from './chunk-GUZXQSGI.mjs';
2
- import { createMockApp } from './chunk-632JEJUS.mjs';
1
+ import { createMockApp } from './chunk-R3F55BRN.mjs';
2
+ import { createCimplifyClient } from './chunk-4QDCMYYB.mjs';
3
3
  import { z } from 'zod';
4
4
 
5
5
  var cimplifyRegistry = z.registry();
@@ -1,4 +1,4 @@
1
- import { moneyFromNumber, money } from './chunk-Z2AYLZDF.mjs';
1
+ import { moneyFromNumber, money } from './chunk-AMZXALF6.mjs';
2
2
 
3
3
  // src/utils/price.ts
4
4
  var CURRENCY_SYMBOLS = {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkVOWMB2KR_js = require('./chunk-VOWMB2KR.js');
4
- var chunkTKOTACKZ_js = require('./chunk-TKOTACKZ.js');
3
+ var chunkEQLT46ZR_js = require('./chunk-EQLT46ZR.js');
4
+ var chunkXA3ZNR75_js = require('./chunk-XA3ZNR75.js');
5
5
 
6
6
  // src/activity.ts
7
7
  var ActivityService = class {
@@ -29,7 +29,7 @@ var ActivityService = class {
29
29
  this.sendEvents([event]);
30
30
  }
31
31
  async getState() {
32
- return chunkVOWMB2KR_js.safe(this.client.get("/api/v1/activity/state"));
32
+ return chunkEQLT46ZR_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 chunkVOWMB2KR_js.safe(this.client.get(path));
40
+ return chunkEQLT46ZR_js.safe(this.client.get(path));
41
41
  }
42
42
  async dismissMessage(code) {
43
- return chunkVOWMB2KR_js.safe(
43
+ return chunkEQLT46ZR_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 chunkVOWMB2KR_js.safe(this.client.get("/api/v1/subscriptions"));
65
+ return chunkEQLT46ZR_js.safe(this.client.get("/api/v1/subscriptions"));
66
66
  }
67
67
  async get(id) {
68
68
  const encodedId = encodeURIComponent(id);
69
- return chunkVOWMB2KR_js.safe(this.client.get(`/api/v1/subscriptions/${encodedId}`));
69
+ return chunkEQLT46ZR_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 ?? chunkVOWMB2KR_js.generateIdempotencyKey();
74
- return chunkVOWMB2KR_js.safe(
73
+ const idempotencyKey = opts?.idempotencyKey ?? chunkEQLT46ZR_js.generateIdempotencyKey();
74
+ return chunkEQLT46ZR_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 chunkVOWMB2KR_js.safe(
84
+ return chunkEQLT46ZR_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 chunkVOWMB2KR_js.safe(
90
+ return chunkEQLT46ZR_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 ?? chunkVOWMB2KR_js.generateIdempotencyKey();
97
- return chunkVOWMB2KR_js.safe(
96
+ const idempotencyKey = opts?.idempotencyKey ?? chunkEQLT46ZR_js.generateIdempotencyKey();
97
+ return chunkEQLT46ZR_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 ?? chunkVOWMB2KR_js.generateIdempotencyKey();
114
- return chunkVOWMB2KR_js.safe(
113
+ const idempotencyKey = opts?.idempotencyKey ?? chunkEQLT46ZR_js.generateIdempotencyKey();
114
+ return chunkEQLT46ZR_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 chunkVOWMB2KR_js.safe(
127
+ return chunkEQLT46ZR_js.safe(
128
128
  this.client.post("/api/v1/uploads/confirm", {
129
129
  upload_id: uploadId
130
130
  })
@@ -143,7 +143,7 @@ var UploadService = class {
143
143
  if (!uploadResponse.ok) {
144
144
  return {
145
145
  ok: false,
146
- error: new chunkTKOTACKZ_js.CimplifyError(
146
+ error: new chunkXA3ZNR75_js.CimplifyError(
147
147
  "UPLOAD_FAILED",
148
148
  `Upload failed with status ${uploadResponse.status}`,
149
149
  true
@@ -153,7 +153,7 @@ var UploadService = class {
153
153
  } catch (error) {
154
154
  return {
155
155
  ok: false,
156
- error: new chunkTKOTACKZ_js.CimplifyError(
156
+ error: new chunkXA3ZNR75_js.CimplifyError(
157
157
  "UPLOAD_FAILED",
158
158
  error instanceof Error ? error.message : "Upload failed",
159
159
  true
@@ -170,7 +170,7 @@ var PlacesService = class {
170
170
  this.client = client;
171
171
  }
172
172
  async autocomplete(input, sessionToken) {
173
- return chunkVOWMB2KR_js.safe(
173
+ return chunkEQLT46ZR_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 chunkVOWMB2KR_js.safe(
181
+ return chunkEQLT46ZR_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 chunkVOWMB2KR_js.safe(
200
+ return chunkEQLT46ZR_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 ?? chunkVOWMB2KR_js.generateIdempotencyKey();
214
- return chunkVOWMB2KR_js.safe(
213
+ const idempotencyKey = opts?.idempotencyKey ?? chunkEQLT46ZR_js.generateIdempotencyKey();
214
+ return chunkEQLT46ZR_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 ?? chunkVOWMB2KR_js.generateIdempotencyKey();
223
- return chunkVOWMB2KR_js.safe(
222
+ const idempotencyKey = opts?.idempotencyKey ?? chunkEQLT46ZR_js.generateIdempotencyKey();
223
+ return chunkEQLT46ZR_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 chunkVOWMB2KR_js.safe(this.client.get(path));
238
+ return chunkEQLT46ZR_js.safe(this.client.get(path));
239
239
  }
240
240
  };
241
241
 
@@ -284,14 +284,6 @@ var DEFAULT_RETRY_DELAY_MS = 1e3;
284
284
  function sleep(ms) {
285
285
  return new Promise((resolve) => setTimeout(resolve, ms));
286
286
  }
287
- function nextInit(cacheOptions) {
288
- if (!cacheOptions) return {};
289
- const next = {};
290
- if (cacheOptions.revalidate !== void 0) next.revalidate = cacheOptions.revalidate;
291
- if (cacheOptions.tags && cacheOptions.tags.length > 0) next.tags = [...cacheOptions.tags];
292
- if (next.revalidate === void 0 && !next.tags) return {};
293
- return { next };
294
- }
295
287
  function mergeOptionHeaders(base, opts) {
296
288
  if (!opts) return base;
297
289
  const merged = { ...base };
@@ -312,16 +304,16 @@ function isRetryable(error) {
312
304
  if (error instanceof DOMException && error.name === "AbortError") {
313
305
  return true;
314
306
  }
315
- if (error instanceof chunkTKOTACKZ_js.CimplifyError) {
307
+ if (error instanceof chunkXA3ZNR75_js.CimplifyError) {
316
308
  return error.retryable;
317
309
  }
318
310
  return false;
319
311
  }
320
312
  function toNetworkError(error, isTestMode) {
321
313
  if (error instanceof DOMException && error.name === "AbortError") {
322
- return chunkTKOTACKZ_js.enrichError(
323
- new chunkTKOTACKZ_js.CimplifyError(
324
- chunkTKOTACKZ_js.ErrorCode.TIMEOUT,
314
+ return chunkXA3ZNR75_js.enrichError(
315
+ new chunkXA3ZNR75_js.CimplifyError(
316
+ chunkXA3ZNR75_js.ErrorCode.TIMEOUT,
325
317
  "Request timed out. Please check your connection and try again.",
326
318
  true
327
319
  ),
@@ -329,21 +321,21 @@ function toNetworkError(error, isTestMode) {
329
321
  );
330
322
  }
331
323
  if (error instanceof TypeError && error.message.includes("fetch")) {
332
- return chunkTKOTACKZ_js.enrichError(
333
- new chunkTKOTACKZ_js.CimplifyError(
334
- chunkTKOTACKZ_js.ErrorCode.NETWORK_ERROR,
324
+ return chunkXA3ZNR75_js.enrichError(
325
+ new chunkXA3ZNR75_js.CimplifyError(
326
+ chunkXA3ZNR75_js.ErrorCode.NETWORK_ERROR,
335
327
  "Network error. Please check your internet connection.",
336
328
  true
337
329
  ),
338
330
  { isTestMode }
339
331
  );
340
332
  }
341
- if (error instanceof chunkTKOTACKZ_js.CimplifyError) {
342
- return chunkTKOTACKZ_js.enrichError(error, { isTestMode });
333
+ if (error instanceof chunkXA3ZNR75_js.CimplifyError) {
334
+ return chunkXA3ZNR75_js.enrichError(error, { isTestMode });
343
335
  }
344
- return chunkTKOTACKZ_js.enrichError(
345
- new chunkTKOTACKZ_js.CimplifyError(
346
- chunkTKOTACKZ_js.ErrorCode.UNKNOWN_ERROR,
336
+ return chunkXA3ZNR75_js.enrichError(
337
+ new chunkXA3ZNR75_js.CimplifyError(
338
+ chunkXA3ZNR75_js.ErrorCode.UNKNOWN_ERROR,
347
339
  error instanceof Error ? error.message : "An unknown error occurred",
348
340
  false
349
341
  ),
@@ -518,8 +510,8 @@ var CimplifyClient = class {
518
510
  this.businessIdResolvePromise = (async () => {
519
511
  const result = await this.business.getInfo();
520
512
  if (!result.ok || !result.value?.id) {
521
- throw new chunkTKOTACKZ_js.CimplifyError(
522
- chunkTKOTACKZ_js.ErrorCode.NOT_FOUND,
513
+ throw new chunkXA3ZNR75_js.CimplifyError(
514
+ chunkXA3ZNR75_js.ErrorCode.NOT_FOUND,
523
515
  "Unable to resolve business ID from the current public key.",
524
516
  true
525
517
  );
@@ -636,7 +628,7 @@ var CimplifyClient = class {
636
628
  if (response.status >= 400 && response.status < 500) {
637
629
  this.hooks.onRequestError?.({
638
630
  ...context,
639
- error: new chunkTKOTACKZ_js.CimplifyError(
631
+ error: new chunkXA3ZNR75_js.CimplifyError(
640
632
  `HTTP_${response.status}`,
641
633
  `Request failed with status ${response.status}`,
642
634
  false
@@ -662,7 +654,7 @@ var CimplifyClient = class {
662
654
  }
663
655
  this.hooks.onRequestError?.({
664
656
  ...context,
665
- error: new chunkTKOTACKZ_js.CimplifyError(
657
+ error: new chunkXA3ZNR75_js.CimplifyError(
666
658
  "SERVER_ERROR",
667
659
  `Server error ${response.status} after ${retryCount} retries`,
668
660
  false
@@ -708,9 +700,8 @@ var CimplifyClient = class {
708
700
  });
709
701
  throw finalError;
710
702
  }
711
- getDedupeKey(type, payload, cacheOptions) {
712
- const cacheKey = cacheOptions ? `|${JSON.stringify(cacheOptions)}` : "";
713
- return `${type}:${JSON.stringify(payload)}${cacheKey}`;
703
+ getDedupeKey(type, payload) {
704
+ return `${type}:${JSON.stringify(payload)}`;
714
705
  }
715
706
  async deduplicatedRequest(key, requestFn) {
716
707
  const existing = this.inflightRequests.get(key);
@@ -723,14 +714,13 @@ var CimplifyClient = class {
723
714
  this.inflightRequests.set(key, request);
724
715
  return request;
725
716
  }
726
- async get(path, opts) {
727
- const key = this.getDedupeKey("get", path, opts?.cacheOptions);
717
+ async get(path) {
718
+ const key = this.getDedupeKey("get", path);
728
719
  return this.deduplicatedRequest(key, async () => {
729
720
  const response = await this.resilientFetch(this.buildUrl(this.baseUrl, path), {
730
721
  method: "GET",
731
722
  credentials: this.credentials,
732
- headers: this.getHeaders(),
733
- ...nextInit(opts?.cacheOptions)
723
+ headers: this.getHeaders()
734
724
  });
735
725
  return this.handleRestResponse(response);
736
726
  });
@@ -761,14 +751,13 @@ var CimplifyClient = class {
761
751
  });
762
752
  return this.handleRestResponse(response);
763
753
  }
764
- async linkGet(path, opts) {
765
- const key = this.getDedupeKey("linkGet", path, opts?.cacheOptions);
754
+ async linkGet(path) {
755
+ const key = this.getDedupeKey("linkGet", path);
766
756
  return this.deduplicatedRequest(key, async () => {
767
757
  const response = await this.resilientFetch(`${this.linkApiUrl}${path}`, {
768
758
  method: "GET",
769
759
  credentials: this.credentials,
770
- headers: this.getHeaders(),
771
- ...nextInit(opts?.cacheOptions)
760
+ headers: this.getHeaders()
772
761
  });
773
762
  return this.handleRestResponse(response);
774
763
  });
@@ -798,17 +787,17 @@ var CimplifyClient = class {
798
787
  const retryable = typeof json.error === "object" && typeof json.error?.retryable === "boolean" ? json.error.retryable : false;
799
788
  if (errorCode === "IDEMPOTENCY_MISMATCH") {
800
789
  const originalCreatedAt = typeof json.error === "object" && json.error?.original_created_at || "";
801
- throw new chunkTKOTACKZ_js.IdempotencyMismatchError(errorMessage, originalCreatedAt);
790
+ throw new chunkXA3ZNR75_js.IdempotencyMismatchError(errorMessage, originalCreatedAt);
802
791
  }
803
- const error = chunkTKOTACKZ_js.enrichError(
804
- new chunkTKOTACKZ_js.CimplifyError(
792
+ const error = chunkXA3ZNR75_js.enrichError(
793
+ new chunkXA3ZNR75_js.CimplifyError(
805
794
  errorCode,
806
795
  errorMessage,
807
796
  retryable
808
797
  ),
809
798
  { isTestMode: this.isTestMode() }
810
799
  );
811
- if ((response.status === 401 || error.code === chunkTKOTACKZ_js.ErrorCode.UNAUTHORIZED) && this.accessToken) {
800
+ if ((response.status === 401 || error.code === chunkXA3ZNR75_js.ErrorCode.UNAUTHORIZED) && this.accessToken) {
812
801
  console.warn(
813
802
  "[Cimplify] Received 401 Unauthorized. Access token may be missing/expired. Refresh authentication and retry the request."
814
803
  );
@@ -816,8 +805,8 @@ var CimplifyClient = class {
816
805
  throw error;
817
806
  }
818
807
  if (json?.success === false || json?.error?.code || json?.error?.message) {
819
- const error = chunkTKOTACKZ_js.enrichError(
820
- new chunkTKOTACKZ_js.CimplifyError(
808
+ const error = chunkXA3ZNR75_js.enrichError(
809
+ new chunkXA3ZNR75_js.CimplifyError(
821
810
  json.error?.code || "API_ERROR",
822
811
  json.error?.message || "An error occurred",
823
812
  json.error?.retryable || false
@@ -833,25 +822,25 @@ var CimplifyClient = class {
833
822
  }
834
823
  get catalogue() {
835
824
  if (!this._catalogue) {
836
- this._catalogue = new chunkVOWMB2KR_js.CatalogueQueries(this);
825
+ this._catalogue = new chunkEQLT46ZR_js.CatalogueQueries(this);
837
826
  }
838
827
  return this._catalogue;
839
828
  }
840
829
  get cart() {
841
830
  if (!this._cart) {
842
- this._cart = new chunkVOWMB2KR_js.CartOperations(this);
831
+ this._cart = new chunkEQLT46ZR_js.CartOperations(this);
843
832
  }
844
833
  return this._cart;
845
834
  }
846
835
  get checkout() {
847
836
  if (!this._checkout) {
848
- this._checkout = new chunkVOWMB2KR_js.CheckoutService(this);
837
+ this._checkout = new chunkEQLT46ZR_js.CheckoutService(this);
849
838
  }
850
839
  return this._checkout;
851
840
  }
852
841
  get orders() {
853
842
  if (!this._orders) {
854
- this._orders = new chunkVOWMB2KR_js.OrderQueries(this);
843
+ this._orders = new chunkEQLT46ZR_js.OrderQueries(this);
855
844
  }
856
845
  return this._orders;
857
846
  }
@@ -875,43 +864,43 @@ var CimplifyClient = class {
875
864
  }
876
865
  get link() {
877
866
  if (!this._link) {
878
- this._link = new chunkVOWMB2KR_js.LinkService(this);
867
+ this._link = new chunkEQLT46ZR_js.LinkService(this);
879
868
  }
880
869
  return this._link;
881
870
  }
882
871
  get auth() {
883
872
  if (!this._auth) {
884
- this._auth = new chunkVOWMB2KR_js.AuthService(this);
873
+ this._auth = new chunkEQLT46ZR_js.AuthService(this);
885
874
  }
886
875
  return this._auth;
887
876
  }
888
877
  get business() {
889
878
  if (!this._business) {
890
- this._business = new chunkVOWMB2KR_js.BusinessService(this);
879
+ this._business = new chunkEQLT46ZR_js.BusinessService(this);
891
880
  }
892
881
  return this._business;
893
882
  }
894
883
  get inventory() {
895
884
  if (!this._inventory) {
896
- this._inventory = new chunkVOWMB2KR_js.InventoryService(this);
885
+ this._inventory = new chunkEQLT46ZR_js.InventoryService(this);
897
886
  }
898
887
  return this._inventory;
899
888
  }
900
889
  get scheduling() {
901
890
  if (!this._scheduling) {
902
- this._scheduling = new chunkVOWMB2KR_js.SchedulingService(this);
891
+ this._scheduling = new chunkEQLT46ZR_js.SchedulingService(this);
903
892
  }
904
893
  return this._scheduling;
905
894
  }
906
895
  get lite() {
907
896
  if (!this._lite) {
908
- this._lite = new chunkVOWMB2KR_js.LiteService(this);
897
+ this._lite = new chunkEQLT46ZR_js.LiteService(this);
909
898
  }
910
899
  return this._lite;
911
900
  }
912
901
  get fx() {
913
902
  if (!this._fx) {
914
- this._fx = new chunkVOWMB2KR_js.FxService(this);
903
+ this._fx = new chunkEQLT46ZR_js.FxService(this);
915
904
  }
916
905
  return this._fx;
917
906
  }
@@ -946,7 +935,7 @@ var CimplifyClient = class {
946
935
  if (businessId) {
947
936
  this.setBusinessId(businessId);
948
937
  }
949
- return chunkVOWMB2KR_js.createElements(this, businessId ?? this.businessId ?? void 0, options);
938
+ return chunkEQLT46ZR_js.createElements(this, businessId ?? this.businessId ?? void 0, options);
950
939
  }
951
940
  };
952
941
  function createCimplifyClient(config = {}) {
@@ -1,25 +1,5 @@
1
1
  'use strict';
2
2
 
3
- var __defProp = Object.defineProperty;
4
- var __typeError = (msg) => {
5
- throw TypeError(msg);
6
- };
7
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
9
- var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
10
- var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
11
- var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
12
- var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
13
- var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
14
- var __privateWrapper = (obj, member, setter, getter) => ({
15
- set _(value) {
16
- __privateSet(obj, member, value, setter);
17
- },
18
- get _() {
19
- return __privateGet(obj, member, getter);
20
- }
21
- });
22
-
23
3
  // src/types/common.ts
24
4
  function money(value) {
25
5
  return typeof value === "string" ? parseFloat(value) || 0 : value;
@@ -274,12 +254,6 @@ exports.ERROR_HINTS = ERROR_HINTS;
274
254
  exports.ErrorCode = ErrorCode;
275
255
  exports.IdempotencyMismatchError = IdempotencyMismatchError;
276
256
  exports.ZERO = ZERO;
277
- exports.__privateAdd = __privateAdd;
278
- exports.__privateGet = __privateGet;
279
- exports.__privateMethod = __privateMethod;
280
- exports.__privateSet = __privateSet;
281
- exports.__privateWrapper = __privateWrapper;
282
- exports.__publicField = __publicField;
283
257
  exports.currencyCode = currencyCode;
284
258
  exports.enrichError = enrichError;
285
259
  exports.getErrorHint = getErrorHint;