@cimplify/sdk 0.102.0 → 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 (68) 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-DCMXUKDQ.mjs → chunk-C2JSNJUC.mjs} +404 -95
  6. package/dist/chunk-CNN7Z2IP.js +125 -0
  7. package/dist/{chunk-DKLHCZ5M.mjs → chunk-GERXZQSX.mjs} +487 -11
  8. package/dist/chunk-GOHSXBKW.mjs +105 -0
  9. package/dist/{chunk-4KNFBPV2.mjs → chunk-H7ACMHM3.mjs} +32 -14
  10. package/dist/{chunk-Z3K2D3TE.mjs → chunk-J6PNHDHL.mjs} +453 -483
  11. package/dist/{chunk-NIOUSKQQ.js → chunk-JG5CQNCB.js} +5 -0
  12. package/dist/{chunk-YER7DIOM.js → chunk-JSWJ4XDE.js} +471 -519
  13. package/dist/{chunk-DLW3RWRK.mjs → chunk-M4URVKHE.mjs} +46 -12
  14. package/dist/{chunk-WMEC5JWN.js → chunk-NNG6IFFX.js} +50 -13
  15. package/dist/{chunk-LOWSMGRT.js → chunk-QOWPGS7Z.js} +34 -16
  16. package/dist/{chunk-YDA46OZ6.js → chunk-R6OLQ33I.js} +560 -80
  17. package/dist/{chunk-EAZGA7LD.js → chunk-VIL6IQCG.js} +406 -97
  18. package/dist/{chunk-O3YUHLZL.mjs → chunk-VNPEYLB2.mjs} +5 -0
  19. package/dist/{client-B40KFazg.d.ts → client-BfpNjJ_a.d.mts} +90 -299
  20. package/dist/{client-BizGfqB7.d.mts → client-DHBwvh7U.d.ts} +90 -299
  21. package/dist/{client-BdErclfU.d.mts → client-DpqRobY9.d.mts} +2 -2
  22. package/dist/{client-nsiMwuC1.d.ts → client-Dqg2mc-7.d.ts} +2 -2
  23. package/dist/{index-DpmnI__D.d.mts → index-C8uDqLwJ.d.ts} +14 -4
  24. package/dist/{index-nEyXWIyR.d.ts → index-e2y6AK70.d.mts} +14 -4
  25. package/dist/index.d.mts +81 -8
  26. package/dist/index.d.ts +81 -8
  27. package/dist/index.js +202 -169
  28. package/dist/index.mjs +6 -5
  29. package/dist/link-cuNVYc2s.d.mts +297 -0
  30. package/dist/link-cuNVYc2s.d.ts +297 -0
  31. package/dist/mock/cli.mjs +410 -94
  32. package/dist/mock/library.js +410 -94
  33. package/dist/mock/library.mjs +410 -94
  34. package/dist/mock/msw.js +410 -94
  35. package/dist/mock/msw.mjs +410 -94
  36. package/dist/{product-Byf0unSy.d.mts → payment-H5LoIvXU.d.mts} +189 -7
  37. package/dist/{product-Byf0unSy.d.ts → payment-H5LoIvXU.d.ts} +189 -7
  38. package/dist/{price-CS4E5zLS.d.mts → price-BvePgDXe.d.mts} +1 -1
  39. package/dist/{price-BstChV9a.d.ts → price-C2RqscMY.d.ts} +1 -1
  40. package/dist/react.d.mts +4 -4
  41. package/dist/react.d.ts +4 -4
  42. package/dist/react.js +141 -140
  43. package/dist/react.mjs +5 -4
  44. package/dist/{server-DqbZh8Bk.d.mts → server-C7FyLdrz.d.mts} +11 -9
  45. package/dist/{server-Cj40R2ZD.d.ts → server-DoXIpSd7.d.ts} +11 -9
  46. package/dist/server.d.mts +4 -4
  47. package/dist/server.d.ts +4 -4
  48. package/dist/server.js +11 -10
  49. package/dist/server.mjs +5 -4
  50. package/dist/testing/msw.d.mts +2 -2
  51. package/dist/testing/msw.d.ts +2 -2
  52. package/dist/testing/msw.js +4 -3
  53. package/dist/testing/msw.mjs +3 -2
  54. package/dist/testing/suite.d.mts +6 -6
  55. package/dist/testing/suite.d.ts +6 -6
  56. package/dist/testing/suite.js +26 -25
  57. package/dist/testing/suite.mjs +7 -6
  58. package/dist/testing.d.mts +154 -55
  59. package/dist/testing.d.ts +154 -55
  60. package/dist/testing.js +83 -82
  61. package/dist/testing.mjs +8 -7
  62. package/dist/utils.d.mts +4 -4
  63. package/dist/utils.d.ts +4 -4
  64. package/dist/utils.js +37 -29
  65. package/dist/utils.mjs +2 -2
  66. package/package.json +7 -1
  67. package/dist/payment-l0rkieEQ.d.mts +0 -113
  68. package/dist/payment-vzNnIi1n.d.ts +0 -113
package/dist/testing.js CHANGED
@@ -1,30 +1,31 @@
1
1
  'use strict';
2
2
 
3
- var chunkLOWSMGRT_js = require('./chunk-LOWSMGRT.js');
4
- require('./chunk-EAZGA7LD.js');
3
+ var chunkQOWPGS7Z_js = require('./chunk-QOWPGS7Z.js');
4
+ require('./chunk-VIL6IQCG.js');
5
5
  require('./chunk-XREIZ56K.js');
6
- require('./chunk-YDA46OZ6.js');
7
- require('./chunk-YER7DIOM.js');
8
- require('./chunk-WMEC5JWN.js');
9
- require('./chunk-NIOUSKQQ.js');
6
+ require('./chunk-R6OLQ33I.js');
7
+ require('./chunk-JSWJ4XDE.js');
8
+ require('./chunk-CNN7Z2IP.js');
9
+ require('./chunk-NNG6IFFX.js');
10
+ require('./chunk-JG5CQNCB.js');
10
11
  require('./chunk-OWW5GUSB.js');
11
12
  var zod = require('zod');
12
13
 
13
14
  var PUBLIC_SCHEMAS = {
14
- Brand: chunkLOWSMGRT_js.BrandSchema,
15
- AddItemPayload: chunkLOWSMGRT_js.AddItemPayloadSchema,
16
- Cart: chunkLOWSMGRT_js.CartSchema,
17
- CartItem: chunkLOWSMGRT_js.CartItemSchema,
18
- CartPricing: chunkLOWSMGRT_js.CartPricingSchema,
19
- CheckoutBody: chunkLOWSMGRT_js.CheckoutBodySchema,
20
- CheckoutResponse: chunkLOWSMGRT_js.CheckoutResponseSchema,
21
- VariantInfo: chunkLOWSMGRT_js.VariantInfoSchema
15
+ Brand: chunkQOWPGS7Z_js.BrandSchema,
16
+ AddItemPayload: chunkQOWPGS7Z_js.AddItemPayloadSchema,
17
+ Cart: chunkQOWPGS7Z_js.CartSchema,
18
+ CartItem: chunkQOWPGS7Z_js.CartItemSchema,
19
+ CartPricing: chunkQOWPGS7Z_js.CartPricingSchema,
20
+ CheckoutBody: chunkQOWPGS7Z_js.CheckoutBodySchema,
21
+ CheckoutResponse: chunkQOWPGS7Z_js.CheckoutResponseSchema,
22
+ VariantInfo: chunkQOWPGS7Z_js.VariantInfoSchema
22
23
  };
23
24
  function exportJsonSchemas() {
24
25
  const out = {};
25
26
  for (const [name, schema] of Object.entries(PUBLIC_SCHEMAS)) {
26
- const meta = chunkLOWSMGRT_js.cimplifyRegistry.get(schema);
27
- const json = zod.z.toJSONSchema(schema, { metadata: chunkLOWSMGRT_js.cimplifyRegistry });
27
+ const meta = chunkQOWPGS7Z_js.cimplifyRegistry.get(schema);
28
+ const json = zod.z.toJSONSchema(schema, { metadata: chunkQOWPGS7Z_js.cimplifyRegistry });
28
29
  if (meta) {
29
30
  json.$id = meta.id;
30
31
  json["x-cimplify-version"] = meta.version;
@@ -36,16 +37,16 @@ function exportJsonSchemas() {
36
37
  function listRegisteredSchemas() {
37
38
  const entries = [];
38
39
  for (const schema of [
39
- chunkLOWSMGRT_js.BrandSchema,
40
- chunkLOWSMGRT_js.AddItemPayloadSchema,
41
- chunkLOWSMGRT_js.CartSchema,
42
- chunkLOWSMGRT_js.CartItemSchema,
43
- chunkLOWSMGRT_js.CartPricingSchema,
44
- chunkLOWSMGRT_js.CheckoutBodySchema,
45
- chunkLOWSMGRT_js.CheckoutResponseSchema,
46
- chunkLOWSMGRT_js.VariantInfoSchema
40
+ chunkQOWPGS7Z_js.BrandSchema,
41
+ chunkQOWPGS7Z_js.AddItemPayloadSchema,
42
+ chunkQOWPGS7Z_js.CartSchema,
43
+ chunkQOWPGS7Z_js.CartItemSchema,
44
+ chunkQOWPGS7Z_js.CartPricingSchema,
45
+ chunkQOWPGS7Z_js.CheckoutBodySchema,
46
+ chunkQOWPGS7Z_js.CheckoutResponseSchema,
47
+ chunkQOWPGS7Z_js.VariantInfoSchema
47
48
  ]) {
48
- const meta = chunkLOWSMGRT_js.cimplifyRegistry.get(schema);
49
+ const meta = chunkQOWPGS7Z_js.cimplifyRegistry.get(schema);
49
50
  if (meta) entries.push({ schema, meta });
50
51
  }
51
52
  return entries;
@@ -53,231 +54,231 @@ function listRegisteredSchemas() {
53
54
 
54
55
  Object.defineProperty(exports, "AddItemPayloadSchema", {
55
56
  enumerable: true,
56
- get: function () { return chunkLOWSMGRT_js.AddItemPayloadSchema; }
57
+ get: function () { return chunkQOWPGS7Z_js.AddItemPayloadSchema; }
57
58
  });
58
59
  Object.defineProperty(exports, "AddOnDetailsSchema", {
59
60
  enumerable: true,
60
- get: function () { return chunkLOWSMGRT_js.AddOnDetailsSchema; }
61
+ get: function () { return chunkQOWPGS7Z_js.AddOnDetailsSchema; }
61
62
  });
62
63
  Object.defineProperty(exports, "AddOnGroupDetailsSchema", {
63
64
  enumerable: true,
64
- get: function () { return chunkLOWSMGRT_js.AddOnGroupDetailsSchema; }
65
+ get: function () { return chunkQOWPGS7Z_js.AddOnGroupDetailsSchema; }
65
66
  });
66
67
  Object.defineProperty(exports, "AddOnInDetailsSchema", {
67
68
  enumerable: true,
68
- get: function () { return chunkLOWSMGRT_js.AddOnInDetailsSchema; }
69
+ get: function () { return chunkQOWPGS7Z_js.AddOnInDetailsSchema; }
69
70
  });
70
71
  Object.defineProperty(exports, "AddOnOptionDetailsSchema", {
71
72
  enumerable: true,
72
- get: function () { return chunkLOWSMGRT_js.AddOnOptionDetailsSchema; }
73
+ get: function () { return chunkQOWPGS7Z_js.AddOnOptionDetailsSchema; }
73
74
  });
74
75
  Object.defineProperty(exports, "AuthorizationTypeSchema", {
75
76
  enumerable: true,
76
- get: function () { return chunkLOWSMGRT_js.AuthorizationTypeSchema; }
77
+ get: function () { return chunkQOWPGS7Z_js.AuthorizationTypeSchema; }
77
78
  });
78
79
  Object.defineProperty(exports, "BrandContactSchema", {
79
80
  enumerable: true,
80
- get: function () { return chunkLOWSMGRT_js.BrandContactSchema; }
81
+ get: function () { return chunkQOWPGS7Z_js.BrandContactSchema; }
81
82
  });
82
83
  Object.defineProperty(exports, "BrandFaqSchema", {
83
84
  enumerable: true,
84
- get: function () { return chunkLOWSMGRT_js.BrandFaqSchema; }
85
+ get: function () { return chunkQOWPGS7Z_js.BrandFaqSchema; }
85
86
  });
86
87
  Object.defineProperty(exports, "BrandHeroSchema", {
87
88
  enumerable: true,
88
- get: function () { return chunkLOWSMGRT_js.BrandHeroSchema; }
89
+ get: function () { return chunkQOWPGS7Z_js.BrandHeroSchema; }
89
90
  });
90
91
  Object.defineProperty(exports, "BrandNavLinkSchema", {
91
92
  enumerable: true,
92
- get: function () { return chunkLOWSMGRT_js.BrandNavLinkSchema; }
93
+ get: function () { return chunkQOWPGS7Z_js.BrandNavLinkSchema; }
93
94
  });
94
95
  Object.defineProperty(exports, "BrandPolicyPageSchema", {
95
96
  enumerable: true,
96
- get: function () { return chunkLOWSMGRT_js.BrandPolicyPageSchema; }
97
+ get: function () { return chunkQOWPGS7Z_js.BrandPolicyPageSchema; }
97
98
  });
98
99
  Object.defineProperty(exports, "BrandPolicySectionSchema", {
99
100
  enumerable: true,
100
- get: function () { return chunkLOWSMGRT_js.BrandPolicySectionSchema; }
101
+ get: function () { return chunkQOWPGS7Z_js.BrandPolicySectionSchema; }
101
102
  });
102
103
  Object.defineProperty(exports, "BrandSchema", {
103
104
  enumerable: true,
104
- get: function () { return chunkLOWSMGRT_js.BrandSchema; }
105
+ get: function () { return chunkQOWPGS7Z_js.BrandSchema; }
105
106
  });
106
107
  Object.defineProperty(exports, "BrandSocialSchema", {
107
108
  enumerable: true,
108
- get: function () { return chunkLOWSMGRT_js.BrandSocialSchema; }
109
+ get: function () { return chunkQOWPGS7Z_js.BrandSocialSchema; }
109
110
  });
110
111
  Object.defineProperty(exports, "BundleResolvedSchema", {
111
112
  enumerable: true,
112
- get: function () { return chunkLOWSMGRT_js.BundleResolvedSchema; }
113
+ get: function () { return chunkQOWPGS7Z_js.BundleResolvedSchema; }
113
114
  });
114
115
  Object.defineProperty(exports, "BundleSelectionInputSchema", {
115
116
  enumerable: true,
116
- get: function () { return chunkLOWSMGRT_js.BundleSelectionInputSchema; }
117
+ get: function () { return chunkQOWPGS7Z_js.BundleSelectionInputSchema; }
117
118
  });
118
119
  Object.defineProperty(exports, "CartItemSchema", {
119
120
  enumerable: true,
120
- get: function () { return chunkLOWSMGRT_js.CartItemSchema; }
121
+ get: function () { return chunkQOWPGS7Z_js.CartItemSchema; }
121
122
  });
122
123
  Object.defineProperty(exports, "CartPricingSchema", {
123
124
  enumerable: true,
124
- get: function () { return chunkLOWSMGRT_js.CartPricingSchema; }
125
+ get: function () { return chunkQOWPGS7Z_js.CartPricingSchema; }
125
126
  });
126
127
  Object.defineProperty(exports, "CartSchema", {
127
128
  enumerable: true,
128
- get: function () { return chunkLOWSMGRT_js.CartSchema; }
129
+ get: function () { return chunkQOWPGS7Z_js.CartSchema; }
129
130
  });
130
131
  Object.defineProperty(exports, "CheckoutBodySchema", {
131
132
  enumerable: true,
132
- get: function () { return chunkLOWSMGRT_js.CheckoutBodySchema; }
133
+ get: function () { return chunkQOWPGS7Z_js.CheckoutBodySchema; }
133
134
  });
134
135
  Object.defineProperty(exports, "CheckoutCustomerSchema", {
135
136
  enumerable: true,
136
- get: function () { return chunkLOWSMGRT_js.CheckoutCustomerSchema; }
137
+ get: function () { return chunkQOWPGS7Z_js.CheckoutCustomerSchema; }
137
138
  });
138
139
  Object.defineProperty(exports, "CheckoutResponseSchema", {
139
140
  enumerable: true,
140
- get: function () { return chunkLOWSMGRT_js.CheckoutResponseSchema; }
141
+ get: function () { return chunkQOWPGS7Z_js.CheckoutResponseSchema; }
141
142
  });
142
143
  Object.defineProperty(exports, "ChosenPriceSchema", {
143
144
  enumerable: true,
144
- get: function () { return chunkLOWSMGRT_js.ChosenPriceSchema; }
145
+ get: function () { return chunkQOWPGS7Z_js.ChosenPriceSchema; }
145
146
  });
146
147
  Object.defineProperty(exports, "CompositeResolvedSchema", {
147
148
  enumerable: true,
148
- get: function () { return chunkLOWSMGRT_js.CompositeResolvedSchema; }
149
+ get: function () { return chunkQOWPGS7Z_js.CompositeResolvedSchema; }
149
150
  });
150
151
  Object.defineProperty(exports, "CompositeSelectionInputSchema", {
151
152
  enumerable: true,
152
- get: function () { return chunkLOWSMGRT_js.CompositeSelectionInputSchema; }
153
+ get: function () { return chunkQOWPGS7Z_js.CompositeSelectionInputSchema; }
153
154
  });
154
155
  Object.defineProperty(exports, "CountryCodeSchema", {
155
156
  enumerable: true,
156
- get: function () { return chunkLOWSMGRT_js.CountryCodeSchema; }
157
+ get: function () { return chunkQOWPGS7Z_js.CountryCodeSchema; }
157
158
  });
158
159
  Object.defineProperty(exports, "CurrencyCodeSchema", {
159
160
  enumerable: true,
160
- get: function () { return chunkLOWSMGRT_js.CurrencyCodeSchema; }
161
+ get: function () { return chunkQOWPGS7Z_js.CurrencyCodeSchema; }
161
162
  });
162
163
  Object.defineProperty(exports, "CustomerInputValueSchema", {
163
164
  enumerable: true,
164
- get: function () { return chunkLOWSMGRT_js.CustomerInputValueSchema; }
165
+ get: function () { return chunkQOWPGS7Z_js.CustomerInputValueSchema; }
165
166
  });
166
167
  Object.defineProperty(exports, "DiscountDetailsSchema", {
167
168
  enumerable: true,
168
- get: function () { return chunkLOWSMGRT_js.DiscountDetailsSchema; }
169
+ get: function () { return chunkQOWPGS7Z_js.DiscountDetailsSchema; }
169
170
  });
170
171
  Object.defineProperty(exports, "IsoDateTimeSchema", {
171
172
  enumerable: true,
172
- get: function () { return chunkLOWSMGRT_js.IsoDateTimeSchema; }
173
+ get: function () { return chunkQOWPGS7Z_js.IsoDateTimeSchema; }
173
174
  });
174
175
  Object.defineProperty(exports, "LineTypeSchema", {
175
176
  enumerable: true,
176
- get: function () { return chunkLOWSMGRT_js.LineTypeSchema; }
177
+ get: function () { return chunkQOWPGS7Z_js.LineTypeSchema; }
177
178
  });
178
179
  Object.defineProperty(exports, "LocaleSchema", {
179
180
  enumerable: true,
180
- get: function () { return chunkLOWSMGRT_js.LocaleSchema; }
181
+ get: function () { return chunkQOWPGS7Z_js.LocaleSchema; }
181
182
  });
182
183
  Object.defineProperty(exports, "MoneyLooseSchema", {
183
184
  enumerable: true,
184
- get: function () { return chunkLOWSMGRT_js.MoneyLooseSchema; }
185
+ get: function () { return chunkQOWPGS7Z_js.MoneyLooseSchema; }
185
186
  });
186
187
  Object.defineProperty(exports, "MoneySchema", {
187
188
  enumerable: true,
188
- get: function () { return chunkLOWSMGRT_js.MoneySchema; }
189
+ get: function () { return chunkQOWPGS7Z_js.MoneySchema; }
189
190
  });
190
191
  Object.defineProperty(exports, "NextActionSchema", {
191
192
  enumerable: true,
192
- get: function () { return chunkLOWSMGRT_js.NextActionSchema; }
193
+ get: function () { return chunkQOWPGS7Z_js.NextActionSchema; }
193
194
  });
194
195
  Object.defineProperty(exports, "PhoneE164Schema", {
195
196
  enumerable: true,
196
- get: function () { return chunkLOWSMGRT_js.PhoneE164Schema; }
197
+ get: function () { return chunkQOWPGS7Z_js.PhoneE164Schema; }
197
198
  });
198
199
  Object.defineProperty(exports, "ProductTypeSchema", {
199
200
  enumerable: true,
200
- get: function () { return chunkLOWSMGRT_js.ProductTypeSchema; }
201
+ get: function () { return chunkQOWPGS7Z_js.ProductTypeSchema; }
201
202
  });
202
203
  Object.defineProperty(exports, "SchemaViolationError", {
203
204
  enumerable: true,
204
- get: function () { return chunkLOWSMGRT_js.SchemaViolationError; }
205
+ get: function () { return chunkQOWPGS7Z_js.SchemaViolationError; }
205
206
  });
206
207
  Object.defineProperty(exports, "SeedNameSchema", {
207
208
  enumerable: true,
208
- get: function () { return chunkLOWSMGRT_js.SeedNameSchema; }
209
+ get: function () { return chunkQOWPGS7Z_js.SeedNameSchema; }
209
210
  });
210
211
  Object.defineProperty(exports, "SelectedAddOnOptionSchema", {
211
212
  enumerable: true,
212
- get: function () { return chunkLOWSMGRT_js.SelectedAddOnOptionSchema; }
213
+ get: function () { return chunkQOWPGS7Z_js.SelectedAddOnOptionSchema; }
213
214
  });
214
215
  Object.defineProperty(exports, "ServiceStatusSchema", {
215
216
  enumerable: true,
216
- get: function () { return chunkLOWSMGRT_js.ServiceStatusSchema; }
217
+ get: function () { return chunkQOWPGS7Z_js.ServiceStatusSchema; }
217
218
  });
218
219
  Object.defineProperty(exports, "TaxPriceDisplayModeSchema", {
219
220
  enumerable: true,
220
- get: function () { return chunkLOWSMGRT_js.TaxPriceDisplayModeSchema; }
221
+ get: function () { return chunkQOWPGS7Z_js.TaxPriceDisplayModeSchema; }
221
222
  });
222
223
  Object.defineProperty(exports, "TimestampSchema", {
223
224
  enumerable: true,
224
- get: function () { return chunkLOWSMGRT_js.TimestampSchema; }
225
+ get: function () { return chunkQOWPGS7Z_js.TimestampSchema; }
225
226
  });
226
227
  Object.defineProperty(exports, "VariantDetailsSchema", {
227
228
  enumerable: true,
228
- get: function () { return chunkLOWSMGRT_js.VariantDetailsSchema; }
229
+ get: function () { return chunkQOWPGS7Z_js.VariantDetailsSchema; }
229
230
  });
230
231
  Object.defineProperty(exports, "VariantDisplayAttributeSchema", {
231
232
  enumerable: true,
232
- get: function () { return chunkLOWSMGRT_js.VariantDisplayAttributeSchema; }
233
+ get: function () { return chunkQOWPGS7Z_js.VariantDisplayAttributeSchema; }
233
234
  });
234
235
  Object.defineProperty(exports, "VariantInfoSchema", {
235
236
  enumerable: true,
236
- get: function () { return chunkLOWSMGRT_js.VariantInfoSchema; }
237
+ get: function () { return chunkQOWPGS7Z_js.VariantInfoSchema; }
237
238
  });
238
239
  Object.defineProperty(exports, "assertAddItemPayload", {
239
240
  enumerable: true,
240
- get: function () { return chunkLOWSMGRT_js.assertAddItemPayload; }
241
+ get: function () { return chunkQOWPGS7Z_js.assertAddItemPayload; }
241
242
  });
242
243
  Object.defineProperty(exports, "assertBrand", {
243
244
  enumerable: true,
244
- get: function () { return chunkLOWSMGRT_js.assertBrand; }
245
+ get: function () { return chunkQOWPGS7Z_js.assertBrand; }
245
246
  });
246
247
  Object.defineProperty(exports, "assertCart", {
247
248
  enumerable: true,
248
- get: function () { return chunkLOWSMGRT_js.assertCart; }
249
+ get: function () { return chunkQOWPGS7Z_js.assertCart; }
249
250
  });
250
251
  Object.defineProperty(exports, "assertCartItem", {
251
252
  enumerable: true,
252
- get: function () { return chunkLOWSMGRT_js.assertCartItem; }
253
+ get: function () { return chunkQOWPGS7Z_js.assertCartItem; }
253
254
  });
254
255
  Object.defineProperty(exports, "assertCheckoutBody", {
255
256
  enumerable: true,
256
- get: function () { return chunkLOWSMGRT_js.assertCheckoutBody; }
257
+ get: function () { return chunkQOWPGS7Z_js.assertCheckoutBody; }
257
258
  });
258
259
  Object.defineProperty(exports, "assertCheckoutResponse", {
259
260
  enumerable: true,
260
- get: function () { return chunkLOWSMGRT_js.assertCheckoutResponse; }
261
+ get: function () { return chunkQOWPGS7Z_js.assertCheckoutResponse; }
261
262
  });
262
263
  Object.defineProperty(exports, "cimplifyRegistry", {
263
264
  enumerable: true,
264
- get: function () { return chunkLOWSMGRT_js.cimplifyRegistry; }
265
+ get: function () { return chunkQOWPGS7Z_js.cimplifyRegistry; }
265
266
  });
266
267
  Object.defineProperty(exports, "createTestClient", {
267
268
  enumerable: true,
268
- get: function () { return chunkLOWSMGRT_js.createTestClient; }
269
+ get: function () { return chunkQOWPGS7Z_js.createTestClient; }
269
270
  });
270
271
  Object.defineProperty(exports, "fixtures", {
271
272
  enumerable: true,
272
- get: function () { return chunkLOWSMGRT_js.fixtures; }
273
+ get: function () { return chunkQOWPGS7Z_js.fixtures; }
273
274
  });
274
275
  Object.defineProperty(exports, "makeAssertion", {
275
276
  enumerable: true,
276
- get: function () { return chunkLOWSMGRT_js.makeAssertion; }
277
+ get: function () { return chunkQOWPGS7Z_js.makeAssertion; }
277
278
  });
278
279
  Object.defineProperty(exports, "registerSchema", {
279
280
  enumerable: true,
280
- get: function () { return chunkLOWSMGRT_js.registerSchema; }
281
+ get: function () { return chunkQOWPGS7Z_js.registerSchema; }
281
282
  });
282
283
  exports.exportJsonSchemas = exportJsonSchemas;
283
284
  exports.listRegisteredSchemas = listRegisteredSchemas;
package/dist/testing.mjs CHANGED
@@ -1,11 +1,12 @@
1
- import { VariantInfoSchema, CheckoutResponseSchema, CheckoutBodySchema, CartPricingSchema, CartItemSchema, CartSchema, AddItemPayloadSchema, BrandSchema, cimplifyRegistry } from './chunk-4KNFBPV2.mjs';
2
- export { AddItemPayloadSchema, AddOnDetailsSchema, AddOnGroupDetailsSchema, AddOnInDetailsSchema, AddOnOptionDetailsSchema, AuthorizationTypeSchema, BrandContactSchema, BrandFaqSchema, BrandHeroSchema, BrandNavLinkSchema, BrandPolicyPageSchema, BrandPolicySectionSchema, BrandSchema, BrandSocialSchema, BundleResolvedSchema, BundleSelectionInputSchema, CartItemSchema, CartPricingSchema, CartSchema, CheckoutBodySchema, CheckoutCustomerSchema, CheckoutResponseSchema, ChosenPriceSchema, CompositeResolvedSchema, CompositeSelectionInputSchema, CountryCodeSchema, CurrencyCodeSchema, CustomerInputValueSchema, DiscountDetailsSchema, IsoDateTimeSchema, LineTypeSchema, LocaleSchema, MoneyLooseSchema, MoneySchema, NextActionSchema, PhoneE164Schema, ProductTypeSchema, SchemaViolationError, SeedNameSchema, SelectedAddOnOptionSchema, ServiceStatusSchema, TaxPriceDisplayModeSchema, TimestampSchema, VariantDetailsSchema, VariantDisplayAttributeSchema, VariantInfoSchema, assertAddItemPayload, assertBrand, assertCart, assertCartItem, assertCheckoutBody, assertCheckoutResponse, cimplifyRegistry, createTestClient, fixtures, makeAssertion, registerSchema } from './chunk-4KNFBPV2.mjs';
3
- import './chunk-DCMXUKDQ.mjs';
1
+ import { VariantInfoSchema, CheckoutResponseSchema, CheckoutBodySchema, CartPricingSchema, CartItemSchema, CartSchema, AddItemPayloadSchema, BrandSchema, cimplifyRegistry } from './chunk-H7ACMHM3.mjs';
2
+ export { AddItemPayloadSchema, AddOnDetailsSchema, AddOnGroupDetailsSchema, AddOnInDetailsSchema, AddOnOptionDetailsSchema, AuthorizationTypeSchema, BrandContactSchema, BrandFaqSchema, BrandHeroSchema, BrandNavLinkSchema, BrandPolicyPageSchema, BrandPolicySectionSchema, BrandSchema, BrandSocialSchema, BundleResolvedSchema, BundleSelectionInputSchema, CartItemSchema, CartPricingSchema, CartSchema, CheckoutBodySchema, CheckoutCustomerSchema, CheckoutResponseSchema, ChosenPriceSchema, CompositeResolvedSchema, CompositeSelectionInputSchema, CountryCodeSchema, CurrencyCodeSchema, CustomerInputValueSchema, DiscountDetailsSchema, IsoDateTimeSchema, LineTypeSchema, LocaleSchema, MoneyLooseSchema, MoneySchema, NextActionSchema, PhoneE164Schema, ProductTypeSchema, SchemaViolationError, SeedNameSchema, SelectedAddOnOptionSchema, ServiceStatusSchema, TaxPriceDisplayModeSchema, TimestampSchema, VariantDetailsSchema, VariantDisplayAttributeSchema, VariantInfoSchema, assertAddItemPayload, assertBrand, assertCart, assertCartItem, assertCheckoutBody, assertCheckoutResponse, cimplifyRegistry, createTestClient, fixtures, makeAssertion, registerSchema } from './chunk-H7ACMHM3.mjs';
3
+ import './chunk-C2JSNJUC.mjs';
4
4
  import './chunk-U4MW6PYU.mjs';
5
- import './chunk-DKLHCZ5M.mjs';
6
- import './chunk-Z3K2D3TE.mjs';
7
- import './chunk-DLW3RWRK.mjs';
8
- import './chunk-O3YUHLZL.mjs';
5
+ import './chunk-GERXZQSX.mjs';
6
+ import './chunk-J6PNHDHL.mjs';
7
+ import './chunk-GOHSXBKW.mjs';
8
+ import './chunk-M4URVKHE.mjs';
9
+ import './chunk-VNPEYLB2.mjs';
9
10
  import './chunk-3G6RQLXK.mjs';
10
11
  import { z } from 'zod';
11
12
 
package/dist/utils.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, c as categorizePaymentError, d as detectMobileMoneyProvider, f as formatMoney, a as formatNumberCompact, b as formatPrice, e as formatPriceAdjustment, g as formatPriceCompact, i as formatPriceWithTax, j as formatProductPrice, k as getBasePrice, l as getCurrencySymbol, m as getDiscountPercentage, n as getDisplayPrice, o as getMarkupPercentage, q as getProductCurrency, r as getTaxAmount, t as hasTaxInfo, u as isOnSale, v as isPaymentStatusFailure, w as isPaymentStatusRequiresAction, x as isPaymentStatusSuccess, y as isTaxInclusive, z as isValidPhoneForContext, A as normalizePaymentResponse, B as normalizePhoneToE164, D as normalizeStatusResponse, E as parsePrice, F as resolvePhoneCountryCode } from './index-DpmnI__D.mjs';
2
- import './product-Byf0unSy.mjs';
3
- import './price-CS4E5zLS.mjs';
4
- import './payment-l0rkieEQ.mjs';
1
+ export { C as CURRENCY_SYMBOLS, a as CanonicalMobileMoneyProvider, M as MOBILE_MONEY_PROVIDERS, c as canonicalMobileMoneyProvider, b as categorizePaymentError, d as detectMobileMoneyProvider, f as formatMoney, e as formatNumberCompact, g as formatPrice, h as formatPriceAdjustment, i as formatPriceCompact, k as formatPriceWithTax, l as formatProductPrice, m as getBasePrice, n as getCurrencySymbol, o as getDiscountPercentage, p as getDisplayPrice, q as getMarkupPercentage, s as getProductCurrency, t as getTaxAmount, v as hasTaxInfo, w as isOnSale, x as isPaymentStatusFailure, y as isPaymentStatusRequiresAction, z as isPaymentStatusSuccess, A as isTaxInclusive, B as isValidPhoneForContext, D as normalizePaymentResponse, E as normalizePhoneToE164, F as normalizeStatusResponse, G as parsePrice, H as paymentAuthorizationUrl, I as resolvePhoneCountryCode } from './index-e2y6AK70.mjs';
2
+ import './payment-H5LoIvXU.mjs';
3
+ import './price-BvePgDXe.mjs';
4
+ import './link-cuNVYc2s.mjs';
5
5
  import 'libphonenumber-js';
package/dist/utils.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, c as categorizePaymentError, d as detectMobileMoneyProvider, f as formatMoney, a as formatNumberCompact, b as formatPrice, e as formatPriceAdjustment, g as formatPriceCompact, i as formatPriceWithTax, j as formatProductPrice, k as getBasePrice, l as getCurrencySymbol, m as getDiscountPercentage, n as getDisplayPrice, o as getMarkupPercentage, q as getProductCurrency, r as getTaxAmount, t as hasTaxInfo, u as isOnSale, v as isPaymentStatusFailure, w as isPaymentStatusRequiresAction, x as isPaymentStatusSuccess, y as isTaxInclusive, z as isValidPhoneForContext, A as normalizePaymentResponse, B as normalizePhoneToE164, D as normalizeStatusResponse, E as parsePrice, F as resolvePhoneCountryCode } from './index-nEyXWIyR.js';
2
- import './product-Byf0unSy.js';
3
- import './price-BstChV9a.js';
4
- import './payment-vzNnIi1n.js';
1
+ export { C as CURRENCY_SYMBOLS, a as CanonicalMobileMoneyProvider, M as MOBILE_MONEY_PROVIDERS, c as canonicalMobileMoneyProvider, b as categorizePaymentError, d as detectMobileMoneyProvider, f as formatMoney, e as formatNumberCompact, g as formatPrice, h as formatPriceAdjustment, i as formatPriceCompact, k as formatPriceWithTax, l as formatProductPrice, m as getBasePrice, n as getCurrencySymbol, o as getDiscountPercentage, p as getDisplayPrice, q as getMarkupPercentage, s as getProductCurrency, t as getTaxAmount, v as hasTaxInfo, w as isOnSale, x as isPaymentStatusFailure, y as isPaymentStatusRequiresAction, z as isPaymentStatusSuccess, A as isTaxInclusive, B as isValidPhoneForContext, D as normalizePaymentResponse, E as normalizePhoneToE164, F as normalizeStatusResponse, G as parsePrice, H as paymentAuthorizationUrl, I as resolvePhoneCountryCode } from './index-C8uDqLwJ.js';
2
+ import './payment-H5LoIvXU.js';
3
+ import './price-C2RqscMY.js';
4
+ import './link-cuNVYc2s.js';
5
5
  import 'libphonenumber-js';
package/dist/utils.js CHANGED
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkL5GKVQVJ_js = require('./chunk-L5GKVQVJ.js');
4
- var chunkWMEC5JWN_js = require('./chunk-WMEC5JWN.js');
5
- require('./chunk-NIOUSKQQ.js');
4
+ var chunkNNG6IFFX_js = require('./chunk-NNG6IFFX.js');
5
+ require('./chunk-JG5CQNCB.js');
6
6
  require('./chunk-OWW5GUSB.js');
7
7
 
8
8
 
@@ -21,109 +21,117 @@ Object.defineProperty(exports, "resolvePhoneCountryCode", {
21
21
  });
22
22
  Object.defineProperty(exports, "CURRENCY_SYMBOLS", {
23
23
  enumerable: true,
24
- get: function () { return chunkWMEC5JWN_js.CURRENCY_SYMBOLS; }
24
+ get: function () { return chunkNNG6IFFX_js.CURRENCY_SYMBOLS; }
25
25
  });
26
26
  Object.defineProperty(exports, "MOBILE_MONEY_PROVIDERS", {
27
27
  enumerable: true,
28
- get: function () { return chunkWMEC5JWN_js.MOBILE_MONEY_PROVIDERS; }
28
+ get: function () { return chunkNNG6IFFX_js.MOBILE_MONEY_PROVIDERS; }
29
+ });
30
+ Object.defineProperty(exports, "canonicalMobileMoneyProvider", {
31
+ enumerable: true,
32
+ get: function () { return chunkNNG6IFFX_js.canonicalMobileMoneyProvider; }
29
33
  });
30
34
  Object.defineProperty(exports, "categorizePaymentError", {
31
35
  enumerable: true,
32
- get: function () { return chunkWMEC5JWN_js.categorizePaymentError; }
36
+ get: function () { return chunkNNG6IFFX_js.categorizePaymentError; }
33
37
  });
34
38
  Object.defineProperty(exports, "detectMobileMoneyProvider", {
35
39
  enumerable: true,
36
- get: function () { return chunkWMEC5JWN_js.detectMobileMoneyProvider; }
40
+ get: function () { return chunkNNG6IFFX_js.detectMobileMoneyProvider; }
37
41
  });
38
42
  Object.defineProperty(exports, "formatMoney", {
39
43
  enumerable: true,
40
- get: function () { return chunkWMEC5JWN_js.formatMoney; }
44
+ get: function () { return chunkNNG6IFFX_js.formatMoney; }
41
45
  });
42
46
  Object.defineProperty(exports, "formatNumberCompact", {
43
47
  enumerable: true,
44
- get: function () { return chunkWMEC5JWN_js.formatNumberCompact; }
48
+ get: function () { return chunkNNG6IFFX_js.formatNumberCompact; }
45
49
  });
46
50
  Object.defineProperty(exports, "formatPrice", {
47
51
  enumerable: true,
48
- get: function () { return chunkWMEC5JWN_js.formatPrice; }
52
+ get: function () { return chunkNNG6IFFX_js.formatPrice; }
49
53
  });
50
54
  Object.defineProperty(exports, "formatPriceAdjustment", {
51
55
  enumerable: true,
52
- get: function () { return chunkWMEC5JWN_js.formatPriceAdjustment; }
56
+ get: function () { return chunkNNG6IFFX_js.formatPriceAdjustment; }
53
57
  });
54
58
  Object.defineProperty(exports, "formatPriceCompact", {
55
59
  enumerable: true,
56
- get: function () { return chunkWMEC5JWN_js.formatPriceCompact; }
60
+ get: function () { return chunkNNG6IFFX_js.formatPriceCompact; }
57
61
  });
58
62
  Object.defineProperty(exports, "formatPriceWithTax", {
59
63
  enumerable: true,
60
- get: function () { return chunkWMEC5JWN_js.formatPriceWithTax; }
64
+ get: function () { return chunkNNG6IFFX_js.formatPriceWithTax; }
61
65
  });
62
66
  Object.defineProperty(exports, "formatProductPrice", {
63
67
  enumerable: true,
64
- get: function () { return chunkWMEC5JWN_js.formatProductPrice; }
68
+ get: function () { return chunkNNG6IFFX_js.formatProductPrice; }
65
69
  });
66
70
  Object.defineProperty(exports, "getBasePrice", {
67
71
  enumerable: true,
68
- get: function () { return chunkWMEC5JWN_js.getBasePrice; }
72
+ get: function () { return chunkNNG6IFFX_js.getBasePrice; }
69
73
  });
70
74
  Object.defineProperty(exports, "getCurrencySymbol", {
71
75
  enumerable: true,
72
- get: function () { return chunkWMEC5JWN_js.getCurrencySymbol; }
76
+ get: function () { return chunkNNG6IFFX_js.getCurrencySymbol; }
73
77
  });
74
78
  Object.defineProperty(exports, "getDiscountPercentage", {
75
79
  enumerable: true,
76
- get: function () { return chunkWMEC5JWN_js.getDiscountPercentage; }
80
+ get: function () { return chunkNNG6IFFX_js.getDiscountPercentage; }
77
81
  });
78
82
  Object.defineProperty(exports, "getDisplayPrice", {
79
83
  enumerable: true,
80
- get: function () { return chunkWMEC5JWN_js.getDisplayPrice; }
84
+ get: function () { return chunkNNG6IFFX_js.getDisplayPrice; }
81
85
  });
82
86
  Object.defineProperty(exports, "getMarkupPercentage", {
83
87
  enumerable: true,
84
- get: function () { return chunkWMEC5JWN_js.getMarkupPercentage; }
88
+ get: function () { return chunkNNG6IFFX_js.getMarkupPercentage; }
85
89
  });
86
90
  Object.defineProperty(exports, "getProductCurrency", {
87
91
  enumerable: true,
88
- get: function () { return chunkWMEC5JWN_js.getProductCurrency; }
92
+ get: function () { return chunkNNG6IFFX_js.getProductCurrency; }
89
93
  });
90
94
  Object.defineProperty(exports, "getTaxAmount", {
91
95
  enumerable: true,
92
- get: function () { return chunkWMEC5JWN_js.getTaxAmount; }
96
+ get: function () { return chunkNNG6IFFX_js.getTaxAmount; }
93
97
  });
94
98
  Object.defineProperty(exports, "hasTaxInfo", {
95
99
  enumerable: true,
96
- get: function () { return chunkWMEC5JWN_js.hasTaxInfo; }
100
+ get: function () { return chunkNNG6IFFX_js.hasTaxInfo; }
97
101
  });
98
102
  Object.defineProperty(exports, "isOnSale", {
99
103
  enumerable: true,
100
- get: function () { return chunkWMEC5JWN_js.isOnSale; }
104
+ get: function () { return chunkNNG6IFFX_js.isOnSale; }
101
105
  });
102
106
  Object.defineProperty(exports, "isPaymentStatusFailure", {
103
107
  enumerable: true,
104
- get: function () { return chunkWMEC5JWN_js.isPaymentStatusFailure; }
108
+ get: function () { return chunkNNG6IFFX_js.isPaymentStatusFailure; }
105
109
  });
106
110
  Object.defineProperty(exports, "isPaymentStatusRequiresAction", {
107
111
  enumerable: true,
108
- get: function () { return chunkWMEC5JWN_js.isPaymentStatusRequiresAction; }
112
+ get: function () { return chunkNNG6IFFX_js.isPaymentStatusRequiresAction; }
109
113
  });
110
114
  Object.defineProperty(exports, "isPaymentStatusSuccess", {
111
115
  enumerable: true,
112
- get: function () { return chunkWMEC5JWN_js.isPaymentStatusSuccess; }
116
+ get: function () { return chunkNNG6IFFX_js.isPaymentStatusSuccess; }
113
117
  });
114
118
  Object.defineProperty(exports, "isTaxInclusive", {
115
119
  enumerable: true,
116
- get: function () { return chunkWMEC5JWN_js.isTaxInclusive; }
120
+ get: function () { return chunkNNG6IFFX_js.isTaxInclusive; }
117
121
  });
118
122
  Object.defineProperty(exports, "normalizePaymentResponse", {
119
123
  enumerable: true,
120
- get: function () { return chunkWMEC5JWN_js.normalizePaymentResponse; }
124
+ get: function () { return chunkNNG6IFFX_js.normalizePaymentResponse; }
121
125
  });
122
126
  Object.defineProperty(exports, "normalizeStatusResponse", {
123
127
  enumerable: true,
124
- get: function () { return chunkWMEC5JWN_js.normalizeStatusResponse; }
128
+ get: function () { return chunkNNG6IFFX_js.normalizeStatusResponse; }
125
129
  });
126
130
  Object.defineProperty(exports, "parsePrice", {
127
131
  enumerable: true,
128
- get: function () { return chunkWMEC5JWN_js.parsePrice; }
132
+ get: function () { return chunkNNG6IFFX_js.parsePrice; }
133
+ });
134
+ Object.defineProperty(exports, "paymentAuthorizationUrl", {
135
+ enumerable: true,
136
+ get: function () { return chunkNNG6IFFX_js.paymentAuthorizationUrl; }
129
137
  });
package/dist/utils.mjs CHANGED
@@ -1,4 +1,4 @@
1
1
  export { isValidPhoneForContext, normalizePhoneToE164, resolvePhoneCountryCode } from './chunk-YOIVZ6OA.mjs';
2
- export { CURRENCY_SYMBOLS, MOBILE_MONEY_PROVIDERS, categorizePaymentError, detectMobileMoneyProvider, formatMoney, formatNumberCompact, formatPrice, formatPriceAdjustment, formatPriceCompact, formatPriceWithTax, formatProductPrice, getBasePrice, getCurrencySymbol, getDiscountPercentage, getDisplayPrice, getMarkupPercentage, getProductCurrency, getTaxAmount, hasTaxInfo, isOnSale, isPaymentStatusFailure, isPaymentStatusRequiresAction, isPaymentStatusSuccess, isTaxInclusive, normalizePaymentResponse, normalizeStatusResponse, parsePrice } from './chunk-DLW3RWRK.mjs';
3
- import './chunk-O3YUHLZL.mjs';
2
+ export { CURRENCY_SYMBOLS, MOBILE_MONEY_PROVIDERS, canonicalMobileMoneyProvider, categorizePaymentError, detectMobileMoneyProvider, formatMoney, formatNumberCompact, formatPrice, formatPriceAdjustment, formatPriceCompact, formatPriceWithTax, formatProductPrice, getBasePrice, getCurrencySymbol, getDiscountPercentage, getDisplayPrice, getMarkupPercentage, getProductCurrency, getTaxAmount, hasTaxInfo, isOnSale, isPaymentStatusFailure, isPaymentStatusRequiresAction, isPaymentStatusSuccess, isTaxInclusive, normalizePaymentResponse, normalizeStatusResponse, parsePrice, paymentAuthorizationUrl } from './chunk-M4URVKHE.mjs';
3
+ import './chunk-VNPEYLB2.mjs';
4
4
  import './chunk-3G6RQLXK.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cimplify/sdk",
3
- "version": "0.102.0",
3
+ "version": "0.103.0",
4
4
  "description": "Cimplify Commerce SDK for storefronts",
5
5
  "keywords": [
6
6
  "cimplify",
@@ -120,6 +120,7 @@
120
120
  },
121
121
  "peerDependencies": {
122
122
  "@paystack/inline-js": "^2.23.0",
123
+ "@stripe/stripe-js": "^9.12.0",
123
124
  "react": ">=17.0.0",
124
125
  "msw": ">=2.0.0",
125
126
  "vitest": ">=2.0.0",
@@ -129,6 +130,9 @@
129
130
  "@paystack/inline-js": {
130
131
  "optional": true
131
132
  },
133
+ "@stripe/stripe-js": {
134
+ "optional": true
135
+ },
132
136
  "react": {
133
137
  "optional": true
134
138
  },
@@ -147,6 +151,8 @@
147
151
  "@hono/node-server": "^2.0.5",
148
152
  "@opennextjs/aws": "^4.0.3",
149
153
  "@opennextjs/cloudflare": "^1.19.11",
154
+ "@paystack/inline-js": "^2.23.0",
155
+ "@stripe/stripe-js": "^9.12.0",
150
156
  "@tailwindcss/cli": "4.3.1",
151
157
  "@testing-library/dom": "^10.4.1",
152
158
  "@testing-library/react": "^16.3.2",