@cimplify/sdk 0.110.2 → 0.111.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 (76) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/README.md +18 -0
  3. package/dist/advanced.d.mts +4 -4
  4. package/dist/advanced.d.ts +4 -4
  5. package/dist/advanced.js +22 -22
  6. package/dist/advanced.mjs +3 -3
  7. package/dist/{catalogue-OTuS5zp-.d.ts → catalogue-1QcoGDO6.d.ts} +2 -2
  8. package/dist/{catalogue-CPTMyBUz.d.mts → catalogue-FdFQiWrU.d.mts} +2 -2
  9. package/dist/{chunk-SYEO2WV4.mjs → chunk-42JTCWIE.mjs} +3 -3
  10. package/dist/{chunk-OMTVH334.js → chunk-6QANXRUM.js} +203 -186
  11. package/dist/{chunk-6ETDAU62.mjs → chunk-B45X3HPO.mjs} +98 -39
  12. package/dist/{chunk-MKIJQL5Q.js → chunk-CJVEJPIG.js} +69 -69
  13. package/dist/{chunk-Q2Y3VMKH.js → chunk-ETZDIISN.js} +151 -151
  14. package/dist/{chunk-GCKWKLZF.mjs → chunk-FT6GFYJL.mjs} +17 -3
  15. package/dist/{chunk-A36JRXXH.mjs → chunk-KWZHIPRN.mjs} +26 -9
  16. package/dist/{chunk-SNNEOS5Z.js → chunk-MHDUUSG6.js} +75 -75
  17. package/dist/{chunk-UCR5HRYM.js → chunk-NFXCKTE2.js} +17 -3
  18. package/dist/{chunk-DFZWHNRG.js → chunk-QOCHWR4V.js} +105 -42
  19. package/dist/{chunk-IZDWAL53.mjs → chunk-UJDQQTBS.mjs} +8 -8
  20. package/dist/{chunk-BTUSVHIE.mjs → chunk-WLSU5QJT.mjs} +2 -2
  21. package/dist/{client-dqOhP9Nc.d.ts → client-CChON4-x.d.ts} +2 -2
  22. package/dist/{client-CX_WR0-J.d.mts → client-EeuGm5gj.d.mts} +2 -2
  23. package/dist/{elements-DdsRig-2.d.mts → elements-ss9xZgRg.d.mts} +27 -1
  24. package/dist/{elements-DdsRig-2.d.ts → elements-ss9xZgRg.d.ts} +27 -1
  25. package/dist/index-BB2gjVvA.d.mts +153 -0
  26. package/dist/index-BEfmBDAH.d.ts +153 -0
  27. package/dist/{index-B98Xac8e.d.ts → index-DQK8sTfu.d.ts} +2 -2
  28. package/dist/{index-DbAN_VQE.d.mts → index-DSVkhRmW.d.mts} +2 -2
  29. package/dist/index.d.mts +8 -8
  30. package/dist/index.d.ts +8 -8
  31. package/dist/index.js +189 -177
  32. package/dist/index.mjs +8 -8
  33. package/dist/mock/cli.mjs +25 -10
  34. package/dist/mock/library.js +25 -10
  35. package/dist/mock/library.mjs +25 -10
  36. package/dist/mock/msw.js +25 -10
  37. package/dist/mock/msw.mjs +25 -10
  38. package/dist/{price-BOzexBww.d.mts → price-B-w4PwHm.d.mts} +1 -1
  39. package/dist/{price-C1h9sPxE.d.ts → price-BEvQFNJv.d.ts} +1 -1
  40. package/dist/react.d.mts +23 -15
  41. package/dist/react.d.ts +23 -15
  42. package/dist/react.js +254 -237
  43. package/dist/react.mjs +128 -111
  44. package/dist/{scheduling-D2ajXpMC.d.ts → scheduling-D9WwOxbo.d.ts} +1 -1
  45. package/dist/{scheduling-DSRbbaZb.d.mts → scheduling-DDmrYCr-.d.mts} +1 -1
  46. package/dist/{server-D29IIuDV.d.ts → server-BiKwxvnf.d.ts} +2 -2
  47. package/dist/{server-DQMWPnc8.d.mts → server-DPdtl2dd.d.mts} +2 -2
  48. package/dist/server.d.mts +4 -4
  49. package/dist/server.d.ts +4 -4
  50. package/dist/server.js +10 -10
  51. package/dist/server.mjs +4 -4
  52. package/dist/styles.css +1 -1
  53. package/dist/testing/msw.d.mts +3 -3
  54. package/dist/testing/msw.d.ts +3 -3
  55. package/dist/testing/msw.js +3 -3
  56. package/dist/testing/msw.mjs +2 -2
  57. package/dist/testing/suite.d.mts +6 -6
  58. package/dist/testing/suite.d.ts +6 -6
  59. package/dist/testing/suite.js +25 -25
  60. package/dist/testing/suite.mjs +6 -6
  61. package/dist/testing.d.mts +5 -5
  62. package/dist/testing.d.ts +5 -5
  63. package/dist/testing.js +117 -117
  64. package/dist/testing.mjs +7 -7
  65. package/dist/utils.d.mts +3 -3
  66. package/dist/utils.d.ts +3 -3
  67. package/dist/utils.js +44 -32
  68. package/dist/utils.mjs +2 -2
  69. package/package.json +5 -3
  70. package/registry/cart-summary.json +1 -1
  71. package/registry/chat-widget.json +1 -1
  72. package/registry/price.json +1 -1
  73. package/registry/product-customizer.json +1 -1
  74. package/registry/search-input.json +1 -1
  75. package/dist/index-6gkHMGAq.d.mts +0 -86
  76. package/dist/index-B_ByTtIT.d.ts +0 -86
package/CHANGELOG.md ADDED
@@ -0,0 +1,54 @@
1
+ # Changelog
2
+
3
+ ## 0.111.0
4
+
5
+ This release changes how the SDK handles currency, and it breaks callers that relied on a default currency. Before 1.0 a minor version carries breaking changes, so read "What breaks" before you upgrade.
6
+
7
+ ### What changed
8
+
9
+ - The SDK never guesses a currency. A price's currency comes from the API: `business.default_currency`, the cart's `pricing.currency`, or the product's or order's own `currency`. There is no default currency anywhere in the SDK.
10
+ - Every formatter goes through one formatter, `formatCurrencyAmount`, which rounds half-up to the currency's own minor unit from the server's money kernel table: 0 digits for XOF, XAF, JPY, UGX and RWF, 3 for KWD, BHD and OMR, and 2 otherwise. Decimal strings are rounded exactly, with no float drift. `formatPrice("12500.40", "XOF")` is `"CFA12,500"` and `formatPrice("1.2345", "KWD")` is `"KWD1.235"`.
11
+ - New exports from `@cimplify/sdk` and `@cimplify/sdk/utils`: `formatCurrencyAmount(amount, currency, { locale, grouping })`, `currencyFractionDigits(currency)`, `PRICE_UNAVAILABLE_LABEL` and the `FormatCurrencyAmountOptions` type.
12
+ - `CurrencyCode` now covers every zero- and three-decimal currency in the kernel table: BHD, IQD, JOD, KWD, LYD, OMR, TND, CLP, DJF, ISK, KMF, PYG, VUV and XPF are new, so `<Price currency="KWD">` typechecks.
13
+ - `CimplifyProvider` converts display prices with the display currency's own minor unit, and ignores a stored display currency it does not support.
14
+ - Order types follow the API: `Order.currency` and `OrderPricingView.currency` are the order's own currency (never the business default), and `Order.amendment_refusal` with the new `AmendmentRefusal` type says why an order cannot be amended.
15
+ - The sign-in button and the generated chat UI inputs use the new brand colours.
16
+
17
+ ### What breaks
18
+
19
+ - `useCimplify().currency`, `baseCurrency` and `displayCurrency` are typed `CurrencyCode | null` (they were `string`) and are `null` until the business loads, and stay `null` if it fails to load. They used to fall back to USD.
20
+ - `useCart().currency` is `string | null` and is `null` until the cart or the business supplies one.
21
+ - `<Price>` renders nothing when it has neither a `currency` prop nor a loaded business, and nothing when the amount is unreadable. It used to fall back to USD. Its return type is now `React.ReactElement | null`.
22
+ - `formatPrice`, `formatMoney`, `formatPriceCompact`, `formatPriceAdjustment`, `formatPriceRange`, `formatPriceWithTax`, `formatProductPrice` and `formatPlanOptions` still accept an optional `currency`, but without one, or with an unreadable amount, they return `"Price unavailable"` instead of a price in a guessed currency.
23
+ - `getProductCurrency(product)` returns `undefined` when the product carries no currency.
24
+ - `DEFAULT_CURRENCY` is deprecated and no longer used by the SDK.
25
+ - `money()` is deprecated. It parsed strings through a float and turned unreadable text into 0.
26
+
27
+ ### How to migrate
28
+
29
+ 1. Handle a null currency. Render a loading or unavailable state until the currency is known:
30
+
31
+ ```tsx
32
+ const { currency } = useCimplify();
33
+ if (currency === null) return <PriceSkeleton />;
34
+ ```
35
+
36
+ Code that compared `currency` to a string or passed it where a `string` was required needs a null check first.
37
+
38
+ 2. Pass the currency to formatters and to `<Price>`. Use the record's own currency, which also renders correctly during server rendering:
39
+
40
+ ```tsx
41
+ formatPrice(order.total_price, order.currency);
42
+ formatPrice(cart.pricing.total_price, cart.pricing.currency);
43
+ <Price amount={product.default_price} currency={product.currency} />;
44
+ ```
45
+
46
+ When you want to draw your own loading state instead of the `"Price unavailable"` label, call `formatCurrencyAmount`, which returns `null` without a currency or a readable amount.
47
+
48
+ 3. Move off `money()`. Keep wire money as the decimal string the API sent; it is already typed `Money`. For an amount you compute, parse with `parsePrice` and wrap the result with `moneyFromNumber`:
49
+
50
+ ```ts
51
+ const lineTotal = moneyFromNumber(parsePrice(item.price) * item.quantity);
52
+ ```
53
+
54
+ 4. Replace `DEFAULT_CURRENCY` with the business's currency (`useCimplify().baseCurrency` or `business.default_currency`) or the cart's, order's or product's own currency.
package/README.md CHANGED
@@ -228,10 +228,28 @@ const price = money("29.99");
228
228
  parseFloat(price); // 29.99
229
229
 
230
230
  formatPrice(29.99, "GHS"); // "GH₵29.99"
231
+ formatPrice("12500.40", "XOF"); // "CFA12,500" (zero-decimal currency)
232
+ formatPrice("1.2345", "KWD"); // "KWD1.235" (three-decimal currency)
231
233
 
232
234
  if (isOnSale(product)) console.log(`${getDiscountPercentage(product)}% off`);
233
235
  ```
234
236
 
237
+ ### Currency is never guessed
238
+
239
+ A storefront's currency comes from the API: `business.default_currency`, the cart's `pricing.currency`, or the product's or order's own currency. The SDK has no default currency.
240
+
241
+ - `useCimplify().currency`, `baseCurrency` and `displayCurrency` are `null` until the business loads (and stay `null` if it fails to load). `useCart().currency` is `null` until the cart or business supplies one.
242
+ - `<Price>` renders nothing when it has neither a `currency` prop nor a loaded business, and nothing when the amount is unreadable.
243
+ - `formatPrice`, `formatMoney`, `formatPriceCompact`, `formatPriceAdjustment`, `formatPriceRange`, `formatPriceWithTax`, `formatProductPrice` and `formatPlanOptions` keep `currency` optional for compatibility, but without one (or with an unreadable amount) they return `PRICE_UNAVAILABLE_LABEL` ("Price unavailable") instead of a price in a guessed currency.
244
+ - `getProductCurrency(product)` returns `undefined` when the product carries no currency.
245
+ - `formatCurrencyAmount(amount, currency, { locale, grouping })` is the one formatter underneath; it returns `null` instead of the label so you can render your own loading state.
246
+ - Every formatter rounds half-up to the currency's own minor unit (`currencyFractionDigits`: 0 for XOF, XAF, JPY, UGX, RWF; 3 for KWD, BHD, OMR; 2 otherwise), matching the server's money kernel table. Decimal strings are rounded exactly, without float drift.
247
+ - `DEFAULT_CURRENCY` is deprecated and unused.
248
+ - `money()` is deprecated: it parses strings through a float and reads unreadable text as 0. Keep wire money as the decimal string the API sent, and use `moneyFromNumber` for computed values.
249
+ - `CurrencyCode` covers every zero- and three-decimal currency in the kernel table, so `<Price currency="KWD">` typechecks.
250
+
251
+ `bun run check:money-hazards` (run in the SDK CI workflow and by `prepublishOnly`) fails when a currency default, fixed two-decimal format, float money parse, hard-coded locale or double cast is added under `src/`; the shrink-only baseline is `scripts/money-hazards-baseline.json`.
252
+
235
253
  ## Error handling
236
254
 
237
255
  ```ts
@@ -1,4 +1,4 @@
1
- export { j as AuthService, t as BusinessService, D as CartOperations, E as CatalogueQueries, S as CheckoutOperations, S as CheckoutService, U as CimplifyElement, V as CimplifyElements, af as FetchQuoteInput, ao as FxService, ar as GetProductsOptions, au as InventoryService, ay as LinkService, aC as LiteService, b1 as OrderQueries, bi as PriceQuote, bs as QuoteBundleSelectionInput, bt as QuoteCompositeSelectionInput, bu as QuoteDynamicBuckets, bv as QuoteStatus, bw as QuoteUiMessage, bx as RefreshQuoteInput, by as RefreshQuoteResult, bV as SchedulingService, cu as createElements } from './catalogue-CPTMyBUz.mjs';
2
- export { b_ as ELEMENT_TYPES, c0 as EVENT_TYPES, c4 as ElementEventType, c5 as ElementOptions, c6 as ElementType, cb as ElementsCheckoutData, cc as ElementsCheckoutResult, ce as ElementsOptions, cp as IframeToParentMessage, cH as MESSAGE_TYPES, dk as ParentToIframeMessage } from './elements-DdsRig-2.mjs';
3
- export { g as generateIdempotencyKey } from './index-DbAN_VQE.mjs';
4
- import './scheduling-DSRbbaZb.mjs';
1
+ export { j as AuthService, t as BusinessService, D as CartOperations, E as CatalogueQueries, S as CheckoutOperations, S as CheckoutService, U as CimplifyElement, V as CimplifyElements, af as FetchQuoteInput, ao as FxService, ar as GetProductsOptions, au as InventoryService, ay as LinkService, aC as LiteService, b1 as OrderQueries, bi as PriceQuote, bs as QuoteBundleSelectionInput, bt as QuoteCompositeSelectionInput, bu as QuoteDynamicBuckets, bv as QuoteStatus, bw as QuoteUiMessage, bx as RefreshQuoteInput, by as RefreshQuoteResult, bV as SchedulingService, cu as createElements } from './catalogue-FdFQiWrU.mjs';
2
+ export { b_ as ELEMENT_TYPES, c0 as EVENT_TYPES, c4 as ElementEventType, c5 as ElementOptions, c6 as ElementType, cb as ElementsCheckoutData, cc as ElementsCheckoutResult, ce as ElementsOptions, cp as IframeToParentMessage, cH as MESSAGE_TYPES, dk as ParentToIframeMessage } from './elements-ss9xZgRg.mjs';
3
+ export { g as generateIdempotencyKey } from './index-DSVkhRmW.mjs';
4
+ import './scheduling-DDmrYCr-.mjs';
@@ -1,4 +1,4 @@
1
- export { j as AuthService, t as BusinessService, D as CartOperations, E as CatalogueQueries, S as CheckoutOperations, S as CheckoutService, U as CimplifyElement, V as CimplifyElements, af as FetchQuoteInput, ao as FxService, ar as GetProductsOptions, au as InventoryService, ay as LinkService, aC as LiteService, b1 as OrderQueries, bi as PriceQuote, bs as QuoteBundleSelectionInput, bt as QuoteCompositeSelectionInput, bu as QuoteDynamicBuckets, bv as QuoteStatus, bw as QuoteUiMessage, bx as RefreshQuoteInput, by as RefreshQuoteResult, bV as SchedulingService, cu as createElements } from './catalogue-OTuS5zp-.js';
2
- export { b_ as ELEMENT_TYPES, c0 as EVENT_TYPES, c4 as ElementEventType, c5 as ElementOptions, c6 as ElementType, cb as ElementsCheckoutData, cc as ElementsCheckoutResult, ce as ElementsOptions, cp as IframeToParentMessage, cH as MESSAGE_TYPES, dk as ParentToIframeMessage } from './elements-DdsRig-2.js';
3
- export { g as generateIdempotencyKey } from './index-B98Xac8e.js';
4
- import './scheduling-D2ajXpMC.js';
1
+ export { j as AuthService, t as BusinessService, D as CartOperations, E as CatalogueQueries, S as CheckoutOperations, S as CheckoutService, U as CimplifyElement, V as CimplifyElements, af as FetchQuoteInput, ao as FxService, ar as GetProductsOptions, au as InventoryService, ay as LinkService, aC as LiteService, b1 as OrderQueries, bi as PriceQuote, bs as QuoteBundleSelectionInput, bt as QuoteCompositeSelectionInput, bu as QuoteDynamicBuckets, bv as QuoteStatus, bw as QuoteUiMessage, bx as RefreshQuoteInput, by as RefreshQuoteResult, bV as SchedulingService, cu as createElements } from './catalogue-1QcoGDO6.js';
2
+ export { b_ as ELEMENT_TYPES, c0 as EVENT_TYPES, c4 as ElementEventType, c5 as ElementOptions, c6 as ElementType, cb as ElementsCheckoutData, cc as ElementsCheckoutResult, ce as ElementsOptions, cp as IframeToParentMessage, cH as MESSAGE_TYPES, dk as ParentToIframeMessage } from './elements-ss9xZgRg.js';
3
+ export { g as generateIdempotencyKey } from './index-DQK8sTfu.js';
4
+ import './scheduling-D9WwOxbo.js';
package/dist/advanced.js CHANGED
@@ -1,86 +1,86 @@
1
1
  'use strict';
2
2
 
3
- var chunkOMTVH334_js = require('./chunk-OMTVH334.js');
3
+ var chunk6QANXRUM_js = require('./chunk-6QANXRUM.js');
4
4
  require('./chunk-GTJWQAGU.js');
5
- require('./chunk-DFZWHNRG.js');
6
- require('./chunk-UCR5HRYM.js');
5
+ require('./chunk-QOCHWR4V.js');
6
+ require('./chunk-NFXCKTE2.js');
7
7
  require('./chunk-JGBCIKJV.js');
8
8
 
9
9
 
10
10
 
11
11
  Object.defineProperty(exports, "AuthService", {
12
12
  enumerable: true,
13
- get: function () { return chunkOMTVH334_js.AuthService; }
13
+ get: function () { return chunk6QANXRUM_js.AuthService; }
14
14
  });
15
15
  Object.defineProperty(exports, "BusinessService", {
16
16
  enumerable: true,
17
- get: function () { return chunkOMTVH334_js.BusinessService; }
17
+ get: function () { return chunk6QANXRUM_js.BusinessService; }
18
18
  });
19
19
  Object.defineProperty(exports, "CartOperations", {
20
20
  enumerable: true,
21
- get: function () { return chunkOMTVH334_js.CartOperations; }
21
+ get: function () { return chunk6QANXRUM_js.CartOperations; }
22
22
  });
23
23
  Object.defineProperty(exports, "CatalogueQueries", {
24
24
  enumerable: true,
25
- get: function () { return chunkOMTVH334_js.CatalogueQueries; }
25
+ get: function () { return chunk6QANXRUM_js.CatalogueQueries; }
26
26
  });
27
27
  Object.defineProperty(exports, "CheckoutOperations", {
28
28
  enumerable: true,
29
- get: function () { return chunkOMTVH334_js.CheckoutService; }
29
+ get: function () { return chunk6QANXRUM_js.CheckoutService; }
30
30
  });
31
31
  Object.defineProperty(exports, "CheckoutService", {
32
32
  enumerable: true,
33
- get: function () { return chunkOMTVH334_js.CheckoutService; }
33
+ get: function () { return chunk6QANXRUM_js.CheckoutService; }
34
34
  });
35
35
  Object.defineProperty(exports, "CimplifyElement", {
36
36
  enumerable: true,
37
- get: function () { return chunkOMTVH334_js.CimplifyElement; }
37
+ get: function () { return chunk6QANXRUM_js.CimplifyElement; }
38
38
  });
39
39
  Object.defineProperty(exports, "CimplifyElements", {
40
40
  enumerable: true,
41
- get: function () { return chunkOMTVH334_js.CimplifyElements; }
41
+ get: function () { return chunk6QANXRUM_js.CimplifyElements; }
42
42
  });
43
43
  Object.defineProperty(exports, "ELEMENT_TYPES", {
44
44
  enumerable: true,
45
- get: function () { return chunkOMTVH334_js.ELEMENT_TYPES; }
45
+ get: function () { return chunk6QANXRUM_js.ELEMENT_TYPES; }
46
46
  });
47
47
  Object.defineProperty(exports, "EVENT_TYPES", {
48
48
  enumerable: true,
49
- get: function () { return chunkOMTVH334_js.EVENT_TYPES; }
49
+ get: function () { return chunk6QANXRUM_js.EVENT_TYPES; }
50
50
  });
51
51
  Object.defineProperty(exports, "FxService", {
52
52
  enumerable: true,
53
- get: function () { return chunkOMTVH334_js.FxService; }
53
+ get: function () { return chunk6QANXRUM_js.FxService; }
54
54
  });
55
55
  Object.defineProperty(exports, "InventoryService", {
56
56
  enumerable: true,
57
- get: function () { return chunkOMTVH334_js.InventoryService; }
57
+ get: function () { return chunk6QANXRUM_js.InventoryService; }
58
58
  });
59
59
  Object.defineProperty(exports, "LinkService", {
60
60
  enumerable: true,
61
- get: function () { return chunkOMTVH334_js.LinkService; }
61
+ get: function () { return chunk6QANXRUM_js.LinkService; }
62
62
  });
63
63
  Object.defineProperty(exports, "LiteService", {
64
64
  enumerable: true,
65
- get: function () { return chunkOMTVH334_js.LiteService; }
65
+ get: function () { return chunk6QANXRUM_js.LiteService; }
66
66
  });
67
67
  Object.defineProperty(exports, "MESSAGE_TYPES", {
68
68
  enumerable: true,
69
- get: function () { return chunkOMTVH334_js.MESSAGE_TYPES; }
69
+ get: function () { return chunk6QANXRUM_js.MESSAGE_TYPES; }
70
70
  });
71
71
  Object.defineProperty(exports, "OrderQueries", {
72
72
  enumerable: true,
73
- get: function () { return chunkOMTVH334_js.OrderQueries; }
73
+ get: function () { return chunk6QANXRUM_js.OrderQueries; }
74
74
  });
75
75
  Object.defineProperty(exports, "SchedulingService", {
76
76
  enumerable: true,
77
- get: function () { return chunkOMTVH334_js.SchedulingService; }
77
+ get: function () { return chunk6QANXRUM_js.SchedulingService; }
78
78
  });
79
79
  Object.defineProperty(exports, "createElements", {
80
80
  enumerable: true,
81
- get: function () { return chunkOMTVH334_js.createElements; }
81
+ get: function () { return chunk6QANXRUM_js.createElements; }
82
82
  });
83
83
  Object.defineProperty(exports, "generateIdempotencyKey", {
84
84
  enumerable: true,
85
- get: function () { return chunkOMTVH334_js.generateIdempotencyKey; }
85
+ get: function () { return chunk6QANXRUM_js.generateIdempotencyKey; }
86
86
  });
package/dist/advanced.mjs CHANGED
@@ -1,5 +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-A36JRXXH.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-KWZHIPRN.mjs';
2
2
  import './chunk-E6QQKDNE.mjs';
3
- import './chunk-6ETDAU62.mjs';
4
- import './chunk-GCKWKLZF.mjs';
3
+ import './chunk-B45X3HPO.mjs';
4
+ import './chunk-FT6GFYJL.mjs';
5
5
  import './chunk-25T4JHEA.mjs';
@@ -1,5 +1,5 @@
1
- import { d as CimplifyError, b6 as ClaimedCustomer, at as Cart, o as UICart, ax as CartItem, bM as DestinationQuoteInput, bK as DestinationQuote, aC as CartSummary, B as AddToCartInput, az as CartMutationResult, e_ as UpdateCartItemInput, bQ as DiscountDetails, M as Money, a as ChosenPrice, C as CurrencyCode, cz as LineConfiguration, cS as NextAction, aj as CHECKOUT_NEXT_ACTION, ch as ErrorCode, aJ as CheckoutCollectionOptions, aP as CheckoutFormData, a$ as CheckoutResult, ds as PaymentMethod, cq as InitializePaymentResult, eI as SubmitAuthorizationInput, dC as PaymentStatusResponse, aN as CheckoutCustomerInfo, dN as ProcessAndResolveOptions, dP as ProcessCheckoutResult, n as ConfirmPurchaseIntentRequest, l as ConfirmPurchaseIntentResponse, dc as PURCHASE_INTENT_RESOLVE_STATUS, e4 as PurchaseIntentActionResponse, d5 as PURCHASE_INTENT_ACTION_DECISION, eJ as SubmitPurchaseIntentActionRequest, m as PURCHASE_INTENT_CONFIRM_STATUS, g as PurchaseIntentResolution, cL as MintPurchaseIntentRequest, eh as PurchaseIntentView, dG as PreparePurchaseIntentRequest, f5 as VariantDetails, f6 as VariantDetailsDTO, u as AddOnDetails, x as AddOnOptionDetails, v as AddOnGroupDetails, a8 as BundleSelectionData, bm as CompositeSelectionData, bz as CustomerInputValue, ep as RequestOtpInput, eq as RequestOtpResult$1, fc as VerifyOtpInput, Q as AuthResponse, cD as LinkStatusResult, cA as LinkData, by as CustomerAddress, bB as CustomerMobileMoney, bA as CustomerLinkPreferences, bx as Customer, br as ContactChangeInput, bq as ContactChangeChallenge, bp as ConfirmContactChangeInput, cg as EnrollmentData, cB as LinkEnrollResult, eA as SaveDetailsInput, eB as SaveDetailsResult, bt as CreateAddressInput, eZ as UpdateAddressInput, bu as CreateMobileMoneyInput, fb as VerifyMobileMoneyResult, cC as LinkSession, es as RevokeSessionResult, er as RevokeAllSessionsResult, fp as components, P as Product, eK as Subscription, eO as SubscriptionWithDetails, ce as ElementsOptions, c6 as ElementType, c5 as ElementOptions, c4 as ElementEventType, c2 as ElementEventHandler, c3 as ElementEventMap, p as CheckoutCartData, dk as ParentToIframeMessage, cp as IframeToParentMessage, V as AuthenticatedData, cb as ElementsCheckoutData, cc as ElementsCheckoutResult, dO as ProcessCheckoutOptions, s as AbortablePromise, G as AddressInfo, dt as PaymentMethodInfo, c7 as ElementsAuthContactType, c as Category, z as AddOnWithOptions, di as Pagination, f as ProductWithDetails, d$ as ProductVariant, e$ as VariantAxis, f0 as VariantAxisSelection, t as AddOn, e as Collection, ab as BundleSummary, a1 as Bundle, bf as Composite, bd as ComponentSelectionInput, bk as CompositePriceResult, b as SaleInfo, dY as ProductTaxonomy, eT as TaxonomyWithChildren, cf as EligiblePlansQuery, dT as ProductBillingPlan, dZ as ProductTimeProfile, dS as ProductAvailabilityNow, bH as Deal, dU as ProductDealInfo, bR as DiscountValidation, eQ as TagsResponse, bv as CustomAttributeDefinition, bw as CustomAttributeValue, e1 as PropertyFacet, eS as TaxonomyAttributeTemplate, cu as KnowledgeArticle } from './elements-DdsRig-2.js';
2
- import { k as Service, G as GetAvailableSlotsInput, A as AvailableSlot, e as CheckSlotAvailabilityInput, f as CheckSlotAvailabilityResult, l as ServiceAvailabilityParams, m as ServiceAvailabilityResult, c as BookingWithDetails, g as CustomerBooking, C as CancelBookingInput, d as CancelBookingResult, R as RescheduleBookingInput, i as RescheduleBookingResult } from './scheduling-D2ajXpMC.js';
1
+ import { d as CimplifyError, b6 as ClaimedCustomer, at as Cart, o as UICart, ax as CartItem, bM as DestinationQuoteInput, bK as DestinationQuote, aC as CartSummary, B as AddToCartInput, az as CartMutationResult, e_ as UpdateCartItemInput, bQ as DiscountDetails, M as Money, a as ChosenPrice, C as CurrencyCode, cz as LineConfiguration, cS as NextAction, aj as CHECKOUT_NEXT_ACTION, ch as ErrorCode, aJ as CheckoutCollectionOptions, aP as CheckoutFormData, a$ as CheckoutResult, ds as PaymentMethod, cq as InitializePaymentResult, eI as SubmitAuthorizationInput, dC as PaymentStatusResponse, aN as CheckoutCustomerInfo, dN as ProcessAndResolveOptions, dP as ProcessCheckoutResult, n as ConfirmPurchaseIntentRequest, l as ConfirmPurchaseIntentResponse, dc as PURCHASE_INTENT_RESOLVE_STATUS, e4 as PurchaseIntentActionResponse, d5 as PURCHASE_INTENT_ACTION_DECISION, eJ as SubmitPurchaseIntentActionRequest, m as PURCHASE_INTENT_CONFIRM_STATUS, g as PurchaseIntentResolution, cL as MintPurchaseIntentRequest, eh as PurchaseIntentView, dG as PreparePurchaseIntentRequest, f5 as VariantDetails, f6 as VariantDetailsDTO, u as AddOnDetails, x as AddOnOptionDetails, v as AddOnGroupDetails, a8 as BundleSelectionData, bm as CompositeSelectionData, bz as CustomerInputValue, ep as RequestOtpInput, eq as RequestOtpResult$1, fc as VerifyOtpInput, Q as AuthResponse, cD as LinkStatusResult, cA as LinkData, by as CustomerAddress, bB as CustomerMobileMoney, bA as CustomerLinkPreferences, bx as Customer, br as ContactChangeInput, bq as ContactChangeChallenge, bp as ConfirmContactChangeInput, cg as EnrollmentData, cB as LinkEnrollResult, eA as SaveDetailsInput, eB as SaveDetailsResult, bt as CreateAddressInput, eZ as UpdateAddressInput, bu as CreateMobileMoneyInput, fb as VerifyMobileMoneyResult, cC as LinkSession, es as RevokeSessionResult, er as RevokeAllSessionsResult, fp as components, P as Product, eK as Subscription, eO as SubscriptionWithDetails, ce as ElementsOptions, c6 as ElementType, c5 as ElementOptions, c4 as ElementEventType, c2 as ElementEventHandler, c3 as ElementEventMap, p as CheckoutCartData, dk as ParentToIframeMessage, cp as IframeToParentMessage, V as AuthenticatedData, cb as ElementsCheckoutData, cc as ElementsCheckoutResult, dO as ProcessCheckoutOptions, s as AbortablePromise, G as AddressInfo, dt as PaymentMethodInfo, c7 as ElementsAuthContactType, c as Category, z as AddOnWithOptions, di as Pagination, f as ProductWithDetails, d$ as ProductVariant, e$ as VariantAxis, f0 as VariantAxisSelection, t as AddOn, e as Collection, ab as BundleSummary, a1 as Bundle, bf as Composite, bd as ComponentSelectionInput, bk as CompositePriceResult, b as SaleInfo, dY as ProductTaxonomy, eT as TaxonomyWithChildren, cf as EligiblePlansQuery, dT as ProductBillingPlan, dZ as ProductTimeProfile, dS as ProductAvailabilityNow, bH as Deal, dU as ProductDealInfo, bR as DiscountValidation, eQ as TagsResponse, bv as CustomAttributeDefinition, bw as CustomAttributeValue, e1 as PropertyFacet, eS as TaxonomyAttributeTemplate, cu as KnowledgeArticle } from './elements-ss9xZgRg.js';
2
+ import { k as Service, G as GetAvailableSlotsInput, A as AvailableSlot, e as CheckSlotAvailabilityInput, f as CheckSlotAvailabilityResult, l as ServiceAvailabilityParams, m as ServiceAvailabilityResult, c as BookingWithDetails, g as CustomerBooking, C as CancelBookingInput, d as CancelBookingResult, R as RescheduleBookingInput, i as RescheduleBookingResult } from './scheduling-D9WwOxbo.js';
3
3
 
4
4
  interface RequestContext {
5
5
  method: "GET" | "POST" | "PATCH" | "DELETE";
@@ -1,5 +1,5 @@
1
- import { d as CimplifyError, b6 as ClaimedCustomer, at as Cart, o as UICart, ax as CartItem, bM as DestinationQuoteInput, bK as DestinationQuote, aC as CartSummary, B as AddToCartInput, az as CartMutationResult, e_ as UpdateCartItemInput, bQ as DiscountDetails, M as Money, a as ChosenPrice, C as CurrencyCode, cz as LineConfiguration, cS as NextAction, aj as CHECKOUT_NEXT_ACTION, ch as ErrorCode, aJ as CheckoutCollectionOptions, aP as CheckoutFormData, a$ as CheckoutResult, ds as PaymentMethod, cq as InitializePaymentResult, eI as SubmitAuthorizationInput, dC as PaymentStatusResponse, aN as CheckoutCustomerInfo, dN as ProcessAndResolveOptions, dP as ProcessCheckoutResult, n as ConfirmPurchaseIntentRequest, l as ConfirmPurchaseIntentResponse, dc as PURCHASE_INTENT_RESOLVE_STATUS, e4 as PurchaseIntentActionResponse, d5 as PURCHASE_INTENT_ACTION_DECISION, eJ as SubmitPurchaseIntentActionRequest, m as PURCHASE_INTENT_CONFIRM_STATUS, g as PurchaseIntentResolution, cL as MintPurchaseIntentRequest, eh as PurchaseIntentView, dG as PreparePurchaseIntentRequest, f5 as VariantDetails, f6 as VariantDetailsDTO, u as AddOnDetails, x as AddOnOptionDetails, v as AddOnGroupDetails, a8 as BundleSelectionData, bm as CompositeSelectionData, bz as CustomerInputValue, ep as RequestOtpInput, eq as RequestOtpResult$1, fc as VerifyOtpInput, Q as AuthResponse, cD as LinkStatusResult, cA as LinkData, by as CustomerAddress, bB as CustomerMobileMoney, bA as CustomerLinkPreferences, bx as Customer, br as ContactChangeInput, bq as ContactChangeChallenge, bp as ConfirmContactChangeInput, cg as EnrollmentData, cB as LinkEnrollResult, eA as SaveDetailsInput, eB as SaveDetailsResult, bt as CreateAddressInput, eZ as UpdateAddressInput, bu as CreateMobileMoneyInput, fb as VerifyMobileMoneyResult, cC as LinkSession, es as RevokeSessionResult, er as RevokeAllSessionsResult, fp as components, P as Product, eK as Subscription, eO as SubscriptionWithDetails, ce as ElementsOptions, c6 as ElementType, c5 as ElementOptions, c4 as ElementEventType, c2 as ElementEventHandler, c3 as ElementEventMap, p as CheckoutCartData, dk as ParentToIframeMessage, cp as IframeToParentMessage, V as AuthenticatedData, cb as ElementsCheckoutData, cc as ElementsCheckoutResult, dO as ProcessCheckoutOptions, s as AbortablePromise, G as AddressInfo, dt as PaymentMethodInfo, c7 as ElementsAuthContactType, c as Category, z as AddOnWithOptions, di as Pagination, f as ProductWithDetails, d$ as ProductVariant, e$ as VariantAxis, f0 as VariantAxisSelection, t as AddOn, e as Collection, ab as BundleSummary, a1 as Bundle, bf as Composite, bd as ComponentSelectionInput, bk as CompositePriceResult, b as SaleInfo, dY as ProductTaxonomy, eT as TaxonomyWithChildren, cf as EligiblePlansQuery, dT as ProductBillingPlan, dZ as ProductTimeProfile, dS as ProductAvailabilityNow, bH as Deal, dU as ProductDealInfo, bR as DiscountValidation, eQ as TagsResponse, bv as CustomAttributeDefinition, bw as CustomAttributeValue, e1 as PropertyFacet, eS as TaxonomyAttributeTemplate, cu as KnowledgeArticle } from './elements-DdsRig-2.mjs';
2
- import { k as Service, G as GetAvailableSlotsInput, A as AvailableSlot, e as CheckSlotAvailabilityInput, f as CheckSlotAvailabilityResult, l as ServiceAvailabilityParams, m as ServiceAvailabilityResult, c as BookingWithDetails, g as CustomerBooking, C as CancelBookingInput, d as CancelBookingResult, R as RescheduleBookingInput, i as RescheduleBookingResult } from './scheduling-DSRbbaZb.mjs';
1
+ import { d as CimplifyError, b6 as ClaimedCustomer, at as Cart, o as UICart, ax as CartItem, bM as DestinationQuoteInput, bK as DestinationQuote, aC as CartSummary, B as AddToCartInput, az as CartMutationResult, e_ as UpdateCartItemInput, bQ as DiscountDetails, M as Money, a as ChosenPrice, C as CurrencyCode, cz as LineConfiguration, cS as NextAction, aj as CHECKOUT_NEXT_ACTION, ch as ErrorCode, aJ as CheckoutCollectionOptions, aP as CheckoutFormData, a$ as CheckoutResult, ds as PaymentMethod, cq as InitializePaymentResult, eI as SubmitAuthorizationInput, dC as PaymentStatusResponse, aN as CheckoutCustomerInfo, dN as ProcessAndResolveOptions, dP as ProcessCheckoutResult, n as ConfirmPurchaseIntentRequest, l as ConfirmPurchaseIntentResponse, dc as PURCHASE_INTENT_RESOLVE_STATUS, e4 as PurchaseIntentActionResponse, d5 as PURCHASE_INTENT_ACTION_DECISION, eJ as SubmitPurchaseIntentActionRequest, m as PURCHASE_INTENT_CONFIRM_STATUS, g as PurchaseIntentResolution, cL as MintPurchaseIntentRequest, eh as PurchaseIntentView, dG as PreparePurchaseIntentRequest, f5 as VariantDetails, f6 as VariantDetailsDTO, u as AddOnDetails, x as AddOnOptionDetails, v as AddOnGroupDetails, a8 as BundleSelectionData, bm as CompositeSelectionData, bz as CustomerInputValue, ep as RequestOtpInput, eq as RequestOtpResult$1, fc as VerifyOtpInput, Q as AuthResponse, cD as LinkStatusResult, cA as LinkData, by as CustomerAddress, bB as CustomerMobileMoney, bA as CustomerLinkPreferences, bx as Customer, br as ContactChangeInput, bq as ContactChangeChallenge, bp as ConfirmContactChangeInput, cg as EnrollmentData, cB as LinkEnrollResult, eA as SaveDetailsInput, eB as SaveDetailsResult, bt as CreateAddressInput, eZ as UpdateAddressInput, bu as CreateMobileMoneyInput, fb as VerifyMobileMoneyResult, cC as LinkSession, es as RevokeSessionResult, er as RevokeAllSessionsResult, fp as components, P as Product, eK as Subscription, eO as SubscriptionWithDetails, ce as ElementsOptions, c6 as ElementType, c5 as ElementOptions, c4 as ElementEventType, c2 as ElementEventHandler, c3 as ElementEventMap, p as CheckoutCartData, dk as ParentToIframeMessage, cp as IframeToParentMessage, V as AuthenticatedData, cb as ElementsCheckoutData, cc as ElementsCheckoutResult, dO as ProcessCheckoutOptions, s as AbortablePromise, G as AddressInfo, dt as PaymentMethodInfo, c7 as ElementsAuthContactType, c as Category, z as AddOnWithOptions, di as Pagination, f as ProductWithDetails, d$ as ProductVariant, e$ as VariantAxis, f0 as VariantAxisSelection, t as AddOn, e as Collection, ab as BundleSummary, a1 as Bundle, bf as Composite, bd as ComponentSelectionInput, bk as CompositePriceResult, b as SaleInfo, dY as ProductTaxonomy, eT as TaxonomyWithChildren, cf as EligiblePlansQuery, dT as ProductBillingPlan, dZ as ProductTimeProfile, dS as ProductAvailabilityNow, bH as Deal, dU as ProductDealInfo, bR as DiscountValidation, eQ as TagsResponse, bv as CustomAttributeDefinition, bw as CustomAttributeValue, e1 as PropertyFacet, eS as TaxonomyAttributeTemplate, cu as KnowledgeArticle } from './elements-ss9xZgRg.mjs';
2
+ import { k as Service, G as GetAvailableSlotsInput, A as AvailableSlot, e as CheckSlotAvailabilityInput, f as CheckSlotAvailabilityResult, l as ServiceAvailabilityParams, m as ServiceAvailabilityResult, c as BookingWithDetails, g as CustomerBooking, C as CancelBookingInput, d as CancelBookingResult, R as RescheduleBookingInput, i as RescheduleBookingResult } from './scheduling-DDmrYCr-.mjs';
3
3
 
4
4
  interface RequestContext {
5
5
  method: "GET" | "POST" | "PATCH" | "DELETE";
@@ -1,7 +1,7 @@
1
- import { createMockApp } from './chunk-IZDWAL53.mjs';
2
- import { createCimplifyClient } from './chunk-BTUSVHIE.mjs';
1
+ import { createMockApp } from './chunk-UJDQQTBS.mjs';
2
+ import { createCimplifyClient } from './chunk-WLSU5QJT.mjs';
3
3
  import { PAYMENT_METHOD, ORDER_TYPE, AUTHORIZATION_TYPE, CHECKOUT_NEXT_ACTION } from './chunk-E6QQKDNE.mjs';
4
- import { PURCHASE_INTENT_SOURCE_KIND, PURCHASE_INTENT_SELLABLE_KIND, PURCHASE_INTENT_OFFER_KIND, PURCHASE_INTENT_LINE_CONFIGURATION_KIND, PURCHASE_INTENT_PAYMENT_METHOD, PURCHASE_INTENT_MOBILE_MONEY_NETWORK, MOBILE_MONEY_TENDER_AUTHORITY_KIND, CHECKOUT_COMPLIANCE_REASON, CHECKOUT_COMPLIANCE_LANE, PURCHASE_SURFACE, PURCHASE_DISPOSITION, PAYMENT_INSTRUMENT_DISPLAY_KIND, CHECKOUT_PROTECTION_STATUS, PAYMENT_OPTION_NEXT_ACTION, PAYMENT_OPTION_STATUS, PURCHASE_INTENT_PAYMENT_PROVIDER, PAYMENT_COLLECTION_MODE, PURCHASING_PRINCIPAL_KIND, CHECKOUT_PURCHASE_SURFACE, NATIVE_PURCHASE_PLATFORM, PURCHASE_INTENT_STATUS, CHECKOUT_TERMS_COMPONENT, CHECKOUT_TERMS_DELTA_KIND, CHECKOUT_MATERIAL_TERMS_COMPONENT, PURCHASE_INTENT_CONFIRM_STATUS, CHECKOUT_INVALIDATION_REASON } from './chunk-GCKWKLZF.mjs';
4
+ import { PURCHASE_INTENT_SOURCE_KIND, PURCHASE_INTENT_SELLABLE_KIND, PURCHASE_INTENT_OFFER_KIND, PURCHASE_INTENT_LINE_CONFIGURATION_KIND, PURCHASE_INTENT_PAYMENT_METHOD, PURCHASE_INTENT_MOBILE_MONEY_NETWORK, MOBILE_MONEY_TENDER_AUTHORITY_KIND, CHECKOUT_COMPLIANCE_REASON, CHECKOUT_COMPLIANCE_LANE, PURCHASE_SURFACE, PURCHASE_DISPOSITION, PAYMENT_INSTRUMENT_DISPLAY_KIND, CHECKOUT_PROTECTION_STATUS, PAYMENT_OPTION_NEXT_ACTION, PAYMENT_OPTION_STATUS, PURCHASE_INTENT_PAYMENT_PROVIDER, PAYMENT_COLLECTION_MODE, PURCHASING_PRINCIPAL_KIND, CHECKOUT_PURCHASE_SURFACE, NATIVE_PURCHASE_PLATFORM, PURCHASE_INTENT_STATUS, CHECKOUT_TERMS_COMPONENT, CHECKOUT_TERMS_DELTA_KIND, CHECKOUT_MATERIAL_TERMS_COMPONENT, PURCHASE_INTENT_CONFIRM_STATUS, CHECKOUT_INVALIDATION_REASON } from './chunk-FT6GFYJL.mjs';
5
5
  import { z } from 'zod';
6
6
 
7
7
  // src/mock/seeds/names.ts