@intechstudio/grid-protocol 1.20240715.737
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/LICENSE +674 -0
- package/README.md +5 -0
- package/dist/grid-protocol.d.ts +92 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +30148 -0
- package/dist/index.js.map +1 -0
- package/dist/string-operations.d.ts +12 -0
- package/package.json +33 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
export declare enum ModuleType {
|
|
2
|
+
BU16 = "BU16",
|
|
3
|
+
EF44 = "EF44",
|
|
4
|
+
EN16 = "EN16",
|
|
5
|
+
PBF4 = "PBF4",
|
|
6
|
+
PO16 = "PO16",
|
|
7
|
+
TEK2 = "TEK2",
|
|
8
|
+
TEK1 = "TEK1",
|
|
9
|
+
PB44 = "PB44"
|
|
10
|
+
}
|
|
11
|
+
export declare enum EventType {
|
|
12
|
+
INIT = "init",
|
|
13
|
+
POTMETER = "potmeter",
|
|
14
|
+
ENCODER = "encoder",
|
|
15
|
+
BUTTON = "button",
|
|
16
|
+
MAPMODE = "mapmode",
|
|
17
|
+
MIDIRX = "midirx",
|
|
18
|
+
TIMER = "timer",
|
|
19
|
+
ENDLESS = "endless"
|
|
20
|
+
}
|
|
21
|
+
export declare function NumberToEventType(value: Number): EventType;
|
|
22
|
+
export declare function EventTypeToNumber(value: EventType): 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7;
|
|
23
|
+
export declare enum ElementType {
|
|
24
|
+
SYSTEM = "system",
|
|
25
|
+
BUTTON = "button",
|
|
26
|
+
POTMETER = "potmeter",
|
|
27
|
+
ENCODER = "encoder",
|
|
28
|
+
FADER = "fader",
|
|
29
|
+
ENDLESS = "endless"
|
|
30
|
+
}
|
|
31
|
+
export declare enum Architecture {
|
|
32
|
+
ESP32 = "esp32",
|
|
33
|
+
D51 = "d51",
|
|
34
|
+
VIRTUAL = "virtual"
|
|
35
|
+
}
|
|
36
|
+
interface CEEAT {
|
|
37
|
+
desc: string;
|
|
38
|
+
value: number;
|
|
39
|
+
key: string;
|
|
40
|
+
}
|
|
41
|
+
export declare const CEEAT: Record<EventType, CEEAT>;
|
|
42
|
+
declare class GridProtocol {
|
|
43
|
+
private properties;
|
|
44
|
+
getProperty(key: string): any;
|
|
45
|
+
module_type_from_hwcfg(hwcfg: number): ModuleType | undefined;
|
|
46
|
+
get_module_element_list(type: ModuleType): ElementType[];
|
|
47
|
+
get_element_events(type: ElementType): {
|
|
48
|
+
defaultConfig: string;
|
|
49
|
+
desc: string;
|
|
50
|
+
value: number;
|
|
51
|
+
key: string;
|
|
52
|
+
}[] | {
|
|
53
|
+
defaultConfig: string;
|
|
54
|
+
desc: string;
|
|
55
|
+
value: number;
|
|
56
|
+
key: string;
|
|
57
|
+
}[] | {
|
|
58
|
+
defaultConfig: string;
|
|
59
|
+
desc: string;
|
|
60
|
+
value: number;
|
|
61
|
+
key: string;
|
|
62
|
+
}[] | {
|
|
63
|
+
defaultConfig: string;
|
|
64
|
+
desc: string;
|
|
65
|
+
value: number;
|
|
66
|
+
key: string;
|
|
67
|
+
}[] | {
|
|
68
|
+
defaultConfig: string;
|
|
69
|
+
desc: string;
|
|
70
|
+
value: number;
|
|
71
|
+
key: string;
|
|
72
|
+
}[] | {
|
|
73
|
+
defaultConfig: string;
|
|
74
|
+
desc: string;
|
|
75
|
+
value: number;
|
|
76
|
+
key: string;
|
|
77
|
+
}[];
|
|
78
|
+
module_architecture_from_hwcfg(hwcfg: number): Architecture.ESP32 | Architecture.D51;
|
|
79
|
+
encode_packet(descriptor: any): {
|
|
80
|
+
serial: any;
|
|
81
|
+
id: any;
|
|
82
|
+
} | undefined;
|
|
83
|
+
decode_packet_frame(asciicode_array: number[]): any;
|
|
84
|
+
decode_packet_classes(raw_class_array: any[]): undefined;
|
|
85
|
+
lua_function_to_human_map(): Map<string, string>;
|
|
86
|
+
lua_function_forbiddens(): string[];
|
|
87
|
+
get_lua_function_helper(fncKey: string): string | undefined;
|
|
88
|
+
module_hwcfgs(): any[];
|
|
89
|
+
is_element_compatible_with(element: ElementType, target: ElementType): boolean;
|
|
90
|
+
}
|
|
91
|
+
export declare const grid: GridProtocol;
|
|
92
|
+
export {};
|
package/dist/index.d.ts
ADDED