@cimplify/sdk 0.101.1 → 0.103.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/advanced.d.mts +3 -3
- package/dist/advanced.d.ts +3 -3
- package/dist/advanced.js +23 -22
- package/dist/advanced.mjs +4 -3
- package/dist/{chunk-QPRI2NII.js → chunk-2P4KXFB6.js} +6 -0
- package/dist/{chunk-4G5UWFC3.mjs → chunk-3V4DVXV3.mjs} +6 -1
- package/dist/{chunk-YHPMFTMN.mjs → chunk-C2JSNJUC.mjs} +406 -95
- package/dist/chunk-CNN7Z2IP.js +125 -0
- package/dist/{chunk-DKLHCZ5M.mjs → chunk-GERXZQSX.mjs} +487 -11
- package/dist/chunk-GOHSXBKW.mjs +105 -0
- package/dist/{chunk-7H6IL7CX.mjs → chunk-H7ACMHM3.mjs} +40 -15
- package/dist/{chunk-Z3K2D3TE.mjs → chunk-J6PNHDHL.mjs} +453 -483
- package/dist/{chunk-NIOUSKQQ.js → chunk-JG5CQNCB.js} +5 -0
- package/dist/{chunk-YER7DIOM.js → chunk-JSWJ4XDE.js} +471 -519
- package/dist/{chunk-DLW3RWRK.mjs → chunk-M4URVKHE.mjs} +46 -12
- package/dist/{chunk-WMEC5JWN.js → chunk-NNG6IFFX.js} +50 -13
- package/dist/{chunk-ICCCSVN3.js → chunk-QOWPGS7Z.js} +42 -16
- package/dist/{chunk-YDA46OZ6.js → chunk-R6OLQ33I.js} +560 -80
- package/dist/{chunk-H5SSGN7W.js → chunk-VIL6IQCG.js} +408 -97
- package/dist/{chunk-O3YUHLZL.mjs → chunk-VNPEYLB2.mjs} +5 -0
- package/dist/{client-Db554902.d.ts → client-BfpNjJ_a.d.mts} +93 -299
- package/dist/{client-CdTx7X_X.d.mts → client-DHBwvh7U.d.ts} +93 -299
- package/dist/{client-WkUcvRvO.d.mts → client-DpqRobY9.d.mts} +2 -2
- package/dist/{client-D40kI8z2.d.ts → client-Dqg2mc-7.d.ts} +2 -2
- package/dist/{index-D3UXgAYl.d.ts → index-C8uDqLwJ.d.ts} +14 -4
- package/dist/{index-BjWUkYgY.d.mts → index-e2y6AK70.d.mts} +14 -4
- package/dist/index.d.mts +92 -8
- package/dist/index.d.ts +92 -8
- package/dist/index.js +225 -188
- package/dist/index.mjs +7 -6
- package/dist/link-cuNVYc2s.d.mts +297 -0
- package/dist/link-cuNVYc2s.d.ts +297 -0
- package/dist/mock/cli.mjs +412 -94
- package/dist/mock/library.js +412 -94
- package/dist/mock/library.mjs +412 -94
- package/dist/mock/msw.js +412 -94
- package/dist/mock/msw.mjs +412 -94
- package/dist/{product-DwKdC_to.d.mts → payment-H5LoIvXU.d.mts} +207 -7
- package/dist/{product-DwKdC_to.d.ts → payment-H5LoIvXU.d.ts} +207 -7
- package/dist/{price-CiQUd_XX.d.mts → price-BvePgDXe.d.mts} +1 -1
- package/dist/{price-D9EOj8y8.d.ts → price-C2RqscMY.d.ts} +1 -1
- package/dist/react.d.mts +6 -4
- package/dist/react.d.ts +6 -4
- package/dist/react.js +203 -198
- package/dist/react.mjs +11 -6
- package/dist/{server-CeDb93WA.d.ts → server-C7FyLdrz.d.mts} +11 -9
- package/dist/{server-D-nSkrUr.d.mts → server-DoXIpSd7.d.ts} +11 -9
- package/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +11 -10
- package/dist/server.mjs +5 -4
- package/dist/testing/msw.d.mts +2 -2
- package/dist/testing/msw.d.ts +2 -2
- package/dist/testing/msw.js +4 -3
- package/dist/testing/msw.mjs +3 -2
- package/dist/testing/suite.d.mts +6 -6
- package/dist/testing/suite.d.ts +6 -6
- package/dist/testing/suite.js +26 -25
- package/dist/testing/suite.mjs +7 -6
- package/dist/testing.d.mts +175 -45
- package/dist/testing.d.ts +175 -45
- package/dist/testing.js +86 -81
- package/dist/testing.mjs +8 -7
- package/dist/utils.d.mts +4 -4
- package/dist/utils.d.ts +4 -4
- package/dist/utils.js +37 -29
- package/dist/utils.mjs +2 -2
- package/package.json +7 -1
- package/dist/payment-CRqjGrx6.d.mts +0 -113
- package/dist/payment-DO1Z1Ip6.d.ts +0 -113
package/dist/testing.js
CHANGED
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunkQOWPGS7Z_js = require('./chunk-QOWPGS7Z.js');
|
|
4
|
+
require('./chunk-VIL6IQCG.js');
|
|
5
5
|
require('./chunk-XREIZ56K.js');
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
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:
|
|
15
|
-
AddItemPayload:
|
|
16
|
-
Cart:
|
|
17
|
-
CartItem:
|
|
18
|
-
CartPricing:
|
|
19
|
-
CheckoutBody:
|
|
20
|
-
CheckoutResponse:
|
|
21
|
-
VariantInfo:
|
|
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 =
|
|
27
|
-
const json = zod.z.toJSONSchema(schema, { metadata:
|
|
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
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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 =
|
|
49
|
+
const meta = chunkQOWPGS7Z_js.cimplifyRegistry.get(schema);
|
|
49
50
|
if (meta) entries.push({ schema, meta });
|
|
50
51
|
}
|
|
51
52
|
return entries;
|
|
@@ -53,227 +54,231 @@ function listRegisteredSchemas() {
|
|
|
53
54
|
|
|
54
55
|
Object.defineProperty(exports, "AddItemPayloadSchema", {
|
|
55
56
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkQOWPGS7Z_js.AddItemPayloadSchema; }
|
|
57
58
|
});
|
|
58
59
|
Object.defineProperty(exports, "AddOnDetailsSchema", {
|
|
59
60
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkQOWPGS7Z_js.AddOnDetailsSchema; }
|
|
61
62
|
});
|
|
62
63
|
Object.defineProperty(exports, "AddOnGroupDetailsSchema", {
|
|
63
64
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkQOWPGS7Z_js.AddOnGroupDetailsSchema; }
|
|
65
66
|
});
|
|
66
67
|
Object.defineProperty(exports, "AddOnInDetailsSchema", {
|
|
67
68
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkQOWPGS7Z_js.AddOnInDetailsSchema; }
|
|
69
70
|
});
|
|
70
71
|
Object.defineProperty(exports, "AddOnOptionDetailsSchema", {
|
|
71
72
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkQOWPGS7Z_js.AddOnOptionDetailsSchema; }
|
|
73
74
|
});
|
|
74
75
|
Object.defineProperty(exports, "AuthorizationTypeSchema", {
|
|
75
76
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkQOWPGS7Z_js.AuthorizationTypeSchema; }
|
|
77
78
|
});
|
|
78
79
|
Object.defineProperty(exports, "BrandContactSchema", {
|
|
79
80
|
enumerable: true,
|
|
80
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkQOWPGS7Z_js.BrandContactSchema; }
|
|
81
82
|
});
|
|
82
83
|
Object.defineProperty(exports, "BrandFaqSchema", {
|
|
83
84
|
enumerable: true,
|
|
84
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkQOWPGS7Z_js.BrandFaqSchema; }
|
|
85
86
|
});
|
|
86
87
|
Object.defineProperty(exports, "BrandHeroSchema", {
|
|
87
88
|
enumerable: true,
|
|
88
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkQOWPGS7Z_js.BrandHeroSchema; }
|
|
89
90
|
});
|
|
90
91
|
Object.defineProperty(exports, "BrandNavLinkSchema", {
|
|
91
92
|
enumerable: true,
|
|
92
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkQOWPGS7Z_js.BrandNavLinkSchema; }
|
|
93
94
|
});
|
|
94
95
|
Object.defineProperty(exports, "BrandPolicyPageSchema", {
|
|
95
96
|
enumerable: true,
|
|
96
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkQOWPGS7Z_js.BrandPolicyPageSchema; }
|
|
97
98
|
});
|
|
98
99
|
Object.defineProperty(exports, "BrandPolicySectionSchema", {
|
|
99
100
|
enumerable: true,
|
|
100
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkQOWPGS7Z_js.BrandPolicySectionSchema; }
|
|
101
102
|
});
|
|
102
103
|
Object.defineProperty(exports, "BrandSchema", {
|
|
103
104
|
enumerable: true,
|
|
104
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkQOWPGS7Z_js.BrandSchema; }
|
|
105
106
|
});
|
|
106
107
|
Object.defineProperty(exports, "BrandSocialSchema", {
|
|
107
108
|
enumerable: true,
|
|
108
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkQOWPGS7Z_js.BrandSocialSchema; }
|
|
109
110
|
});
|
|
110
111
|
Object.defineProperty(exports, "BundleResolvedSchema", {
|
|
111
112
|
enumerable: true,
|
|
112
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkQOWPGS7Z_js.BundleResolvedSchema; }
|
|
113
114
|
});
|
|
114
115
|
Object.defineProperty(exports, "BundleSelectionInputSchema", {
|
|
115
116
|
enumerable: true,
|
|
116
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkQOWPGS7Z_js.BundleSelectionInputSchema; }
|
|
117
118
|
});
|
|
118
119
|
Object.defineProperty(exports, "CartItemSchema", {
|
|
119
120
|
enumerable: true,
|
|
120
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkQOWPGS7Z_js.CartItemSchema; }
|
|
121
122
|
});
|
|
122
123
|
Object.defineProperty(exports, "CartPricingSchema", {
|
|
123
124
|
enumerable: true,
|
|
124
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkQOWPGS7Z_js.CartPricingSchema; }
|
|
125
126
|
});
|
|
126
127
|
Object.defineProperty(exports, "CartSchema", {
|
|
127
128
|
enumerable: true,
|
|
128
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkQOWPGS7Z_js.CartSchema; }
|
|
129
130
|
});
|
|
130
131
|
Object.defineProperty(exports, "CheckoutBodySchema", {
|
|
131
132
|
enumerable: true,
|
|
132
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkQOWPGS7Z_js.CheckoutBodySchema; }
|
|
133
134
|
});
|
|
134
135
|
Object.defineProperty(exports, "CheckoutCustomerSchema", {
|
|
135
136
|
enumerable: true,
|
|
136
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkQOWPGS7Z_js.CheckoutCustomerSchema; }
|
|
137
138
|
});
|
|
138
139
|
Object.defineProperty(exports, "CheckoutResponseSchema", {
|
|
139
140
|
enumerable: true,
|
|
140
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkQOWPGS7Z_js.CheckoutResponseSchema; }
|
|
141
142
|
});
|
|
142
143
|
Object.defineProperty(exports, "ChosenPriceSchema", {
|
|
143
144
|
enumerable: true,
|
|
144
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkQOWPGS7Z_js.ChosenPriceSchema; }
|
|
145
146
|
});
|
|
146
147
|
Object.defineProperty(exports, "CompositeResolvedSchema", {
|
|
147
148
|
enumerable: true,
|
|
148
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkQOWPGS7Z_js.CompositeResolvedSchema; }
|
|
149
150
|
});
|
|
150
151
|
Object.defineProperty(exports, "CompositeSelectionInputSchema", {
|
|
151
152
|
enumerable: true,
|
|
152
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkQOWPGS7Z_js.CompositeSelectionInputSchema; }
|
|
153
154
|
});
|
|
154
155
|
Object.defineProperty(exports, "CountryCodeSchema", {
|
|
155
156
|
enumerable: true,
|
|
156
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkQOWPGS7Z_js.CountryCodeSchema; }
|
|
157
158
|
});
|
|
158
159
|
Object.defineProperty(exports, "CurrencyCodeSchema", {
|
|
159
160
|
enumerable: true,
|
|
160
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkQOWPGS7Z_js.CurrencyCodeSchema; }
|
|
161
162
|
});
|
|
162
163
|
Object.defineProperty(exports, "CustomerInputValueSchema", {
|
|
163
164
|
enumerable: true,
|
|
164
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkQOWPGS7Z_js.CustomerInputValueSchema; }
|
|
165
166
|
});
|
|
166
167
|
Object.defineProperty(exports, "DiscountDetailsSchema", {
|
|
167
168
|
enumerable: true,
|
|
168
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunkQOWPGS7Z_js.DiscountDetailsSchema; }
|
|
169
170
|
});
|
|
170
171
|
Object.defineProperty(exports, "IsoDateTimeSchema", {
|
|
171
172
|
enumerable: true,
|
|
172
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunkQOWPGS7Z_js.IsoDateTimeSchema; }
|
|
173
174
|
});
|
|
174
175
|
Object.defineProperty(exports, "LineTypeSchema", {
|
|
175
176
|
enumerable: true,
|
|
176
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunkQOWPGS7Z_js.LineTypeSchema; }
|
|
177
178
|
});
|
|
178
179
|
Object.defineProperty(exports, "LocaleSchema", {
|
|
179
180
|
enumerable: true,
|
|
180
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunkQOWPGS7Z_js.LocaleSchema; }
|
|
181
182
|
});
|
|
182
183
|
Object.defineProperty(exports, "MoneyLooseSchema", {
|
|
183
184
|
enumerable: true,
|
|
184
|
-
get: function () { return
|
|
185
|
+
get: function () { return chunkQOWPGS7Z_js.MoneyLooseSchema; }
|
|
185
186
|
});
|
|
186
187
|
Object.defineProperty(exports, "MoneySchema", {
|
|
187
188
|
enumerable: true,
|
|
188
|
-
get: function () { return
|
|
189
|
+
get: function () { return chunkQOWPGS7Z_js.MoneySchema; }
|
|
189
190
|
});
|
|
190
191
|
Object.defineProperty(exports, "NextActionSchema", {
|
|
191
192
|
enumerable: true,
|
|
192
|
-
get: function () { return
|
|
193
|
+
get: function () { return chunkQOWPGS7Z_js.NextActionSchema; }
|
|
193
194
|
});
|
|
194
195
|
Object.defineProperty(exports, "PhoneE164Schema", {
|
|
195
196
|
enumerable: true,
|
|
196
|
-
get: function () { return
|
|
197
|
+
get: function () { return chunkQOWPGS7Z_js.PhoneE164Schema; }
|
|
197
198
|
});
|
|
198
199
|
Object.defineProperty(exports, "ProductTypeSchema", {
|
|
199
200
|
enumerable: true,
|
|
200
|
-
get: function () { return
|
|
201
|
+
get: function () { return chunkQOWPGS7Z_js.ProductTypeSchema; }
|
|
201
202
|
});
|
|
202
203
|
Object.defineProperty(exports, "SchemaViolationError", {
|
|
203
204
|
enumerable: true,
|
|
204
|
-
get: function () { return
|
|
205
|
+
get: function () { return chunkQOWPGS7Z_js.SchemaViolationError; }
|
|
205
206
|
});
|
|
206
207
|
Object.defineProperty(exports, "SeedNameSchema", {
|
|
207
208
|
enumerable: true,
|
|
208
|
-
get: function () { return
|
|
209
|
+
get: function () { return chunkQOWPGS7Z_js.SeedNameSchema; }
|
|
209
210
|
});
|
|
210
211
|
Object.defineProperty(exports, "SelectedAddOnOptionSchema", {
|
|
211
212
|
enumerable: true,
|
|
212
|
-
get: function () { return
|
|
213
|
+
get: function () { return chunkQOWPGS7Z_js.SelectedAddOnOptionSchema; }
|
|
213
214
|
});
|
|
214
215
|
Object.defineProperty(exports, "ServiceStatusSchema", {
|
|
215
216
|
enumerable: true,
|
|
216
|
-
get: function () { return
|
|
217
|
+
get: function () { return chunkQOWPGS7Z_js.ServiceStatusSchema; }
|
|
218
|
+
});
|
|
219
|
+
Object.defineProperty(exports, "TaxPriceDisplayModeSchema", {
|
|
220
|
+
enumerable: true,
|
|
221
|
+
get: function () { return chunkQOWPGS7Z_js.TaxPriceDisplayModeSchema; }
|
|
217
222
|
});
|
|
218
223
|
Object.defineProperty(exports, "TimestampSchema", {
|
|
219
224
|
enumerable: true,
|
|
220
|
-
get: function () { return
|
|
225
|
+
get: function () { return chunkQOWPGS7Z_js.TimestampSchema; }
|
|
221
226
|
});
|
|
222
227
|
Object.defineProperty(exports, "VariantDetailsSchema", {
|
|
223
228
|
enumerable: true,
|
|
224
|
-
get: function () { return
|
|
229
|
+
get: function () { return chunkQOWPGS7Z_js.VariantDetailsSchema; }
|
|
225
230
|
});
|
|
226
231
|
Object.defineProperty(exports, "VariantDisplayAttributeSchema", {
|
|
227
232
|
enumerable: true,
|
|
228
|
-
get: function () { return
|
|
233
|
+
get: function () { return chunkQOWPGS7Z_js.VariantDisplayAttributeSchema; }
|
|
229
234
|
});
|
|
230
235
|
Object.defineProperty(exports, "VariantInfoSchema", {
|
|
231
236
|
enumerable: true,
|
|
232
|
-
get: function () { return
|
|
237
|
+
get: function () { return chunkQOWPGS7Z_js.VariantInfoSchema; }
|
|
233
238
|
});
|
|
234
239
|
Object.defineProperty(exports, "assertAddItemPayload", {
|
|
235
240
|
enumerable: true,
|
|
236
|
-
get: function () { return
|
|
241
|
+
get: function () { return chunkQOWPGS7Z_js.assertAddItemPayload; }
|
|
237
242
|
});
|
|
238
243
|
Object.defineProperty(exports, "assertBrand", {
|
|
239
244
|
enumerable: true,
|
|
240
|
-
get: function () { return
|
|
245
|
+
get: function () { return chunkQOWPGS7Z_js.assertBrand; }
|
|
241
246
|
});
|
|
242
247
|
Object.defineProperty(exports, "assertCart", {
|
|
243
248
|
enumerable: true,
|
|
244
|
-
get: function () { return
|
|
249
|
+
get: function () { return chunkQOWPGS7Z_js.assertCart; }
|
|
245
250
|
});
|
|
246
251
|
Object.defineProperty(exports, "assertCartItem", {
|
|
247
252
|
enumerable: true,
|
|
248
|
-
get: function () { return
|
|
253
|
+
get: function () { return chunkQOWPGS7Z_js.assertCartItem; }
|
|
249
254
|
});
|
|
250
255
|
Object.defineProperty(exports, "assertCheckoutBody", {
|
|
251
256
|
enumerable: true,
|
|
252
|
-
get: function () { return
|
|
257
|
+
get: function () { return chunkQOWPGS7Z_js.assertCheckoutBody; }
|
|
253
258
|
});
|
|
254
259
|
Object.defineProperty(exports, "assertCheckoutResponse", {
|
|
255
260
|
enumerable: true,
|
|
256
|
-
get: function () { return
|
|
261
|
+
get: function () { return chunkQOWPGS7Z_js.assertCheckoutResponse; }
|
|
257
262
|
});
|
|
258
263
|
Object.defineProperty(exports, "cimplifyRegistry", {
|
|
259
264
|
enumerable: true,
|
|
260
|
-
get: function () { return
|
|
265
|
+
get: function () { return chunkQOWPGS7Z_js.cimplifyRegistry; }
|
|
261
266
|
});
|
|
262
267
|
Object.defineProperty(exports, "createTestClient", {
|
|
263
268
|
enumerable: true,
|
|
264
|
-
get: function () { return
|
|
269
|
+
get: function () { return chunkQOWPGS7Z_js.createTestClient; }
|
|
265
270
|
});
|
|
266
271
|
Object.defineProperty(exports, "fixtures", {
|
|
267
272
|
enumerable: true,
|
|
268
|
-
get: function () { return
|
|
273
|
+
get: function () { return chunkQOWPGS7Z_js.fixtures; }
|
|
269
274
|
});
|
|
270
275
|
Object.defineProperty(exports, "makeAssertion", {
|
|
271
276
|
enumerable: true,
|
|
272
|
-
get: function () { return
|
|
277
|
+
get: function () { return chunkQOWPGS7Z_js.makeAssertion; }
|
|
273
278
|
});
|
|
274
279
|
Object.defineProperty(exports, "registerSchema", {
|
|
275
280
|
enumerable: true,
|
|
276
|
-
get: function () { return
|
|
281
|
+
get: function () { return chunkQOWPGS7Z_js.registerSchema; }
|
|
277
282
|
});
|
|
278
283
|
exports.exportJsonSchemas = exportJsonSchemas;
|
|
279
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-
|
|
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, TimestampSchema, VariantDetailsSchema, VariantDisplayAttributeSchema, VariantInfoSchema, assertAddItemPayload, assertBrand, assertCart, assertCartItem, assertCheckoutBody, assertCheckoutResponse, cimplifyRegistry, createTestClient, fixtures, makeAssertion, registerSchema } from './chunk-
|
|
3
|
-
import './chunk-
|
|
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-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
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,
|
|
2
|
-
import './
|
|
3
|
-
import './price-
|
|
4
|
-
import './
|
|
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,
|
|
2
|
-
import './
|
|
3
|
-
import './price-
|
|
4
|
-
import './
|
|
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
|
|
5
|
-
require('./chunk-
|
|
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
|
|
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
|
|
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
|
|
36
|
+
get: function () { return chunkNNG6IFFX_js.categorizePaymentError; }
|
|
33
37
|
});
|
|
34
38
|
Object.defineProperty(exports, "detectMobileMoneyProvider", {
|
|
35
39
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkNNG6IFFX_js.detectMobileMoneyProvider; }
|
|
37
41
|
});
|
|
38
42
|
Object.defineProperty(exports, "formatMoney", {
|
|
39
43
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkNNG6IFFX_js.formatMoney; }
|
|
41
45
|
});
|
|
42
46
|
Object.defineProperty(exports, "formatNumberCompact", {
|
|
43
47
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkNNG6IFFX_js.formatNumberCompact; }
|
|
45
49
|
});
|
|
46
50
|
Object.defineProperty(exports, "formatPrice", {
|
|
47
51
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkNNG6IFFX_js.formatPrice; }
|
|
49
53
|
});
|
|
50
54
|
Object.defineProperty(exports, "formatPriceAdjustment", {
|
|
51
55
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunkNNG6IFFX_js.formatPriceAdjustment; }
|
|
53
57
|
});
|
|
54
58
|
Object.defineProperty(exports, "formatPriceCompact", {
|
|
55
59
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunkNNG6IFFX_js.formatPriceCompact; }
|
|
57
61
|
});
|
|
58
62
|
Object.defineProperty(exports, "formatPriceWithTax", {
|
|
59
63
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunkNNG6IFFX_js.formatPriceWithTax; }
|
|
61
65
|
});
|
|
62
66
|
Object.defineProperty(exports, "formatProductPrice", {
|
|
63
67
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
68
|
+
get: function () { return chunkNNG6IFFX_js.formatProductPrice; }
|
|
65
69
|
});
|
|
66
70
|
Object.defineProperty(exports, "getBasePrice", {
|
|
67
71
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
72
|
+
get: function () { return chunkNNG6IFFX_js.getBasePrice; }
|
|
69
73
|
});
|
|
70
74
|
Object.defineProperty(exports, "getCurrencySymbol", {
|
|
71
75
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
76
|
+
get: function () { return chunkNNG6IFFX_js.getCurrencySymbol; }
|
|
73
77
|
});
|
|
74
78
|
Object.defineProperty(exports, "getDiscountPercentage", {
|
|
75
79
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
80
|
+
get: function () { return chunkNNG6IFFX_js.getDiscountPercentage; }
|
|
77
81
|
});
|
|
78
82
|
Object.defineProperty(exports, "getDisplayPrice", {
|
|
79
83
|
enumerable: true,
|
|
80
|
-
get: function () { return
|
|
84
|
+
get: function () { return chunkNNG6IFFX_js.getDisplayPrice; }
|
|
81
85
|
});
|
|
82
86
|
Object.defineProperty(exports, "getMarkupPercentage", {
|
|
83
87
|
enumerable: true,
|
|
84
|
-
get: function () { return
|
|
88
|
+
get: function () { return chunkNNG6IFFX_js.getMarkupPercentage; }
|
|
85
89
|
});
|
|
86
90
|
Object.defineProperty(exports, "getProductCurrency", {
|
|
87
91
|
enumerable: true,
|
|
88
|
-
get: function () { return
|
|
92
|
+
get: function () { return chunkNNG6IFFX_js.getProductCurrency; }
|
|
89
93
|
});
|
|
90
94
|
Object.defineProperty(exports, "getTaxAmount", {
|
|
91
95
|
enumerable: true,
|
|
92
|
-
get: function () { return
|
|
96
|
+
get: function () { return chunkNNG6IFFX_js.getTaxAmount; }
|
|
93
97
|
});
|
|
94
98
|
Object.defineProperty(exports, "hasTaxInfo", {
|
|
95
99
|
enumerable: true,
|
|
96
|
-
get: function () { return
|
|
100
|
+
get: function () { return chunkNNG6IFFX_js.hasTaxInfo; }
|
|
97
101
|
});
|
|
98
102
|
Object.defineProperty(exports, "isOnSale", {
|
|
99
103
|
enumerable: true,
|
|
100
|
-
get: function () { return
|
|
104
|
+
get: function () { return chunkNNG6IFFX_js.isOnSale; }
|
|
101
105
|
});
|
|
102
106
|
Object.defineProperty(exports, "isPaymentStatusFailure", {
|
|
103
107
|
enumerable: true,
|
|
104
|
-
get: function () { return
|
|
108
|
+
get: function () { return chunkNNG6IFFX_js.isPaymentStatusFailure; }
|
|
105
109
|
});
|
|
106
110
|
Object.defineProperty(exports, "isPaymentStatusRequiresAction", {
|
|
107
111
|
enumerable: true,
|
|
108
|
-
get: function () { return
|
|
112
|
+
get: function () { return chunkNNG6IFFX_js.isPaymentStatusRequiresAction; }
|
|
109
113
|
});
|
|
110
114
|
Object.defineProperty(exports, "isPaymentStatusSuccess", {
|
|
111
115
|
enumerable: true,
|
|
112
|
-
get: function () { return
|
|
116
|
+
get: function () { return chunkNNG6IFFX_js.isPaymentStatusSuccess; }
|
|
113
117
|
});
|
|
114
118
|
Object.defineProperty(exports, "isTaxInclusive", {
|
|
115
119
|
enumerable: true,
|
|
116
|
-
get: function () { return
|
|
120
|
+
get: function () { return chunkNNG6IFFX_js.isTaxInclusive; }
|
|
117
121
|
});
|
|
118
122
|
Object.defineProperty(exports, "normalizePaymentResponse", {
|
|
119
123
|
enumerable: true,
|
|
120
|
-
get: function () { return
|
|
124
|
+
get: function () { return chunkNNG6IFFX_js.normalizePaymentResponse; }
|
|
121
125
|
});
|
|
122
126
|
Object.defineProperty(exports, "normalizeStatusResponse", {
|
|
123
127
|
enumerable: true,
|
|
124
|
-
get: function () { return
|
|
128
|
+
get: function () { return chunkNNG6IFFX_js.normalizeStatusResponse; }
|
|
125
129
|
});
|
|
126
130
|
Object.defineProperty(exports, "parsePrice", {
|
|
127
131
|
enumerable: true,
|
|
128
|
-
get: function () { return
|
|
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-
|
|
3
|
-
import './chunk-
|
|
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.
|
|
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",
|