ce-storefront 0.3.5 → 0.3.7
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 +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/models/components/analyticsevent.d.ts +8 -8
- package/esm/models/components/analyticsevent.d.ts.map +1 -1
- package/esm/models/components/analyticsevent.js +12 -12
- package/esm/models/components/analyticsevent.js.map +1 -1
- package/esm/models/components/associatedoption.d.ts +125 -0
- package/esm/models/components/associatedoption.d.ts.map +1 -0
- package/esm/models/components/associatedoption.js +107 -0
- package/esm/models/components/associatedoption.js.map +1 -0
- package/esm/models/components/bundleproduct.d.ts +236 -0
- package/esm/models/components/bundleproduct.d.ts.map +1 -0
- package/esm/models/components/bundleproduct.js +262 -0
- package/esm/models/components/bundleproduct.js.map +1 -0
- package/esm/models/components/bundleproductdetail.d.ts +265 -0
- package/esm/models/components/bundleproductdetail.d.ts.map +1 -0
- package/esm/models/components/bundleproductdetail.js +288 -0
- package/esm/models/components/bundleproductdetail.js.map +1 -0
- package/esm/models/components/cart.d.ts +15 -15
- package/esm/models/components/cart.d.ts.map +1 -1
- package/esm/models/components/cart.js +15 -15
- package/esm/models/components/cart.js.map +1 -1
- package/esm/models/components/discountbasedpromotion.d.ts +0 -2
- package/esm/models/components/discountbasedpromotion.d.ts.map +1 -1
- package/esm/models/components/discountbasedpromotion.js +0 -4
- package/esm/models/components/discountbasedpromotion.js.map +1 -1
- package/esm/models/components/fixedpricepromotion.d.ts +0 -2
- package/esm/models/components/fixedpricepromotion.d.ts.map +1 -1
- package/esm/models/components/fixedpricepromotion.js +0 -4
- package/esm/models/components/fixedpricepromotion.js.map +1 -1
- package/esm/models/components/freegoodspromotion.d.ts +0 -5
- package/esm/models/components/freegoodspromotion.d.ts.map +1 -1
- package/esm/models/components/freegoodspromotion.js +0 -4
- package/esm/models/components/freegoodspromotion.js.map +1 -1
- package/esm/models/components/index.d.ts +8 -6
- package/esm/models/components/index.d.ts.map +1 -1
- package/esm/models/components/index.js +8 -6
- package/esm/models/components/index.js.map +1 -1
- package/esm/models/components/productattribute.d.ts +97 -64
- package/esm/models/components/productattribute.d.ts.map +1 -1
- package/esm/models/components/productattribute.js +67 -128
- package/esm/models/components/productattribute.js.map +1 -1
- package/esm/models/components/productcategory.d.ts +2 -2
- package/esm/models/components/productcategory.d.ts.map +1 -1
- package/esm/models/components/productcategory.js +2 -2
- package/esm/models/components/productcategory.js.map +1 -1
- package/esm/models/components/productdetail.d.ts +16 -188
- package/esm/models/components/productdetail.d.ts.map +1 -1
- package/esm/models/components/productdetail.js +26 -228
- package/esm/models/components/productdetail.js.map +1 -1
- package/esm/models/components/productlistresponse.d.ts +49 -3
- package/esm/models/components/productlistresponse.d.ts.map +1 -1
- package/esm/models/components/productlistresponse.js +65 -3
- package/esm/models/components/productlistresponse.js.map +1 -1
- package/esm/models/components/productshipping.d.ts +13 -15
- package/esm/models/components/productshipping.d.ts.map +1 -1
- package/esm/models/components/productshipping.js +14 -18
- package/esm/models/components/productshipping.js.map +1 -1
- package/esm/models/components/{promotion.d.ts → promotiondetail.d.ts} +29 -29
- package/esm/models/components/promotiondetail.d.ts.map +1 -0
- package/esm/models/components/{promotion.js → promotiondetail.js} +29 -29
- package/esm/models/components/promotiondetail.js.map +1 -0
- package/esm/models/components/seo.d.ts +6 -6
- package/esm/models/components/seo.d.ts.map +1 -1
- package/esm/models/components/seo.js +6 -19
- package/esm/models/components/seo.js.map +1 -1
- package/esm/models/components/{product.d.ts → singleproduct.d.ts} +52 -75
- package/esm/models/components/singleproduct.d.ts.map +1 -0
- package/esm/models/components/{product.js → singleproduct.js} +37 -95
- package/esm/models/components/singleproduct.js.map +1 -0
- package/esm/models/components/singleproductdetail.d.ts +159 -0
- package/esm/models/components/singleproductdetail.d.ts.map +1 -0
- package/esm/models/components/singleproductdetail.js +156 -0
- package/esm/models/components/singleproductdetail.js.map +1 -0
- package/esm/models/components/{skuinfo.d.ts → sku.d.ts} +59 -48
- package/esm/models/components/sku.d.ts.map +1 -0
- package/esm/models/components/{skuinfo.js → sku.js} +67 -57
- package/esm/models/components/sku.js.map +1 -0
- package/esm/models/components/variant.d.ts +42 -72
- package/esm/models/components/variant.d.ts.map +1 -1
- package/esm/models/components/variant.js +39 -82
- package/esm/models/components/variant.js.map +1 -1
- package/esm/models/components/variantdetail.d.ts +101 -68
- package/esm/models/components/variantdetail.d.ts.map +1 -1
- package/esm/models/components/variantdetail.js +99 -71
- package/esm/models/components/variantdetail.js.map +1 -1
- package/esm/models/components/variantoption.d.ts +118 -0
- package/esm/models/components/variantoption.d.ts.map +1 -0
- package/esm/models/components/variantoption.js +114 -0
- package/esm/models/components/variantoption.js.map +1 -0
- package/esm/models/components/volumebasedpromotion.d.ts +0 -5
- package/esm/models/components/volumebasedpromotion.d.ts.map +1 -1
- package/esm/models/components/volumebasedpromotion.js +0 -4
- package/esm/models/components/volumebasedpromotion.js.map +1 -1
- package/esm/models/operations/getpromotions.d.ts +2 -2
- package/esm/models/operations/getpromotions.d.ts.map +1 -1
- package/esm/models/operations/getpromotions.js +2 -2
- package/esm/models/operations/getpromotions.js.map +1 -1
- package/esm/models/operations/getskus.d.ts +2 -2
- package/esm/models/operations/getskus.d.ts.map +1 -1
- package/esm/models/operations/getskus.js +2 -2
- package/esm/models/operations/getskus.js.map +1 -1
- package/esm/models/operations/getwishtlist.d.ts +2 -2
- package/esm/models/operations/getwishtlist.d.ts.map +1 -1
- package/esm/models/operations/getwishtlist.js +2 -2
- package/esm/models/operations/getwishtlist.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/analyticsevent.ts +16 -15
- package/src/models/components/associatedoption.ts +217 -0
- package/src/models/components/bundleproduct.ts +501 -0
- package/src/models/components/bundleproductdetail.ts +567 -0
- package/src/models/components/cart.ts +24 -24
- package/src/models/components/discountbasedpromotion.ts +0 -6
- package/src/models/components/fixedpricepromotion.ts +0 -6
- package/src/models/components/freegoodspromotion.ts +0 -9
- package/src/models/components/index.ts +8 -6
- package/src/models/components/productattribute.ts +162 -188
- package/src/models/components/productcategory.ts +4 -4
- package/src/models/components/productdetail.ts +52 -475
- package/src/models/components/productlistresponse.ts +147 -9
- package/src/models/components/productshipping.ts +27 -33
- package/src/models/components/{promotion.ts → promotiondetail.ts} +47 -45
- package/src/models/components/seo.ts +12 -25
- package/src/models/components/singleproduct.ts +269 -0
- package/src/models/components/singleproductdetail.ts +339 -0
- package/src/models/components/sku.ts +252 -0
- package/src/models/components/variant.ts +81 -170
- package/src/models/components/variantdetail.ts +189 -168
- package/src/models/components/variantoption.ts +214 -0
- package/src/models/components/volumebasedpromotion.ts +0 -9
- package/src/models/operations/getpromotions.ts +4 -4
- package/src/models/operations/getskus.ts +4 -4
- package/src/models/operations/getwishtlist.ts +4 -4
- package/esm/models/components/product.d.ts.map +0 -1
- package/esm/models/components/product.js.map +0 -1
- package/esm/models/components/productbundleitem.d.ts +0 -47
- package/esm/models/components/productbundleitem.d.ts.map +0 -1
- package/esm/models/components/productbundleitem.js +0 -66
- package/esm/models/components/productbundleitem.js.map +0 -1
- package/esm/models/components/productpackaging.d.ts +0 -68
- package/esm/models/components/productpackaging.d.ts.map +0 -1
- package/esm/models/components/productpackaging.js +0 -88
- package/esm/models/components/productpackaging.js.map +0 -1
- package/esm/models/components/promotion.d.ts.map +0 -1
- package/esm/models/components/promotion.js.map +0 -1
- package/esm/models/components/saleschannel.d.ts +0 -39
- package/esm/models/components/saleschannel.d.ts.map +0 -1
- package/esm/models/components/saleschannel.js +0 -53
- package/esm/models/components/saleschannel.js.map +0 -1
- package/esm/models/components/skuinfo.d.ts.map +0 -1
- package/esm/models/components/skuinfo.js.map +0 -1
- package/src/models/components/product.ts +0 -363
- package/src/models/components/productbundleitem.ts +0 -127
- package/src/models/components/productpackaging.ts +0 -162
- package/src/models/components/saleschannel.ts +0 -96
- package/src/models/components/skuinfo.ts +0 -237
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.
|
|
35
|
-
readonly genVersion: "2.495.
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.3.
|
|
34
|
+
readonly sdkVersion: "0.3.7";
|
|
35
|
+
readonly genVersion: "2.495.1";
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.3.7 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.
|
|
44
|
-
genVersion: "2.495.
|
|
45
|
-
userAgent: "speakeasy-sdk/typescript 0.3.
|
|
43
|
+
sdkVersion: "0.3.7",
|
|
44
|
+
genVersion: "2.495.1",
|
|
45
|
+
userAgent: "speakeasy-sdk/typescript 0.3.7 2.495.1 1.0 ce-storefront",
|
|
46
46
|
};
|
|
47
47
|
//# sourceMappingURL=config.js.map
|
|
@@ -2,10 +2,10 @@ import * as z from "zod";
|
|
|
2
2
|
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
|
-
export declare const
|
|
5
|
+
export declare const AnalyticsEventType: {
|
|
6
6
|
readonly Track: "track";
|
|
7
7
|
};
|
|
8
|
-
export type
|
|
8
|
+
export type AnalyticsEventType = ClosedEnum<typeof AnalyticsEventType>;
|
|
9
9
|
export declare const Channel: {
|
|
10
10
|
readonly Website: "website";
|
|
11
11
|
};
|
|
@@ -26,7 +26,7 @@ export type AnalyticsEvent = {
|
|
|
26
26
|
* event name
|
|
27
27
|
*/
|
|
28
28
|
event: string;
|
|
29
|
-
type:
|
|
29
|
+
type: AnalyticsEventType;
|
|
30
30
|
/**
|
|
31
31
|
* commercengine user id
|
|
32
32
|
*/
|
|
@@ -51,19 +51,19 @@ export type AnalyticsEvent = {
|
|
|
51
51
|
sentAt: Date;
|
|
52
52
|
};
|
|
53
53
|
/** @internal */
|
|
54
|
-
export declare const
|
|
54
|
+
export declare const AnalyticsEventType$inboundSchema: z.ZodNativeEnum<typeof AnalyticsEventType>;
|
|
55
55
|
/** @internal */
|
|
56
|
-
export declare const
|
|
56
|
+
export declare const AnalyticsEventType$outboundSchema: z.ZodNativeEnum<typeof AnalyticsEventType>;
|
|
57
57
|
/**
|
|
58
58
|
* @internal
|
|
59
59
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
60
60
|
*/
|
|
61
|
-
export declare namespace
|
|
62
|
-
/** @deprecated use `
|
|
61
|
+
export declare namespace AnalyticsEventType$ {
|
|
62
|
+
/** @deprecated use `AnalyticsEventType$inboundSchema` instead. */
|
|
63
63
|
const inboundSchema: z.ZodNativeEnum<{
|
|
64
64
|
readonly Track: "track";
|
|
65
65
|
}>;
|
|
66
|
-
/** @deprecated use `
|
|
66
|
+
/** @deprecated use `AnalyticsEventType$outboundSchema` instead. */
|
|
67
67
|
const outboundSchema: z.ZodNativeEnum<{
|
|
68
68
|
readonly Track: "track";
|
|
69
69
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analyticsevent.d.ts","sourceRoot":"","sources":["../../../src/models/components/analyticsevent.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"analyticsevent.d.ts","sourceRoot":"","sources":["../../../src/models/components/analyticsevent.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,eAAO,MAAM,kBAAkB;;CAErB,CAAC;AACX,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEvE,eAAO,MAAM,OAAO;;CAEV,CAAC;AACX,MAAM,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC;AAEjD,MAAM,MAAM,OAAO,GAAG;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,EAAE,CAAC;AAE5B;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,kBAAkB,CAAC;IACzB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,UAAU,EAAE,UAAU,CAAC;IACvB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;OAEG;IACH,MAAM,EAAE,IAAI,CAAC;CACd,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,aAAa,CAC5D,OAAO,kBAAk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AO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,uBAAuB,EACvB,CAAC,CAAC,UAAU,EACZ,cAAc,CAWd,CAAC;AAEH;;;GAGG;AACH,yBAAiB,eAAe,CAAC;IAC/B,8DAA8D;IACvD,MAAM,aAAa,kDAA+B,CAAC;IAC1D,+DAA+D;IACxD,MAAM,cAAc,kEAAgC,CAAC;IAC5D,yDAAyD;IACzD,KAAY,QAAQ,GAAG,uBAAuB,CAAC;CAChD;AAED,wBAAgB,oBAAoB,CAAC,cAAc,EAAE,cAAc,GAAG,MAAM,CAE3E;AAED,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAMrD"}
|
|
@@ -3,27 +3,27 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as z from "zod";
|
|
5
5
|
import { safeParse } from "../../lib/schemas.js";
|
|
6
|
-
export const
|
|
6
|
+
export const AnalyticsEventType = {
|
|
7
7
|
Track: "track",
|
|
8
8
|
};
|
|
9
9
|
export const Channel = {
|
|
10
10
|
Website: "website",
|
|
11
11
|
};
|
|
12
12
|
/** @internal */
|
|
13
|
-
export const
|
|
13
|
+
export const AnalyticsEventType$inboundSchema = z.nativeEnum(AnalyticsEventType);
|
|
14
14
|
/** @internal */
|
|
15
|
-
export const
|
|
15
|
+
export const AnalyticsEventType$outboundSchema = AnalyticsEventType$inboundSchema;
|
|
16
16
|
/**
|
|
17
17
|
* @internal
|
|
18
18
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
19
19
|
*/
|
|
20
|
-
export var
|
|
21
|
-
(function (
|
|
22
|
-
/** @deprecated use `
|
|
23
|
-
|
|
24
|
-
/** @deprecated use `
|
|
25
|
-
|
|
26
|
-
})(
|
|
20
|
+
export var AnalyticsEventType$;
|
|
21
|
+
(function (AnalyticsEventType$) {
|
|
22
|
+
/** @deprecated use `AnalyticsEventType$inboundSchema` instead. */
|
|
23
|
+
AnalyticsEventType$.inboundSchema = AnalyticsEventType$inboundSchema;
|
|
24
|
+
/** @deprecated use `AnalyticsEventType$outboundSchema` instead. */
|
|
25
|
+
AnalyticsEventType$.outboundSchema = AnalyticsEventType$outboundSchema;
|
|
26
|
+
})(AnalyticsEventType$ || (AnalyticsEventType$ = {}));
|
|
27
27
|
/** @internal */
|
|
28
28
|
export const Channel$inboundSchema = z
|
|
29
29
|
.nativeEnum(Channel);
|
|
@@ -91,7 +91,7 @@ export function propertiesFromJSON(jsonString) {
|
|
|
91
91
|
/** @internal */
|
|
92
92
|
export const AnalyticsEvent$inboundSchema = z.object({
|
|
93
93
|
event: z.string(),
|
|
94
|
-
type:
|
|
94
|
+
type: AnalyticsEventType$inboundSchema,
|
|
95
95
|
userId: z.string(),
|
|
96
96
|
channel: Channel$inboundSchema,
|
|
97
97
|
context: z.lazy(() => Context$inboundSchema),
|
|
@@ -103,7 +103,7 @@ export const AnalyticsEvent$inboundSchema = z.object({
|
|
|
103
103
|
/** @internal */
|
|
104
104
|
export const AnalyticsEvent$outboundSchema = z.object({
|
|
105
105
|
event: z.string(),
|
|
106
|
-
type:
|
|
106
|
+
type: AnalyticsEventType$outboundSchema,
|
|
107
107
|
userId: z.string(),
|
|
108
108
|
channel: Channel$outboundSchema,
|
|
109
109
|
context: z.lazy(() => Context$outboundSchema),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analyticsevent.js","sourceRoot":"","sources":["../../../src/models/components/analyticsevent.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAKjD,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"analyticsevent.js","sourceRoot":"","sources":["../../../src/models/components/analyticsevent.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,O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C,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,yBAAyB,CAAC;IACnD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IACnD,MAAM,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;CACjD,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,eAAe,CAO/B;AAPD,WAAiB,eAAe;IAC9B,8DAA8D;IACjD,6BAAa,GAAG,4BAA4B,CAAC;IAC1D,+DAA+D;IAClD,8BAAc,GAAG,6BAA6B,CAAC;AAG9D,CAAC,EAPgB,eAAe,KAAf,eAAe,QAO/B;AAED,MAAM,UAAU,oBAAoB,CAAC,cAA8B;IACjE,OAAO,IAAI,CAAC,SAAS,CAAC,6BAA6B,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC;AAC7E,CAAC;AAED,MAAM,UAAU,sBAAsB,CACpC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,4BAA4B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACxD,4CAA4C,CAC7C,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,125 @@
|
|
|
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
|
+
export type Color = {
|
|
6
|
+
/**
|
|
7
|
+
* The name of the color.
|
|
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
|
+
}
|
|
101
|
+
/** @internal */
|
|
102
|
+
export declare const AssociatedOption$inboundSchema: z.ZodType<AssociatedOption, z.ZodTypeDef, unknown>;
|
|
103
|
+
/** @internal */
|
|
104
|
+
export type AssociatedOption$Outbound = {
|
|
105
|
+
name?: string | undefined;
|
|
106
|
+
value?: Color$Outbound | string | undefined;
|
|
107
|
+
type?: string | undefined;
|
|
108
|
+
};
|
|
109
|
+
/** @internal */
|
|
110
|
+
export declare const AssociatedOption$outboundSchema: z.ZodType<AssociatedOption$Outbound, z.ZodTypeDef, AssociatedOption>;
|
|
111
|
+
/**
|
|
112
|
+
* @internal
|
|
113
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
114
|
+
*/
|
|
115
|
+
export declare namespace AssociatedOption$ {
|
|
116
|
+
/** @deprecated use `AssociatedOption$inboundSchema` instead. */
|
|
117
|
+
const inboundSchema: z.ZodType<AssociatedOption, z.ZodTypeDef, unknown>;
|
|
118
|
+
/** @deprecated use `AssociatedOption$outboundSchema` instead. */
|
|
119
|
+
const outboundSchema: z.ZodType<AssociatedOption$Outbound, z.ZodTypeDef, AssociatedOption>;
|
|
120
|
+
/** @deprecated use `AssociatedOption$Outbound` instead. */
|
|
121
|
+
type Outbound = AssociatedOption$Outbound;
|
|
122
|
+
}
|
|
123
|
+
export declare function associatedOptionToJSON(associatedOption: AssociatedOption): string;
|
|
124
|
+
export declare function associatedOptionFromJSON(jsonString: string): SafeParseResult<AssociatedOption, SDKValidationError>;
|
|
125
|
+
//# sourceMappingURL=associatedoption.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"associatedoption.d.ts","sourceR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GAGG;AACH,yBAAiB,KAAK,CAAC;IACrB,oDAAoD;IAC7C,MAAM,aAAa;;;MAAqB,CAAC;IAChD,qDAAqD;IAC9C,MAAM,cAAc;;;MAAsB,CAAC;CACnD;AAED,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,gBAAgB,EAChB,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,yBAAyB,GAAG;IACtC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,cAAc,GAAG,MAAM,GAAG,SAAS,CAAC;IAC5C,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CACrD,yBAAyB,EACzB,CAAC,CAAC,UAAU,EACZ,gBAAgB,CAKhB,CAAC;AAEH;;;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"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod";
|
|
5
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
6
|
+
/**
|
|
7
|
+
* The type of the associated option.
|
|
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$ = {}));
|
|
78
|
+
/** @internal */
|
|
79
|
+
export const AssociatedOption$inboundSchema = z.object({
|
|
80
|
+
name: z.string().optional(),
|
|
81
|
+
value: z.union([z.lazy(() => Color$inboundSchema), z.string()]).optional(),
|
|
82
|
+
type: Type$inboundSchema.optional(),
|
|
83
|
+
});
|
|
84
|
+
/** @internal */
|
|
85
|
+
export const AssociatedOption$outboundSchema = z.object({
|
|
86
|
+
name: z.string().optional(),
|
|
87
|
+
value: z.union([z.lazy(() => Color$outboundSchema), z.string()]).optional(),
|
|
88
|
+
type: Type$outboundSchema.optional(),
|
|
89
|
+
});
|
|
90
|
+
/**
|
|
91
|
+
* @internal
|
|
92
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
93
|
+
*/
|
|
94
|
+
export var AssociatedOption$;
|
|
95
|
+
(function (AssociatedOption$) {
|
|
96
|
+
/** @deprecated use `AssociatedOption$inboundSchema` instead. */
|
|
97
|
+
AssociatedOption$.inboundSchema = AssociatedOption$inboundSchema;
|
|
98
|
+
/** @deprecated use `AssociatedOption$outboundSchema` instead. */
|
|
99
|
+
AssociatedOption$.outboundSchema = AssociatedOption$outboundSchema;
|
|
100
|
+
})(AssociatedOption$ || (AssociatedOption$ = {}));
|
|
101
|
+
export function associatedOptionToJSON(associatedOption) {
|
|
102
|
+
return JSON.stringify(AssociatedOption$outboundSchema.parse(associatedOption));
|
|
103
|
+
}
|
|
104
|
+
export function associatedOptionFromJSON(jsonString) {
|
|
105
|
+
return safeParse(jsonString, (x) => AssociatedOption$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AssociatedOption' from JSON`);
|
|
106
|
+
}
|
|
107
|
+
//# sourceMappingURL=associatedoption.js.map
|
|
@@ -0,0 +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;AAkBjD;;GAEG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,KAAK,EAAE,OAAO;IACd,YAAY,EAAE,eAAe;CACrB,CAAC;AAkBX,gBAAgB;AAChB,MAAM,CAAC,MAAM,mBAAmB,GAA4C,CAAC;KAC1E,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAC;AAQL,gBAAgB;AAChB,MAAM,C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C,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,oBAAoB,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC3E,IAAI,EAAE,mBAAmB,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC;AAEH;;;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"}
|
|
@@ -0,0 +1,236 @@
|
|
|
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
|
+
import { VariantOption, VariantOption$Outbound } from "./variantoption.js";
|
|
12
|
+
export declare const BundleProductProductType: {
|
|
13
|
+
readonly Physical: "physical";
|
|
14
|
+
readonly Digital: "digital";
|
|
15
|
+
readonly Bundle: "bundle";
|
|
16
|
+
};
|
|
17
|
+
export type BundleProductProductType = ClosedEnum<typeof BundleProductProductType>;
|
|
18
|
+
export declare const BundleProductBundleItemsProductType: {
|
|
19
|
+
readonly Physical: "physical";
|
|
20
|
+
readonly Digital: "digital";
|
|
21
|
+
readonly Bundle: "bundle";
|
|
22
|
+
};
|
|
23
|
+
export type BundleProductBundleItemsProductType = ClosedEnum<typeof BundleProductBundleItemsProductType>;
|
|
24
|
+
export type BundleProductSKU = {
|
|
25
|
+
quantity: number;
|
|
26
|
+
productId: string;
|
|
27
|
+
variantId?: string | null | undefined;
|
|
28
|
+
sku: string;
|
|
29
|
+
slug?: string | undefined;
|
|
30
|
+
productName: string;
|
|
31
|
+
variantName?: string | null | undefined;
|
|
32
|
+
productType: BundleProductBundleItemsProductType;
|
|
33
|
+
shortDescription?: string | undefined;
|
|
34
|
+
active?: boolean | undefined;
|
|
35
|
+
stockAvailable?: boolean | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Indicates whether this item is associated with any active (product-specific) coupons
|
|
38
|
+
*/
|
|
39
|
+
onOffer?: boolean | undefined;
|
|
40
|
+
onSubscription?: boolean | undefined;
|
|
41
|
+
onPromotion?: boolean | undefined;
|
|
42
|
+
categoryIds?: Array<string> | undefined;
|
|
43
|
+
tags?: Array<string> | undefined;
|
|
44
|
+
reviewsCount?: number | undefined;
|
|
45
|
+
reviewsRatingSum?: number | undefined;
|
|
46
|
+
attributes?: Array<ProductAttribute> | undefined;
|
|
47
|
+
images?: Array<ProductImage> | undefined;
|
|
48
|
+
pricing?: ProductPricing | undefined;
|
|
49
|
+
promotion?: ProductPromotion | null | undefined;
|
|
50
|
+
subscription?: Array<ProductSubscription> | undefined;
|
|
51
|
+
associatedOptions?: {
|
|
52
|
+
[k: string]: AssociatedOption;
|
|
53
|
+
} | null | undefined;
|
|
54
|
+
};
|
|
55
|
+
export type BundleProduct = {
|
|
56
|
+
/**
|
|
57
|
+
* The ULID of the product
|
|
58
|
+
*/
|
|
59
|
+
id: string;
|
|
60
|
+
sku?: string | undefined;
|
|
61
|
+
name: string;
|
|
62
|
+
slug: string;
|
|
63
|
+
shortDescription?: string | undefined;
|
|
64
|
+
productType: BundleProductProductType;
|
|
65
|
+
active?: boolean | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* Indicates whether the product has stock available
|
|
68
|
+
*/
|
|
69
|
+
stockAvailable?: boolean | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* Indicates whether this item is associated with any active (product-specific) coupons
|
|
72
|
+
*/
|
|
73
|
+
onOffer?: boolean | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* Indicates whether the product has any subscription plans avaialble
|
|
76
|
+
*/
|
|
77
|
+
onSubscription?: boolean | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* Indicates whether the product is currently on promotion. When true, the `ProductPromotion` object will contain details of the promotion
|
|
80
|
+
*/
|
|
81
|
+
onPromotion?: boolean | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* Indicates whether the product has variants
|
|
84
|
+
*/
|
|
85
|
+
hasVariant?: boolean | undefined;
|
|
86
|
+
tags?: Array<string> | null | undefined;
|
|
87
|
+
categoryIds?: Array<string> | undefined;
|
|
88
|
+
reviewsRatingSum?: number | undefined;
|
|
89
|
+
reviewsCount?: number | undefined;
|
|
90
|
+
attributes?: Array<ProductAttribute> | undefined;
|
|
91
|
+
pricing?: ProductPricing | undefined;
|
|
92
|
+
/**
|
|
93
|
+
* this will be used if has_variant is true, to auto set default values.
|
|
94
|
+
*/
|
|
95
|
+
variantOptions?: Array<VariantOption> | null | undefined;
|
|
96
|
+
promotion?: ProductPromotion | null | undefined;
|
|
97
|
+
images?: Array<ProductImage> | undefined;
|
|
98
|
+
subscription?: Array<ProductSubscription> | undefined;
|
|
99
|
+
bundleItems?: Array<BundleProductSKU> | undefined;
|
|
100
|
+
};
|
|
101
|
+
/** @internal */
|
|
102
|
+
export declare const BundleProductProductType$inboundSchema: z.ZodNativeEnum<typeof BundleProductProductType>;
|
|
103
|
+
/** @internal */
|
|
104
|
+
export declare const BundleProductProductType$outboundSchema: z.ZodNativeEnum<typeof BundleProductProductType>;
|
|
105
|
+
/**
|
|
106
|
+
* @internal
|
|
107
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
108
|
+
*/
|
|
109
|
+
export declare namespace BundleProductProductType$ {
|
|
110
|
+
/** @deprecated use `BundleProductProductType$inboundSchema` instead. */
|
|
111
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
112
|
+
readonly Physical: "physical";
|
|
113
|
+
readonly Digital: "digital";
|
|
114
|
+
readonly Bundle: "bundle";
|
|
115
|
+
}>;
|
|
116
|
+
/** @deprecated use `BundleProductProductType$outboundSchema` instead. */
|
|
117
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
118
|
+
readonly Physical: "physical";
|
|
119
|
+
readonly Digital: "digital";
|
|
120
|
+
readonly Bundle: "bundle";
|
|
121
|
+
}>;
|
|
122
|
+
}
|
|
123
|
+
/** @internal */
|
|
124
|
+
export declare const BundleProductBundleItemsProductType$inboundSchema: z.ZodNativeEnum<typeof BundleProductBundleItemsProductType>;
|
|
125
|
+
/** @internal */
|
|
126
|
+
export declare const BundleProductBundleItemsProductType$outboundSchema: z.ZodNativeEnum<typeof BundleProductBundleItemsProductType>;
|
|
127
|
+
/**
|
|
128
|
+
* @internal
|
|
129
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
130
|
+
*/
|
|
131
|
+
export declare namespace BundleProductBundleItemsProductType$ {
|
|
132
|
+
/** @deprecated use `BundleProductBundleItemsProductType$inboundSchema` instead. */
|
|
133
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
134
|
+
readonly Physical: "physical";
|
|
135
|
+
readonly Digital: "digital";
|
|
136
|
+
readonly Bundle: "bundle";
|
|
137
|
+
}>;
|
|
138
|
+
/** @deprecated use `BundleProductBundleItemsProductType$outboundSchema` instead. */
|
|
139
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
140
|
+
readonly Physical: "physical";
|
|
141
|
+
readonly Digital: "digital";
|
|
142
|
+
readonly Bundle: "bundle";
|
|
143
|
+
}>;
|
|
144
|
+
}
|
|
145
|
+
/** @internal */
|
|
146
|
+
export declare const BundleProductSKU$inboundSchema: z.ZodType<BundleProductSKU, z.ZodTypeDef, unknown>;
|
|
147
|
+
/** @internal */
|
|
148
|
+
export type BundleProductSKU$Outbound = {
|
|
149
|
+
quantity: number;
|
|
150
|
+
product_id: string;
|
|
151
|
+
variant_id?: string | null | undefined;
|
|
152
|
+
sku: string;
|
|
153
|
+
slug?: string | undefined;
|
|
154
|
+
product_name: string;
|
|
155
|
+
variant_name?: string | null | undefined;
|
|
156
|
+
product_type: string;
|
|
157
|
+
short_description?: string | undefined;
|
|
158
|
+
active: boolean;
|
|
159
|
+
stock_available: boolean;
|
|
160
|
+
on_offer: boolean;
|
|
161
|
+
on_subscription: boolean;
|
|
162
|
+
on_promotion: boolean;
|
|
163
|
+
category_ids?: Array<string> | undefined;
|
|
164
|
+
tags?: Array<string> | undefined;
|
|
165
|
+
reviews_count?: number | undefined;
|
|
166
|
+
reviews_rating_sum?: number | undefined;
|
|
167
|
+
attributes?: Array<ProductAttribute$Outbound> | undefined;
|
|
168
|
+
images?: Array<ProductImage$Outbound> | undefined;
|
|
169
|
+
pricing?: ProductPricing$Outbound | undefined;
|
|
170
|
+
promotion?: ProductPromotion$Outbound | null | undefined;
|
|
171
|
+
subscription?: Array<ProductSubscription$Outbound> | undefined;
|
|
172
|
+
associated_options?: {
|
|
173
|
+
[k: string]: AssociatedOption$Outbound;
|
|
174
|
+
} | null | undefined;
|
|
175
|
+
};
|
|
176
|
+
/** @internal */
|
|
177
|
+
export declare const BundleProductSKU$outboundSchema: z.ZodType<BundleProductSKU$Outbound, z.ZodTypeDef, BundleProductSKU>;
|
|
178
|
+
/**
|
|
179
|
+
* @internal
|
|
180
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
181
|
+
*/
|
|
182
|
+
export declare namespace BundleProductSKU$ {
|
|
183
|
+
/** @deprecated use `BundleProductSKU$inboundSchema` instead. */
|
|
184
|
+
const inboundSchema: z.ZodType<BundleProductSKU, z.ZodTypeDef, unknown>;
|
|
185
|
+
/** @deprecated use `BundleProductSKU$outboundSchema` instead. */
|
|
186
|
+
const outboundSchema: z.ZodType<BundleProductSKU$Outbound, z.ZodTypeDef, BundleProductSKU>;
|
|
187
|
+
/** @deprecated use `BundleProductSKU$Outbound` instead. */
|
|
188
|
+
type Outbound = BundleProductSKU$Outbound;
|
|
189
|
+
}
|
|
190
|
+
export declare function bundleProductSKUToJSON(bundleProductSKU: BundleProductSKU): string;
|
|
191
|
+
export declare function bundleProductSKUFromJSON(jsonString: string): SafeParseResult<BundleProductSKU, SDKValidationError>;
|
|
192
|
+
/** @internal */
|
|
193
|
+
export declare const BundleProduct$inboundSchema: z.ZodType<BundleProduct, z.ZodTypeDef, unknown>;
|
|
194
|
+
/** @internal */
|
|
195
|
+
export type BundleProduct$Outbound = {
|
|
196
|
+
id: string;
|
|
197
|
+
sku?: string | undefined;
|
|
198
|
+
name: string;
|
|
199
|
+
slug: string;
|
|
200
|
+
short_description?: string | undefined;
|
|
201
|
+
product_type: string;
|
|
202
|
+
active: boolean;
|
|
203
|
+
stock_available: boolean;
|
|
204
|
+
on_offer: boolean;
|
|
205
|
+
on_subscription: boolean;
|
|
206
|
+
on_promotion: boolean;
|
|
207
|
+
has_variant: boolean;
|
|
208
|
+
tags?: Array<string> | null | undefined;
|
|
209
|
+
category_ids?: Array<string> | undefined;
|
|
210
|
+
reviews_rating_sum?: number | undefined;
|
|
211
|
+
reviews_count?: number | undefined;
|
|
212
|
+
attributes?: Array<ProductAttribute$Outbound> | undefined;
|
|
213
|
+
pricing?: ProductPricing$Outbound | undefined;
|
|
214
|
+
variant_options?: Array<VariantOption$Outbound> | null | undefined;
|
|
215
|
+
promotion?: ProductPromotion$Outbound | null | undefined;
|
|
216
|
+
images?: Array<ProductImage$Outbound> | undefined;
|
|
217
|
+
subscription?: Array<ProductSubscription$Outbound> | undefined;
|
|
218
|
+
bundle_items?: Array<BundleProductSKU$Outbound> | undefined;
|
|
219
|
+
};
|
|
220
|
+
/** @internal */
|
|
221
|
+
export declare const BundleProduct$outboundSchema: z.ZodType<BundleProduct$Outbound, z.ZodTypeDef, BundleProduct>;
|
|
222
|
+
/**
|
|
223
|
+
* @internal
|
|
224
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
225
|
+
*/
|
|
226
|
+
export declare namespace BundleProduct$ {
|
|
227
|
+
/** @deprecated use `BundleProduct$inboundSchema` instead. */
|
|
228
|
+
const inboundSchema: z.ZodType<BundleProduct, z.ZodTypeDef, unknown>;
|
|
229
|
+
/** @deprecated use `BundleProduct$outboundSchema` instead. */
|
|
230
|
+
const outboundSchema: z.ZodType<BundleProduct$Outbound, z.ZodTypeDef, BundleProduct>;
|
|
231
|
+
/** @deprecated use `BundleProduct$Outbound` instead. */
|
|
232
|
+
type Outbound = BundleProduct$Outbound;
|
|
233
|
+
}
|
|
234
|
+
export declare function bundleProductToJSON(bundleProduct: BundleProduct): string;
|
|
235
|
+
export declare function bundleProductFromJSON(jsonString: string): SafeParseResult<BundleProduct, SDKValidationError>;
|
|
236
|
+
//# sourceMappingURL=bundleproduct.d.ts.map
|