ce-storefront 0.7.0 → 0.7.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/booleanattribute.d.ts +46 -0
- package/esm/models/components/booleanattribute.d.ts.map +1 -0
- package/esm/models/components/booleanattribute.js +39 -0
- package/esm/models/components/booleanattribute.js.map +1 -0
- package/esm/models/components/colorattribute.d.ts +73 -0
- package/esm/models/components/colorattribute.d.ts.map +1 -0
- package/esm/models/components/colorattribute.js +67 -0
- package/esm/models/components/colorattribute.js.map +1 -0
- package/esm/models/components/dateattribute.d.ts +46 -0
- package/esm/models/components/dateattribute.d.ts.map +1 -0
- package/esm/models/components/dateattribute.js +39 -0
- package/esm/models/components/dateattribute.js.map +1 -0
- package/esm/models/components/index.d.ts +7 -0
- package/esm/models/components/index.d.ts.map +1 -1
- package/esm/models/components/index.js +7 -0
- package/esm/models/components/index.js.map +1 -1
- package/esm/models/components/multiselectattribute.d.ts +46 -0
- package/esm/models/components/multiselectattribute.d.ts.map +1 -0
- package/esm/models/components/multiselectattribute.js +39 -0
- package/esm/models/components/multiselectattribute.js.map +1 -0
- package/esm/models/components/numberattribute.d.ts +46 -0
- package/esm/models/components/numberattribute.d.ts.map +1 -0
- package/esm/models/components/numberattribute.js +39 -0
- package/esm/models/components/numberattribute.js.map +1 -0
- package/esm/models/components/productattribute.d.ts +11 -315
- package/esm/models/components/productattribute.d.ts.map +1 -1
- package/esm/models/components/productattribute.js +25 -237
- package/esm/models/components/productattribute.js.map +1 -1
- package/esm/models/components/singleselectattribute.d.ts +46 -0
- package/esm/models/components/singleselectattribute.d.ts.map +1 -0
- package/esm/models/components/singleselectattribute.js +39 -0
- package/esm/models/components/singleselectattribute.js.map +1 -0
- package/esm/models/components/textattribute.d.ts +46 -0
- package/esm/models/components/textattribute.d.ts.map +1 -0
- package/esm/models/components/textattribute.js +39 -0
- package/esm/models/components/textattribute.js.map +1 -0
- package/esm/models/components/variantoption.d.ts +13 -13
- package/esm/models/components/variantoption.d.ts.map +1 -1
- package/esm/models/components/variantoption.js +13 -14
- package/esm/models/components/variantoption.js.map +1 -1
- package/esm/models/operations/listproducts.d.ts.map +1 -1
- package/esm/models/operations/listproducts.js +11 -7
- package/esm/models/operations/listproducts.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/booleanattribute.ts +91 -0
- package/src/models/components/colorattribute.ts +142 -0
- package/src/models/components/dateattribute.ts +87 -0
- package/src/models/components/index.ts +7 -0
- package/src/models/components/multiselectattribute.ts +91 -0
- package/src/models/components/numberattribute.ts +89 -0
- package/src/models/components/productattribute.ts +68 -596
- package/src/models/components/singleselectattribute.ts +91 -0
- package/src/models/components/textattribute.ts +87 -0
- package/src/models/components/variantoption.ts +27 -20
- package/src/models/operations/listproducts.ts +38 -34
package/esm/lib/config.d.ts
CHANGED
|
@@ -42,8 +42,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
42
42
|
export declare const SDK_METADATA: {
|
|
43
43
|
readonly language: "typescript";
|
|
44
44
|
readonly openapiDocVersion: "1.0";
|
|
45
|
-
readonly sdkVersion: "0.7.
|
|
45
|
+
readonly sdkVersion: "0.7.2";
|
|
46
46
|
readonly genVersion: "2.506.0";
|
|
47
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.7.
|
|
47
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.7.2 2.506.0 1.0 ce-storefront";
|
|
48
48
|
};
|
|
49
49
|
//# sourceMappingURL=config.d.ts.map
|
package/esm/lib/config.js
CHANGED
|
@@ -39,8 +39,8 @@ export function serverURLFromOptions(options) {
|
|
|
39
39
|
export const SDK_METADATA = {
|
|
40
40
|
language: "typescript",
|
|
41
41
|
openapiDocVersion: "1.0",
|
|
42
|
-
sdkVersion: "0.7.
|
|
42
|
+
sdkVersion: "0.7.2",
|
|
43
43
|
genVersion: "2.506.0",
|
|
44
|
-
userAgent: "speakeasy-sdk/typescript 0.7.
|
|
44
|
+
userAgent: "speakeasy-sdk/typescript 0.7.2 2.506.0 1.0 ce-storefront",
|
|
45
45
|
};
|
|
46
46
|
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
/**
|
|
5
|
+
* Attribute for boolean values
|
|
6
|
+
*/
|
|
7
|
+
export type BooleanAttribute = {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
/**
|
|
11
|
+
* A lookup safe version of the name that is lowercased and spaces are replaced with underscores. For instance, if name is `Product Type`, key will be `product_type`
|
|
12
|
+
*/
|
|
13
|
+
key: string;
|
|
14
|
+
type: string;
|
|
15
|
+
/**
|
|
16
|
+
* For boolean attributes
|
|
17
|
+
*/
|
|
18
|
+
value: boolean;
|
|
19
|
+
};
|
|
20
|
+
/** @internal */
|
|
21
|
+
export declare const BooleanAttribute$inboundSchema: z.ZodType<BooleanAttribute, z.ZodTypeDef, unknown>;
|
|
22
|
+
/** @internal */
|
|
23
|
+
export type BooleanAttribute$Outbound = {
|
|
24
|
+
id: string;
|
|
25
|
+
name: string;
|
|
26
|
+
key: string;
|
|
27
|
+
type: string;
|
|
28
|
+
value: boolean;
|
|
29
|
+
};
|
|
30
|
+
/** @internal */
|
|
31
|
+
export declare const BooleanAttribute$outboundSchema: z.ZodType<BooleanAttribute$Outbound, z.ZodTypeDef, BooleanAttribute>;
|
|
32
|
+
/**
|
|
33
|
+
* @internal
|
|
34
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
35
|
+
*/
|
|
36
|
+
export declare namespace BooleanAttribute$ {
|
|
37
|
+
/** @deprecated use `BooleanAttribute$inboundSchema` instead. */
|
|
38
|
+
const inboundSchema: z.ZodType<BooleanAttribute, z.ZodTypeDef, unknown>;
|
|
39
|
+
/** @deprecated use `BooleanAttribute$outboundSchema` instead. */
|
|
40
|
+
const outboundSchema: z.ZodType<BooleanAttribute$Outbound, z.ZodTypeDef, BooleanAttribute>;
|
|
41
|
+
/** @deprecated use `BooleanAttribute$Outbound` instead. */
|
|
42
|
+
type Outbound = BooleanAttribute$Outbound;
|
|
43
|
+
}
|
|
44
|
+
export declare function booleanAttributeToJSON(booleanAttribute: BooleanAttribute): string;
|
|
45
|
+
export declare function booleanAttributeFromJSON(jsonString: string): SafeParseResult<BooleanAttribute, SDKValidationError>;
|
|
46
|
+
//# sourceMappingURL=booleanattribute.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"booleanattribute.d.ts","sourceRoot":"","sources":["../../../src/models/components/booleanattribute.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,gBAAgB,EAChB,CAAC,CAAC,UAAU,EACZ,OAAO,CAOP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,yBAAyB,GAAG;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CACrD,yBAAyB,EACzB,CAAC,CAAC,UAAU,EACZ,gBAAgB,CAOhB,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,39 @@
|
|
|
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
|
+
/** @internal */
|
|
7
|
+
export const BooleanAttribute$inboundSchema = z.object({
|
|
8
|
+
id: z.string(),
|
|
9
|
+
name: z.string(),
|
|
10
|
+
key: z.string(),
|
|
11
|
+
type: z.string(),
|
|
12
|
+
value: z.boolean(),
|
|
13
|
+
});
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const BooleanAttribute$outboundSchema = z.object({
|
|
16
|
+
id: z.string(),
|
|
17
|
+
name: z.string(),
|
|
18
|
+
key: z.string(),
|
|
19
|
+
type: z.string(),
|
|
20
|
+
value: z.boolean(),
|
|
21
|
+
});
|
|
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 BooleanAttribute$;
|
|
27
|
+
(function (BooleanAttribute$) {
|
|
28
|
+
/** @deprecated use `BooleanAttribute$inboundSchema` instead. */
|
|
29
|
+
BooleanAttribute$.inboundSchema = BooleanAttribute$inboundSchema;
|
|
30
|
+
/** @deprecated use `BooleanAttribute$outboundSchema` instead. */
|
|
31
|
+
BooleanAttribute$.outboundSchema = BooleanAttribute$outboundSchema;
|
|
32
|
+
})(BooleanAttribute$ || (BooleanAttribute$ = {}));
|
|
33
|
+
export function booleanAttributeToJSON(booleanAttribute) {
|
|
34
|
+
return JSON.stringify(BooleanAttribute$outboundSchema.parse(booleanAttribute));
|
|
35
|
+
}
|
|
36
|
+
export function booleanAttributeFromJSON(jsonString) {
|
|
37
|
+
return safeParse(jsonString, (x) => BooleanAttribute$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BooleanAttribute' from JSON`);
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=booleanattribute.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"booleanattribute.js","sourceRoot":"","sources":["../../../src/models/components/booleanattribute.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAqBjD,gBAAgB;AAChB,MAAM,CAAC,MAAM,8BAA8B,GAIvC,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE;CACnB,CAAC,CAAC;AAWH,gBAAgB;AAChB,MAAM,CAAC,MAAM,+BAA+B,GAIxC,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE;CACnB,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,73 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
export type Value = {
|
|
5
|
+
name: string;
|
|
6
|
+
/**
|
|
7
|
+
* The hex code of the color (e.g., #000000).
|
|
8
|
+
*/
|
|
9
|
+
hexcode: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Attribute for colors
|
|
13
|
+
*/
|
|
14
|
+
export type ColorAttribute = {
|
|
15
|
+
id: string;
|
|
16
|
+
name: string;
|
|
17
|
+
/**
|
|
18
|
+
* A lookup safe version of the name that is lowercased and spaces are replaced with underscores. For instance, if name is `Product Type`, key will be `product_type`
|
|
19
|
+
*/
|
|
20
|
+
key: string;
|
|
21
|
+
type: string;
|
|
22
|
+
value: Array<Value>;
|
|
23
|
+
};
|
|
24
|
+
/** @internal */
|
|
25
|
+
export declare const Value$inboundSchema: z.ZodType<Value, z.ZodTypeDef, unknown>;
|
|
26
|
+
/** @internal */
|
|
27
|
+
export type Value$Outbound = {
|
|
28
|
+
name: string;
|
|
29
|
+
hexcode: string;
|
|
30
|
+
};
|
|
31
|
+
/** @internal */
|
|
32
|
+
export declare const Value$outboundSchema: z.ZodType<Value$Outbound, z.ZodTypeDef, Value>;
|
|
33
|
+
/**
|
|
34
|
+
* @internal
|
|
35
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
36
|
+
*/
|
|
37
|
+
export declare namespace Value$ {
|
|
38
|
+
/** @deprecated use `Value$inboundSchema` instead. */
|
|
39
|
+
const inboundSchema: z.ZodType<Value, z.ZodTypeDef, unknown>;
|
|
40
|
+
/** @deprecated use `Value$outboundSchema` instead. */
|
|
41
|
+
const outboundSchema: z.ZodType<Value$Outbound, z.ZodTypeDef, Value>;
|
|
42
|
+
/** @deprecated use `Value$Outbound` instead. */
|
|
43
|
+
type Outbound = Value$Outbound;
|
|
44
|
+
}
|
|
45
|
+
export declare function valueToJSON(value: Value): string;
|
|
46
|
+
export declare function valueFromJSON(jsonString: string): SafeParseResult<Value, SDKValidationError>;
|
|
47
|
+
/** @internal */
|
|
48
|
+
export declare const ColorAttribute$inboundSchema: z.ZodType<ColorAttribute, z.ZodTypeDef, unknown>;
|
|
49
|
+
/** @internal */
|
|
50
|
+
export type ColorAttribute$Outbound = {
|
|
51
|
+
id: string;
|
|
52
|
+
name: string;
|
|
53
|
+
key: string;
|
|
54
|
+
type: string;
|
|
55
|
+
value: Array<Value$Outbound>;
|
|
56
|
+
};
|
|
57
|
+
/** @internal */
|
|
58
|
+
export declare const ColorAttribute$outboundSchema: z.ZodType<ColorAttribute$Outbound, z.ZodTypeDef, ColorAttribute>;
|
|
59
|
+
/**
|
|
60
|
+
* @internal
|
|
61
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
62
|
+
*/
|
|
63
|
+
export declare namespace ColorAttribute$ {
|
|
64
|
+
/** @deprecated use `ColorAttribute$inboundSchema` instead. */
|
|
65
|
+
const inboundSchema: z.ZodType<ColorAttribute, z.ZodTypeDef, unknown>;
|
|
66
|
+
/** @deprecated use `ColorAttribute$outboundSchema` instead. */
|
|
67
|
+
const outboundSchema: z.ZodType<ColorAttribute$Outbound, z.ZodTypeDef, ColorAttribute>;
|
|
68
|
+
/** @deprecated use `ColorAttribute$Outbound` instead. */
|
|
69
|
+
type Outbound = ColorAttribute$Outbound;
|
|
70
|
+
}
|
|
71
|
+
export declare function colorAttributeToJSON(colorAttribute: ColorAttribute): string;
|
|
72
|
+
export declare function colorAttributeFromJSON(jsonString: string): SafeParseResult<ColorAttribute, SDKValidationError>;
|
|
73
|
+
//# sourceMappingURL=colorattribute.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colorattribute.d.ts","sourceRoot":"","sources":["../../../src/models/components/colorattribute.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,KAAK,GAAG;IAClB,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;CACrB,CAA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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"}
|
|
@@ -0,0 +1,67 @@
|
|
|
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
|
+
/** @internal */
|
|
7
|
+
export const Value$inboundSchema = z
|
|
8
|
+
.object({
|
|
9
|
+
name: z.string(),
|
|
10
|
+
hexcode: z.string(),
|
|
11
|
+
});
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const Value$outboundSchema = z.object({
|
|
14
|
+
name: z.string(),
|
|
15
|
+
hexcode: z.string(),
|
|
16
|
+
});
|
|
17
|
+
/**
|
|
18
|
+
* @internal
|
|
19
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
20
|
+
*/
|
|
21
|
+
export var Value$;
|
|
22
|
+
(function (Value$) {
|
|
23
|
+
/** @deprecated use `Value$inboundSchema` instead. */
|
|
24
|
+
Value$.inboundSchema = Value$inboundSchema;
|
|
25
|
+
/** @deprecated use `Value$outboundSchema` instead. */
|
|
26
|
+
Value$.outboundSchema = Value$outboundSchema;
|
|
27
|
+
})(Value$ || (Value$ = {}));
|
|
28
|
+
export function valueToJSON(value) {
|
|
29
|
+
return JSON.stringify(Value$outboundSchema.parse(value));
|
|
30
|
+
}
|
|
31
|
+
export function valueFromJSON(jsonString) {
|
|
32
|
+
return safeParse(jsonString, (x) => Value$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Value' from JSON`);
|
|
33
|
+
}
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const ColorAttribute$inboundSchema = z.object({
|
|
36
|
+
id: z.string(),
|
|
37
|
+
name: z.string(),
|
|
38
|
+
key: z.string(),
|
|
39
|
+
type: z.string(),
|
|
40
|
+
value: z.array(z.lazy(() => Value$inboundSchema)),
|
|
41
|
+
});
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const ColorAttribute$outboundSchema = z.object({
|
|
44
|
+
id: z.string(),
|
|
45
|
+
name: z.string(),
|
|
46
|
+
key: z.string(),
|
|
47
|
+
type: z.string(),
|
|
48
|
+
value: z.array(z.lazy(() => Value$outboundSchema)),
|
|
49
|
+
});
|
|
50
|
+
/**
|
|
51
|
+
* @internal
|
|
52
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
53
|
+
*/
|
|
54
|
+
export var ColorAttribute$;
|
|
55
|
+
(function (ColorAttribute$) {
|
|
56
|
+
/** @deprecated use `ColorAttribute$inboundSchema` instead. */
|
|
57
|
+
ColorAttribute$.inboundSchema = ColorAttribute$inboundSchema;
|
|
58
|
+
/** @deprecated use `ColorAttribute$outboundSchema` instead. */
|
|
59
|
+
ColorAttribute$.outboundSchema = ColorAttribute$outboundSchema;
|
|
60
|
+
})(ColorAttribute$ || (ColorAttribute$ = {}));
|
|
61
|
+
export function colorAttributeToJSON(colorAttribute) {
|
|
62
|
+
return JSON.stringify(ColorAttribute$outboundSchema.parse(colorAttribute));
|
|
63
|
+
}
|
|
64
|
+
export function colorAttributeFromJSON(jsonString) {
|
|
65
|
+
return safeParse(jsonString, (x) => ColorAttribute$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ColorAttribute' from JSON`);
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=colorattribute.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colorattribute.js","sourceRoot":"","sources":["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AAC,CAAC,MAAM,EAAE;IACf,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,mBAAmB,CAAC,CAAC;CAClD,CAAC,CAAC;AAWH,gBAAgB;AAChB,MAAM,CAAC,MAAM,6BAA6B,GAItC,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,oBAAoB,CAAC,CAAC;CACnD,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,46 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
/**
|
|
5
|
+
* Attribute for date values
|
|
6
|
+
*/
|
|
7
|
+
export type DateAttribute = {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
/**
|
|
11
|
+
* A lookup safe version of the name that is lowercased and spaces are replaced with underscores. For instance, if name is `Product Type`, key will be `product_type`
|
|
12
|
+
*/
|
|
13
|
+
key: string;
|
|
14
|
+
type: string;
|
|
15
|
+
/**
|
|
16
|
+
* For date attributes
|
|
17
|
+
*/
|
|
18
|
+
value: Date;
|
|
19
|
+
};
|
|
20
|
+
/** @internal */
|
|
21
|
+
export declare const DateAttribute$inboundSchema: z.ZodType<DateAttribute, z.ZodTypeDef, unknown>;
|
|
22
|
+
/** @internal */
|
|
23
|
+
export type DateAttribute$Outbound = {
|
|
24
|
+
id: string;
|
|
25
|
+
name: string;
|
|
26
|
+
key: string;
|
|
27
|
+
type: string;
|
|
28
|
+
value: string;
|
|
29
|
+
};
|
|
30
|
+
/** @internal */
|
|
31
|
+
export declare const DateAttribute$outboundSchema: z.ZodType<DateAttribute$Outbound, z.ZodTypeDef, DateAttribute>;
|
|
32
|
+
/**
|
|
33
|
+
* @internal
|
|
34
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
35
|
+
*/
|
|
36
|
+
export declare namespace DateAttribute$ {
|
|
37
|
+
/** @deprecated use `DateAttribute$inboundSchema` instead. */
|
|
38
|
+
const inboundSchema: z.ZodType<DateAttribute, z.ZodTypeDef, unknown>;
|
|
39
|
+
/** @deprecated use `DateAttribute$outboundSchema` instead. */
|
|
40
|
+
const outboundSchema: z.ZodType<DateAttribute$Outbound, z.ZodTypeDef, DateAttribute>;
|
|
41
|
+
/** @deprecated use `DateAttribute$Outbound` instead. */
|
|
42
|
+
type Outbound = DateAttribute$Outbound;
|
|
43
|
+
}
|
|
44
|
+
export declare function dateAttributeToJSON(dateAttribute: DateAttribute): string;
|
|
45
|
+
export declare function dateAttributeFromJSON(jsonString: string): SafeParseResult<DateAttribute, SDKValidationError>;
|
|
46
|
+
//# sourceMappingURL=dateattribute.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dateattribute.d.ts","sourceRoot":"","sources":["../../../src/models/components/dateattribute.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,EAAE,IAAI,CAAC;CACb,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,OAAO,CACjD,aAAa,EACb,CAAC,CAAC,UAAU,EACZ,OAAO,CAOP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,sBAAsB,GAAG;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAClD,sBAAsB,EACtB,CAAC,CAAC,UAAU,EACZ,aAAa,CAOb,CAAC;AAEH;;;GAGG;AACH,yBAAiB,cAAc,CAAC;IAC9B,6DAA6D;IACtD,MAAM,aAAa,iDAA8B,CAAC;IACzD,8DAA8D;IACvD,MAAM,cAAc,gEAA+B,CAAC;IAC3D,wDAAwD;IACxD,KAAY,QAAQ,GAAG,sBAAsB,CAAC;CAC/C;AAED,wBAAgB,mBAAmB,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,CAExE;AAED,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAMpD"}
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
/** @internal */
|
|
7
|
+
export const DateAttribute$inboundSchema = z.object({
|
|
8
|
+
id: z.string(),
|
|
9
|
+
name: z.string(),
|
|
10
|
+
key: z.string(),
|
|
11
|
+
type: z.string(),
|
|
12
|
+
value: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
13
|
+
});
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const DateAttribute$outboundSchema = z.object({
|
|
16
|
+
id: z.string(),
|
|
17
|
+
name: z.string(),
|
|
18
|
+
key: z.string(),
|
|
19
|
+
type: z.string(),
|
|
20
|
+
value: z.date().transform(v => v.toISOString()),
|
|
21
|
+
});
|
|
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 DateAttribute$;
|
|
27
|
+
(function (DateAttribute$) {
|
|
28
|
+
/** @deprecated use `DateAttribute$inboundSchema` instead. */
|
|
29
|
+
DateAttribute$.inboundSchema = DateAttribute$inboundSchema;
|
|
30
|
+
/** @deprecated use `DateAttribute$outboundSchema` instead. */
|
|
31
|
+
DateAttribute$.outboundSchema = DateAttribute$outboundSchema;
|
|
32
|
+
})(DateAttribute$ || (DateAttribute$ = {}));
|
|
33
|
+
export function dateAttributeToJSON(dateAttribute) {
|
|
34
|
+
return JSON.stringify(DateAttribute$outboundSchema.parse(dateAttribute));
|
|
35
|
+
}
|
|
36
|
+
export function dateAttributeFromJSON(jsonString) {
|
|
37
|
+
return safeParse(jsonString, (x) => DateAttribute$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DateAttribute' from JSON`);
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=dateattribute.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dateattribute.js","sourceRoot":"","sources":["../../../src/models/components/dateattribute.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAqBjD,gBAAgB;AAChB,MAAM,CAAC,MAAM,2BAA2B,GAIpC,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;CACzE,CAAC,CAAC;AAWH,gBAAgB;AAChB,MAAM,CAAC,MAAM,4BAA4B,GAIrC,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;CAChD,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,cAAc,CAO9B;AAPD,WAAiB,cAAc;IAC7B,6DAA6D;IAChD,4BAAa,GAAG,2BAA2B,CAAC;IACzD,8DAA8D;IACjD,6BAAc,GAAG,4BAA4B,CAAC;AAG7D,CAAC,EAPgB,cAAc,KAAd,cAAc,QAO9B;AAED,MAAM,UAAU,mBAAmB,CAAC,aAA4B;IAC9D,OAAO,IAAI,CAAC,SAAS,CAAC,4BAA4B,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;AAC3E,CAAC;AAED,MAAM,UAAU,qBAAqB,CACnC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,2BAA2B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACvD,2CAA2C,CAC5C,CAAC;AACJ,CAAC"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
export * from "./anonymoususer.js";
|
|
2
2
|
export * from "./associatedoption.js";
|
|
3
3
|
export * from "./banktransfer.js";
|
|
4
|
+
export * from "./booleanattribute.js";
|
|
4
5
|
export * from "./cardpayment.js";
|
|
5
6
|
export * from "./cart.js";
|
|
6
7
|
export * from "./cartitem.js";
|
|
7
8
|
export * from "./category.js";
|
|
9
|
+
export * from "./colorattribute.js";
|
|
8
10
|
export * from "./coloroption.js";
|
|
9
11
|
export * from "./createreview.js";
|
|
10
12
|
export * from "./currency.js";
|
|
@@ -12,14 +14,17 @@ export * from "./customeraddress.js";
|
|
|
12
14
|
export * from "./customeraddressinput.js";
|
|
13
15
|
export * from "./customerreadyforreview.js";
|
|
14
16
|
export * from "./customerreview.js";
|
|
17
|
+
export * from "./dateattribute.js";
|
|
15
18
|
export * from "./discountbasedpromotion.js";
|
|
16
19
|
export * from "./fixedpricepromotion.js";
|
|
17
20
|
export * from "./freegoodspromotion.js";
|
|
18
21
|
export * from "./juspaypaymentgatewayparams.js";
|
|
19
22
|
export * from "./juspaypaymentinfo.js";
|
|
23
|
+
export * from "./multiselectattribute.js";
|
|
20
24
|
export * from "./netbankingpayment.js";
|
|
21
25
|
export * from "./notificationchannelpreferences.js";
|
|
22
26
|
export * from "./notificationpreferences.js";
|
|
27
|
+
export * from "./numberattribute.js";
|
|
23
28
|
export * from "./orderdetail.js";
|
|
24
29
|
export * from "./orderitem.js";
|
|
25
30
|
export * from "./orderlist.js";
|
|
@@ -45,8 +50,10 @@ export * from "./searchproduct.js";
|
|
|
45
50
|
export * from "./security.js";
|
|
46
51
|
export * from "./seo.js";
|
|
47
52
|
export * from "./shipmentitem.js";
|
|
53
|
+
export * from "./singleselectattribute.js";
|
|
48
54
|
export * from "./singleselectoption.js";
|
|
49
55
|
export * from "./sku.js";
|
|
56
|
+
export * from "./textattribute.js";
|
|
50
57
|
export * from "./updatecartitem.js";
|
|
51
58
|
export * from "./upipayment.js";
|
|
52
59
|
export * from "./user.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qCAAqC,CAAC;AACpD,c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UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,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"}
|
|
@@ -4,10 +4,12 @@
|
|
|
4
4
|
export * from "./anonymoususer.js";
|
|
5
5
|
export * from "./associatedoption.js";
|
|
6
6
|
export * from "./banktransfer.js";
|
|
7
|
+
export * from "./booleanattribute.js";
|
|
7
8
|
export * from "./cardpayment.js";
|
|
8
9
|
export * from "./cart.js";
|
|
9
10
|
export * from "./cartitem.js";
|
|
10
11
|
export * from "./category.js";
|
|
12
|
+
export * from "./colorattribute.js";
|
|
11
13
|
export * from "./coloroption.js";
|
|
12
14
|
export * from "./createreview.js";
|
|
13
15
|
export * from "./currency.js";
|
|
@@ -15,14 +17,17 @@ export * from "./customeraddress.js";
|
|
|
15
17
|
export * from "./customeraddressinput.js";
|
|
16
18
|
export * from "./customerreadyforreview.js";
|
|
17
19
|
export * from "./customerreview.js";
|
|
20
|
+
export * from "./dateattribute.js";
|
|
18
21
|
export * from "./discountbasedpromotion.js";
|
|
19
22
|
export * from "./fixedpricepromotion.js";
|
|
20
23
|
export * from "./freegoodspromotion.js";
|
|
21
24
|
export * from "./juspaypaymentgatewayparams.js";
|
|
22
25
|
export * from "./juspaypaymentinfo.js";
|
|
26
|
+
export * from "./multiselectattribute.js";
|
|
23
27
|
export * from "./netbankingpayment.js";
|
|
24
28
|
export * from "./notificationchannelpreferences.js";
|
|
25
29
|
export * from "./notificationpreferences.js";
|
|
30
|
+
export * from "./numberattribute.js";
|
|
26
31
|
export * from "./orderdetail.js";
|
|
27
32
|
export * from "./orderitem.js";
|
|
28
33
|
export * from "./orderlist.js";
|
|
@@ -48,8 +53,10 @@ export * from "./searchproduct.js";
|
|
|
48
53
|
export * from "./security.js";
|
|
49
54
|
export * from "./seo.js";
|
|
50
55
|
export * from "./shipmentitem.js";
|
|
56
|
+
export * from "./singleselectattribute.js";
|
|
51
57
|
export * from "./singleselectoption.js";
|
|
52
58
|
export * from "./sku.js";
|
|
59
|
+
export * from "./textattribute.js";
|
|
53
60
|
export * from "./updatecartitem.js";
|
|
54
61
|
export * from "./upipayment.js";
|
|
55
62
|
export * from "./user.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/components/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qCAAqC,CAAC;AACpD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC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
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
/**
|
|
5
|
+
* Attribute for multi-select values
|
|
6
|
+
*/
|
|
7
|
+
export type MultiSelectAttribute = {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
/**
|
|
11
|
+
* A lookup safe version of the name that is lowercased and spaces are replaced with underscores. For instance, if name is `Product Type`, key will be `product_type`
|
|
12
|
+
*/
|
|
13
|
+
key: string;
|
|
14
|
+
type: string;
|
|
15
|
+
/**
|
|
16
|
+
* For multi-select attributes
|
|
17
|
+
*/
|
|
18
|
+
value: Array<string>;
|
|
19
|
+
};
|
|
20
|
+
/** @internal */
|
|
21
|
+
export declare const MultiSelectAttribute$inboundSchema: z.ZodType<MultiSelectAttribute, z.ZodTypeDef, unknown>;
|
|
22
|
+
/** @internal */
|
|
23
|
+
export type MultiSelectAttribute$Outbound = {
|
|
24
|
+
id: string;
|
|
25
|
+
name: string;
|
|
26
|
+
key: string;
|
|
27
|
+
type: string;
|
|
28
|
+
value: Array<string>;
|
|
29
|
+
};
|
|
30
|
+
/** @internal */
|
|
31
|
+
export declare const MultiSelectAttribute$outboundSchema: z.ZodType<MultiSelectAttribute$Outbound, z.ZodTypeDef, MultiSelectAttribute>;
|
|
32
|
+
/**
|
|
33
|
+
* @internal
|
|
34
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
35
|
+
*/
|
|
36
|
+
export declare namespace MultiSelectAttribute$ {
|
|
37
|
+
/** @deprecated use `MultiSelectAttribute$inboundSchema` instead. */
|
|
38
|
+
const inboundSchema: z.ZodType<MultiSelectAttribute, z.ZodTypeDef, unknown>;
|
|
39
|
+
/** @deprecated use `MultiSelectAttribute$outboundSchema` instead. */
|
|
40
|
+
const outboundSchema: z.ZodType<MultiSelectAttribute$Outbound, z.ZodTypeDef, MultiSelectAttribute>;
|
|
41
|
+
/** @deprecated use `MultiSelectAttribute$Outbound` instead. */
|
|
42
|
+
type Outbound = MultiSelectAttribute$Outbound;
|
|
43
|
+
}
|
|
44
|
+
export declare function multiSelectAttributeToJSON(multiSelectAttribute: MultiSelectAttribute): string;
|
|
45
|
+
export declare function multiSelectAttributeFromJSON(jsonString: string): SafeParseResult<MultiSelectAttribute, SDKValidationError>;
|
|
46
|
+
//# sourceMappingURL=multiselectattribute.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"multiselectattribute.d.ts","sourceRoot":"","sources":["../../../src/models/components/multiselectattribute.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACtB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,oBAAoB,EACpB,CAAC,CAAC,UAAU,EACZ,OAAO,CAOP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,6BAA6B,GAAG;IAC1C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACtB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,6BAA6B,EAC7B,CAAC,CAAC,UAAU,EACZ,oBAAoB,CAOpB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,qBAAqB,CAAC;IACrC,oEAAoE;IAC7D,MAAM,aAAa,wDAAqC,CAAC;IAChE,qEAAqE;IAC9D,MAAM,cAAc,8EAAsC,CAAC;IAClE,+DAA+D;IAC/D,KAAY,QAAQ,GAAG,6BAA6B,CAAC;CACtD;AAED,wBAAgB,0BAA0B,CACxC,oBAAoB,EAAE,oBAAoB,GACzC,MAAM,CAIR;AAED,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,oBAAoB,EAAE,kBAAkB,CAAC,CAM3D"}
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
/** @internal */
|
|
7
|
+
export const MultiSelectAttribute$inboundSchema = z.object({
|
|
8
|
+
id: z.string(),
|
|
9
|
+
name: z.string(),
|
|
10
|
+
key: z.string(),
|
|
11
|
+
type: z.string(),
|
|
12
|
+
value: z.array(z.string()),
|
|
13
|
+
});
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const MultiSelectAttribute$outboundSchema = z.object({
|
|
16
|
+
id: z.string(),
|
|
17
|
+
name: z.string(),
|
|
18
|
+
key: z.string(),
|
|
19
|
+
type: z.string(),
|
|
20
|
+
value: z.array(z.string()),
|
|
21
|
+
});
|
|
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 MultiSelectAttribute$;
|
|
27
|
+
(function (MultiSelectAttribute$) {
|
|
28
|
+
/** @deprecated use `MultiSelectAttribute$inboundSchema` instead. */
|
|
29
|
+
MultiSelectAttribute$.inboundSchema = MultiSelectAttribute$inboundSchema;
|
|
30
|
+
/** @deprecated use `MultiSelectAttribute$outboundSchema` instead. */
|
|
31
|
+
MultiSelectAttribute$.outboundSchema = MultiSelectAttribute$outboundSchema;
|
|
32
|
+
})(MultiSelectAttribute$ || (MultiSelectAttribute$ = {}));
|
|
33
|
+
export function multiSelectAttributeToJSON(multiSelectAttribute) {
|
|
34
|
+
return JSON.stringify(MultiSelectAttribute$outboundSchema.parse(multiSelectAttribute));
|
|
35
|
+
}
|
|
36
|
+
export function multiSelectAttributeFromJSON(jsonString) {
|
|
37
|
+
return safeParse(jsonString, (x) => MultiSelectAttribute$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'MultiSelectAttribute' from JSON`);
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=multiselectattribute.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"multiselectattribute.js","sourceRoot":"","sources":["../../../src/models/components/multiselectattribute.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAqBjD,gBAAgB;AAChB,MAAM,CAAC,MAAM,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAC3B,CAAC,CAAC;AAWH,gBAAgB;AAChB,MAAM,CAAC,MAAM,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAC3B,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,qBAAqB,CAOrC;AAPD,WAAiB,qBAAqB;IACpC,oEAAoE;IACvD,mCAAa,GAAG,kCAAkC,CAAC;IAChE,qEAAqE;IACxD,oCAAc,GAAG,mCAAmC,CAAC;AAGpE,CAAC,EAPgB,qBAAqB,KAArB,qBAAqB,QAOrC;AAED,MAAM,UAAU,0BAA0B,CACxC,oBAA0C;IAE1C,OAAO,IAAI,CAAC,SAAS,CACnB,mCAAmC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAChE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,4BAA4B,CAC1C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,kCAAkC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC9D,kDAAkD,CACnD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
/**
|
|
5
|
+
* Attribute for numeric values
|
|
6
|
+
*/
|
|
7
|
+
export type NumberAttribute = {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
/**
|
|
11
|
+
* A lookup safe version of the name that is lowercased and spaces are replaced with underscores. For instance, if name is `Product Type`, key will be `product_type`
|
|
12
|
+
*/
|
|
13
|
+
key: string;
|
|
14
|
+
type: string;
|
|
15
|
+
/**
|
|
16
|
+
* For numeric attributes
|
|
17
|
+
*/
|
|
18
|
+
value: number;
|
|
19
|
+
};
|
|
20
|
+
/** @internal */
|
|
21
|
+
export declare const NumberAttribute$inboundSchema: z.ZodType<NumberAttribute, z.ZodTypeDef, unknown>;
|
|
22
|
+
/** @internal */
|
|
23
|
+
export type NumberAttribute$Outbound = {
|
|
24
|
+
id: string;
|
|
25
|
+
name: string;
|
|
26
|
+
key: string;
|
|
27
|
+
type: string;
|
|
28
|
+
value: number;
|
|
29
|
+
};
|
|
30
|
+
/** @internal */
|
|
31
|
+
export declare const NumberAttribute$outboundSchema: z.ZodType<NumberAttribute$Outbound, z.ZodTypeDef, NumberAttribute>;
|
|
32
|
+
/**
|
|
33
|
+
* @internal
|
|
34
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
35
|
+
*/
|
|
36
|
+
export declare namespace NumberAttribute$ {
|
|
37
|
+
/** @deprecated use `NumberAttribute$inboundSchema` instead. */
|
|
38
|
+
const inboundSchema: z.ZodType<NumberAttribute, z.ZodTypeDef, unknown>;
|
|
39
|
+
/** @deprecated use `NumberAttribute$outboundSchema` instead. */
|
|
40
|
+
const outboundSchema: z.ZodType<NumberAttribute$Outbound, z.ZodTypeDef, NumberAttribute>;
|
|
41
|
+
/** @deprecated use `NumberAttribute$Outbound` instead. */
|
|
42
|
+
type Outbound = NumberAttribute$Outbound;
|
|
43
|
+
}
|
|
44
|
+
export declare function numberAttributeToJSON(numberAttribute: NumberAttribute): string;
|
|
45
|
+
export declare function numberAttributeFromJSON(jsonString: string): SafeParseResult<NumberAttribute, SDKValidationError>;
|
|
46
|
+
//# sourceMappingURL=numberattribute.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"numberattribute.d.ts","sourceRoot":"","sources":["../../../src/models/components/numberattribute.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,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