@cimplify/sdk 0.103.0 → 0.104.1
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 -7
- package/dist/advanced.d.ts +3 -7
- package/dist/advanced.js +23 -23
- package/dist/advanced.mjs +4 -4
- package/dist/{client-DHBwvh7U.d.ts → catalogue-BlQ85Uma.d.mts} +492 -748
- package/dist/{client-BfpNjJ_a.d.mts → catalogue-C8TqOj9K.d.ts} +492 -748
- package/dist/{payment-H5LoIvXU.d.mts → checkout-BqK9XUz5.d.mts} +4338 -1495
- package/dist/{payment-H5LoIvXU.d.ts → checkout-BqK9XUz5.d.ts} +4338 -1495
- package/dist/{chunk-GOHSXBKW.mjs → chunk-33VCYWVL.mjs} +25 -1
- package/dist/{chunk-C2JSNJUC.mjs → chunk-6G3ANKQA.mjs} +1080 -369
- package/dist/{chunk-QOWPGS7Z.js → chunk-BWEIMKLF.js} +572 -17
- package/dist/{chunk-JSWJ4XDE.js → chunk-DQEXY542.js} +1630 -824
- package/dist/{chunk-CNN7Z2IP.js → chunk-EV2EVOYS.js} +27 -0
- package/dist/{chunk-VIL6IQCG.js → chunk-HYFA67A7.js} +1084 -373
- package/dist/{chunk-H7ACMHM3.mjs → chunk-L5SNEU2O.mjs} +553 -16
- package/dist/{chunk-JG5CQNCB.js → chunk-RBNBSQI7.mjs} +221 -19
- package/dist/{chunk-VNPEYLB2.mjs → chunk-SFUJMS5E.js} +265 -2
- package/dist/{chunk-M4URVKHE.mjs → chunk-U54CWUUT.mjs} +11 -2
- package/dist/{chunk-GERXZQSX.mjs → chunk-UFOWPN3D.mjs} +967 -582
- package/dist/{chunk-J6PNHDHL.mjs → chunk-V4457OKB.mjs} +1580 -785
- package/dist/{chunk-R6OLQ33I.js → chunk-WXREIBFW.js} +1041 -654
- package/dist/{chunk-NNG6IFFX.js → chunk-XAUSDMMZ.js} +13 -3
- package/dist/{client-DpqRobY9.d.mts → client-DhXeiUrf.d.ts} +2 -2
- package/dist/{client-Dqg2mc-7.d.ts → client-mXiUrV4X.d.mts} +2 -2
- package/dist/{index-C8uDqLwJ.d.ts → index-B0AdZvrM.d.mts} +9 -4
- package/dist/{index-e2y6AK70.d.mts → index-CK8Nk5uQ.d.ts} +9 -4
- package/dist/index-DPWI5XcU.d.ts +8 -0
- package/dist/index-DVfUh-ci.d.mts +8 -0
- package/dist/index.d.mts +34 -15
- package/dist/index.d.ts +34 -15
- package/dist/index.js +306 -133
- package/dist/index.mjs +7 -6
- package/dist/mock/cli.mjs +1494 -395
- package/dist/mock/library.js +1220 -361
- package/dist/mock/library.mjs +1220 -361
- package/dist/mock/msw.js +1220 -361
- package/dist/mock/msw.mjs +1220 -361
- package/dist/{price-C2RqscMY.d.ts → price-6hQIIac9.d.ts} +1 -1
- package/dist/{price-BvePgDXe.d.mts → price-BUDv1rI7.d.mts} +1 -1
- package/dist/react.d.mts +10 -5
- package/dist/react.d.ts +10 -5
- package/dist/react.js +279 -225
- package/dist/react.mjs +140 -86
- package/dist/{server-DoXIpSd7.d.ts → server-DJ0mSs9i.d.mts} +33 -57
- package/dist/{server-C7FyLdrz.d.mts → server-DSTX76Ki.d.ts} +33 -57
- package/dist/server.d.mts +3 -4
- package/dist/server.d.ts +3 -4
- package/dist/server.js +12 -11
- package/dist/server.mjs +6 -5
- package/dist/styles.css +2 -2
- package/dist/testing/msw.d.mts +2 -2
- package/dist/testing/msw.d.ts +2 -2
- package/dist/testing/msw.js +4 -4
- package/dist/testing/msw.mjs +3 -3
- package/dist/testing/suite.d.mts +5 -6
- package/dist/testing/suite.d.ts +5 -6
- package/dist/testing/suite.js +29 -28
- package/dist/testing/suite.mjs +10 -9
- package/dist/testing.d.mts +2217 -14
- package/dist/testing.d.ts +2217 -14
- package/dist/testing.js +173 -83
- package/dist/testing.mjs +28 -10
- package/dist/utils.d.mts +3 -4
- package/dist/utils.d.ts +3 -4
- package/dist/utils.js +35 -31
- package/dist/utils.mjs +2 -2
- package/package.json +9 -9
- package/registry/chat-widget.json +1 -1
- package/registry/order-history.json +1 -1
- package/registry/order-summary.json +1 -1
- package/dist/link-cuNVYc2s.d.mts +0 -297
- package/dist/link-cuNVYc2s.d.ts +0 -297
package/dist/testing.js
CHANGED
|
@@ -1,31 +1,40 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunkBWEIMKLF_js = require('./chunk-BWEIMKLF.js');
|
|
4
|
+
require('./chunk-HYFA67A7.js');
|
|
5
|
+
require('./chunk-WXREIBFW.js');
|
|
5
6
|
require('./chunk-XREIZ56K.js');
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
10
|
-
require('./chunk-JG5CQNCB.js');
|
|
7
|
+
require('./chunk-DQEXY542.js');
|
|
8
|
+
require('./chunk-EV2EVOYS.js');
|
|
9
|
+
require('./chunk-XAUSDMMZ.js');
|
|
10
|
+
require('./chunk-SFUJMS5E.js');
|
|
11
11
|
require('./chunk-OWW5GUSB.js');
|
|
12
12
|
var zod = require('zod');
|
|
13
13
|
|
|
14
14
|
var PUBLIC_SCHEMAS = {
|
|
15
|
-
Brand:
|
|
16
|
-
AddItemPayload:
|
|
17
|
-
Cart:
|
|
18
|
-
CartItem:
|
|
19
|
-
CartPricing:
|
|
20
|
-
CheckoutBody:
|
|
21
|
-
CheckoutResponse:
|
|
22
|
-
VariantInfo:
|
|
15
|
+
Brand: chunkBWEIMKLF_js.BrandSchema,
|
|
16
|
+
AddItemPayload: chunkBWEIMKLF_js.AddItemPayloadSchema,
|
|
17
|
+
Cart: chunkBWEIMKLF_js.CartSchema,
|
|
18
|
+
CartItem: chunkBWEIMKLF_js.CartItemSchema,
|
|
19
|
+
CartPricing: chunkBWEIMKLF_js.CartPricingSchema,
|
|
20
|
+
CheckoutBody: chunkBWEIMKLF_js.CheckoutBodySchema,
|
|
21
|
+
CheckoutResponse: chunkBWEIMKLF_js.CheckoutResponseSchema,
|
|
22
|
+
VariantInfo: chunkBWEIMKLF_js.VariantInfoSchema,
|
|
23
|
+
VerifyOtpRequest: chunkBWEIMKLF_js.VerifyOtpRequestSchema,
|
|
24
|
+
RequestOtpResponse: chunkBWEIMKLF_js.RequestOtpResponseSchema,
|
|
25
|
+
MintPurchaseIntentRequest: chunkBWEIMKLF_js.MintPurchaseIntentRequestSchema,
|
|
26
|
+
PurchaseIntentView: chunkBWEIMKLF_js.PurchaseIntentViewSchema,
|
|
27
|
+
CheckoutTermsView: chunkBWEIMKLF_js.CheckoutTermsViewSchema,
|
|
28
|
+
ConfirmPurchaseIntentRequest: chunkBWEIMKLF_js.ConfirmPurchaseIntentRequestSchema,
|
|
29
|
+
PreparePurchaseIntentRequest: chunkBWEIMKLF_js.PreparePurchaseIntentRequestSchema,
|
|
30
|
+
SubmitPurchaseIntentActionRequest: chunkBWEIMKLF_js.SubmitPurchaseIntentActionRequestSchema,
|
|
31
|
+
ConfirmPurchaseIntentResponse: chunkBWEIMKLF_js.ConfirmPurchaseIntentResponseSchema
|
|
23
32
|
};
|
|
24
33
|
function exportJsonSchemas() {
|
|
25
34
|
const out = {};
|
|
26
35
|
for (const [name, schema] of Object.entries(PUBLIC_SCHEMAS)) {
|
|
27
|
-
const meta =
|
|
28
|
-
const json = zod.z.toJSONSchema(schema, { metadata:
|
|
36
|
+
const meta = chunkBWEIMKLF_js.cimplifyRegistry.get(schema);
|
|
37
|
+
const json = zod.z.toJSONSchema(schema, { metadata: chunkBWEIMKLF_js.cimplifyRegistry });
|
|
29
38
|
if (meta) {
|
|
30
39
|
json.$id = meta.id;
|
|
31
40
|
json["x-cimplify-version"] = meta.version;
|
|
@@ -37,16 +46,25 @@ function exportJsonSchemas() {
|
|
|
37
46
|
function listRegisteredSchemas() {
|
|
38
47
|
const entries = [];
|
|
39
48
|
for (const schema of [
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
49
|
+
chunkBWEIMKLF_js.BrandSchema,
|
|
50
|
+
chunkBWEIMKLF_js.AddItemPayloadSchema,
|
|
51
|
+
chunkBWEIMKLF_js.CartSchema,
|
|
52
|
+
chunkBWEIMKLF_js.CartItemSchema,
|
|
53
|
+
chunkBWEIMKLF_js.CartPricingSchema,
|
|
54
|
+
chunkBWEIMKLF_js.CheckoutBodySchema,
|
|
55
|
+
chunkBWEIMKLF_js.CheckoutResponseSchema,
|
|
56
|
+
chunkBWEIMKLF_js.VariantInfoSchema,
|
|
57
|
+
chunkBWEIMKLF_js.VerifyOtpRequestSchema,
|
|
58
|
+
chunkBWEIMKLF_js.RequestOtpResponseSchema,
|
|
59
|
+
chunkBWEIMKLF_js.MintPurchaseIntentRequestSchema,
|
|
60
|
+
chunkBWEIMKLF_js.PurchaseIntentViewSchema,
|
|
61
|
+
chunkBWEIMKLF_js.CheckoutTermsViewSchema,
|
|
62
|
+
chunkBWEIMKLF_js.ConfirmPurchaseIntentRequestSchema,
|
|
63
|
+
chunkBWEIMKLF_js.PreparePurchaseIntentRequestSchema,
|
|
64
|
+
chunkBWEIMKLF_js.SubmitPurchaseIntentActionRequestSchema,
|
|
65
|
+
chunkBWEIMKLF_js.ConfirmPurchaseIntentResponseSchema
|
|
48
66
|
]) {
|
|
49
|
-
const meta =
|
|
67
|
+
const meta = chunkBWEIMKLF_js.cimplifyRegistry.get(schema);
|
|
50
68
|
if (meta) entries.push({ schema, meta });
|
|
51
69
|
}
|
|
52
70
|
return entries;
|
|
@@ -54,231 +72,303 @@ function listRegisteredSchemas() {
|
|
|
54
72
|
|
|
55
73
|
Object.defineProperty(exports, "AddItemPayloadSchema", {
|
|
56
74
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkBWEIMKLF_js.AddItemPayloadSchema; }
|
|
58
76
|
});
|
|
59
77
|
Object.defineProperty(exports, "AddOnDetailsSchema", {
|
|
60
78
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkBWEIMKLF_js.AddOnDetailsSchema; }
|
|
62
80
|
});
|
|
63
81
|
Object.defineProperty(exports, "AddOnGroupDetailsSchema", {
|
|
64
82
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunkBWEIMKLF_js.AddOnGroupDetailsSchema; }
|
|
66
84
|
});
|
|
67
85
|
Object.defineProperty(exports, "AddOnInDetailsSchema", {
|
|
68
86
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunkBWEIMKLF_js.AddOnInDetailsSchema; }
|
|
70
88
|
});
|
|
71
89
|
Object.defineProperty(exports, "AddOnOptionDetailsSchema", {
|
|
72
90
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunkBWEIMKLF_js.AddOnOptionDetailsSchema; }
|
|
74
92
|
});
|
|
75
93
|
Object.defineProperty(exports, "AuthorizationTypeSchema", {
|
|
76
94
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunkBWEIMKLF_js.AuthorizationTypeSchema; }
|
|
78
96
|
});
|
|
79
97
|
Object.defineProperty(exports, "BrandContactSchema", {
|
|
80
98
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
99
|
+
get: function () { return chunkBWEIMKLF_js.BrandContactSchema; }
|
|
82
100
|
});
|
|
83
101
|
Object.defineProperty(exports, "BrandFaqSchema", {
|
|
84
102
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
103
|
+
get: function () { return chunkBWEIMKLF_js.BrandFaqSchema; }
|
|
86
104
|
});
|
|
87
105
|
Object.defineProperty(exports, "BrandHeroSchema", {
|
|
88
106
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
107
|
+
get: function () { return chunkBWEIMKLF_js.BrandHeroSchema; }
|
|
90
108
|
});
|
|
91
109
|
Object.defineProperty(exports, "BrandNavLinkSchema", {
|
|
92
110
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
111
|
+
get: function () { return chunkBWEIMKLF_js.BrandNavLinkSchema; }
|
|
94
112
|
});
|
|
95
113
|
Object.defineProperty(exports, "BrandPolicyPageSchema", {
|
|
96
114
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
115
|
+
get: function () { return chunkBWEIMKLF_js.BrandPolicyPageSchema; }
|
|
98
116
|
});
|
|
99
117
|
Object.defineProperty(exports, "BrandPolicySectionSchema", {
|
|
100
118
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
119
|
+
get: function () { return chunkBWEIMKLF_js.BrandPolicySectionSchema; }
|
|
102
120
|
});
|
|
103
121
|
Object.defineProperty(exports, "BrandSchema", {
|
|
104
122
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
123
|
+
get: function () { return chunkBWEIMKLF_js.BrandSchema; }
|
|
106
124
|
});
|
|
107
125
|
Object.defineProperty(exports, "BrandSocialSchema", {
|
|
108
126
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
127
|
+
get: function () { return chunkBWEIMKLF_js.BrandSocialSchema; }
|
|
110
128
|
});
|
|
111
129
|
Object.defineProperty(exports, "BundleResolvedSchema", {
|
|
112
130
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
131
|
+
get: function () { return chunkBWEIMKLF_js.BundleResolvedSchema; }
|
|
114
132
|
});
|
|
115
133
|
Object.defineProperty(exports, "BundleSelectionInputSchema", {
|
|
116
134
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
135
|
+
get: function () { return chunkBWEIMKLF_js.BundleSelectionInputSchema; }
|
|
118
136
|
});
|
|
119
137
|
Object.defineProperty(exports, "CartItemSchema", {
|
|
120
138
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
139
|
+
get: function () { return chunkBWEIMKLF_js.CartItemSchema; }
|
|
122
140
|
});
|
|
123
141
|
Object.defineProperty(exports, "CartPricingSchema", {
|
|
124
142
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
143
|
+
get: function () { return chunkBWEIMKLF_js.CartPricingSchema; }
|
|
126
144
|
});
|
|
127
145
|
Object.defineProperty(exports, "CartSchema", {
|
|
128
146
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
147
|
+
get: function () { return chunkBWEIMKLF_js.CartSchema; }
|
|
130
148
|
});
|
|
131
149
|
Object.defineProperty(exports, "CheckoutBodySchema", {
|
|
132
150
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
151
|
+
get: function () { return chunkBWEIMKLF_js.CheckoutBodySchema; }
|
|
134
152
|
});
|
|
135
153
|
Object.defineProperty(exports, "CheckoutCustomerSchema", {
|
|
136
154
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
155
|
+
get: function () { return chunkBWEIMKLF_js.CheckoutCustomerSchema; }
|
|
138
156
|
});
|
|
139
157
|
Object.defineProperty(exports, "CheckoutResponseSchema", {
|
|
140
158
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
159
|
+
get: function () { return chunkBWEIMKLF_js.CheckoutResponseSchema; }
|
|
160
|
+
});
|
|
161
|
+
Object.defineProperty(exports, "CheckoutTermsViewSchema", {
|
|
162
|
+
enumerable: true,
|
|
163
|
+
get: function () { return chunkBWEIMKLF_js.CheckoutTermsViewSchema; }
|
|
142
164
|
});
|
|
143
165
|
Object.defineProperty(exports, "ChosenPriceSchema", {
|
|
144
166
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
167
|
+
get: function () { return chunkBWEIMKLF_js.ChosenPriceSchema; }
|
|
146
168
|
});
|
|
147
169
|
Object.defineProperty(exports, "CompositeResolvedSchema", {
|
|
148
170
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
171
|
+
get: function () { return chunkBWEIMKLF_js.CompositeResolvedSchema; }
|
|
150
172
|
});
|
|
151
173
|
Object.defineProperty(exports, "CompositeSelectionInputSchema", {
|
|
152
174
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
175
|
+
get: function () { return chunkBWEIMKLF_js.CompositeSelectionInputSchema; }
|
|
176
|
+
});
|
|
177
|
+
Object.defineProperty(exports, "ConfirmPurchaseIntentRequestSchema", {
|
|
178
|
+
enumerable: true,
|
|
179
|
+
get: function () { return chunkBWEIMKLF_js.ConfirmPurchaseIntentRequestSchema; }
|
|
180
|
+
});
|
|
181
|
+
Object.defineProperty(exports, "ConfirmPurchaseIntentResponseSchema", {
|
|
182
|
+
enumerable: true,
|
|
183
|
+
get: function () { return chunkBWEIMKLF_js.ConfirmPurchaseIntentResponseSchema; }
|
|
154
184
|
});
|
|
155
185
|
Object.defineProperty(exports, "CountryCodeSchema", {
|
|
156
186
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
187
|
+
get: function () { return chunkBWEIMKLF_js.CountryCodeSchema; }
|
|
158
188
|
});
|
|
159
189
|
Object.defineProperty(exports, "CurrencyCodeSchema", {
|
|
160
190
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
191
|
+
get: function () { return chunkBWEIMKLF_js.CurrencyCodeSchema; }
|
|
162
192
|
});
|
|
163
193
|
Object.defineProperty(exports, "CustomerInputValueSchema", {
|
|
164
194
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
195
|
+
get: function () { return chunkBWEIMKLF_js.CustomerInputValueSchema; }
|
|
166
196
|
});
|
|
167
197
|
Object.defineProperty(exports, "DiscountDetailsSchema", {
|
|
168
198
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
199
|
+
get: function () { return chunkBWEIMKLF_js.DiscountDetailsSchema; }
|
|
170
200
|
});
|
|
171
201
|
Object.defineProperty(exports, "IsoDateTimeSchema", {
|
|
172
202
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
203
|
+
get: function () { return chunkBWEIMKLF_js.IsoDateTimeSchema; }
|
|
174
204
|
});
|
|
175
205
|
Object.defineProperty(exports, "LineTypeSchema", {
|
|
176
206
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
207
|
+
get: function () { return chunkBWEIMKLF_js.LineTypeSchema; }
|
|
178
208
|
});
|
|
179
209
|
Object.defineProperty(exports, "LocaleSchema", {
|
|
180
210
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
211
|
+
get: function () { return chunkBWEIMKLF_js.LocaleSchema; }
|
|
212
|
+
});
|
|
213
|
+
Object.defineProperty(exports, "MintPurchaseIntentRequestSchema", {
|
|
214
|
+
enumerable: true,
|
|
215
|
+
get: function () { return chunkBWEIMKLF_js.MintPurchaseIntentRequestSchema; }
|
|
182
216
|
});
|
|
183
217
|
Object.defineProperty(exports, "MoneyLooseSchema", {
|
|
184
218
|
enumerable: true,
|
|
185
|
-
get: function () { return
|
|
219
|
+
get: function () { return chunkBWEIMKLF_js.MoneyLooseSchema; }
|
|
186
220
|
});
|
|
187
221
|
Object.defineProperty(exports, "MoneySchema", {
|
|
188
222
|
enumerable: true,
|
|
189
|
-
get: function () { return
|
|
223
|
+
get: function () { return chunkBWEIMKLF_js.MoneySchema; }
|
|
190
224
|
});
|
|
191
225
|
Object.defineProperty(exports, "NextActionSchema", {
|
|
192
226
|
enumerable: true,
|
|
193
|
-
get: function () { return
|
|
227
|
+
get: function () { return chunkBWEIMKLF_js.NextActionSchema; }
|
|
194
228
|
});
|
|
195
229
|
Object.defineProperty(exports, "PhoneE164Schema", {
|
|
196
230
|
enumerable: true,
|
|
197
|
-
get: function () { return
|
|
231
|
+
get: function () { return chunkBWEIMKLF_js.PhoneE164Schema; }
|
|
232
|
+
});
|
|
233
|
+
Object.defineProperty(exports, "PreparePurchaseIntentRequestSchema", {
|
|
234
|
+
enumerable: true,
|
|
235
|
+
get: function () { return chunkBWEIMKLF_js.PreparePurchaseIntentRequestSchema; }
|
|
198
236
|
});
|
|
199
237
|
Object.defineProperty(exports, "ProductTypeSchema", {
|
|
200
238
|
enumerable: true,
|
|
201
|
-
get: function () { return
|
|
239
|
+
get: function () { return chunkBWEIMKLF_js.ProductTypeSchema; }
|
|
240
|
+
});
|
|
241
|
+
Object.defineProperty(exports, "PurchaseIntentSourceInputSchema", {
|
|
242
|
+
enumerable: true,
|
|
243
|
+
get: function () { return chunkBWEIMKLF_js.PurchaseIntentSourceInputSchema; }
|
|
244
|
+
});
|
|
245
|
+
Object.defineProperty(exports, "PurchaseIntentTenderPreferenceSchema", {
|
|
246
|
+
enumerable: true,
|
|
247
|
+
get: function () { return chunkBWEIMKLF_js.PurchaseIntentTenderPreferenceSchema; }
|
|
248
|
+
});
|
|
249
|
+
Object.defineProperty(exports, "PurchaseIntentViewSchema", {
|
|
250
|
+
enumerable: true,
|
|
251
|
+
get: function () { return chunkBWEIMKLF_js.PurchaseIntentViewSchema; }
|
|
252
|
+
});
|
|
253
|
+
Object.defineProperty(exports, "RequestOtpResponseSchema", {
|
|
254
|
+
enumerable: true,
|
|
255
|
+
get: function () { return chunkBWEIMKLF_js.RequestOtpResponseSchema; }
|
|
202
256
|
});
|
|
203
257
|
Object.defineProperty(exports, "SchemaViolationError", {
|
|
204
258
|
enumerable: true,
|
|
205
|
-
get: function () { return
|
|
259
|
+
get: function () { return chunkBWEIMKLF_js.SchemaViolationError; }
|
|
206
260
|
});
|
|
207
261
|
Object.defineProperty(exports, "SeedNameSchema", {
|
|
208
262
|
enumerable: true,
|
|
209
|
-
get: function () { return
|
|
263
|
+
get: function () { return chunkBWEIMKLF_js.SeedNameSchema; }
|
|
210
264
|
});
|
|
211
265
|
Object.defineProperty(exports, "SelectedAddOnOptionSchema", {
|
|
212
266
|
enumerable: true,
|
|
213
|
-
get: function () { return
|
|
267
|
+
get: function () { return chunkBWEIMKLF_js.SelectedAddOnOptionSchema; }
|
|
214
268
|
});
|
|
215
269
|
Object.defineProperty(exports, "ServiceStatusSchema", {
|
|
216
270
|
enumerable: true,
|
|
217
|
-
get: function () { return
|
|
271
|
+
get: function () { return chunkBWEIMKLF_js.ServiceStatusSchema; }
|
|
272
|
+
});
|
|
273
|
+
Object.defineProperty(exports, "SubmitPurchaseIntentActionRequestSchema", {
|
|
274
|
+
enumerable: true,
|
|
275
|
+
get: function () { return chunkBWEIMKLF_js.SubmitPurchaseIntentActionRequestSchema; }
|
|
218
276
|
});
|
|
219
277
|
Object.defineProperty(exports, "TaxPriceDisplayModeSchema", {
|
|
220
278
|
enumerable: true,
|
|
221
|
-
get: function () { return
|
|
279
|
+
get: function () { return chunkBWEIMKLF_js.TaxPriceDisplayModeSchema; }
|
|
222
280
|
});
|
|
223
281
|
Object.defineProperty(exports, "TimestampSchema", {
|
|
224
282
|
enumerable: true,
|
|
225
|
-
get: function () { return
|
|
283
|
+
get: function () { return chunkBWEIMKLF_js.TimestampSchema; }
|
|
226
284
|
});
|
|
227
285
|
Object.defineProperty(exports, "VariantDetailsSchema", {
|
|
228
286
|
enumerable: true,
|
|
229
|
-
get: function () { return
|
|
287
|
+
get: function () { return chunkBWEIMKLF_js.VariantDetailsSchema; }
|
|
230
288
|
});
|
|
231
289
|
Object.defineProperty(exports, "VariantDisplayAttributeSchema", {
|
|
232
290
|
enumerable: true,
|
|
233
|
-
get: function () { return
|
|
291
|
+
get: function () { return chunkBWEIMKLF_js.VariantDisplayAttributeSchema; }
|
|
234
292
|
});
|
|
235
293
|
Object.defineProperty(exports, "VariantInfoSchema", {
|
|
236
294
|
enumerable: true,
|
|
237
|
-
get: function () { return
|
|
295
|
+
get: function () { return chunkBWEIMKLF_js.VariantInfoSchema; }
|
|
296
|
+
});
|
|
297
|
+
Object.defineProperty(exports, "VerifyOtpRequestSchema", {
|
|
298
|
+
enumerable: true,
|
|
299
|
+
get: function () { return chunkBWEIMKLF_js.VerifyOtpRequestSchema; }
|
|
238
300
|
});
|
|
239
301
|
Object.defineProperty(exports, "assertAddItemPayload", {
|
|
240
302
|
enumerable: true,
|
|
241
|
-
get: function () { return
|
|
303
|
+
get: function () { return chunkBWEIMKLF_js.assertAddItemPayload; }
|
|
242
304
|
});
|
|
243
305
|
Object.defineProperty(exports, "assertBrand", {
|
|
244
306
|
enumerable: true,
|
|
245
|
-
get: function () { return
|
|
307
|
+
get: function () { return chunkBWEIMKLF_js.assertBrand; }
|
|
246
308
|
});
|
|
247
309
|
Object.defineProperty(exports, "assertCart", {
|
|
248
310
|
enumerable: true,
|
|
249
|
-
get: function () { return
|
|
311
|
+
get: function () { return chunkBWEIMKLF_js.assertCart; }
|
|
250
312
|
});
|
|
251
313
|
Object.defineProperty(exports, "assertCartItem", {
|
|
252
314
|
enumerable: true,
|
|
253
|
-
get: function () { return
|
|
315
|
+
get: function () { return chunkBWEIMKLF_js.assertCartItem; }
|
|
254
316
|
});
|
|
255
317
|
Object.defineProperty(exports, "assertCheckoutBody", {
|
|
256
318
|
enumerable: true,
|
|
257
|
-
get: function () { return
|
|
319
|
+
get: function () { return chunkBWEIMKLF_js.assertCheckoutBody; }
|
|
258
320
|
});
|
|
259
321
|
Object.defineProperty(exports, "assertCheckoutResponse", {
|
|
260
322
|
enumerable: true,
|
|
261
|
-
get: function () { return
|
|
323
|
+
get: function () { return chunkBWEIMKLF_js.assertCheckoutResponse; }
|
|
324
|
+
});
|
|
325
|
+
Object.defineProperty(exports, "assertCheckoutTermsView", {
|
|
326
|
+
enumerable: true,
|
|
327
|
+
get: function () { return chunkBWEIMKLF_js.assertCheckoutTermsView; }
|
|
328
|
+
});
|
|
329
|
+
Object.defineProperty(exports, "assertConfirmPurchaseIntentRequest", {
|
|
330
|
+
enumerable: true,
|
|
331
|
+
get: function () { return chunkBWEIMKLF_js.assertConfirmPurchaseIntentRequest; }
|
|
332
|
+
});
|
|
333
|
+
Object.defineProperty(exports, "assertConfirmPurchaseIntentResponse", {
|
|
334
|
+
enumerable: true,
|
|
335
|
+
get: function () { return chunkBWEIMKLF_js.assertConfirmPurchaseIntentResponse; }
|
|
336
|
+
});
|
|
337
|
+
Object.defineProperty(exports, "assertMintPurchaseIntentRequest", {
|
|
338
|
+
enumerable: true,
|
|
339
|
+
get: function () { return chunkBWEIMKLF_js.assertMintPurchaseIntentRequest; }
|
|
340
|
+
});
|
|
341
|
+
Object.defineProperty(exports, "assertPreparePurchaseIntentRequest", {
|
|
342
|
+
enumerable: true,
|
|
343
|
+
get: function () { return chunkBWEIMKLF_js.assertPreparePurchaseIntentRequest; }
|
|
344
|
+
});
|
|
345
|
+
Object.defineProperty(exports, "assertPurchaseIntentView", {
|
|
346
|
+
enumerable: true,
|
|
347
|
+
get: function () { return chunkBWEIMKLF_js.assertPurchaseIntentView; }
|
|
348
|
+
});
|
|
349
|
+
Object.defineProperty(exports, "assertSubmitPurchaseIntentActionRequest", {
|
|
350
|
+
enumerable: true,
|
|
351
|
+
get: function () { return chunkBWEIMKLF_js.assertSubmitPurchaseIntentActionRequest; }
|
|
262
352
|
});
|
|
263
353
|
Object.defineProperty(exports, "cimplifyRegistry", {
|
|
264
354
|
enumerable: true,
|
|
265
|
-
get: function () { return
|
|
355
|
+
get: function () { return chunkBWEIMKLF_js.cimplifyRegistry; }
|
|
266
356
|
});
|
|
267
357
|
Object.defineProperty(exports, "createTestClient", {
|
|
268
358
|
enumerable: true,
|
|
269
|
-
get: function () { return
|
|
359
|
+
get: function () { return chunkBWEIMKLF_js.createTestClient; }
|
|
270
360
|
});
|
|
271
361
|
Object.defineProperty(exports, "fixtures", {
|
|
272
362
|
enumerable: true,
|
|
273
|
-
get: function () { return
|
|
363
|
+
get: function () { return chunkBWEIMKLF_js.fixtures; }
|
|
274
364
|
});
|
|
275
365
|
Object.defineProperty(exports, "makeAssertion", {
|
|
276
366
|
enumerable: true,
|
|
277
|
-
get: function () { return
|
|
367
|
+
get: function () { return chunkBWEIMKLF_js.makeAssertion; }
|
|
278
368
|
});
|
|
279
369
|
Object.defineProperty(exports, "registerSchema", {
|
|
280
370
|
enumerable: true,
|
|
281
|
-
get: function () { return
|
|
371
|
+
get: function () { return chunkBWEIMKLF_js.registerSchema; }
|
|
282
372
|
});
|
|
283
373
|
exports.exportJsonSchemas = exportJsonSchemas;
|
|
284
374
|
exports.listRegisteredSchemas = listRegisteredSchemas;
|
package/dist/testing.mjs
CHANGED
|
@@ -1,12 +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, TaxPriceDisplayModeSchema, TimestampSchema, VariantDetailsSchema, VariantDisplayAttributeSchema, VariantInfoSchema, assertAddItemPayload, assertBrand, assertCart, assertCartItem, assertCheckoutBody, assertCheckoutResponse, cimplifyRegistry, createTestClient, fixtures, makeAssertion, registerSchema } from './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
import { ConfirmPurchaseIntentResponseSchema, SubmitPurchaseIntentActionRequestSchema, PreparePurchaseIntentRequestSchema, ConfirmPurchaseIntentRequestSchema, CheckoutTermsViewSchema, PurchaseIntentViewSchema, MintPurchaseIntentRequestSchema, RequestOtpResponseSchema, VerifyOtpRequestSchema, VariantInfoSchema, CheckoutResponseSchema, CheckoutBodySchema, CartPricingSchema, CartItemSchema, CartSchema, AddItemPayloadSchema, BrandSchema, cimplifyRegistry } from './chunk-L5SNEU2O.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, CheckoutTermsViewSchema, ChosenPriceSchema, CompositeResolvedSchema, CompositeSelectionInputSchema, ConfirmPurchaseIntentRequestSchema, ConfirmPurchaseIntentResponseSchema, CountryCodeSchema, CurrencyCodeSchema, CustomerInputValueSchema, DiscountDetailsSchema, IsoDateTimeSchema, LineTypeSchema, LocaleSchema, MintPurchaseIntentRequestSchema, MoneyLooseSchema, MoneySchema, NextActionSchema, PhoneE164Schema, PreparePurchaseIntentRequestSchema, ProductTypeSchema, PurchaseIntentSourceInputSchema, PurchaseIntentTenderPreferenceSchema, PurchaseIntentViewSchema, RequestOtpResponseSchema, SchemaViolationError, SeedNameSchema, SelectedAddOnOptionSchema, ServiceStatusSchema, SubmitPurchaseIntentActionRequestSchema, TaxPriceDisplayModeSchema, TimestampSchema, VariantDetailsSchema, VariantDisplayAttributeSchema, VariantInfoSchema, VerifyOtpRequestSchema, assertAddItemPayload, assertBrand, assertCart, assertCartItem, assertCheckoutBody, assertCheckoutResponse, assertCheckoutTermsView, assertConfirmPurchaseIntentRequest, assertConfirmPurchaseIntentResponse, assertMintPurchaseIntentRequest, assertPreparePurchaseIntentRequest, assertPurchaseIntentView, assertSubmitPurchaseIntentActionRequest, cimplifyRegistry, createTestClient, fixtures, makeAssertion, registerSchema } from './chunk-L5SNEU2O.mjs';
|
|
3
|
+
import './chunk-6G3ANKQA.mjs';
|
|
4
|
+
import './chunk-UFOWPN3D.mjs';
|
|
4
5
|
import './chunk-U4MW6PYU.mjs';
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
9
|
-
import './chunk-VNPEYLB2.mjs';
|
|
6
|
+
import './chunk-V4457OKB.mjs';
|
|
7
|
+
import './chunk-33VCYWVL.mjs';
|
|
8
|
+
import './chunk-U54CWUUT.mjs';
|
|
9
|
+
import './chunk-RBNBSQI7.mjs';
|
|
10
10
|
import './chunk-3G6RQLXK.mjs';
|
|
11
11
|
import { z } from 'zod';
|
|
12
12
|
|
|
@@ -18,7 +18,16 @@ var PUBLIC_SCHEMAS = {
|
|
|
18
18
|
CartPricing: CartPricingSchema,
|
|
19
19
|
CheckoutBody: CheckoutBodySchema,
|
|
20
20
|
CheckoutResponse: CheckoutResponseSchema,
|
|
21
|
-
VariantInfo: VariantInfoSchema
|
|
21
|
+
VariantInfo: VariantInfoSchema,
|
|
22
|
+
VerifyOtpRequest: VerifyOtpRequestSchema,
|
|
23
|
+
RequestOtpResponse: RequestOtpResponseSchema,
|
|
24
|
+
MintPurchaseIntentRequest: MintPurchaseIntentRequestSchema,
|
|
25
|
+
PurchaseIntentView: PurchaseIntentViewSchema,
|
|
26
|
+
CheckoutTermsView: CheckoutTermsViewSchema,
|
|
27
|
+
ConfirmPurchaseIntentRequest: ConfirmPurchaseIntentRequestSchema,
|
|
28
|
+
PreparePurchaseIntentRequest: PreparePurchaseIntentRequestSchema,
|
|
29
|
+
SubmitPurchaseIntentActionRequest: SubmitPurchaseIntentActionRequestSchema,
|
|
30
|
+
ConfirmPurchaseIntentResponse: ConfirmPurchaseIntentResponseSchema
|
|
22
31
|
};
|
|
23
32
|
function exportJsonSchemas() {
|
|
24
33
|
const out = {};
|
|
@@ -43,7 +52,16 @@ function listRegisteredSchemas() {
|
|
|
43
52
|
CartPricingSchema,
|
|
44
53
|
CheckoutBodySchema,
|
|
45
54
|
CheckoutResponseSchema,
|
|
46
|
-
VariantInfoSchema
|
|
55
|
+
VariantInfoSchema,
|
|
56
|
+
VerifyOtpRequestSchema,
|
|
57
|
+
RequestOtpResponseSchema,
|
|
58
|
+
MintPurchaseIntentRequestSchema,
|
|
59
|
+
PurchaseIntentViewSchema,
|
|
60
|
+
CheckoutTermsViewSchema,
|
|
61
|
+
ConfirmPurchaseIntentRequestSchema,
|
|
62
|
+
PreparePurchaseIntentRequestSchema,
|
|
63
|
+
SubmitPurchaseIntentActionRequestSchema,
|
|
64
|
+
ConfirmPurchaseIntentResponseSchema
|
|
47
65
|
]) {
|
|
48
66
|
const meta = cimplifyRegistry.get(schema);
|
|
49
67
|
if (meta) entries.push({ schema, meta });
|
package/dist/utils.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
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-
|
|
2
|
-
import './
|
|
3
|
-
import './price-
|
|
4
|
-
import './link-cuNVYc2s.mjs';
|
|
1
|
+
export { C as CURRENCY_SYMBOLS, a as CanonicalMobileMoneyProvider, M as MOBILE_MONEY_PROVIDERS, c as canonicalMobileMoneyProvider, b as categorizePaymentError, d as detectMobileMoneyProvider, f as formatMoney, e as formatNumberCompact, g as formatPrice, h as formatPriceAdjustment, i as formatPriceCompact, k as formatPriceWithTax, l as formatProductPrice, m as getBasePrice, n as getCurrencySymbol, o as getDiscountPercentage, p as getDisplayPrice, q as getMarkupPercentage, s as getProductCurrency, t as getTaxAmount, v as hasTaxInfo, w as isOnSale, x as isPaymentStatusFailure, y as isPaymentStatusRequiresAction, z as isPaymentStatusSuccess, A as isTaxInclusive, B as isValidPhoneForContext, D as normalizePaymentResponse, E as normalizePhoneToE164, F as normalizeStatusResponse, G as parsePrice, H as paymentAuthorizationUrl, I as purchaseIntentMobileMoneyNetwork, J as resolvePhoneCountryCode } from './index-B0AdZvrM.mjs';
|
|
2
|
+
import './checkout-BqK9XUz5.mjs';
|
|
3
|
+
import './price-BUDv1rI7.mjs';
|
|
5
4
|
import 'libphonenumber-js';
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
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-
|
|
2
|
-
import './
|
|
3
|
-
import './price-
|
|
4
|
-
import './link-cuNVYc2s.js';
|
|
1
|
+
export { C as CURRENCY_SYMBOLS, a as CanonicalMobileMoneyProvider, M as MOBILE_MONEY_PROVIDERS, c as canonicalMobileMoneyProvider, b as categorizePaymentError, d as detectMobileMoneyProvider, f as formatMoney, e as formatNumberCompact, g as formatPrice, h as formatPriceAdjustment, i as formatPriceCompact, k as formatPriceWithTax, l as formatProductPrice, m as getBasePrice, n as getCurrencySymbol, o as getDiscountPercentage, p as getDisplayPrice, q as getMarkupPercentage, s as getProductCurrency, t as getTaxAmount, v as hasTaxInfo, w as isOnSale, x as isPaymentStatusFailure, y as isPaymentStatusRequiresAction, z as isPaymentStatusSuccess, A as isTaxInclusive, B as isValidPhoneForContext, D as normalizePaymentResponse, E as normalizePhoneToE164, F as normalizeStatusResponse, G as parsePrice, H as paymentAuthorizationUrl, I as purchaseIntentMobileMoneyNetwork, J as resolvePhoneCountryCode } from './index-CK8Nk5uQ.js';
|
|
2
|
+
import './checkout-BqK9XUz5.js';
|
|
3
|
+
import './price-6hQIIac9.js';
|
|
5
4
|
import 'libphonenumber-js';
|