@cimplify/sdk 0.104.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-BuLcOWLv.d.ts → catalogue-BlQ85Uma.d.mts} +415 -763
- package/dist/{client-D5AoobFc.d.mts → catalogue-C8TqOj9K.d.ts} +415 -763
- package/dist/{payment-g0HFkEDU.d.mts → checkout-BqK9XUz5.d.mts} +3824 -1446
- package/dist/{payment-g0HFkEDU.d.ts → checkout-BqK9XUz5.d.ts} +3824 -1446
- package/dist/{chunk-GOHSXBKW.mjs → chunk-33VCYWVL.mjs} +25 -1
- package/dist/{chunk-2WPVUIHX.mjs → chunk-6G3ANKQA.mjs} +1030 -360
- package/dist/{chunk-E4K2VQDD.js → chunk-BWEIMKLF.js} +541 -16
- package/dist/{chunk-IQFFSKE2.js → chunk-DQEXY542.js} +1345 -746
- package/dist/{chunk-CNN7Z2IP.js → chunk-EV2EVOYS.js} +27 -0
- package/dist/{chunk-YVAEY3VC.js → chunk-HYFA67A7.js} +1034 -364
- package/dist/{chunk-5RT4HYMP.mjs → chunk-L5SNEU2O.mjs} +524 -15
- package/dist/{chunk-4BKOKHE3.js → chunk-RBNBSQI7.mjs} +217 -19
- package/dist/{chunk-H3RATH4B.mjs → chunk-SFUJMS5E.js} +261 -2
- package/dist/{chunk-DYIAX3WI.mjs → chunk-U54CWUUT.mjs} +11 -2
- package/dist/{chunk-OKADBZAI.mjs → chunk-UFOWPN3D.mjs} +808 -574
- package/dist/{chunk-OCCNG6MO.mjs → chunk-V4457OKB.mjs} +1310 -722
- package/dist/{chunk-5BDYDZ4U.js → chunk-WXREIBFW.js} +892 -657
- package/dist/{chunk-7PDEX54K.js → chunk-XAUSDMMZ.js} +13 -3
- package/dist/{client-BVNWjk6W.d.ts → client-DhXeiUrf.d.ts} +2 -2
- package/dist/{client-fM716k7G.d.mts → client-mXiUrV4X.d.mts} +2 -2
- package/dist/{index-BtcoqrY1.d.ts → index-B0AdZvrM.d.mts} +9 -4
- package/dist/{index-D7Tf3v7c.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 +31 -14
- package/dist/index.d.ts +31 -14
- package/dist/index.js +305 -133
- package/dist/index.mjs +6 -6
- package/dist/mock/cli.mjs +1442 -386
- package/dist/mock/library.js +1168 -352
- package/dist/mock/library.mjs +1168 -352
- package/dist/mock/msw.js +1168 -352
- package/dist/mock/msw.mjs +1168 -352
- package/dist/{price-BLIeAb8K.d.ts → price-6hQIIac9.d.ts} +1 -1
- package/dist/{price-Czq_cTC_.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 +227 -197
- package/dist/react.mjs +90 -60
- package/dist/{server-DKK_D-PP.d.ts → server-DJ0mSs9i.d.mts} +31 -57
- package/dist/{server-BkVhOIwn.d.mts → server-DSTX76Ki.d.ts} +31 -57
- package/dist/server.d.mts +3 -4
- package/dist/server.d.ts +3 -4
- package/dist/server.js +11 -11
- package/dist/server.mjs +5 -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 +2177 -14
- package/dist/testing.d.ts +2177 -14
- package/dist/testing.js +167 -89
- package/dist/testing.mjs +24 -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/order-history.json +1 -1
- package/registry/order-summary.json +1 -1
- package/dist/link-D9iSVxt5.d.mts +0 -308
- package/dist/link-D9iSVxt5.d.ts +0 -308
package/dist/testing.js
CHANGED
|
@@ -1,33 +1,40 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
3
|
+
var chunkBWEIMKLF_js = require('./chunk-BWEIMKLF.js');
|
|
4
|
+
require('./chunk-HYFA67A7.js');
|
|
5
|
+
require('./chunk-WXREIBFW.js');
|
|
6
6
|
require('./chunk-XREIZ56K.js');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
10
|
-
require('./chunk-
|
|
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:
|
|
23
|
-
VerifyOtpRequest:
|
|
24
|
-
RequestOtpResponse:
|
|
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
|
|
25
32
|
};
|
|
26
33
|
function exportJsonSchemas() {
|
|
27
34
|
const out = {};
|
|
28
35
|
for (const [name, schema] of Object.entries(PUBLIC_SCHEMAS)) {
|
|
29
|
-
const meta =
|
|
30
|
-
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 });
|
|
31
38
|
if (meta) {
|
|
32
39
|
json.$id = meta.id;
|
|
33
40
|
json["x-cimplify-version"] = meta.version;
|
|
@@ -39,18 +46,25 @@ function exportJsonSchemas() {
|
|
|
39
46
|
function listRegisteredSchemas() {
|
|
40
47
|
const entries = [];
|
|
41
48
|
for (const schema of [
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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
|
|
52
66
|
]) {
|
|
53
|
-
const meta =
|
|
67
|
+
const meta = chunkBWEIMKLF_js.cimplifyRegistry.get(schema);
|
|
54
68
|
if (meta) entries.push({ schema, meta });
|
|
55
69
|
}
|
|
56
70
|
return entries;
|
|
@@ -58,239 +72,303 @@ function listRegisteredSchemas() {
|
|
|
58
72
|
|
|
59
73
|
Object.defineProperty(exports, "AddItemPayloadSchema", {
|
|
60
74
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkBWEIMKLF_js.AddItemPayloadSchema; }
|
|
62
76
|
});
|
|
63
77
|
Object.defineProperty(exports, "AddOnDetailsSchema", {
|
|
64
78
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkBWEIMKLF_js.AddOnDetailsSchema; }
|
|
66
80
|
});
|
|
67
81
|
Object.defineProperty(exports, "AddOnGroupDetailsSchema", {
|
|
68
82
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunkBWEIMKLF_js.AddOnGroupDetailsSchema; }
|
|
70
84
|
});
|
|
71
85
|
Object.defineProperty(exports, "AddOnInDetailsSchema", {
|
|
72
86
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunkBWEIMKLF_js.AddOnInDetailsSchema; }
|
|
74
88
|
});
|
|
75
89
|
Object.defineProperty(exports, "AddOnOptionDetailsSchema", {
|
|
76
90
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunkBWEIMKLF_js.AddOnOptionDetailsSchema; }
|
|
78
92
|
});
|
|
79
93
|
Object.defineProperty(exports, "AuthorizationTypeSchema", {
|
|
80
94
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunkBWEIMKLF_js.AuthorizationTypeSchema; }
|
|
82
96
|
});
|
|
83
97
|
Object.defineProperty(exports, "BrandContactSchema", {
|
|
84
98
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
99
|
+
get: function () { return chunkBWEIMKLF_js.BrandContactSchema; }
|
|
86
100
|
});
|
|
87
101
|
Object.defineProperty(exports, "BrandFaqSchema", {
|
|
88
102
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
103
|
+
get: function () { return chunkBWEIMKLF_js.BrandFaqSchema; }
|
|
90
104
|
});
|
|
91
105
|
Object.defineProperty(exports, "BrandHeroSchema", {
|
|
92
106
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
107
|
+
get: function () { return chunkBWEIMKLF_js.BrandHeroSchema; }
|
|
94
108
|
});
|
|
95
109
|
Object.defineProperty(exports, "BrandNavLinkSchema", {
|
|
96
110
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
111
|
+
get: function () { return chunkBWEIMKLF_js.BrandNavLinkSchema; }
|
|
98
112
|
});
|
|
99
113
|
Object.defineProperty(exports, "BrandPolicyPageSchema", {
|
|
100
114
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
115
|
+
get: function () { return chunkBWEIMKLF_js.BrandPolicyPageSchema; }
|
|
102
116
|
});
|
|
103
117
|
Object.defineProperty(exports, "BrandPolicySectionSchema", {
|
|
104
118
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
119
|
+
get: function () { return chunkBWEIMKLF_js.BrandPolicySectionSchema; }
|
|
106
120
|
});
|
|
107
121
|
Object.defineProperty(exports, "BrandSchema", {
|
|
108
122
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
123
|
+
get: function () { return chunkBWEIMKLF_js.BrandSchema; }
|
|
110
124
|
});
|
|
111
125
|
Object.defineProperty(exports, "BrandSocialSchema", {
|
|
112
126
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
127
|
+
get: function () { return chunkBWEIMKLF_js.BrandSocialSchema; }
|
|
114
128
|
});
|
|
115
129
|
Object.defineProperty(exports, "BundleResolvedSchema", {
|
|
116
130
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
131
|
+
get: function () { return chunkBWEIMKLF_js.BundleResolvedSchema; }
|
|
118
132
|
});
|
|
119
133
|
Object.defineProperty(exports, "BundleSelectionInputSchema", {
|
|
120
134
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
135
|
+
get: function () { return chunkBWEIMKLF_js.BundleSelectionInputSchema; }
|
|
122
136
|
});
|
|
123
137
|
Object.defineProperty(exports, "CartItemSchema", {
|
|
124
138
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
139
|
+
get: function () { return chunkBWEIMKLF_js.CartItemSchema; }
|
|
126
140
|
});
|
|
127
141
|
Object.defineProperty(exports, "CartPricingSchema", {
|
|
128
142
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
143
|
+
get: function () { return chunkBWEIMKLF_js.CartPricingSchema; }
|
|
130
144
|
});
|
|
131
145
|
Object.defineProperty(exports, "CartSchema", {
|
|
132
146
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
147
|
+
get: function () { return chunkBWEIMKLF_js.CartSchema; }
|
|
134
148
|
});
|
|
135
149
|
Object.defineProperty(exports, "CheckoutBodySchema", {
|
|
136
150
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
151
|
+
get: function () { return chunkBWEIMKLF_js.CheckoutBodySchema; }
|
|
138
152
|
});
|
|
139
153
|
Object.defineProperty(exports, "CheckoutCustomerSchema", {
|
|
140
154
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
155
|
+
get: function () { return chunkBWEIMKLF_js.CheckoutCustomerSchema; }
|
|
142
156
|
});
|
|
143
157
|
Object.defineProperty(exports, "CheckoutResponseSchema", {
|
|
144
158
|
enumerable: true,
|
|
145
|
-
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; }
|
|
146
164
|
});
|
|
147
165
|
Object.defineProperty(exports, "ChosenPriceSchema", {
|
|
148
166
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
167
|
+
get: function () { return chunkBWEIMKLF_js.ChosenPriceSchema; }
|
|
150
168
|
});
|
|
151
169
|
Object.defineProperty(exports, "CompositeResolvedSchema", {
|
|
152
170
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
171
|
+
get: function () { return chunkBWEIMKLF_js.CompositeResolvedSchema; }
|
|
154
172
|
});
|
|
155
173
|
Object.defineProperty(exports, "CompositeSelectionInputSchema", {
|
|
156
174
|
enumerable: true,
|
|
157
|
-
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; }
|
|
158
184
|
});
|
|
159
185
|
Object.defineProperty(exports, "CountryCodeSchema", {
|
|
160
186
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
187
|
+
get: function () { return chunkBWEIMKLF_js.CountryCodeSchema; }
|
|
162
188
|
});
|
|
163
189
|
Object.defineProperty(exports, "CurrencyCodeSchema", {
|
|
164
190
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
191
|
+
get: function () { return chunkBWEIMKLF_js.CurrencyCodeSchema; }
|
|
166
192
|
});
|
|
167
193
|
Object.defineProperty(exports, "CustomerInputValueSchema", {
|
|
168
194
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
195
|
+
get: function () { return chunkBWEIMKLF_js.CustomerInputValueSchema; }
|
|
170
196
|
});
|
|
171
197
|
Object.defineProperty(exports, "DiscountDetailsSchema", {
|
|
172
198
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
199
|
+
get: function () { return chunkBWEIMKLF_js.DiscountDetailsSchema; }
|
|
174
200
|
});
|
|
175
201
|
Object.defineProperty(exports, "IsoDateTimeSchema", {
|
|
176
202
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
203
|
+
get: function () { return chunkBWEIMKLF_js.IsoDateTimeSchema; }
|
|
178
204
|
});
|
|
179
205
|
Object.defineProperty(exports, "LineTypeSchema", {
|
|
180
206
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
207
|
+
get: function () { return chunkBWEIMKLF_js.LineTypeSchema; }
|
|
182
208
|
});
|
|
183
209
|
Object.defineProperty(exports, "LocaleSchema", {
|
|
184
210
|
enumerable: true,
|
|
185
|
-
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; }
|
|
186
216
|
});
|
|
187
217
|
Object.defineProperty(exports, "MoneyLooseSchema", {
|
|
188
218
|
enumerable: true,
|
|
189
|
-
get: function () { return
|
|
219
|
+
get: function () { return chunkBWEIMKLF_js.MoneyLooseSchema; }
|
|
190
220
|
});
|
|
191
221
|
Object.defineProperty(exports, "MoneySchema", {
|
|
192
222
|
enumerable: true,
|
|
193
|
-
get: function () { return
|
|
223
|
+
get: function () { return chunkBWEIMKLF_js.MoneySchema; }
|
|
194
224
|
});
|
|
195
225
|
Object.defineProperty(exports, "NextActionSchema", {
|
|
196
226
|
enumerable: true,
|
|
197
|
-
get: function () { return
|
|
227
|
+
get: function () { return chunkBWEIMKLF_js.NextActionSchema; }
|
|
198
228
|
});
|
|
199
229
|
Object.defineProperty(exports, "PhoneE164Schema", {
|
|
200
230
|
enumerable: true,
|
|
201
|
-
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; }
|
|
202
236
|
});
|
|
203
237
|
Object.defineProperty(exports, "ProductTypeSchema", {
|
|
204
238
|
enumerable: true,
|
|
205
|
-
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; }
|
|
206
252
|
});
|
|
207
253
|
Object.defineProperty(exports, "RequestOtpResponseSchema", {
|
|
208
254
|
enumerable: true,
|
|
209
|
-
get: function () { return
|
|
255
|
+
get: function () { return chunkBWEIMKLF_js.RequestOtpResponseSchema; }
|
|
210
256
|
});
|
|
211
257
|
Object.defineProperty(exports, "SchemaViolationError", {
|
|
212
258
|
enumerable: true,
|
|
213
|
-
get: function () { return
|
|
259
|
+
get: function () { return chunkBWEIMKLF_js.SchemaViolationError; }
|
|
214
260
|
});
|
|
215
261
|
Object.defineProperty(exports, "SeedNameSchema", {
|
|
216
262
|
enumerable: true,
|
|
217
|
-
get: function () { return
|
|
263
|
+
get: function () { return chunkBWEIMKLF_js.SeedNameSchema; }
|
|
218
264
|
});
|
|
219
265
|
Object.defineProperty(exports, "SelectedAddOnOptionSchema", {
|
|
220
266
|
enumerable: true,
|
|
221
|
-
get: function () { return
|
|
267
|
+
get: function () { return chunkBWEIMKLF_js.SelectedAddOnOptionSchema; }
|
|
222
268
|
});
|
|
223
269
|
Object.defineProperty(exports, "ServiceStatusSchema", {
|
|
224
270
|
enumerable: true,
|
|
225
|
-
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; }
|
|
226
276
|
});
|
|
227
277
|
Object.defineProperty(exports, "TaxPriceDisplayModeSchema", {
|
|
228
278
|
enumerable: true,
|
|
229
|
-
get: function () { return
|
|
279
|
+
get: function () { return chunkBWEIMKLF_js.TaxPriceDisplayModeSchema; }
|
|
230
280
|
});
|
|
231
281
|
Object.defineProperty(exports, "TimestampSchema", {
|
|
232
282
|
enumerable: true,
|
|
233
|
-
get: function () { return
|
|
283
|
+
get: function () { return chunkBWEIMKLF_js.TimestampSchema; }
|
|
234
284
|
});
|
|
235
285
|
Object.defineProperty(exports, "VariantDetailsSchema", {
|
|
236
286
|
enumerable: true,
|
|
237
|
-
get: function () { return
|
|
287
|
+
get: function () { return chunkBWEIMKLF_js.VariantDetailsSchema; }
|
|
238
288
|
});
|
|
239
289
|
Object.defineProperty(exports, "VariantDisplayAttributeSchema", {
|
|
240
290
|
enumerable: true,
|
|
241
|
-
get: function () { return
|
|
291
|
+
get: function () { return chunkBWEIMKLF_js.VariantDisplayAttributeSchema; }
|
|
242
292
|
});
|
|
243
293
|
Object.defineProperty(exports, "VariantInfoSchema", {
|
|
244
294
|
enumerable: true,
|
|
245
|
-
get: function () { return
|
|
295
|
+
get: function () { return chunkBWEIMKLF_js.VariantInfoSchema; }
|
|
246
296
|
});
|
|
247
297
|
Object.defineProperty(exports, "VerifyOtpRequestSchema", {
|
|
248
298
|
enumerable: true,
|
|
249
|
-
get: function () { return
|
|
299
|
+
get: function () { return chunkBWEIMKLF_js.VerifyOtpRequestSchema; }
|
|
250
300
|
});
|
|
251
301
|
Object.defineProperty(exports, "assertAddItemPayload", {
|
|
252
302
|
enumerable: true,
|
|
253
|
-
get: function () { return
|
|
303
|
+
get: function () { return chunkBWEIMKLF_js.assertAddItemPayload; }
|
|
254
304
|
});
|
|
255
305
|
Object.defineProperty(exports, "assertBrand", {
|
|
256
306
|
enumerable: true,
|
|
257
|
-
get: function () { return
|
|
307
|
+
get: function () { return chunkBWEIMKLF_js.assertBrand; }
|
|
258
308
|
});
|
|
259
309
|
Object.defineProperty(exports, "assertCart", {
|
|
260
310
|
enumerable: true,
|
|
261
|
-
get: function () { return
|
|
311
|
+
get: function () { return chunkBWEIMKLF_js.assertCart; }
|
|
262
312
|
});
|
|
263
313
|
Object.defineProperty(exports, "assertCartItem", {
|
|
264
314
|
enumerable: true,
|
|
265
|
-
get: function () { return
|
|
315
|
+
get: function () { return chunkBWEIMKLF_js.assertCartItem; }
|
|
266
316
|
});
|
|
267
317
|
Object.defineProperty(exports, "assertCheckoutBody", {
|
|
268
318
|
enumerable: true,
|
|
269
|
-
get: function () { return
|
|
319
|
+
get: function () { return chunkBWEIMKLF_js.assertCheckoutBody; }
|
|
270
320
|
});
|
|
271
321
|
Object.defineProperty(exports, "assertCheckoutResponse", {
|
|
272
322
|
enumerable: true,
|
|
273
|
-
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; }
|
|
274
352
|
});
|
|
275
353
|
Object.defineProperty(exports, "cimplifyRegistry", {
|
|
276
354
|
enumerable: true,
|
|
277
|
-
get: function () { return
|
|
355
|
+
get: function () { return chunkBWEIMKLF_js.cimplifyRegistry; }
|
|
278
356
|
});
|
|
279
357
|
Object.defineProperty(exports, "createTestClient", {
|
|
280
358
|
enumerable: true,
|
|
281
|
-
get: function () { return
|
|
359
|
+
get: function () { return chunkBWEIMKLF_js.createTestClient; }
|
|
282
360
|
});
|
|
283
361
|
Object.defineProperty(exports, "fixtures", {
|
|
284
362
|
enumerable: true,
|
|
285
|
-
get: function () { return
|
|
363
|
+
get: function () { return chunkBWEIMKLF_js.fixtures; }
|
|
286
364
|
});
|
|
287
365
|
Object.defineProperty(exports, "makeAssertion", {
|
|
288
366
|
enumerable: true,
|
|
289
|
-
get: function () { return
|
|
367
|
+
get: function () { return chunkBWEIMKLF_js.makeAssertion; }
|
|
290
368
|
});
|
|
291
369
|
Object.defineProperty(exports, "registerSchema", {
|
|
292
370
|
enumerable: true,
|
|
293
|
-
get: function () { return
|
|
371
|
+
get: function () { return chunkBWEIMKLF_js.registerSchema; }
|
|
294
372
|
});
|
|
295
373
|
exports.exportJsonSchemas = exportJsonSchemas;
|
|
296
374
|
exports.listRegisteredSchemas = listRegisteredSchemas;
|
package/dist/testing.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { RequestOtpResponseSchema, VerifyOtpRequestSchema, 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, RequestOtpResponseSchema, SchemaViolationError, SeedNameSchema, SelectedAddOnOptionSchema, ServiceStatusSchema, TaxPriceDisplayModeSchema, TimestampSchema, VariantDetailsSchema, VariantDisplayAttributeSchema, VariantInfoSchema, VerifyOtpRequestSchema, assertAddItemPayload, assertBrand, assertCart, assertCartItem, assertCheckoutBody, assertCheckoutResponse, cimplifyRegistry, createTestClient, fixtures, makeAssertion, registerSchema } from './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
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';
|
|
5
5
|
import './chunk-U4MW6PYU.mjs';
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
9
|
-
import './chunk-
|
|
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
|
|
|
@@ -20,7 +20,14 @@ var PUBLIC_SCHEMAS = {
|
|
|
20
20
|
CheckoutResponse: CheckoutResponseSchema,
|
|
21
21
|
VariantInfo: VariantInfoSchema,
|
|
22
22
|
VerifyOtpRequest: VerifyOtpRequestSchema,
|
|
23
|
-
RequestOtpResponse: RequestOtpResponseSchema
|
|
23
|
+
RequestOtpResponse: RequestOtpResponseSchema,
|
|
24
|
+
MintPurchaseIntentRequest: MintPurchaseIntentRequestSchema,
|
|
25
|
+
PurchaseIntentView: PurchaseIntentViewSchema,
|
|
26
|
+
CheckoutTermsView: CheckoutTermsViewSchema,
|
|
27
|
+
ConfirmPurchaseIntentRequest: ConfirmPurchaseIntentRequestSchema,
|
|
28
|
+
PreparePurchaseIntentRequest: PreparePurchaseIntentRequestSchema,
|
|
29
|
+
SubmitPurchaseIntentActionRequest: SubmitPurchaseIntentActionRequestSchema,
|
|
30
|
+
ConfirmPurchaseIntentResponse: ConfirmPurchaseIntentResponseSchema
|
|
24
31
|
};
|
|
25
32
|
function exportJsonSchemas() {
|
|
26
33
|
const out = {};
|
|
@@ -47,7 +54,14 @@ function listRegisteredSchemas() {
|
|
|
47
54
|
CheckoutResponseSchema,
|
|
48
55
|
VariantInfoSchema,
|
|
49
56
|
VerifyOtpRequestSchema,
|
|
50
|
-
RequestOtpResponseSchema
|
|
57
|
+
RequestOtpResponseSchema,
|
|
58
|
+
MintPurchaseIntentRequestSchema,
|
|
59
|
+
PurchaseIntentViewSchema,
|
|
60
|
+
CheckoutTermsViewSchema,
|
|
61
|
+
ConfirmPurchaseIntentRequestSchema,
|
|
62
|
+
PreparePurchaseIntentRequestSchema,
|
|
63
|
+
SubmitPurchaseIntentActionRequestSchema,
|
|
64
|
+
ConfirmPurchaseIntentResponseSchema
|
|
51
65
|
]) {
|
|
52
66
|
const meta = cimplifyRegistry.get(schema);
|
|
53
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-D9iSVxt5.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-D9iSVxt5.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';
|