@cimplify/sdk 0.52.0 → 0.52.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.js +23 -22
- package/dist/advanced.mjs +4 -3
- package/dist/chunk-3G6RQLXK.mjs +21 -0
- package/dist/{chunk-6RP6OPYO.js → chunk-7Y2O3E4D.js} +3 -3
- package/dist/{chunk-Z2AYLZDF.mjs → chunk-AMZXALF6.mjs} +1 -21
- package/dist/{chunk-MBR2DBEN.mjs → chunk-APHYBBDD.mjs} +3 -3
- package/dist/{chunk-CYGLTD7D.js → chunk-EMS6DQIX.js} +61 -61
- package/dist/{chunk-DR4UPU6P.js → chunk-EQLT46ZR.js} +22 -22
- package/dist/{chunk-OFNVLUH4.mjs → chunk-GLAVTDDE.mjs} +2 -2
- package/dist/chunk-OWW5GUSB.js +28 -0
- package/dist/{chunk-GEWFWQYK.js → chunk-Q5VGDCQF.js} +235 -234
- package/dist/{chunk-632JEJUS.mjs → chunk-R3F55BRN.mjs} +2 -1
- package/dist/{chunk-D22UVSFN.js → chunk-ROURLUXG.js} +4 -4
- package/dist/{chunk-XY2DFX5K.mjs → chunk-TD3AY34U.mjs} +1 -1
- package/dist/{chunk-24FK7VFL.mjs → chunk-VZS453ON.mjs} +2 -2
- package/dist/{chunk-TKOTACKZ.js → chunk-XA3ZNR75.js} +0 -26
- package/dist/index.js +110 -109
- package/dist/index.mjs +5 -4
- package/dist/react.js +86 -85
- package/dist/react.mjs +5 -4
- package/dist/server/evict.d.mts +31 -0
- package/dist/server/evict.d.ts +31 -0
- package/dist/server/evict.js +75 -0
- package/dist/server/evict.mjs +73 -0
- package/dist/server.d.mts +1 -30
- package/dist/server.d.ts +1 -30
- package/dist/server.js +7 -76
- package/dist/server.mjs +6 -74
- package/dist/testing/msw.js +4 -3
- package/dist/testing/msw.mjs +3 -2
- package/dist/testing/suite.js +26 -25
- package/dist/testing/suite.mjs +7 -6
- package/dist/testing.js +82 -81
- package/dist/testing.mjs +8 -7
- package/dist/utils.js +30 -29
- package/dist/utils.mjs +3 -2
- package/package.json +7 -1
package/dist/testing.js
CHANGED
|
@@ -1,28 +1,29 @@
|
|
|
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 chunkROURLUXG_js = require('./chunk-ROURLUXG.js');
|
|
4
|
+
require('./chunk-Q5VGDCQF.js');
|
|
5
|
+
require('./chunk-EMS6DQIX.js');
|
|
6
|
+
require('./chunk-EQLT46ZR.js');
|
|
7
|
+
require('./chunk-7Y2O3E4D.js');
|
|
8
|
+
require('./chunk-XA3ZNR75.js');
|
|
9
|
+
require('./chunk-OWW5GUSB.js');
|
|
9
10
|
var zod = require('zod');
|
|
10
11
|
|
|
11
12
|
var PUBLIC_SCHEMAS = {
|
|
12
|
-
Brand:
|
|
13
|
-
AddItemPayload:
|
|
14
|
-
Cart:
|
|
15
|
-
CartItem:
|
|
16
|
-
CartPricing:
|
|
17
|
-
CheckoutBody:
|
|
18
|
-
CheckoutResponse:
|
|
19
|
-
VariantInfo:
|
|
13
|
+
Brand: chunkROURLUXG_js.BrandSchema,
|
|
14
|
+
AddItemPayload: chunkROURLUXG_js.AddItemPayloadSchema,
|
|
15
|
+
Cart: chunkROURLUXG_js.CartSchema,
|
|
16
|
+
CartItem: chunkROURLUXG_js.CartItemSchema,
|
|
17
|
+
CartPricing: chunkROURLUXG_js.CartPricingSchema,
|
|
18
|
+
CheckoutBody: chunkROURLUXG_js.CheckoutBodySchema,
|
|
19
|
+
CheckoutResponse: chunkROURLUXG_js.CheckoutResponseSchema,
|
|
20
|
+
VariantInfo: chunkROURLUXG_js.VariantInfoSchema
|
|
20
21
|
};
|
|
21
22
|
function exportJsonSchemas() {
|
|
22
23
|
const out = {};
|
|
23
24
|
for (const [name, schema] of Object.entries(PUBLIC_SCHEMAS)) {
|
|
24
|
-
const meta =
|
|
25
|
-
const json = zod.z.toJSONSchema(schema, { metadata:
|
|
25
|
+
const meta = chunkROURLUXG_js.cimplifyRegistry.get(schema);
|
|
26
|
+
const json = zod.z.toJSONSchema(schema, { metadata: chunkROURLUXG_js.cimplifyRegistry });
|
|
26
27
|
if (meta) {
|
|
27
28
|
json.$id = meta.id;
|
|
28
29
|
json["x-cimplify-version"] = meta.version;
|
|
@@ -34,16 +35,16 @@ function exportJsonSchemas() {
|
|
|
34
35
|
function listRegisteredSchemas() {
|
|
35
36
|
const entries = [];
|
|
36
37
|
for (const schema of [
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
38
|
+
chunkROURLUXG_js.BrandSchema,
|
|
39
|
+
chunkROURLUXG_js.AddItemPayloadSchema,
|
|
40
|
+
chunkROURLUXG_js.CartSchema,
|
|
41
|
+
chunkROURLUXG_js.CartItemSchema,
|
|
42
|
+
chunkROURLUXG_js.CartPricingSchema,
|
|
43
|
+
chunkROURLUXG_js.CheckoutBodySchema,
|
|
44
|
+
chunkROURLUXG_js.CheckoutResponseSchema,
|
|
45
|
+
chunkROURLUXG_js.VariantInfoSchema
|
|
45
46
|
]) {
|
|
46
|
-
const meta =
|
|
47
|
+
const meta = chunkROURLUXG_js.cimplifyRegistry.get(schema);
|
|
47
48
|
if (meta) entries.push({ schema, meta });
|
|
48
49
|
}
|
|
49
50
|
return entries;
|
|
@@ -51,227 +52,227 @@ function listRegisteredSchemas() {
|
|
|
51
52
|
|
|
52
53
|
Object.defineProperty(exports, "AddItemPayloadSchema", {
|
|
53
54
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkROURLUXG_js.AddItemPayloadSchema; }
|
|
55
56
|
});
|
|
56
57
|
Object.defineProperty(exports, "AddOnDetailsSchema", {
|
|
57
58
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkROURLUXG_js.AddOnDetailsSchema; }
|
|
59
60
|
});
|
|
60
61
|
Object.defineProperty(exports, "AddOnGroupDetailsSchema", {
|
|
61
62
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkROURLUXG_js.AddOnGroupDetailsSchema; }
|
|
63
64
|
});
|
|
64
65
|
Object.defineProperty(exports, "AddOnInDetailsSchema", {
|
|
65
66
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkROURLUXG_js.AddOnInDetailsSchema; }
|
|
67
68
|
});
|
|
68
69
|
Object.defineProperty(exports, "AddOnOptionDetailsSchema", {
|
|
69
70
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkROURLUXG_js.AddOnOptionDetailsSchema; }
|
|
71
72
|
});
|
|
72
73
|
Object.defineProperty(exports, "AuthorizationTypeSchema", {
|
|
73
74
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkROURLUXG_js.AuthorizationTypeSchema; }
|
|
75
76
|
});
|
|
76
77
|
Object.defineProperty(exports, "BrandContactSchema", {
|
|
77
78
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkROURLUXG_js.BrandContactSchema; }
|
|
79
80
|
});
|
|
80
81
|
Object.defineProperty(exports, "BrandFaqSchema", {
|
|
81
82
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunkROURLUXG_js.BrandFaqSchema; }
|
|
83
84
|
});
|
|
84
85
|
Object.defineProperty(exports, "BrandHeroSchema", {
|
|
85
86
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunkROURLUXG_js.BrandHeroSchema; }
|
|
87
88
|
});
|
|
88
89
|
Object.defineProperty(exports, "BrandNavLinkSchema", {
|
|
89
90
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunkROURLUXG_js.BrandNavLinkSchema; }
|
|
91
92
|
});
|
|
92
93
|
Object.defineProperty(exports, "BrandPolicyPageSchema", {
|
|
93
94
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunkROURLUXG_js.BrandPolicyPageSchema; }
|
|
95
96
|
});
|
|
96
97
|
Object.defineProperty(exports, "BrandPolicySectionSchema", {
|
|
97
98
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
99
|
+
get: function () { return chunkROURLUXG_js.BrandPolicySectionSchema; }
|
|
99
100
|
});
|
|
100
101
|
Object.defineProperty(exports, "BrandSchema", {
|
|
101
102
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
103
|
+
get: function () { return chunkROURLUXG_js.BrandSchema; }
|
|
103
104
|
});
|
|
104
105
|
Object.defineProperty(exports, "BrandSocialSchema", {
|
|
105
106
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
107
|
+
get: function () { return chunkROURLUXG_js.BrandSocialSchema; }
|
|
107
108
|
});
|
|
108
109
|
Object.defineProperty(exports, "BundleResolvedSchema", {
|
|
109
110
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
111
|
+
get: function () { return chunkROURLUXG_js.BundleResolvedSchema; }
|
|
111
112
|
});
|
|
112
113
|
Object.defineProperty(exports, "BundleSelectionInputSchema", {
|
|
113
114
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
115
|
+
get: function () { return chunkROURLUXG_js.BundleSelectionInputSchema; }
|
|
115
116
|
});
|
|
116
117
|
Object.defineProperty(exports, "CartItemSchema", {
|
|
117
118
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
119
|
+
get: function () { return chunkROURLUXG_js.CartItemSchema; }
|
|
119
120
|
});
|
|
120
121
|
Object.defineProperty(exports, "CartPricingSchema", {
|
|
121
122
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
123
|
+
get: function () { return chunkROURLUXG_js.CartPricingSchema; }
|
|
123
124
|
});
|
|
124
125
|
Object.defineProperty(exports, "CartSchema", {
|
|
125
126
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
127
|
+
get: function () { return chunkROURLUXG_js.CartSchema; }
|
|
127
128
|
});
|
|
128
129
|
Object.defineProperty(exports, "CheckoutBodySchema", {
|
|
129
130
|
enumerable: true,
|
|
130
|
-
get: function () { return
|
|
131
|
+
get: function () { return chunkROURLUXG_js.CheckoutBodySchema; }
|
|
131
132
|
});
|
|
132
133
|
Object.defineProperty(exports, "CheckoutCustomerSchema", {
|
|
133
134
|
enumerable: true,
|
|
134
|
-
get: function () { return
|
|
135
|
+
get: function () { return chunkROURLUXG_js.CheckoutCustomerSchema; }
|
|
135
136
|
});
|
|
136
137
|
Object.defineProperty(exports, "CheckoutResponseSchema", {
|
|
137
138
|
enumerable: true,
|
|
138
|
-
get: function () { return
|
|
139
|
+
get: function () { return chunkROURLUXG_js.CheckoutResponseSchema; }
|
|
139
140
|
});
|
|
140
141
|
Object.defineProperty(exports, "ChosenPriceSchema", {
|
|
141
142
|
enumerable: true,
|
|
142
|
-
get: function () { return
|
|
143
|
+
get: function () { return chunkROURLUXG_js.ChosenPriceSchema; }
|
|
143
144
|
});
|
|
144
145
|
Object.defineProperty(exports, "CompositeResolvedSchema", {
|
|
145
146
|
enumerable: true,
|
|
146
|
-
get: function () { return
|
|
147
|
+
get: function () { return chunkROURLUXG_js.CompositeResolvedSchema; }
|
|
147
148
|
});
|
|
148
149
|
Object.defineProperty(exports, "CompositeSelectionInputSchema", {
|
|
149
150
|
enumerable: true,
|
|
150
|
-
get: function () { return
|
|
151
|
+
get: function () { return chunkROURLUXG_js.CompositeSelectionInputSchema; }
|
|
151
152
|
});
|
|
152
153
|
Object.defineProperty(exports, "CountryCodeSchema", {
|
|
153
154
|
enumerable: true,
|
|
154
|
-
get: function () { return
|
|
155
|
+
get: function () { return chunkROURLUXG_js.CountryCodeSchema; }
|
|
155
156
|
});
|
|
156
157
|
Object.defineProperty(exports, "CurrencyCodeSchema", {
|
|
157
158
|
enumerable: true,
|
|
158
|
-
get: function () { return
|
|
159
|
+
get: function () { return chunkROURLUXG_js.CurrencyCodeSchema; }
|
|
159
160
|
});
|
|
160
161
|
Object.defineProperty(exports, "CustomerInputValueSchema", {
|
|
161
162
|
enumerable: true,
|
|
162
|
-
get: function () { return
|
|
163
|
+
get: function () { return chunkROURLUXG_js.CustomerInputValueSchema; }
|
|
163
164
|
});
|
|
164
165
|
Object.defineProperty(exports, "DiscountDetailsSchema", {
|
|
165
166
|
enumerable: true,
|
|
166
|
-
get: function () { return
|
|
167
|
+
get: function () { return chunkROURLUXG_js.DiscountDetailsSchema; }
|
|
167
168
|
});
|
|
168
169
|
Object.defineProperty(exports, "IsoDateTimeSchema", {
|
|
169
170
|
enumerable: true,
|
|
170
|
-
get: function () { return
|
|
171
|
+
get: function () { return chunkROURLUXG_js.IsoDateTimeSchema; }
|
|
171
172
|
});
|
|
172
173
|
Object.defineProperty(exports, "LineTypeSchema", {
|
|
173
174
|
enumerable: true,
|
|
174
|
-
get: function () { return
|
|
175
|
+
get: function () { return chunkROURLUXG_js.LineTypeSchema; }
|
|
175
176
|
});
|
|
176
177
|
Object.defineProperty(exports, "LocaleSchema", {
|
|
177
178
|
enumerable: true,
|
|
178
|
-
get: function () { return
|
|
179
|
+
get: function () { return chunkROURLUXG_js.LocaleSchema; }
|
|
179
180
|
});
|
|
180
181
|
Object.defineProperty(exports, "MoneyLooseSchema", {
|
|
181
182
|
enumerable: true,
|
|
182
|
-
get: function () { return
|
|
183
|
+
get: function () { return chunkROURLUXG_js.MoneyLooseSchema; }
|
|
183
184
|
});
|
|
184
185
|
Object.defineProperty(exports, "MoneySchema", {
|
|
185
186
|
enumerable: true,
|
|
186
|
-
get: function () { return
|
|
187
|
+
get: function () { return chunkROURLUXG_js.MoneySchema; }
|
|
187
188
|
});
|
|
188
189
|
Object.defineProperty(exports, "NextActionSchema", {
|
|
189
190
|
enumerable: true,
|
|
190
|
-
get: function () { return
|
|
191
|
+
get: function () { return chunkROURLUXG_js.NextActionSchema; }
|
|
191
192
|
});
|
|
192
193
|
Object.defineProperty(exports, "PhoneE164Schema", {
|
|
193
194
|
enumerable: true,
|
|
194
|
-
get: function () { return
|
|
195
|
+
get: function () { return chunkROURLUXG_js.PhoneE164Schema; }
|
|
195
196
|
});
|
|
196
197
|
Object.defineProperty(exports, "ProductTypeSchema", {
|
|
197
198
|
enumerable: true,
|
|
198
|
-
get: function () { return
|
|
199
|
+
get: function () { return chunkROURLUXG_js.ProductTypeSchema; }
|
|
199
200
|
});
|
|
200
201
|
Object.defineProperty(exports, "SchemaViolationError", {
|
|
201
202
|
enumerable: true,
|
|
202
|
-
get: function () { return
|
|
203
|
+
get: function () { return chunkROURLUXG_js.SchemaViolationError; }
|
|
203
204
|
});
|
|
204
205
|
Object.defineProperty(exports, "SeedNameSchema", {
|
|
205
206
|
enumerable: true,
|
|
206
|
-
get: function () { return
|
|
207
|
+
get: function () { return chunkROURLUXG_js.SeedNameSchema; }
|
|
207
208
|
});
|
|
208
209
|
Object.defineProperty(exports, "SelectedAddOnOptionSchema", {
|
|
209
210
|
enumerable: true,
|
|
210
|
-
get: function () { return
|
|
211
|
+
get: function () { return chunkROURLUXG_js.SelectedAddOnOptionSchema; }
|
|
211
212
|
});
|
|
212
213
|
Object.defineProperty(exports, "ServiceStatusSchema", {
|
|
213
214
|
enumerable: true,
|
|
214
|
-
get: function () { return
|
|
215
|
+
get: function () { return chunkROURLUXG_js.ServiceStatusSchema; }
|
|
215
216
|
});
|
|
216
217
|
Object.defineProperty(exports, "TimestampSchema", {
|
|
217
218
|
enumerable: true,
|
|
218
|
-
get: function () { return
|
|
219
|
+
get: function () { return chunkROURLUXG_js.TimestampSchema; }
|
|
219
220
|
});
|
|
220
221
|
Object.defineProperty(exports, "VariantDetailsSchema", {
|
|
221
222
|
enumerable: true,
|
|
222
|
-
get: function () { return
|
|
223
|
+
get: function () { return chunkROURLUXG_js.VariantDetailsSchema; }
|
|
223
224
|
});
|
|
224
225
|
Object.defineProperty(exports, "VariantDisplayAttributeSchema", {
|
|
225
226
|
enumerable: true,
|
|
226
|
-
get: function () { return
|
|
227
|
+
get: function () { return chunkROURLUXG_js.VariantDisplayAttributeSchema; }
|
|
227
228
|
});
|
|
228
229
|
Object.defineProperty(exports, "VariantInfoSchema", {
|
|
229
230
|
enumerable: true,
|
|
230
|
-
get: function () { return
|
|
231
|
+
get: function () { return chunkROURLUXG_js.VariantInfoSchema; }
|
|
231
232
|
});
|
|
232
233
|
Object.defineProperty(exports, "assertAddItemPayload", {
|
|
233
234
|
enumerable: true,
|
|
234
|
-
get: function () { return
|
|
235
|
+
get: function () { return chunkROURLUXG_js.assertAddItemPayload; }
|
|
235
236
|
});
|
|
236
237
|
Object.defineProperty(exports, "assertBrand", {
|
|
237
238
|
enumerable: true,
|
|
238
|
-
get: function () { return
|
|
239
|
+
get: function () { return chunkROURLUXG_js.assertBrand; }
|
|
239
240
|
});
|
|
240
241
|
Object.defineProperty(exports, "assertCart", {
|
|
241
242
|
enumerable: true,
|
|
242
|
-
get: function () { return
|
|
243
|
+
get: function () { return chunkROURLUXG_js.assertCart; }
|
|
243
244
|
});
|
|
244
245
|
Object.defineProperty(exports, "assertCartItem", {
|
|
245
246
|
enumerable: true,
|
|
246
|
-
get: function () { return
|
|
247
|
+
get: function () { return chunkROURLUXG_js.assertCartItem; }
|
|
247
248
|
});
|
|
248
249
|
Object.defineProperty(exports, "assertCheckoutBody", {
|
|
249
250
|
enumerable: true,
|
|
250
|
-
get: function () { return
|
|
251
|
+
get: function () { return chunkROURLUXG_js.assertCheckoutBody; }
|
|
251
252
|
});
|
|
252
253
|
Object.defineProperty(exports, "assertCheckoutResponse", {
|
|
253
254
|
enumerable: true,
|
|
254
|
-
get: function () { return
|
|
255
|
+
get: function () { return chunkROURLUXG_js.assertCheckoutResponse; }
|
|
255
256
|
});
|
|
256
257
|
Object.defineProperty(exports, "cimplifyRegistry", {
|
|
257
258
|
enumerable: true,
|
|
258
|
-
get: function () { return
|
|
259
|
+
get: function () { return chunkROURLUXG_js.cimplifyRegistry; }
|
|
259
260
|
});
|
|
260
261
|
Object.defineProperty(exports, "createTestClient", {
|
|
261
262
|
enumerable: true,
|
|
262
|
-
get: function () { return
|
|
263
|
+
get: function () { return chunkROURLUXG_js.createTestClient; }
|
|
263
264
|
});
|
|
264
265
|
Object.defineProperty(exports, "fixtures", {
|
|
265
266
|
enumerable: true,
|
|
266
|
-
get: function () { return
|
|
267
|
+
get: function () { return chunkROURLUXG_js.fixtures; }
|
|
267
268
|
});
|
|
268
269
|
Object.defineProperty(exports, "makeAssertion", {
|
|
269
270
|
enumerable: true,
|
|
270
|
-
get: function () { return
|
|
271
|
+
get: function () { return chunkROURLUXG_js.makeAssertion; }
|
|
271
272
|
});
|
|
272
273
|
Object.defineProperty(exports, "registerSchema", {
|
|
273
274
|
enumerable: true,
|
|
274
|
-
get: function () { return
|
|
275
|
+
get: function () { return chunkROURLUXG_js.registerSchema; }
|
|
275
276
|
});
|
|
276
277
|
exports.exportJsonSchemas = exportJsonSchemas;
|
|
277
278
|
exports.listRegisteredSchemas = listRegisteredSchemas;
|
package/dist/testing.mjs
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
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-VZS453ON.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-VZS453ON.mjs';
|
|
3
|
+
import './chunk-R3F55BRN.mjs';
|
|
4
|
+
import './chunk-APHYBBDD.mjs';
|
|
5
|
+
import './chunk-GLAVTDDE.mjs';
|
|
6
|
+
import './chunk-TD3AY34U.mjs';
|
|
7
|
+
import './chunk-AMZXALF6.mjs';
|
|
8
|
+
import './chunk-3G6RQLXK.mjs';
|
|
8
9
|
import { z } from 'zod';
|
|
9
10
|
|
|
10
11
|
var PUBLIC_SCHEMAS = {
|
package/dist/utils.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkL5GKVQVJ_js = require('./chunk-L5GKVQVJ.js');
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var chunk7Y2O3E4D_js = require('./chunk-7Y2O3E4D.js');
|
|
5
|
+
require('./chunk-XA3ZNR75.js');
|
|
6
|
+
require('./chunk-OWW5GUSB.js');
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
|
|
@@ -20,109 +21,109 @@ Object.defineProperty(exports, "resolvePhoneCountryCode", {
|
|
|
20
21
|
});
|
|
21
22
|
Object.defineProperty(exports, "CURRENCY_SYMBOLS", {
|
|
22
23
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunk7Y2O3E4D_js.CURRENCY_SYMBOLS; }
|
|
24
25
|
});
|
|
25
26
|
Object.defineProperty(exports, "MOBILE_MONEY_PROVIDERS", {
|
|
26
27
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunk7Y2O3E4D_js.MOBILE_MONEY_PROVIDERS; }
|
|
28
29
|
});
|
|
29
30
|
Object.defineProperty(exports, "categorizePaymentError", {
|
|
30
31
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunk7Y2O3E4D_js.categorizePaymentError; }
|
|
32
33
|
});
|
|
33
34
|
Object.defineProperty(exports, "detectMobileMoneyProvider", {
|
|
34
35
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunk7Y2O3E4D_js.detectMobileMoneyProvider; }
|
|
36
37
|
});
|
|
37
38
|
Object.defineProperty(exports, "formatMoney", {
|
|
38
39
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunk7Y2O3E4D_js.formatMoney; }
|
|
40
41
|
});
|
|
41
42
|
Object.defineProperty(exports, "formatNumberCompact", {
|
|
42
43
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunk7Y2O3E4D_js.formatNumberCompact; }
|
|
44
45
|
});
|
|
45
46
|
Object.defineProperty(exports, "formatPrice", {
|
|
46
47
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunk7Y2O3E4D_js.formatPrice; }
|
|
48
49
|
});
|
|
49
50
|
Object.defineProperty(exports, "formatPriceAdjustment", {
|
|
50
51
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunk7Y2O3E4D_js.formatPriceAdjustment; }
|
|
52
53
|
});
|
|
53
54
|
Object.defineProperty(exports, "formatPriceCompact", {
|
|
54
55
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunk7Y2O3E4D_js.formatPriceCompact; }
|
|
56
57
|
});
|
|
57
58
|
Object.defineProperty(exports, "formatPriceWithTax", {
|
|
58
59
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunk7Y2O3E4D_js.formatPriceWithTax; }
|
|
60
61
|
});
|
|
61
62
|
Object.defineProperty(exports, "formatProductPrice", {
|
|
62
63
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunk7Y2O3E4D_js.formatProductPrice; }
|
|
64
65
|
});
|
|
65
66
|
Object.defineProperty(exports, "getBasePrice", {
|
|
66
67
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
68
|
+
get: function () { return chunk7Y2O3E4D_js.getBasePrice; }
|
|
68
69
|
});
|
|
69
70
|
Object.defineProperty(exports, "getCurrencySymbol", {
|
|
70
71
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
72
|
+
get: function () { return chunk7Y2O3E4D_js.getCurrencySymbol; }
|
|
72
73
|
});
|
|
73
74
|
Object.defineProperty(exports, "getDiscountPercentage", {
|
|
74
75
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
76
|
+
get: function () { return chunk7Y2O3E4D_js.getDiscountPercentage; }
|
|
76
77
|
});
|
|
77
78
|
Object.defineProperty(exports, "getDisplayPrice", {
|
|
78
79
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
80
|
+
get: function () { return chunk7Y2O3E4D_js.getDisplayPrice; }
|
|
80
81
|
});
|
|
81
82
|
Object.defineProperty(exports, "getMarkupPercentage", {
|
|
82
83
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
84
|
+
get: function () { return chunk7Y2O3E4D_js.getMarkupPercentage; }
|
|
84
85
|
});
|
|
85
86
|
Object.defineProperty(exports, "getProductCurrency", {
|
|
86
87
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
88
|
+
get: function () { return chunk7Y2O3E4D_js.getProductCurrency; }
|
|
88
89
|
});
|
|
89
90
|
Object.defineProperty(exports, "getTaxAmount", {
|
|
90
91
|
enumerable: true,
|
|
91
|
-
get: function () { return
|
|
92
|
+
get: function () { return chunk7Y2O3E4D_js.getTaxAmount; }
|
|
92
93
|
});
|
|
93
94
|
Object.defineProperty(exports, "hasTaxInfo", {
|
|
94
95
|
enumerable: true,
|
|
95
|
-
get: function () { return
|
|
96
|
+
get: function () { return chunk7Y2O3E4D_js.hasTaxInfo; }
|
|
96
97
|
});
|
|
97
98
|
Object.defineProperty(exports, "isOnSale", {
|
|
98
99
|
enumerable: true,
|
|
99
|
-
get: function () { return
|
|
100
|
+
get: function () { return chunk7Y2O3E4D_js.isOnSale; }
|
|
100
101
|
});
|
|
101
102
|
Object.defineProperty(exports, "isPaymentStatusFailure", {
|
|
102
103
|
enumerable: true,
|
|
103
|
-
get: function () { return
|
|
104
|
+
get: function () { return chunk7Y2O3E4D_js.isPaymentStatusFailure; }
|
|
104
105
|
});
|
|
105
106
|
Object.defineProperty(exports, "isPaymentStatusRequiresAction", {
|
|
106
107
|
enumerable: true,
|
|
107
|
-
get: function () { return
|
|
108
|
+
get: function () { return chunk7Y2O3E4D_js.isPaymentStatusRequiresAction; }
|
|
108
109
|
});
|
|
109
110
|
Object.defineProperty(exports, "isPaymentStatusSuccess", {
|
|
110
111
|
enumerable: true,
|
|
111
|
-
get: function () { return
|
|
112
|
+
get: function () { return chunk7Y2O3E4D_js.isPaymentStatusSuccess; }
|
|
112
113
|
});
|
|
113
114
|
Object.defineProperty(exports, "isTaxInclusive", {
|
|
114
115
|
enumerable: true,
|
|
115
|
-
get: function () { return
|
|
116
|
+
get: function () { return chunk7Y2O3E4D_js.isTaxInclusive; }
|
|
116
117
|
});
|
|
117
118
|
Object.defineProperty(exports, "normalizePaymentResponse", {
|
|
118
119
|
enumerable: true,
|
|
119
|
-
get: function () { return
|
|
120
|
+
get: function () { return chunk7Y2O3E4D_js.normalizePaymentResponse; }
|
|
120
121
|
});
|
|
121
122
|
Object.defineProperty(exports, "normalizeStatusResponse", {
|
|
122
123
|
enumerable: true,
|
|
123
|
-
get: function () { return
|
|
124
|
+
get: function () { return chunk7Y2O3E4D_js.normalizeStatusResponse; }
|
|
124
125
|
});
|
|
125
126
|
Object.defineProperty(exports, "parsePrice", {
|
|
126
127
|
enumerable: true,
|
|
127
|
-
get: function () { return
|
|
128
|
+
get: function () { return chunk7Y2O3E4D_js.parsePrice; }
|
|
128
129
|
});
|
package/dist/utils.mjs
CHANGED
|
@@ -1,3 +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, 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-TD3AY34U.mjs';
|
|
3
|
+
import './chunk-AMZXALF6.mjs';
|
|
4
|
+
import './chunk-3G6RQLXK.mjs';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cimplify/sdk",
|
|
3
|
-
"version": "0.52.
|
|
3
|
+
"version": "0.52.2",
|
|
4
4
|
"description": "Cimplify Commerce SDK for storefronts",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cimplify",
|
|
@@ -47,6 +47,12 @@
|
|
|
47
47
|
"import": "./dist/server.mjs",
|
|
48
48
|
"require": "./dist/server.js"
|
|
49
49
|
},
|
|
50
|
+
"./server/evict": {
|
|
51
|
+
"types": "./dist/server/evict.d.ts",
|
|
52
|
+
"react-server": "./dist/server/evict.mjs",
|
|
53
|
+
"import": "./dist/server/evict.mjs",
|
|
54
|
+
"require": "./dist/server/evict.js"
|
|
55
|
+
},
|
|
50
56
|
"./mock": {
|
|
51
57
|
"types": "./dist/mock/library.d.ts",
|
|
52
58
|
"import": "./dist/mock/library.mjs",
|