@cimplify/sdk 0.101.1 → 0.103.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 (70) hide show
  1. package/dist/advanced.d.mts +3 -3
  2. package/dist/advanced.d.ts +3 -3
  3. package/dist/advanced.js +23 -22
  4. package/dist/advanced.mjs +4 -3
  5. package/dist/{chunk-QPRI2NII.js → chunk-2P4KXFB6.js} +6 -0
  6. package/dist/{chunk-4G5UWFC3.mjs → chunk-3V4DVXV3.mjs} +6 -1
  7. package/dist/{chunk-YHPMFTMN.mjs → chunk-C2JSNJUC.mjs} +406 -95
  8. package/dist/chunk-CNN7Z2IP.js +125 -0
  9. package/dist/{chunk-DKLHCZ5M.mjs → chunk-GERXZQSX.mjs} +487 -11
  10. package/dist/chunk-GOHSXBKW.mjs +105 -0
  11. package/dist/{chunk-7H6IL7CX.mjs → chunk-H7ACMHM3.mjs} +40 -15
  12. package/dist/{chunk-Z3K2D3TE.mjs → chunk-J6PNHDHL.mjs} +453 -483
  13. package/dist/{chunk-NIOUSKQQ.js → chunk-JG5CQNCB.js} +5 -0
  14. package/dist/{chunk-YER7DIOM.js → chunk-JSWJ4XDE.js} +471 -519
  15. package/dist/{chunk-DLW3RWRK.mjs → chunk-M4URVKHE.mjs} +46 -12
  16. package/dist/{chunk-WMEC5JWN.js → chunk-NNG6IFFX.js} +50 -13
  17. package/dist/{chunk-ICCCSVN3.js → chunk-QOWPGS7Z.js} +42 -16
  18. package/dist/{chunk-YDA46OZ6.js → chunk-R6OLQ33I.js} +560 -80
  19. package/dist/{chunk-H5SSGN7W.js → chunk-VIL6IQCG.js} +408 -97
  20. package/dist/{chunk-O3YUHLZL.mjs → chunk-VNPEYLB2.mjs} +5 -0
  21. package/dist/{client-Db554902.d.ts → client-BfpNjJ_a.d.mts} +93 -299
  22. package/dist/{client-CdTx7X_X.d.mts → client-DHBwvh7U.d.ts} +93 -299
  23. package/dist/{client-WkUcvRvO.d.mts → client-DpqRobY9.d.mts} +2 -2
  24. package/dist/{client-D40kI8z2.d.ts → client-Dqg2mc-7.d.ts} +2 -2
  25. package/dist/{index-D3UXgAYl.d.ts → index-C8uDqLwJ.d.ts} +14 -4
  26. package/dist/{index-BjWUkYgY.d.mts → index-e2y6AK70.d.mts} +14 -4
  27. package/dist/index.d.mts +92 -8
  28. package/dist/index.d.ts +92 -8
  29. package/dist/index.js +225 -188
  30. package/dist/index.mjs +7 -6
  31. package/dist/link-cuNVYc2s.d.mts +297 -0
  32. package/dist/link-cuNVYc2s.d.ts +297 -0
  33. package/dist/mock/cli.mjs +412 -94
  34. package/dist/mock/library.js +412 -94
  35. package/dist/mock/library.mjs +412 -94
  36. package/dist/mock/msw.js +412 -94
  37. package/dist/mock/msw.mjs +412 -94
  38. package/dist/{product-DwKdC_to.d.mts → payment-H5LoIvXU.d.mts} +207 -7
  39. package/dist/{product-DwKdC_to.d.ts → payment-H5LoIvXU.d.ts} +207 -7
  40. package/dist/{price-CiQUd_XX.d.mts → price-BvePgDXe.d.mts} +1 -1
  41. package/dist/{price-D9EOj8y8.d.ts → price-C2RqscMY.d.ts} +1 -1
  42. package/dist/react.d.mts +6 -4
  43. package/dist/react.d.ts +6 -4
  44. package/dist/react.js +203 -198
  45. package/dist/react.mjs +11 -6
  46. package/dist/{server-CeDb93WA.d.ts → server-C7FyLdrz.d.mts} +11 -9
  47. package/dist/{server-D-nSkrUr.d.mts → server-DoXIpSd7.d.ts} +11 -9
  48. package/dist/server.d.mts +4 -4
  49. package/dist/server.d.ts +4 -4
  50. package/dist/server.js +11 -10
  51. package/dist/server.mjs +5 -4
  52. package/dist/testing/msw.d.mts +2 -2
  53. package/dist/testing/msw.d.ts +2 -2
  54. package/dist/testing/msw.js +4 -3
  55. package/dist/testing/msw.mjs +3 -2
  56. package/dist/testing/suite.d.mts +6 -6
  57. package/dist/testing/suite.d.ts +6 -6
  58. package/dist/testing/suite.js +26 -25
  59. package/dist/testing/suite.mjs +7 -6
  60. package/dist/testing.d.mts +175 -45
  61. package/dist/testing.d.ts +175 -45
  62. package/dist/testing.js +86 -81
  63. package/dist/testing.mjs +8 -7
  64. package/dist/utils.d.mts +4 -4
  65. package/dist/utils.d.ts +4 -4
  66. package/dist/utils.js +37 -29
  67. package/dist/utils.mjs +2 -2
  68. package/package.json +7 -1
  69. package/dist/payment-CRqjGrx6.d.mts +0 -113
  70. package/dist/payment-DO1Z1Ip6.d.ts +0 -113
@@ -1,6 +1,6 @@
1
- export { k as AuthService, C as BusinessService, O as CartOperations, P as CatalogueQueries, ab as CheckoutOperations, ab as CheckoutService, ah as CimplifyElement, ai as CimplifyElements, aL as ELEMENT_TYPES, aM as EVENT_TYPES, aP as ElementEventType, aQ as ElementOptions, aR as ElementType, aZ as ElementsOptions, b5 as FetchQuoteInput, be as FxService, bi as GetProductsOptions, bl as InventoryService, bt as LinkService, bz as LiteService, bG as MESSAGE_TYPES, c6 as OrderQueries, cs as PriceQuote, cy as QuoteBundleSelectionInput, cz as QuoteCompositeSelectionInput, cA as QuoteDynamicBuckets, cB as QuoteStatus, cC as QuoteUiMessage, cE as RefreshQuoteInput, cF as RefreshQuoteResult, d5 as SchedulingService, dL as createElements } from './client-CdTx7X_X.mjs';
2
- import './product-DwKdC_to.mjs';
3
- import './payment-CRqjGrx6.mjs';
1
+ export { g as AuthService, x as BusinessService, I as CartOperations, J as CatalogueQueries, a8 as CheckoutOperations, a8 as CheckoutService, ae as CimplifyElement, af as CimplifyElements, ax as ELEMENT_TYPES, ay as EVENT_TYPES, aB as ElementEventType, aC as ElementOptions, aD as ElementType, aL as ElementsOptions, aQ as FetchQuoteInput, aZ as FxService, b1 as GetProductsOptions, b4 as InventoryService, b8 as LinkService, bc as LiteService, bj as MESSAGE_TYPES, bG as OrderQueries, c0 as PriceQuote, c6 as QuoteBundleSelectionInput, c7 as QuoteCompositeSelectionInput, c8 as QuoteDynamicBuckets, c9 as QuoteStatus, ca as QuoteUiMessage, cc as RefreshQuoteInput, cd as RefreshQuoteResult, cC as SchedulingService, de as createElements } from './client-BfpNjJ_a.mjs';
2
+ import './payment-H5LoIvXU.mjs';
3
+ import './link-cuNVYc2s.mjs';
4
4
 
5
5
  declare function generateIdempotencyKey(prefix?: string): string;
6
6
 
@@ -1,6 +1,6 @@
1
- export { k as AuthService, C as BusinessService, O as CartOperations, P as CatalogueQueries, ab as CheckoutOperations, ab as CheckoutService, ah as CimplifyElement, ai as CimplifyElements, aL as ELEMENT_TYPES, aM as EVENT_TYPES, aP as ElementEventType, aQ as ElementOptions, aR as ElementType, aZ as ElementsOptions, b5 as FetchQuoteInput, be as FxService, bi as GetProductsOptions, bl as InventoryService, bt as LinkService, bz as LiteService, bG as MESSAGE_TYPES, c6 as OrderQueries, cs as PriceQuote, cy as QuoteBundleSelectionInput, cz as QuoteCompositeSelectionInput, cA as QuoteDynamicBuckets, cB as QuoteStatus, cC as QuoteUiMessage, cE as RefreshQuoteInput, cF as RefreshQuoteResult, d5 as SchedulingService, dL as createElements } from './client-Db554902.js';
2
- import './product-DwKdC_to.js';
3
- import './payment-DO1Z1Ip6.js';
1
+ export { g as AuthService, x as BusinessService, I as CartOperations, J as CatalogueQueries, a8 as CheckoutOperations, a8 as CheckoutService, ae as CimplifyElement, af as CimplifyElements, ax as ELEMENT_TYPES, ay as EVENT_TYPES, aB as ElementEventType, aC as ElementOptions, aD as ElementType, aL as ElementsOptions, aQ as FetchQuoteInput, aZ as FxService, b1 as GetProductsOptions, b4 as InventoryService, b8 as LinkService, bc as LiteService, bj as MESSAGE_TYPES, bG as OrderQueries, c0 as PriceQuote, c6 as QuoteBundleSelectionInput, c7 as QuoteCompositeSelectionInput, c8 as QuoteDynamicBuckets, c9 as QuoteStatus, ca as QuoteUiMessage, cc as RefreshQuoteInput, cd as RefreshQuoteResult, cC as SchedulingService, de as createElements } from './client-DHBwvh7U.js';
2
+ import './payment-H5LoIvXU.js';
3
+ import './link-cuNVYc2s.js';
4
4
 
5
5
  declare function generateIdempotencyKey(prefix?: string): string;
6
6
 
package/dist/advanced.js CHANGED
@@ -1,85 +1,86 @@
1
1
  'use strict';
2
2
 
3
- var chunkYER7DIOM_js = require('./chunk-YER7DIOM.js');
4
- require('./chunk-WMEC5JWN.js');
5
- require('./chunk-NIOUSKQQ.js');
3
+ var chunkJSWJ4XDE_js = require('./chunk-JSWJ4XDE.js');
4
+ require('./chunk-CNN7Z2IP.js');
5
+ require('./chunk-NNG6IFFX.js');
6
+ require('./chunk-JG5CQNCB.js');
6
7
  require('./chunk-OWW5GUSB.js');
7
8
 
8
9
 
9
10
 
10
11
  Object.defineProperty(exports, "AuthService", {
11
12
  enumerable: true,
12
- get: function () { return chunkYER7DIOM_js.AuthService; }
13
+ get: function () { return chunkJSWJ4XDE_js.AuthService; }
13
14
  });
14
15
  Object.defineProperty(exports, "BusinessService", {
15
16
  enumerable: true,
16
- get: function () { return chunkYER7DIOM_js.BusinessService; }
17
+ get: function () { return chunkJSWJ4XDE_js.BusinessService; }
17
18
  });
18
19
  Object.defineProperty(exports, "CartOperations", {
19
20
  enumerable: true,
20
- get: function () { return chunkYER7DIOM_js.CartOperations; }
21
+ get: function () { return chunkJSWJ4XDE_js.CartOperations; }
21
22
  });
22
23
  Object.defineProperty(exports, "CatalogueQueries", {
23
24
  enumerable: true,
24
- get: function () { return chunkYER7DIOM_js.CatalogueQueries; }
25
+ get: function () { return chunkJSWJ4XDE_js.CatalogueQueries; }
25
26
  });
26
27
  Object.defineProperty(exports, "CheckoutOperations", {
27
28
  enumerable: true,
28
- get: function () { return chunkYER7DIOM_js.CheckoutService; }
29
+ get: function () { return chunkJSWJ4XDE_js.CheckoutService; }
29
30
  });
30
31
  Object.defineProperty(exports, "CheckoutService", {
31
32
  enumerable: true,
32
- get: function () { return chunkYER7DIOM_js.CheckoutService; }
33
+ get: function () { return chunkJSWJ4XDE_js.CheckoutService; }
33
34
  });
34
35
  Object.defineProperty(exports, "CimplifyElement", {
35
36
  enumerable: true,
36
- get: function () { return chunkYER7DIOM_js.CimplifyElement; }
37
+ get: function () { return chunkJSWJ4XDE_js.CimplifyElement; }
37
38
  });
38
39
  Object.defineProperty(exports, "CimplifyElements", {
39
40
  enumerable: true,
40
- get: function () { return chunkYER7DIOM_js.CimplifyElements; }
41
+ get: function () { return chunkJSWJ4XDE_js.CimplifyElements; }
41
42
  });
42
43
  Object.defineProperty(exports, "ELEMENT_TYPES", {
43
44
  enumerable: true,
44
- get: function () { return chunkYER7DIOM_js.ELEMENT_TYPES; }
45
+ get: function () { return chunkJSWJ4XDE_js.ELEMENT_TYPES; }
45
46
  });
46
47
  Object.defineProperty(exports, "EVENT_TYPES", {
47
48
  enumerable: true,
48
- get: function () { return chunkYER7DIOM_js.EVENT_TYPES; }
49
+ get: function () { return chunkJSWJ4XDE_js.EVENT_TYPES; }
49
50
  });
50
51
  Object.defineProperty(exports, "FxService", {
51
52
  enumerable: true,
52
- get: function () { return chunkYER7DIOM_js.FxService; }
53
+ get: function () { return chunkJSWJ4XDE_js.FxService; }
53
54
  });
54
55
  Object.defineProperty(exports, "InventoryService", {
55
56
  enumerable: true,
56
- get: function () { return chunkYER7DIOM_js.InventoryService; }
57
+ get: function () { return chunkJSWJ4XDE_js.InventoryService; }
57
58
  });
58
59
  Object.defineProperty(exports, "LinkService", {
59
60
  enumerable: true,
60
- get: function () { return chunkYER7DIOM_js.LinkService; }
61
+ get: function () { return chunkJSWJ4XDE_js.LinkService; }
61
62
  });
62
63
  Object.defineProperty(exports, "LiteService", {
63
64
  enumerable: true,
64
- get: function () { return chunkYER7DIOM_js.LiteService; }
65
+ get: function () { return chunkJSWJ4XDE_js.LiteService; }
65
66
  });
66
67
  Object.defineProperty(exports, "MESSAGE_TYPES", {
67
68
  enumerable: true,
68
- get: function () { return chunkYER7DIOM_js.MESSAGE_TYPES; }
69
+ get: function () { return chunkJSWJ4XDE_js.MESSAGE_TYPES; }
69
70
  });
70
71
  Object.defineProperty(exports, "OrderQueries", {
71
72
  enumerable: true,
72
- get: function () { return chunkYER7DIOM_js.OrderQueries; }
73
+ get: function () { return chunkJSWJ4XDE_js.OrderQueries; }
73
74
  });
74
75
  Object.defineProperty(exports, "SchedulingService", {
75
76
  enumerable: true,
76
- get: function () { return chunkYER7DIOM_js.SchedulingService; }
77
+ get: function () { return chunkJSWJ4XDE_js.SchedulingService; }
77
78
  });
78
79
  Object.defineProperty(exports, "createElements", {
79
80
  enumerable: true,
80
- get: function () { return chunkYER7DIOM_js.createElements; }
81
+ get: function () { return chunkJSWJ4XDE_js.createElements; }
81
82
  });
82
83
  Object.defineProperty(exports, "generateIdempotencyKey", {
83
84
  enumerable: true,
84
- get: function () { return chunkYER7DIOM_js.generateIdempotencyKey; }
85
+ get: function () { return chunkJSWJ4XDE_js.generateIdempotencyKey; }
85
86
  });
package/dist/advanced.mjs CHANGED
@@ -1,4 +1,5 @@
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-Z3K2D3TE.mjs';
2
- import './chunk-DLW3RWRK.mjs';
3
- import './chunk-O3YUHLZL.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-J6PNHDHL.mjs';
2
+ import './chunk-GOHSXBKW.mjs';
3
+ import './chunk-M4URVKHE.mjs';
4
+ import './chunk-VNPEYLB2.mjs';
4
5
  import './chunk-3G6RQLXK.mjs';
@@ -80,6 +80,11 @@ function getVariantDisplayName(variant, productName) {
80
80
  return productName || (variant.is_default ? "Default" : "Option");
81
81
  }
82
82
 
83
+ // src/utils/tax-display.ts
84
+ function displaysGrossPrices(pricing) {
85
+ return pricing.tax_inclusive || pricing.price_display_mode === "gross_required";
86
+ }
87
+
83
88
  // src/utils/price-basis.ts
84
89
  var MULTI_DAY_UNITS = /* @__PURE__ */ new Set([
85
90
  "days",
@@ -258,6 +263,7 @@ exports.RENDER_HINT = RENDER_HINT;
258
263
  exports.allGalleryImages = allGalleryImages;
259
264
  exports.assetUrl = assetUrl;
260
265
  exports.chatMessageCards = chatMessageCards;
266
+ exports.displaysGrossPrices = displaysGrossPrices;
261
267
  exports.getVariantDisplayName = getVariantDisplayName;
262
268
  exports.isCimplifyAsset = isCimplifyAsset;
263
269
  exports.isMultiDayService = isMultiDayService;
@@ -78,6 +78,11 @@ function getVariantDisplayName(variant, productName) {
78
78
  return productName || (variant.is_default ? "Default" : "Option");
79
79
  }
80
80
 
81
+ // src/utils/tax-display.ts
82
+ function displaysGrossPrices(pricing) {
83
+ return pricing.tax_inclusive || pricing.price_display_mode === "gross_required";
84
+ }
85
+
81
86
  // src/utils/price-basis.ts
82
87
  var MULTI_DAY_UNITS = /* @__PURE__ */ new Set([
83
88
  "days",
@@ -246,4 +251,4 @@ function appendTransform(url, t) {
246
251
  return `${url}${url.includes("?") ? "&" : "?"}${query}`;
247
252
  }
248
253
 
249
- export { BOUNDARY_KIND, CIMPLIFY_CDN_HOSTS, DEFAULT_CDN_BASE_URL, DURATION_UNIT, INPUT_FIELD_TYPE, PRODUCT_TYPE, RENDER_HINT, allGalleryImages, assetUrl, chatMessageCards, getVariantDisplayName, isCimplifyAsset, isMultiDayService, priceBasisLabel, resolveGallery, serviceBillingMultiplier, stayLength, stayPeriods };
254
+ export { BOUNDARY_KIND, CIMPLIFY_CDN_HOSTS, DEFAULT_CDN_BASE_URL, DURATION_UNIT, INPUT_FIELD_TYPE, PRODUCT_TYPE, RENDER_HINT, allGalleryImages, assetUrl, chatMessageCards, displaysGrossPrices, getVariantDisplayName, isCimplifyAsset, isMultiDayService, priceBasisLabel, resolveGallery, serviceBillingMultiplier, stayLength, stayPeriods };