@cimplify/sdk 0.46.0 → 0.46.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 (45) hide show
  1. package/dist/advanced.d.mts +1 -1
  2. package/dist/advanced.d.ts +1 -1
  3. package/dist/advanced.js +22 -22
  4. package/dist/advanced.mjs +3 -3
  5. package/dist/{chunk-XPXAZXF2.mjs → chunk-3HXYEK5K.mjs} +2 -2
  6. package/dist/{chunk-K6FCVLZA.js → chunk-4KNCSWE4.js} +234 -234
  7. package/dist/{chunk-RQ3ILHUQ.mjs → chunk-5LZNTG4V.mjs} +1 -1
  8. package/dist/{chunk-GVLWRI5I.js → chunk-6V67MAWO.js} +49 -25
  9. package/dist/{chunk-RR3ZJQW5.mjs → chunk-7H2DYO4T.mjs} +4 -4
  10. package/dist/{chunk-NRT6PVW5.mjs → chunk-7RRVM2X2.mjs} +1 -1
  11. package/dist/{chunk-IF22UYTT.mjs → chunk-AUS4B7PA.mjs} +2 -2
  12. package/dist/{chunk-QBQCMQ4F.js → chunk-DETRNWHF.js} +2 -2
  13. package/dist/{chunk-LLZZMHSU.js → chunk-HNPVZGTO.js} +62 -62
  14. package/dist/{chunk-ZH6ZST5T.js → chunk-NKZ5YN5D.js} +4 -4
  15. package/dist/{chunk-AIXUFSA6.mjs → chunk-UJ5BBLKL.mjs} +29 -5
  16. package/dist/{chunk-BN2CXGMO.js → chunk-Z3CHDA24.js} +3 -3
  17. package/dist/{client-aZInadOY.d.ts → client-B9r5rH3O.d.ts} +3 -0
  18. package/dist/{client-MUD63aYS.d.mts → client-BScRT1Rz.d.mts} +1 -1
  19. package/dist/{client-BDYBB-ME.d.ts → client-D7nI2XmP.d.ts} +1 -1
  20. package/dist/{client-CDUY-6nC.d.mts → client-DyrpQRza.d.mts} +3 -0
  21. package/dist/index.d.mts +1 -1
  22. package/dist/index.d.ts +1 -1
  23. package/dist/index.js +107 -107
  24. package/dist/index.mjs +4 -4
  25. package/dist/react.d.mts +1 -1
  26. package/dist/react.d.ts +1 -1
  27. package/dist/react.js +85 -85
  28. package/dist/react.mjs +4 -4
  29. package/dist/server.d.mts +2 -2
  30. package/dist/server.d.ts +2 -2
  31. package/dist/server.js +6 -6
  32. package/dist/server.mjs +4 -4
  33. package/dist/testing/msw.js +3 -3
  34. package/dist/testing/msw.mjs +2 -2
  35. package/dist/testing/suite.d.mts +2 -2
  36. package/dist/testing/suite.d.ts +2 -2
  37. package/dist/testing/suite.js +25 -25
  38. package/dist/testing/suite.mjs +6 -6
  39. package/dist/testing.d.mts +2 -2
  40. package/dist/testing.d.ts +2 -2
  41. package/dist/testing.js +81 -81
  42. package/dist/testing.mjs +7 -7
  43. package/dist/utils.js +29 -29
  44. package/dist/utils.mjs +2 -2
  45. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- export { A as AuthService, B as BusinessService, j as CartOperations, b as CatalogueQueries, l as CheckoutOperations, l as CheckoutService, a6 as CimplifyElement, a5 as CimplifyElements, aa as ELEMENT_TYPES, a9 as EVENT_TYPES, ae as ElementEventType, ac as ElementOptions, ad as ElementType, ab as ElementsOptions, F as FetchQuoteInput, r as FxService, G as GetProductsOptions, I as InventoryService, L as LinkService, q as LiteService, a8 as MESSAGE_TYPES, O as OrderQueries, P as PriceQuote, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, i as RefreshQuoteResult, p as SchedulingService, a7 as createElements } from './client-CDUY-6nC.mjs';
1
+ export { A as AuthService, B as BusinessService, j as CartOperations, b as CatalogueQueries, l as CheckoutOperations, l as CheckoutService, a6 as CimplifyElement, a5 as CimplifyElements, aa as ELEMENT_TYPES, a9 as EVENT_TYPES, ae as ElementEventType, ac as ElementOptions, ad as ElementType, ab as ElementsOptions, F as FetchQuoteInput, r as FxService, G as GetProductsOptions, I as InventoryService, L as LinkService, q as LiteService, a8 as MESSAGE_TYPES, O as OrderQueries, P as PriceQuote, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, i as RefreshQuoteResult, p as SchedulingService, a7 as createElements } from './client-DyrpQRza.mjs';
2
2
  import './product-DiX-HGkT.mjs';
3
3
  import './payment-Bse2XJ-c.mjs';
4
4
 
@@ -1,4 +1,4 @@
1
- export { A as AuthService, B as BusinessService, j as CartOperations, b as CatalogueQueries, l as CheckoutOperations, l as CheckoutService, a6 as CimplifyElement, a5 as CimplifyElements, aa as ELEMENT_TYPES, a9 as EVENT_TYPES, ae as ElementEventType, ac as ElementOptions, ad as ElementType, ab as ElementsOptions, F as FetchQuoteInput, r as FxService, G as GetProductsOptions, I as InventoryService, L as LinkService, q as LiteService, a8 as MESSAGE_TYPES, O as OrderQueries, P as PriceQuote, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, i as RefreshQuoteResult, p as SchedulingService, a7 as createElements } from './client-aZInadOY.js';
1
+ export { A as AuthService, B as BusinessService, j as CartOperations, b as CatalogueQueries, l as CheckoutOperations, l as CheckoutService, a6 as CimplifyElement, a5 as CimplifyElements, aa as ELEMENT_TYPES, a9 as EVENT_TYPES, ae as ElementEventType, ac as ElementOptions, ad as ElementType, ab as ElementsOptions, F as FetchQuoteInput, r as FxService, G as GetProductsOptions, I as InventoryService, L as LinkService, q as LiteService, a8 as MESSAGE_TYPES, O as OrderQueries, P as PriceQuote, d as QuoteBundleSelectionInput, Q as QuoteCompositeSelectionInput, f as QuoteDynamicBuckets, e as QuoteStatus, g as QuoteUiMessage, R as RefreshQuoteInput, i as RefreshQuoteResult, p as SchedulingService, a7 as createElements } from './client-B9r5rH3O.js';
2
2
  import './product-DiX-HGkT.js';
3
3
  import './payment-JcNqOf_T.js';
4
4
 
package/dist/advanced.js CHANGED
@@ -1,84 +1,84 @@
1
1
  'use strict';
2
2
 
3
- var chunkGVLWRI5I_js = require('./chunk-GVLWRI5I.js');
4
- require('./chunk-BN2CXGMO.js');
5
- require('./chunk-QBQCMQ4F.js');
3
+ var chunk6V67MAWO_js = require('./chunk-6V67MAWO.js');
4
+ require('./chunk-Z3CHDA24.js');
5
+ require('./chunk-DETRNWHF.js');
6
6
 
7
7
 
8
8
 
9
9
  Object.defineProperty(exports, "AuthService", {
10
10
  enumerable: true,
11
- get: function () { return chunkGVLWRI5I_js.AuthService; }
11
+ get: function () { return chunk6V67MAWO_js.AuthService; }
12
12
  });
13
13
  Object.defineProperty(exports, "BusinessService", {
14
14
  enumerable: true,
15
- get: function () { return chunkGVLWRI5I_js.BusinessService; }
15
+ get: function () { return chunk6V67MAWO_js.BusinessService; }
16
16
  });
17
17
  Object.defineProperty(exports, "CartOperations", {
18
18
  enumerable: true,
19
- get: function () { return chunkGVLWRI5I_js.CartOperations; }
19
+ get: function () { return chunk6V67MAWO_js.CartOperations; }
20
20
  });
21
21
  Object.defineProperty(exports, "CatalogueQueries", {
22
22
  enumerable: true,
23
- get: function () { return chunkGVLWRI5I_js.CatalogueQueries; }
23
+ get: function () { return chunk6V67MAWO_js.CatalogueQueries; }
24
24
  });
25
25
  Object.defineProperty(exports, "CheckoutOperations", {
26
26
  enumerable: true,
27
- get: function () { return chunkGVLWRI5I_js.CheckoutService; }
27
+ get: function () { return chunk6V67MAWO_js.CheckoutService; }
28
28
  });
29
29
  Object.defineProperty(exports, "CheckoutService", {
30
30
  enumerable: true,
31
- get: function () { return chunkGVLWRI5I_js.CheckoutService; }
31
+ get: function () { return chunk6V67MAWO_js.CheckoutService; }
32
32
  });
33
33
  Object.defineProperty(exports, "CimplifyElement", {
34
34
  enumerable: true,
35
- get: function () { return chunkGVLWRI5I_js.CimplifyElement; }
35
+ get: function () { return chunk6V67MAWO_js.CimplifyElement; }
36
36
  });
37
37
  Object.defineProperty(exports, "CimplifyElements", {
38
38
  enumerable: true,
39
- get: function () { return chunkGVLWRI5I_js.CimplifyElements; }
39
+ get: function () { return chunk6V67MAWO_js.CimplifyElements; }
40
40
  });
41
41
  Object.defineProperty(exports, "ELEMENT_TYPES", {
42
42
  enumerable: true,
43
- get: function () { return chunkGVLWRI5I_js.ELEMENT_TYPES; }
43
+ get: function () { return chunk6V67MAWO_js.ELEMENT_TYPES; }
44
44
  });
45
45
  Object.defineProperty(exports, "EVENT_TYPES", {
46
46
  enumerable: true,
47
- get: function () { return chunkGVLWRI5I_js.EVENT_TYPES; }
47
+ get: function () { return chunk6V67MAWO_js.EVENT_TYPES; }
48
48
  });
49
49
  Object.defineProperty(exports, "FxService", {
50
50
  enumerable: true,
51
- get: function () { return chunkGVLWRI5I_js.FxService; }
51
+ get: function () { return chunk6V67MAWO_js.FxService; }
52
52
  });
53
53
  Object.defineProperty(exports, "InventoryService", {
54
54
  enumerable: true,
55
- get: function () { return chunkGVLWRI5I_js.InventoryService; }
55
+ get: function () { return chunk6V67MAWO_js.InventoryService; }
56
56
  });
57
57
  Object.defineProperty(exports, "LinkService", {
58
58
  enumerable: true,
59
- get: function () { return chunkGVLWRI5I_js.LinkService; }
59
+ get: function () { return chunk6V67MAWO_js.LinkService; }
60
60
  });
61
61
  Object.defineProperty(exports, "LiteService", {
62
62
  enumerable: true,
63
- get: function () { return chunkGVLWRI5I_js.LiteService; }
63
+ get: function () { return chunk6V67MAWO_js.LiteService; }
64
64
  });
65
65
  Object.defineProperty(exports, "MESSAGE_TYPES", {
66
66
  enumerable: true,
67
- get: function () { return chunkGVLWRI5I_js.MESSAGE_TYPES; }
67
+ get: function () { return chunk6V67MAWO_js.MESSAGE_TYPES; }
68
68
  });
69
69
  Object.defineProperty(exports, "OrderQueries", {
70
70
  enumerable: true,
71
- get: function () { return chunkGVLWRI5I_js.OrderQueries; }
71
+ get: function () { return chunk6V67MAWO_js.OrderQueries; }
72
72
  });
73
73
  Object.defineProperty(exports, "SchedulingService", {
74
74
  enumerable: true,
75
- get: function () { return chunkGVLWRI5I_js.SchedulingService; }
75
+ get: function () { return chunk6V67MAWO_js.SchedulingService; }
76
76
  });
77
77
  Object.defineProperty(exports, "createElements", {
78
78
  enumerable: true,
79
- get: function () { return chunkGVLWRI5I_js.createElements; }
79
+ get: function () { return chunk6V67MAWO_js.createElements; }
80
80
  });
81
81
  Object.defineProperty(exports, "generateIdempotencyKey", {
82
82
  enumerable: true,
83
- get: function () { return chunkGVLWRI5I_js.generateIdempotencyKey; }
83
+ get: function () { return chunk6V67MAWO_js.generateIdempotencyKey; }
84
84
  });
package/dist/advanced.mjs CHANGED
@@ -1,3 +1,3 @@
1
- export { AuthService, BusinessService, CartOperations, CatalogueQueries, CheckoutService as CheckoutOperations, CheckoutService, CimplifyElement, CimplifyElements, ELEMENT_TYPES, EVENT_TYPES, FxService, InventoryService, LinkService, LiteService, MESSAGE_TYPES, OrderQueries, SchedulingService, createElements, generateIdempotencyKey } from './chunk-AIXUFSA6.mjs';
2
- import './chunk-NRT6PVW5.mjs';
3
- import './chunk-XPXAZXF2.mjs';
1
+ export { AuthService, BusinessService, CartOperations, CatalogueQueries, CheckoutService as CheckoutOperations, CheckoutService, CimplifyElement, CimplifyElements, ELEMENT_TYPES, EVENT_TYPES, FxService, InventoryService, LinkService, LiteService, MESSAGE_TYPES, OrderQueries, SchedulingService, createElements, generateIdempotencyKey } from './chunk-UJ5BBLKL.mjs';
2
+ import './chunk-7RRVM2X2.mjs';
3
+ import './chunk-3HXYEK5K.mjs';
@@ -227,10 +227,10 @@ function enrichError(error, options = {}) {
227
227
  const docsUrl = error.docs_url || hint?.docs_url || docsUrlForCode(error.code || ErrorCode.UNKNOWN_ERROR);
228
228
  const suggestion = error.suggestion || hint?.suggestion;
229
229
  let message = error.message;
230
- if (options.isTestMode && !message.includes("pk_test_")) {
230
+ if (options.isTestMode && !message.includes("cpk_test_")) {
231
231
  message = `${message}
232
232
 
233
- \u2139 Your API key is a test-mode key (pk_test_...). Verify test data/session before retrying.`;
233
+ \u2139 Your API key is a test-mode key (cpk_test_...). Verify test data/session before retrying.`;
234
234
  }
235
235
  const enriched = new CimplifyError(error.code, message, error.retryable, docsUrl, suggestion);
236
236
  enriched.stack = error.stack;