@cimplify/sdk 0.110.2 → 0.111.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +54 -0
- package/README.md +18 -0
- package/dist/advanced.d.mts +4 -4
- package/dist/advanced.d.ts +4 -4
- package/dist/advanced.js +22 -22
- package/dist/advanced.mjs +3 -3
- package/dist/{catalogue-OTuS5zp-.d.ts → catalogue-1QcoGDO6.d.ts} +2 -2
- package/dist/{catalogue-CPTMyBUz.d.mts → catalogue-FdFQiWrU.d.mts} +2 -2
- package/dist/{chunk-SYEO2WV4.mjs → chunk-42JTCWIE.mjs} +3 -3
- package/dist/{chunk-OMTVH334.js → chunk-6QANXRUM.js} +203 -186
- package/dist/{chunk-6ETDAU62.mjs → chunk-B45X3HPO.mjs} +98 -39
- package/dist/{chunk-MKIJQL5Q.js → chunk-CJVEJPIG.js} +69 -69
- package/dist/{chunk-Q2Y3VMKH.js → chunk-ETZDIISN.js} +151 -151
- package/dist/{chunk-GCKWKLZF.mjs → chunk-FT6GFYJL.mjs} +17 -3
- package/dist/{chunk-A36JRXXH.mjs → chunk-KWZHIPRN.mjs} +26 -9
- package/dist/{chunk-SNNEOS5Z.js → chunk-MHDUUSG6.js} +75 -75
- package/dist/{chunk-UCR5HRYM.js → chunk-NFXCKTE2.js} +17 -3
- package/dist/{chunk-DFZWHNRG.js → chunk-QOCHWR4V.js} +105 -42
- package/dist/{chunk-IZDWAL53.mjs → chunk-UJDQQTBS.mjs} +8 -8
- package/dist/{chunk-BTUSVHIE.mjs → chunk-WLSU5QJT.mjs} +2 -2
- package/dist/{client-dqOhP9Nc.d.ts → client-CChON4-x.d.ts} +2 -2
- package/dist/{client-CX_WR0-J.d.mts → client-EeuGm5gj.d.mts} +2 -2
- package/dist/{elements-DdsRig-2.d.mts → elements-ss9xZgRg.d.mts} +27 -1
- package/dist/{elements-DdsRig-2.d.ts → elements-ss9xZgRg.d.ts} +27 -1
- package/dist/index-BB2gjVvA.d.mts +153 -0
- package/dist/index-BEfmBDAH.d.ts +153 -0
- package/dist/{index-B98Xac8e.d.ts → index-DQK8sTfu.d.ts} +2 -2
- package/dist/{index-DbAN_VQE.d.mts → index-DSVkhRmW.d.mts} +2 -2
- package/dist/index.d.mts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +189 -177
- package/dist/index.mjs +8 -8
- package/dist/mock/cli.mjs +25 -10
- package/dist/mock/library.js +25 -10
- package/dist/mock/library.mjs +25 -10
- package/dist/mock/msw.js +25 -10
- package/dist/mock/msw.mjs +25 -10
- package/dist/{price-BOzexBww.d.mts → price-B-w4PwHm.d.mts} +1 -1
- package/dist/{price-C1h9sPxE.d.ts → price-BEvQFNJv.d.ts} +1 -1
- package/dist/react.d.mts +23 -15
- package/dist/react.d.ts +23 -15
- package/dist/react.js +254 -237
- package/dist/react.mjs +128 -111
- package/dist/{scheduling-D2ajXpMC.d.ts → scheduling-D9WwOxbo.d.ts} +1 -1
- package/dist/{scheduling-DSRbbaZb.d.mts → scheduling-DDmrYCr-.d.mts} +1 -1
- package/dist/{server-D29IIuDV.d.ts → server-BiKwxvnf.d.ts} +2 -2
- package/dist/{server-DQMWPnc8.d.mts → server-DPdtl2dd.d.mts} +2 -2
- package/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +10 -10
- package/dist/server.mjs +4 -4
- package/dist/styles.css +1 -1
- package/dist/testing/msw.d.mts +3 -3
- package/dist/testing/msw.d.ts +3 -3
- package/dist/testing/msw.js +3 -3
- package/dist/testing/msw.mjs +2 -2
- package/dist/testing/suite.d.mts +6 -6
- package/dist/testing/suite.d.ts +6 -6
- package/dist/testing/suite.js +25 -25
- package/dist/testing/suite.mjs +6 -6
- package/dist/testing.d.mts +5 -5
- package/dist/testing.d.ts +5 -5
- package/dist/testing.js +117 -117
- package/dist/testing.mjs +7 -7
- package/dist/utils.d.mts +3 -3
- package/dist/utils.d.ts +3 -3
- package/dist/utils.js +44 -32
- package/dist/utils.mjs +2 -2
- package/package.json +5 -3
- package/registry/cart-summary.json +1 -1
- package/registry/chat-widget.json +1 -1
- package/registry/price.json +1 -1
- package/registry/product-customizer.json +1 -1
- package/registry/search-input.json +1 -1
- package/dist/index-6gkHMGAq.d.mts +0 -86
- package/dist/index-B_ByTtIT.d.ts +0 -86
package/dist/testing.js
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunkCJVEJPIG_js = require('./chunk-CJVEJPIG.js');
|
|
4
|
+
require('./chunk-MHDUUSG6.js');
|
|
5
5
|
require('./chunk-AWPV33OO.js');
|
|
6
|
-
require('./chunk-
|
|
6
|
+
require('./chunk-ETZDIISN.js');
|
|
7
7
|
require('./chunk-WOF3AD3J.js');
|
|
8
|
-
require('./chunk-
|
|
8
|
+
require('./chunk-6QANXRUM.js');
|
|
9
9
|
require('./chunk-GTJWQAGU.js');
|
|
10
|
-
require('./chunk-
|
|
11
|
-
require('./chunk-
|
|
10
|
+
require('./chunk-QOCHWR4V.js');
|
|
11
|
+
require('./chunk-NFXCKTE2.js');
|
|
12
12
|
require('./chunk-JGBCIKJV.js');
|
|
13
13
|
var zod = require('zod');
|
|
14
14
|
|
|
15
15
|
var PUBLIC_SCHEMAS = {
|
|
16
|
-
Brand:
|
|
17
|
-
AddItemPayload:
|
|
18
|
-
Cart:
|
|
19
|
-
CartItem:
|
|
20
|
-
CartPricing:
|
|
21
|
-
CheckoutBody:
|
|
22
|
-
CheckoutResponse:
|
|
23
|
-
VariantInfo:
|
|
24
|
-
VerifyOtpRequest:
|
|
25
|
-
RequestOtpResponse:
|
|
26
|
-
MintPurchaseIntentRequest:
|
|
27
|
-
PurchaseIntentView:
|
|
28
|
-
CheckoutTermsView:
|
|
29
|
-
ConfirmPurchaseIntentRequest:
|
|
30
|
-
PreparePurchaseIntentRequest:
|
|
31
|
-
SubmitPurchaseIntentActionRequest:
|
|
32
|
-
ConfirmPurchaseIntentResponse:
|
|
16
|
+
Brand: chunkCJVEJPIG_js.BrandSchema,
|
|
17
|
+
AddItemPayload: chunkCJVEJPIG_js.AddItemPayloadSchema,
|
|
18
|
+
Cart: chunkCJVEJPIG_js.CartSchema,
|
|
19
|
+
CartItem: chunkCJVEJPIG_js.CartItemSchema,
|
|
20
|
+
CartPricing: chunkCJVEJPIG_js.CartPricingSchema,
|
|
21
|
+
CheckoutBody: chunkCJVEJPIG_js.CheckoutBodySchema,
|
|
22
|
+
CheckoutResponse: chunkCJVEJPIG_js.CheckoutResponseSchema,
|
|
23
|
+
VariantInfo: chunkCJVEJPIG_js.VariantInfoSchema,
|
|
24
|
+
VerifyOtpRequest: chunkCJVEJPIG_js.VerifyOtpRequestSchema,
|
|
25
|
+
RequestOtpResponse: chunkCJVEJPIG_js.RequestOtpResponseSchema,
|
|
26
|
+
MintPurchaseIntentRequest: chunkCJVEJPIG_js.MintPurchaseIntentRequestSchema,
|
|
27
|
+
PurchaseIntentView: chunkCJVEJPIG_js.PurchaseIntentViewSchema,
|
|
28
|
+
CheckoutTermsView: chunkCJVEJPIG_js.CheckoutTermsViewSchema,
|
|
29
|
+
ConfirmPurchaseIntentRequest: chunkCJVEJPIG_js.ConfirmPurchaseIntentRequestSchema,
|
|
30
|
+
PreparePurchaseIntentRequest: chunkCJVEJPIG_js.PreparePurchaseIntentRequestSchema,
|
|
31
|
+
SubmitPurchaseIntentActionRequest: chunkCJVEJPIG_js.SubmitPurchaseIntentActionRequestSchema,
|
|
32
|
+
ConfirmPurchaseIntentResponse: chunkCJVEJPIG_js.ConfirmPurchaseIntentResponseSchema
|
|
33
33
|
};
|
|
34
34
|
function exportJsonSchemas() {
|
|
35
35
|
let out = {};
|
|
36
36
|
for (let [name, schema] of Object.entries(PUBLIC_SCHEMAS)) {
|
|
37
|
-
let meta =
|
|
37
|
+
let meta = chunkCJVEJPIG_js.cimplifyRegistry.get(schema), json = zod.z.toJSONSchema(schema, { metadata: chunkCJVEJPIG_js.cimplifyRegistry });
|
|
38
38
|
meta && (json.$id = meta.id, json["x-cimplify-version"] = meta.version), out[name] = json;
|
|
39
39
|
}
|
|
40
40
|
return out;
|
|
@@ -42,25 +42,25 @@ function exportJsonSchemas() {
|
|
|
42
42
|
function listRegisteredSchemas() {
|
|
43
43
|
let entries = [];
|
|
44
44
|
for (let schema of [
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
45
|
+
chunkCJVEJPIG_js.BrandSchema,
|
|
46
|
+
chunkCJVEJPIG_js.AddItemPayloadSchema,
|
|
47
|
+
chunkCJVEJPIG_js.CartSchema,
|
|
48
|
+
chunkCJVEJPIG_js.CartItemSchema,
|
|
49
|
+
chunkCJVEJPIG_js.CartPricingSchema,
|
|
50
|
+
chunkCJVEJPIG_js.CheckoutBodySchema,
|
|
51
|
+
chunkCJVEJPIG_js.CheckoutResponseSchema,
|
|
52
|
+
chunkCJVEJPIG_js.VariantInfoSchema,
|
|
53
|
+
chunkCJVEJPIG_js.VerifyOtpRequestSchema,
|
|
54
|
+
chunkCJVEJPIG_js.RequestOtpResponseSchema,
|
|
55
|
+
chunkCJVEJPIG_js.MintPurchaseIntentRequestSchema,
|
|
56
|
+
chunkCJVEJPIG_js.PurchaseIntentViewSchema,
|
|
57
|
+
chunkCJVEJPIG_js.CheckoutTermsViewSchema,
|
|
58
|
+
chunkCJVEJPIG_js.ConfirmPurchaseIntentRequestSchema,
|
|
59
|
+
chunkCJVEJPIG_js.PreparePurchaseIntentRequestSchema,
|
|
60
|
+
chunkCJVEJPIG_js.SubmitPurchaseIntentActionRequestSchema,
|
|
61
|
+
chunkCJVEJPIG_js.ConfirmPurchaseIntentResponseSchema
|
|
62
62
|
]) {
|
|
63
|
-
let meta =
|
|
63
|
+
let meta = chunkCJVEJPIG_js.cimplifyRegistry.get(schema);
|
|
64
64
|
meta && entries.push({ schema, meta });
|
|
65
65
|
}
|
|
66
66
|
return entries;
|
|
@@ -68,303 +68,303 @@ function listRegisteredSchemas() {
|
|
|
68
68
|
|
|
69
69
|
Object.defineProperty(exports, "AddItemPayloadSchema", {
|
|
70
70
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkCJVEJPIG_js.AddItemPayloadSchema; }
|
|
72
72
|
});
|
|
73
73
|
Object.defineProperty(exports, "AddOnDetailsSchema", {
|
|
74
74
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkCJVEJPIG_js.AddOnDetailsSchema; }
|
|
76
76
|
});
|
|
77
77
|
Object.defineProperty(exports, "AddOnGroupDetailsSchema", {
|
|
78
78
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkCJVEJPIG_js.AddOnGroupDetailsSchema; }
|
|
80
80
|
});
|
|
81
81
|
Object.defineProperty(exports, "AddOnInDetailsSchema", {
|
|
82
82
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunkCJVEJPIG_js.AddOnInDetailsSchema; }
|
|
84
84
|
});
|
|
85
85
|
Object.defineProperty(exports, "AddOnOptionDetailsSchema", {
|
|
86
86
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunkCJVEJPIG_js.AddOnOptionDetailsSchema; }
|
|
88
88
|
});
|
|
89
89
|
Object.defineProperty(exports, "AuthorizationTypeSchema", {
|
|
90
90
|
enumerable: true,
|
|
91
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunkCJVEJPIG_js.AuthorizationTypeSchema; }
|
|
92
92
|
});
|
|
93
93
|
Object.defineProperty(exports, "BrandContactSchema", {
|
|
94
94
|
enumerable: true,
|
|
95
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunkCJVEJPIG_js.BrandContactSchema; }
|
|
96
96
|
});
|
|
97
97
|
Object.defineProperty(exports, "BrandFaqSchema", {
|
|
98
98
|
enumerable: true,
|
|
99
|
-
get: function () { return
|
|
99
|
+
get: function () { return chunkCJVEJPIG_js.BrandFaqSchema; }
|
|
100
100
|
});
|
|
101
101
|
Object.defineProperty(exports, "BrandHeroSchema", {
|
|
102
102
|
enumerable: true,
|
|
103
|
-
get: function () { return
|
|
103
|
+
get: function () { return chunkCJVEJPIG_js.BrandHeroSchema; }
|
|
104
104
|
});
|
|
105
105
|
Object.defineProperty(exports, "BrandNavLinkSchema", {
|
|
106
106
|
enumerable: true,
|
|
107
|
-
get: function () { return
|
|
107
|
+
get: function () { return chunkCJVEJPIG_js.BrandNavLinkSchema; }
|
|
108
108
|
});
|
|
109
109
|
Object.defineProperty(exports, "BrandPolicyPageSchema", {
|
|
110
110
|
enumerable: true,
|
|
111
|
-
get: function () { return
|
|
111
|
+
get: function () { return chunkCJVEJPIG_js.BrandPolicyPageSchema; }
|
|
112
112
|
});
|
|
113
113
|
Object.defineProperty(exports, "BrandPolicySectionSchema", {
|
|
114
114
|
enumerable: true,
|
|
115
|
-
get: function () { return
|
|
115
|
+
get: function () { return chunkCJVEJPIG_js.BrandPolicySectionSchema; }
|
|
116
116
|
});
|
|
117
117
|
Object.defineProperty(exports, "BrandSchema", {
|
|
118
118
|
enumerable: true,
|
|
119
|
-
get: function () { return
|
|
119
|
+
get: function () { return chunkCJVEJPIG_js.BrandSchema; }
|
|
120
120
|
});
|
|
121
121
|
Object.defineProperty(exports, "BrandSocialSchema", {
|
|
122
122
|
enumerable: true,
|
|
123
|
-
get: function () { return
|
|
123
|
+
get: function () { return chunkCJVEJPIG_js.BrandSocialSchema; }
|
|
124
124
|
});
|
|
125
125
|
Object.defineProperty(exports, "BundleResolvedSchema", {
|
|
126
126
|
enumerable: true,
|
|
127
|
-
get: function () { return
|
|
127
|
+
get: function () { return chunkCJVEJPIG_js.BundleResolvedSchema; }
|
|
128
128
|
});
|
|
129
129
|
Object.defineProperty(exports, "BundleSelectionInputSchema", {
|
|
130
130
|
enumerable: true,
|
|
131
|
-
get: function () { return
|
|
131
|
+
get: function () { return chunkCJVEJPIG_js.BundleSelectionInputSchema; }
|
|
132
132
|
});
|
|
133
133
|
Object.defineProperty(exports, "CartItemSchema", {
|
|
134
134
|
enumerable: true,
|
|
135
|
-
get: function () { return
|
|
135
|
+
get: function () { return chunkCJVEJPIG_js.CartItemSchema; }
|
|
136
136
|
});
|
|
137
137
|
Object.defineProperty(exports, "CartPricingSchema", {
|
|
138
138
|
enumerable: true,
|
|
139
|
-
get: function () { return
|
|
139
|
+
get: function () { return chunkCJVEJPIG_js.CartPricingSchema; }
|
|
140
140
|
});
|
|
141
141
|
Object.defineProperty(exports, "CartSchema", {
|
|
142
142
|
enumerable: true,
|
|
143
|
-
get: function () { return
|
|
143
|
+
get: function () { return chunkCJVEJPIG_js.CartSchema; }
|
|
144
144
|
});
|
|
145
145
|
Object.defineProperty(exports, "CheckoutBodySchema", {
|
|
146
146
|
enumerable: true,
|
|
147
|
-
get: function () { return
|
|
147
|
+
get: function () { return chunkCJVEJPIG_js.CheckoutBodySchema; }
|
|
148
148
|
});
|
|
149
149
|
Object.defineProperty(exports, "CheckoutCustomerSchema", {
|
|
150
150
|
enumerable: true,
|
|
151
|
-
get: function () { return
|
|
151
|
+
get: function () { return chunkCJVEJPIG_js.CheckoutCustomerSchema; }
|
|
152
152
|
});
|
|
153
153
|
Object.defineProperty(exports, "CheckoutResponseSchema", {
|
|
154
154
|
enumerable: true,
|
|
155
|
-
get: function () { return
|
|
155
|
+
get: function () { return chunkCJVEJPIG_js.CheckoutResponseSchema; }
|
|
156
156
|
});
|
|
157
157
|
Object.defineProperty(exports, "CheckoutTermsViewSchema", {
|
|
158
158
|
enumerable: true,
|
|
159
|
-
get: function () { return
|
|
159
|
+
get: function () { return chunkCJVEJPIG_js.CheckoutTermsViewSchema; }
|
|
160
160
|
});
|
|
161
161
|
Object.defineProperty(exports, "ChosenPriceSchema", {
|
|
162
162
|
enumerable: true,
|
|
163
|
-
get: function () { return
|
|
163
|
+
get: function () { return chunkCJVEJPIG_js.ChosenPriceSchema; }
|
|
164
164
|
});
|
|
165
165
|
Object.defineProperty(exports, "CompositeResolvedSchema", {
|
|
166
166
|
enumerable: true,
|
|
167
|
-
get: function () { return
|
|
167
|
+
get: function () { return chunkCJVEJPIG_js.CompositeResolvedSchema; }
|
|
168
168
|
});
|
|
169
169
|
Object.defineProperty(exports, "CompositeSelectionInputSchema", {
|
|
170
170
|
enumerable: true,
|
|
171
|
-
get: function () { return
|
|
171
|
+
get: function () { return chunkCJVEJPIG_js.CompositeSelectionInputSchema; }
|
|
172
172
|
});
|
|
173
173
|
Object.defineProperty(exports, "ConfirmPurchaseIntentRequestSchema", {
|
|
174
174
|
enumerable: true,
|
|
175
|
-
get: function () { return
|
|
175
|
+
get: function () { return chunkCJVEJPIG_js.ConfirmPurchaseIntentRequestSchema; }
|
|
176
176
|
});
|
|
177
177
|
Object.defineProperty(exports, "ConfirmPurchaseIntentResponseSchema", {
|
|
178
178
|
enumerable: true,
|
|
179
|
-
get: function () { return
|
|
179
|
+
get: function () { return chunkCJVEJPIG_js.ConfirmPurchaseIntentResponseSchema; }
|
|
180
180
|
});
|
|
181
181
|
Object.defineProperty(exports, "CountryCodeSchema", {
|
|
182
182
|
enumerable: true,
|
|
183
|
-
get: function () { return
|
|
183
|
+
get: function () { return chunkCJVEJPIG_js.CountryCodeSchema; }
|
|
184
184
|
});
|
|
185
185
|
Object.defineProperty(exports, "CurrencyCodeSchema", {
|
|
186
186
|
enumerable: true,
|
|
187
|
-
get: function () { return
|
|
187
|
+
get: function () { return chunkCJVEJPIG_js.CurrencyCodeSchema; }
|
|
188
188
|
});
|
|
189
189
|
Object.defineProperty(exports, "CustomerInputValueSchema", {
|
|
190
190
|
enumerable: true,
|
|
191
|
-
get: function () { return
|
|
191
|
+
get: function () { return chunkCJVEJPIG_js.CustomerInputValueSchema; }
|
|
192
192
|
});
|
|
193
193
|
Object.defineProperty(exports, "DiscountDetailsSchema", {
|
|
194
194
|
enumerable: true,
|
|
195
|
-
get: function () { return
|
|
195
|
+
get: function () { return chunkCJVEJPIG_js.DiscountDetailsSchema; }
|
|
196
196
|
});
|
|
197
197
|
Object.defineProperty(exports, "IsoDateTimeSchema", {
|
|
198
198
|
enumerable: true,
|
|
199
|
-
get: function () { return
|
|
199
|
+
get: function () { return chunkCJVEJPIG_js.IsoDateTimeSchema; }
|
|
200
200
|
});
|
|
201
201
|
Object.defineProperty(exports, "LineTypeSchema", {
|
|
202
202
|
enumerable: true,
|
|
203
|
-
get: function () { return
|
|
203
|
+
get: function () { return chunkCJVEJPIG_js.LineTypeSchema; }
|
|
204
204
|
});
|
|
205
205
|
Object.defineProperty(exports, "LocaleSchema", {
|
|
206
206
|
enumerable: true,
|
|
207
|
-
get: function () { return
|
|
207
|
+
get: function () { return chunkCJVEJPIG_js.LocaleSchema; }
|
|
208
208
|
});
|
|
209
209
|
Object.defineProperty(exports, "MintPurchaseIntentRequestSchema", {
|
|
210
210
|
enumerable: true,
|
|
211
|
-
get: function () { return
|
|
211
|
+
get: function () { return chunkCJVEJPIG_js.MintPurchaseIntentRequestSchema; }
|
|
212
212
|
});
|
|
213
213
|
Object.defineProperty(exports, "MoneyLooseSchema", {
|
|
214
214
|
enumerable: true,
|
|
215
|
-
get: function () { return
|
|
215
|
+
get: function () { return chunkCJVEJPIG_js.MoneyLooseSchema; }
|
|
216
216
|
});
|
|
217
217
|
Object.defineProperty(exports, "MoneySchema", {
|
|
218
218
|
enumerable: true,
|
|
219
|
-
get: function () { return
|
|
219
|
+
get: function () { return chunkCJVEJPIG_js.MoneySchema; }
|
|
220
220
|
});
|
|
221
221
|
Object.defineProperty(exports, "NextActionSchema", {
|
|
222
222
|
enumerable: true,
|
|
223
|
-
get: function () { return
|
|
223
|
+
get: function () { return chunkCJVEJPIG_js.NextActionSchema; }
|
|
224
224
|
});
|
|
225
225
|
Object.defineProperty(exports, "PhoneE164Schema", {
|
|
226
226
|
enumerable: true,
|
|
227
|
-
get: function () { return
|
|
227
|
+
get: function () { return chunkCJVEJPIG_js.PhoneE164Schema; }
|
|
228
228
|
});
|
|
229
229
|
Object.defineProperty(exports, "PreparePurchaseIntentRequestSchema", {
|
|
230
230
|
enumerable: true,
|
|
231
|
-
get: function () { return
|
|
231
|
+
get: function () { return chunkCJVEJPIG_js.PreparePurchaseIntentRequestSchema; }
|
|
232
232
|
});
|
|
233
233
|
Object.defineProperty(exports, "ProductTypeSchema", {
|
|
234
234
|
enumerable: true,
|
|
235
|
-
get: function () { return
|
|
235
|
+
get: function () { return chunkCJVEJPIG_js.ProductTypeSchema; }
|
|
236
236
|
});
|
|
237
237
|
Object.defineProperty(exports, "PurchaseIntentSourceInputSchema", {
|
|
238
238
|
enumerable: true,
|
|
239
|
-
get: function () { return
|
|
239
|
+
get: function () { return chunkCJVEJPIG_js.PurchaseIntentSourceInputSchema; }
|
|
240
240
|
});
|
|
241
241
|
Object.defineProperty(exports, "PurchaseIntentTenderPreferenceSchema", {
|
|
242
242
|
enumerable: true,
|
|
243
|
-
get: function () { return
|
|
243
|
+
get: function () { return chunkCJVEJPIG_js.PurchaseIntentTenderPreferenceSchema; }
|
|
244
244
|
});
|
|
245
245
|
Object.defineProperty(exports, "PurchaseIntentViewSchema", {
|
|
246
246
|
enumerable: true,
|
|
247
|
-
get: function () { return
|
|
247
|
+
get: function () { return chunkCJVEJPIG_js.PurchaseIntentViewSchema; }
|
|
248
248
|
});
|
|
249
249
|
Object.defineProperty(exports, "RequestOtpResponseSchema", {
|
|
250
250
|
enumerable: true,
|
|
251
|
-
get: function () { return
|
|
251
|
+
get: function () { return chunkCJVEJPIG_js.RequestOtpResponseSchema; }
|
|
252
252
|
});
|
|
253
253
|
Object.defineProperty(exports, "SchemaViolationError", {
|
|
254
254
|
enumerable: true,
|
|
255
|
-
get: function () { return
|
|
255
|
+
get: function () { return chunkCJVEJPIG_js.SchemaViolationError; }
|
|
256
256
|
});
|
|
257
257
|
Object.defineProperty(exports, "SeedNameSchema", {
|
|
258
258
|
enumerable: true,
|
|
259
|
-
get: function () { return
|
|
259
|
+
get: function () { return chunkCJVEJPIG_js.SeedNameSchema; }
|
|
260
260
|
});
|
|
261
261
|
Object.defineProperty(exports, "SelectedAddOnOptionSchema", {
|
|
262
262
|
enumerable: true,
|
|
263
|
-
get: function () { return
|
|
263
|
+
get: function () { return chunkCJVEJPIG_js.SelectedAddOnOptionSchema; }
|
|
264
264
|
});
|
|
265
265
|
Object.defineProperty(exports, "ServiceStatusSchema", {
|
|
266
266
|
enumerable: true,
|
|
267
|
-
get: function () { return
|
|
267
|
+
get: function () { return chunkCJVEJPIG_js.ServiceStatusSchema; }
|
|
268
268
|
});
|
|
269
269
|
Object.defineProperty(exports, "SubmitPurchaseIntentActionRequestSchema", {
|
|
270
270
|
enumerable: true,
|
|
271
|
-
get: function () { return
|
|
271
|
+
get: function () { return chunkCJVEJPIG_js.SubmitPurchaseIntentActionRequestSchema; }
|
|
272
272
|
});
|
|
273
273
|
Object.defineProperty(exports, "TaxPriceDisplayModeSchema", {
|
|
274
274
|
enumerable: true,
|
|
275
|
-
get: function () { return
|
|
275
|
+
get: function () { return chunkCJVEJPIG_js.TaxPriceDisplayModeSchema; }
|
|
276
276
|
});
|
|
277
277
|
Object.defineProperty(exports, "TimestampSchema", {
|
|
278
278
|
enumerable: true,
|
|
279
|
-
get: function () { return
|
|
279
|
+
get: function () { return chunkCJVEJPIG_js.TimestampSchema; }
|
|
280
280
|
});
|
|
281
281
|
Object.defineProperty(exports, "VariantDetailsSchema", {
|
|
282
282
|
enumerable: true,
|
|
283
|
-
get: function () { return
|
|
283
|
+
get: function () { return chunkCJVEJPIG_js.VariantDetailsSchema; }
|
|
284
284
|
});
|
|
285
285
|
Object.defineProperty(exports, "VariantDisplayAttributeSchema", {
|
|
286
286
|
enumerable: true,
|
|
287
|
-
get: function () { return
|
|
287
|
+
get: function () { return chunkCJVEJPIG_js.VariantDisplayAttributeSchema; }
|
|
288
288
|
});
|
|
289
289
|
Object.defineProperty(exports, "VariantInfoSchema", {
|
|
290
290
|
enumerable: true,
|
|
291
|
-
get: function () { return
|
|
291
|
+
get: function () { return chunkCJVEJPIG_js.VariantInfoSchema; }
|
|
292
292
|
});
|
|
293
293
|
Object.defineProperty(exports, "VerifyOtpRequestSchema", {
|
|
294
294
|
enumerable: true,
|
|
295
|
-
get: function () { return
|
|
295
|
+
get: function () { return chunkCJVEJPIG_js.VerifyOtpRequestSchema; }
|
|
296
296
|
});
|
|
297
297
|
Object.defineProperty(exports, "assertAddItemPayload", {
|
|
298
298
|
enumerable: true,
|
|
299
|
-
get: function () { return
|
|
299
|
+
get: function () { return chunkCJVEJPIG_js.assertAddItemPayload; }
|
|
300
300
|
});
|
|
301
301
|
Object.defineProperty(exports, "assertBrand", {
|
|
302
302
|
enumerable: true,
|
|
303
|
-
get: function () { return
|
|
303
|
+
get: function () { return chunkCJVEJPIG_js.assertBrand; }
|
|
304
304
|
});
|
|
305
305
|
Object.defineProperty(exports, "assertCart", {
|
|
306
306
|
enumerable: true,
|
|
307
|
-
get: function () { return
|
|
307
|
+
get: function () { return chunkCJVEJPIG_js.assertCart; }
|
|
308
308
|
});
|
|
309
309
|
Object.defineProperty(exports, "assertCartItem", {
|
|
310
310
|
enumerable: true,
|
|
311
|
-
get: function () { return
|
|
311
|
+
get: function () { return chunkCJVEJPIG_js.assertCartItem; }
|
|
312
312
|
});
|
|
313
313
|
Object.defineProperty(exports, "assertCheckoutBody", {
|
|
314
314
|
enumerable: true,
|
|
315
|
-
get: function () { return
|
|
315
|
+
get: function () { return chunkCJVEJPIG_js.assertCheckoutBody; }
|
|
316
316
|
});
|
|
317
317
|
Object.defineProperty(exports, "assertCheckoutResponse", {
|
|
318
318
|
enumerable: true,
|
|
319
|
-
get: function () { return
|
|
319
|
+
get: function () { return chunkCJVEJPIG_js.assertCheckoutResponse; }
|
|
320
320
|
});
|
|
321
321
|
Object.defineProperty(exports, "assertCheckoutTermsView", {
|
|
322
322
|
enumerable: true,
|
|
323
|
-
get: function () { return
|
|
323
|
+
get: function () { return chunkCJVEJPIG_js.assertCheckoutTermsView; }
|
|
324
324
|
});
|
|
325
325
|
Object.defineProperty(exports, "assertConfirmPurchaseIntentRequest", {
|
|
326
326
|
enumerable: true,
|
|
327
|
-
get: function () { return
|
|
327
|
+
get: function () { return chunkCJVEJPIG_js.assertConfirmPurchaseIntentRequest; }
|
|
328
328
|
});
|
|
329
329
|
Object.defineProperty(exports, "assertConfirmPurchaseIntentResponse", {
|
|
330
330
|
enumerable: true,
|
|
331
|
-
get: function () { return
|
|
331
|
+
get: function () { return chunkCJVEJPIG_js.assertConfirmPurchaseIntentResponse; }
|
|
332
332
|
});
|
|
333
333
|
Object.defineProperty(exports, "assertMintPurchaseIntentRequest", {
|
|
334
334
|
enumerable: true,
|
|
335
|
-
get: function () { return
|
|
335
|
+
get: function () { return chunkCJVEJPIG_js.assertMintPurchaseIntentRequest; }
|
|
336
336
|
});
|
|
337
337
|
Object.defineProperty(exports, "assertPreparePurchaseIntentRequest", {
|
|
338
338
|
enumerable: true,
|
|
339
|
-
get: function () { return
|
|
339
|
+
get: function () { return chunkCJVEJPIG_js.assertPreparePurchaseIntentRequest; }
|
|
340
340
|
});
|
|
341
341
|
Object.defineProperty(exports, "assertPurchaseIntentView", {
|
|
342
342
|
enumerable: true,
|
|
343
|
-
get: function () { return
|
|
343
|
+
get: function () { return chunkCJVEJPIG_js.assertPurchaseIntentView; }
|
|
344
344
|
});
|
|
345
345
|
Object.defineProperty(exports, "assertSubmitPurchaseIntentActionRequest", {
|
|
346
346
|
enumerable: true,
|
|
347
|
-
get: function () { return
|
|
347
|
+
get: function () { return chunkCJVEJPIG_js.assertSubmitPurchaseIntentActionRequest; }
|
|
348
348
|
});
|
|
349
349
|
Object.defineProperty(exports, "cimplifyRegistry", {
|
|
350
350
|
enumerable: true,
|
|
351
|
-
get: function () { return
|
|
351
|
+
get: function () { return chunkCJVEJPIG_js.cimplifyRegistry; }
|
|
352
352
|
});
|
|
353
353
|
Object.defineProperty(exports, "createTestClient", {
|
|
354
354
|
enumerable: true,
|
|
355
|
-
get: function () { return
|
|
355
|
+
get: function () { return chunkCJVEJPIG_js.createTestClient; }
|
|
356
356
|
});
|
|
357
357
|
Object.defineProperty(exports, "fixtures", {
|
|
358
358
|
enumerable: true,
|
|
359
|
-
get: function () { return
|
|
359
|
+
get: function () { return chunkCJVEJPIG_js.fixtures; }
|
|
360
360
|
});
|
|
361
361
|
Object.defineProperty(exports, "makeAssertion", {
|
|
362
362
|
enumerable: true,
|
|
363
|
-
get: function () { return
|
|
363
|
+
get: function () { return chunkCJVEJPIG_js.makeAssertion; }
|
|
364
364
|
});
|
|
365
365
|
Object.defineProperty(exports, "registerSchema", {
|
|
366
366
|
enumerable: true,
|
|
367
|
-
get: function () { return
|
|
367
|
+
get: function () { return chunkCJVEJPIG_js.registerSchema; }
|
|
368
368
|
});
|
|
369
369
|
exports.exportJsonSchemas = exportJsonSchemas;
|
|
370
370
|
exports.listRegisteredSchemas = listRegisteredSchemas;
|
package/dist/testing.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ConfirmPurchaseIntentResponseSchema, SubmitPurchaseIntentActionRequestSchema, PreparePurchaseIntentRequestSchema, ConfirmPurchaseIntentRequestSchema, CheckoutTermsViewSchema, PurchaseIntentViewSchema, MintPurchaseIntentRequestSchema, 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, 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-
|
|
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-42JTCWIE.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-42JTCWIE.mjs';
|
|
3
|
+
import './chunk-UJDQQTBS.mjs';
|
|
4
4
|
import './chunk-76L2V6KD.mjs';
|
|
5
|
-
import './chunk-
|
|
5
|
+
import './chunk-WLSU5QJT.mjs';
|
|
6
6
|
import './chunk-SWX4SALA.mjs';
|
|
7
|
-
import './chunk-
|
|
7
|
+
import './chunk-KWZHIPRN.mjs';
|
|
8
8
|
import './chunk-E6QQKDNE.mjs';
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
9
|
+
import './chunk-B45X3HPO.mjs';
|
|
10
|
+
import './chunk-FT6GFYJL.mjs';
|
|
11
11
|
import './chunk-25T4JHEA.mjs';
|
|
12
12
|
import { z } from 'zod';
|
|
13
13
|
|
package/dist/utils.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as CURRENCY_SYMBOLS, a as CanonicalMobileMoneyProvider, M as MOBILE_MONEY_PROVIDERS, c as canonicalMobileMoneyProvider,
|
|
2
|
-
import './elements-
|
|
3
|
-
import './price-
|
|
1
|
+
export { C as CURRENCY_SYMBOLS, a as CanonicalMobileMoneyProvider, F as FormatCurrencyAmountOptions, M as MOBILE_MONEY_PROVIDERS, b as PRICE_UNAVAILABLE_LABEL, c as canonicalMobileMoneyProvider, d as categorizePaymentError, e as currencyFractionDigits, f as detectMobileMoneyProvider, g as formatCurrencyAmount, h as formatMoney, i as formatNumberCompact, j as formatPrice, k as formatPriceAdjustment, l as formatPriceCompact, n as formatPriceWithTax, o as formatProductPrice, p as getBasePrice, q as getCurrencySymbol, r as getDiscountPercentage, s as getDisplayPrice, t as getMarkupPercentage, v as getProductCurrency, w as getTaxAmount, y as hasTaxInfo, z as isOnSale, A as isPaymentStatusFailure, B as isPaymentStatusRequiresAction, D as isPaymentStatusSuccess, E as isTaxInclusive, G as isValidPhoneForContext, H as normalizePaymentResponse, I as normalizePhoneToE164, J as normalizeStatusResponse, K as parsePrice, L as paymentAuthorizationUrl, N as purchaseIntentMobileMoneyNetwork, O as resolvePhoneCountryCode } from './index-BB2gjVvA.mjs';
|
|
2
|
+
import './elements-ss9xZgRg.mjs';
|
|
3
|
+
import './price-B-w4PwHm.mjs';
|
|
4
4
|
import 'libphonenumber-js';
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as CURRENCY_SYMBOLS, a as CanonicalMobileMoneyProvider, M as MOBILE_MONEY_PROVIDERS, c as canonicalMobileMoneyProvider,
|
|
2
|
-
import './elements-
|
|
3
|
-
import './price-
|
|
1
|
+
export { C as CURRENCY_SYMBOLS, a as CanonicalMobileMoneyProvider, F as FormatCurrencyAmountOptions, M as MOBILE_MONEY_PROVIDERS, b as PRICE_UNAVAILABLE_LABEL, c as canonicalMobileMoneyProvider, d as categorizePaymentError, e as currencyFractionDigits, f as detectMobileMoneyProvider, g as formatCurrencyAmount, h as formatMoney, i as formatNumberCompact, j as formatPrice, k as formatPriceAdjustment, l as formatPriceCompact, n as formatPriceWithTax, o as formatProductPrice, p as getBasePrice, q as getCurrencySymbol, r as getDiscountPercentage, s as getDisplayPrice, t as getMarkupPercentage, v as getProductCurrency, w as getTaxAmount, y as hasTaxInfo, z as isOnSale, A as isPaymentStatusFailure, B as isPaymentStatusRequiresAction, D as isPaymentStatusSuccess, E as isTaxInclusive, G as isValidPhoneForContext, H as normalizePaymentResponse, I as normalizePhoneToE164, J as normalizeStatusResponse, K as parsePrice, L as paymentAuthorizationUrl, N as purchaseIntentMobileMoneyNetwork, O as resolvePhoneCountryCode } from './index-BEfmBDAH.js';
|
|
2
|
+
import './elements-ss9xZgRg.js';
|
|
3
|
+
import './price-BEvQFNJv.js';
|
|
4
4
|
import 'libphonenumber-js';
|