@cimplify/sdk 0.44.14 → 0.44.16

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 (75) hide show
  1. package/dist/advanced.d.mts +1 -1
  2. package/dist/advanced.d.ts +1 -1
  3. package/dist/advanced.js +21 -21
  4. package/dist/advanced.mjs +2 -2
  5. package/dist/{chunk-6TVQQYQ5.mjs → chunk-6AZZ6AOF.mjs} +21 -1
  6. package/dist/{chunk-EZK2FXTM.mjs → chunk-7NML226B.mjs} +1 -1
  7. package/dist/{chunk-BAWKQRIB.js → chunk-CFD4J32N.js} +21 -21
  8. package/dist/{chunk-OMAP327U.js → chunk-MBGQP6FZ.js} +62 -61
  9. package/dist/{chunk-V2O5AO7I.js → chunk-MNIKXG7W.js} +26 -0
  10. package/dist/{chunk-3WD6U5RD.mjs → chunk-UXLQ7WXI.mjs} +4 -3
  11. package/dist/chunk-XL4CX75J.js +9370 -0
  12. package/dist/chunk-ZLEFMQC6.mjs +9318 -0
  13. package/dist/cli/commands/deploy.mjs +9 -1
  14. package/dist/{client-lvLvB1_K.d.ts → client-D6ZisKco.d.ts} +7 -0
  15. package/dist/{client-CkGlXZRd.d.mts → client-Dh-bHyhU.d.mts} +7 -0
  16. package/dist/index.d.mts +1 -1
  17. package/dist/index.d.ts +1 -1
  18. package/dist/index.js +106 -106
  19. package/dist/index.mjs +3 -3
  20. package/dist/mock/cli.mjs +2 -1
  21. package/dist/mock/library.js +2 -1
  22. package/dist/mock/library.mjs +2 -1
  23. package/dist/mock/msw.js +2 -1
  24. package/dist/mock/msw.mjs +2 -1
  25. package/dist/react.d.mts +1 -1
  26. package/dist/react.d.ts +1 -1
  27. package/dist/react.js +80 -80
  28. package/dist/react.mjs +3 -3
  29. package/dist/server-CWpUlLOQ.d.mts +1003 -0
  30. package/dist/server-CWpUlLOQ.d.ts +1003 -0
  31. package/dist/server.d.mts +2 -2
  32. package/dist/server.d.ts +2 -2
  33. package/dist/server.js +5 -5
  34. package/dist/server.mjs +3 -3
  35. package/dist/testing/suite.d.mts +60 -0
  36. package/dist/testing/suite.d.ts +60 -0
  37. package/dist/testing/suite.js +169 -0
  38. package/dist/testing/suite.mjs +165 -0
  39. package/dist/testing.d.mts +1359 -0
  40. package/dist/testing.d.ts +1359 -0
  41. package/dist/testing.js +213 -0
  42. package/dist/testing.mjs +4 -0
  43. package/dist/utils.js +28 -28
  44. package/dist/utils.mjs +1 -1
  45. package/package.json +18 -3
  46. package/templates/storefront-bakery/__tests__/brand.test.ts +4 -0
  47. package/templates/storefront-bakery/__tests__/cart-flow.test.ts +4 -0
  48. package/templates/storefront-bakery/__tests__/contract.test.ts +4 -0
  49. package/templates/storefront-bakery/package.json +11 -3
  50. package/templates/storefront-bakery/vitest.config.ts +9 -0
  51. package/templates/storefront-fashion/__tests__/brand.test.ts +4 -0
  52. package/templates/storefront-fashion/__tests__/cart-flow.test.ts +4 -0
  53. package/templates/storefront-fashion/__tests__/contract.test.ts +4 -0
  54. package/templates/storefront-fashion/package.json +11 -3
  55. package/templates/storefront-fashion/vitest.config.ts +9 -0
  56. package/templates/storefront-grocery/__tests__/brand.test.ts +4 -0
  57. package/templates/storefront-grocery/__tests__/cart-flow.test.ts +4 -0
  58. package/templates/storefront-grocery/__tests__/contract.test.ts +4 -0
  59. package/templates/storefront-grocery/package.json +11 -3
  60. package/templates/storefront-grocery/vitest.config.ts +9 -0
  61. package/templates/storefront-restaurant/__tests__/brand.test.ts +4 -0
  62. package/templates/storefront-restaurant/__tests__/cart-flow.test.ts +4 -0
  63. package/templates/storefront-restaurant/__tests__/contract.test.ts +4 -0
  64. package/templates/storefront-restaurant/package.json +11 -3
  65. package/templates/storefront-restaurant/vitest.config.ts +9 -0
  66. package/templates/storefront-retail/__tests__/brand.test.ts +4 -0
  67. package/templates/storefront-retail/__tests__/cart-flow.test.ts +4 -0
  68. package/templates/storefront-retail/__tests__/contract.test.ts +4 -0
  69. package/templates/storefront-retail/package.json +11 -3
  70. package/templates/storefront-retail/vitest.config.ts +9 -0
  71. package/templates/storefront-services/__tests__/brand.test.ts +4 -0
  72. package/templates/storefront-services/__tests__/cart-flow.test.ts +4 -0
  73. package/templates/storefront-services/__tests__/contract.test.ts +4 -0
  74. package/templates/storefront-services/package.json +11 -3
  75. package/templates/storefront-services/vitest.config.ts +9 -0
@@ -0,0 +1,213 @@
1
+ 'use strict';
2
+
3
+ var chunkXL4CX75J_js = require('./chunk-XL4CX75J.js');
4
+ require('./chunk-MBGQP6FZ.js');
5
+ require('./chunk-CFD4J32N.js');
6
+ require('./chunk-MNIKXG7W.js');
7
+
8
+
9
+
10
+ Object.defineProperty(exports, "AddItemPayloadSchema", {
11
+ enumerable: true,
12
+ get: function () { return chunkXL4CX75J_js.AddItemPayloadSchema; }
13
+ });
14
+ Object.defineProperty(exports, "AddOnDetailsSchema", {
15
+ enumerable: true,
16
+ get: function () { return chunkXL4CX75J_js.AddOnDetailsSchema; }
17
+ });
18
+ Object.defineProperty(exports, "AuthorizationTypeSchema", {
19
+ enumerable: true,
20
+ get: function () { return chunkXL4CX75J_js.AuthorizationTypeSchema; }
21
+ });
22
+ Object.defineProperty(exports, "BrandContactSchema", {
23
+ enumerable: true,
24
+ get: function () { return chunkXL4CX75J_js.BrandContactSchema; }
25
+ });
26
+ Object.defineProperty(exports, "BrandFaqSchema", {
27
+ enumerable: true,
28
+ get: function () { return chunkXL4CX75J_js.BrandFaqSchema; }
29
+ });
30
+ Object.defineProperty(exports, "BrandHeroSchema", {
31
+ enumerable: true,
32
+ get: function () { return chunkXL4CX75J_js.BrandHeroSchema; }
33
+ });
34
+ Object.defineProperty(exports, "BrandNavLinkSchema", {
35
+ enumerable: true,
36
+ get: function () { return chunkXL4CX75J_js.BrandNavLinkSchema; }
37
+ });
38
+ Object.defineProperty(exports, "BrandPolicyPageSchema", {
39
+ enumerable: true,
40
+ get: function () { return chunkXL4CX75J_js.BrandPolicyPageSchema; }
41
+ });
42
+ Object.defineProperty(exports, "BrandPolicySectionSchema", {
43
+ enumerable: true,
44
+ get: function () { return chunkXL4CX75J_js.BrandPolicySectionSchema; }
45
+ });
46
+ Object.defineProperty(exports, "BrandSchema", {
47
+ enumerable: true,
48
+ get: function () { return chunkXL4CX75J_js.BrandSchema; }
49
+ });
50
+ Object.defineProperty(exports, "BrandSocialSchema", {
51
+ enumerable: true,
52
+ get: function () { return chunkXL4CX75J_js.BrandSocialSchema; }
53
+ });
54
+ Object.defineProperty(exports, "BundleResolvedSchema", {
55
+ enumerable: true,
56
+ get: function () { return chunkXL4CX75J_js.BundleResolvedSchema; }
57
+ });
58
+ Object.defineProperty(exports, "BundleSelectionInputSchema", {
59
+ enumerable: true,
60
+ get: function () { return chunkXL4CX75J_js.BundleSelectionInputSchema; }
61
+ });
62
+ Object.defineProperty(exports, "CartItemSchema", {
63
+ enumerable: true,
64
+ get: function () { return chunkXL4CX75J_js.CartItemSchema; }
65
+ });
66
+ Object.defineProperty(exports, "CartPricingSchema", {
67
+ enumerable: true,
68
+ get: function () { return chunkXL4CX75J_js.CartPricingSchema; }
69
+ });
70
+ Object.defineProperty(exports, "CartSchema", {
71
+ enumerable: true,
72
+ get: function () { return chunkXL4CX75J_js.CartSchema; }
73
+ });
74
+ Object.defineProperty(exports, "CheckoutBodySchema", {
75
+ enumerable: true,
76
+ get: function () { return chunkXL4CX75J_js.CheckoutBodySchema; }
77
+ });
78
+ Object.defineProperty(exports, "CheckoutCustomerSchema", {
79
+ enumerable: true,
80
+ get: function () { return chunkXL4CX75J_js.CheckoutCustomerSchema; }
81
+ });
82
+ Object.defineProperty(exports, "CheckoutResponseSchema", {
83
+ enumerable: true,
84
+ get: function () { return chunkXL4CX75J_js.CheckoutResponseSchema; }
85
+ });
86
+ Object.defineProperty(exports, "ChosenPriceSchema", {
87
+ enumerable: true,
88
+ get: function () { return chunkXL4CX75J_js.ChosenPriceSchema; }
89
+ });
90
+ Object.defineProperty(exports, "CompositeResolvedSchema", {
91
+ enumerable: true,
92
+ get: function () { return chunkXL4CX75J_js.CompositeResolvedSchema; }
93
+ });
94
+ Object.defineProperty(exports, "CompositeSelectionInputSchema", {
95
+ enumerable: true,
96
+ get: function () { return chunkXL4CX75J_js.CompositeSelectionInputSchema; }
97
+ });
98
+ Object.defineProperty(exports, "CountryCodeSchema", {
99
+ enumerable: true,
100
+ get: function () { return chunkXL4CX75J_js.CountryCodeSchema; }
101
+ });
102
+ Object.defineProperty(exports, "CurrencyCodeSchema", {
103
+ enumerable: true,
104
+ get: function () { return chunkXL4CX75J_js.CurrencyCodeSchema; }
105
+ });
106
+ Object.defineProperty(exports, "CustomerInputValueSchema", {
107
+ enumerable: true,
108
+ get: function () { return chunkXL4CX75J_js.CustomerInputValueSchema; }
109
+ });
110
+ Object.defineProperty(exports, "DiscountDetailsSchema", {
111
+ enumerable: true,
112
+ get: function () { return chunkXL4CX75J_js.DiscountDetailsSchema; }
113
+ });
114
+ Object.defineProperty(exports, "IsoDateTimeSchema", {
115
+ enumerable: true,
116
+ get: function () { return chunkXL4CX75J_js.IsoDateTimeSchema; }
117
+ });
118
+ Object.defineProperty(exports, "LineTypeSchema", {
119
+ enumerable: true,
120
+ get: function () { return chunkXL4CX75J_js.LineTypeSchema; }
121
+ });
122
+ Object.defineProperty(exports, "LocaleSchema", {
123
+ enumerable: true,
124
+ get: function () { return chunkXL4CX75J_js.LocaleSchema; }
125
+ });
126
+ Object.defineProperty(exports, "MoneyLooseSchema", {
127
+ enumerable: true,
128
+ get: function () { return chunkXL4CX75J_js.MoneyLooseSchema; }
129
+ });
130
+ Object.defineProperty(exports, "MoneySchema", {
131
+ enumerable: true,
132
+ get: function () { return chunkXL4CX75J_js.MoneySchema; }
133
+ });
134
+ Object.defineProperty(exports, "NextActionSchema", {
135
+ enumerable: true,
136
+ get: function () { return chunkXL4CX75J_js.NextActionSchema; }
137
+ });
138
+ Object.defineProperty(exports, "PhoneE164Schema", {
139
+ enumerable: true,
140
+ get: function () { return chunkXL4CX75J_js.PhoneE164Schema; }
141
+ });
142
+ Object.defineProperty(exports, "ProductTypeSchema", {
143
+ enumerable: true,
144
+ get: function () { return chunkXL4CX75J_js.ProductTypeSchema; }
145
+ });
146
+ Object.defineProperty(exports, "SCHEMA_VERSION", {
147
+ enumerable: true,
148
+ get: function () { return chunkXL4CX75J_js.SCHEMA_VERSION; }
149
+ });
150
+ Object.defineProperty(exports, "SchemaViolationError", {
151
+ enumerable: true,
152
+ get: function () { return chunkXL4CX75J_js.SchemaViolationError; }
153
+ });
154
+ Object.defineProperty(exports, "SeedNameSchema", {
155
+ enumerable: true,
156
+ get: function () { return chunkXL4CX75J_js.SeedNameSchema; }
157
+ });
158
+ Object.defineProperty(exports, "ServiceStatusSchema", {
159
+ enumerable: true,
160
+ get: function () { return chunkXL4CX75J_js.ServiceStatusSchema; }
161
+ });
162
+ Object.defineProperty(exports, "TimestampSchema", {
163
+ enumerable: true,
164
+ get: function () { return chunkXL4CX75J_js.TimestampSchema; }
165
+ });
166
+ Object.defineProperty(exports, "VariantDetailsSchema", {
167
+ enumerable: true,
168
+ get: function () { return chunkXL4CX75J_js.VariantDetailsSchema; }
169
+ });
170
+ Object.defineProperty(exports, "VariantDisplayAttributeSchema", {
171
+ enumerable: true,
172
+ get: function () { return chunkXL4CX75J_js.VariantDisplayAttributeSchema; }
173
+ });
174
+ Object.defineProperty(exports, "VariantInfoSchema", {
175
+ enumerable: true,
176
+ get: function () { return chunkXL4CX75J_js.VariantInfoSchema; }
177
+ });
178
+ Object.defineProperty(exports, "assertAddItemPayload", {
179
+ enumerable: true,
180
+ get: function () { return chunkXL4CX75J_js.assertAddItemPayload; }
181
+ });
182
+ Object.defineProperty(exports, "assertBrand", {
183
+ enumerable: true,
184
+ get: function () { return chunkXL4CX75J_js.assertBrand; }
185
+ });
186
+ Object.defineProperty(exports, "assertCart", {
187
+ enumerable: true,
188
+ get: function () { return chunkXL4CX75J_js.assertCart; }
189
+ });
190
+ Object.defineProperty(exports, "assertCartItem", {
191
+ enumerable: true,
192
+ get: function () { return chunkXL4CX75J_js.assertCartItem; }
193
+ });
194
+ Object.defineProperty(exports, "assertCheckoutBody", {
195
+ enumerable: true,
196
+ get: function () { return chunkXL4CX75J_js.assertCheckoutBody; }
197
+ });
198
+ Object.defineProperty(exports, "assertCheckoutResponse", {
199
+ enumerable: true,
200
+ get: function () { return chunkXL4CX75J_js.assertCheckoutResponse; }
201
+ });
202
+ Object.defineProperty(exports, "createTestClient", {
203
+ enumerable: true,
204
+ get: function () { return chunkXL4CX75J_js.createTestClient; }
205
+ });
206
+ Object.defineProperty(exports, "fixtures", {
207
+ enumerable: true,
208
+ get: function () { return chunkXL4CX75J_js.fixtures; }
209
+ });
210
+ Object.defineProperty(exports, "makeAssertion", {
211
+ enumerable: true,
212
+ get: function () { return chunkXL4CX75J_js.makeAssertion; }
213
+ });
@@ -0,0 +1,4 @@
1
+ export { AddItemPayloadSchema, AddOnDetailsSchema, 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, SCHEMA_VERSION, SchemaViolationError, SeedNameSchema, ServiceStatusSchema, TimestampSchema, VariantDetailsSchema, VariantDisplayAttributeSchema, VariantInfoSchema, assertAddItemPayload, assertBrand, assertCart, assertCartItem, assertCheckoutBody, assertCheckoutResponse, createTestClient, fixtures, makeAssertion } from './chunk-ZLEFMQC6.mjs';
2
+ import './chunk-UXLQ7WXI.mjs';
3
+ import './chunk-7NML226B.mjs';
4
+ import './chunk-6AZZ6AOF.mjs';
package/dist/utils.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkL5GKVQVJ_js = require('./chunk-L5GKVQVJ.js');
4
- var chunkV2O5AO7I_js = require('./chunk-V2O5AO7I.js');
4
+ var chunkMNIKXG7W_js = require('./chunk-MNIKXG7W.js');
5
5
 
6
6
 
7
7
 
@@ -19,109 +19,109 @@ Object.defineProperty(exports, "resolvePhoneCountryCode", {
19
19
  });
20
20
  Object.defineProperty(exports, "CURRENCY_SYMBOLS", {
21
21
  enumerable: true,
22
- get: function () { return chunkV2O5AO7I_js.CURRENCY_SYMBOLS; }
22
+ get: function () { return chunkMNIKXG7W_js.CURRENCY_SYMBOLS; }
23
23
  });
24
24
  Object.defineProperty(exports, "MOBILE_MONEY_PROVIDERS", {
25
25
  enumerable: true,
26
- get: function () { return chunkV2O5AO7I_js.MOBILE_MONEY_PROVIDERS; }
26
+ get: function () { return chunkMNIKXG7W_js.MOBILE_MONEY_PROVIDERS; }
27
27
  });
28
28
  Object.defineProperty(exports, "categorizePaymentError", {
29
29
  enumerable: true,
30
- get: function () { return chunkV2O5AO7I_js.categorizePaymentError; }
30
+ get: function () { return chunkMNIKXG7W_js.categorizePaymentError; }
31
31
  });
32
32
  Object.defineProperty(exports, "detectMobileMoneyProvider", {
33
33
  enumerable: true,
34
- get: function () { return chunkV2O5AO7I_js.detectMobileMoneyProvider; }
34
+ get: function () { return chunkMNIKXG7W_js.detectMobileMoneyProvider; }
35
35
  });
36
36
  Object.defineProperty(exports, "formatMoney", {
37
37
  enumerable: true,
38
- get: function () { return chunkV2O5AO7I_js.formatMoney; }
38
+ get: function () { return chunkMNIKXG7W_js.formatMoney; }
39
39
  });
40
40
  Object.defineProperty(exports, "formatNumberCompact", {
41
41
  enumerable: true,
42
- get: function () { return chunkV2O5AO7I_js.formatNumberCompact; }
42
+ get: function () { return chunkMNIKXG7W_js.formatNumberCompact; }
43
43
  });
44
44
  Object.defineProperty(exports, "formatPrice", {
45
45
  enumerable: true,
46
- get: function () { return chunkV2O5AO7I_js.formatPrice; }
46
+ get: function () { return chunkMNIKXG7W_js.formatPrice; }
47
47
  });
48
48
  Object.defineProperty(exports, "formatPriceAdjustment", {
49
49
  enumerable: true,
50
- get: function () { return chunkV2O5AO7I_js.formatPriceAdjustment; }
50
+ get: function () { return chunkMNIKXG7W_js.formatPriceAdjustment; }
51
51
  });
52
52
  Object.defineProperty(exports, "formatPriceCompact", {
53
53
  enumerable: true,
54
- get: function () { return chunkV2O5AO7I_js.formatPriceCompact; }
54
+ get: function () { return chunkMNIKXG7W_js.formatPriceCompact; }
55
55
  });
56
56
  Object.defineProperty(exports, "formatPriceWithTax", {
57
57
  enumerable: true,
58
- get: function () { return chunkV2O5AO7I_js.formatPriceWithTax; }
58
+ get: function () { return chunkMNIKXG7W_js.formatPriceWithTax; }
59
59
  });
60
60
  Object.defineProperty(exports, "formatProductPrice", {
61
61
  enumerable: true,
62
- get: function () { return chunkV2O5AO7I_js.formatProductPrice; }
62
+ get: function () { return chunkMNIKXG7W_js.formatProductPrice; }
63
63
  });
64
64
  Object.defineProperty(exports, "getBasePrice", {
65
65
  enumerable: true,
66
- get: function () { return chunkV2O5AO7I_js.getBasePrice; }
66
+ get: function () { return chunkMNIKXG7W_js.getBasePrice; }
67
67
  });
68
68
  Object.defineProperty(exports, "getCurrencySymbol", {
69
69
  enumerable: true,
70
- get: function () { return chunkV2O5AO7I_js.getCurrencySymbol; }
70
+ get: function () { return chunkMNIKXG7W_js.getCurrencySymbol; }
71
71
  });
72
72
  Object.defineProperty(exports, "getDiscountPercentage", {
73
73
  enumerable: true,
74
- get: function () { return chunkV2O5AO7I_js.getDiscountPercentage; }
74
+ get: function () { return chunkMNIKXG7W_js.getDiscountPercentage; }
75
75
  });
76
76
  Object.defineProperty(exports, "getDisplayPrice", {
77
77
  enumerable: true,
78
- get: function () { return chunkV2O5AO7I_js.getDisplayPrice; }
78
+ get: function () { return chunkMNIKXG7W_js.getDisplayPrice; }
79
79
  });
80
80
  Object.defineProperty(exports, "getMarkupPercentage", {
81
81
  enumerable: true,
82
- get: function () { return chunkV2O5AO7I_js.getMarkupPercentage; }
82
+ get: function () { return chunkMNIKXG7W_js.getMarkupPercentage; }
83
83
  });
84
84
  Object.defineProperty(exports, "getProductCurrency", {
85
85
  enumerable: true,
86
- get: function () { return chunkV2O5AO7I_js.getProductCurrency; }
86
+ get: function () { return chunkMNIKXG7W_js.getProductCurrency; }
87
87
  });
88
88
  Object.defineProperty(exports, "getTaxAmount", {
89
89
  enumerable: true,
90
- get: function () { return chunkV2O5AO7I_js.getTaxAmount; }
90
+ get: function () { return chunkMNIKXG7W_js.getTaxAmount; }
91
91
  });
92
92
  Object.defineProperty(exports, "hasTaxInfo", {
93
93
  enumerable: true,
94
- get: function () { return chunkV2O5AO7I_js.hasTaxInfo; }
94
+ get: function () { return chunkMNIKXG7W_js.hasTaxInfo; }
95
95
  });
96
96
  Object.defineProperty(exports, "isOnSale", {
97
97
  enumerable: true,
98
- get: function () { return chunkV2O5AO7I_js.isOnSale; }
98
+ get: function () { return chunkMNIKXG7W_js.isOnSale; }
99
99
  });
100
100
  Object.defineProperty(exports, "isPaymentStatusFailure", {
101
101
  enumerable: true,
102
- get: function () { return chunkV2O5AO7I_js.isPaymentStatusFailure; }
102
+ get: function () { return chunkMNIKXG7W_js.isPaymentStatusFailure; }
103
103
  });
104
104
  Object.defineProperty(exports, "isPaymentStatusRequiresAction", {
105
105
  enumerable: true,
106
- get: function () { return chunkV2O5AO7I_js.isPaymentStatusRequiresAction; }
106
+ get: function () { return chunkMNIKXG7W_js.isPaymentStatusRequiresAction; }
107
107
  });
108
108
  Object.defineProperty(exports, "isPaymentStatusSuccess", {
109
109
  enumerable: true,
110
- get: function () { return chunkV2O5AO7I_js.isPaymentStatusSuccess; }
110
+ get: function () { return chunkMNIKXG7W_js.isPaymentStatusSuccess; }
111
111
  });
112
112
  Object.defineProperty(exports, "isTaxInclusive", {
113
113
  enumerable: true,
114
- get: function () { return chunkV2O5AO7I_js.isTaxInclusive; }
114
+ get: function () { return chunkMNIKXG7W_js.isTaxInclusive; }
115
115
  });
116
116
  Object.defineProperty(exports, "normalizePaymentResponse", {
117
117
  enumerable: true,
118
- get: function () { return chunkV2O5AO7I_js.normalizePaymentResponse; }
118
+ get: function () { return chunkMNIKXG7W_js.normalizePaymentResponse; }
119
119
  });
120
120
  Object.defineProperty(exports, "normalizeStatusResponse", {
121
121
  enumerable: true,
122
- get: function () { return chunkV2O5AO7I_js.normalizeStatusResponse; }
122
+ get: function () { return chunkMNIKXG7W_js.normalizeStatusResponse; }
123
123
  });
124
124
  Object.defineProperty(exports, "parsePrice", {
125
125
  enumerable: true,
126
- get: function () { return chunkV2O5AO7I_js.parsePrice; }
126
+ get: function () { return chunkMNIKXG7W_js.parsePrice; }
127
127
  });
package/dist/utils.mjs CHANGED
@@ -1,2 +1,2 @@
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-6TVQQYQ5.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-6AZZ6AOF.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cimplify/sdk",
3
- "version": "0.44.14",
3
+ "version": "0.44.16",
4
4
  "description": "Cimplify Commerce SDK for storefronts",
5
5
  "keywords": [
6
6
  "cimplify",
@@ -61,6 +61,16 @@
61
61
  "import": "./dist/mock/msw.mjs",
62
62
  "require": "./dist/mock/msw.js"
63
63
  },
64
+ "./testing": {
65
+ "types": "./dist/testing.d.ts",
66
+ "import": "./dist/testing.mjs",
67
+ "require": "./dist/testing.js"
68
+ },
69
+ "./testing/suite": {
70
+ "types": "./dist/testing/suite.d.ts",
71
+ "import": "./dist/testing/suite.mjs",
72
+ "require": "./dist/testing/suite.js"
73
+ },
64
74
  "./styles.css": "./dist/styles.css"
65
75
  },
66
76
  "scripts": {
@@ -81,7 +91,8 @@
81
91
  "peerDependencies": {
82
92
  "@paystack/inline-js": "^2.22.8",
83
93
  "react": ">=17.0.0",
84
- "msw": ">=2.0.0"
94
+ "msw": ">=2.0.0",
95
+ "vitest": ">=2.0.0"
85
96
  },
86
97
  "peerDependenciesMeta": {
87
98
  "@paystack/inline-js": {
@@ -92,6 +103,9 @@
92
103
  },
93
104
  "msw": {
94
105
  "optional": true
106
+ },
107
+ "vitest": {
108
+ "optional": true
95
109
  }
96
110
  },
97
111
  "devDependencies": {
@@ -116,6 +130,7 @@
116
130
  "@base-ui/react": "^1.4.1",
117
131
  "clsx": "^2.1.1",
118
132
  "libphonenumber-js": "1.12.41",
119
- "tailwind-merge": "^3.5.0"
133
+ "tailwind-merge": "^3.5.0",
134
+ "zod": "^4.4.3"
120
135
  }
121
136
  }
@@ -0,0 +1,4 @@
1
+ import { createBrandSuite } from "@cimplify/sdk/testing/suite";
2
+ import { brand } from "../lib/brand";
3
+
4
+ createBrandSuite({ brand });
@@ -0,0 +1,4 @@
1
+ import { createCartFlowSuite } from "@cimplify/sdk/testing/suite";
2
+ import { brand } from "../lib/brand";
3
+
4
+ createCartFlowSuite({ seed: brand.mock.seed, businessId: brand.mock.businessId });
@@ -0,0 +1,4 @@
1
+ import { createContractSuite } from "@cimplify/sdk/testing/suite";
2
+ import { brand } from "../lib/brand";
3
+
4
+ createContractSuite({ seed: brand.mock.seed });
@@ -8,10 +8,17 @@
8
8
  "dev:mock": "bunx @cimplify/sdk --seed default",
9
9
  "build": "next build",
10
10
  "start": "next start",
11
- "lint": "next lint"
11
+ "lint": "next lint",
12
+ "typecheck": "tsc --noEmit",
13
+ "test": "vitest",
14
+ "test:run": "vitest run",
15
+ "check:brand": "vitest run __tests__/brand.test.ts",
16
+ "check:cart": "vitest run __tests__/cart-flow.test.ts",
17
+ "check:contract": "vitest run __tests__/contract.test.ts",
18
+ "check": "bun run typecheck && bun run lint && bun run test:run"
12
19
  },
13
20
  "dependencies": {
14
- "@cimplify/sdk": "^0.44.4",
21
+ "@cimplify/sdk": "^0.44.14",
15
22
  "next": "^16.2.4",
16
23
  "react": "^19.0.0",
17
24
  "react-dom": "^19.0.0"
@@ -23,6 +30,7 @@
23
30
  "@types/react-dom": "^19.0.0",
24
31
  "concurrently": "^9.0.0",
25
32
  "tailwindcss": "^4.2.4",
26
- "typescript": "^5.9.3"
33
+ "typescript": "^5.9.3",
34
+ "vitest": "^4.1.5"
27
35
  }
28
36
  }
@@ -0,0 +1,9 @@
1
+ import { defineConfig } from "vitest/config";
2
+
3
+ export default defineConfig({
4
+ test: {
5
+ environment: "node",
6
+ include: ["__tests__/**/*.test.ts"],
7
+ globals: false,
8
+ },
9
+ });
@@ -0,0 +1,4 @@
1
+ import { createBrandSuite } from "@cimplify/sdk/testing/suite";
2
+ import { brand } from "../lib/brand";
3
+
4
+ createBrandSuite({ brand });
@@ -0,0 +1,4 @@
1
+ import { createCartFlowSuite } from "@cimplify/sdk/testing/suite";
2
+ import { brand } from "../lib/brand";
3
+
4
+ createCartFlowSuite({ seed: brand.mock.seed, businessId: brand.mock.businessId });
@@ -0,0 +1,4 @@
1
+ import { createContractSuite } from "@cimplify/sdk/testing/suite";
2
+ import { brand } from "../lib/brand";
3
+
4
+ createContractSuite({ seed: brand.mock.seed });
@@ -8,10 +8,17 @@
8
8
  "dev:mock": "bunx @cimplify/sdk --seed fashion",
9
9
  "build": "next build",
10
10
  "start": "next start",
11
- "lint": "next lint"
11
+ "lint": "next lint",
12
+ "typecheck": "tsc --noEmit",
13
+ "test": "vitest",
14
+ "test:run": "vitest run",
15
+ "check:brand": "vitest run __tests__/brand.test.ts",
16
+ "check:cart": "vitest run __tests__/cart-flow.test.ts",
17
+ "check:contract": "vitest run __tests__/contract.test.ts",
18
+ "check": "bun run typecheck && bun run lint && bun run test:run"
12
19
  },
13
20
  "dependencies": {
14
- "@cimplify/sdk": "^0.44.4",
21
+ "@cimplify/sdk": "^0.44.14",
15
22
  "next": "^16.2.4",
16
23
  "react": "^19.0.0",
17
24
  "react-dom": "^19.0.0"
@@ -23,6 +30,7 @@
23
30
  "@types/react-dom": "^19.0.0",
24
31
  "concurrently": "^9.0.0",
25
32
  "tailwindcss": "^4.2.4",
26
- "typescript": "^5.9.3"
33
+ "typescript": "^5.9.3",
34
+ "vitest": "^4.1.5"
27
35
  }
28
36
  }
@@ -0,0 +1,9 @@
1
+ import { defineConfig } from "vitest/config";
2
+
3
+ export default defineConfig({
4
+ test: {
5
+ environment: "node",
6
+ include: ["__tests__/**/*.test.ts"],
7
+ globals: false,
8
+ },
9
+ });
@@ -0,0 +1,4 @@
1
+ import { createBrandSuite } from "@cimplify/sdk/testing/suite";
2
+ import { brand } from "../lib/brand";
3
+
4
+ createBrandSuite({ brand });
@@ -0,0 +1,4 @@
1
+ import { createCartFlowSuite } from "@cimplify/sdk/testing/suite";
2
+ import { brand } from "../lib/brand";
3
+
4
+ createCartFlowSuite({ seed: brand.mock.seed, businessId: brand.mock.businessId });
@@ -0,0 +1,4 @@
1
+ import { createContractSuite } from "@cimplify/sdk/testing/suite";
2
+ import { brand } from "../lib/brand";
3
+
4
+ createContractSuite({ seed: brand.mock.seed });
@@ -8,10 +8,17 @@
8
8
  "dev:mock": "bunx @cimplify/sdk --seed grocery",
9
9
  "build": "next build",
10
10
  "start": "next start",
11
- "lint": "next lint"
11
+ "lint": "next lint",
12
+ "typecheck": "tsc --noEmit",
13
+ "test": "vitest",
14
+ "test:run": "vitest run",
15
+ "check:brand": "vitest run __tests__/brand.test.ts",
16
+ "check:cart": "vitest run __tests__/cart-flow.test.ts",
17
+ "check:contract": "vitest run __tests__/contract.test.ts",
18
+ "check": "bun run typecheck && bun run lint && bun run test:run"
12
19
  },
13
20
  "dependencies": {
14
- "@cimplify/sdk": "^0.44.4",
21
+ "@cimplify/sdk": "^0.44.14",
15
22
  "next": "^16.2.4",
16
23
  "react": "^19.0.0",
17
24
  "react-dom": "^19.0.0"
@@ -23,6 +30,7 @@
23
30
  "@types/react-dom": "^19.0.0",
24
31
  "concurrently": "^9.0.0",
25
32
  "tailwindcss": "^4.2.4",
26
- "typescript": "^5.9.3"
33
+ "typescript": "^5.9.3",
34
+ "vitest": "^4.1.5"
27
35
  }
28
36
  }
@@ -0,0 +1,9 @@
1
+ import { defineConfig } from "vitest/config";
2
+
3
+ export default defineConfig({
4
+ test: {
5
+ environment: "node",
6
+ include: ["__tests__/**/*.test.ts"],
7
+ globals: false,
8
+ },
9
+ });
@@ -0,0 +1,4 @@
1
+ import { createBrandSuite } from "@cimplify/sdk/testing/suite";
2
+ import { brand } from "../lib/brand";
3
+
4
+ createBrandSuite({ brand });
@@ -0,0 +1,4 @@
1
+ import { createCartFlowSuite } from "@cimplify/sdk/testing/suite";
2
+ import { brand } from "../lib/brand";
3
+
4
+ createCartFlowSuite({ seed: brand.mock.seed, businessId: brand.mock.businessId });
@@ -0,0 +1,4 @@
1
+ import { createContractSuite } from "@cimplify/sdk/testing/suite";
2
+ import { brand } from "../lib/brand";
3
+
4
+ createContractSuite({ seed: brand.mock.seed });
@@ -8,10 +8,17 @@
8
8
  "dev:mock": "bunx @cimplify/sdk --seed restaurant",
9
9
  "build": "next build",
10
10
  "start": "next start",
11
- "lint": "next lint"
11
+ "lint": "next lint",
12
+ "typecheck": "tsc --noEmit",
13
+ "test": "vitest",
14
+ "test:run": "vitest run",
15
+ "check:brand": "vitest run __tests__/brand.test.ts",
16
+ "check:cart": "vitest run __tests__/cart-flow.test.ts",
17
+ "check:contract": "vitest run __tests__/contract.test.ts",
18
+ "check": "bun run typecheck && bun run lint && bun run test:run"
12
19
  },
13
20
  "dependencies": {
14
- "@cimplify/sdk": "^0.44.4",
21
+ "@cimplify/sdk": "^0.44.14",
15
22
  "next": "^16.2.4",
16
23
  "react": "^19.0.0",
17
24
  "react-dom": "^19.0.0"
@@ -23,6 +30,7 @@
23
30
  "@types/react-dom": "^19.0.0",
24
31
  "concurrently": "^9.0.0",
25
32
  "tailwindcss": "^4.2.4",
26
- "typescript": "^5.9.3"
33
+ "typescript": "^5.9.3",
34
+ "vitest": "^4.1.5"
27
35
  }
28
36
  }
@@ -0,0 +1,9 @@
1
+ import { defineConfig } from "vitest/config";
2
+
3
+ export default defineConfig({
4
+ test: {
5
+ environment: "node",
6
+ include: ["__tests__/**/*.test.ts"],
7
+ globals: false,
8
+ },
9
+ });