@sedni/cloud_common 1.2.0 → 2.1.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.
@@ -0,0 +1,153 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
6
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
7
+ }) : x)(function(x) {
8
+ if (typeof require !== "undefined") return require.apply(this, arguments);
9
+ throw Error('Dynamic require of "' + x + '" is not supported');
10
+ });
11
+ var __esm = (fn, res) => function __init() {
12
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
13
+ };
14
+ var __commonJS = (cb, mod) => function __require2() {
15
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
16
+ };
17
+ var __export = (target, all) => {
18
+ for (var name in all)
19
+ __defProp(target, name, { get: all[name], enumerable: true });
20
+ };
21
+ var __copyProps = (to, from, except, desc) => {
22
+ if (from && typeof from === "object" || typeof from === "function") {
23
+ for (let key of __getOwnPropNames(from))
24
+ if (!__hasOwnProp.call(to, key) && key !== except)
25
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
26
+ }
27
+ return to;
28
+ };
29
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
+
31
+ // app/types/alarm.types.ts
32
+ var alarm_types_exports = {};
33
+ __export(alarm_types_exports, {
34
+ AlarmPriorities: () => AlarmPriorities,
35
+ AlarmTypes: () => AlarmTypes,
36
+ CloudAlarmStates: () => CloudAlarmStates,
37
+ DiamarAlarmStates: () => DiamarAlarmStates
38
+ });
39
+ var AlarmPriorities, DiamarAlarmStates, CloudAlarmStates, AlarmTypes;
40
+ var init_alarm_types = __esm({
41
+ "app/types/alarm.types.ts"() {
42
+ "use strict";
43
+ AlarmPriorities = {
44
+ CRITICAL: "Critical",
45
+ ALARM: "Alarm",
46
+ WARNING: "Warning"
47
+ };
48
+ DiamarAlarmStates = {
49
+ INACTIVE: "Inactive",
50
+ ACKNOWLEDGED: "Acknowledged",
51
+ ACTIVE: "Active",
52
+ UNACKNOWLEDGED: "Unacknowledged",
53
+ UNDEFINED: "Undefined"
54
+ };
55
+ CloudAlarmStates = {
56
+ INACTIVE: "Inactive",
57
+ ALARM: "Active",
58
+ ALARM_ACK: "Acknowledged",
59
+ WARNING: "WarningActive",
60
+ WARNING_ACK: "WarningAcknowledged",
61
+ RETURN_NO_ACK: "Unacknowledged",
62
+ INHIBITED: "Inhibited",
63
+ OFFSCAN: "Offscan",
64
+ UNDEFINED: "Undefined"
65
+ };
66
+ AlarmTypes = {
67
+ NORMAL: "Normal",
68
+ ALARM_OPEN: "AlarmOpen",
69
+ ALARM_CLOSE: "AlarmClose",
70
+ ALARM_IFH: "AlarmIfh",
71
+ ALARM_HH: "AlarmHh",
72
+ ALARM_H: "AlarmH",
73
+ ALARM_L: "AlarmL",
74
+ ALARM_LL: "AlarmLl",
75
+ ALARM_IFL: "AlarmIfl",
76
+ ALARM_OFFSCAN: "AlarmOffScan",
77
+ ALARM_FAIL: "AlarmFail",
78
+ ALARM_INH: "AlarmInh",
79
+ ALARM_UNK: "AlarmUnk"
80
+ };
81
+ }
82
+ });
83
+
84
+ // app/types/event.types.ts
85
+ var event_types_exports = {};
86
+ __export(event_types_exports, {
87
+ EventCategories: () => EventCategories,
88
+ EventCriticalities: () => EventCriticalities
89
+ });
90
+ var EventCategories, EventCriticalities;
91
+ var init_event_types = __esm({
92
+ "app/types/event.types.ts"() {
93
+ "use strict";
94
+ EventCategories = {
95
+ ACCESS_CONTROL: "AccessControl",
96
+ REQUEST_ERROR: "RequestErrors",
97
+ OS: "OperatingSystemEvents",
98
+ CONTROL: "ControlSystemEvents",
99
+ BACKUP: "BackupAndRestoreEvents",
100
+ CONFIG_CHANGE: "ConfigurationChanges",
101
+ LOGS: "AuditLogEvents",
102
+ POTENTIAL_ATTACK: "PotentialAttackActivity"
103
+ };
104
+ EventCriticalities = {
105
+ VERBOSE: "Verbose",
106
+ INFO: "Info",
107
+ WARNING: "Warning",
108
+ ERROR: "Error",
109
+ CRITICAL: "Critical"
110
+ };
111
+ }
112
+ });
113
+
114
+ // app/types/unit.types.ts
115
+ var unit_types_exports = {};
116
+ __export(unit_types_exports, {
117
+ UnitTypes: () => UnitTypes
118
+ });
119
+ var UnitTypes;
120
+ var init_unit_types = __esm({
121
+ "app/types/unit.types.ts"() {
122
+ "use strict";
123
+ UnitTypes = {
124
+ AIM18: "Aim18",
125
+ DIM36: "Dim36",
126
+ DIOM24: "Diom24",
127
+ KLIM: "Klim",
128
+ LUM: "Lum",
129
+ PMM: "Pmm",
130
+ SLIM: "Slim",
131
+ TIM28: "Tim28"
132
+ };
133
+ }
134
+ });
135
+
136
+ export {
137
+ __require,
138
+ __commonJS,
139
+ __toCommonJS,
140
+ AlarmPriorities,
141
+ DiamarAlarmStates,
142
+ CloudAlarmStates,
143
+ AlarmTypes,
144
+ alarm_types_exports,
145
+ init_alarm_types,
146
+ EventCategories,
147
+ EventCriticalities,
148
+ event_types_exports,
149
+ init_event_types,
150
+ UnitTypes,
151
+ unit_types_exports,
152
+ init_unit_types
153
+ };
@@ -0,0 +1,152 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
6
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
7
+ }) : x)(function(x) {
8
+ if (typeof require !== "undefined") return require.apply(this, arguments);
9
+ throw Error('Dynamic require of "' + x + '" is not supported');
10
+ });
11
+ var __esm = (fn, res) => function __init() {
12
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
13
+ };
14
+ var __commonJS = (cb, mod) => function __require2() {
15
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
16
+ };
17
+ var __export = (target, all) => {
18
+ for (var name in all)
19
+ __defProp(target, name, { get: all[name], enumerable: true });
20
+ };
21
+ var __copyProps = (to, from, except, desc) => {
22
+ if (from && typeof from === "object" || typeof from === "function") {
23
+ for (let key of __getOwnPropNames(from))
24
+ if (!__hasOwnProp.call(to, key) && key !== except)
25
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
26
+ }
27
+ return to;
28
+ };
29
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
+
31
+ // app/types/alarm.types.ts
32
+ var alarm_types_exports = {};
33
+ __export(alarm_types_exports, {
34
+ AlarmPriorities: () => AlarmPriorities,
35
+ AlarmTypes: () => AlarmTypes,
36
+ CloudAlarmStates: () => CloudAlarmStates,
37
+ DiamarAlarmStates: () => DiamarAlarmStates
38
+ });
39
+ var AlarmPriorities, DiamarAlarmStates, CloudAlarmStates, AlarmTypes;
40
+ var init_alarm_types = __esm({
41
+ "app/types/alarm.types.ts"() {
42
+ "use strict";
43
+ AlarmPriorities = {
44
+ CRITICAL: "Critical",
45
+ ALARM: "Alarm",
46
+ WARNING: "Warning"
47
+ };
48
+ DiamarAlarmStates = {
49
+ INACTIVE: "Inactive",
50
+ ACKNOWLEDGED: "Acknowledged",
51
+ ACTIVE: "Active",
52
+ UNACKNOWLEDGED: "Unacknowledged",
53
+ UNDEFINED: "Undefined"
54
+ };
55
+ CloudAlarmStates = {
56
+ INACTIVE: "Inactive",
57
+ ALARM: "Active",
58
+ ALARM_ACK: "Acknowledged",
59
+ WARNING: "WarningActive",
60
+ WARNING_ACK: "WarningAcknowledged",
61
+ RETURN_NO_ACK: "Unacknowledged",
62
+ INHIBITED: "Inhibited",
63
+ OFFSCAN: "Offscan",
64
+ UNDEFINED: "Undefined"
65
+ };
66
+ AlarmTypes = {
67
+ NORMAL: "Normal",
68
+ ALARM_OPEN: "AlarmOpen",
69
+ ALARM_CLOSE: "AlarmClose",
70
+ ALARM_IFH: "AlarmIfh",
71
+ ALARM_HH: "AlarmHh",
72
+ ALARM_H: "AlarmH",
73
+ ALARM_L: "AlarmL",
74
+ ALARM_LL: "AlarmLl",
75
+ ALARM_IFL: "AlarmIfl",
76
+ ALARM_OFFSCAN: "AlarmOffScan",
77
+ ALARM_FAIL: "AlarmFail",
78
+ ALARM_INH: "AlarmInh",
79
+ ALARM_UNK: "AlarmUnk"
80
+ };
81
+ }
82
+ });
83
+
84
+ // app/types/event.types.ts
85
+ var event_types_exports = {};
86
+ __export(event_types_exports, {
87
+ EventCategories: () => EventCategories,
88
+ EventCriticalities: () => EventCriticalities
89
+ });
90
+ var EventCategories, EventCriticalities;
91
+ var init_event_types = __esm({
92
+ "app/types/event.types.ts"() {
93
+ "use strict";
94
+ EventCategories = {
95
+ ACCESS_CONTROL: "AccessControl",
96
+ REQUEST_ERROR: "RequestErrors",
97
+ OS: "OperatingSystemEvents",
98
+ CONTROL: "ControlSystemEvents",
99
+ BACKUP: "BackupAndRestoreEvents",
100
+ CONFIG_CHANGE: "ConfigurationChanges",
101
+ LOGS: "AuditLogEvents",
102
+ POTENTIAL_ATTACK: "PotentialAttackActivity"
103
+ };
104
+ EventCriticalities = {
105
+ VERBOSE: "Verbose",
106
+ INFO: "Info",
107
+ WARNING: "Warning",
108
+ ERROR: "Error",
109
+ CRITICAL: "Critical"
110
+ };
111
+ }
112
+ });
113
+
114
+ // app/types/unit.types.ts
115
+ var unit_types_exports = {};
116
+ __export(unit_types_exports, {
117
+ UnitTypes: () => UnitTypes
118
+ });
119
+ var UnitTypes;
120
+ var init_unit_types = __esm({
121
+ "app/types/unit.types.ts"() {
122
+ "use strict";
123
+ UnitTypes = {
124
+ AIM18: "Aim18",
125
+ DIM36: "Dim36",
126
+ DIOM24: "Diom24",
127
+ KLIM: "Klim",
128
+ LUM: "Lum",
129
+ PMM: "Pmm",
130
+ SLIM: "Slim",
131
+ TIM28: "Tim28"
132
+ };
133
+ }
134
+ });
135
+
136
+ export {
137
+ __require,
138
+ __commonJS,
139
+ __toCommonJS,
140
+ AlarmPriorities,
141
+ DiamarAlarmStates,
142
+ CloudAlarmStates,
143
+ AlarmTypes,
144
+ alarm_types_exports,
145
+ init_alarm_types,
146
+ EventCategories,
147
+ event_types_exports,
148
+ init_event_types,
149
+ UnitTypes,
150
+ unit_types_exports,
151
+ init_unit_types
152
+ };
package/dist/index.cjs ADDED
@@ -0,0 +1,145 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // app/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ Types: () => Types
24
+ });
25
+ module.exports = __toCommonJS(index_exports);
26
+
27
+ // app/types/alarm.types.ts
28
+ var AlarmPriorities = {
29
+ CRITICAL: "Critical",
30
+ ALARM: "Alarm",
31
+ WARNING: "Warning"
32
+ };
33
+ var DiamarAlarmStates = {
34
+ INACTIVE: "Inactive",
35
+ ACKNOWLEDGED: "Acknowledged",
36
+ ACTIVE: "Active",
37
+ UNACKNOWLEDGED: "Unacknowledged",
38
+ UNDEFINED: "Undefined"
39
+ };
40
+ var CloudAlarmStates = {
41
+ INACTIVE: "Inactive",
42
+ ALARM: "Active",
43
+ ALARM_ACK: "Acknowledged",
44
+ WARNING: "WarningActive",
45
+ WARNING_ACK: "WarningAcknowledged",
46
+ RETURN_NO_ACK: "Unacknowledged",
47
+ INHIBITED: "Inhibited",
48
+ OFFSCAN: "Offscan",
49
+ UNDEFINED: "Undefined"
50
+ };
51
+ var AlarmTypes = {
52
+ NORMAL: "Normal",
53
+ ALARM_OPEN: "AlarmOpen",
54
+ ALARM_CLOSE: "AlarmClose",
55
+ ALARM_IFH: "AlarmIfh",
56
+ ALARM_HH: "AlarmHh",
57
+ ALARM_H: "AlarmH",
58
+ ALARM_L: "AlarmL",
59
+ ALARM_LL: "AlarmLl",
60
+ ALARM_IFL: "AlarmIfl",
61
+ ALARM_OFFSCAN: "AlarmOffScan",
62
+ ALARM_FAIL: "AlarmFail",
63
+ ALARM_INH: "AlarmInh",
64
+ ALARM_UNK: "AlarmUnk"
65
+ };
66
+
67
+ // app/types/channel.types.ts
68
+ var ChannelBaseTypes = {
69
+ VIRTUAL_ANALOG: "VirtualAnalog",
70
+ VIRTUAL_DIGITAL: "VirtualDigital",
71
+ VIRTUAL_STRING: "VirtualString",
72
+ WIRED_ANALOG: "WiredAnalog",
73
+ WIRED_DIGITAL: "WiredDigital"
74
+ };
75
+ var ChannelSpecificTypes = {
76
+ // Wired types
77
+ DIGITAL_INPUT: "DigitalInput",
78
+ DIGITAL_OUTPUT: "DigitalOutput",
79
+ ANALOG_INPUT: "AnalogInput",
80
+ ANALOG_OUTPUT: "AnalogOutput",
81
+ // Virtual types
82
+ ANALOG_SOFTWARE: "AnalogSoftware",
83
+ DIGITAL_SOFTWARE: "DigitalSoftware",
84
+ VIRTUAL_STRING: "VirtualString",
85
+ COMMAND: "Command",
86
+ // Virtual logic types
87
+ BROADCAST_COMMAND: "BroadcastCommand",
88
+ // To be deleted in the near future
89
+ SOFTWARE: "Software",
90
+ ANALOG_TIMER: "AnalogTimer",
91
+ // Serial types
92
+ SERIAL_DIGITAL_INPUT: "SerialDigitalInput",
93
+ SERIAL_DIGITAL_OUTPUT: "SerialDigitalOutput",
94
+ SERIAL_LINE_COMMAND: "SerialLineCommand",
95
+ SERIAL_ANALOG_INPUT: "SerialAnalogInput",
96
+ SERIAL_ANALOG_OUTPUT: "SerialAnalogOutput"
97
+ };
98
+
99
+ // app/types/event.types.ts
100
+ var EventCategories = {
101
+ ACCESS_CONTROL: "AccessControl",
102
+ REQUEST_ERROR: "RequestErrors",
103
+ OS: "OperatingSystemEvents",
104
+ CONTROL: "ControlSystemEvents",
105
+ BACKUP: "BackupAndRestoreEvents",
106
+ CONFIG_CHANGE: "ConfigurationChanges",
107
+ LOGS: "AuditLogEvents",
108
+ POTENTIAL_ATTACK: "PotentialAttackActivity"
109
+ };
110
+ var EventCriticalities = {
111
+ VERBOSE: "Verbose",
112
+ INFO: "Info",
113
+ WARNING: "Warning",
114
+ ERROR: "Error",
115
+ CRITICAL: "Critical"
116
+ };
117
+
118
+ // app/types/unit.types.ts
119
+ var UnitTypes = {
120
+ AIM18: "Aim18",
121
+ DIM36: "Dim36",
122
+ DIOM24: "Diom24",
123
+ KLIM: "Klim",
124
+ LUM: "Lum",
125
+ PMM: "Pmm",
126
+ SLIM: "Slim",
127
+ TIM28: "Tim28"
128
+ };
129
+
130
+ // app/index.ts
131
+ var Types = {
132
+ AlarmTypes,
133
+ AlarmPriorities,
134
+ CloudAlarmStates,
135
+ DiamarAlarmStates,
136
+ ChannelBaseTypes,
137
+ ChannelSpecificTypes,
138
+ EventCategories,
139
+ EventCriticalities,
140
+ UnitTypes
141
+ };
142
+ // Annotate the CommonJS export names for ESM import in node:
143
+ 0 && (module.exports = {
144
+ Types
145
+ });
@@ -0,0 +1,197 @@
1
+ declare const AlarmPriorities: {
2
+ readonly CRITICAL: "Critical";
3
+ readonly ALARM: "Alarm";
4
+ readonly WARNING: "Warning";
5
+ };
6
+ type AlarmPriority = (typeof AlarmPriorities)[keyof typeof AlarmPriorities];
7
+ declare const DiamarAlarmStates: {
8
+ readonly INACTIVE: "Inactive";
9
+ readonly ACKNOWLEDGED: "Acknowledged";
10
+ readonly ACTIVE: "Active";
11
+ readonly UNACKNOWLEDGED: "Unacknowledged";
12
+ readonly UNDEFINED: "Undefined";
13
+ };
14
+ type DiamarAlarmState = (typeof DiamarAlarmStates)[keyof typeof DiamarAlarmStates];
15
+ declare const CloudAlarmStates: {
16
+ readonly INACTIVE: "Inactive";
17
+ readonly ALARM: "Active";
18
+ readonly ALARM_ACK: "Acknowledged";
19
+ readonly WARNING: "WarningActive";
20
+ readonly WARNING_ACK: "WarningAcknowledged";
21
+ readonly RETURN_NO_ACK: "Unacknowledged";
22
+ readonly INHIBITED: "Inhibited";
23
+ readonly OFFSCAN: "Offscan";
24
+ readonly UNDEFINED: "Undefined";
25
+ };
26
+ type CloudAlarmState = (typeof CloudAlarmStates)[keyof typeof CloudAlarmStates];
27
+ declare const AlarmTypes: {
28
+ readonly NORMAL: "Normal";
29
+ readonly ALARM_OPEN: "AlarmOpen";
30
+ readonly ALARM_CLOSE: "AlarmClose";
31
+ readonly ALARM_IFH: "AlarmIfh";
32
+ readonly ALARM_HH: "AlarmHh";
33
+ readonly ALARM_H: "AlarmH";
34
+ readonly ALARM_L: "AlarmL";
35
+ readonly ALARM_LL: "AlarmLl";
36
+ readonly ALARM_IFL: "AlarmIfl";
37
+ readonly ALARM_OFFSCAN: "AlarmOffScan";
38
+ readonly ALARM_FAIL: "AlarmFail";
39
+ readonly ALARM_INH: "AlarmInh";
40
+ readonly ALARM_UNK: "AlarmUnk";
41
+ };
42
+ type AlarmType = (typeof AlarmTypes)[keyof typeof AlarmTypes];
43
+
44
+ declare const ChannelBaseTypes: {
45
+ readonly VIRTUAL_ANALOG: "VirtualAnalog";
46
+ readonly VIRTUAL_DIGITAL: "VirtualDigital";
47
+ readonly VIRTUAL_STRING: "VirtualString";
48
+ readonly WIRED_ANALOG: "WiredAnalog";
49
+ readonly WIRED_DIGITAL: "WiredDigital";
50
+ };
51
+ type ChannelBaseType = (typeof ChannelBaseTypes)[keyof typeof ChannelBaseTypes];
52
+ declare const ChannelSpecificTypes: {
53
+ readonly DIGITAL_INPUT: "DigitalInput";
54
+ readonly DIGITAL_OUTPUT: "DigitalOutput";
55
+ readonly ANALOG_INPUT: "AnalogInput";
56
+ readonly ANALOG_OUTPUT: "AnalogOutput";
57
+ readonly ANALOG_SOFTWARE: "AnalogSoftware";
58
+ readonly DIGITAL_SOFTWARE: "DigitalSoftware";
59
+ readonly VIRTUAL_STRING: "VirtualString";
60
+ readonly COMMAND: "Command";
61
+ readonly BROADCAST_COMMAND: "BroadcastCommand";
62
+ readonly SOFTWARE: "Software";
63
+ readonly ANALOG_TIMER: "AnalogTimer";
64
+ readonly SERIAL_DIGITAL_INPUT: "SerialDigitalInput";
65
+ readonly SERIAL_DIGITAL_OUTPUT: "SerialDigitalOutput";
66
+ readonly SERIAL_LINE_COMMAND: "SerialLineCommand";
67
+ readonly SERIAL_ANALOG_INPUT: "SerialAnalogInput";
68
+ readonly SERIAL_ANALOG_OUTPUT: "SerialAnalogOutput";
69
+ };
70
+ type ChannelSpecificType = (typeof ChannelSpecificTypes)[keyof typeof ChannelSpecificTypes];
71
+
72
+ declare const EventCategories: {
73
+ readonly ACCESS_CONTROL: "AccessControl";
74
+ readonly REQUEST_ERROR: "RequestErrors";
75
+ readonly OS: "OperatingSystemEvents";
76
+ readonly CONTROL: "ControlSystemEvents";
77
+ readonly BACKUP: "BackupAndRestoreEvents";
78
+ readonly CONFIG_CHANGE: "ConfigurationChanges";
79
+ readonly LOGS: "AuditLogEvents";
80
+ readonly POTENTIAL_ATTACK: "PotentialAttackActivity";
81
+ };
82
+ type EventCategory = (typeof EventCategories)[keyof typeof EventCategories];
83
+ declare const EventCriticalities: {
84
+ readonly VERBOSE: "Verbose";
85
+ readonly INFO: "Info";
86
+ readonly WARNING: "Warning";
87
+ readonly ERROR: "Error";
88
+ readonly CRITICAL: "Critical";
89
+ };
90
+ type EventCriticality = (typeof EventCriticalities)[keyof typeof EventCriticalities];
91
+
92
+ declare const UnitTypes: {
93
+ readonly AIM18: "Aim18";
94
+ readonly DIM36: "Dim36";
95
+ readonly DIOM24: "Diom24";
96
+ readonly KLIM: "Klim";
97
+ readonly LUM: "Lum";
98
+ readonly PMM: "Pmm";
99
+ readonly SLIM: "Slim";
100
+ readonly TIM28: "Tim28";
101
+ };
102
+ type UnitType = (typeof UnitTypes)[keyof typeof UnitTypes];
103
+
104
+ declare const Types: {
105
+ AlarmTypes: {
106
+ readonly NORMAL: "Normal";
107
+ readonly ALARM_OPEN: "AlarmOpen";
108
+ readonly ALARM_CLOSE: "AlarmClose";
109
+ readonly ALARM_IFH: "AlarmIfh";
110
+ readonly ALARM_HH: "AlarmHh";
111
+ readonly ALARM_H: "AlarmH";
112
+ readonly ALARM_L: "AlarmL";
113
+ readonly ALARM_LL: "AlarmLl";
114
+ readonly ALARM_IFL: "AlarmIfl";
115
+ readonly ALARM_OFFSCAN: "AlarmOffScan";
116
+ readonly ALARM_FAIL: "AlarmFail";
117
+ readonly ALARM_INH: "AlarmInh";
118
+ readonly ALARM_UNK: "AlarmUnk";
119
+ };
120
+ AlarmPriorities: {
121
+ readonly CRITICAL: "Critical";
122
+ readonly ALARM: "Alarm";
123
+ readonly WARNING: "Warning";
124
+ };
125
+ CloudAlarmStates: {
126
+ readonly INACTIVE: "Inactive";
127
+ readonly ALARM: "Active";
128
+ readonly ALARM_ACK: "Acknowledged";
129
+ readonly WARNING: "WarningActive";
130
+ readonly WARNING_ACK: "WarningAcknowledged";
131
+ readonly RETURN_NO_ACK: "Unacknowledged";
132
+ readonly INHIBITED: "Inhibited";
133
+ readonly OFFSCAN: "Offscan";
134
+ readonly UNDEFINED: "Undefined";
135
+ };
136
+ DiamarAlarmStates: {
137
+ readonly INACTIVE: "Inactive";
138
+ readonly ACKNOWLEDGED: "Acknowledged";
139
+ readonly ACTIVE: "Active";
140
+ readonly UNACKNOWLEDGED: "Unacknowledged";
141
+ readonly UNDEFINED: "Undefined";
142
+ };
143
+ ChannelBaseTypes: {
144
+ readonly VIRTUAL_ANALOG: "VirtualAnalog";
145
+ readonly VIRTUAL_DIGITAL: "VirtualDigital";
146
+ readonly VIRTUAL_STRING: "VirtualString";
147
+ readonly WIRED_ANALOG: "WiredAnalog";
148
+ readonly WIRED_DIGITAL: "WiredDigital";
149
+ };
150
+ ChannelSpecificTypes: {
151
+ readonly DIGITAL_INPUT: "DigitalInput";
152
+ readonly DIGITAL_OUTPUT: "DigitalOutput";
153
+ readonly ANALOG_INPUT: "AnalogInput";
154
+ readonly ANALOG_OUTPUT: "AnalogOutput";
155
+ readonly ANALOG_SOFTWARE: "AnalogSoftware";
156
+ readonly DIGITAL_SOFTWARE: "DigitalSoftware";
157
+ readonly VIRTUAL_STRING: "VirtualString";
158
+ readonly COMMAND: "Command";
159
+ readonly BROADCAST_COMMAND: "BroadcastCommand";
160
+ readonly SOFTWARE: "Software";
161
+ readonly ANALOG_TIMER: "AnalogTimer";
162
+ readonly SERIAL_DIGITAL_INPUT: "SerialDigitalInput";
163
+ readonly SERIAL_DIGITAL_OUTPUT: "SerialDigitalOutput";
164
+ readonly SERIAL_LINE_COMMAND: "SerialLineCommand";
165
+ readonly SERIAL_ANALOG_INPUT: "SerialAnalogInput";
166
+ readonly SERIAL_ANALOG_OUTPUT: "SerialAnalogOutput";
167
+ };
168
+ EventCategories: {
169
+ readonly ACCESS_CONTROL: "AccessControl";
170
+ readonly REQUEST_ERROR: "RequestErrors";
171
+ readonly OS: "OperatingSystemEvents";
172
+ readonly CONTROL: "ControlSystemEvents";
173
+ readonly BACKUP: "BackupAndRestoreEvents";
174
+ readonly CONFIG_CHANGE: "ConfigurationChanges";
175
+ readonly LOGS: "AuditLogEvents";
176
+ readonly POTENTIAL_ATTACK: "PotentialAttackActivity";
177
+ };
178
+ EventCriticalities: {
179
+ readonly VERBOSE: "Verbose";
180
+ readonly INFO: "Info";
181
+ readonly WARNING: "Warning";
182
+ readonly ERROR: "Error";
183
+ readonly CRITICAL: "Critical";
184
+ };
185
+ UnitTypes: {
186
+ readonly AIM18: "Aim18";
187
+ readonly DIM36: "Dim36";
188
+ readonly DIOM24: "Diom24";
189
+ readonly KLIM: "Klim";
190
+ readonly LUM: "Lum";
191
+ readonly PMM: "Pmm";
192
+ readonly SLIM: "Slim";
193
+ readonly TIM28: "Tim28";
194
+ };
195
+ };
196
+
197
+ export { type AlarmPriority, type AlarmType, type ChannelBaseType, type ChannelSpecificType, type CloudAlarmState, type DiamarAlarmState, type EventCategory, type EventCriticality, Types, type UnitType };