@zwave-js/config 12.12.0 → 13.0.0-beta.4
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/build/ConfigManager.d.ts +0 -69
- package/build/ConfigManager.d.ts.map +1 -1
- package/build/ConfigManager.js +1 -542
- package/build/ConfigManager.js.map +1 -1
- package/build/JsonTemplate.js +2 -3
- package/build/JsonTemplate.js.map +1 -1
- package/build/Logic.js +2 -3
- package/build/Logic.js.map +1 -1
- package/build/Manufacturers.js +2 -3
- package/build/Manufacturers.js.map +1 -1
- package/build/devices/ConditionalItem.js +4 -5
- package/build/devices/ConditionalItem.js.map +1 -1
- package/build/devices/ConditionalPrimitive.d.ts.map +1 -1
- package/build/devices/ConditionalPrimitive.js +2 -2
- package/build/devices/ConditionalPrimitive.js.map +1 -1
- package/build/devices/DeviceConfig.d.ts +0 -1
- package/build/devices/DeviceConfig.d.ts.map +1 -1
- package/build/devices/DeviceConfig.js +5 -5
- package/build/devices/DeviceConfig.js.map +1 -1
- package/build/devices/DeviceMetadata.d.ts.map +1 -1
- package/build/devices/ParamInformation.d.ts.map +1 -1
- package/build/devices/ParamInformation.js +2 -2
- package/build/devices/ParamInformation.js.map +1 -1
- package/build/index.d.ts +0 -6
- package/build/index.d.ts.map +1 -1
- package/build/index.js +0 -6
- package/build/index.js.map +1 -1
- package/build/index_safe.d.ts +0 -6
- package/build/index_safe.d.ts.map +1 -1
- package/build/index_safe.js +0 -6
- package/build/index_safe.js.map +1 -1
- package/build/utils.js +6 -6
- package/build/utils.js.map +1 -1
- package/build/utils_safe.js +3 -3
- package/build/utils_safe.js.map +1 -1
- package/config/devices/0x0060/an158.json +14 -20
- package/config/devices/0x0063/59350_59372_59373_zwa3016.json +92 -0
- package/config/devices/0x010f/fgrm222_0_24.23.json +18 -1
- package/config/devices/0x0129/ntb612-zw2.json +1 -1
- package/config/devices/0x0129/ntb622-zw2.json +1 -1
- package/config/devices/0x0129/ntb632-zw2.json +1 -1
- package/config/devices/0x0129/ntb642-zw2.json +1 -1
- package/config/devices/0x0129/ntm612-zw2.json +1 -1
- package/config/devices/0x0129/ntm617-zw2.json +1 -1
- package/config/devices/0x0129/ntm622-zw2.json +1 -1
- package/config/devices/0x0129/ntm627-zw2.json +1 -1
- package/config/devices/0x0129/ntm632-zw2.json +1 -1
- package/config/devices/0x0129/ntm637-zw2.json +1 -1
- package/config/devices/0x0129/ntm642-zw2.json +1 -1
- package/config/devices/0x0129/ntm647-zw2.json +1 -1
- package/config/devices/0x0129/ntt610.json +1 -2
- package/config/devices/0x0129/ntt612-zw2.json +1 -1
- package/config/devices/0x0129/ntt622-zw2.json +1 -1
- package/config/devices/0x0129/templates/yale_template.json +22 -7
- package/config/devices/0x0129/yrc_yrd_226_246_256_446-zw2.json +11 -1
- package/config/devices/0x0129/yrd4x0-f-zw3.json +109 -0
- package/config/devices/0x0148/cometz_700.json +49 -0
- package/config/devices/0x014a/gdzw7-eco.json +78 -0
- package/config/devices/0x014f/{gd00z-7.json → gd00z-6-7-8.json} +1 -1
- package/config/devices/0x015f/mh-s412-5102.json +213 -59
- package/config/devices/0x027a/templates/zooz_template.json +32 -0
- package/config/devices/0x027a/zen30.json +67 -15
- package/config/devices/0x027a/zen32.json +1 -2
- package/config/devices/0x027a/zse11.json +10 -0
- package/config/devices/0x0346/flood_freeze_sensor.json +77 -0
- package/config/devices/0x0458/61303_zw3010.json +73 -0
- package/config/manufacturers.json +1 -0
- package/package.json +11 -10
- package/build/DeviceClasses.d.ts +0 -26
- package/build/DeviceClasses.d.ts.map +0 -1
- package/build/DeviceClasses.js +0 -127
- package/build/DeviceClasses.js.map +0 -1
- package/build/Indicators.d.ts +0 -15
- package/build/Indicators.d.ts.map +0 -1
- package/build/Indicators.js +0 -47
- package/build/Indicators.js.map +0 -1
- package/build/Meters.d.ts +0 -15
- package/build/Meters.d.ts.map +0 -1
- package/build/Meters.js +0 -44
- package/build/Meters.js.map +0 -1
- package/build/Notifications.d.ts +0 -71
- package/build/Notifications.d.ts.map +0 -1
- package/build/Notifications.js +0 -223
- package/build/Notifications.js.map +0 -1
- package/build/Scales.d.ts +0 -15
- package/build/Scales.d.ts.map +0 -1
- package/build/Scales.js +0 -37
- package/build/Scales.js.map +0 -1
- package/build/SensorTypes.d.ts +0 -11
- package/build/SensorTypes.d.ts.map +0 -1
- package/build/SensorTypes.js +0 -48
- package/build/SensorTypes.js.map +0 -1
- package/config/deviceClasses.json +0 -447
- package/config/indicators.json +0 -166
- package/config/meters.json +0 -47
- package/config/scales.json +0 -85
- package/config/sensorTypes.json +0 -707
package/build/ConfigManager.d.ts
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import { ZWaveLogContainer } from "@zwave-js/core";
|
|
2
|
-
import { type BasicDeviceClass, type BasicDeviceClassMap, GenericDeviceClass, type GenericDeviceClassMap, type SpecificDeviceClass } from "./DeviceClasses";
|
|
3
|
-
import { type IndicatorMap, type IndicatorPropertiesMap, IndicatorProperty } from "./Indicators";
|
|
4
2
|
import { type ManufacturersMap } from "./Manufacturers";
|
|
5
|
-
import { Meter, type MeterMap, type MeterScale } from "./Meters";
|
|
6
|
-
import { Notification, type NotificationMap } from "./Notifications";
|
|
7
|
-
import { type NamedScalesGroupMap, Scale, type ScaleGroup } from "./Scales";
|
|
8
|
-
import { SensorType, type SensorTypeMap } from "./SensorTypes";
|
|
9
3
|
import { ConditionalDeviceConfig, type DeviceConfig, type DeviceConfigIndex, type FulltextDeviceConfigIndex } from "./devices/DeviceConfig";
|
|
10
4
|
export interface ConfigManagerOptions {
|
|
11
5
|
logContainer?: ZWaveLogContainer;
|
|
@@ -16,27 +10,11 @@ export declare class ConfigManager {
|
|
|
16
10
|
private _configVersion;
|
|
17
11
|
get configVersion(): string;
|
|
18
12
|
private logger;
|
|
19
|
-
private _indicators;
|
|
20
|
-
get indicators(): IndicatorMap;
|
|
21
|
-
private _indicatorProperties;
|
|
22
|
-
get indicatorProperties(): IndicatorPropertiesMap;
|
|
23
13
|
private _manufacturers;
|
|
24
14
|
get manufacturers(): ManufacturersMap;
|
|
25
|
-
private _namedScales;
|
|
26
|
-
get namedScales(): NamedScalesGroupMap;
|
|
27
|
-
private _sensorTypes;
|
|
28
|
-
get sensorTypes(): SensorTypeMap;
|
|
29
|
-
private _meters;
|
|
30
|
-
get meters(): MeterMap;
|
|
31
|
-
private _basicDeviceClasses;
|
|
32
|
-
get basicDeviceClasses(): BasicDeviceClassMap;
|
|
33
|
-
private _genericDeviceClasses;
|
|
34
|
-
get genericDeviceClasses(): GenericDeviceClassMap;
|
|
35
15
|
private deviceConfigPriorityDir;
|
|
36
16
|
private index;
|
|
37
17
|
private fulltextIndex;
|
|
38
|
-
private _notifications;
|
|
39
|
-
get notifications(): NotificationMap;
|
|
40
18
|
private _useExternalConfig;
|
|
41
19
|
get useExternalConfig(): boolean;
|
|
42
20
|
loadAll(): Promise<void>;
|
|
@@ -53,42 +31,6 @@ export declare class ConfigManager {
|
|
|
53
31
|
* @param manufacturerName The manufacturer name
|
|
54
32
|
*/
|
|
55
33
|
setManufacturer(manufacturerId: number, manufacturerName: string): void;
|
|
56
|
-
loadIndicators(): Promise<void>;
|
|
57
|
-
/**
|
|
58
|
-
* Looks up the label for a given indicator id
|
|
59
|
-
*/
|
|
60
|
-
lookupIndicator(indicatorId: number): string | undefined;
|
|
61
|
-
/**
|
|
62
|
-
* Looks up the property definition for a given indicator property id
|
|
63
|
-
*/
|
|
64
|
-
lookupProperty(propertyId: number): IndicatorProperty | undefined;
|
|
65
|
-
loadNamedScales(): Promise<void>;
|
|
66
|
-
/**
|
|
67
|
-
* Looks up all scales defined under a given name
|
|
68
|
-
*/
|
|
69
|
-
lookupNamedScaleGroup(name: string): ScaleGroup | undefined;
|
|
70
|
-
/** Looks up a scale definition for a given scale type */
|
|
71
|
-
lookupNamedScale(name: string, scale: number): Scale;
|
|
72
|
-
loadSensorTypes(): Promise<void>;
|
|
73
|
-
/**
|
|
74
|
-
* Looks up the configuration for a given sensor type
|
|
75
|
-
*/
|
|
76
|
-
lookupSensorType(sensorType: number): SensorType | undefined;
|
|
77
|
-
/** Looks up a scale definition for a given sensor type */
|
|
78
|
-
lookupSensorScale(sensorType: number, scale: number): Scale;
|
|
79
|
-
getSensorTypeName(sensorType: number): string;
|
|
80
|
-
loadMeters(): Promise<void>;
|
|
81
|
-
/**
|
|
82
|
-
* Looks up the notification configuration for a given notification type
|
|
83
|
-
*/
|
|
84
|
-
lookupMeter(meterType: number): Meter | undefined;
|
|
85
|
-
getMeterName(meterType: number): string;
|
|
86
|
-
/** Looks up a scale definition for a given meter type */
|
|
87
|
-
lookupMeterScale(type: number, scale: number): MeterScale;
|
|
88
|
-
loadDeviceClasses(): Promise<void>;
|
|
89
|
-
lookupBasicDeviceClass(basic: number): BasicDeviceClass;
|
|
90
|
-
lookupGenericDeviceClass(generic: number): GenericDeviceClass;
|
|
91
|
-
lookupSpecificDeviceClass(generic: number, specific: number): SpecificDeviceClass;
|
|
92
34
|
loadDeviceIndex(): Promise<void>;
|
|
93
35
|
getIndex(): DeviceConfigIndex | undefined;
|
|
94
36
|
loadFulltextDeviceIndex(): Promise<void>;
|
|
@@ -111,16 +53,5 @@ export declare class ConfigManager {
|
|
|
111
53
|
* If this is `undefined` or not given, the first matching file with a defined firmware range will be returned.
|
|
112
54
|
*/
|
|
113
55
|
lookupDevice(manufacturerId: number, productType: number, productId: number, firmwareVersion?: string): Promise<DeviceConfig | undefined>;
|
|
114
|
-
loadNotifications(): Promise<void>;
|
|
115
|
-
/**
|
|
116
|
-
* Looks up the notification configuration for a given notification type
|
|
117
|
-
*/
|
|
118
|
-
lookupNotification(notificationType: number): Notification | undefined;
|
|
119
|
-
/**
|
|
120
|
-
* Looks up the notification configuration for a given notification type.
|
|
121
|
-
* If the config has not been loaded yet, this returns undefined.
|
|
122
|
-
*/
|
|
123
|
-
private lookupNotificationUnsafe;
|
|
124
|
-
getNotificationName(notificationType: number): string;
|
|
125
56
|
}
|
|
126
57
|
//# sourceMappingURL=ConfigManager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigManager.d.ts","sourceRoot":"","sources":["../src/ConfigManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,iBAAiB,EAEjB,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"ConfigManager.d.ts","sourceRoot":"","sources":["../src/ConfigManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,iBAAiB,EAEjB,MAAM,gBAAgB,CAAC;AAKxB,OAAO,EACN,KAAK,gBAAgB,EAGrB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACN,uBAAuB,EACvB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAK9B,MAAM,wBAAwB,CAAC;AAShC,MAAM,WAAW,oBAAoB;IACpC,YAAY,CAAC,EAAE,iBAAiB,CAAC;IACjC,uBAAuB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,qBAAa,aAAa;gBACN,OAAO,GAAE,oBAAyB;IAUrD,OAAO,CAAC,cAAc,CAAS;IAC/B,IAAW,aAAa,IAAI,MAAM,CAEjC;IAED,OAAO,CAAC,MAAM,CAAe;IAE7B,OAAO,CAAC,cAAc,CAA+B;IACrD,IAAW,aAAa,IAAI,gBAAgB,CAQ3C;IAED,OAAO,CAAC,uBAAuB,CAAqB;IACpD,OAAO,CAAC,KAAK,CAAgC;IAC7C,OAAO,CAAC,aAAa,CAAwC;IAE7D,OAAO,CAAC,kBAAkB,CAAkB;IAC5C,IAAW,iBAAiB,IAAI,OAAO,CAEtC;IAEY,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAoBxB,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IAsBlC,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IAW/C;;;OAGG;IACI,kBAAkB,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAWrE;;;;OAIG;IACI,eAAe,CACrB,cAAc,EAAE,MAAM,EACtB,gBAAgB,EAAE,MAAM,GACtB,IAAI;IAWM,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC;IAiDtC,QAAQ,IAAI,iBAAiB,GAAG,SAAS;IAInC,uBAAuB,IAAI,OAAO,CAAC,IAAI,CAAC;IAI9C,gBAAgB,IAAI,yBAAyB,GAAG,SAAS;IAIhE;;;;;;;OAOG;IACU,8BAA8B,CAC1C,cAAc,EAAE,MAAM,EACtB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,EACjB,eAAe,CAAC,EAAE,MAAM,GACtB,OAAO,CAAC,uBAAuB,GAAG,SAAS,CAAC;IA6D/C;;;;;;;OAOG;IACU,YAAY,CACxB,cAAc,EAAE,MAAM,EACtB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,EACjB,eAAe,CAAC,EAAE,MAAM,GACtB,OAAO,CAAC,YAAY,GAAG,SAAS,CAAC;CAcpC"}
|