@texturehq/device 1.13.0 → 1.14.0
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/dist/deviceModel/entities.d.ts +10 -0
- package/dist/deviceModel/entities.d.ts.map +1 -1
- package/dist/manufacturer/entities.d.ts +15 -0
- package/dist/manufacturer/entities.d.ts.map +1 -1
- package/dist/manufacturer/entities.js +11 -0
- package/dist/manufacturer/entities.js.map +1 -1
- package/package.json +4 -2
|
@@ -32,9 +32,11 @@ export declare const DeviceModelSchema: z.ZodObject<{
|
|
|
32
32
|
* The manufacturer of the device.
|
|
33
33
|
*/
|
|
34
34
|
manufacturer: z.ZodObject<{
|
|
35
|
+
id: z.ZodOptional<z.ZodString>;
|
|
35
36
|
slug: z.ZodString;
|
|
36
37
|
name: z.ZodString;
|
|
37
38
|
supportLevel: z.ZodEnum<["planned", "development", "uat", "production", "blocked"]>;
|
|
39
|
+
supportsGridServices: z.ZodOptional<z.ZodBoolean>;
|
|
38
40
|
logo: z.ZodObject<{
|
|
39
41
|
url: z.ZodString;
|
|
40
42
|
alt: z.ZodString;
|
|
@@ -105,6 +107,8 @@ export declare const DeviceModelSchema: z.ZodObject<{
|
|
|
105
107
|
url: string;
|
|
106
108
|
alt: string;
|
|
107
109
|
};
|
|
110
|
+
id?: string | undefined;
|
|
111
|
+
supportsGridServices?: boolean | undefined;
|
|
108
112
|
}, {
|
|
109
113
|
name: string;
|
|
110
114
|
slug: string;
|
|
@@ -127,6 +131,8 @@ export declare const DeviceModelSchema: z.ZodObject<{
|
|
|
127
131
|
url: string;
|
|
128
132
|
alt: string;
|
|
129
133
|
};
|
|
134
|
+
id?: string | undefined;
|
|
135
|
+
supportsGridServices?: boolean | undefined;
|
|
130
136
|
}>;
|
|
131
137
|
/**
|
|
132
138
|
* The commands available for the device.
|
|
@@ -170,6 +176,8 @@ export declare const DeviceModelSchema: z.ZodObject<{
|
|
|
170
176
|
url: string;
|
|
171
177
|
alt: string;
|
|
172
178
|
};
|
|
179
|
+
id?: string | undefined;
|
|
180
|
+
supportsGridServices?: boolean | undefined;
|
|
173
181
|
};
|
|
174
182
|
available_commands: {
|
|
175
183
|
slug: string;
|
|
@@ -201,6 +209,8 @@ export declare const DeviceModelSchema: z.ZodObject<{
|
|
|
201
209
|
url: string;
|
|
202
210
|
alt: string;
|
|
203
211
|
};
|
|
212
|
+
id?: string | undefined;
|
|
213
|
+
supportsGridServices?: boolean | undefined;
|
|
204
214
|
};
|
|
205
215
|
available_commands: {
|
|
206
216
|
slug: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../src/deviceModel/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,sBAAsB;IACjC;;OAEG;;;;;;;;;EAGH,CAAC;AAEH,eAAO,MAAM,iBAAiB;IAC5B;;;OAGG;;IAEH;;;OAGG;;IAEH;;;OAGG;;IAEH;;OAEG
|
|
1
|
+
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../src/deviceModel/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,sBAAsB;IACjC;;OAEG;;;;;;;;;EAGH,CAAC;AAEH,eAAO,MAAM,iBAAiB;IAC5B;;;OAGG;;IAEH;;;OAGG;;IAEH;;;OAGG;;IAEH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEH;;OAEG;;QA7BH;;WAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BH,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -16,6 +16,12 @@ export declare const ManufacturerLogoSchema: z.ZodObject<{
|
|
|
16
16
|
alt: string;
|
|
17
17
|
}>;
|
|
18
18
|
export declare const ManufacturerSchema: z.ZodObject<{
|
|
19
|
+
/**
|
|
20
|
+
* The database identifier for the manufacturer.
|
|
21
|
+
* Optional because it may not be present in all contexts (e.g., external API responses).
|
|
22
|
+
* @example "clxyz123abc"
|
|
23
|
+
*/
|
|
24
|
+
id: z.ZodOptional<z.ZodString>;
|
|
19
25
|
/**
|
|
20
26
|
* The unique identifier for the manufacturer.
|
|
21
27
|
* @example "bmw"
|
|
@@ -27,6 +33,11 @@ export declare const ManufacturerSchema: z.ZodObject<{
|
|
|
27
33
|
*/
|
|
28
34
|
name: z.ZodString;
|
|
29
35
|
supportLevel: z.ZodEnum<["planned", "development", "uat", "production", "blocked"]>;
|
|
36
|
+
/**
|
|
37
|
+
* Whether this manufacturer's devices support grid services.
|
|
38
|
+
* Optional because it may not be present in all contexts.
|
|
39
|
+
*/
|
|
40
|
+
supportsGridServices: z.ZodOptional<z.ZodBoolean>;
|
|
30
41
|
logo: z.ZodObject<{
|
|
31
42
|
url: z.ZodString;
|
|
32
43
|
alt: z.ZodString;
|
|
@@ -97,6 +108,8 @@ export declare const ManufacturerSchema: z.ZodObject<{
|
|
|
97
108
|
url: string;
|
|
98
109
|
alt: string;
|
|
99
110
|
};
|
|
111
|
+
id?: string | undefined;
|
|
112
|
+
supportsGridServices?: boolean | undefined;
|
|
100
113
|
}, {
|
|
101
114
|
name: string;
|
|
102
115
|
slug: string;
|
|
@@ -119,6 +132,8 @@ export declare const ManufacturerSchema: z.ZodObject<{
|
|
|
119
132
|
url: string;
|
|
120
133
|
alt: string;
|
|
121
134
|
};
|
|
135
|
+
id?: string | undefined;
|
|
136
|
+
supportsGridServices?: boolean | undefined;
|
|
122
137
|
}>;
|
|
123
138
|
export type Manufacturer = z.infer<typeof ManufacturerSchema>;
|
|
124
139
|
//# sourceMappingURL=entities.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../src/manufacturer/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;EAKjC,CAAC;AAEH,eAAO,MAAM,kBAAkB;
|
|
1
|
+
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../src/manufacturer/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;EAKjC,CAAC;AAEH,eAAO,MAAM,kBAAkB;IAC9B;;;;OAIG;;IAEH;;;OAGG;;IAEH;;;OAGG;;;IAGH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKF,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -10,6 +10,12 @@ exports.ManufacturerLogoSchema = zod_1.z.object({
|
|
|
10
10
|
height: zod_1.z.number().min(1),
|
|
11
11
|
});
|
|
12
12
|
exports.ManufacturerSchema = zod_1.z.object({
|
|
13
|
+
/**
|
|
14
|
+
* The database identifier for the manufacturer.
|
|
15
|
+
* Optional because it may not be present in all contexts (e.g., external API responses).
|
|
16
|
+
* @example "clxyz123abc"
|
|
17
|
+
*/
|
|
18
|
+
id: zod_1.z.string().optional(),
|
|
13
19
|
/**
|
|
14
20
|
* The unique identifier for the manufacturer.
|
|
15
21
|
* @example "bmw"
|
|
@@ -21,6 +27,11 @@ exports.ManufacturerSchema = zod_1.z.object({
|
|
|
21
27
|
*/
|
|
22
28
|
name: zod_1.z.string(),
|
|
23
29
|
supportLevel: supportLevel_1.SupportLevelEnum,
|
|
30
|
+
/**
|
|
31
|
+
* Whether this manufacturer's devices support grid services.
|
|
32
|
+
* Optional because it may not be present in all contexts.
|
|
33
|
+
*/
|
|
34
|
+
supportsGridServices: zod_1.z.boolean().optional(),
|
|
24
35
|
logo: exports.ManufacturerLogoSchema,
|
|
25
36
|
icon: exports.ManufacturerLogoSchema,
|
|
26
37
|
vectorIcon: exports.ManufacturerLogoSchema,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.js","sourceRoot":"","sources":["../../src/manufacturer/entities.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yDAA0D;AAE7C,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"entities.js","sourceRoot":"","sources":["../../src/manufacturer/entities.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,yDAA0D;AAE7C,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACrB,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACxB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACzB,CAAC,CAAC;AAEU,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C;;;;OAIG;IACH,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB;;;OAGG;IACH,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB;;;OAGG;IACH,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,YAAY,EAAE,+BAAgB;IAC9B;;;OAGG;IACH,oBAAoB,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC5C,IAAI,EAAE,8BAAsB;IAC5B,IAAI,EAAE,8BAAsB;IAC5B,UAAU,EAAE,8BAAsB;CAClC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@texturehq/device",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.14.0",
|
|
4
4
|
"author": "Will Laeri <will@texture.energy>",
|
|
5
5
|
"description": "A type-safe client for validating device data",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -45,6 +45,8 @@
|
|
|
45
45
|
},
|
|
46
46
|
"resolutions": {
|
|
47
47
|
"form-data": "^4.0.4",
|
|
48
|
-
"axios": "^1.12.0"
|
|
48
|
+
"axios": "^1.12.0",
|
|
49
|
+
"cross-spawn": "^7.0.6",
|
|
50
|
+
"braces": "^3.0.3"
|
|
49
51
|
}
|
|
50
52
|
}
|