ce-storefront 0.4.0 → 0.4.2
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/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/components/index.d.ts +3 -5
- package/esm/models/components/index.d.ts.map +1 -1
- package/esm/models/components/index.js +3 -5
- package/esm/models/components/index.js.map +1 -1
- package/esm/models/components/{singleproduct.d.ts → product.d.ts} +17 -14
- package/esm/models/components/product.d.ts.map +1 -0
- package/esm/models/components/{singleproduct.js → product.js} +19 -14
- package/esm/models/components/product.js.map +1 -0
- package/esm/models/components/productbundleitem.d.ts +117 -0
- package/esm/models/components/productbundleitem.d.ts.map +1 -0
- package/esm/models/components/productbundleitem.js +138 -0
- package/esm/models/components/productbundleitem.js.map +1 -0
- package/esm/models/components/productdetail.d.ts +139 -4
- package/esm/models/components/productdetail.d.ts.map +1 -1
- package/esm/models/components/productdetail.js +136 -10
- package/esm/models/components/productdetail.js.map +1 -1
- package/esm/models/components/productlist.d.ts +36 -0
- package/esm/models/components/productlist.d.ts.map +1 -0
- package/esm/models/components/productlist.js +35 -0
- package/esm/models/components/productlist.js.map +1 -0
- package/esm/models/operations/getcrosssell.d.ts +2 -2
- package/esm/models/operations/getcrosssell.d.ts.map +1 -1
- package/esm/models/operations/getcrosssell.js +2 -2
- package/esm/models/operations/getcrosssell.js.map +1 -1
- package/esm/models/operations/getproducts.d.ts +32 -2
- package/esm/models/operations/getproducts.d.ts.map +1 -1
- package/esm/models/operations/getproducts.js +29 -2
- package/esm/models/operations/getproducts.js.map +1 -1
- package/esm/models/operations/getsimilar.d.ts +2 -2
- package/esm/models/operations/getsimilar.d.ts.map +1 -1
- package/esm/models/operations/getsimilar.js +2 -2
- package/esm/models/operations/getsimilar.js.map +1 -1
- package/esm/models/operations/getskus.d.ts +15 -15
- package/esm/models/operations/getskus.d.ts.map +1 -1
- package/esm/models/operations/getskus.js +15 -15
- package/esm/models/operations/getskus.js.map +1 -1
- package/esm/models/operations/getupsell.d.ts +2 -2
- package/esm/models/operations/getupsell.d.ts.map +1 -1
- package/esm/models/operations/getupsell.js +2 -2
- package/esm/models/operations/getupsell.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/index.ts +3 -5
- package/src/models/components/{singleproduct.ts → product.ts} +69 -60
- package/src/models/components/productbundleitem.ts +263 -0
- package/src/models/components/productdetail.ts +295 -22
- package/src/models/components/productlist.ts +81 -0
- package/src/models/operations/getcrosssell.ts +4 -4
- package/src/models/operations/getproducts.ts +62 -4
- package/src/models/operations/getsimilar.ts +4 -4
- package/src/models/operations/getskus.ts +30 -27
- package/src/models/operations/getupsell.ts +4 -4
- package/esm/models/components/bundleproduct.d.ts +0 -236
- package/esm/models/components/bundleproduct.d.ts.map +0 -1
- package/esm/models/components/bundleproduct.js +0 -258
- package/esm/models/components/bundleproduct.js.map +0 -1
- package/esm/models/components/bundleproductdetail.d.ts +0 -265
- package/esm/models/components/bundleproductdetail.d.ts.map +0 -1
- package/esm/models/components/bundleproductdetail.js +0 -284
- package/esm/models/components/bundleproductdetail.js.map +0 -1
- package/esm/models/components/productlistresponse.d.ts +0 -58
- package/esm/models/components/productlistresponse.d.ts.map +0 -1
- package/esm/models/components/productlistresponse.js +0 -57
- package/esm/models/components/productlistresponse.js.map +0 -1
- package/esm/models/components/singleproduct.d.ts.map +0 -1
- package/esm/models/components/singleproduct.js.map +0 -1
- package/esm/models/components/singleproductdetail.d.ts +0 -159
- package/esm/models/components/singleproductdetail.d.ts.map +0 -1
- package/esm/models/components/singleproductdetail.js +0 -156
- package/esm/models/components/singleproductdetail.js.map +0 -1
- package/src/models/components/bundleproduct.ts +0 -494
- package/src/models/components/bundleproductdetail.ts +0 -560
- package/src/models/components/productlistresponse.ts +0 -141
- package/src/models/components/singleproductdetail.ts +0 -339
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.4.
|
|
34
|
+
readonly sdkVersion: "0.4.2";
|
|
35
35
|
readonly genVersion: "2.495.1";
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.4.
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.4.2 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.4.
|
|
43
|
+
sdkVersion: "0.4.2",
|
|
44
44
|
genVersion: "2.495.1",
|
|
45
|
-
userAgent: "speakeasy-sdk/typescript 0.4.
|
|
45
|
+
userAgent: "speakeasy-sdk/typescript 0.4.2 2.495.1 1.0 ce-storefront",
|
|
46
46
|
};
|
|
47
47
|
//# sourceMappingURL=config.js.map
|
|
@@ -2,8 +2,6 @@ export * from "./analyticsevent.js";
|
|
|
2
2
|
export * from "./anonymoususer.js";
|
|
3
3
|
export * from "./associatedoption.js";
|
|
4
4
|
export * from "./banktransfer.js";
|
|
5
|
-
export * from "./bundleproduct.js";
|
|
6
|
-
export * from "./bundleproductdetail.js";
|
|
7
5
|
export * from "./business.js";
|
|
8
6
|
export * from "./cardpayment.js";
|
|
9
7
|
export * from "./cart.js";
|
|
@@ -51,11 +49,13 @@ export * from "./payupaymentinfo.js";
|
|
|
51
49
|
export * from "./payupaymentmethod.js";
|
|
52
50
|
export * from "./payusavedcard.js";
|
|
53
51
|
export * from "./pincode.js";
|
|
52
|
+
export * from "./product.js";
|
|
54
53
|
export * from "./productattribute.js";
|
|
54
|
+
export * from "./productbundleitem.js";
|
|
55
55
|
export * from "./productcategory.js";
|
|
56
56
|
export * from "./productdetail.js";
|
|
57
57
|
export * from "./productimage.js";
|
|
58
|
-
export * from "./
|
|
58
|
+
export * from "./productlist.js";
|
|
59
59
|
export * from "./productpricing.js";
|
|
60
60
|
export * from "./productpromotion.js";
|
|
61
61
|
export * from "./productreview.js";
|
|
@@ -66,8 +66,6 @@ export * from "./promotiondetail.js";
|
|
|
66
66
|
export * from "./security.js";
|
|
67
67
|
export * from "./seo.js";
|
|
68
68
|
export * from "./shipmentitem.js";
|
|
69
|
-
export * from "./singleproduct.js";
|
|
70
|
-
export * from "./singleproductdetail.js";
|
|
71
69
|
export * from "./singleselectoption.js";
|
|
72
70
|
export * from "./sku.js";
|
|
73
71
|
export * from "./updatecartitem.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cA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BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,UAAU,CAAC;AACzB,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC"}
|
|
@@ -5,8 +5,6 @@ export * from "./analyticsevent.js";
|
|
|
5
5
|
export * from "./anonymoususer.js";
|
|
6
6
|
export * from "./associatedoption.js";
|
|
7
7
|
export * from "./banktransfer.js";
|
|
8
|
-
export * from "./bundleproduct.js";
|
|
9
|
-
export * from "./bundleproductdetail.js";
|
|
10
8
|
export * from "./business.js";
|
|
11
9
|
export * from "./cardpayment.js";
|
|
12
10
|
export * from "./cart.js";
|
|
@@ -54,11 +52,13 @@ export * from "./payupaymentinfo.js";
|
|
|
54
52
|
export * from "./payupaymentmethod.js";
|
|
55
53
|
export * from "./payusavedcard.js";
|
|
56
54
|
export * from "./pincode.js";
|
|
55
|
+
export * from "./product.js";
|
|
57
56
|
export * from "./productattribute.js";
|
|
57
|
+
export * from "./productbundleitem.js";
|
|
58
58
|
export * from "./productcategory.js";
|
|
59
59
|
export * from "./productdetail.js";
|
|
60
60
|
export * from "./productimage.js";
|
|
61
|
-
export * from "./
|
|
61
|
+
export * from "./productlist.js";
|
|
62
62
|
export * from "./productpricing.js";
|
|
63
63
|
export * from "./productpromotion.js";
|
|
64
64
|
export * from "./productreview.js";
|
|
@@ -69,8 +69,6 @@ export * from "./promotiondetail.js";
|
|
|
69
69
|
export * from "./security.js";
|
|
70
70
|
export * from "./seo.js";
|
|
71
71
|
export * from "./shipmentitem.js";
|
|
72
|
-
export * from "./singleproduct.js";
|
|
73
|
-
export * from "./singleproductdetail.js";
|
|
74
72
|
export * from "./singleselectoption.js";
|
|
75
73
|
export * from "./sku.js";
|
|
76
74
|
export * from "./updatecartitem.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/components/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/components/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kCAAkC,CAAC;AACjD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qBAAqB,CAAC;AACp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AC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC"}
|
|
@@ -3,6 +3,7 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
3
3
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
5
|
import { ProductAttribute, ProductAttribute$Outbound } from "./productattribute.js";
|
|
6
|
+
import { ProductBundleItem, ProductBundleItem$Outbound } from "./productbundleitem.js";
|
|
6
7
|
import { ProductImage, ProductImage$Outbound } from "./productimage.js";
|
|
7
8
|
import { ProductPricing, ProductPricing$Outbound } from "./productpricing.js";
|
|
8
9
|
import { ProductPromotion, ProductPromotion$Outbound } from "./productpromotion.js";
|
|
@@ -15,7 +16,7 @@ export declare const ProductType: {
|
|
|
15
16
|
readonly Bundle: "bundle";
|
|
16
17
|
};
|
|
17
18
|
export type ProductType = ClosedEnum<typeof ProductType>;
|
|
18
|
-
export type
|
|
19
|
+
export type Product = {
|
|
19
20
|
/**
|
|
20
21
|
* The ULID of the product
|
|
21
22
|
*/
|
|
@@ -60,6 +61,7 @@ export type SingleProduct = {
|
|
|
60
61
|
images: Array<ProductImage>;
|
|
61
62
|
subscription: Array<ProductSubscription>;
|
|
62
63
|
variants: Array<Variant>;
|
|
64
|
+
bundleItems: Array<ProductBundleItem>;
|
|
63
65
|
};
|
|
64
66
|
/** @internal */
|
|
65
67
|
export declare const ProductType$inboundSchema: z.ZodNativeEnum<typeof ProductType>;
|
|
@@ -84,9 +86,9 @@ export declare namespace ProductType$ {
|
|
|
84
86
|
}>;
|
|
85
87
|
}
|
|
86
88
|
/** @internal */
|
|
87
|
-
export declare const
|
|
89
|
+
export declare const Product$inboundSchema: z.ZodType<Product, z.ZodTypeDef, unknown>;
|
|
88
90
|
/** @internal */
|
|
89
|
-
export type
|
|
91
|
+
export type Product$Outbound = {
|
|
90
92
|
id: string;
|
|
91
93
|
sku: string | null;
|
|
92
94
|
name: string;
|
|
@@ -110,21 +112,22 @@ export type SingleProduct$Outbound = {
|
|
|
110
112
|
images: Array<ProductImage$Outbound>;
|
|
111
113
|
subscription: Array<ProductSubscription$Outbound>;
|
|
112
114
|
variants: Array<Variant$Outbound>;
|
|
115
|
+
bundle_items: Array<ProductBundleItem$Outbound>;
|
|
113
116
|
};
|
|
114
117
|
/** @internal */
|
|
115
|
-
export declare const
|
|
118
|
+
export declare const Product$outboundSchema: z.ZodType<Product$Outbound, z.ZodTypeDef, Product>;
|
|
116
119
|
/**
|
|
117
120
|
* @internal
|
|
118
121
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
119
122
|
*/
|
|
120
|
-
export declare namespace
|
|
121
|
-
/** @deprecated use `
|
|
122
|
-
const inboundSchema: z.ZodType<
|
|
123
|
-
/** @deprecated use `
|
|
124
|
-
const outboundSchema: z.ZodType<
|
|
125
|
-
/** @deprecated use `
|
|
126
|
-
type Outbound =
|
|
123
|
+
export declare namespace Product$ {
|
|
124
|
+
/** @deprecated use `Product$inboundSchema` instead. */
|
|
125
|
+
const inboundSchema: z.ZodType<Product, z.ZodTypeDef, unknown>;
|
|
126
|
+
/** @deprecated use `Product$outboundSchema` instead. */
|
|
127
|
+
const outboundSchema: z.ZodType<Product$Outbound, z.ZodTypeDef, Product>;
|
|
128
|
+
/** @deprecated use `Product$Outbound` instead. */
|
|
129
|
+
type Outbound = Product$Outbound;
|
|
127
130
|
}
|
|
128
|
-
export declare function
|
|
129
|
-
export declare function
|
|
130
|
-
//# sourceMappingURL=
|
|
131
|
+
export declare function productToJSON(product: Product): string;
|
|
132
|
+
export declare function productFromJSON(jsonString: string): SafeParseResult<Product, SDKValidationError>;
|
|
133
|
+
//# sourceMappingURL=product.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../../src/models/components/product.ts"],"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AyB,CAAC;IACrD,kDAAkD;IAClD,KAAY,QAAQ,GAAG,gBAAgB,CAAC;CACzC;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAEtD;AAED,wBAAgB,eAAe,CAC7B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,OAAO,EAAE,kBAAkB,CAAC,CAM9C"}
|
|
@@ -5,6 +5,7 @@ import * as z from "zod";
|
|
|
5
5
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { ProductAttribute$inboundSchema, ProductAttribute$outboundSchema, } from "./productattribute.js";
|
|
8
|
+
import { ProductBundleItem$inboundSchema, ProductBundleItem$outboundSchema, } from "./productbundleitem.js";
|
|
8
9
|
import { ProductImage$inboundSchema, ProductImage$outboundSchema, } from "./productimage.js";
|
|
9
10
|
import { ProductPricing$inboundSchema, ProductPricing$outboundSchema, } from "./productpricing.js";
|
|
10
11
|
import { ProductPromotion$inboundSchema, ProductPromotion$outboundSchema, } from "./productpromotion.js";
|
|
@@ -33,7 +34,7 @@ export var ProductType$;
|
|
|
33
34
|
ProductType$.outboundSchema = ProductType$outboundSchema;
|
|
34
35
|
})(ProductType$ || (ProductType$ = {}));
|
|
35
36
|
/** @internal */
|
|
36
|
-
export const
|
|
37
|
+
export const Product$inboundSchema = z.object({
|
|
37
38
|
id: z.string(),
|
|
38
39
|
sku: z.nullable(z.string()),
|
|
39
40
|
name: z.string(),
|
|
@@ -57,6 +58,7 @@ export const SingleProduct$inboundSchema = z.object({
|
|
|
57
58
|
images: z.array(ProductImage$inboundSchema),
|
|
58
59
|
subscription: z.array(ProductSubscription$inboundSchema),
|
|
59
60
|
variants: z.array(Variant$inboundSchema),
|
|
61
|
+
bundle_items: z.array(ProductBundleItem$inboundSchema),
|
|
60
62
|
}).transform((v) => {
|
|
61
63
|
return remap$(v, {
|
|
62
64
|
"short_description": "shortDescription",
|
|
@@ -70,10 +72,11 @@ export const SingleProduct$inboundSchema = z.object({
|
|
|
70
72
|
"reviews_rating_sum": "reviewsRatingSum",
|
|
71
73
|
"reviews_count": "reviewsCount",
|
|
72
74
|
"variant_options": "variantOptions",
|
|
75
|
+
"bundle_items": "bundleItems",
|
|
73
76
|
});
|
|
74
77
|
});
|
|
75
78
|
/** @internal */
|
|
76
|
-
export const
|
|
79
|
+
export const Product$outboundSchema = z.object({
|
|
77
80
|
id: z.string(),
|
|
78
81
|
sku: z.nullable(z.string()),
|
|
79
82
|
name: z.string(),
|
|
@@ -97,6 +100,7 @@ export const SingleProduct$outboundSchema = z.object({
|
|
|
97
100
|
images: z.array(ProductImage$outboundSchema),
|
|
98
101
|
subscription: z.array(ProductSubscription$outboundSchema),
|
|
99
102
|
variants: z.array(Variant$outboundSchema),
|
|
103
|
+
bundleItems: z.array(ProductBundleItem$outboundSchema),
|
|
100
104
|
}).transform((v) => {
|
|
101
105
|
return remap$(v, {
|
|
102
106
|
shortDescription: "short_description",
|
|
@@ -110,23 +114,24 @@ export const SingleProduct$outboundSchema = z.object({
|
|
|
110
114
|
reviewsRatingSum: "reviews_rating_sum",
|
|
111
115
|
reviewsCount: "reviews_count",
|
|
112
116
|
variantOptions: "variant_options",
|
|
117
|
+
bundleItems: "bundle_items",
|
|
113
118
|
});
|
|
114
119
|
});
|
|
115
120
|
/**
|
|
116
121
|
* @internal
|
|
117
122
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
118
123
|
*/
|
|
119
|
-
export var
|
|
120
|
-
(function (
|
|
121
|
-
/** @deprecated use `
|
|
122
|
-
|
|
123
|
-
/** @deprecated use `
|
|
124
|
-
|
|
125
|
-
})(
|
|
126
|
-
export function
|
|
127
|
-
return JSON.stringify(
|
|
124
|
+
export var Product$;
|
|
125
|
+
(function (Product$) {
|
|
126
|
+
/** @deprecated use `Product$inboundSchema` instead. */
|
|
127
|
+
Product$.inboundSchema = Product$inboundSchema;
|
|
128
|
+
/** @deprecated use `Product$outboundSchema` instead. */
|
|
129
|
+
Product$.outboundSchema = Product$outboundSchema;
|
|
130
|
+
})(Product$ || (Product$ = {}));
|
|
131
|
+
export function productToJSON(product) {
|
|
132
|
+
return JSON.stringify(Product$outboundSchema.parse(product));
|
|
128
133
|
}
|
|
129
|
-
export function
|
|
130
|
-
return safeParse(jsonString, (x) =>
|
|
134
|
+
export function productFromJSON(jsonString) {
|
|
135
|
+
return safeParse(jsonString, (x) => Product$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Product' from JSON`);
|
|
131
136
|
}
|
|
132
|
-
//# sourceMappingURL=
|
|
137
|
+
//# sourceMappingURL=product.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product.js","sourceRoot":"","sources":["../../../src/models/components/product.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;AAIjD,OAAO,EAEL,8BAA8B,EAE9B,+BAA+B,GAChC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEL,+BAA+B,EAE/B,gCAAgC,GACjC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,0BAA0B,EAE1B,2BAA2B,GAC5B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,4BAA4B,EAE5B,6BAA6B,GAC9B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,8BAA8B,EAE9B,+BAA+B,GAChC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEL,iCAAiC,EAEjC,kCAAkC,GACnC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAEL,qBAAqB,EAErB,sBAAsB,GACvB,MAAM,cAAc,CAAC;AACtB,OAAO,EAEL,2BAA2B,EAE3B,4BAA4B,GAC7B,MAAM,oBAAoB,CAAC;A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B,CAAC;IACzC,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,gCAAgC,CAAC;CACvD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,gBAAgB,EAAE,mBAAmB;QACrC,WAAW,EAAE,cAAc;QAC3B,cAAc,EAAE,iBAAiB;QACjC,OAAO,EAAE,UAAU;QACnB,cAAc,EAAE,iBAAiB;QACjC,WAAW,EAAE,cAAc;QAC3B,UAAU,EAAE,aAAa;QACzB,WAAW,EAAE,cAAc;QAC3B,gBAAgB,EAAE,oBAAoB;QACtC,YAAY,EAAE,eAAe;QAC7B,cAAc,EAAE,iBAAiB;QACjC,WAAW,EAAE,cAAc;KAC5B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,QAAQ,CAOxB;AAPD,WAAiB,QAAQ;IACvB,uDAAuD;IAC1C,sBAAa,GAAG,qBAAqB,CAAC;IACnD,wDAAwD;IAC3C,uBAAc,GAAG,sBAAsB,CAAC;AAGvD,CAAC,EAPgB,QAAQ,KAAR,QAAQ,QAOxB;AAED,MAAM,UAAU,aAAa,CAAC,OAAgB;IAC5C,OAAO,IAAI,CAAC,SAAS,CAAC,sBAAsB,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,UAAU,eAAe,CAC7B,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qBAAqB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACjD,qCAAqC,CACtC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
+
import { AssociatedOption, AssociatedOption$Outbound } from "./associatedoption.js";
|
|
6
|
+
import { ProductAttribute, ProductAttribute$Outbound } from "./productattribute.js";
|
|
7
|
+
import { ProductImage, ProductImage$Outbound } from "./productimage.js";
|
|
8
|
+
import { ProductPricing, ProductPricing$Outbound } from "./productpricing.js";
|
|
9
|
+
import { ProductPromotion, ProductPromotion$Outbound } from "./productpromotion.js";
|
|
10
|
+
import { ProductSubscription, ProductSubscription$Outbound } from "./productsubscription.js";
|
|
11
|
+
export declare const ProductBundleItemProductType: {
|
|
12
|
+
readonly Physical: "physical";
|
|
13
|
+
readonly Digital: "digital";
|
|
14
|
+
readonly Bundle: "bundle";
|
|
15
|
+
};
|
|
16
|
+
export type ProductBundleItemProductType = ClosedEnum<typeof ProductBundleItemProductType>;
|
|
17
|
+
export type ProductBundleItem = {
|
|
18
|
+
quantity: number;
|
|
19
|
+
productId: string;
|
|
20
|
+
variantId: string | null;
|
|
21
|
+
sku: string;
|
|
22
|
+
slug: string | null;
|
|
23
|
+
productName: string;
|
|
24
|
+
variantName: string | null;
|
|
25
|
+
productType: ProductBundleItemProductType;
|
|
26
|
+
shortDescription: string | null;
|
|
27
|
+
active: boolean;
|
|
28
|
+
stockAvailable: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Indicates whether this item is associated with any active (product-specific) coupons
|
|
31
|
+
*/
|
|
32
|
+
onOffer: boolean;
|
|
33
|
+
onSubscription: boolean;
|
|
34
|
+
onPromotion: boolean;
|
|
35
|
+
categoryIds: Array<string>;
|
|
36
|
+
tags: Array<string> | null;
|
|
37
|
+
reviewsCount: number;
|
|
38
|
+
reviewsRatingSum: number | null;
|
|
39
|
+
attributes: Array<ProductAttribute>;
|
|
40
|
+
images: Array<ProductImage>;
|
|
41
|
+
pricing: ProductPricing;
|
|
42
|
+
promotion: ProductPromotion | null;
|
|
43
|
+
subscription: Array<ProductSubscription>;
|
|
44
|
+
associatedOptions: {
|
|
45
|
+
[k: string]: AssociatedOption;
|
|
46
|
+
} | null;
|
|
47
|
+
};
|
|
48
|
+
/** @internal */
|
|
49
|
+
export declare const ProductBundleItemProductType$inboundSchema: z.ZodNativeEnum<typeof ProductBundleItemProductType>;
|
|
50
|
+
/** @internal */
|
|
51
|
+
export declare const ProductBundleItemProductType$outboundSchema: z.ZodNativeEnum<typeof ProductBundleItemProductType>;
|
|
52
|
+
/**
|
|
53
|
+
* @internal
|
|
54
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
55
|
+
*/
|
|
56
|
+
export declare namespace ProductBundleItemProductType$ {
|
|
57
|
+
/** @deprecated use `ProductBundleItemProductType$inboundSchema` instead. */
|
|
58
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
59
|
+
readonly Physical: "physical";
|
|
60
|
+
readonly Digital: "digital";
|
|
61
|
+
readonly Bundle: "bundle";
|
|
62
|
+
}>;
|
|
63
|
+
/** @deprecated use `ProductBundleItemProductType$outboundSchema` instead. */
|
|
64
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
65
|
+
readonly Physical: "physical";
|
|
66
|
+
readonly Digital: "digital";
|
|
67
|
+
readonly Bundle: "bundle";
|
|
68
|
+
}>;
|
|
69
|
+
}
|
|
70
|
+
/** @internal */
|
|
71
|
+
export declare const ProductBundleItem$inboundSchema: z.ZodType<ProductBundleItem, z.ZodTypeDef, unknown>;
|
|
72
|
+
/** @internal */
|
|
73
|
+
export type ProductBundleItem$Outbound = {
|
|
74
|
+
quantity: number;
|
|
75
|
+
product_id: string;
|
|
76
|
+
variant_id: string | null;
|
|
77
|
+
sku: string;
|
|
78
|
+
slug: string | null;
|
|
79
|
+
product_name: string;
|
|
80
|
+
variant_name: string | null;
|
|
81
|
+
product_type: string;
|
|
82
|
+
short_description: string | null;
|
|
83
|
+
active: boolean;
|
|
84
|
+
stock_available: boolean;
|
|
85
|
+
on_offer: boolean;
|
|
86
|
+
on_subscription: boolean;
|
|
87
|
+
on_promotion: boolean;
|
|
88
|
+
category_ids: Array<string>;
|
|
89
|
+
tags: Array<string> | null;
|
|
90
|
+
reviews_count: number;
|
|
91
|
+
reviews_rating_sum: number | null;
|
|
92
|
+
attributes: Array<ProductAttribute$Outbound>;
|
|
93
|
+
images: Array<ProductImage$Outbound>;
|
|
94
|
+
pricing: ProductPricing$Outbound;
|
|
95
|
+
promotion: ProductPromotion$Outbound | null;
|
|
96
|
+
subscription: Array<ProductSubscription$Outbound>;
|
|
97
|
+
associated_options: {
|
|
98
|
+
[k: string]: AssociatedOption$Outbound;
|
|
99
|
+
} | null;
|
|
100
|
+
};
|
|
101
|
+
/** @internal */
|
|
102
|
+
export declare const ProductBundleItem$outboundSchema: z.ZodType<ProductBundleItem$Outbound, z.ZodTypeDef, ProductBundleItem>;
|
|
103
|
+
/**
|
|
104
|
+
* @internal
|
|
105
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
106
|
+
*/
|
|
107
|
+
export declare namespace ProductBundleItem$ {
|
|
108
|
+
/** @deprecated use `ProductBundleItem$inboundSchema` instead. */
|
|
109
|
+
const inboundSchema: z.ZodType<ProductBundleItem, z.ZodTypeDef, unknown>;
|
|
110
|
+
/** @deprecated use `ProductBundleItem$outboundSchema` instead. */
|
|
111
|
+
const outboundSchema: z.ZodType<ProductBundleItem$Outbound, z.ZodTypeDef, ProductBundleItem>;
|
|
112
|
+
/** @deprecated use `ProductBundleItem$Outbound` instead. */
|
|
113
|
+
type Outbound = ProductBundleItem$Outbound;
|
|
114
|
+
}
|
|
115
|
+
export declare function productBundleItemToJSON(productBundleItem: ProductBundleItem): string;
|
|
116
|
+
export declare function productBundleItemFromJSON(jsonString: string): SafeParseResult<ProductBundleItem, SDKValidationError>;
|
|
117
|
+
//# sourceMappingURL=productbundleitem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"productbundleitem.d.ts","sourceRoot":"","sources":["../../../src/models/components/productbundleitem.ts"],"names":[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AAM,CAIR;AAED,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,CAMxD"}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod";
|
|
5
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { AssociatedOption$inboundSchema, AssociatedOption$outboundSchema, } from "./associatedoption.js";
|
|
8
|
+
import { ProductAttribute$inboundSchema, ProductAttribute$outboundSchema, } from "./productattribute.js";
|
|
9
|
+
import { ProductImage$inboundSchema, ProductImage$outboundSchema, } from "./productimage.js";
|
|
10
|
+
import { ProductPricing$inboundSchema, ProductPricing$outboundSchema, } from "./productpricing.js";
|
|
11
|
+
import { ProductPromotion$inboundSchema, ProductPromotion$outboundSchema, } from "./productpromotion.js";
|
|
12
|
+
import { ProductSubscription$inboundSchema, ProductSubscription$outboundSchema, } from "./productsubscription.js";
|
|
13
|
+
export const ProductBundleItemProductType = {
|
|
14
|
+
Physical: "physical",
|
|
15
|
+
Digital: "digital",
|
|
16
|
+
Bundle: "bundle",
|
|
17
|
+
};
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const ProductBundleItemProductType$inboundSchema = z.nativeEnum(ProductBundleItemProductType);
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const ProductBundleItemProductType$outboundSchema = ProductBundleItemProductType$inboundSchema;
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
25
|
+
*/
|
|
26
|
+
export var ProductBundleItemProductType$;
|
|
27
|
+
(function (ProductBundleItemProductType$) {
|
|
28
|
+
/** @deprecated use `ProductBundleItemProductType$inboundSchema` instead. */
|
|
29
|
+
ProductBundleItemProductType$.inboundSchema = ProductBundleItemProductType$inboundSchema;
|
|
30
|
+
/** @deprecated use `ProductBundleItemProductType$outboundSchema` instead. */
|
|
31
|
+
ProductBundleItemProductType$.outboundSchema = ProductBundleItemProductType$outboundSchema;
|
|
32
|
+
})(ProductBundleItemProductType$ || (ProductBundleItemProductType$ = {}));
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const ProductBundleItem$inboundSchema = z.object({
|
|
35
|
+
quantity: z.number().int(),
|
|
36
|
+
product_id: z.string(),
|
|
37
|
+
variant_id: z.nullable(z.string()),
|
|
38
|
+
sku: z.string(),
|
|
39
|
+
slug: z.nullable(z.string()),
|
|
40
|
+
product_name: z.string(),
|
|
41
|
+
variant_name: z.nullable(z.string()),
|
|
42
|
+
product_type: ProductBundleItemProductType$inboundSchema,
|
|
43
|
+
short_description: z.nullable(z.string()),
|
|
44
|
+
active: z.boolean(),
|
|
45
|
+
stock_available: z.boolean(),
|
|
46
|
+
on_offer: z.boolean(),
|
|
47
|
+
on_subscription: z.boolean(),
|
|
48
|
+
on_promotion: z.boolean(),
|
|
49
|
+
category_ids: z.array(z.string()),
|
|
50
|
+
tags: z.nullable(z.array(z.string())),
|
|
51
|
+
reviews_count: z.number().int(),
|
|
52
|
+
reviews_rating_sum: z.nullable(z.number()),
|
|
53
|
+
attributes: z.array(ProductAttribute$inboundSchema),
|
|
54
|
+
images: z.array(ProductImage$inboundSchema),
|
|
55
|
+
pricing: ProductPricing$inboundSchema,
|
|
56
|
+
promotion: z.nullable(ProductPromotion$inboundSchema),
|
|
57
|
+
subscription: z.array(ProductSubscription$inboundSchema),
|
|
58
|
+
associated_options: z.nullable(z.record(AssociatedOption$inboundSchema)),
|
|
59
|
+
}).transform((v) => {
|
|
60
|
+
return remap$(v, {
|
|
61
|
+
"product_id": "productId",
|
|
62
|
+
"variant_id": "variantId",
|
|
63
|
+
"product_name": "productName",
|
|
64
|
+
"variant_name": "variantName",
|
|
65
|
+
"product_type": "productType",
|
|
66
|
+
"short_description": "shortDescription",
|
|
67
|
+
"stock_available": "stockAvailable",
|
|
68
|
+
"on_offer": "onOffer",
|
|
69
|
+
"on_subscription": "onSubscription",
|
|
70
|
+
"on_promotion": "onPromotion",
|
|
71
|
+
"category_ids": "categoryIds",
|
|
72
|
+
"reviews_count": "reviewsCount",
|
|
73
|
+
"reviews_rating_sum": "reviewsRatingSum",
|
|
74
|
+
"associated_options": "associatedOptions",
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
/** @internal */
|
|
78
|
+
export const ProductBundleItem$outboundSchema = z.object({
|
|
79
|
+
quantity: z.number().int(),
|
|
80
|
+
productId: z.string(),
|
|
81
|
+
variantId: z.nullable(z.string()),
|
|
82
|
+
sku: z.string(),
|
|
83
|
+
slug: z.nullable(z.string()),
|
|
84
|
+
productName: z.string(),
|
|
85
|
+
variantName: z.nullable(z.string()),
|
|
86
|
+
productType: ProductBundleItemProductType$outboundSchema,
|
|
87
|
+
shortDescription: z.nullable(z.string()),
|
|
88
|
+
active: z.boolean(),
|
|
89
|
+
stockAvailable: z.boolean(),
|
|
90
|
+
onOffer: z.boolean(),
|
|
91
|
+
onSubscription: z.boolean(),
|
|
92
|
+
onPromotion: z.boolean(),
|
|
93
|
+
categoryIds: z.array(z.string()),
|
|
94
|
+
tags: z.nullable(z.array(z.string())),
|
|
95
|
+
reviewsCount: z.number().int(),
|
|
96
|
+
reviewsRatingSum: z.nullable(z.number()),
|
|
97
|
+
attributes: z.array(ProductAttribute$outboundSchema),
|
|
98
|
+
images: z.array(ProductImage$outboundSchema),
|
|
99
|
+
pricing: ProductPricing$outboundSchema,
|
|
100
|
+
promotion: z.nullable(ProductPromotion$outboundSchema),
|
|
101
|
+
subscription: z.array(ProductSubscription$outboundSchema),
|
|
102
|
+
associatedOptions: z.nullable(z.record(AssociatedOption$outboundSchema)),
|
|
103
|
+
}).transform((v) => {
|
|
104
|
+
return remap$(v, {
|
|
105
|
+
productId: "product_id",
|
|
106
|
+
variantId: "variant_id",
|
|
107
|
+
productName: "product_name",
|
|
108
|
+
variantName: "variant_name",
|
|
109
|
+
productType: "product_type",
|
|
110
|
+
shortDescription: "short_description",
|
|
111
|
+
stockAvailable: "stock_available",
|
|
112
|
+
onOffer: "on_offer",
|
|
113
|
+
onSubscription: "on_subscription",
|
|
114
|
+
onPromotion: "on_promotion",
|
|
115
|
+
categoryIds: "category_ids",
|
|
116
|
+
reviewsCount: "reviews_count",
|
|
117
|
+
reviewsRatingSum: "reviews_rating_sum",
|
|
118
|
+
associatedOptions: "associated_options",
|
|
119
|
+
});
|
|
120
|
+
});
|
|
121
|
+
/**
|
|
122
|
+
* @internal
|
|
123
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
124
|
+
*/
|
|
125
|
+
export var ProductBundleItem$;
|
|
126
|
+
(function (ProductBundleItem$) {
|
|
127
|
+
/** @deprecated use `ProductBundleItem$inboundSchema` instead. */
|
|
128
|
+
ProductBundleItem$.inboundSchema = ProductBundleItem$inboundSchema;
|
|
129
|
+
/** @deprecated use `ProductBundleItem$outboundSchema` instead. */
|
|
130
|
+
ProductBundleItem$.outboundSchema = ProductBundleItem$outboundSchema;
|
|
131
|
+
})(ProductBundleItem$ || (ProductBundleItem$ = {}));
|
|
132
|
+
export function productBundleItemToJSON(productBundleItem) {
|
|
133
|
+
return JSON.stringify(ProductBundleItem$outboundSchema.parse(productBundleItem));
|
|
134
|
+
}
|
|
135
|
+
export function productBundleItemFromJSON(jsonString) {
|
|
136
|
+
return safeParse(jsonString, (x) => ProductBundleItem$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ProductBundleItem' from JSON`);
|
|
137
|
+
}
|
|
138
|
+
//# sourceMappingURL=productbundleitem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"productbundleitem.js","sourceRoot":"","sources":["../../../src/models/components/productbundleitem.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KA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