@seamapi/types 1.18.3 → 1.18.5
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/devicedb.cjs +67 -4
- package/dist/devicedb.cjs.map +1 -1
- package/dist/devicedb.d.cts +648 -74
- package/lib/seam/devicedb/index.d.ts +2 -1
- package/lib/seam/devicedb/index.js +1 -1
- package/lib/seam/devicedb/index.js.map +1 -1
- package/lib/seam/devicedb/public-models/device-model-v0.d.ts +30 -0
- package/lib/seam/devicedb/public-models/device-model-v0.js +12 -0
- package/lib/seam/devicedb/public-models/device-model-v0.js.map +1 -0
- package/lib/seam/devicedb/public-models/device-model-v1.d.ts +680 -0
- package/lib/seam/devicedb/public-models/device-model-v1.js +80 -0
- package/lib/seam/devicedb/public-models/device-model-v1.js.map +1 -0
- package/lib/seam/devicedb/public-models/image-reference.d.ts +15 -0
- package/lib/seam/devicedb/public-models/image-reference.js +7 -0
- package/lib/seam/devicedb/public-models/image-reference.js.map +1 -0
- package/lib/seam/devicedb/public-models/index.d.ts +4 -0
- package/lib/seam/devicedb/public-models/index.js +5 -0
- package/lib/seam/devicedb/public-models/index.js.map +1 -0
- package/lib/seam/devicedb/public-models/manufacturer.d.ts +44 -0
- package/lib/seam/devicedb/public-models/manufacturer.js +11 -0
- package/lib/seam/devicedb/public-models/manufacturer.js.map +1 -0
- package/lib/seam/devicedb/route-types.d.ts +76 -4
- package/package.json +1 -1
- package/src/lib/seam/devicedb/index.ts +7 -1
- package/src/lib/seam/devicedb/public-models/device-model-v0.ts +14 -0
- package/src/lib/seam/devicedb/public-models/device-model-v1.ts +95 -0
- package/src/lib/seam/devicedb/public-models/image-reference.ts +9 -0
- package/src/lib/seam/devicedb/public-models/index.ts +4 -0
- package/src/lib/seam/devicedb/public-models/manufacturer.ts +14 -0
- package/src/lib/seam/devicedb/route-types.ts +148 -40
- package/lib/seam/devicedb/public-models.d.ts +0 -273
- package/lib/seam/devicedb/public-models.js +0 -45
- package/lib/seam/devicedb/public-models.js.map +0 -1
- package/src/lib/seam/devicedb/public-models.ts +0 -56
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/seam/devicedb/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/seam/devicedb/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,0BAA0B,CAAA;AAGnD,OAAO,EAAE,OAAO,EAAE,CAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const device_model_v0: z.ZodObject<{
|
|
3
|
+
main_category: z.ZodString;
|
|
4
|
+
model_name: z.ZodString;
|
|
5
|
+
manufacturer_model_id: z.ZodString;
|
|
6
|
+
connection_type: z.ZodEnum<["wifi", "zwave", "zigbee", "unknown"]>;
|
|
7
|
+
support_level: z.ZodEnum<["live", "beta", "unsupported"]>;
|
|
8
|
+
brand: z.ZodString;
|
|
9
|
+
icon_url: z.ZodString;
|
|
10
|
+
seam_device_model_page_url: z.ZodString;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
brand: string;
|
|
13
|
+
main_category: string;
|
|
14
|
+
model_name: string;
|
|
15
|
+
manufacturer_model_id: string;
|
|
16
|
+
connection_type: "unknown" | "wifi" | "zwave" | "zigbee";
|
|
17
|
+
support_level: "beta" | "live" | "unsupported";
|
|
18
|
+
icon_url: string;
|
|
19
|
+
seam_device_model_page_url: string;
|
|
20
|
+
}, {
|
|
21
|
+
brand: string;
|
|
22
|
+
main_category: string;
|
|
23
|
+
model_name: string;
|
|
24
|
+
manufacturer_model_id: string;
|
|
25
|
+
connection_type: "unknown" | "wifi" | "zwave" | "zigbee";
|
|
26
|
+
support_level: "beta" | "live" | "unsupported";
|
|
27
|
+
icon_url: string;
|
|
28
|
+
seam_device_model_page_url: string;
|
|
29
|
+
}>;
|
|
30
|
+
export type DeviceModelV0 = z.infer<typeof device_model_v0>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const device_model_v0 = z.object({
|
|
3
|
+
main_category: z.string(),
|
|
4
|
+
model_name: z.string(),
|
|
5
|
+
manufacturer_model_id: z.string(),
|
|
6
|
+
connection_type: z.enum(['wifi', 'zwave', 'zigbee', 'unknown']),
|
|
7
|
+
support_level: z.enum(['live', 'beta', 'unsupported']),
|
|
8
|
+
brand: z.string(),
|
|
9
|
+
icon_url: z.string(),
|
|
10
|
+
seam_device_model_page_url: z.string(),
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=device-model-v0.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"device-model-v0.js","sourceRoot":"","sources":["../../../../src/lib/seam/devicedb/public-models/device-model-v0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,qBAAqB,EAAE,CAAC,CAAC,MAAM,EAAE;IACjC,eAAe,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;IAC/D,aAAa,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,CAAC;IACtD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,0BAA0B,EAAE,CAAC,CAAC,MAAM,EAAE;CACvC,CAAC,CAAA"}
|