@cimplify/sdk 0.46.0 → 0.46.2
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 +22 -22
- package/dist/advanced.mjs +3 -3
- package/dist/{chunk-RQ3ILHUQ.mjs → chunk-632JEJUS.mjs} +1 -1
- package/dist/{chunk-IF22UYTT.mjs → chunk-6HYKWYUF.mjs} +2 -2
- package/dist/{chunk-BN2CXGMO.js → chunk-6RP6OPYO.js} +3 -3
- package/dist/{chunk-GVLWRI5I.js → chunk-7ZACMER7.js} +49 -25
- package/dist/{chunk-AIXUFSA6.mjs → chunk-CKRMA5F7.mjs} +29 -5
- package/dist/{chunk-K6FCVLZA.js → chunk-GEWFWQYK.js} +234 -234
- package/dist/{chunk-QBQCMQ4F.js → chunk-TKOTACKZ.js} +24 -2
- package/dist/{chunk-ZH6ZST5T.js → chunk-TW4OFRWV.js} +4 -4
- package/dist/{chunk-RR3ZJQW5.mjs → chunk-WUIERJ6J.mjs} +4 -4
- package/dist/{chunk-NRT6PVW5.mjs → chunk-XY2DFX5K.mjs} +1 -1
- package/dist/{chunk-XPXAZXF2.mjs → chunk-Z2AYLZDF.mjs} +23 -3
- package/dist/{chunk-LLZZMHSU.js → chunk-Z2MLAIID.js} +62 -62
- package/dist/{client-BDYBB-ME.d.ts → client-B76ZNW5r.d.ts} +2 -2
- package/dist/{client-MUD63aYS.d.mts → client-CT9NwIDX.d.mts} +2 -2
- package/dist/{client-aZInadOY.d.ts → client-G2WCoxv2.d.mts} +5 -2
- package/dist/{client-CDUY-6nC.d.mts → client-QVINYu1X.d.ts} +5 -2
- package/dist/{index-DC_ZcSgO.d.ts → index-BAohYhdg.d.ts} +3 -3
- package/dist/{index-3C9J8Wb-.d.mts → index-Bo0NjgR6.d.mts} +3 -3
- package/dist/index.d.mts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +115 -107
- package/dist/index.mjs +4 -4
- package/dist/mock/cli.mjs +2 -0
- package/dist/mock/library.js +2 -0
- package/dist/mock/library.mjs +2 -0
- package/dist/mock/msw.js +2 -0
- package/dist/mock/msw.mjs +2 -0
- package/dist/{payment-Bse2XJ-c.d.mts → payment-9L_-GWqQ.d.mts} +1 -1
- package/dist/{payment-JcNqOf_T.d.ts → payment-_e99nSRj.d.ts} +1 -1
- package/dist/{price-YBGk5seG.d.mts → price-BjehlIhG.d.mts} +1 -1
- package/dist/{price-mHkRncgW.d.ts → price-CWQ5TQmk.d.ts} +1 -1
- package/dist/{product-DiX-HGkT.d.ts → product-C-xLzh7Q.d.mts} +16 -1
- package/dist/{product-DiX-HGkT.d.mts → product-C-xLzh7Q.d.ts} +16 -1
- package/dist/react.d.mts +4 -4
- package/dist/react.d.ts +4 -4
- package/dist/react.js +85 -85
- package/dist/react.mjs +4 -4
- package/dist/{server-Bg3VtA1D.d.ts → server-72rzvJ4Y.d.ts} +1 -1
- package/dist/{server-kakjHRgj.d.mts → server-BgccqOLT.d.mts} +1 -1
- package/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +6 -6
- package/dist/server.mjs +4 -4
- package/dist/styles.css +1 -1
- package/dist/testing/msw.d.mts +2 -2
- package/dist/testing/msw.d.ts +2 -2
- package/dist/testing/msw.js +3 -3
- package/dist/testing/msw.mjs +2 -2
- package/dist/testing/suite.d.mts +6 -6
- package/dist/testing/suite.d.ts +6 -6
- package/dist/testing/suite.js +25 -25
- package/dist/testing/suite.mjs +6 -6
- package/dist/testing.d.mts +5 -5
- package/dist/testing.d.ts +5 -5
- package/dist/testing.js +81 -81
- package/dist/testing.mjs +7 -7
- package/dist/utils.d.mts +4 -4
- package/dist/utils.d.ts +4 -4
- package/dist/utils.js +29 -29
- package/dist/utils.mjs +2 -2
- package/package.json +1 -1
package/dist/testing.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
3
|
+
var chunkTW4OFRWV_js = require('./chunk-TW4OFRWV.js');
|
|
4
|
+
require('./chunk-Z2MLAIID.js');
|
|
5
|
+
require('./chunk-7ZACMER7.js');
|
|
6
|
+
require('./chunk-6RP6OPYO.js');
|
|
7
|
+
require('./chunk-GEWFWQYK.js');
|
|
8
|
+
require('./chunk-TKOTACKZ.js');
|
|
9
9
|
var zod = require('zod');
|
|
10
10
|
|
|
11
11
|
var PUBLIC_SCHEMAS = {
|
|
12
|
-
Brand:
|
|
13
|
-
AddItemPayload:
|
|
14
|
-
Cart:
|
|
15
|
-
CartItem:
|
|
16
|
-
CartPricing:
|
|
17
|
-
CheckoutBody:
|
|
18
|
-
CheckoutResponse:
|
|
19
|
-
VariantInfo:
|
|
12
|
+
Brand: chunkTW4OFRWV_js.BrandSchema,
|
|
13
|
+
AddItemPayload: chunkTW4OFRWV_js.AddItemPayloadSchema,
|
|
14
|
+
Cart: chunkTW4OFRWV_js.CartSchema,
|
|
15
|
+
CartItem: chunkTW4OFRWV_js.CartItemSchema,
|
|
16
|
+
CartPricing: chunkTW4OFRWV_js.CartPricingSchema,
|
|
17
|
+
CheckoutBody: chunkTW4OFRWV_js.CheckoutBodySchema,
|
|
18
|
+
CheckoutResponse: chunkTW4OFRWV_js.CheckoutResponseSchema,
|
|
19
|
+
VariantInfo: chunkTW4OFRWV_js.VariantInfoSchema
|
|
20
20
|
};
|
|
21
21
|
function exportJsonSchemas() {
|
|
22
22
|
const out = {};
|
|
23
23
|
for (const [name, schema] of Object.entries(PUBLIC_SCHEMAS)) {
|
|
24
|
-
const meta =
|
|
25
|
-
const json = zod.z.toJSONSchema(schema, { metadata:
|
|
24
|
+
const meta = chunkTW4OFRWV_js.cimplifyRegistry.get(schema);
|
|
25
|
+
const json = zod.z.toJSONSchema(schema, { metadata: chunkTW4OFRWV_js.cimplifyRegistry });
|
|
26
26
|
if (meta) {
|
|
27
27
|
json.$id = meta.id;
|
|
28
28
|
json["x-cimplify-version"] = meta.version;
|
|
@@ -34,16 +34,16 @@ function exportJsonSchemas() {
|
|
|
34
34
|
function listRegisteredSchemas() {
|
|
35
35
|
const entries = [];
|
|
36
36
|
for (const schema of [
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
37
|
+
chunkTW4OFRWV_js.BrandSchema,
|
|
38
|
+
chunkTW4OFRWV_js.AddItemPayloadSchema,
|
|
39
|
+
chunkTW4OFRWV_js.CartSchema,
|
|
40
|
+
chunkTW4OFRWV_js.CartItemSchema,
|
|
41
|
+
chunkTW4OFRWV_js.CartPricingSchema,
|
|
42
|
+
chunkTW4OFRWV_js.CheckoutBodySchema,
|
|
43
|
+
chunkTW4OFRWV_js.CheckoutResponseSchema,
|
|
44
|
+
chunkTW4OFRWV_js.VariantInfoSchema
|
|
45
45
|
]) {
|
|
46
|
-
const meta =
|
|
46
|
+
const meta = chunkTW4OFRWV_js.cimplifyRegistry.get(schema);
|
|
47
47
|
if (meta) entries.push({ schema, meta });
|
|
48
48
|
}
|
|
49
49
|
return entries;
|
|
@@ -51,227 +51,227 @@ function listRegisteredSchemas() {
|
|
|
51
51
|
|
|
52
52
|
Object.defineProperty(exports, "AddItemPayloadSchema", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkTW4OFRWV_js.AddItemPayloadSchema; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "AddOnDetailsSchema", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkTW4OFRWV_js.AddOnDetailsSchema; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "AddOnGroupDetailsSchema", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkTW4OFRWV_js.AddOnGroupDetailsSchema; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "AddOnInDetailsSchema", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkTW4OFRWV_js.AddOnInDetailsSchema; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "AddOnOptionDetailsSchema", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkTW4OFRWV_js.AddOnOptionDetailsSchema; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "AuthorizationTypeSchema", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkTW4OFRWV_js.AuthorizationTypeSchema; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "BrandContactSchema", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkTW4OFRWV_js.BrandContactSchema; }
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "BrandFaqSchema", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkTW4OFRWV_js.BrandFaqSchema; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "BrandHeroSchema", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkTW4OFRWV_js.BrandHeroSchema; }
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(exports, "BrandNavLinkSchema", {
|
|
89
89
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkTW4OFRWV_js.BrandNavLinkSchema; }
|
|
91
91
|
});
|
|
92
92
|
Object.defineProperty(exports, "BrandPolicyPageSchema", {
|
|
93
93
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkTW4OFRWV_js.BrandPolicyPageSchema; }
|
|
95
95
|
});
|
|
96
96
|
Object.defineProperty(exports, "BrandPolicySectionSchema", {
|
|
97
97
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunkTW4OFRWV_js.BrandPolicySectionSchema; }
|
|
99
99
|
});
|
|
100
100
|
Object.defineProperty(exports, "BrandSchema", {
|
|
101
101
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunkTW4OFRWV_js.BrandSchema; }
|
|
103
103
|
});
|
|
104
104
|
Object.defineProperty(exports, "BrandSocialSchema", {
|
|
105
105
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunkTW4OFRWV_js.BrandSocialSchema; }
|
|
107
107
|
});
|
|
108
108
|
Object.defineProperty(exports, "BundleResolvedSchema", {
|
|
109
109
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunkTW4OFRWV_js.BundleResolvedSchema; }
|
|
111
111
|
});
|
|
112
112
|
Object.defineProperty(exports, "BundleSelectionInputSchema", {
|
|
113
113
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunkTW4OFRWV_js.BundleSelectionInputSchema; }
|
|
115
115
|
});
|
|
116
116
|
Object.defineProperty(exports, "CartItemSchema", {
|
|
117
117
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunkTW4OFRWV_js.CartItemSchema; }
|
|
119
119
|
});
|
|
120
120
|
Object.defineProperty(exports, "CartPricingSchema", {
|
|
121
121
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunkTW4OFRWV_js.CartPricingSchema; }
|
|
123
123
|
});
|
|
124
124
|
Object.defineProperty(exports, "CartSchema", {
|
|
125
125
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
126
|
+
get: function () { return chunkTW4OFRWV_js.CartSchema; }
|
|
127
127
|
});
|
|
128
128
|
Object.defineProperty(exports, "CheckoutBodySchema", {
|
|
129
129
|
enumerable: true,
|
|
130
|
-
get: function () { return
|
|
130
|
+
get: function () { return chunkTW4OFRWV_js.CheckoutBodySchema; }
|
|
131
131
|
});
|
|
132
132
|
Object.defineProperty(exports, "CheckoutCustomerSchema", {
|
|
133
133
|
enumerable: true,
|
|
134
|
-
get: function () { return
|
|
134
|
+
get: function () { return chunkTW4OFRWV_js.CheckoutCustomerSchema; }
|
|
135
135
|
});
|
|
136
136
|
Object.defineProperty(exports, "CheckoutResponseSchema", {
|
|
137
137
|
enumerable: true,
|
|
138
|
-
get: function () { return
|
|
138
|
+
get: function () { return chunkTW4OFRWV_js.CheckoutResponseSchema; }
|
|
139
139
|
});
|
|
140
140
|
Object.defineProperty(exports, "ChosenPriceSchema", {
|
|
141
141
|
enumerable: true,
|
|
142
|
-
get: function () { return
|
|
142
|
+
get: function () { return chunkTW4OFRWV_js.ChosenPriceSchema; }
|
|
143
143
|
});
|
|
144
144
|
Object.defineProperty(exports, "CompositeResolvedSchema", {
|
|
145
145
|
enumerable: true,
|
|
146
|
-
get: function () { return
|
|
146
|
+
get: function () { return chunkTW4OFRWV_js.CompositeResolvedSchema; }
|
|
147
147
|
});
|
|
148
148
|
Object.defineProperty(exports, "CompositeSelectionInputSchema", {
|
|
149
149
|
enumerable: true,
|
|
150
|
-
get: function () { return
|
|
150
|
+
get: function () { return chunkTW4OFRWV_js.CompositeSelectionInputSchema; }
|
|
151
151
|
});
|
|
152
152
|
Object.defineProperty(exports, "CountryCodeSchema", {
|
|
153
153
|
enumerable: true,
|
|
154
|
-
get: function () { return
|
|
154
|
+
get: function () { return chunkTW4OFRWV_js.CountryCodeSchema; }
|
|
155
155
|
});
|
|
156
156
|
Object.defineProperty(exports, "CurrencyCodeSchema", {
|
|
157
157
|
enumerable: true,
|
|
158
|
-
get: function () { return
|
|
158
|
+
get: function () { return chunkTW4OFRWV_js.CurrencyCodeSchema; }
|
|
159
159
|
});
|
|
160
160
|
Object.defineProperty(exports, "CustomerInputValueSchema", {
|
|
161
161
|
enumerable: true,
|
|
162
|
-
get: function () { return
|
|
162
|
+
get: function () { return chunkTW4OFRWV_js.CustomerInputValueSchema; }
|
|
163
163
|
});
|
|
164
164
|
Object.defineProperty(exports, "DiscountDetailsSchema", {
|
|
165
165
|
enumerable: true,
|
|
166
|
-
get: function () { return
|
|
166
|
+
get: function () { return chunkTW4OFRWV_js.DiscountDetailsSchema; }
|
|
167
167
|
});
|
|
168
168
|
Object.defineProperty(exports, "IsoDateTimeSchema", {
|
|
169
169
|
enumerable: true,
|
|
170
|
-
get: function () { return
|
|
170
|
+
get: function () { return chunkTW4OFRWV_js.IsoDateTimeSchema; }
|
|
171
171
|
});
|
|
172
172
|
Object.defineProperty(exports, "LineTypeSchema", {
|
|
173
173
|
enumerable: true,
|
|
174
|
-
get: function () { return
|
|
174
|
+
get: function () { return chunkTW4OFRWV_js.LineTypeSchema; }
|
|
175
175
|
});
|
|
176
176
|
Object.defineProperty(exports, "LocaleSchema", {
|
|
177
177
|
enumerable: true,
|
|
178
|
-
get: function () { return
|
|
178
|
+
get: function () { return chunkTW4OFRWV_js.LocaleSchema; }
|
|
179
179
|
});
|
|
180
180
|
Object.defineProperty(exports, "MoneyLooseSchema", {
|
|
181
181
|
enumerable: true,
|
|
182
|
-
get: function () { return
|
|
182
|
+
get: function () { return chunkTW4OFRWV_js.MoneyLooseSchema; }
|
|
183
183
|
});
|
|
184
184
|
Object.defineProperty(exports, "MoneySchema", {
|
|
185
185
|
enumerable: true,
|
|
186
|
-
get: function () { return
|
|
186
|
+
get: function () { return chunkTW4OFRWV_js.MoneySchema; }
|
|
187
187
|
});
|
|
188
188
|
Object.defineProperty(exports, "NextActionSchema", {
|
|
189
189
|
enumerable: true,
|
|
190
|
-
get: function () { return
|
|
190
|
+
get: function () { return chunkTW4OFRWV_js.NextActionSchema; }
|
|
191
191
|
});
|
|
192
192
|
Object.defineProperty(exports, "PhoneE164Schema", {
|
|
193
193
|
enumerable: true,
|
|
194
|
-
get: function () { return
|
|
194
|
+
get: function () { return chunkTW4OFRWV_js.PhoneE164Schema; }
|
|
195
195
|
});
|
|
196
196
|
Object.defineProperty(exports, "ProductTypeSchema", {
|
|
197
197
|
enumerable: true,
|
|
198
|
-
get: function () { return
|
|
198
|
+
get: function () { return chunkTW4OFRWV_js.ProductTypeSchema; }
|
|
199
199
|
});
|
|
200
200
|
Object.defineProperty(exports, "SchemaViolationError", {
|
|
201
201
|
enumerable: true,
|
|
202
|
-
get: function () { return
|
|
202
|
+
get: function () { return chunkTW4OFRWV_js.SchemaViolationError; }
|
|
203
203
|
});
|
|
204
204
|
Object.defineProperty(exports, "SeedNameSchema", {
|
|
205
205
|
enumerable: true,
|
|
206
|
-
get: function () { return
|
|
206
|
+
get: function () { return chunkTW4OFRWV_js.SeedNameSchema; }
|
|
207
207
|
});
|
|
208
208
|
Object.defineProperty(exports, "SelectedAddOnOptionSchema", {
|
|
209
209
|
enumerable: true,
|
|
210
|
-
get: function () { return
|
|
210
|
+
get: function () { return chunkTW4OFRWV_js.SelectedAddOnOptionSchema; }
|
|
211
211
|
});
|
|
212
212
|
Object.defineProperty(exports, "ServiceStatusSchema", {
|
|
213
213
|
enumerable: true,
|
|
214
|
-
get: function () { return
|
|
214
|
+
get: function () { return chunkTW4OFRWV_js.ServiceStatusSchema; }
|
|
215
215
|
});
|
|
216
216
|
Object.defineProperty(exports, "TimestampSchema", {
|
|
217
217
|
enumerable: true,
|
|
218
|
-
get: function () { return
|
|
218
|
+
get: function () { return chunkTW4OFRWV_js.TimestampSchema; }
|
|
219
219
|
});
|
|
220
220
|
Object.defineProperty(exports, "VariantDetailsSchema", {
|
|
221
221
|
enumerable: true,
|
|
222
|
-
get: function () { return
|
|
222
|
+
get: function () { return chunkTW4OFRWV_js.VariantDetailsSchema; }
|
|
223
223
|
});
|
|
224
224
|
Object.defineProperty(exports, "VariantDisplayAttributeSchema", {
|
|
225
225
|
enumerable: true,
|
|
226
|
-
get: function () { return
|
|
226
|
+
get: function () { return chunkTW4OFRWV_js.VariantDisplayAttributeSchema; }
|
|
227
227
|
});
|
|
228
228
|
Object.defineProperty(exports, "VariantInfoSchema", {
|
|
229
229
|
enumerable: true,
|
|
230
|
-
get: function () { return
|
|
230
|
+
get: function () { return chunkTW4OFRWV_js.VariantInfoSchema; }
|
|
231
231
|
});
|
|
232
232
|
Object.defineProperty(exports, "assertAddItemPayload", {
|
|
233
233
|
enumerable: true,
|
|
234
|
-
get: function () { return
|
|
234
|
+
get: function () { return chunkTW4OFRWV_js.assertAddItemPayload; }
|
|
235
235
|
});
|
|
236
236
|
Object.defineProperty(exports, "assertBrand", {
|
|
237
237
|
enumerable: true,
|
|
238
|
-
get: function () { return
|
|
238
|
+
get: function () { return chunkTW4OFRWV_js.assertBrand; }
|
|
239
239
|
});
|
|
240
240
|
Object.defineProperty(exports, "assertCart", {
|
|
241
241
|
enumerable: true,
|
|
242
|
-
get: function () { return
|
|
242
|
+
get: function () { return chunkTW4OFRWV_js.assertCart; }
|
|
243
243
|
});
|
|
244
244
|
Object.defineProperty(exports, "assertCartItem", {
|
|
245
245
|
enumerable: true,
|
|
246
|
-
get: function () { return
|
|
246
|
+
get: function () { return chunkTW4OFRWV_js.assertCartItem; }
|
|
247
247
|
});
|
|
248
248
|
Object.defineProperty(exports, "assertCheckoutBody", {
|
|
249
249
|
enumerable: true,
|
|
250
|
-
get: function () { return
|
|
250
|
+
get: function () { return chunkTW4OFRWV_js.assertCheckoutBody; }
|
|
251
251
|
});
|
|
252
252
|
Object.defineProperty(exports, "assertCheckoutResponse", {
|
|
253
253
|
enumerable: true,
|
|
254
|
-
get: function () { return
|
|
254
|
+
get: function () { return chunkTW4OFRWV_js.assertCheckoutResponse; }
|
|
255
255
|
});
|
|
256
256
|
Object.defineProperty(exports, "cimplifyRegistry", {
|
|
257
257
|
enumerable: true,
|
|
258
|
-
get: function () { return
|
|
258
|
+
get: function () { return chunkTW4OFRWV_js.cimplifyRegistry; }
|
|
259
259
|
});
|
|
260
260
|
Object.defineProperty(exports, "createTestClient", {
|
|
261
261
|
enumerable: true,
|
|
262
|
-
get: function () { return
|
|
262
|
+
get: function () { return chunkTW4OFRWV_js.createTestClient; }
|
|
263
263
|
});
|
|
264
264
|
Object.defineProperty(exports, "fixtures", {
|
|
265
265
|
enumerable: true,
|
|
266
|
-
get: function () { return
|
|
266
|
+
get: function () { return chunkTW4OFRWV_js.fixtures; }
|
|
267
267
|
});
|
|
268
268
|
Object.defineProperty(exports, "makeAssertion", {
|
|
269
269
|
enumerable: true,
|
|
270
|
-
get: function () { return
|
|
270
|
+
get: function () { return chunkTW4OFRWV_js.makeAssertion; }
|
|
271
271
|
});
|
|
272
272
|
Object.defineProperty(exports, "registerSchema", {
|
|
273
273
|
enumerable: true,
|
|
274
|
-
get: function () { return
|
|
274
|
+
get: function () { return chunkTW4OFRWV_js.registerSchema; }
|
|
275
275
|
});
|
|
276
276
|
exports.exportJsonSchemas = exportJsonSchemas;
|
|
277
277
|
exports.listRegisteredSchemas = listRegisteredSchemas;
|
package/dist/testing.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
1
|
+
import { VariantInfoSchema, CheckoutResponseSchema, CheckoutBodySchema, CartPricingSchema, CartItemSchema, CartSchema, AddItemPayloadSchema, BrandSchema, cimplifyRegistry } from './chunk-6HYKWYUF.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, TimestampSchema, VariantDetailsSchema, VariantDisplayAttributeSchema, VariantInfoSchema, assertAddItemPayload, assertBrand, assertCart, assertCartItem, assertCheckoutBody, assertCheckoutResponse, cimplifyRegistry, createTestClient, fixtures, makeAssertion, registerSchema } from './chunk-6HYKWYUF.mjs';
|
|
3
|
+
import './chunk-WUIERJ6J.mjs';
|
|
4
|
+
import './chunk-CKRMA5F7.mjs';
|
|
5
|
+
import './chunk-XY2DFX5K.mjs';
|
|
6
|
+
import './chunk-632JEJUS.mjs';
|
|
7
|
+
import './chunk-Z2AYLZDF.mjs';
|
|
8
8
|
import { z } from 'zod';
|
|
9
9
|
|
|
10
10
|
var PUBLIC_SCHEMAS = {
|
package/dist/utils.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, v as categorizePaymentError, B as detectMobileMoneyProvider, c as formatMoney, d as formatNumberCompact, f as formatPrice, a as formatPriceAdjustment, b as formatPriceCompact, j as formatPriceWithTax, e as formatProductPrice, m as getBasePrice, k as getCurrencySymbol, o as getDiscountPercentage, l as getDisplayPrice, q as getMarkupPercentage, r as getProductCurrency, g as getTaxAmount, h as hasTaxInfo, n as isOnSale, y as isPaymentStatusFailure, z as isPaymentStatusRequiresAction, A as isPaymentStatusSuccess, i as isTaxInclusive, F as isValidPhoneForContext, w as normalizePaymentResponse, D as normalizePhoneToE164, x as normalizeStatusResponse, p as parsePrice, E as resolvePhoneCountryCode } from './index-
|
|
2
|
-
import './product-
|
|
3
|
-
import './price-
|
|
4
|
-
import './payment-
|
|
1
|
+
export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, v as categorizePaymentError, B as detectMobileMoneyProvider, c as formatMoney, d as formatNumberCompact, f as formatPrice, a as formatPriceAdjustment, b as formatPriceCompact, j as formatPriceWithTax, e as formatProductPrice, m as getBasePrice, k as getCurrencySymbol, o as getDiscountPercentage, l as getDisplayPrice, q as getMarkupPercentage, r as getProductCurrency, g as getTaxAmount, h as hasTaxInfo, n as isOnSale, y as isPaymentStatusFailure, z as isPaymentStatusRequiresAction, A as isPaymentStatusSuccess, i as isTaxInclusive, F as isValidPhoneForContext, w as normalizePaymentResponse, D as normalizePhoneToE164, x as normalizeStatusResponse, p as parsePrice, E as resolvePhoneCountryCode } from './index-Bo0NjgR6.mjs';
|
|
2
|
+
import './product-C-xLzh7Q.mjs';
|
|
3
|
+
import './price-BjehlIhG.mjs';
|
|
4
|
+
import './payment-9L_-GWqQ.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, v as categorizePaymentError, B as detectMobileMoneyProvider, c as formatMoney, d as formatNumberCompact, f as formatPrice, a as formatPriceAdjustment, b as formatPriceCompact, j as formatPriceWithTax, e as formatProductPrice, m as getBasePrice, k as getCurrencySymbol, o as getDiscountPercentage, l as getDisplayPrice, q as getMarkupPercentage, r as getProductCurrency, g as getTaxAmount, h as hasTaxInfo, n as isOnSale, y as isPaymentStatusFailure, z as isPaymentStatusRequiresAction, A as isPaymentStatusSuccess, i as isTaxInclusive, F as isValidPhoneForContext, w as normalizePaymentResponse, D as normalizePhoneToE164, x as normalizeStatusResponse, p as parsePrice, E as resolvePhoneCountryCode } from './index-
|
|
2
|
-
import './product-
|
|
3
|
-
import './price-
|
|
4
|
-
import './payment-
|
|
1
|
+
export { C as CURRENCY_SYMBOLS, M as MOBILE_MONEY_PROVIDERS, v as categorizePaymentError, B as detectMobileMoneyProvider, c as formatMoney, d as formatNumberCompact, f as formatPrice, a as formatPriceAdjustment, b as formatPriceCompact, j as formatPriceWithTax, e as formatProductPrice, m as getBasePrice, k as getCurrencySymbol, o as getDiscountPercentage, l as getDisplayPrice, q as getMarkupPercentage, r as getProductCurrency, g as getTaxAmount, h as hasTaxInfo, n as isOnSale, y as isPaymentStatusFailure, z as isPaymentStatusRequiresAction, A as isPaymentStatusSuccess, i as isTaxInclusive, F as isValidPhoneForContext, w as normalizePaymentResponse, D as normalizePhoneToE164, x as normalizeStatusResponse, p as parsePrice, E as resolvePhoneCountryCode } from './index-BAohYhdg.js';
|
|
2
|
+
import './product-C-xLzh7Q.js';
|
|
3
|
+
import './price-CWQ5TQmk.js';
|
|
4
|
+
import './payment-_e99nSRj.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 chunk6RP6OPYO_js = require('./chunk-6RP6OPYO.js');
|
|
5
|
+
require('./chunk-TKOTACKZ.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -20,109 +20,109 @@ Object.defineProperty(exports, "resolvePhoneCountryCode", {
|
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "CURRENCY_SYMBOLS", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunk6RP6OPYO_js.CURRENCY_SYMBOLS; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "MOBILE_MONEY_PROVIDERS", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunk6RP6OPYO_js.MOBILE_MONEY_PROVIDERS; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "categorizePaymentError", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunk6RP6OPYO_js.categorizePaymentError; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "detectMobileMoneyProvider", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunk6RP6OPYO_js.detectMobileMoneyProvider; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "formatMoney", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunk6RP6OPYO_js.formatMoney; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "formatNumberCompact", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunk6RP6OPYO_js.formatNumberCompact; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "formatPrice", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunk6RP6OPYO_js.formatPrice; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "formatPriceAdjustment", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunk6RP6OPYO_js.formatPriceAdjustment; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "formatPriceCompact", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunk6RP6OPYO_js.formatPriceCompact; }
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "formatPriceWithTax", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunk6RP6OPYO_js.formatPriceWithTax; }
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "formatProductPrice", {
|
|
62
62
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunk6RP6OPYO_js.formatProductPrice; }
|
|
64
64
|
});
|
|
65
65
|
Object.defineProperty(exports, "getBasePrice", {
|
|
66
66
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunk6RP6OPYO_js.getBasePrice; }
|
|
68
68
|
});
|
|
69
69
|
Object.defineProperty(exports, "getCurrencySymbol", {
|
|
70
70
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunk6RP6OPYO_js.getCurrencySymbol; }
|
|
72
72
|
});
|
|
73
73
|
Object.defineProperty(exports, "getDiscountPercentage", {
|
|
74
74
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunk6RP6OPYO_js.getDiscountPercentage; }
|
|
76
76
|
});
|
|
77
77
|
Object.defineProperty(exports, "getDisplayPrice", {
|
|
78
78
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunk6RP6OPYO_js.getDisplayPrice; }
|
|
80
80
|
});
|
|
81
81
|
Object.defineProperty(exports, "getMarkupPercentage", {
|
|
82
82
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunk6RP6OPYO_js.getMarkupPercentage; }
|
|
84
84
|
});
|
|
85
85
|
Object.defineProperty(exports, "getProductCurrency", {
|
|
86
86
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunk6RP6OPYO_js.getProductCurrency; }
|
|
88
88
|
});
|
|
89
89
|
Object.defineProperty(exports, "getTaxAmount", {
|
|
90
90
|
enumerable: true,
|
|
91
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunk6RP6OPYO_js.getTaxAmount; }
|
|
92
92
|
});
|
|
93
93
|
Object.defineProperty(exports, "hasTaxInfo", {
|
|
94
94
|
enumerable: true,
|
|
95
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunk6RP6OPYO_js.hasTaxInfo; }
|
|
96
96
|
});
|
|
97
97
|
Object.defineProperty(exports, "isOnSale", {
|
|
98
98
|
enumerable: true,
|
|
99
|
-
get: function () { return
|
|
99
|
+
get: function () { return chunk6RP6OPYO_js.isOnSale; }
|
|
100
100
|
});
|
|
101
101
|
Object.defineProperty(exports, "isPaymentStatusFailure", {
|
|
102
102
|
enumerable: true,
|
|
103
|
-
get: function () { return
|
|
103
|
+
get: function () { return chunk6RP6OPYO_js.isPaymentStatusFailure; }
|
|
104
104
|
});
|
|
105
105
|
Object.defineProperty(exports, "isPaymentStatusRequiresAction", {
|
|
106
106
|
enumerable: true,
|
|
107
|
-
get: function () { return
|
|
107
|
+
get: function () { return chunk6RP6OPYO_js.isPaymentStatusRequiresAction; }
|
|
108
108
|
});
|
|
109
109
|
Object.defineProperty(exports, "isPaymentStatusSuccess", {
|
|
110
110
|
enumerable: true,
|
|
111
|
-
get: function () { return
|
|
111
|
+
get: function () { return chunk6RP6OPYO_js.isPaymentStatusSuccess; }
|
|
112
112
|
});
|
|
113
113
|
Object.defineProperty(exports, "isTaxInclusive", {
|
|
114
114
|
enumerable: true,
|
|
115
|
-
get: function () { return
|
|
115
|
+
get: function () { return chunk6RP6OPYO_js.isTaxInclusive; }
|
|
116
116
|
});
|
|
117
117
|
Object.defineProperty(exports, "normalizePaymentResponse", {
|
|
118
118
|
enumerable: true,
|
|
119
|
-
get: function () { return
|
|
119
|
+
get: function () { return chunk6RP6OPYO_js.normalizePaymentResponse; }
|
|
120
120
|
});
|
|
121
121
|
Object.defineProperty(exports, "normalizeStatusResponse", {
|
|
122
122
|
enumerable: true,
|
|
123
|
-
get: function () { return
|
|
123
|
+
get: function () { return chunk6RP6OPYO_js.normalizeStatusResponse; }
|
|
124
124
|
});
|
|
125
125
|
Object.defineProperty(exports, "parsePrice", {
|
|
126
126
|
enumerable: true,
|
|
127
|
-
get: function () { return
|
|
127
|
+
get: function () { return chunk6RP6OPYO_js.parsePrice; }
|
|
128
128
|
});
|
package/dist/utils.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
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, 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-XY2DFX5K.mjs';
|
|
3
|
+
import './chunk-Z2AYLZDF.mjs';
|