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
|
@@ -13,8 +13,8 @@ export type PostProductsIdReviewsRequest = {
|
|
|
13
13
|
* Success response
|
|
14
14
|
*/
|
|
15
15
|
export type PostProductsIdReviewsResponseBody = {
|
|
16
|
-
message
|
|
17
|
-
success
|
|
16
|
+
message: string;
|
|
17
|
+
success: boolean;
|
|
18
18
|
};
|
|
19
19
|
/** @internal */
|
|
20
20
|
export declare const PostProductsIdReviewsRequest$inboundSchema: z.ZodType<PostProductsIdReviewsRequest, z.ZodTypeDef, unknown>;
|
|
@@ -43,8 +43,8 @@ export declare function postProductsIdReviewsRequestFromJSON(jsonString: string)
|
|
|
43
43
|
export declare const PostProductsIdReviewsResponseBody$inboundSchema: z.ZodType<PostProductsIdReviewsResponseBody, z.ZodTypeDef, unknown>;
|
|
44
44
|
/** @internal */
|
|
45
45
|
export type PostProductsIdReviewsResponseBody$Outbound = {
|
|
46
|
-
message
|
|
47
|
-
success
|
|
46
|
+
message: string;
|
|
47
|
+
success: boolean;
|
|
48
48
|
};
|
|
49
49
|
/** @internal */
|
|
50
50
|
export declare const PostProductsIdReviewsResponseBody$outboundSchema: z.ZodType<PostProductsIdReviewsResponseBody$Outbound, z.ZodTypeDef, PostProductsIdReviewsResponseBody>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postproductsidreviews.d.ts","sourceRoot":"","sources":["../../../src/models/operations/postproductsidreviews.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,4BAA4B,GAAG;IACzC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,UAAU,CAAC,YAAY,CAAC;CACvC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,iCAAiC,GAAG;IAC9C,OAAO,
|
|
1
|
+
{"version":3,"file":"postproductsidreviews.d.ts","sourceRoot":"","sources":["../../../src/models/operations/postproductsidreviews.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,4BAA4B,GAAG;IACzC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,UAAU,CAAC,YAAY,CAAC;CACvC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,iCAAiC,GAAG;IAC9C,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,OAAO,CASP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,qCAAqC,GAAG;IAClD,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,UAAU,CAAC,qBAAqB,CAAC;CAChD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2CAA2C,EAAE,CAAC,CAAC,OAAO,CACjE,qCAAqC,EACrC,CAAC,CAAC,UAAU,EACZ,4BAA4B,CAS5B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,6BAA6B,CAAC;IAC7C,4EAA4E;IACrE,MAAM,aAAa,gEAA6C,CAAC;IACxE,6EAA6E;IACtE,MAAM,cAAc,8FAA8C,CAAC;IAC1E,uEAAuE;IACvE,KAAY,QAAQ,GAAG,qCAAqC,CAAC;CAC9D;AAED,wBAAgB,kCAAkC,CAChD,4BAA4B,EAAE,4BAA4B,GACzD,MAAM,CAMR;AAED,wBAAgB,oCAAoC,CAClD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,4BAA4B,EAAE,kBAAkB,CAAC,CAMnE;AAED,gBAAgB;AAChB,eAAO,MAAM,+CAA+C,EAAE,CAAC,CAAC,OAAO,CACrE,iCAAiC,EACjC,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,0CAA0C,GAAG;IACvD,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gDAAgD,EAAE,CAAC,CAAC,OAAO,CACtE,0CAA0C,EAC1C,CAAC,CAAC,UAAU,EACZ,iCAAiC,CAIjC,CAAC;AAEH;;;GAGG;AACH,yBAAiB,kCAAkC,CAAC;IAClD,iFAAiF;IAC1E,MAAM,aAAa,qEAAkD,CAAC;IAC7E,kFAAkF;IAC3E,MAAM,cAAc,wGACuB,CAAC;IACnD,4EAA4E;IAC5E,KAAY,QAAQ,GAAG,0CAA0C,CAAC;CACnE;AAED,wBAAgB,uCAAuC,CACrD,iCAAiC,EAAE,iCAAiC,GACnE,MAAM,CAMR;AAED,wBAAgB,yCAAyC,CACvD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,iCAAiC,EAAE,kBAAkB,CAAC,CAMxE"}
|
|
@@ -44,13 +44,13 @@ export function postProductsIdReviewsRequestFromJSON(jsonString) {
|
|
|
44
44
|
}
|
|
45
45
|
/** @internal */
|
|
46
46
|
export const PostProductsIdReviewsResponseBody$inboundSchema = z.object({
|
|
47
|
-
message: z.string()
|
|
48
|
-
success: z.boolean()
|
|
47
|
+
message: z.string(),
|
|
48
|
+
success: z.boolean(),
|
|
49
49
|
});
|
|
50
50
|
/** @internal */
|
|
51
51
|
export const PostProductsIdReviewsResponseBody$outboundSchema = z.object({
|
|
52
|
-
message: z.string()
|
|
53
|
-
success: z.boolean()
|
|
52
|
+
message: z.string(),
|
|
53
|
+
success: z.boolean(),
|
|
54
54
|
});
|
|
55
55
|
/**
|
|
56
56
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postproductsidreviews.js","sourceRoot":"","sources":["../../../src/models/operations/postproductsidreviews.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;AAEjD,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AAmBrD,gBAAgB;AAChB,MAAM,CAAC,MAAM,0CAA0C,GAInD,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,YAAY,EAAE,UAAU,CAAC,0BAA0B;CACpD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,YAAY,EAAE,WAAW;QACzB,cAAc,EAAE,cAAc;KAC/B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAQH,gBAAgB;AAChB,MAAM,CAAC,MAAM,2CAA2C,GAIpD,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,YAAY,EAAE,UAAU,CAAC,2BAA2B;CACrD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,SAAS,EAAE,YAAY;QACvB,YAAY,EAAE,cAAc;KAC7B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,6BAA6B,CAO7C;AAPD,WAAiB,6BAA6B;IAC5C,4EAA4E;IAC/D,2CAAa,GAAG,0CAA0C,CAAC;IACxE,6EAA6E;IAChE,4CAAc,GAAG,2CAA2C,CAAC;AAG5E,CAAC,EAPgB,6BAA6B,KAA7B,6BAA6B,QAO7C;AAED,MAAM,UAAU,kCAAkC,CAChD,4BAA0D;IAE1D,OAAO,IAAI,CAAC,SAAS,CACnB,2CAA2C,CAAC,KAAK,CAC/C,4BAA4B,CAC7B,CACF,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,oCAAoC,CAClD,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,0CAA0C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACtE,0DAA0D,CAC3D,CAAC;AACJ,CAAC;AAED,gBAAgB;AAChB,MAAM,CAAC,MAAM,+CAA+C,GAIxD,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE
|
|
1
|
+
{"version":3,"file":"postproductsidreviews.js","sourceRoot":"","sources":["../../../src/models/operations/postproductsidreviews.ts"],"names":[],"mappings":"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"}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -57,7 +57,7 @@ export async function cartsAddItem(
|
|
|
57
57
|
return parsed;
|
|
58
58
|
}
|
|
59
59
|
const payload = parsed.value;
|
|
60
|
-
const body = encodeJSON("body", payload.
|
|
60
|
+
const body = encodeJSON("body", payload.UpdateCartItem, { explode: true });
|
|
61
61
|
|
|
62
62
|
const pathParams = {
|
|
63
63
|
id: encodeSimple("id", payload.id, {
|
package/src/lib/config.ts
CHANGED
|
@@ -74,7 +74,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
74
74
|
export const SDK_METADATA = {
|
|
75
75
|
language: "typescript",
|
|
76
76
|
openapiDocVersion: "1.0",
|
|
77
|
-
sdkVersion: "0.3.
|
|
77
|
+
sdkVersion: "0.3.11",
|
|
78
78
|
genVersion: "2.495.1",
|
|
79
|
-
userAgent: "speakeasy-sdk/typescript 0.3.
|
|
79
|
+
userAgent: "speakeasy-sdk/typescript 0.3.11 2.495.1 1.0 ce-storefront",
|
|
80
80
|
} as const;
|
|
@@ -16,27 +16,27 @@ export type AnonymousUser = {
|
|
|
16
16
|
/**
|
|
17
17
|
* Indicates whether the user is anonymous.
|
|
18
18
|
*/
|
|
19
|
-
isAnonymous
|
|
19
|
+
isAnonymous: boolean;
|
|
20
20
|
/**
|
|
21
21
|
* Indicates whether the user is currently logged in.
|
|
22
22
|
*/
|
|
23
|
-
isLoggedIn
|
|
23
|
+
isLoggedIn: boolean;
|
|
24
24
|
/**
|
|
25
25
|
* User’s first name.
|
|
26
26
|
*/
|
|
27
|
-
firstName
|
|
27
|
+
firstName: string | null;
|
|
28
28
|
/**
|
|
29
29
|
* User’s last name.
|
|
30
30
|
*/
|
|
31
|
-
lastName
|
|
31
|
+
lastName: string | null;
|
|
32
32
|
/**
|
|
33
33
|
* 10 digit phone number without country code.
|
|
34
34
|
*/
|
|
35
|
-
phone
|
|
35
|
+
phone: string | null;
|
|
36
36
|
/**
|
|
37
37
|
* User’s email I’d.
|
|
38
38
|
*/
|
|
39
|
-
email
|
|
39
|
+
email: string | null;
|
|
40
40
|
/**
|
|
41
41
|
* Boolean indicating whether the email is verified.
|
|
42
42
|
*/
|
|
@@ -48,7 +48,7 @@ export type AnonymousUser = {
|
|
|
48
48
|
/**
|
|
49
49
|
* URL to the user's profile image.
|
|
50
50
|
*/
|
|
51
|
-
profileImageUrl
|
|
51
|
+
profileImageUrl: string | null;
|
|
52
52
|
/**
|
|
53
53
|
* Timestamps indicate when the user's account was created.
|
|
54
54
|
*/
|
|
@@ -66,15 +66,15 @@ export const AnonymousUser$inboundSchema: z.ZodType<
|
|
|
66
66
|
unknown
|
|
67
67
|
> = z.object({
|
|
68
68
|
id: z.string(),
|
|
69
|
-
is_anonymous: z.boolean()
|
|
70
|
-
is_logged_in: z.boolean()
|
|
71
|
-
first_name: z.nullable(z.string())
|
|
72
|
-
last_name: z.nullable(z.string())
|
|
73
|
-
phone: z.nullable(z.string())
|
|
74
|
-
email: z.nullable(z.string())
|
|
69
|
+
is_anonymous: z.boolean(),
|
|
70
|
+
is_logged_in: z.boolean(),
|
|
71
|
+
first_name: z.nullable(z.string()),
|
|
72
|
+
last_name: z.nullable(z.string()),
|
|
73
|
+
phone: z.nullable(z.string()),
|
|
74
|
+
email: z.nullable(z.string()),
|
|
75
75
|
is_email_verified: z.boolean().default(false),
|
|
76
76
|
is_phone_verified: z.boolean().default(false),
|
|
77
|
-
profile_image_url: z.nullable(z.string())
|
|
77
|
+
profile_image_url: z.nullable(z.string()),
|
|
78
78
|
created_at: z.string().optional(),
|
|
79
79
|
modified_at: z.string().optional(),
|
|
80
80
|
}).transform((v) => {
|
|
@@ -94,15 +94,15 @@ export const AnonymousUser$inboundSchema: z.ZodType<
|
|
|
94
94
|
/** @internal */
|
|
95
95
|
export type AnonymousUser$Outbound = {
|
|
96
96
|
id: string;
|
|
97
|
-
is_anonymous
|
|
98
|
-
is_logged_in
|
|
99
|
-
first_name
|
|
100
|
-
last_name
|
|
101
|
-
phone
|
|
102
|
-
email
|
|
97
|
+
is_anonymous: boolean;
|
|
98
|
+
is_logged_in: boolean;
|
|
99
|
+
first_name: string | null;
|
|
100
|
+
last_name: string | null;
|
|
101
|
+
phone: string | null;
|
|
102
|
+
email: string | null;
|
|
103
103
|
is_email_verified: boolean;
|
|
104
104
|
is_phone_verified: boolean;
|
|
105
|
-
profile_image_url
|
|
105
|
+
profile_image_url: string | null;
|
|
106
106
|
created_at?: string | undefined;
|
|
107
107
|
modified_at?: string | undefined;
|
|
108
108
|
};
|
|
@@ -114,15 +114,15 @@ export const AnonymousUser$outboundSchema: z.ZodType<
|
|
|
114
114
|
AnonymousUser
|
|
115
115
|
> = z.object({
|
|
116
116
|
id: z.string(),
|
|
117
|
-
isAnonymous: z.boolean()
|
|
118
|
-
isLoggedIn: z.boolean()
|
|
119
|
-
firstName: z.nullable(z.string())
|
|
120
|
-
lastName: z.nullable(z.string())
|
|
121
|
-
phone: z.nullable(z.string())
|
|
122
|
-
email: z.nullable(z.string())
|
|
117
|
+
isAnonymous: z.boolean(),
|
|
118
|
+
isLoggedIn: z.boolean(),
|
|
119
|
+
firstName: z.nullable(z.string()),
|
|
120
|
+
lastName: z.nullable(z.string()),
|
|
121
|
+
phone: z.nullable(z.string()),
|
|
122
|
+
email: z.nullable(z.string()),
|
|
123
123
|
isEmailVerified: z.boolean().default(false),
|
|
124
124
|
isPhoneVerified: z.boolean().default(false),
|
|
125
|
-
profileImageUrl: z.nullable(z.string())
|
|
125
|
+
profileImageUrl: z.nullable(z.string()),
|
|
126
126
|
createdAt: z.string().optional(),
|
|
127
127
|
modifiedAt: z.string().optional(),
|
|
128
128
|
}).transform((v) => {
|
|
@@ -4,186 +4,41 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
8
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* The type of the associated option.
|
|
26
|
-
*/
|
|
27
|
-
export const Type = {
|
|
28
|
-
Color: "color",
|
|
29
|
-
SingleSelect: "single-select",
|
|
30
|
-
} as const;
|
|
31
|
-
/**
|
|
32
|
-
* The type of the associated option.
|
|
33
|
-
*/
|
|
34
|
-
export type Type = ClosedEnum<typeof Type>;
|
|
35
|
-
|
|
36
|
-
export type AssociatedOption = {
|
|
37
|
-
/**
|
|
38
|
-
* The name of the associated option.
|
|
39
|
-
*/
|
|
40
|
-
name?: string | undefined;
|
|
41
|
-
value?: Color | string | undefined;
|
|
42
|
-
/**
|
|
43
|
-
* The type of the associated option.
|
|
44
|
-
*/
|
|
45
|
-
type?: Type | undefined;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
/** @internal */
|
|
49
|
-
export const Color$inboundSchema: z.ZodType<Color, z.ZodTypeDef, unknown> = z
|
|
50
|
-
.object({
|
|
51
|
-
name: z.string().optional(),
|
|
52
|
-
hexcode: z.string().optional(),
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
/** @internal */
|
|
56
|
-
export type Color$Outbound = {
|
|
57
|
-
name?: string | undefined;
|
|
58
|
-
hexcode?: string | undefined;
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
/** @internal */
|
|
62
|
-
export const Color$outboundSchema: z.ZodType<
|
|
63
|
-
Color$Outbound,
|
|
64
|
-
z.ZodTypeDef,
|
|
65
|
-
Color
|
|
66
|
-
> = z.object({
|
|
67
|
-
name: z.string().optional(),
|
|
68
|
-
hexcode: z.string().optional(),
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* @internal
|
|
73
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
74
|
-
*/
|
|
75
|
-
export namespace Color$ {
|
|
76
|
-
/** @deprecated use `Color$inboundSchema` instead. */
|
|
77
|
-
export const inboundSchema = Color$inboundSchema;
|
|
78
|
-
/** @deprecated use `Color$outboundSchema` instead. */
|
|
79
|
-
export const outboundSchema = Color$outboundSchema;
|
|
80
|
-
/** @deprecated use `Color$Outbound` instead. */
|
|
81
|
-
export type Outbound = Color$Outbound;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export function colorToJSON(color: Color): string {
|
|
85
|
-
return JSON.stringify(Color$outboundSchema.parse(color));
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export function colorFromJSON(
|
|
89
|
-
jsonString: string,
|
|
90
|
-
): SafeParseResult<Color, SDKValidationError> {
|
|
91
|
-
return safeParse(
|
|
92
|
-
jsonString,
|
|
93
|
-
(x) => Color$inboundSchema.parse(JSON.parse(x)),
|
|
94
|
-
`Failed to parse 'Color' from JSON`,
|
|
95
|
-
);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
/** @internal */
|
|
99
|
-
export const Value$inboundSchema: z.ZodType<Value, z.ZodTypeDef, unknown> = z
|
|
100
|
-
.union([z.lazy(() => Color$inboundSchema), z.string()]);
|
|
101
|
-
|
|
102
|
-
/** @internal */
|
|
103
|
-
export type Value$Outbound = Color$Outbound | string;
|
|
104
|
-
|
|
105
|
-
/** @internal */
|
|
106
|
-
export const Value$outboundSchema: z.ZodType<
|
|
107
|
-
Value$Outbound,
|
|
108
|
-
z.ZodTypeDef,
|
|
109
|
-
Value
|
|
110
|
-
> = z.union([z.lazy(() => Color$outboundSchema), z.string()]);
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* @internal
|
|
114
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
115
|
-
*/
|
|
116
|
-
export namespace Value$ {
|
|
117
|
-
/** @deprecated use `Value$inboundSchema` instead. */
|
|
118
|
-
export const inboundSchema = Value$inboundSchema;
|
|
119
|
-
/** @deprecated use `Value$outboundSchema` instead. */
|
|
120
|
-
export const outboundSchema = Value$outboundSchema;
|
|
121
|
-
/** @deprecated use `Value$Outbound` instead. */
|
|
122
|
-
export type Outbound = Value$Outbound;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
export function valueToJSON(value: Value): string {
|
|
126
|
-
return JSON.stringify(Value$outboundSchema.parse(value));
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
export function valueFromJSON(
|
|
130
|
-
jsonString: string,
|
|
131
|
-
): SafeParseResult<Value, SDKValidationError> {
|
|
132
|
-
return safeParse(
|
|
133
|
-
jsonString,
|
|
134
|
-
(x) => Value$inboundSchema.parse(JSON.parse(x)),
|
|
135
|
-
`Failed to parse 'Value' from JSON`,
|
|
136
|
-
);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
/** @internal */
|
|
140
|
-
export const Type$inboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(
|
|
141
|
-
Type,
|
|
142
|
-
);
|
|
143
|
-
|
|
144
|
-
/** @internal */
|
|
145
|
-
export const Type$outboundSchema: z.ZodNativeEnum<typeof Type> =
|
|
146
|
-
Type$inboundSchema;
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* @internal
|
|
150
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
151
|
-
*/
|
|
152
|
-
export namespace Type$ {
|
|
153
|
-
/** @deprecated use `Type$inboundSchema` instead. */
|
|
154
|
-
export const inboundSchema = Type$inboundSchema;
|
|
155
|
-
/** @deprecated use `Type$outboundSchema` instead. */
|
|
156
|
-
export const outboundSchema = Type$outboundSchema;
|
|
157
|
-
}
|
|
9
|
+
import {
|
|
10
|
+
ColorOption,
|
|
11
|
+
ColorOption$inboundSchema,
|
|
12
|
+
ColorOption$Outbound,
|
|
13
|
+
ColorOption$outboundSchema,
|
|
14
|
+
} from "./coloroption.js";
|
|
15
|
+
import {
|
|
16
|
+
SingleSelectOption,
|
|
17
|
+
SingleSelectOption$inboundSchema,
|
|
18
|
+
SingleSelectOption$Outbound,
|
|
19
|
+
SingleSelectOption$outboundSchema,
|
|
20
|
+
} from "./singleselectoption.js";
|
|
21
|
+
|
|
22
|
+
export type AssociatedOption = ColorOption | SingleSelectOption;
|
|
158
23
|
|
|
159
24
|
/** @internal */
|
|
160
25
|
export const AssociatedOption$inboundSchema: z.ZodType<
|
|
161
26
|
AssociatedOption,
|
|
162
27
|
z.ZodTypeDef,
|
|
163
28
|
unknown
|
|
164
|
-
> = z.
|
|
165
|
-
name: z.string().optional(),
|
|
166
|
-
value: z.union([z.lazy(() => Color$inboundSchema), z.string()]).optional(),
|
|
167
|
-
type: Type$inboundSchema.optional(),
|
|
168
|
-
});
|
|
29
|
+
> = z.union([ColorOption$inboundSchema, SingleSelectOption$inboundSchema]);
|
|
169
30
|
|
|
170
31
|
/** @internal */
|
|
171
|
-
export type AssociatedOption$Outbound =
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
type?: string | undefined;
|
|
175
|
-
};
|
|
32
|
+
export type AssociatedOption$Outbound =
|
|
33
|
+
| ColorOption$Outbound
|
|
34
|
+
| SingleSelectOption$Outbound;
|
|
176
35
|
|
|
177
36
|
/** @internal */
|
|
178
37
|
export const AssociatedOption$outboundSchema: z.ZodType<
|
|
179
38
|
AssociatedOption$Outbound,
|
|
180
39
|
z.ZodTypeDef,
|
|
181
40
|
AssociatedOption
|
|
182
|
-
> = z.
|
|
183
|
-
name: z.string().optional(),
|
|
184
|
-
value: z.union([z.lazy(() => Color$outboundSchema), z.string()]).optional(),
|
|
185
|
-
type: Type$outboundSchema.optional(),
|
|
186
|
-
});
|
|
41
|
+
> = z.union([ColorOption$outboundSchema, SingleSelectOption$outboundSchema]);
|
|
187
42
|
|
|
188
43
|
/**
|
|
189
44
|
* @internal
|