@cimplify/sdk 0.52.0 → 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 (37) hide show
  1. package/dist/advanced.js +23 -22
  2. package/dist/advanced.mjs +4 -3
  3. package/dist/chunk-3G6RQLXK.mjs +21 -0
  4. package/dist/{chunk-MBR2DBEN.mjs → chunk-4QDCMYYB.mjs} +2 -2
  5. package/dist/{chunk-D22UVSFN.js → chunk-7A3D3LFI.js} +4 -4
  6. package/dist/{chunk-6RP6OPYO.js → chunk-7Y2O3E4D.js} +3 -3
  7. package/dist/{chunk-Z2AYLZDF.mjs → chunk-AMZXALF6.mjs} +1 -21
  8. package/dist/{chunk-DR4UPU6P.js → chunk-EQLT46ZR.js} +22 -22
  9. package/dist/{chunk-OFNVLUH4.mjs → chunk-GLAVTDDE.mjs} +2 -2
  10. package/dist/chunk-OWW5GUSB.js +28 -0
  11. package/dist/{chunk-GEWFWQYK.js → chunk-Q5VGDCQF.js} +235 -234
  12. package/dist/{chunk-632JEJUS.mjs → chunk-R3F55BRN.mjs} +2 -1
  13. package/dist/{chunk-24FK7VFL.mjs → chunk-RDORJT7Y.mjs} +2 -2
  14. package/dist/{chunk-XY2DFX5K.mjs → chunk-TD3AY34U.mjs} +1 -1
  15. package/dist/{chunk-CYGLTD7D.js → chunk-W6CCBNGL.js} +60 -60
  16. package/dist/{chunk-TKOTACKZ.js → chunk-XA3ZNR75.js} +0 -26
  17. package/dist/index.js +110 -109
  18. package/dist/index.mjs +5 -4
  19. package/dist/react.js +86 -85
  20. package/dist/react.mjs +5 -4
  21. package/dist/server/evict.d.mts +31 -0
  22. package/dist/server/evict.d.ts +31 -0
  23. package/dist/server/evict.js +75 -0
  24. package/dist/server/evict.mjs +73 -0
  25. package/dist/server.d.mts +1 -30
  26. package/dist/server.d.ts +1 -30
  27. package/dist/server.js +7 -76
  28. package/dist/server.mjs +6 -74
  29. package/dist/testing/msw.js +4 -3
  30. package/dist/testing/msw.mjs +3 -2
  31. package/dist/testing/suite.js +26 -25
  32. package/dist/testing/suite.mjs +7 -6
  33. package/dist/testing.js +82 -81
  34. package/dist/testing.mjs +8 -7
  35. package/dist/utils.js +30 -29
  36. package/dist/utils.mjs +3 -2
  37. 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-MBR2DBEN.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 chunkDR4UPU6P_js = require('./chunk-DR4UPU6P.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 chunkDR4UPU6P_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 chunkDR4UPU6P_js.safe(this.client.get(path));
40
+ return chunkEQLT46ZR_js.safe(this.client.get(path));
41
41
  }
42
42
  async dismissMessage(code) {
43
- return chunkDR4UPU6P_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 chunkDR4UPU6P_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 chunkDR4UPU6P_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 ?? chunkDR4UPU6P_js.generateIdempotencyKey();
74
- return chunkDR4UPU6P_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 chunkDR4UPU6P_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 chunkDR4UPU6P_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 ?? chunkDR4UPU6P_js.generateIdempotencyKey();
97
- return chunkDR4UPU6P_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 ?? chunkDR4UPU6P_js.generateIdempotencyKey();
114
- return chunkDR4UPU6P_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 chunkDR4UPU6P_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 chunkDR4UPU6P_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 chunkDR4UPU6P_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 chunkDR4UPU6P_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 ?? chunkDR4UPU6P_js.generateIdempotencyKey();
214
- return chunkDR4UPU6P_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 ?? chunkDR4UPU6P_js.generateIdempotencyKey();
223
- return chunkDR4UPU6P_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 chunkDR4UPU6P_js.safe(this.client.get(path));
238
+ return chunkEQLT46ZR_js.safe(this.client.get(path));
239
239
  }
240
240
  };
241
241
 
@@ -304,16 +304,16 @@ function isRetryable(error) {
304
304
  if (error instanceof DOMException && error.name === "AbortError") {
305
305
  return true;
306
306
  }
307
- if (error instanceof chunkTKOTACKZ_js.CimplifyError) {
307
+ if (error instanceof chunkXA3ZNR75_js.CimplifyError) {
308
308
  return error.retryable;
309
309
  }
310
310
  return false;
311
311
  }
312
312
  function toNetworkError(error, isTestMode) {
313
313
  if (error instanceof DOMException && error.name === "AbortError") {
314
- return chunkTKOTACKZ_js.enrichError(
315
- new chunkTKOTACKZ_js.CimplifyError(
316
- chunkTKOTACKZ_js.ErrorCode.TIMEOUT,
314
+ return chunkXA3ZNR75_js.enrichError(
315
+ new chunkXA3ZNR75_js.CimplifyError(
316
+ chunkXA3ZNR75_js.ErrorCode.TIMEOUT,
317
317
  "Request timed out. Please check your connection and try again.",
318
318
  true
319
319
  ),
@@ -321,21 +321,21 @@ function toNetworkError(error, isTestMode) {
321
321
  );
322
322
  }
323
323
  if (error instanceof TypeError && error.message.includes("fetch")) {
324
- return chunkTKOTACKZ_js.enrichError(
325
- new chunkTKOTACKZ_js.CimplifyError(
326
- chunkTKOTACKZ_js.ErrorCode.NETWORK_ERROR,
324
+ return chunkXA3ZNR75_js.enrichError(
325
+ new chunkXA3ZNR75_js.CimplifyError(
326
+ chunkXA3ZNR75_js.ErrorCode.NETWORK_ERROR,
327
327
  "Network error. Please check your internet connection.",
328
328
  true
329
329
  ),
330
330
  { isTestMode }
331
331
  );
332
332
  }
333
- if (error instanceof chunkTKOTACKZ_js.CimplifyError) {
334
- return chunkTKOTACKZ_js.enrichError(error, { isTestMode });
333
+ if (error instanceof chunkXA3ZNR75_js.CimplifyError) {
334
+ return chunkXA3ZNR75_js.enrichError(error, { isTestMode });
335
335
  }
336
- return chunkTKOTACKZ_js.enrichError(
337
- new chunkTKOTACKZ_js.CimplifyError(
338
- chunkTKOTACKZ_js.ErrorCode.UNKNOWN_ERROR,
336
+ return chunkXA3ZNR75_js.enrichError(
337
+ new chunkXA3ZNR75_js.CimplifyError(
338
+ chunkXA3ZNR75_js.ErrorCode.UNKNOWN_ERROR,
339
339
  error instanceof Error ? error.message : "An unknown error occurred",
340
340
  false
341
341
  ),
@@ -510,8 +510,8 @@ var CimplifyClient = class {
510
510
  this.businessIdResolvePromise = (async () => {
511
511
  const result = await this.business.getInfo();
512
512
  if (!result.ok || !result.value?.id) {
513
- throw new chunkTKOTACKZ_js.CimplifyError(
514
- chunkTKOTACKZ_js.ErrorCode.NOT_FOUND,
513
+ throw new chunkXA3ZNR75_js.CimplifyError(
514
+ chunkXA3ZNR75_js.ErrorCode.NOT_FOUND,
515
515
  "Unable to resolve business ID from the current public key.",
516
516
  true
517
517
  );
@@ -628,7 +628,7 @@ var CimplifyClient = class {
628
628
  if (response.status >= 400 && response.status < 500) {
629
629
  this.hooks.onRequestError?.({
630
630
  ...context,
631
- error: new chunkTKOTACKZ_js.CimplifyError(
631
+ error: new chunkXA3ZNR75_js.CimplifyError(
632
632
  `HTTP_${response.status}`,
633
633
  `Request failed with status ${response.status}`,
634
634
  false
@@ -654,7 +654,7 @@ var CimplifyClient = class {
654
654
  }
655
655
  this.hooks.onRequestError?.({
656
656
  ...context,
657
- error: new chunkTKOTACKZ_js.CimplifyError(
657
+ error: new chunkXA3ZNR75_js.CimplifyError(
658
658
  "SERVER_ERROR",
659
659
  `Server error ${response.status} after ${retryCount} retries`,
660
660
  false
@@ -787,17 +787,17 @@ var CimplifyClient = class {
787
787
  const retryable = typeof json.error === "object" && typeof json.error?.retryable === "boolean" ? json.error.retryable : false;
788
788
  if (errorCode === "IDEMPOTENCY_MISMATCH") {
789
789
  const originalCreatedAt = typeof json.error === "object" && json.error?.original_created_at || "";
790
- throw new chunkTKOTACKZ_js.IdempotencyMismatchError(errorMessage, originalCreatedAt);
790
+ throw new chunkXA3ZNR75_js.IdempotencyMismatchError(errorMessage, originalCreatedAt);
791
791
  }
792
- const error = chunkTKOTACKZ_js.enrichError(
793
- new chunkTKOTACKZ_js.CimplifyError(
792
+ const error = chunkXA3ZNR75_js.enrichError(
793
+ new chunkXA3ZNR75_js.CimplifyError(
794
794
  errorCode,
795
795
  errorMessage,
796
796
  retryable
797
797
  ),
798
798
  { isTestMode: this.isTestMode() }
799
799
  );
800
- 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) {
801
801
  console.warn(
802
802
  "[Cimplify] Received 401 Unauthorized. Access token may be missing/expired. Refresh authentication and retry the request."
803
803
  );
@@ -805,8 +805,8 @@ var CimplifyClient = class {
805
805
  throw error;
806
806
  }
807
807
  if (json?.success === false || json?.error?.code || json?.error?.message) {
808
- const error = chunkTKOTACKZ_js.enrichError(
809
- new chunkTKOTACKZ_js.CimplifyError(
808
+ const error = chunkXA3ZNR75_js.enrichError(
809
+ new chunkXA3ZNR75_js.CimplifyError(
810
810
  json.error?.code || "API_ERROR",
811
811
  json.error?.message || "An error occurred",
812
812
  json.error?.retryable || false
@@ -822,25 +822,25 @@ var CimplifyClient = class {
822
822
  }
823
823
  get catalogue() {
824
824
  if (!this._catalogue) {
825
- this._catalogue = new chunkDR4UPU6P_js.CatalogueQueries(this);
825
+ this._catalogue = new chunkEQLT46ZR_js.CatalogueQueries(this);
826
826
  }
827
827
  return this._catalogue;
828
828
  }
829
829
  get cart() {
830
830
  if (!this._cart) {
831
- this._cart = new chunkDR4UPU6P_js.CartOperations(this);
831
+ this._cart = new chunkEQLT46ZR_js.CartOperations(this);
832
832
  }
833
833
  return this._cart;
834
834
  }
835
835
  get checkout() {
836
836
  if (!this._checkout) {
837
- this._checkout = new chunkDR4UPU6P_js.CheckoutService(this);
837
+ this._checkout = new chunkEQLT46ZR_js.CheckoutService(this);
838
838
  }
839
839
  return this._checkout;
840
840
  }
841
841
  get orders() {
842
842
  if (!this._orders) {
843
- this._orders = new chunkDR4UPU6P_js.OrderQueries(this);
843
+ this._orders = new chunkEQLT46ZR_js.OrderQueries(this);
844
844
  }
845
845
  return this._orders;
846
846
  }
@@ -864,43 +864,43 @@ var CimplifyClient = class {
864
864
  }
865
865
  get link() {
866
866
  if (!this._link) {
867
- this._link = new chunkDR4UPU6P_js.LinkService(this);
867
+ this._link = new chunkEQLT46ZR_js.LinkService(this);
868
868
  }
869
869
  return this._link;
870
870
  }
871
871
  get auth() {
872
872
  if (!this._auth) {
873
- this._auth = new chunkDR4UPU6P_js.AuthService(this);
873
+ this._auth = new chunkEQLT46ZR_js.AuthService(this);
874
874
  }
875
875
  return this._auth;
876
876
  }
877
877
  get business() {
878
878
  if (!this._business) {
879
- this._business = new chunkDR4UPU6P_js.BusinessService(this);
879
+ this._business = new chunkEQLT46ZR_js.BusinessService(this);
880
880
  }
881
881
  return this._business;
882
882
  }
883
883
  get inventory() {
884
884
  if (!this._inventory) {
885
- this._inventory = new chunkDR4UPU6P_js.InventoryService(this);
885
+ this._inventory = new chunkEQLT46ZR_js.InventoryService(this);
886
886
  }
887
887
  return this._inventory;
888
888
  }
889
889
  get scheduling() {
890
890
  if (!this._scheduling) {
891
- this._scheduling = new chunkDR4UPU6P_js.SchedulingService(this);
891
+ this._scheduling = new chunkEQLT46ZR_js.SchedulingService(this);
892
892
  }
893
893
  return this._scheduling;
894
894
  }
895
895
  get lite() {
896
896
  if (!this._lite) {
897
- this._lite = new chunkDR4UPU6P_js.LiteService(this);
897
+ this._lite = new chunkEQLT46ZR_js.LiteService(this);
898
898
  }
899
899
  return this._lite;
900
900
  }
901
901
  get fx() {
902
902
  if (!this._fx) {
903
- this._fx = new chunkDR4UPU6P_js.FxService(this);
903
+ this._fx = new chunkEQLT46ZR_js.FxService(this);
904
904
  }
905
905
  return this._fx;
906
906
  }
@@ -935,7 +935,7 @@ var CimplifyClient = class {
935
935
  if (businessId) {
936
936
  this.setBusinessId(businessId);
937
937
  }
938
- return chunkDR4UPU6P_js.createElements(this, businessId ?? this.businessId ?? void 0, options);
938
+ return chunkEQLT46ZR_js.createElements(this, businessId ?? this.businessId ?? void 0, options);
939
939
  }
940
940
  };
941
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;