ce-storefront 0.3.9 → 0.3.11
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/docs/sdks/auth/README.md +2 -0
- package/docs/sdks/carts/README.md +22 -12
- package/docs/sdks/cestorefrontuser/README.md +30 -2
- package/docs/sdks/checkout/README.md +4 -0
- package/esm/funcs/cartsAddItem.js +1 -1
- package/esm/funcs/cartsAddItem.js.map +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/lib/config.js.map +1 -1
- package/esm/models/components/anonymoususer.d.ts +14 -14
- package/esm/models/components/anonymoususer.d.ts.map +1 -1
- package/esm/models/components/anonymoususer.js +14 -14
- package/esm/models/components/anonymoususer.js.map +1 -1
- package/esm/models/components/associatedoption.d.ts +4 -102
- package/esm/models/components/associatedoption.d.ts.map +1 -1
- package/esm/models/components/associatedoption.js +4 -82
- package/esm/models/components/associatedoption.js.map +1 -1
- package/esm/models/components/bundleproduct.d.ts +48 -48
- package/esm/models/components/bundleproduct.d.ts.map +1 -1
- package/esm/models/components/bundleproduct.js +46 -50
- package/esm/models/components/bundleproduct.js.map +1 -1
- package/esm/models/components/bundleproductdetail.d.ts +66 -66
- package/esm/models/components/bundleproductdetail.d.ts.map +1 -1
- package/esm/models/components/bundleproductdetail.js +62 -66
- package/esm/models/components/bundleproductdetail.js.map +1 -1
- package/esm/models/components/coloroption.d.ts +72 -0
- package/esm/models/components/coloroption.d.ts.map +1 -0
- package/esm/models/components/coloroption.js +62 -0
- package/esm/models/components/coloroption.js.map +1 -0
- package/esm/models/components/currency.d.ts +6 -6
- package/esm/models/components/currency.d.ts.map +1 -1
- package/esm/models/components/currency.js +6 -6
- package/esm/models/components/currency.js.map +1 -1
- package/esm/models/components/index.d.ts +3 -1
- package/esm/models/components/index.d.ts.map +1 -1
- package/esm/models/components/index.js +3 -1
- package/esm/models/components/index.js.map +1 -1
- package/esm/models/components/notificationpreferences.d.ts +6 -6
- package/esm/models/components/notificationpreferences.d.ts.map +1 -1
- package/esm/models/components/notificationpreferences.js +6 -6
- package/esm/models/components/notificationpreferences.js.map +1 -1
- package/esm/models/components/pagination.d.ts +8 -8
- package/esm/models/components/pagination.d.ts.map +1 -1
- package/esm/models/components/pagination.js +8 -8
- package/esm/models/components/pagination.js.map +1 -1
- package/esm/models/components/productattribute.d.ts +2 -2
- package/esm/models/components/productattribute.d.ts.map +1 -1
- package/esm/models/components/productattribute.js +2 -2
- package/esm/models/components/productattribute.js.map +1 -1
- package/esm/models/components/productcategory.d.ts +20 -20
- package/esm/models/components/productcategory.d.ts.map +1 -1
- package/esm/models/components/productcategory.js +20 -20
- package/esm/models/components/productcategory.js.map +1 -1
- package/esm/models/components/productdetail.d.ts +2 -14
- package/esm/models/components/productdetail.d.ts.map +1 -1
- package/esm/models/components/productdetail.js +4 -18
- package/esm/models/components/productdetail.js.map +1 -1
- package/esm/models/components/productimage.d.ts +14 -14
- package/esm/models/components/productimage.d.ts.map +1 -1
- package/esm/models/components/productimage.js +14 -14
- package/esm/models/components/productimage.js.map +1 -1
- package/esm/models/components/productpricing.d.ts +4 -4
- package/esm/models/components/productpricing.d.ts.map +1 -1
- package/esm/models/components/productpricing.js +4 -4
- package/esm/models/components/productpricing.js.map +1 -1
- package/esm/models/components/productshipping.d.ts +12 -12
- package/esm/models/components/productshipping.d.ts.map +1 -1
- package/esm/models/components/productshipping.js +12 -12
- package/esm/models/components/productshipping.js.map +1 -1
- package/esm/models/components/productvideo.d.ts +16 -16
- package/esm/models/components/productvideo.d.ts.map +1 -1
- package/esm/models/components/productvideo.js +16 -16
- package/esm/models/components/productvideo.js.map +1 -1
- package/esm/models/components/seo.d.ts +8 -8
- package/esm/models/components/seo.d.ts.map +1 -1
- package/esm/models/components/seo.js +8 -8
- package/esm/models/components/seo.js.map +1 -1
- package/esm/models/components/singleproduct.d.ts +18 -18
- package/esm/models/components/singleproduct.d.ts.map +1 -1
- package/esm/models/components/singleproduct.js +18 -18
- package/esm/models/components/singleproduct.js.map +1 -1
- package/esm/models/components/singleproductdetail.d.ts +36 -36
- package/esm/models/components/singleproductdetail.d.ts.map +1 -1
- package/esm/models/components/singleproductdetail.js +34 -34
- package/esm/models/components/singleproductdetail.js.map +1 -1
- package/esm/models/components/singleselectoption.d.ts +42 -0
- package/esm/models/components/singleselectoption.d.ts.map +1 -0
- package/esm/models/components/singleselectoption.js +35 -0
- package/esm/models/components/singleselectoption.js.map +1 -0
- package/esm/models/components/sku.d.ts +30 -30
- package/esm/models/components/sku.d.ts.map +1 -1
- package/esm/models/components/sku.js +28 -30
- package/esm/models/components/sku.js.map +1 -1
- package/esm/models/components/updatecartitem.d.ts +45 -0
- package/esm/models/components/updatecartitem.d.ts.map +1 -0
- package/esm/models/components/updatecartitem.js +46 -0
- package/esm/models/components/updatecartitem.js.map +1 -0
- package/esm/models/components/user.d.ts +116 -26
- package/esm/models/components/user.d.ts.map +1 -1
- package/esm/models/components/user.js +104 -30
- package/esm/models/components/user.js.map +1 -1
- package/esm/models/components/variant.d.ts +15 -12
- package/esm/models/components/variant.d.ts.map +1 -1
- package/esm/models/components/variant.js +12 -12
- package/esm/models/components/variant.js.map +1 -1
- package/esm/models/components/variantdetail.d.ts +41 -38
- package/esm/models/components/variantdetail.d.ts.map +1 -1
- package/esm/models/components/variantdetail.js +36 -36
- package/esm/models/components/variantdetail.js.map +1 -1
- package/esm/models/components/variantoption.d.ts +34 -26
- package/esm/models/components/variantoption.d.ts.map +1 -1
- package/esm/models/components/variantoption.js +32 -45
- package/esm/models/components/variantoption.js.map +1 -1
- package/esm/models/operations/getcrosssell.d.ts +6 -6
- package/esm/models/operations/getcrosssell.d.ts.map +1 -1
- package/esm/models/operations/getcrosssell.js +6 -6
- package/esm/models/operations/getcrosssell.js.map +1 -1
- package/esm/models/operations/getproductscategories.d.ts +4 -4
- package/esm/models/operations/getproductscategories.d.ts.map +1 -1
- package/esm/models/operations/getproductscategories.js +4 -4
- package/esm/models/operations/getproductscategories.js.map +1 -1
- package/esm/models/operations/getproductsidreviews.d.ts +4 -4
- package/esm/models/operations/getproductsidreviews.d.ts.map +1 -1
- package/esm/models/operations/getproductsidreviews.js +4 -4
- package/esm/models/operations/getproductsidreviews.js.map +1 -1
- package/esm/models/operations/getsimilar.d.ts +6 -6
- package/esm/models/operations/getsimilar.d.ts.map +1 -1
- package/esm/models/operations/getsimilar.js +6 -6
- package/esm/models/operations/getsimilar.js.map +1 -1
- package/esm/models/operations/getskus.d.ts +4 -4
- package/esm/models/operations/getskus.d.ts.map +1 -1
- package/esm/models/operations/getskus.js +4 -4
- package/esm/models/operations/getskus.js.map +1 -1
- package/esm/models/operations/getupsell.d.ts +6 -6
- package/esm/models/operations/getupsell.d.ts.map +1 -1
- package/esm/models/operations/getupsell.js +6 -6
- package/esm/models/operations/getupsell.js.map +1 -1
- package/esm/models/operations/postauthanonymous.d.ts +12 -12
- package/esm/models/operations/postauthanonymous.d.ts.map +1 -1
- package/esm/models/operations/postauthanonymous.js +12 -12
- package/esm/models/operations/postauthanonymous.js.map +1 -1
- package/esm/models/operations/postauthgenerateotp.d.ts +2 -2
- package/esm/models/operations/postauthgenerateotp.d.ts.map +1 -1
- package/esm/models/operations/postauthgenerateotp.js +2 -2
- package/esm/models/operations/postauthgenerateotp.js.map +1 -1
- package/esm/models/operations/postcartaddress.d.ts +8 -8
- package/esm/models/operations/postcartaddress.d.ts.map +1 -1
- package/esm/models/operations/postcartaddress.js +8 -12
- package/esm/models/operations/postcartaddress.js.map +1 -1
- package/esm/models/operations/postcartitemid.d.ts +2 -35
- package/esm/models/operations/postcartitemid.d.ts.map +1 -1
- package/esm/models/operations/postcartitemid.js +4 -49
- package/esm/models/operations/postcartitemid.js.map +1 -1
- package/esm/models/operations/postcartsid.d.ts +5 -31
- package/esm/models/operations/postcartsid.d.ts.map +1 -1
- package/esm/models/operations/postcartsid.js +2 -41
- package/esm/models/operations/postcartsid.js.map +1 -1
- package/esm/models/operations/postproductsidreviews.d.ts +4 -4
- package/esm/models/operations/postproductsidreviews.d.ts.map +1 -1
- package/esm/models/operations/postproductsidreviews.js +4 -4
- package/esm/models/operations/postproductsidreviews.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/cartsAddItem.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/anonymoususer.ts +28 -28
- package/src/models/components/associatedoption.ts +19 -164
- package/src/models/components/bundleproduct.ts +92 -99
- package/src/models/components/bundleproductdetail.ts +124 -131
- package/src/models/components/coloroption.ts +144 -0
- package/src/models/components/currency.ts +12 -12
- package/src/models/components/index.ts +3 -1
- package/src/models/components/notificationpreferences.ts +12 -12
- package/src/models/components/pagination.ts +16 -16
- package/src/models/components/productattribute.ts +4 -4
- package/src/models/components/productcategory.ts +40 -40
- package/src/models/components/productdetail.ts +7 -37
- package/src/models/components/productimage.ts +28 -28
- package/src/models/components/productpricing.ts +8 -8
- package/src/models/components/productshipping.ts +24 -24
- package/src/models/components/productvideo.ts +32 -32
- package/src/models/components/seo.ts +16 -16
- package/src/models/components/singleproduct.ts +36 -36
- package/src/models/components/singleproductdetail.ts +68 -68
- package/src/models/components/singleselectoption.ts +83 -0
- package/src/models/components/sku.ts +56 -61
- package/src/models/components/updatecartitem.ts +93 -0
- package/src/models/components/user.ts +199 -56
- package/src/models/components/variant.ts +27 -24
- package/src/models/components/variantdetail.ts +75 -72
- package/src/models/components/variantoption.ts +54 -61
- package/src/models/operations/getcrosssell.ts +12 -12
- package/src/models/operations/getproductscategories.ts +8 -8
- package/src/models/operations/getproductsidreviews.ts +8 -8
- package/src/models/operations/getsimilar.ts +12 -12
- package/src/models/operations/getskus.ts +8 -8
- package/src/models/operations/getupsell.ts +12 -12
- package/src/models/operations/postauthanonymous.ts +24 -24
- package/src/models/operations/postauthgenerateotp.ts +4 -4
- package/src/models/operations/postcartaddress.ts +16 -23
- package/src/models/operations/postcartitemid.ts +6 -94
- package/src/models/operations/postcartsid.ts +7 -72
- package/src/models/operations/postproductsidreviews.ts +8 -8
- package/esm/models/components/userinput.d.ts +0 -63
- package/esm/models/components/userinput.d.ts.map +0 -1
- package/esm/models/components/userinput.js +0 -61
- package/esm/models/components/userinput.js.map +0 -1
- package/src/models/components/userinput.ts +0 -130
package/docs/sdks/auth/README.md
CHANGED
|
@@ -890,6 +890,7 @@ const ceStorefront = new CeStorefront({
|
|
|
890
890
|
async function run() {
|
|
891
891
|
const result = await ceStorefront.auth.generateOtp({
|
|
892
892
|
channel: "sms",
|
|
893
|
+
otpAction: "login",
|
|
893
894
|
});
|
|
894
895
|
|
|
895
896
|
// Handle the result
|
|
@@ -916,6 +917,7 @@ const ceStorefront = new CeStorefrontCore({
|
|
|
916
917
|
async function run() {
|
|
917
918
|
const res = await authGenerateOtp(ceStorefront, {
|
|
918
919
|
channel: "sms",
|
|
920
|
+
otpAction: "login",
|
|
919
921
|
});
|
|
920
922
|
|
|
921
923
|
if (!res.ok) {
|
|
@@ -24,7 +24,13 @@ const ceStorefront = new CeStorefront({
|
|
|
24
24
|
});
|
|
25
25
|
|
|
26
26
|
async function run() {
|
|
27
|
-
const result = await ceStorefront.carts.create({
|
|
27
|
+
const result = await ceStorefront.carts.create({
|
|
28
|
+
items: {
|
|
29
|
+
productId: "01H9XYZ12345ABCDE",
|
|
30
|
+
variantId: null,
|
|
31
|
+
quantity: 1,
|
|
32
|
+
},
|
|
33
|
+
});
|
|
28
34
|
|
|
29
35
|
// Handle the result
|
|
30
36
|
console.log(result);
|
|
@@ -48,7 +54,13 @@ const ceStorefront = new CeStorefrontCore({
|
|
|
48
54
|
});
|
|
49
55
|
|
|
50
56
|
async function run() {
|
|
51
|
-
const res = await cartsCreate(ceStorefront, {
|
|
57
|
+
const res = await cartsCreate(ceStorefront, {
|
|
58
|
+
items: {
|
|
59
|
+
productId: "01H9XYZ12345ABCDE",
|
|
60
|
+
variantId: null,
|
|
61
|
+
quantity: 1,
|
|
62
|
+
},
|
|
63
|
+
});
|
|
52
64
|
|
|
53
65
|
if (!res.ok) {
|
|
54
66
|
throw res.error;
|
|
@@ -254,11 +266,10 @@ const ceStorefront = new CeStorefront({
|
|
|
254
266
|
async function run() {
|
|
255
267
|
const result = await ceStorefront.carts.addItem({
|
|
256
268
|
id: "<id>",
|
|
257
|
-
|
|
258
|
-
productId: "
|
|
259
|
-
|
|
260
|
-
quantity:
|
|
261
|
-
onSubscription: false,
|
|
269
|
+
updateCartItem: {
|
|
270
|
+
productId: "01H9XYZ12345ABCDE",
|
|
271
|
+
variantId: null,
|
|
272
|
+
quantity: 1,
|
|
262
273
|
},
|
|
263
274
|
});
|
|
264
275
|
|
|
@@ -286,11 +297,10 @@ const ceStorefront = new CeStorefrontCore({
|
|
|
286
297
|
async function run() {
|
|
287
298
|
const res = await cartsAddItem(ceStorefront, {
|
|
288
299
|
id: "<id>",
|
|
289
|
-
|
|
290
|
-
productId: "
|
|
291
|
-
|
|
292
|
-
quantity:
|
|
293
|
-
onSubscription: false,
|
|
300
|
+
updateCartItem: {
|
|
301
|
+
productId: "01H9XYZ12345ABCDE",
|
|
302
|
+
variantId: null,
|
|
303
|
+
quantity: 1,
|
|
294
304
|
},
|
|
295
305
|
});
|
|
296
306
|
|
|
@@ -109,7 +109,21 @@ const ceStorefront = new CeStorefront({
|
|
|
109
109
|
async function run() {
|
|
110
110
|
const result = await ceStorefront.auth.user.update({
|
|
111
111
|
id: "<id>",
|
|
112
|
-
user: {
|
|
112
|
+
user: {
|
|
113
|
+
firstName: "Ruthe",
|
|
114
|
+
lastName: "Hegmann",
|
|
115
|
+
email: "Lizzie.Wyman@hotmail.com",
|
|
116
|
+
phone: "317-934-7640 x784",
|
|
117
|
+
countryCode: "KZ",
|
|
118
|
+
loginMethods: [
|
|
119
|
+
"email",
|
|
120
|
+
],
|
|
121
|
+
notificationPreferences: {
|
|
122
|
+
transactional: {},
|
|
123
|
+
promotional: {},
|
|
124
|
+
newsletter: {},
|
|
125
|
+
},
|
|
126
|
+
},
|
|
113
127
|
});
|
|
114
128
|
|
|
115
129
|
// Handle the result
|
|
@@ -136,7 +150,21 @@ const ceStorefront = new CeStorefrontCore({
|
|
|
136
150
|
async function run() {
|
|
137
151
|
const res = await authUserUpdate(ceStorefront, {
|
|
138
152
|
id: "<id>",
|
|
139
|
-
user: {
|
|
153
|
+
user: {
|
|
154
|
+
firstName: "Zelma",
|
|
155
|
+
lastName: "Huel",
|
|
156
|
+
email: "Houston_OHara69@gmail.com",
|
|
157
|
+
phone: "1-321-461-2304 x0484",
|
|
158
|
+
countryCode: "PE",
|
|
159
|
+
loginMethods: [
|
|
160
|
+
"whatsapp",
|
|
161
|
+
],
|
|
162
|
+
notificationPreferences: {
|
|
163
|
+
transactional: {},
|
|
164
|
+
promotional: {},
|
|
165
|
+
newsletter: {},
|
|
166
|
+
},
|
|
167
|
+
},
|
|
140
168
|
});
|
|
141
169
|
|
|
142
170
|
if (!res.ok) {
|
|
@@ -30,6 +30,8 @@ const ceStorefront = new CeStorefront({
|
|
|
30
30
|
async function run() {
|
|
31
31
|
const result = await ceStorefront.checkout.updateAddress({
|
|
32
32
|
cartId: "<id>",
|
|
33
|
+
billingAddressId: "<id>",
|
|
34
|
+
shippingAddressId: "<id>",
|
|
33
35
|
});
|
|
34
36
|
|
|
35
37
|
// Handle the result
|
|
@@ -56,6 +58,8 @@ const ceStorefront = new CeStorefrontCore({
|
|
|
56
58
|
async function run() {
|
|
57
59
|
const res = await checkoutUpdateAddress(ceStorefront, {
|
|
58
60
|
cartId: "<id>",
|
|
61
|
+
billingAddressId: "<id>",
|
|
62
|
+
shippingAddressId: "<id>",
|
|
59
63
|
});
|
|
60
64
|
|
|
61
65
|
if (!res.ok) {
|
|
@@ -21,7 +21,7 @@ export async function cartsAddItem(client, request, options) {
|
|
|
21
21
|
return parsed;
|
|
22
22
|
}
|
|
23
23
|
const payload = parsed.value;
|
|
24
|
-
const body = encodeJSON("body", payload.
|
|
24
|
+
const body = encodeJSON("body", payload.UpdateCartItem, { explode: true });
|
|
25
25
|
const pathParams = {
|
|
26
26
|
id: encodeSimple("id", payload.id, {
|
|
27
27
|
explode: false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cartsAddItem.js","sourceRoot":"","sources":["../../src/funcs/cartsAddItem.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAS3C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AAEpD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,YAAY,CAChC,MAAwB,EACxB,OAAyC,EACzC,OAAwB;IAgBxB,MAAM,MAAM,GAAG,SAAS,CACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,oCAAoC,CAAC,KAAK,CAAC,KAAK,CAAC,EACvE,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC;IAC7B,MAAM,IAAI,GAAG,UAAU,CAAC,MAAM,EAAE,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"cartsAddItem.js","sourceRoot":"","sources":["../../src/funcs/cartsAddItem.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,CAAC,MAAM,o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AC;QAC/C,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,UAAU,EAAE,OAAO,CAAC,UAAU;KAC/B,CAAC,CAAC;IACH,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;QACjB,OAAO,QAAQ,CAAC;IAClB,CAAC;IACD,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC;IAEhC,MAAM,cAAc,GAAG;QACrB,QAAQ,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE;KAC/C,CAAC;IAEF,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAa5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,wCAAwC,CAAC,EAChE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,wBAAwB,CAAC,EAC/C,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,0BAA0B,CAAC,EACjD,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,sBAAsB,CAAC,EAC7C,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAC7C,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
package/esm/lib/config.d.ts
CHANGED
|
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
31
31
|
export declare const SDK_METADATA: {
|
|
32
32
|
readonly language: "typescript";
|
|
33
33
|
readonly openapiDocVersion: "1.0";
|
|
34
|
-
readonly sdkVersion: "0.3.
|
|
34
|
+
readonly sdkVersion: "0.3.11";
|
|
35
35
|
readonly genVersion: "2.495.1";
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.3.
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.3.11 2.495.1 1.0 ce-storefront";
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.d.ts.map
|
package/esm/lib/config.js
CHANGED
|
@@ -40,8 +40,8 @@ export function serverURLFromOptions(options) {
|
|
|
40
40
|
export const SDK_METADATA = {
|
|
41
41
|
language: "typescript",
|
|
42
42
|
openapiDocVersion: "1.0",
|
|
43
|
-
sdkVersion: "0.3.
|
|
43
|
+
sdkVersion: "0.3.11",
|
|
44
44
|
genVersion: "2.495.1",
|
|
45
|
-
userAgent: "speakeasy-sdk/typescript 0.3.
|
|
45
|
+
userAgent: "speakeasy-sdk/typescript 0.3.11 2.495.1 1.0 ce-storefront",
|
|
46
46
|
};
|
|
47
47
|
//# sourceMappingURL=config.js.map
|
package/esm/lib/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/lib/config.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,OAAO,EAAU,UAAU,EAAE,MAAM,UAAU,CAAC;AAE9C;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB;;OAEG;IACH,mEAAmE;IACnE;;OAEG;IACH,gEAAgE;CACxD,CAAC;AA0BX,MAAM,UAAU,oBAAoB,CAAC,OAAmB;IACtD,IAAI,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IAElC,MAAM,YAAY,GAAa;QAC7B;YACE,UAAU,EAAE,OAAO,CAAC,OAAO,IAAI,YAAY;SAC5C;QACD;YACE,UAAU,EAAE,OAAO,CAAC,OAAO,IAAI,YAAY;SAC5C;KACF,CAAC;IACF,IAAI,MAAM,GAAW,EAAE,CAAC;IAExB,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,CAAC,CAAC;QACzC,IAAI,SAAS,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AC,wBAAwB,SAAS,EAAE,CAAC,CAAC;QACvD,CAAC;QACD,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;QACxC,MAAM,GAAG,YAAY,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;IACzC,CAAC;IAED,MAAM,CAAC,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC;AAED,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,KAAK;IACxB,UAAU,EAAE,QAAQ;IACpB,UAAU,EAAE,SAAS;IACrB,SAAS,EAAE,2DAA2D;CAC9D,CAAC"}
|
|
@@ -9,27 +9,27 @@ export type AnonymousUser = {
|
|
|
9
9
|
/**
|
|
10
10
|
* Indicates whether the user is anonymous.
|
|
11
11
|
*/
|
|
12
|
-
isAnonymous
|
|
12
|
+
isAnonymous: boolean;
|
|
13
13
|
/**
|
|
14
14
|
* Indicates whether the user is currently logged in.
|
|
15
15
|
*/
|
|
16
|
-
isLoggedIn
|
|
16
|
+
isLoggedIn: boolean;
|
|
17
17
|
/**
|
|
18
18
|
* User’s first name.
|
|
19
19
|
*/
|
|
20
|
-
firstName
|
|
20
|
+
firstName: string | null;
|
|
21
21
|
/**
|
|
22
22
|
* User’s last name.
|
|
23
23
|
*/
|
|
24
|
-
lastName
|
|
24
|
+
lastName: string | null;
|
|
25
25
|
/**
|
|
26
26
|
* 10 digit phone number without country code.
|
|
27
27
|
*/
|
|
28
|
-
phone
|
|
28
|
+
phone: string | null;
|
|
29
29
|
/**
|
|
30
30
|
* User’s email I’d.
|
|
31
31
|
*/
|
|
32
|
-
email
|
|
32
|
+
email: string | null;
|
|
33
33
|
/**
|
|
34
34
|
* Boolean indicating whether the email is verified.
|
|
35
35
|
*/
|
|
@@ -41,7 +41,7 @@ export type AnonymousUser = {
|
|
|
41
41
|
/**
|
|
42
42
|
* URL to the user's profile image.
|
|
43
43
|
*/
|
|
44
|
-
profileImageUrl
|
|
44
|
+
profileImageUrl: string | null;
|
|
45
45
|
/**
|
|
46
46
|
* Timestamps indicate when the user's account was created.
|
|
47
47
|
*/
|
|
@@ -56,15 +56,15 @@ export declare const AnonymousUser$inboundSchema: z.ZodType<AnonymousUser, z.Zod
|
|
|
56
56
|
/** @internal */
|
|
57
57
|
export type AnonymousUser$Outbound = {
|
|
58
58
|
id: string;
|
|
59
|
-
is_anonymous
|
|
60
|
-
is_logged_in
|
|
61
|
-
first_name
|
|
62
|
-
last_name
|
|
63
|
-
phone
|
|
64
|
-
email
|
|
59
|
+
is_anonymous: boolean;
|
|
60
|
+
is_logged_in: boolean;
|
|
61
|
+
first_name: string | null;
|
|
62
|
+
last_name: string | null;
|
|
63
|
+
phone: string | null;
|
|
64
|
+
email: string | null;
|
|
65
65
|
is_email_verified: boolean;
|
|
66
66
|
is_phone_verified: boolean;
|
|
67
|
-
profile_image_url
|
|
67
|
+
profile_image_url: string | null;
|
|
68
68
|
created_at?: string | undefined;
|
|
69
69
|
modified_at?: string | undefined;
|
|
70
70
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"anonymoususer.d.ts","sourceRoot":"","sources":["../../../src/models/components/anonymoususer.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,WAAW,
|
|
1
|
+
{"version":3,"file":"anonymoususer.d.ts","sourceRoot":"","sources":["../../../src/models/components/anonymoususer.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CA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AC;IACrB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAClC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAClD,sBAAsB,EACtB,CAAC,CAAC,UAAU,EACZ,aAAa,CA0Bb,CAAC;AAEH;;;GAGG;AACH,yBAAiB,cAAc,CAAC;IAC9B,6DAA6D;IACtD,MAAM,aAAa,iDAA8B,CAAC;IACzD,8DAA8D;IACvD,MAAM,cAAc,gEAA+B,CAAC;IAC3D,wDAAwD;IACxD,KAAY,QAAQ,GAAG,sBAAsB,CAAC;CAC/C;AAED,wBAAgB,mBAAmB,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,CAExE;AAED,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAMpD"}
|
|
@@ -7,15 +7,15 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
7
7
|
/** @internal */
|
|
8
8
|
export const AnonymousUser$inboundSchema = z.object({
|
|
9
9
|
id: z.string(),
|
|
10
|
-
is_anonymous: z.boolean()
|
|
11
|
-
is_logged_in: z.boolean()
|
|
12
|
-
first_name: z.nullable(z.string())
|
|
13
|
-
last_name: z.nullable(z.string())
|
|
14
|
-
phone: z.nullable(z.string())
|
|
15
|
-
email: z.nullable(z.string())
|
|
10
|
+
is_anonymous: z.boolean(),
|
|
11
|
+
is_logged_in: z.boolean(),
|
|
12
|
+
first_name: z.nullable(z.string()),
|
|
13
|
+
last_name: z.nullable(z.string()),
|
|
14
|
+
phone: z.nullable(z.string()),
|
|
15
|
+
email: z.nullable(z.string()),
|
|
16
16
|
is_email_verified: z.boolean().default(false),
|
|
17
17
|
is_phone_verified: z.boolean().default(false),
|
|
18
|
-
profile_image_url: z.nullable(z.string())
|
|
18
|
+
profile_image_url: z.nullable(z.string()),
|
|
19
19
|
created_at: z.string().optional(),
|
|
20
20
|
modified_at: z.string().optional(),
|
|
21
21
|
}).transform((v) => {
|
|
@@ -34,15 +34,15 @@ export const AnonymousUser$inboundSchema = z.object({
|
|
|
34
34
|
/** @internal */
|
|
35
35
|
export const AnonymousUser$outboundSchema = z.object({
|
|
36
36
|
id: z.string(),
|
|
37
|
-
isAnonymous: z.boolean()
|
|
38
|
-
isLoggedIn: z.boolean()
|
|
39
|
-
firstName: z.nullable(z.string())
|
|
40
|
-
lastName: z.nullable(z.string())
|
|
41
|
-
phone: z.nullable(z.string())
|
|
42
|
-
email: z.nullable(z.string())
|
|
37
|
+
isAnonymous: z.boolean(),
|
|
38
|
+
isLoggedIn: z.boolean(),
|
|
39
|
+
firstName: z.nullable(z.string()),
|
|
40
|
+
lastName: z.nullable(z.string()),
|
|
41
|
+
phone: z.nullable(z.string()),
|
|
42
|
+
email: z.nullable(z.string()),
|
|
43
43
|
isEmailVerified: z.boolean().default(false),
|
|
44
44
|
isPhoneVerified: z.boolean().default(false),
|
|
45
|
-
profileImageUrl: z.nullable(z.string())
|
|
45
|
+
profileImageUrl: z.nullable(z.string()),
|
|
46
46
|
createdAt: z.string().optional(),
|
|
47
47
|
modifiedAt: z.string().optional(),
|
|
48
48
|
}).transform((v) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"anonymoususer.js","sourceRoot":"","sources":["../../../src/models/components/anonymoususer.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAuDjD,gBAAgB;AAChB,MAAM,CAAC,MAAM,2BAA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AAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,WAAW,EAAE,cAAc;QAC3B,UAAU,EAAE,cAAc;QAC1B,SAAS,EAAE,YAAY;QACvB,QAAQ,EAAE,WAAW;QACrB,eAAe,EAAE,mBAAmB;QACpC,eAAe,EAAE,mBAAmB;QACpC,eAAe,EAAE,mBAAmB;QACpC,SAAS,EAAE,YAAY;QACvB,UAAU,EAAE,aAAa;KAC1B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,cAAc,CAO9B;AAPD,WAAiB,cAAc;IAC7B,6DAA6D;IAChD,4BAAa,GAAG,2BAA2B,CAAC;IACzD,8DAA8D;IACjD,6BAAc,GAAG,4BAA4B,CAAC;AAG7D,CAAC,EAPgB,cAAc,KAAd,cAAc,QAO9B;AAED,MAAM,UAAU,mBAAmB,CAAC,aAA4B;IAC9D,OAAO,IAAI,CAAC,SAAS,CAAC,4BAA4B,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;AAC3E,CAAC;AAED,MAAM,UAAU,qBAAqB,CACnC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,2BAA2B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACvD,2CAA2C,CAC5C,CAAC;AACJ,CAAC"}
|
|
@@ -1,111 +1,13 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
3
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
*/
|
|
9
|
-
name?: string | undefined;
|
|
10
|
-
/**
|
|
11
|
-
* The hex code of the color (e.g., #000000).
|
|
12
|
-
*/
|
|
13
|
-
hexcode?: string | undefined;
|
|
14
|
-
};
|
|
15
|
-
export type Value = Color | string;
|
|
16
|
-
/**
|
|
17
|
-
* The type of the associated option.
|
|
18
|
-
*/
|
|
19
|
-
export declare const Type: {
|
|
20
|
-
readonly Color: "color";
|
|
21
|
-
readonly SingleSelect: "single-select";
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* The type of the associated option.
|
|
25
|
-
*/
|
|
26
|
-
export type Type = ClosedEnum<typeof Type>;
|
|
27
|
-
export type AssociatedOption = {
|
|
28
|
-
/**
|
|
29
|
-
* The name of the associated option.
|
|
30
|
-
*/
|
|
31
|
-
name?: string | undefined;
|
|
32
|
-
value?: Color | string | undefined;
|
|
33
|
-
/**
|
|
34
|
-
* The type of the associated option.
|
|
35
|
-
*/
|
|
36
|
-
type?: Type | undefined;
|
|
37
|
-
};
|
|
38
|
-
/** @internal */
|
|
39
|
-
export declare const Color$inboundSchema: z.ZodType<Color, z.ZodTypeDef, unknown>;
|
|
40
|
-
/** @internal */
|
|
41
|
-
export type Color$Outbound = {
|
|
42
|
-
name?: string | undefined;
|
|
43
|
-
hexcode?: string | undefined;
|
|
44
|
-
};
|
|
45
|
-
/** @internal */
|
|
46
|
-
export declare const Color$outboundSchema: z.ZodType<Color$Outbound, z.ZodTypeDef, Color>;
|
|
47
|
-
/**
|
|
48
|
-
* @internal
|
|
49
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
50
|
-
*/
|
|
51
|
-
export declare namespace Color$ {
|
|
52
|
-
/** @deprecated use `Color$inboundSchema` instead. */
|
|
53
|
-
const inboundSchema: z.ZodType<Color, z.ZodTypeDef, unknown>;
|
|
54
|
-
/** @deprecated use `Color$outboundSchema` instead. */
|
|
55
|
-
const outboundSchema: z.ZodType<Color$Outbound, z.ZodTypeDef, Color>;
|
|
56
|
-
/** @deprecated use `Color$Outbound` instead. */
|
|
57
|
-
type Outbound = Color$Outbound;
|
|
58
|
-
}
|
|
59
|
-
export declare function colorToJSON(color: Color): string;
|
|
60
|
-
export declare function colorFromJSON(jsonString: string): SafeParseResult<Color, SDKValidationError>;
|
|
61
|
-
/** @internal */
|
|
62
|
-
export declare const Value$inboundSchema: z.ZodType<Value, z.ZodTypeDef, unknown>;
|
|
63
|
-
/** @internal */
|
|
64
|
-
export type Value$Outbound = Color$Outbound | string;
|
|
65
|
-
/** @internal */
|
|
66
|
-
export declare const Value$outboundSchema: z.ZodType<Value$Outbound, z.ZodTypeDef, Value>;
|
|
67
|
-
/**
|
|
68
|
-
* @internal
|
|
69
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
70
|
-
*/
|
|
71
|
-
export declare namespace Value$ {
|
|
72
|
-
/** @deprecated use `Value$inboundSchema` instead. */
|
|
73
|
-
const inboundSchema: z.ZodType<Value, z.ZodTypeDef, unknown>;
|
|
74
|
-
/** @deprecated use `Value$outboundSchema` instead. */
|
|
75
|
-
const outboundSchema: z.ZodType<Value$Outbound, z.ZodTypeDef, Value>;
|
|
76
|
-
/** @deprecated use `Value$Outbound` instead. */
|
|
77
|
-
type Outbound = Value$Outbound;
|
|
78
|
-
}
|
|
79
|
-
export declare function valueToJSON(value: Value): string;
|
|
80
|
-
export declare function valueFromJSON(jsonString: string): SafeParseResult<Value, SDKValidationError>;
|
|
81
|
-
/** @internal */
|
|
82
|
-
export declare const Type$inboundSchema: z.ZodNativeEnum<typeof Type>;
|
|
83
|
-
/** @internal */
|
|
84
|
-
export declare const Type$outboundSchema: z.ZodNativeEnum<typeof Type>;
|
|
85
|
-
/**
|
|
86
|
-
* @internal
|
|
87
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
88
|
-
*/
|
|
89
|
-
export declare namespace Type$ {
|
|
90
|
-
/** @deprecated use `Type$inboundSchema` instead. */
|
|
91
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
92
|
-
readonly Color: "color";
|
|
93
|
-
readonly SingleSelect: "single-select";
|
|
94
|
-
}>;
|
|
95
|
-
/** @deprecated use `Type$outboundSchema` instead. */
|
|
96
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
97
|
-
readonly Color: "color";
|
|
98
|
-
readonly SingleSelect: "single-select";
|
|
99
|
-
}>;
|
|
100
|
-
}
|
|
4
|
+
import { ColorOption, ColorOption$Outbound } from "./coloroption.js";
|
|
5
|
+
import { SingleSelectOption, SingleSelectOption$Outbound } from "./singleselectoption.js";
|
|
6
|
+
export type AssociatedOption = ColorOption | SingleSelectOption;
|
|
101
7
|
/** @internal */
|
|
102
8
|
export declare const AssociatedOption$inboundSchema: z.ZodType<AssociatedOption, z.ZodTypeDef, unknown>;
|
|
103
9
|
/** @internal */
|
|
104
|
-
export type AssociatedOption$Outbound =
|
|
105
|
-
name?: string | undefined;
|
|
106
|
-
value?: Color$Outbound | string | undefined;
|
|
107
|
-
type?: string | undefined;
|
|
108
|
-
};
|
|
10
|
+
export type AssociatedOption$Outbound = ColorOption$Outbound | SingleSelectOption$Outbound;
|
|
109
11
|
/** @internal */
|
|
110
12
|
export declare const AssociatedOption$outboundSchema: z.ZodType<AssociatedOption$Outbound, z.ZodTypeDef, AssociatedOption>;
|
|
111
13
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"associatedoption.d.ts","sourceRoot":"","sources":["../../../src/models/components/associatedoption.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"associatedoption.d.ts","sourceRoot":"","sources":["../../../src/models/components/associatedoption.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,WAAW,EAEX,oBAAoB,EAErB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,kBAAkB,EAElB,2BAA2B,EAE5B,MAAM,yBAAyB,CAAC;AAEjC,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG,kBAAkB,CAAC;AAEhE,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,gBAAgB,EAChB,CAAC,CAAC,UAAU,EACZ,OAAO,CACiE,CAAC;AAE3E,gBAAgB;AAChB,MAAM,MAAM,yBAAyB,GACjC,oBAAoB,GACpB,2BAA2B,CAAC;AAEhC,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CACrD,yBAAyB,EACzB,CAAC,CAAC,UAAU,EACZ,gBAAgB,CAC0D,CAAC;AAE7E;;;GAGG;AACH,yBAAiB,iBAAiB,CAAC;IACjC,gEAAgE;IACzD,MAAM,aAAa,oDAAiC,CAAC;IAC5D,iEAAiE;IAC1D,MAAM,cAAc,sEAAkC,CAAC;IAC9D,2DAA2D;IAC3D,KAAY,QAAQ,GAAG,yBAAyB,CAAC;CAClD;AAED,wBAAgB,sBAAsB,CACpC,gBAAgB,EAAE,gBAAgB,GACjC,MAAM,CAIR;AAED,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAMvD"}
|
|
@@ -3,90 +3,12 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as z from "zod";
|
|
5
5
|
import { safeParse } from "../../lib/schemas.js";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
*/
|
|
9
|
-
export const Type = {
|
|
10
|
-
Color: "color",
|
|
11
|
-
SingleSelect: "single-select",
|
|
12
|
-
};
|
|
13
|
-
/** @internal */
|
|
14
|
-
export const Color$inboundSchema = z
|
|
15
|
-
.object({
|
|
16
|
-
name: z.string().optional(),
|
|
17
|
-
hexcode: z.string().optional(),
|
|
18
|
-
});
|
|
19
|
-
/** @internal */
|
|
20
|
-
export const Color$outboundSchema = z.object({
|
|
21
|
-
name: z.string().optional(),
|
|
22
|
-
hexcode: z.string().optional(),
|
|
23
|
-
});
|
|
24
|
-
/**
|
|
25
|
-
* @internal
|
|
26
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
27
|
-
*/
|
|
28
|
-
export var Color$;
|
|
29
|
-
(function (Color$) {
|
|
30
|
-
/** @deprecated use `Color$inboundSchema` instead. */
|
|
31
|
-
Color$.inboundSchema = Color$inboundSchema;
|
|
32
|
-
/** @deprecated use `Color$outboundSchema` instead. */
|
|
33
|
-
Color$.outboundSchema = Color$outboundSchema;
|
|
34
|
-
})(Color$ || (Color$ = {}));
|
|
35
|
-
export function colorToJSON(color) {
|
|
36
|
-
return JSON.stringify(Color$outboundSchema.parse(color));
|
|
37
|
-
}
|
|
38
|
-
export function colorFromJSON(jsonString) {
|
|
39
|
-
return safeParse(jsonString, (x) => Color$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Color' from JSON`);
|
|
40
|
-
}
|
|
41
|
-
/** @internal */
|
|
42
|
-
export const Value$inboundSchema = z
|
|
43
|
-
.union([z.lazy(() => Color$inboundSchema), z.string()]);
|
|
44
|
-
/** @internal */
|
|
45
|
-
export const Value$outboundSchema = z.union([z.lazy(() => Color$outboundSchema), z.string()]);
|
|
46
|
-
/**
|
|
47
|
-
* @internal
|
|
48
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
49
|
-
*/
|
|
50
|
-
export var Value$;
|
|
51
|
-
(function (Value$) {
|
|
52
|
-
/** @deprecated use `Value$inboundSchema` instead. */
|
|
53
|
-
Value$.inboundSchema = Value$inboundSchema;
|
|
54
|
-
/** @deprecated use `Value$outboundSchema` instead. */
|
|
55
|
-
Value$.outboundSchema = Value$outboundSchema;
|
|
56
|
-
})(Value$ || (Value$ = {}));
|
|
57
|
-
export function valueToJSON(value) {
|
|
58
|
-
return JSON.stringify(Value$outboundSchema.parse(value));
|
|
59
|
-
}
|
|
60
|
-
export function valueFromJSON(jsonString) {
|
|
61
|
-
return safeParse(jsonString, (x) => Value$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Value' from JSON`);
|
|
62
|
-
}
|
|
63
|
-
/** @internal */
|
|
64
|
-
export const Type$inboundSchema = z.nativeEnum(Type);
|
|
65
|
-
/** @internal */
|
|
66
|
-
export const Type$outboundSchema = Type$inboundSchema;
|
|
67
|
-
/**
|
|
68
|
-
* @internal
|
|
69
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
70
|
-
*/
|
|
71
|
-
export var Type$;
|
|
72
|
-
(function (Type$) {
|
|
73
|
-
/** @deprecated use `Type$inboundSchema` instead. */
|
|
74
|
-
Type$.inboundSchema = Type$inboundSchema;
|
|
75
|
-
/** @deprecated use `Type$outboundSchema` instead. */
|
|
76
|
-
Type$.outboundSchema = Type$outboundSchema;
|
|
77
|
-
})(Type$ || (Type$ = {}));
|
|
6
|
+
import { ColorOption$inboundSchema, ColorOption$outboundSchema, } from "./coloroption.js";
|
|
7
|
+
import { SingleSelectOption$inboundSchema, SingleSelectOption$outboundSchema, } from "./singleselectoption.js";
|
|
78
8
|
/** @internal */
|
|
79
|
-
export const AssociatedOption$inboundSchema = z.
|
|
80
|
-
name: z.string().optional(),
|
|
81
|
-
value: z.union([z.lazy(() => Color$inboundSchema), z.string()]).optional(),
|
|
82
|
-
type: Type$inboundSchema.optional(),
|
|
83
|
-
});
|
|
9
|
+
export const AssociatedOption$inboundSchema = z.union([ColorOption$inboundSchema, SingleSelectOption$inboundSchema]);
|
|
84
10
|
/** @internal */
|
|
85
|
-
export const AssociatedOption$outboundSchema = z.
|
|
86
|
-
name: z.string().optional(),
|
|
87
|
-
value: z.union([z.lazy(() => Color$outboundSchema), z.string()]).optional(),
|
|
88
|
-
type: Type$outboundSchema.optional(),
|
|
89
|
-
});
|
|
11
|
+
export const AssociatedOption$outboundSchema = z.union([ColorOption$outboundSchema, SingleSelectOption$outboundSchema]);
|
|
90
12
|
/**
|
|
91
13
|
* @internal
|
|
92
14
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"associatedoption.js","sourceRoot":"","sources":["../../../src/models/components/associatedoption.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"associatedoption.js","sourceRoot":"","sources":["../../../src/models/components/associatedoption.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,yBAAyB,EAEzB,0BAA0B,GAC3B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAEL,gCAAgC,EAEhC,iCAAiC,GAClC,MAAM,yBAAyB,CAAC;AAIjC,gBAAgB;AAChB,MAAM,CAAC,MAAM,8BAA8B,GAIvC,CAAC,CAAC,KAAK,CAAC,CAAC,yBAAyB,EAAE,gCAAgC,CAAC,CAAC,CAAC;AAO3E,gBAAgB;AAChB,MAAM,CAAC,MAAM,+BAA+B,GAIxC,CAAC,CAAC,KAAK,CAAC,CAAC,0BAA0B,EAAE,iCAAiC,CAAC,CAAC,CAAC;AAE7E;;;GAGG;AACH,MAAM,KAAW,iBAAiB,CAOjC;AAPD,WAAiB,iBAAiB;IAChC,gEAAgE;IACnD,+BAAa,GAAG,8BAA8B,CAAC;IAC5D,iEAAiE;IACpD,gCAAc,GAAG,+BAA+B,CAAC;AAGhE,CAAC,EAPgB,iBAAiB,KAAjB,iBAAiB,QAOjC;AAED,MAAM,UAAU,sBAAsB,CACpC,gBAAkC;IAElC,OAAO,IAAI,CAAC,SAAS,CACnB,+BAA+B,CAAC,KAAK,CAAC,gBAAgB,CAAC,CACxD,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,wBAAwB,CACtC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,8BAA8B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1D,8CAA8C,CAC/C,CAAC;AACJ,CAAC"}
|