@texturehq/device 1.9.0 → 1.10.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.
|
@@ -27,7 +27,7 @@ export declare const DeviceModelSchema: z.ZodObject<{
|
|
|
27
27
|
* The type of the device.
|
|
28
28
|
* @example "inverter"
|
|
29
29
|
*/
|
|
30
|
-
type: z.ZodEnum<["battery", "charger", "inverter", "thermostat", "vehicle"]>;
|
|
30
|
+
type: z.ZodEnum<["battery", "charger", "inverter", "thermostat", "vehicle", "other", "unknown"]>;
|
|
31
31
|
/**
|
|
32
32
|
* The manufacturer of the device.
|
|
33
33
|
*/
|
|
@@ -146,7 +146,7 @@ export declare const DeviceModelSchema: z.ZodObject<{
|
|
|
146
146
|
}>, "many">;
|
|
147
147
|
}, "strip", z.ZodTypeAny, {
|
|
148
148
|
name: string;
|
|
149
|
-
type: "battery" | "charger" | "inverter" | "thermostat" | "vehicle";
|
|
149
|
+
type: "unknown" | "other" | "battery" | "charger" | "inverter" | "thermostat" | "vehicle";
|
|
150
150
|
slug: string;
|
|
151
151
|
manufacturer: {
|
|
152
152
|
name: string;
|
|
@@ -177,7 +177,7 @@ export declare const DeviceModelSchema: z.ZodObject<{
|
|
|
177
177
|
}[];
|
|
178
178
|
}, {
|
|
179
179
|
name: string;
|
|
180
|
-
type: "battery" | "charger" | "inverter" | "thermostat" | "vehicle";
|
|
180
|
+
type: "unknown" | "other" | "battery" | "charger" | "inverter" | "thermostat" | "vehicle";
|
|
181
181
|
slug: string;
|
|
182
182
|
manufacturer: {
|
|
183
183
|
name: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const DeviceTypes: readonly ["battery", "charger", "inverter", "thermostat", "vehicle"];
|
|
2
|
+
export declare const DeviceTypes: readonly ["battery", "charger", "inverter", "thermostat", "vehicle", "other", "unknown"];
|
|
3
3
|
export type DeviceType = (typeof DeviceTypes)[number];
|
|
4
|
-
export declare const DeviceTypeEnum: z.ZodEnum<["battery", "charger", "inverter", "thermostat", "vehicle"]>;
|
|
4
|
+
export declare const DeviceTypeEnum: z.ZodEnum<["battery", "charger", "inverter", "thermostat", "vehicle", "other", "unknown"]>;
|
|
5
5
|
export declare const DeviceTypeLabelMap: Record<DeviceType, string>;
|
|
6
6
|
//# sourceMappingURL=entities.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../src/deviceType/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../src/deviceType/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,WAAW,0FAA2F,CAAC;AACpH,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AACtD,eAAO,MAAM,cAAc,4FAAsB,CAAC;AAElD,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAQzD,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DeviceTypeLabelMap = exports.DeviceTypeEnum = exports.DeviceTypes = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
exports.DeviceTypes = ["battery", "charger", "inverter", "thermostat", "vehicle"];
|
|
5
|
+
exports.DeviceTypes = ["battery", "charger", "inverter", "thermostat", "vehicle", "other", "unknown"];
|
|
6
6
|
exports.DeviceTypeEnum = zod_1.z.enum(exports.DeviceTypes);
|
|
7
7
|
exports.DeviceTypeLabelMap = {
|
|
8
8
|
battery: "Battery",
|
|
@@ -10,5 +10,7 @@ exports.DeviceTypeLabelMap = {
|
|
|
10
10
|
inverter: "Inverter",
|
|
11
11
|
thermostat: "Thermostat",
|
|
12
12
|
vehicle: "Vehicle",
|
|
13
|
+
other: "Other",
|
|
14
|
+
unknown: "Unknown",
|
|
13
15
|
};
|
|
14
16
|
//# sourceMappingURL=entities.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.js","sourceRoot":"","sources":["../../src/deviceType/entities.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,WAAW,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,SAAS,CAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"entities.js","sourceRoot":"","sources":["../../src/deviceType/entities.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,WAAW,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,CAAU,CAAC;AAEvG,QAAA,cAAc,GAAG,OAAC,CAAC,IAAI,CAAC,mBAAW,CAAC,CAAC;AAErC,QAAA,kBAAkB,GAA+B;IAC5D,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,UAAU,EAAE,YAAY;IACxB,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;CACnB,CAAC"}
|