@zwave-js/config 15.15.3 → 15.17.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/build/cjs/JsonTemplate.js +2 -2
- package/build/cjs/JsonTemplate.js.map +2 -2
- package/build/cjs/Logic.d.ts +1 -1
- package/build/cjs/Logic.js +6 -7
- package/build/cjs/Logic.js.map +2 -2
- package/build/cjs/LogicParser.d.ts +66 -84
- package/build/cjs/LogicParser.js +410 -1337
- package/build/cjs/LogicParser.js.map +3 -3
- package/build/cjs/Manufacturers.js +1 -1
- package/build/cjs/Manufacturers.js.map +2 -2
- package/build/cjs/_version.d.ts +1 -1
- package/build/cjs/_version.js +1 -1
- package/build/cjs/_version.js.map +1 -1
- package/build/cjs/devices/DeviceConfig.d.ts +3 -3
- package/build/cjs/devices/DeviceConfig.js +3 -3
- package/build/cjs/devices/DeviceConfig.js.map +2 -2
- package/build/cjs/devices/DeviceConfig.unit._test.js.map +1 -1
- package/build/cjs/devices/ParamInformation.d.ts +2 -0
- package/build/cjs/devices/ParamInformation.js +16 -2
- package/build/cjs/devices/ParamInformation.js.map +2 -2
- package/build/cjs/index.js.map +2 -2
- package/build/esm/JsonTemplate.js +2 -2
- package/build/esm/JsonTemplate.js.map +1 -1
- package/build/esm/Logic.d.ts +1 -1
- package/build/esm/Logic.d.ts.map +1 -1
- package/build/esm/Logic.js +6 -8
- package/build/esm/Logic.js.map +1 -1
- package/build/esm/LogicParser.d.ts +66 -84
- package/build/esm/LogicParser.d.ts.map +1 -1
- package/build/esm/LogicParser.js +432 -2335
- package/build/esm/LogicParser.js.map +1 -1
- package/build/esm/Manufacturers.js +1 -1
- package/build/esm/Manufacturers.js.map +1 -1
- package/build/esm/_version.d.ts +1 -1
- package/build/esm/_version.js +1 -1
- package/build/esm/devices/DeviceConfig.d.ts +3 -3
- package/build/esm/devices/DeviceConfig.d.ts.map +1 -1
- package/build/esm/devices/DeviceConfig.js +4 -3
- package/build/esm/devices/DeviceConfig.js.map +1 -1
- package/build/esm/devices/DeviceConfig.unit._test.js +1 -0
- package/build/esm/devices/DeviceConfig.unit._test.js.map +1 -1
- package/build/esm/devices/ParamInformation.d.ts +2 -0
- package/build/esm/devices/ParamInformation.d.ts.map +1 -1
- package/build/esm/devices/ParamInformation.js +17 -2
- package/build/esm/devices/ParamInformation.js.map +1 -1
- package/build/esm/index.d.ts.map +1 -1
- package/build/esm/index.js +0 -1
- package/build/esm/index.js.map +1 -1
- package/config/devices/0x003b/be468zp.json +1 -1
- package/config/devices/0x003b/be469.json +2 -3
- package/config/devices/0x003b/be469zp.json +2 -3
- package/config/devices/0x0063/55258_zw4002.json +34 -1
- package/config/devices/0x0090/918.json +101 -0
- package/config/devices/0x0090/hc620.json +4 -0
- package/config/devices/0x0148/cometz_700.json +1 -1
- package/config/devices/0x021d/{ddl240x.json → ddl240x_15hzw.json} +1 -2
- package/config/devices/0x021d/ddl240x_1hzw.json +115 -0
- package/config/devices/0x027a/zse11.json +134 -0
- package/config/devices/0x0460/qlsh-001P10.json +119 -0
- package/config/devices/0x0460/qnpl-0A112.json +4 -0
- package/config/devices/0x0460/qnsw-001P16.json +15 -0
- package/config/devices/0x0460/qnsw-001X16.json +10 -0
- package/config/devices/0x0460/templates/wave_template.json +70 -0
- package/config/devices/0x0460/{qnsw-002P16.json → wave_2pm.json} +22 -1
- package/config/devices/templates/master_template.json +1 -1
- package/config/eslint.config.mjs +24 -19
- package/package.json +10 -12
|
@@ -1,93 +1,75 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import type { RulesLogic } from "json-logic-js";
|
|
2
|
+
export declare enum SyntaxKind {
|
|
3
|
+
Group = 0,
|
|
4
|
+
Or = 1,
|
|
5
|
+
And = 2,
|
|
6
|
+
Comparison = 3,
|
|
7
|
+
Identifier = 4,
|
|
8
|
+
NumberLiteral = 5,
|
|
9
|
+
Version = 6
|
|
5
10
|
}
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
11
|
+
export declare enum Operator {
|
|
12
|
+
Equal = 0,
|
|
13
|
+
NotEqual = 1,
|
|
14
|
+
LessThan = 2,
|
|
15
|
+
LessThanOrEqual = 3,
|
|
16
|
+
GreaterThan = 4,
|
|
17
|
+
GreaterThanOrEqual = 5
|
|
10
18
|
}
|
|
11
|
-
export
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
export interface ClassParts extends Array<string | ClassParts> {
|
|
17
|
-
}
|
|
18
|
-
export interface ClassExpectation {
|
|
19
|
-
type: "class";
|
|
20
|
-
parts: ClassParts;
|
|
21
|
-
inverted: boolean;
|
|
22
|
-
ignoreCase: boolean;
|
|
23
|
-
}
|
|
24
|
-
export interface AnyExpectation {
|
|
25
|
-
type: "any";
|
|
26
|
-
}
|
|
27
|
-
export interface EndExpectation {
|
|
28
|
-
type: "end";
|
|
29
|
-
}
|
|
30
|
-
export interface OtherExpectation {
|
|
31
|
-
type: "other";
|
|
32
|
-
description: string;
|
|
33
|
-
}
|
|
34
|
-
export type Expectation = LiteralExpectation | ClassExpectation | AnyExpectation | EndExpectation | OtherExpectation;
|
|
35
|
-
declare class _PeggySyntaxError extends Error {
|
|
36
|
-
static buildMessage(expected: Expectation[], found: string | null): string;
|
|
37
|
-
message: string;
|
|
38
|
-
expected: Expectation[];
|
|
39
|
-
found: string | null;
|
|
40
|
-
location: FileRange;
|
|
41
|
-
name: string;
|
|
42
|
-
constructor(message: string, expected: Expectation[], found: string | null, location: FileRange);
|
|
43
|
-
format(sources: {
|
|
44
|
-
source?: any;
|
|
45
|
-
text: string;
|
|
46
|
-
}[]): string;
|
|
47
|
-
}
|
|
48
|
-
export interface TraceEvent {
|
|
49
|
-
type: string;
|
|
50
|
-
rule: string;
|
|
51
|
-
result?: any;
|
|
52
|
-
location: FileRange;
|
|
53
|
-
}
|
|
54
|
-
export interface ParseOptions {
|
|
55
|
-
filename?: string;
|
|
56
|
-
startRule?: "start";
|
|
57
|
-
tracer?: any;
|
|
58
|
-
[key: string]: any;
|
|
59
|
-
}
|
|
60
|
-
export type ParseFunction = <Options extends ParseOptions>(input: string, options?: Options) => Options extends {
|
|
61
|
-
startRule: infer StartRule;
|
|
62
|
-
} ? StartRule extends "start" ? Start : Start : Start;
|
|
63
|
-
export declare const parse: ParseFunction;
|
|
64
|
-
export declare const PeggySyntaxError: typeof _PeggySyntaxError;
|
|
65
|
-
export type PeggySyntaxError = _PeggySyntaxError;
|
|
66
|
-
export type Start = Group | Or | And | Comparison;
|
|
67
|
-
export type Group = Or;
|
|
68
|
-
export type Or = {
|
|
69
|
-
or: [And | Comparison, ...OrTails[]];
|
|
19
|
+
export type Expression = Or | And | Comparison;
|
|
20
|
+
type Or = {
|
|
21
|
+
kind: SyntaxKind.Or;
|
|
22
|
+
operands: Expression[];
|
|
70
23
|
};
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
24
|
+
type And = {
|
|
25
|
+
kind: SyntaxKind.And;
|
|
26
|
+
operands: Expression[];
|
|
74
27
|
};
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
28
|
+
type Comparison = {
|
|
29
|
+
kind: SyntaxKind.Comparison;
|
|
30
|
+
left: Identifier;
|
|
31
|
+
operator: Operator;
|
|
32
|
+
right: NumberLiteral | Version;
|
|
79
33
|
};
|
|
80
|
-
|
|
81
|
-
|
|
34
|
+
type Identifier = {
|
|
35
|
+
kind: SyntaxKind.Identifier;
|
|
36
|
+
name: string;
|
|
82
37
|
};
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
38
|
+
type NumberLiteral = {
|
|
39
|
+
kind: SyntaxKind.NumberLiteral;
|
|
40
|
+
value: number;
|
|
41
|
+
};
|
|
42
|
+
type Version = {
|
|
43
|
+
kind: SyntaxKind.Version;
|
|
44
|
+
value: string;
|
|
45
|
+
};
|
|
46
|
+
export declare enum TokenKind {
|
|
47
|
+
Identifier = 0,
|
|
48
|
+
NumberLiteral = 1,
|
|
49
|
+
Dot = 2,// "."
|
|
50
|
+
LeftParen = 3,// "("
|
|
51
|
+
RightParen = 4,// ")"
|
|
52
|
+
BarBar = 5,// "||"
|
|
53
|
+
AmpAmp = 6,// "&&"
|
|
54
|
+
EqualsEquals = 7,// "=="
|
|
55
|
+
EqualsEqualsEquals = 8,// "==="
|
|
56
|
+
ExclamationEquals = 9,// "!="
|
|
57
|
+
ExclamationEqualsEquals = 10,// "!=="
|
|
58
|
+
LessThan = 11,// "<"
|
|
59
|
+
LessThanEquals = 12,// "<="
|
|
60
|
+
GreaterThan = 13,// ">"
|
|
61
|
+
GreaterThanEquals = 14
|
|
62
|
+
}
|
|
63
|
+
export type Token = {
|
|
64
|
+
start: number;
|
|
65
|
+
kind: TokenKind;
|
|
66
|
+
value?: string;
|
|
86
67
|
};
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
export
|
|
91
|
-
export
|
|
68
|
+
/**
|
|
69
|
+
* Splits a string into tokens to be consumed by the Parser.
|
|
70
|
+
*/
|
|
71
|
+
export declare function tokenize(input: string): Generator<Token>;
|
|
72
|
+
export declare function parse(input: string): Expression | undefined;
|
|
73
|
+
export declare function toRulesLogic(expr: Expression): RulesLogic;
|
|
92
74
|
export {};
|
|
93
75
|
//# sourceMappingURL=LogicParser.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LogicParser.d.ts","sourceRoot":"","sources":["../../src/LogicParser.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LogicParser.d.ts","sourceRoot":"","sources":["../../src/LogicParser.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,oBAAY,UAAU;IACrB,KAAK,IAAA;IACL,EAAE,IAAA;IACF,GAAG,IAAA;IACH,UAAU,IAAA;IACV,UAAU,IAAA;IACV,aAAa,IAAA;IACb,OAAO,IAAA;CACP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