@sedni/cloud_common 2.1.0 → 3.0.1
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/deno.jsonc +46 -0
- package/dist/browser-index.cjs +1481 -0
- package/dist/browser-index.d.cts +470 -0
- package/dist/browser-index.d.ts +470 -0
- package/dist/browser-index.js +409 -0
- package/dist/chunk-55XBONH2.js +1415 -0
- package/dist/chunk-K5VO2MYI.js +1415 -0
- package/dist/chunk-VQWCQ4E2.js +908 -0
- package/dist/index.cjs +2278 -31
- package/dist/index.d.cts +1631 -100
- package/dist/index.d.ts +1631 -100
- package/dist/index.js +1277 -40
- package/dist/unit.types-4ZD9ivHi.d.cts +797 -0
- package/dist/unit.types-4ZD9ivHi.d.ts +797 -0
- package/dist/unit.types-BZWIS1vq.d.cts +1246 -0
- package/dist/unit.types-BZWIS1vq.d.ts +1246 -0
- package/dist/unit.types-CFWDGNUR.d.cts +1246 -0
- package/dist/unit.types-CFWDGNUR.d.ts +1246 -0
- package/package.json +24 -19
- package/tsconfig.json +2 -1
- package/dist/chunk-AOC7BD5E.js +0 -153
- package/dist/chunk-NCUZ3O3P.js +0 -152
- package/dist/node-entry.cjs +0 -1191
- package/dist/node-entry.d.cts +0 -53
- package/dist/node-entry.d.ts +0 -53
- package/dist/node-entry.js +0 -1078
package/dist/index.d.cts
CHANGED
|
@@ -1,105 +1,1406 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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];
|
|
1
|
+
import { c2 as UnitTypes, bp as AlarmPriority, by as DiamarAlarmState, bw as CloudAlarmState, br as AlarmType, c3 as AlarmPriorities, c4 as DiamarAlarmStates, c5 as CloudAlarmStates, c6 as AlarmTypes, c7 as EventCategories, c8 as EventCriticalities, I as ImageAuxiliaryJsonSchema, L as LineAuxiliaryJsonSchema, a as LinkAuxiliaryJsonSchema, P as PolylineAuxiliaryJsonSchema, S as SquareAuxiliaryJsonSchema, T as TextAuxiliaryJsonSchema, C as ChannelJsonSchema, b as CompressorJsonSchema, D as DamperJsonSchema, c as DamperAutomatedJsonSchema, F as FanJsonSchema, d as PumpJsonSchema, e as PumpAutomatedJsonSchema, f as TankJsonSchema, V as ValveJsonSchema, g as ValveAutomatedJsonSchema, A as AlarmIndicatorJsonSchema, h as CommandJsonSchema, i as DialJsonSchema, j as DigitalJsonSchema, k as DisplayJsonSchema, l as DynamicTextJsonSchema, m as LevelBarJsonSchema, n as SliderJsonSchema, o as TextChannelJsonSchema, p as ToggleJsonSchema, q as CabinetJsonSchema, R as RepeaterJsonSchema, r as StationJsonSchema, U as UnitJsonSchema, s as AddedAlarmsJsonSchema, B as BackgroundJsonSchema, t as LineJsonSchema, u as LocalizedTextJsonSchema, v as LocationJsonSchema, w as LogicExpressionJsonSchema, x as LogicExpressionsJsonSchema, y as ScaleJsonSchema, z as TextAttributesJsonSchema, E as TitleJsonSchema, G as AutomaticSemiAutoJsonSchema, H as CommandsOpClJsonSchema, J as CommandsStartStopJsonSchema, K as ControlLockJsonSchema, M as FeedbackOpClJsonSchema, N as FeedbackRunningStoppedJsonSchema, O as OrderOpClJsonSchema, Q as OrderStartStopJsonSchema, W as RemoteLocalJsonSchema, X as TripResetJsonSchema, Y as BreakerJsonSchema, Z as BreakerPmsJsonSchema, _ as GeneratorJsonSchema, $ as GeneratorPmsJsonSchema, a0 as OperationModesJsonSchema, a1 as PriorityDataJsonSchema, a2 as PrioritiesJsonSchema, a3 as ShaftJsonSchema, a4 as ImageAuxiliaryRequestSchema, a5 as LineAuxiliaryRequestSchema, a6 as LinkAuxiliaryRequestSchema, a7 as PolylineAuxiliaryRequestSchema, a8 as SquareAuxiliaryRequestSchema, a9 as TextAuxiliaryRequestSchema, aa as ChannelRequestSchema, ab as CompressorRequestSchema, ac as DamperRequestSchema, ad as DamperAutomatedRequestSchema, ae as FanRequestSchema, af as PumpRequestSchema, ag as PumpAutomatedRequestSchema, ah as TankRequestSchema, ai as ValveRequestSchema, aj as ValveAutomatedRequestSchema, ak as AlarmIndicatorRequestSchema, al as CommandRequestSchema, am as DialRequestSchema, an as DigitalRequestSchema, ao as DisplayRequestSchema, ap as DynamicTextRequestSchema, aq as LevelBarRequestSchema, ar as SliderRequestSchema, as as TextChannelRequestSchema, at as ToggleRequestSchema, au as CabinetRequestSchema, av as RepeaterRequestSchema, aw as StationRequestSchema, ax as UnitRequestSchema, ay as AutomaticSemiAutoRequestSchema, az as CommandsOpClRequestSchema, aA as CommandsStartStopRequestSchema, aB as ControlLockRequestSchema, aC as FeedbackOpClRequestSchema, aD as FeedbackRunningStoppedRequestSchema, aE as OrderOpClRequestSchema, aF as OrderStartStopRequestSchema, aG as RemoteLocalRequestSchema, aH as TripResetRequestSchema, aI as BreakerRequestSchema, aJ as BreakerPmsRequestSchema, aK as GeneratorRequestSchema, aL as GeneratorPmsRequestSchema, aM as OperationModesRequestSchema, aN as PriorityDataRequestSchema, aO as PrioritiesRequestSchema, aP as ShaftRequestSchema, aQ as ImageAuxiliaryResponseSchema, aR as LineAuxiliaryResponseSchema, aS as LinkAuxiliaryResponseSchema, aT as PolylineAuxiliaryResponseSchema, aU as SquareAuxiliaryResponseSchema, aV as TextAuxiliaryResponseSchema, aW as CompressorResponseSchema, aX as DamperResponseSchema, aY as DamperAutomatedResponseSchema, aZ as FanResponseSchema, a_ as PumpResponseSchema, a$ as PumpAutomatedResponseSchema, b0 as TankResponseSchema, b1 as ValveResponseSchema, b2 as ValveAutomatedResponseSchema, b3 as AlarmIndicatorResponseSchema, b4 as CommandResponseSchema, b5 as DialResponseSchema, b6 as DigitalResponseSchema, b7 as DisplayResponseSchema, b8 as DynamicTextResponseSchema, b9 as LevelBarResponseSchema, ba as SliderResponseSchema, bb as TextChannelResponseSchema, bc as ToggleResponseSchema, bd as CabinetResponseSchema, be as RepeaterResponseSchema, bf as StationResponseSchema, bg as UnitResponseSchema, bh as BreakerResponseSchema, bi as BreakerPmsResponseSchema, bj as GeneratorResponseSchema, bk as GeneratorPmsResponseSchema, bl as OperationModesResponseSchema, bm as PrioritiesResponseSchema, bn as ShaftResponseSchema } from './unit.types-BZWIS1vq.cjs';
|
|
2
|
+
export { bo as ActivationMode, bq as AlarmState, bs as AutoSemiAutoState, bt as CabinetDesign, bu as ChannelBaseType, bv as ChannelSpecificType, bx as CompressorDesign, bz as DigitalAlarmState, bA as DigitalState, bB as EventCategory, bC as EventCriticality, bD as FanDesign, bE as FanDirection, bF as FanRunState, bG as FanType, c9 as InfoLocation, bH as LedType, bI as LevelBarOrientation, bJ as LineRequestSchema, bK as LinkDesign, bL as MarkType, bM as MimicAlarmState, bN as MimicControlState, bO as MimicElementType, bP as OpClState, bQ as OperationModeState, bR as RemoteLocalState, bS as RepeaterDesign, bT as RunningStoppedState, bU as ScalePosition, bV as SliderOrientation, bW as StationDesign, bX as TextAnchorPoint, bY as TitleAlign, bZ as UnitDesign, b_ as UnitType, b$ as ValueType, c0 as ValveDesign, c1 as ZDepth } from './unit.types-BZWIS1vq.cjs';
|
|
3
|
+
import mongoose from 'mongoose';
|
|
4
|
+
import mongooseAggregatePaginate from 'mongoose-aggregate-paginate-v2';
|
|
5
|
+
import mongooseAutopopulate from 'mongoose-autopopulate';
|
|
6
|
+
import mongoosePaginate from 'mongoose-paginate-v2';
|
|
43
7
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
};
|
|
51
|
-
type
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
8
|
+
type UnitDocument = mongoose.Document & {
|
|
9
|
+
unit_id: string;
|
|
10
|
+
unit_enabled: boolean;
|
|
11
|
+
unit_type: typeof UnitTypes;
|
|
12
|
+
unit_internal_description: string;
|
|
13
|
+
unit_cabinet_id?: string;
|
|
14
|
+
};
|
|
15
|
+
type UnitModel = mongoose.PaginateModel<UnitDocument> & mongoose.AggregatePaginateModel<UnitDocument>;
|
|
16
|
+
type UnitJSON = {
|
|
17
|
+
id: string;
|
|
18
|
+
unit_id: string;
|
|
19
|
+
unit_enabled: boolean;
|
|
20
|
+
unit_type: typeof UnitTypes;
|
|
21
|
+
unit_internal_description: string;
|
|
22
|
+
unit_cabinet_id?: string;
|
|
23
|
+
createdAt: Date;
|
|
24
|
+
updatedAt: Date;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
type HistoryDocument = mongoose.Document & {
|
|
28
|
+
channel_tag: string;
|
|
29
|
+
alarm_timestamp: Date;
|
|
30
|
+
alarm_priority: AlarmPriority;
|
|
31
|
+
alarm_original_state: DiamarAlarmState;
|
|
32
|
+
alarm_state: CloudAlarmState;
|
|
33
|
+
alarm_type: AlarmType;
|
|
34
|
+
alarm_value?: number;
|
|
35
|
+
alarm_message?: string;
|
|
36
|
+
alarm_data?: Object;
|
|
37
|
+
};
|
|
38
|
+
type HistoryModel = mongoose.PaginateModel<HistoryDocument> & mongoose.AggregatePaginateModel<HistoryDocument>;
|
|
39
|
+
type HistoryJSON = {
|
|
40
|
+
id: string;
|
|
41
|
+
channel_tag: string;
|
|
42
|
+
alarm_timestamp: number;
|
|
43
|
+
alarm_priority: typeof AlarmPriorities;
|
|
44
|
+
alarm_original_state: typeof DiamarAlarmStates;
|
|
45
|
+
alarm_state: typeof CloudAlarmStates;
|
|
46
|
+
alarm_type: typeof AlarmTypes;
|
|
47
|
+
alarm_value?: number;
|
|
48
|
+
alarm_message?: string;
|
|
49
|
+
alarm_data?: Object;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
type EventDocument = mongoose.Document & {
|
|
53
|
+
event_message: string;
|
|
54
|
+
event_source: string;
|
|
55
|
+
event_user?: string;
|
|
56
|
+
event_category: typeof EventCategories;
|
|
57
|
+
event_criticality: typeof EventCriticalities;
|
|
58
|
+
event_type: string;
|
|
59
|
+
event_timestamp: Date;
|
|
60
|
+
event_data?: Object;
|
|
61
|
+
};
|
|
62
|
+
type EventModel = mongoose.PaginateModel<EventDocument> & mongoose.AggregatePaginateModel<EventDocument>;
|
|
63
|
+
type EventJSON = {
|
|
64
|
+
id: string;
|
|
65
|
+
event_message: string;
|
|
66
|
+
event_source: string;
|
|
67
|
+
event_user?: string;
|
|
68
|
+
event_category: typeof EventCategories;
|
|
69
|
+
event_criticality: typeof EventCriticalities;
|
|
70
|
+
event_type: string;
|
|
71
|
+
event_timestamp: number;
|
|
72
|
+
event_data?: Object;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
type ChannelDataPointDocument = mongoose.Document & {
|
|
76
|
+
c: string;
|
|
77
|
+
t: Date;
|
|
78
|
+
v: number;
|
|
79
|
+
};
|
|
80
|
+
type ChannelDataPointModel = mongoose.PaginateModel<ChannelDataPointDocument> & mongoose.AggregatePaginateModel<ChannelDataPointDocument>;
|
|
81
|
+
type ChannelDataPointJSON = {
|
|
82
|
+
id: string;
|
|
83
|
+
channel_id: string;
|
|
84
|
+
timestamp: number;
|
|
85
|
+
value: number;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
type ChannelDataBucketDocument = mongoose.Document & {
|
|
89
|
+
start_date: Date;
|
|
90
|
+
end_date: Date;
|
|
91
|
+
data: {
|
|
92
|
+
channel_id: string;
|
|
93
|
+
timestamp: number;
|
|
94
|
+
value: number;
|
|
95
|
+
}[];
|
|
96
|
+
size: number;
|
|
97
|
+
synced: number;
|
|
98
|
+
sum: number;
|
|
99
|
+
};
|
|
100
|
+
type ChannelDataBucketModel = mongoose.PaginateModel<ChannelDataBucketDocument> & mongoose.AggregatePaginateModel<ChannelDataBucketDocument>;
|
|
101
|
+
type ChannelDataBucketJSON = {
|
|
102
|
+
id: string;
|
|
103
|
+
start_date: number;
|
|
104
|
+
end_date: number;
|
|
105
|
+
data: {
|
|
106
|
+
channel_id: string;
|
|
107
|
+
timestamp: number;
|
|
108
|
+
value: number;
|
|
109
|
+
}[];
|
|
110
|
+
size: number;
|
|
111
|
+
synced: number;
|
|
112
|
+
sum: number;
|
|
113
|
+
avg: number;
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
type ChannelDocument = mongoose.Document & {
|
|
117
|
+
channel_tag: string;
|
|
118
|
+
channel_description: string;
|
|
119
|
+
channel_unit_id: mongoose.Types.ObjectId;
|
|
120
|
+
channel_parsed: Object;
|
|
121
|
+
};
|
|
122
|
+
type ChannelModel = mongoose.PaginateModel<ChannelDocument> & mongoose.AggregatePaginateModel<ChannelDocument>;
|
|
123
|
+
type ChannelJSON = {
|
|
124
|
+
id: string;
|
|
125
|
+
channel_tag: string;
|
|
126
|
+
channel_description: string;
|
|
127
|
+
channel_unit_id: string;
|
|
128
|
+
channel_unit: any;
|
|
129
|
+
channel_parsed: Object;
|
|
130
|
+
createdAt: Date;
|
|
131
|
+
updatedAt: Date;
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
declare const Docs: {
|
|
135
|
+
ChannelDocs: {
|
|
136
|
+
components: {
|
|
137
|
+
schemas: {
|
|
138
|
+
Channel: {
|
|
139
|
+
type: string;
|
|
140
|
+
properties: {
|
|
141
|
+
id: {
|
|
142
|
+
type: string;
|
|
143
|
+
format: string;
|
|
144
|
+
description: string;
|
|
145
|
+
example: string;
|
|
146
|
+
readOnly: boolean;
|
|
147
|
+
};
|
|
148
|
+
channel_tag: {
|
|
149
|
+
type: string;
|
|
150
|
+
description: string;
|
|
151
|
+
example: string;
|
|
152
|
+
readOnly: boolean;
|
|
153
|
+
};
|
|
154
|
+
channel_description: {
|
|
155
|
+
type: string;
|
|
156
|
+
description: string;
|
|
157
|
+
example: string;
|
|
158
|
+
readOnly: boolean;
|
|
159
|
+
};
|
|
160
|
+
channel_unit_id: {
|
|
161
|
+
type: string;
|
|
162
|
+
format: string;
|
|
163
|
+
description: string;
|
|
164
|
+
example: string;
|
|
165
|
+
readOnly: boolean;
|
|
166
|
+
};
|
|
167
|
+
channel_parsed: {
|
|
168
|
+
type: string;
|
|
169
|
+
description: string;
|
|
170
|
+
readOnly: boolean;
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
required: string[];
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
examples: {
|
|
177
|
+
Channel: {
|
|
178
|
+
value: {
|
|
179
|
+
id: string;
|
|
180
|
+
channel_tag: string;
|
|
181
|
+
channel_description: string;
|
|
182
|
+
channel_type: string;
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
ChannelDataBucketDocs: {
|
|
189
|
+
components: {
|
|
190
|
+
schemas: {
|
|
191
|
+
ChannelData: {
|
|
192
|
+
type: string;
|
|
193
|
+
description: string;
|
|
194
|
+
properties: {
|
|
195
|
+
id: {
|
|
196
|
+
type: string;
|
|
197
|
+
format: string;
|
|
198
|
+
description: string;
|
|
199
|
+
example: string;
|
|
200
|
+
readOnly: boolean;
|
|
201
|
+
};
|
|
202
|
+
start_date: {
|
|
203
|
+
type: string;
|
|
204
|
+
format: string;
|
|
205
|
+
description: string;
|
|
206
|
+
example: string;
|
|
207
|
+
readOnly: boolean;
|
|
208
|
+
};
|
|
209
|
+
end_date: {
|
|
210
|
+
type: string;
|
|
211
|
+
format: string;
|
|
212
|
+
description: string;
|
|
213
|
+
example: string;
|
|
214
|
+
readOnly: boolean;
|
|
215
|
+
};
|
|
216
|
+
data: {
|
|
217
|
+
type: string;
|
|
218
|
+
description: string;
|
|
219
|
+
items: {
|
|
220
|
+
$ref: string;
|
|
221
|
+
};
|
|
222
|
+
readOnly: boolean;
|
|
223
|
+
};
|
|
224
|
+
size: {
|
|
225
|
+
type: string;
|
|
226
|
+
format: string;
|
|
227
|
+
description: string;
|
|
228
|
+
example: number;
|
|
229
|
+
readOnly: boolean;
|
|
230
|
+
};
|
|
231
|
+
synced: {
|
|
232
|
+
type: string;
|
|
233
|
+
description: string;
|
|
234
|
+
example: string;
|
|
235
|
+
readOnly: boolean;
|
|
236
|
+
};
|
|
237
|
+
sum: {
|
|
238
|
+
type: string;
|
|
239
|
+
format: string;
|
|
240
|
+
description: string;
|
|
241
|
+
example: number;
|
|
242
|
+
readOnly: boolean;
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
examples: {
|
|
248
|
+
ChannelData: {
|
|
249
|
+
id: string;
|
|
250
|
+
start_date: string;
|
|
251
|
+
end_date: string;
|
|
252
|
+
data: {
|
|
253
|
+
t: number;
|
|
254
|
+
v: number;
|
|
255
|
+
}[];
|
|
256
|
+
size: number;
|
|
257
|
+
synced: string;
|
|
258
|
+
sum: number;
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
ChannelWithDataDocs: {
|
|
264
|
+
components: {
|
|
265
|
+
schemas: {
|
|
266
|
+
ChannelWithData: {
|
|
267
|
+
allOf: ({
|
|
268
|
+
$ref: string;
|
|
269
|
+
type?: undefined;
|
|
270
|
+
properties?: undefined;
|
|
271
|
+
} | {
|
|
272
|
+
type: string;
|
|
273
|
+
properties: {
|
|
274
|
+
channel_latest_value: {
|
|
275
|
+
type: string;
|
|
276
|
+
description: string;
|
|
277
|
+
example: string;
|
|
278
|
+
readOnly: boolean;
|
|
279
|
+
};
|
|
280
|
+
channel_latest_timestamp: {
|
|
281
|
+
type: string;
|
|
282
|
+
format: string;
|
|
283
|
+
description: string;
|
|
284
|
+
example: number;
|
|
285
|
+
readOnly: boolean;
|
|
286
|
+
};
|
|
287
|
+
channel_alarm_state: {
|
|
288
|
+
type: string;
|
|
289
|
+
description: string;
|
|
290
|
+
example: string;
|
|
291
|
+
readOnly: boolean;
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
$ref?: undefined;
|
|
295
|
+
})[];
|
|
296
|
+
required: string[];
|
|
297
|
+
};
|
|
298
|
+
};
|
|
299
|
+
examples: {
|
|
300
|
+
ChannelWithData: {
|
|
301
|
+
value: {
|
|
302
|
+
id: string;
|
|
303
|
+
channel_tag: string;
|
|
304
|
+
channel_description: string;
|
|
305
|
+
channel_type: string;
|
|
306
|
+
channel_latest_value: number;
|
|
307
|
+
channel_latest_timestamp: number;
|
|
308
|
+
channel_alarm_state: string;
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
};
|
|
314
|
+
ChannelDataPointDocs: {
|
|
315
|
+
components: {
|
|
316
|
+
schemas: {
|
|
317
|
+
ChannelDataPoint: {
|
|
318
|
+
type: string;
|
|
319
|
+
description: string;
|
|
320
|
+
properties: {
|
|
321
|
+
c: {
|
|
322
|
+
type: string;
|
|
323
|
+
description: string;
|
|
324
|
+
example: string;
|
|
325
|
+
readOnly: boolean;
|
|
326
|
+
};
|
|
327
|
+
t: {
|
|
328
|
+
type: string;
|
|
329
|
+
format: string;
|
|
330
|
+
description: string;
|
|
331
|
+
example: number;
|
|
332
|
+
readOnly: boolean;
|
|
333
|
+
};
|
|
334
|
+
v: {
|
|
335
|
+
type: string;
|
|
336
|
+
format: string;
|
|
337
|
+
description: string;
|
|
338
|
+
example: number;
|
|
339
|
+
readOnly: boolean;
|
|
340
|
+
};
|
|
341
|
+
};
|
|
342
|
+
};
|
|
343
|
+
};
|
|
344
|
+
examples: {
|
|
345
|
+
ChannelDataPoint: {
|
|
346
|
+
c: string;
|
|
347
|
+
t: number;
|
|
348
|
+
v: number;
|
|
349
|
+
};
|
|
350
|
+
};
|
|
351
|
+
};
|
|
352
|
+
};
|
|
353
|
+
EventDocs: {
|
|
354
|
+
components: {
|
|
355
|
+
schemas: {
|
|
356
|
+
Event: {
|
|
357
|
+
type: string;
|
|
358
|
+
description: string;
|
|
359
|
+
properties: {
|
|
360
|
+
id: {
|
|
361
|
+
type: string;
|
|
362
|
+
format: string;
|
|
363
|
+
description: string;
|
|
364
|
+
example: string;
|
|
365
|
+
readOnly: boolean;
|
|
366
|
+
};
|
|
367
|
+
event_message: {
|
|
368
|
+
type: string;
|
|
369
|
+
format: string;
|
|
370
|
+
description: string;
|
|
371
|
+
example: string;
|
|
372
|
+
};
|
|
373
|
+
event_source: {
|
|
374
|
+
type: string;
|
|
375
|
+
format: string;
|
|
376
|
+
description: string;
|
|
377
|
+
example: string;
|
|
378
|
+
};
|
|
379
|
+
event_category: {
|
|
380
|
+
type: string;
|
|
381
|
+
format: string;
|
|
382
|
+
description: string;
|
|
383
|
+
example: string;
|
|
384
|
+
enum: string;
|
|
385
|
+
};
|
|
386
|
+
event_type: {
|
|
387
|
+
type: string;
|
|
388
|
+
format: string;
|
|
389
|
+
description: string;
|
|
390
|
+
example: string;
|
|
391
|
+
};
|
|
392
|
+
event_timestamp: {
|
|
393
|
+
type: string;
|
|
394
|
+
format: string;
|
|
395
|
+
description: string;
|
|
396
|
+
example: number;
|
|
397
|
+
};
|
|
398
|
+
event_data: {
|
|
399
|
+
type: string;
|
|
400
|
+
description: string;
|
|
401
|
+
};
|
|
402
|
+
};
|
|
403
|
+
required: string[];
|
|
404
|
+
};
|
|
405
|
+
};
|
|
406
|
+
examples: {
|
|
407
|
+
Event: {
|
|
408
|
+
value: {
|
|
409
|
+
id: string;
|
|
410
|
+
event_message: string;
|
|
411
|
+
event_source: string;
|
|
412
|
+
event_category: string;
|
|
413
|
+
event_type: string;
|
|
414
|
+
event_timestamp: number;
|
|
415
|
+
event_data: {
|
|
416
|
+
profile: string;
|
|
417
|
+
duration: number;
|
|
418
|
+
replaced_profile: string;
|
|
419
|
+
};
|
|
420
|
+
};
|
|
421
|
+
};
|
|
422
|
+
};
|
|
423
|
+
};
|
|
424
|
+
};
|
|
425
|
+
HistoryDocs: {
|
|
426
|
+
components: {
|
|
427
|
+
schemas: {
|
|
428
|
+
History: {
|
|
429
|
+
type: string;
|
|
430
|
+
properties: {
|
|
431
|
+
id: {
|
|
432
|
+
type: string;
|
|
433
|
+
format: string;
|
|
434
|
+
description: string;
|
|
435
|
+
example: string;
|
|
436
|
+
readOnly: boolean;
|
|
437
|
+
};
|
|
438
|
+
channel_tag: {
|
|
439
|
+
type: string;
|
|
440
|
+
format: string;
|
|
441
|
+
description: string;
|
|
442
|
+
example: string;
|
|
443
|
+
readOnly: boolean;
|
|
444
|
+
};
|
|
445
|
+
alarm_timestamp: {
|
|
446
|
+
type: string;
|
|
447
|
+
format: string;
|
|
448
|
+
description: string;
|
|
449
|
+
example: string;
|
|
450
|
+
readOnly: boolean;
|
|
451
|
+
};
|
|
452
|
+
alarm_priority: {
|
|
453
|
+
type: string;
|
|
454
|
+
format: string;
|
|
455
|
+
description: string;
|
|
456
|
+
example: string;
|
|
457
|
+
enum: string;
|
|
458
|
+
readOnly: boolean;
|
|
459
|
+
};
|
|
460
|
+
alarm_original_state: {
|
|
461
|
+
type: string;
|
|
462
|
+
format: string;
|
|
463
|
+
description: string;
|
|
464
|
+
example: string;
|
|
465
|
+
enum: string;
|
|
466
|
+
readOnly: boolean;
|
|
467
|
+
};
|
|
468
|
+
alarm_state: {
|
|
469
|
+
type: string;
|
|
470
|
+
format: string;
|
|
471
|
+
description: string;
|
|
472
|
+
example: string;
|
|
473
|
+
enum: string;
|
|
474
|
+
readOnly: boolean;
|
|
475
|
+
};
|
|
476
|
+
alarm_type: {
|
|
477
|
+
type: string;
|
|
478
|
+
format: string;
|
|
479
|
+
description: string;
|
|
480
|
+
example: string;
|
|
481
|
+
enum: string;
|
|
482
|
+
readOnly: boolean;
|
|
483
|
+
};
|
|
484
|
+
alarm_value: {
|
|
485
|
+
type: string;
|
|
486
|
+
format: string;
|
|
487
|
+
description: string;
|
|
488
|
+
example: number;
|
|
489
|
+
readOnly: boolean;
|
|
490
|
+
};
|
|
491
|
+
alarm_message: {
|
|
492
|
+
type: string;
|
|
493
|
+
format: string;
|
|
494
|
+
description: string;
|
|
495
|
+
example: string;
|
|
496
|
+
readOnly: boolean;
|
|
497
|
+
};
|
|
498
|
+
};
|
|
499
|
+
required: string[];
|
|
500
|
+
};
|
|
501
|
+
};
|
|
502
|
+
examples: {
|
|
503
|
+
History: {
|
|
504
|
+
value: {
|
|
505
|
+
id: string;
|
|
506
|
+
channel_tag: string;
|
|
507
|
+
alarm_timestamp: string;
|
|
508
|
+
alarm_priority: string;
|
|
509
|
+
alarm_original_state: string;
|
|
510
|
+
alarm_state: string;
|
|
511
|
+
alarm_type: string;
|
|
512
|
+
alarm_value: number;
|
|
513
|
+
alarm_message: string;
|
|
514
|
+
};
|
|
515
|
+
};
|
|
516
|
+
};
|
|
517
|
+
};
|
|
518
|
+
};
|
|
519
|
+
UnitDocs: {
|
|
520
|
+
components: {
|
|
521
|
+
schemas: {
|
|
522
|
+
Unit: {
|
|
523
|
+
type: string;
|
|
524
|
+
properties: {
|
|
525
|
+
id: {
|
|
526
|
+
type: string;
|
|
527
|
+
format: string;
|
|
528
|
+
description: string;
|
|
529
|
+
example: string;
|
|
530
|
+
readOnly: boolean;
|
|
531
|
+
};
|
|
532
|
+
unit_id: {
|
|
533
|
+
type: string;
|
|
534
|
+
description: string;
|
|
535
|
+
example: string;
|
|
536
|
+
readOnly: boolean;
|
|
537
|
+
};
|
|
538
|
+
unit_internal_description: {
|
|
539
|
+
type: string;
|
|
540
|
+
description: string;
|
|
541
|
+
example: string;
|
|
542
|
+
readOnly: boolean;
|
|
543
|
+
};
|
|
544
|
+
unit_enabled: {
|
|
545
|
+
type: string;
|
|
546
|
+
description: string;
|
|
547
|
+
example: boolean;
|
|
548
|
+
readOnly: boolean;
|
|
549
|
+
};
|
|
550
|
+
unit_type: {
|
|
551
|
+
type: string;
|
|
552
|
+
description: string;
|
|
553
|
+
example: string;
|
|
554
|
+
readOnly: boolean;
|
|
555
|
+
};
|
|
556
|
+
unit_cabinet_id: {
|
|
557
|
+
type: string;
|
|
558
|
+
description: string;
|
|
559
|
+
example: string;
|
|
560
|
+
readOnly: boolean;
|
|
561
|
+
};
|
|
562
|
+
};
|
|
563
|
+
required: string[];
|
|
564
|
+
};
|
|
565
|
+
};
|
|
566
|
+
examples: {
|
|
567
|
+
Unit: {
|
|
568
|
+
value: {
|
|
569
|
+
id: string;
|
|
570
|
+
unit_id: string;
|
|
571
|
+
unit_internal_description: string;
|
|
572
|
+
unit_enabled: boolean;
|
|
573
|
+
unit_type: string;
|
|
574
|
+
unit_cabinet_id: string;
|
|
575
|
+
};
|
|
576
|
+
};
|
|
577
|
+
};
|
|
578
|
+
};
|
|
579
|
+
};
|
|
580
|
+
};
|
|
71
581
|
|
|
72
|
-
declare const
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
582
|
+
declare const Schemas: {
|
|
583
|
+
Channel: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
584
|
+
timestamps: {
|
|
585
|
+
createdAt: true;
|
|
586
|
+
updatedAt: true;
|
|
587
|
+
};
|
|
588
|
+
collection: string;
|
|
589
|
+
toJSON: {
|
|
590
|
+
transform: (_doc: ChannelDocument, ret: any) => void;
|
|
591
|
+
};
|
|
592
|
+
}, {
|
|
593
|
+
channel_tag: string;
|
|
594
|
+
channel_description: string;
|
|
595
|
+
channel_unit_id: mongoose.Types.ObjectId;
|
|
596
|
+
channel_parsed: any;
|
|
597
|
+
channel_last_bucket_sync?: NativeDate | null | undefined;
|
|
598
|
+
createdAt: NativeDate;
|
|
599
|
+
updatedAt: NativeDate;
|
|
600
|
+
}, ChannelDocument, {
|
|
601
|
+
[path: string]: mongoose.SchemaDefinitionProperty<undefined, any, any>;
|
|
602
|
+
} | {
|
|
603
|
+
[x: string]: mongoose.SchemaDefinitionProperty<any, any, ChannelDocument> | undefined;
|
|
604
|
+
}, {
|
|
605
|
+
channel_tag: string;
|
|
606
|
+
channel_description: string;
|
|
607
|
+
channel_unit_id: mongoose.Types.ObjectId;
|
|
608
|
+
channel_parsed: any;
|
|
609
|
+
channel_last_bucket_sync?: NativeDate | null | undefined;
|
|
610
|
+
createdAt: NativeDate;
|
|
611
|
+
updatedAt: NativeDate;
|
|
612
|
+
} & {
|
|
613
|
+
_id: mongoose.Types.ObjectId;
|
|
614
|
+
} & {
|
|
615
|
+
__v: number;
|
|
616
|
+
}>;
|
|
617
|
+
ChannelDataBucket: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
618
|
+
toJSON: {
|
|
619
|
+
transform: (doc: ChannelDataBucketDocument, ret: any) => void;
|
|
620
|
+
};
|
|
621
|
+
versionKey: false;
|
|
622
|
+
}, {
|
|
623
|
+
data: mongoose.Types.DocumentArray<{
|
|
624
|
+
value: number;
|
|
625
|
+
channel_id: string;
|
|
626
|
+
timestamp: number;
|
|
627
|
+
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
628
|
+
value: number;
|
|
629
|
+
channel_id: string;
|
|
630
|
+
timestamp: number;
|
|
631
|
+
}, {}, {}> & {
|
|
632
|
+
value: number;
|
|
633
|
+
channel_id: string;
|
|
634
|
+
timestamp: number;
|
|
635
|
+
}>;
|
|
636
|
+
size: number;
|
|
637
|
+
start_date: NativeDate;
|
|
638
|
+
end_date: NativeDate;
|
|
639
|
+
synced: number;
|
|
640
|
+
sum: number;
|
|
641
|
+
}, ChannelDataBucketDocument, {
|
|
642
|
+
[path: string]: mongoose.SchemaDefinitionProperty<undefined, any, any>;
|
|
643
|
+
} | {
|
|
644
|
+
[x: string]: mongoose.SchemaDefinitionProperty<any, any, ChannelDataBucketDocument> | undefined;
|
|
645
|
+
}, {
|
|
646
|
+
data: mongoose.Types.DocumentArray<{
|
|
647
|
+
value: number;
|
|
648
|
+
channel_id: string;
|
|
649
|
+
timestamp: number;
|
|
650
|
+
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
651
|
+
value: number;
|
|
652
|
+
channel_id: string;
|
|
653
|
+
timestamp: number;
|
|
654
|
+
}, {}, {}> & {
|
|
655
|
+
value: number;
|
|
656
|
+
channel_id: string;
|
|
657
|
+
timestamp: number;
|
|
658
|
+
}>;
|
|
659
|
+
size: number;
|
|
660
|
+
start_date: NativeDate;
|
|
661
|
+
end_date: NativeDate;
|
|
662
|
+
synced: number;
|
|
663
|
+
sum: number;
|
|
664
|
+
} & {
|
|
665
|
+
_id: mongoose.Types.ObjectId;
|
|
666
|
+
} & {
|
|
667
|
+
__v: number;
|
|
668
|
+
}>;
|
|
669
|
+
ChannelDataPoint: mongoose.Schema<ChannelDataPointDocument, mongoose.Model<ChannelDataPointDocument, any, any, any, (mongoose.Document<unknown, any, ChannelDataPointDocument, any, mongoose.DefaultSchemaOptions> & mongoose.Document<mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & {
|
|
670
|
+
c: string;
|
|
671
|
+
t: Date;
|
|
672
|
+
v: number;
|
|
673
|
+
} & Required<{
|
|
674
|
+
_id: mongoose.Types.ObjectId;
|
|
675
|
+
}> & {
|
|
676
|
+
__v: number;
|
|
677
|
+
} & {
|
|
678
|
+
id: string;
|
|
679
|
+
}) | (mongoose.Document<unknown, any, ChannelDataPointDocument, any, mongoose.DefaultSchemaOptions> & mongoose.Document<mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & {
|
|
680
|
+
c: string;
|
|
681
|
+
t: Date;
|
|
682
|
+
v: number;
|
|
683
|
+
} & Required<{
|
|
684
|
+
_id: mongoose.Types.ObjectId;
|
|
685
|
+
}> & {
|
|
686
|
+
__v: number;
|
|
687
|
+
}), any, ChannelDataPointDocument>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, ChannelDataPointDocument, mongoose.Document<unknown, {}, ChannelDataPointDocument, {
|
|
688
|
+
id: string;
|
|
689
|
+
}, mongoose.DefaultSchemaOptions> & Omit<mongoose.Document<mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & {
|
|
690
|
+
c: string;
|
|
691
|
+
t: Date;
|
|
692
|
+
v: number;
|
|
693
|
+
} & Required<{
|
|
694
|
+
_id: mongoose.Types.ObjectId;
|
|
695
|
+
}> & {
|
|
696
|
+
__v: number;
|
|
697
|
+
}, "id"> & {
|
|
698
|
+
id: string;
|
|
699
|
+
}, {
|
|
700
|
+
_id?: mongoose.SchemaDefinitionProperty<mongoose.Types.ObjectId, ChannelDataPointDocument, mongoose.Document<unknown, {}, ChannelDataPointDocument, {
|
|
701
|
+
id: string;
|
|
702
|
+
}, mongoose.DefaultSchemaOptions> & Omit<mongoose.Document<mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & {
|
|
703
|
+
c: string;
|
|
704
|
+
t: Date;
|
|
705
|
+
v: number;
|
|
706
|
+
} & Required<{
|
|
707
|
+
_id: mongoose.Types.ObjectId;
|
|
708
|
+
}> & {
|
|
709
|
+
__v: number;
|
|
710
|
+
}, "id"> & {
|
|
711
|
+
id: string;
|
|
712
|
+
}> | undefined;
|
|
713
|
+
c?: mongoose.SchemaDefinitionProperty<string, ChannelDataPointDocument, mongoose.Document<unknown, {}, ChannelDataPointDocument, {
|
|
714
|
+
id: string;
|
|
715
|
+
}, mongoose.DefaultSchemaOptions> & Omit<mongoose.Document<mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & {
|
|
716
|
+
c: string;
|
|
717
|
+
t: Date;
|
|
718
|
+
v: number;
|
|
719
|
+
} & Required<{
|
|
720
|
+
_id: mongoose.Types.ObjectId;
|
|
721
|
+
}> & {
|
|
722
|
+
__v: number;
|
|
723
|
+
}, "id"> & {
|
|
724
|
+
id: string;
|
|
725
|
+
}> | undefined;
|
|
726
|
+
t?: mongoose.SchemaDefinitionProperty<Date, ChannelDataPointDocument, mongoose.Document<unknown, {}, ChannelDataPointDocument, {
|
|
727
|
+
id: string;
|
|
728
|
+
}, mongoose.DefaultSchemaOptions> & Omit<mongoose.Document<mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & {
|
|
729
|
+
c: string;
|
|
730
|
+
t: Date;
|
|
731
|
+
v: number;
|
|
732
|
+
} & Required<{
|
|
733
|
+
_id: mongoose.Types.ObjectId;
|
|
734
|
+
}> & {
|
|
735
|
+
__v: number;
|
|
736
|
+
}, "id"> & {
|
|
737
|
+
id: string;
|
|
738
|
+
}> | undefined;
|
|
739
|
+
v?: mongoose.SchemaDefinitionProperty<number, ChannelDataPointDocument, mongoose.Document<unknown, {}, ChannelDataPointDocument, {
|
|
740
|
+
id: string;
|
|
741
|
+
}, mongoose.DefaultSchemaOptions> & Omit<mongoose.Document<mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & {
|
|
742
|
+
c: string;
|
|
743
|
+
t: Date;
|
|
744
|
+
v: number;
|
|
745
|
+
} & Required<{
|
|
746
|
+
_id: mongoose.Types.ObjectId;
|
|
747
|
+
}> & {
|
|
748
|
+
__v: number;
|
|
749
|
+
}, "id"> & {
|
|
750
|
+
id: string;
|
|
751
|
+
}> | undefined;
|
|
752
|
+
}, ChannelDataPointDocument> & {
|
|
753
|
+
addTTLIndex?: (expirationTimeInSeconds?: number, ttlField?: string) => void;
|
|
754
|
+
};
|
|
755
|
+
Event: mongoose.Schema<EventDocument, mongoose.Model<EventDocument, any, any, any, (mongoose.Document<unknown, any, EventDocument, any, mongoose.DefaultSchemaOptions> & mongoose.Document<mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & {
|
|
756
|
+
event_message: string;
|
|
757
|
+
event_source: string;
|
|
758
|
+
event_user?: string;
|
|
759
|
+
event_category: typeof EventCategories;
|
|
760
|
+
event_criticality: typeof EventCriticalities;
|
|
761
|
+
event_type: string;
|
|
762
|
+
event_timestamp: Date;
|
|
763
|
+
event_data?: Object;
|
|
764
|
+
} & Required<{
|
|
765
|
+
_id: mongoose.Types.ObjectId;
|
|
766
|
+
}> & {
|
|
767
|
+
__v: number;
|
|
768
|
+
} & {
|
|
769
|
+
id: string;
|
|
770
|
+
}) | (mongoose.Document<unknown, any, EventDocument, any, mongoose.DefaultSchemaOptions> & mongoose.Document<mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & {
|
|
771
|
+
event_message: string;
|
|
772
|
+
event_source: string;
|
|
773
|
+
event_user?: string;
|
|
774
|
+
event_category: typeof EventCategories;
|
|
775
|
+
event_criticality: typeof EventCriticalities;
|
|
776
|
+
event_type: string;
|
|
777
|
+
event_timestamp: Date;
|
|
778
|
+
event_data?: Object;
|
|
779
|
+
} & Required<{
|
|
780
|
+
_id: mongoose.Types.ObjectId;
|
|
781
|
+
}> & {
|
|
782
|
+
__v: number;
|
|
783
|
+
}), any, EventDocument>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, EventDocument, mongoose.Document<unknown, {}, EventDocument, {
|
|
784
|
+
id: string;
|
|
785
|
+
}, mongoose.DefaultSchemaOptions> & Omit<mongoose.Document<mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & {
|
|
786
|
+
event_message: string;
|
|
787
|
+
event_source: string;
|
|
788
|
+
event_user?: string;
|
|
789
|
+
event_category: typeof EventCategories;
|
|
790
|
+
event_criticality: typeof EventCriticalities;
|
|
791
|
+
event_type: string;
|
|
792
|
+
event_timestamp: Date;
|
|
793
|
+
event_data?: Object;
|
|
794
|
+
} & Required<{
|
|
795
|
+
_id: mongoose.Types.ObjectId;
|
|
796
|
+
}> & {
|
|
797
|
+
__v: number;
|
|
798
|
+
}, "id"> & {
|
|
799
|
+
id: string;
|
|
800
|
+
}, {
|
|
801
|
+
_id?: mongoose.SchemaDefinitionProperty<mongoose.Types.ObjectId, EventDocument, mongoose.Document<unknown, {}, EventDocument, {
|
|
802
|
+
id: string;
|
|
803
|
+
}, mongoose.DefaultSchemaOptions> & Omit<mongoose.Document<mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & {
|
|
804
|
+
event_message: string;
|
|
805
|
+
event_source: string;
|
|
806
|
+
event_user?: string;
|
|
807
|
+
event_category: typeof EventCategories;
|
|
808
|
+
event_criticality: typeof EventCriticalities;
|
|
809
|
+
event_type: string;
|
|
810
|
+
event_timestamp: Date;
|
|
811
|
+
event_data?: Object;
|
|
812
|
+
} & Required<{
|
|
813
|
+
_id: mongoose.Types.ObjectId;
|
|
814
|
+
}> & {
|
|
815
|
+
__v: number;
|
|
816
|
+
}, "id"> & {
|
|
817
|
+
id: string;
|
|
818
|
+
}> | undefined;
|
|
819
|
+
event_message?: mongoose.SchemaDefinitionProperty<string, EventDocument, mongoose.Document<unknown, {}, EventDocument, {
|
|
820
|
+
id: string;
|
|
821
|
+
}, mongoose.DefaultSchemaOptions> & Omit<mongoose.Document<mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & {
|
|
822
|
+
event_message: string;
|
|
823
|
+
event_source: string;
|
|
824
|
+
event_user?: string;
|
|
825
|
+
event_category: typeof EventCategories;
|
|
826
|
+
event_criticality: typeof EventCriticalities;
|
|
827
|
+
event_type: string;
|
|
828
|
+
event_timestamp: Date;
|
|
829
|
+
event_data?: Object;
|
|
830
|
+
} & Required<{
|
|
831
|
+
_id: mongoose.Types.ObjectId;
|
|
832
|
+
}> & {
|
|
833
|
+
__v: number;
|
|
834
|
+
}, "id"> & {
|
|
835
|
+
id: string;
|
|
836
|
+
}> | undefined;
|
|
837
|
+
event_source?: mongoose.SchemaDefinitionProperty<string, EventDocument, mongoose.Document<unknown, {}, EventDocument, {
|
|
838
|
+
id: string;
|
|
839
|
+
}, mongoose.DefaultSchemaOptions> & Omit<mongoose.Document<mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & {
|
|
840
|
+
event_message: string;
|
|
841
|
+
event_source: string;
|
|
842
|
+
event_user?: string;
|
|
843
|
+
event_category: typeof EventCategories;
|
|
844
|
+
event_criticality: typeof EventCriticalities;
|
|
845
|
+
event_type: string;
|
|
846
|
+
event_timestamp: Date;
|
|
847
|
+
event_data?: Object;
|
|
848
|
+
} & Required<{
|
|
849
|
+
_id: mongoose.Types.ObjectId;
|
|
850
|
+
}> & {
|
|
851
|
+
__v: number;
|
|
852
|
+
}, "id"> & {
|
|
853
|
+
id: string;
|
|
854
|
+
}> | undefined;
|
|
855
|
+
event_user?: mongoose.SchemaDefinitionProperty<string | undefined, EventDocument, mongoose.Document<unknown, {}, EventDocument, {
|
|
856
|
+
id: string;
|
|
857
|
+
}, mongoose.DefaultSchemaOptions> & Omit<mongoose.Document<mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & {
|
|
858
|
+
event_message: string;
|
|
859
|
+
event_source: string;
|
|
860
|
+
event_user?: string;
|
|
861
|
+
event_category: typeof EventCategories;
|
|
862
|
+
event_criticality: typeof EventCriticalities;
|
|
863
|
+
event_type: string;
|
|
864
|
+
event_timestamp: Date;
|
|
865
|
+
event_data?: Object;
|
|
866
|
+
} & Required<{
|
|
867
|
+
_id: mongoose.Types.ObjectId;
|
|
868
|
+
}> & {
|
|
869
|
+
__v: number;
|
|
870
|
+
}, "id"> & {
|
|
871
|
+
id: string;
|
|
872
|
+
}> | undefined;
|
|
873
|
+
event_category?: mongoose.SchemaDefinitionProperty<{
|
|
874
|
+
readonly ACCESS_CONTROL: "AccessControl";
|
|
875
|
+
readonly REQUEST_ERROR: "RequestErrors";
|
|
876
|
+
readonly OS: "OperatingSystemEvents";
|
|
877
|
+
readonly CONTROL: "ControlSystemEvents";
|
|
878
|
+
readonly BACKUP: "BackupAndRestoreEvents";
|
|
879
|
+
readonly CONFIG_CHANGE: "ConfigurationChanges";
|
|
880
|
+
readonly LOGS: "AuditLogEvents";
|
|
881
|
+
readonly POTENTIAL_ATTACK: "PotentialAttackActivity";
|
|
882
|
+
}, EventDocument, mongoose.Document<unknown, {}, EventDocument, {
|
|
883
|
+
id: string;
|
|
884
|
+
}, mongoose.DefaultSchemaOptions> & Omit<mongoose.Document<mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & {
|
|
885
|
+
event_message: string;
|
|
886
|
+
event_source: string;
|
|
887
|
+
event_user?: string;
|
|
888
|
+
event_category: typeof EventCategories;
|
|
889
|
+
event_criticality: typeof EventCriticalities;
|
|
890
|
+
event_type: string;
|
|
891
|
+
event_timestamp: Date;
|
|
892
|
+
event_data?: Object;
|
|
893
|
+
} & Required<{
|
|
894
|
+
_id: mongoose.Types.ObjectId;
|
|
895
|
+
}> & {
|
|
896
|
+
__v: number;
|
|
897
|
+
}, "id"> & {
|
|
898
|
+
id: string;
|
|
899
|
+
}> | undefined;
|
|
900
|
+
event_criticality?: mongoose.SchemaDefinitionProperty<{
|
|
901
|
+
readonly VERBOSE: "Verbose";
|
|
902
|
+
readonly INFO: "Info";
|
|
903
|
+
readonly WARNING: "Warning";
|
|
904
|
+
readonly ERROR: "Error";
|
|
905
|
+
readonly CRITICAL: "Critical";
|
|
906
|
+
}, EventDocument, mongoose.Document<unknown, {}, EventDocument, {
|
|
907
|
+
id: string;
|
|
908
|
+
}, mongoose.DefaultSchemaOptions> & Omit<mongoose.Document<mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & {
|
|
909
|
+
event_message: string;
|
|
910
|
+
event_source: string;
|
|
911
|
+
event_user?: string;
|
|
912
|
+
event_category: typeof EventCategories;
|
|
913
|
+
event_criticality: typeof EventCriticalities;
|
|
914
|
+
event_type: string;
|
|
915
|
+
event_timestamp: Date;
|
|
916
|
+
event_data?: Object;
|
|
917
|
+
} & Required<{
|
|
918
|
+
_id: mongoose.Types.ObjectId;
|
|
919
|
+
}> & {
|
|
920
|
+
__v: number;
|
|
921
|
+
}, "id"> & {
|
|
922
|
+
id: string;
|
|
923
|
+
}> | undefined;
|
|
924
|
+
event_type?: mongoose.SchemaDefinitionProperty<string, EventDocument, mongoose.Document<unknown, {}, EventDocument, {
|
|
925
|
+
id: string;
|
|
926
|
+
}, mongoose.DefaultSchemaOptions> & Omit<mongoose.Document<mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & {
|
|
927
|
+
event_message: string;
|
|
928
|
+
event_source: string;
|
|
929
|
+
event_user?: string;
|
|
930
|
+
event_category: typeof EventCategories;
|
|
931
|
+
event_criticality: typeof EventCriticalities;
|
|
932
|
+
event_type: string;
|
|
933
|
+
event_timestamp: Date;
|
|
934
|
+
event_data?: Object;
|
|
935
|
+
} & Required<{
|
|
936
|
+
_id: mongoose.Types.ObjectId;
|
|
937
|
+
}> & {
|
|
938
|
+
__v: number;
|
|
939
|
+
}, "id"> & {
|
|
940
|
+
id: string;
|
|
941
|
+
}> | undefined;
|
|
942
|
+
event_timestamp?: mongoose.SchemaDefinitionProperty<Date, EventDocument, mongoose.Document<unknown, {}, EventDocument, {
|
|
943
|
+
id: string;
|
|
944
|
+
}, mongoose.DefaultSchemaOptions> & Omit<mongoose.Document<mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & {
|
|
945
|
+
event_message: string;
|
|
946
|
+
event_source: string;
|
|
947
|
+
event_user?: string;
|
|
948
|
+
event_category: typeof EventCategories;
|
|
949
|
+
event_criticality: typeof EventCriticalities;
|
|
950
|
+
event_type: string;
|
|
951
|
+
event_timestamp: Date;
|
|
952
|
+
event_data?: Object;
|
|
953
|
+
} & Required<{
|
|
954
|
+
_id: mongoose.Types.ObjectId;
|
|
955
|
+
}> & {
|
|
956
|
+
__v: number;
|
|
957
|
+
}, "id"> & {
|
|
958
|
+
id: string;
|
|
959
|
+
}> | undefined;
|
|
960
|
+
event_data?: mongoose.SchemaDefinitionProperty<Object | undefined, EventDocument, mongoose.Document<unknown, {}, EventDocument, {
|
|
961
|
+
id: string;
|
|
962
|
+
}, mongoose.DefaultSchemaOptions> & Omit<mongoose.Document<mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & {
|
|
963
|
+
event_message: string;
|
|
964
|
+
event_source: string;
|
|
965
|
+
event_user?: string;
|
|
966
|
+
event_category: typeof EventCategories;
|
|
967
|
+
event_criticality: typeof EventCriticalities;
|
|
968
|
+
event_type: string;
|
|
969
|
+
event_timestamp: Date;
|
|
970
|
+
event_data?: Object;
|
|
971
|
+
} & Required<{
|
|
972
|
+
_id: mongoose.Types.ObjectId;
|
|
973
|
+
}> & {
|
|
974
|
+
__v: number;
|
|
975
|
+
}, "id"> & {
|
|
976
|
+
id: string;
|
|
977
|
+
}> | undefined;
|
|
978
|
+
}, EventDocument> & {
|
|
979
|
+
addTTLIndex?: (expirationTimeInSeconds?: number, ttlField?: string) => void;
|
|
980
|
+
};
|
|
981
|
+
History: mongoose.Schema<HistoryDocument, mongoose.Model<HistoryDocument, any, any, any, (mongoose.Document<unknown, any, HistoryDocument, any, mongoose.DefaultSchemaOptions> & mongoose.Document<mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & {
|
|
982
|
+
channel_tag: string;
|
|
983
|
+
alarm_timestamp: Date;
|
|
984
|
+
alarm_priority: AlarmPriority;
|
|
985
|
+
alarm_original_state: DiamarAlarmState;
|
|
986
|
+
alarm_state: CloudAlarmState;
|
|
987
|
+
alarm_type: AlarmType;
|
|
988
|
+
alarm_value?: number;
|
|
989
|
+
alarm_message?: string;
|
|
990
|
+
alarm_data?: Object;
|
|
991
|
+
} & Required<{
|
|
992
|
+
_id: mongoose.Types.ObjectId;
|
|
993
|
+
}> & {
|
|
994
|
+
__v: number;
|
|
995
|
+
} & {
|
|
996
|
+
id: string;
|
|
997
|
+
}) | (mongoose.Document<unknown, any, HistoryDocument, any, mongoose.DefaultSchemaOptions> & mongoose.Document<mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & {
|
|
998
|
+
channel_tag: string;
|
|
999
|
+
alarm_timestamp: Date;
|
|
1000
|
+
alarm_priority: AlarmPriority;
|
|
1001
|
+
alarm_original_state: DiamarAlarmState;
|
|
1002
|
+
alarm_state: CloudAlarmState;
|
|
1003
|
+
alarm_type: AlarmType;
|
|
1004
|
+
alarm_value?: number;
|
|
1005
|
+
alarm_message?: string;
|
|
1006
|
+
alarm_data?: Object;
|
|
1007
|
+
} & Required<{
|
|
1008
|
+
_id: mongoose.Types.ObjectId;
|
|
1009
|
+
}> & {
|
|
1010
|
+
__v: number;
|
|
1011
|
+
}), any, HistoryDocument>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, HistoryDocument, mongoose.Document<unknown, {}, HistoryDocument, {
|
|
1012
|
+
id: string;
|
|
1013
|
+
}, mongoose.DefaultSchemaOptions> & Omit<mongoose.Document<mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & {
|
|
1014
|
+
channel_tag: string;
|
|
1015
|
+
alarm_timestamp: Date;
|
|
1016
|
+
alarm_priority: AlarmPriority;
|
|
1017
|
+
alarm_original_state: DiamarAlarmState;
|
|
1018
|
+
alarm_state: CloudAlarmState;
|
|
1019
|
+
alarm_type: AlarmType;
|
|
1020
|
+
alarm_value?: number;
|
|
1021
|
+
alarm_message?: string;
|
|
1022
|
+
alarm_data?: Object;
|
|
1023
|
+
} & Required<{
|
|
1024
|
+
_id: mongoose.Types.ObjectId;
|
|
1025
|
+
}> & {
|
|
1026
|
+
__v: number;
|
|
1027
|
+
}, "id"> & {
|
|
1028
|
+
id: string;
|
|
1029
|
+
}, {
|
|
1030
|
+
_id?: mongoose.SchemaDefinitionProperty<mongoose.Types.ObjectId, HistoryDocument, mongoose.Document<unknown, {}, HistoryDocument, {
|
|
1031
|
+
id: string;
|
|
1032
|
+
}, mongoose.DefaultSchemaOptions> & Omit<mongoose.Document<mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & {
|
|
1033
|
+
channel_tag: string;
|
|
1034
|
+
alarm_timestamp: Date;
|
|
1035
|
+
alarm_priority: AlarmPriority;
|
|
1036
|
+
alarm_original_state: DiamarAlarmState;
|
|
1037
|
+
alarm_state: CloudAlarmState;
|
|
1038
|
+
alarm_type: AlarmType;
|
|
1039
|
+
alarm_value?: number;
|
|
1040
|
+
alarm_message?: string;
|
|
1041
|
+
alarm_data?: Object;
|
|
1042
|
+
} & Required<{
|
|
1043
|
+
_id: mongoose.Types.ObjectId;
|
|
1044
|
+
}> & {
|
|
1045
|
+
__v: number;
|
|
1046
|
+
}, "id"> & {
|
|
1047
|
+
id: string;
|
|
1048
|
+
}> | undefined;
|
|
1049
|
+
channel_tag?: mongoose.SchemaDefinitionProperty<string, HistoryDocument, mongoose.Document<unknown, {}, HistoryDocument, {
|
|
1050
|
+
id: string;
|
|
1051
|
+
}, mongoose.DefaultSchemaOptions> & Omit<mongoose.Document<mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & {
|
|
1052
|
+
channel_tag: string;
|
|
1053
|
+
alarm_timestamp: Date;
|
|
1054
|
+
alarm_priority: AlarmPriority;
|
|
1055
|
+
alarm_original_state: DiamarAlarmState;
|
|
1056
|
+
alarm_state: CloudAlarmState;
|
|
1057
|
+
alarm_type: AlarmType;
|
|
1058
|
+
alarm_value?: number;
|
|
1059
|
+
alarm_message?: string;
|
|
1060
|
+
alarm_data?: Object;
|
|
1061
|
+
} & Required<{
|
|
1062
|
+
_id: mongoose.Types.ObjectId;
|
|
1063
|
+
}> & {
|
|
1064
|
+
__v: number;
|
|
1065
|
+
}, "id"> & {
|
|
1066
|
+
id: string;
|
|
1067
|
+
}> | undefined;
|
|
1068
|
+
alarm_timestamp?: mongoose.SchemaDefinitionProperty<Date, HistoryDocument, mongoose.Document<unknown, {}, HistoryDocument, {
|
|
1069
|
+
id: string;
|
|
1070
|
+
}, mongoose.DefaultSchemaOptions> & Omit<mongoose.Document<mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & {
|
|
1071
|
+
channel_tag: string;
|
|
1072
|
+
alarm_timestamp: Date;
|
|
1073
|
+
alarm_priority: AlarmPriority;
|
|
1074
|
+
alarm_original_state: DiamarAlarmState;
|
|
1075
|
+
alarm_state: CloudAlarmState;
|
|
1076
|
+
alarm_type: AlarmType;
|
|
1077
|
+
alarm_value?: number;
|
|
1078
|
+
alarm_message?: string;
|
|
1079
|
+
alarm_data?: Object;
|
|
1080
|
+
} & Required<{
|
|
1081
|
+
_id: mongoose.Types.ObjectId;
|
|
1082
|
+
}> & {
|
|
1083
|
+
__v: number;
|
|
1084
|
+
}, "id"> & {
|
|
1085
|
+
id: string;
|
|
1086
|
+
}> | undefined;
|
|
1087
|
+
alarm_priority?: mongoose.SchemaDefinitionProperty<AlarmPriority, HistoryDocument, mongoose.Document<unknown, {}, HistoryDocument, {
|
|
1088
|
+
id: string;
|
|
1089
|
+
}, mongoose.DefaultSchemaOptions> & Omit<mongoose.Document<mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & {
|
|
1090
|
+
channel_tag: string;
|
|
1091
|
+
alarm_timestamp: Date;
|
|
1092
|
+
alarm_priority: AlarmPriority;
|
|
1093
|
+
alarm_original_state: DiamarAlarmState;
|
|
1094
|
+
alarm_state: CloudAlarmState;
|
|
1095
|
+
alarm_type: AlarmType;
|
|
1096
|
+
alarm_value?: number;
|
|
1097
|
+
alarm_message?: string;
|
|
1098
|
+
alarm_data?: Object;
|
|
1099
|
+
} & Required<{
|
|
1100
|
+
_id: mongoose.Types.ObjectId;
|
|
1101
|
+
}> & {
|
|
1102
|
+
__v: number;
|
|
1103
|
+
}, "id"> & {
|
|
1104
|
+
id: string;
|
|
1105
|
+
}> | undefined;
|
|
1106
|
+
alarm_original_state?: mongoose.SchemaDefinitionProperty<DiamarAlarmState, HistoryDocument, mongoose.Document<unknown, {}, HistoryDocument, {
|
|
1107
|
+
id: string;
|
|
1108
|
+
}, mongoose.DefaultSchemaOptions> & Omit<mongoose.Document<mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & {
|
|
1109
|
+
channel_tag: string;
|
|
1110
|
+
alarm_timestamp: Date;
|
|
1111
|
+
alarm_priority: AlarmPriority;
|
|
1112
|
+
alarm_original_state: DiamarAlarmState;
|
|
1113
|
+
alarm_state: CloudAlarmState;
|
|
1114
|
+
alarm_type: AlarmType;
|
|
1115
|
+
alarm_value?: number;
|
|
1116
|
+
alarm_message?: string;
|
|
1117
|
+
alarm_data?: Object;
|
|
1118
|
+
} & Required<{
|
|
1119
|
+
_id: mongoose.Types.ObjectId;
|
|
1120
|
+
}> & {
|
|
1121
|
+
__v: number;
|
|
1122
|
+
}, "id"> & {
|
|
1123
|
+
id: string;
|
|
1124
|
+
}> | undefined;
|
|
1125
|
+
alarm_state?: mongoose.SchemaDefinitionProperty<CloudAlarmState, HistoryDocument, mongoose.Document<unknown, {}, HistoryDocument, {
|
|
1126
|
+
id: string;
|
|
1127
|
+
}, mongoose.DefaultSchemaOptions> & Omit<mongoose.Document<mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & {
|
|
1128
|
+
channel_tag: string;
|
|
1129
|
+
alarm_timestamp: Date;
|
|
1130
|
+
alarm_priority: AlarmPriority;
|
|
1131
|
+
alarm_original_state: DiamarAlarmState;
|
|
1132
|
+
alarm_state: CloudAlarmState;
|
|
1133
|
+
alarm_type: AlarmType;
|
|
1134
|
+
alarm_value?: number;
|
|
1135
|
+
alarm_message?: string;
|
|
1136
|
+
alarm_data?: Object;
|
|
1137
|
+
} & Required<{
|
|
1138
|
+
_id: mongoose.Types.ObjectId;
|
|
1139
|
+
}> & {
|
|
1140
|
+
__v: number;
|
|
1141
|
+
}, "id"> & {
|
|
1142
|
+
id: string;
|
|
1143
|
+
}> | undefined;
|
|
1144
|
+
alarm_type?: mongoose.SchemaDefinitionProperty<AlarmType, HistoryDocument, mongoose.Document<unknown, {}, HistoryDocument, {
|
|
1145
|
+
id: string;
|
|
1146
|
+
}, mongoose.DefaultSchemaOptions> & Omit<mongoose.Document<mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & {
|
|
1147
|
+
channel_tag: string;
|
|
1148
|
+
alarm_timestamp: Date;
|
|
1149
|
+
alarm_priority: AlarmPriority;
|
|
1150
|
+
alarm_original_state: DiamarAlarmState;
|
|
1151
|
+
alarm_state: CloudAlarmState;
|
|
1152
|
+
alarm_type: AlarmType;
|
|
1153
|
+
alarm_value?: number;
|
|
1154
|
+
alarm_message?: string;
|
|
1155
|
+
alarm_data?: Object;
|
|
1156
|
+
} & Required<{
|
|
1157
|
+
_id: mongoose.Types.ObjectId;
|
|
1158
|
+
}> & {
|
|
1159
|
+
__v: number;
|
|
1160
|
+
}, "id"> & {
|
|
1161
|
+
id: string;
|
|
1162
|
+
}> | undefined;
|
|
1163
|
+
alarm_value?: mongoose.SchemaDefinitionProperty<number | undefined, HistoryDocument, mongoose.Document<unknown, {}, HistoryDocument, {
|
|
1164
|
+
id: string;
|
|
1165
|
+
}, mongoose.DefaultSchemaOptions> & Omit<mongoose.Document<mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & {
|
|
1166
|
+
channel_tag: string;
|
|
1167
|
+
alarm_timestamp: Date;
|
|
1168
|
+
alarm_priority: AlarmPriority;
|
|
1169
|
+
alarm_original_state: DiamarAlarmState;
|
|
1170
|
+
alarm_state: CloudAlarmState;
|
|
1171
|
+
alarm_type: AlarmType;
|
|
1172
|
+
alarm_value?: number;
|
|
1173
|
+
alarm_message?: string;
|
|
1174
|
+
alarm_data?: Object;
|
|
1175
|
+
} & Required<{
|
|
1176
|
+
_id: mongoose.Types.ObjectId;
|
|
1177
|
+
}> & {
|
|
1178
|
+
__v: number;
|
|
1179
|
+
}, "id"> & {
|
|
1180
|
+
id: string;
|
|
1181
|
+
}> | undefined;
|
|
1182
|
+
alarm_message?: mongoose.SchemaDefinitionProperty<string | undefined, HistoryDocument, mongoose.Document<unknown, {}, HistoryDocument, {
|
|
1183
|
+
id: string;
|
|
1184
|
+
}, mongoose.DefaultSchemaOptions> & Omit<mongoose.Document<mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & {
|
|
1185
|
+
channel_tag: string;
|
|
1186
|
+
alarm_timestamp: Date;
|
|
1187
|
+
alarm_priority: AlarmPriority;
|
|
1188
|
+
alarm_original_state: DiamarAlarmState;
|
|
1189
|
+
alarm_state: CloudAlarmState;
|
|
1190
|
+
alarm_type: AlarmType;
|
|
1191
|
+
alarm_value?: number;
|
|
1192
|
+
alarm_message?: string;
|
|
1193
|
+
alarm_data?: Object;
|
|
1194
|
+
} & Required<{
|
|
1195
|
+
_id: mongoose.Types.ObjectId;
|
|
1196
|
+
}> & {
|
|
1197
|
+
__v: number;
|
|
1198
|
+
}, "id"> & {
|
|
1199
|
+
id: string;
|
|
1200
|
+
}> | undefined;
|
|
1201
|
+
alarm_data?: mongoose.SchemaDefinitionProperty<Object | undefined, HistoryDocument, mongoose.Document<unknown, {}, HistoryDocument, {
|
|
1202
|
+
id: string;
|
|
1203
|
+
}, mongoose.DefaultSchemaOptions> & Omit<mongoose.Document<mongoose.Types.ObjectId, any, any, Record<string, any>, {}> & {
|
|
1204
|
+
channel_tag: string;
|
|
1205
|
+
alarm_timestamp: Date;
|
|
1206
|
+
alarm_priority: AlarmPriority;
|
|
1207
|
+
alarm_original_state: DiamarAlarmState;
|
|
1208
|
+
alarm_state: CloudAlarmState;
|
|
1209
|
+
alarm_type: AlarmType;
|
|
1210
|
+
alarm_value?: number;
|
|
1211
|
+
alarm_message?: string;
|
|
1212
|
+
alarm_data?: Object;
|
|
1213
|
+
} & Required<{
|
|
1214
|
+
_id: mongoose.Types.ObjectId;
|
|
1215
|
+
}> & {
|
|
1216
|
+
__v: number;
|
|
1217
|
+
}, "id"> & {
|
|
1218
|
+
id: string;
|
|
1219
|
+
}> | undefined;
|
|
1220
|
+
}, HistoryDocument> & {
|
|
1221
|
+
addTTLIndex?: (expirationTimeInSeconds?: number, ttlField?: string) => void;
|
|
1222
|
+
};
|
|
1223
|
+
Unit: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
1224
|
+
timestamps: true;
|
|
1225
|
+
collection: string;
|
|
1226
|
+
toJSON: {
|
|
1227
|
+
transform: (doc: UnitDocument, ret: any) => void;
|
|
1228
|
+
};
|
|
1229
|
+
}, {
|
|
1230
|
+
unit_id: string;
|
|
1231
|
+
unit_enabled: boolean;
|
|
1232
|
+
unit_type: "Aim18" | "Dim36" | "Diom24" | "Klim" | "Lum" | "Pmm" | "Slim" | "Tim28";
|
|
1233
|
+
unit_internal_description: string;
|
|
1234
|
+
unit_cabinet_id?: string | null | undefined;
|
|
1235
|
+
} & mongoose.DefaultTimestampProps, UnitDocument, {
|
|
1236
|
+
[path: string]: mongoose.SchemaDefinitionProperty<undefined, any, any>;
|
|
1237
|
+
} | {
|
|
1238
|
+
[x: string]: mongoose.SchemaDefinitionProperty<any, any, UnitDocument> | undefined;
|
|
1239
|
+
}, {
|
|
1240
|
+
unit_id: string;
|
|
1241
|
+
unit_enabled: boolean;
|
|
1242
|
+
unit_type: "Aim18" | "Dim36" | "Diom24" | "Klim" | "Lum" | "Pmm" | "Slim" | "Tim28";
|
|
1243
|
+
unit_internal_description: string;
|
|
1244
|
+
unit_cabinet_id?: string | null | undefined;
|
|
1245
|
+
createdAt: NativeDate;
|
|
1246
|
+
updatedAt: NativeDate;
|
|
1247
|
+
} & {
|
|
1248
|
+
_id: mongoose.Types.ObjectId;
|
|
1249
|
+
} & {
|
|
1250
|
+
__v: number;
|
|
1251
|
+
}>;
|
|
1252
|
+
};
|
|
91
1253
|
|
|
92
|
-
declare const
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
1254
|
+
declare const Mimics: {
|
|
1255
|
+
ImageAuxiliaryJson: ImageAuxiliaryJsonSchema;
|
|
1256
|
+
LineAuxiliaryJson: LineAuxiliaryJsonSchema;
|
|
1257
|
+
LinkAuxiliaryJson: LinkAuxiliaryJsonSchema;
|
|
1258
|
+
PolylineAuxiliaryJson: PolylineAuxiliaryJsonSchema;
|
|
1259
|
+
SquareAuxiliaryJson: SquareAuxiliaryJsonSchema;
|
|
1260
|
+
TextAuxiliaryJson: TextAuxiliaryJsonSchema;
|
|
1261
|
+
ChannelJson: ChannelJsonSchema;
|
|
1262
|
+
CompressorJson: CompressorJsonSchema;
|
|
1263
|
+
DamperJson: DamperJsonSchema;
|
|
1264
|
+
DamperAutomatedJson: DamperAutomatedJsonSchema;
|
|
1265
|
+
FanJson: FanJsonSchema;
|
|
1266
|
+
PumpJson: PumpJsonSchema;
|
|
1267
|
+
PumpAutomatedJson: PumpAutomatedJsonSchema;
|
|
1268
|
+
TankJson: TankJsonSchema;
|
|
1269
|
+
ValveJson: ValveJsonSchema;
|
|
1270
|
+
ValveAutomatedJson: ValveAutomatedJsonSchema;
|
|
1271
|
+
AlarmIndicatorJson: AlarmIndicatorJsonSchema;
|
|
1272
|
+
CommandJson: CommandJsonSchema;
|
|
1273
|
+
DialJson: DialJsonSchema;
|
|
1274
|
+
DigitalJson: DigitalJsonSchema;
|
|
1275
|
+
DisplayJson: DisplayJsonSchema;
|
|
1276
|
+
DynamicTextJson: DynamicTextJsonSchema;
|
|
1277
|
+
LevelBarJson: LevelBarJsonSchema;
|
|
1278
|
+
SliderJson: SliderJsonSchema;
|
|
1279
|
+
TextChannelJson: TextChannelJsonSchema;
|
|
1280
|
+
ToggleJson: ToggleJsonSchema;
|
|
1281
|
+
CabinetJson: CabinetJsonSchema;
|
|
1282
|
+
RepeaterJson: RepeaterJsonSchema;
|
|
1283
|
+
StationJson: StationJsonSchema;
|
|
1284
|
+
UnitJson: UnitJsonSchema;
|
|
1285
|
+
AddedAlarmsJson: AddedAlarmsJsonSchema;
|
|
1286
|
+
BackgroundJson: BackgroundJsonSchema;
|
|
1287
|
+
LineJson: LineJsonSchema;
|
|
1288
|
+
LocalizedTextJson: LocalizedTextJsonSchema;
|
|
1289
|
+
LocationJson: LocationJsonSchema;
|
|
1290
|
+
LogicExpressionJson: LogicExpressionJsonSchema;
|
|
1291
|
+
LogicExpressionsJson: LogicExpressionsJsonSchema;
|
|
1292
|
+
ScaleJson: ScaleJsonSchema;
|
|
1293
|
+
TextAttributesJson: TextAttributesJsonSchema;
|
|
1294
|
+
TitleJson: TitleJsonSchema;
|
|
1295
|
+
AutomaticSemiAutoJson: AutomaticSemiAutoJsonSchema;
|
|
1296
|
+
CommandsOpClJson: CommandsOpClJsonSchema;
|
|
1297
|
+
CommandsStartStopJson: CommandsStartStopJsonSchema;
|
|
1298
|
+
ControlLockJson: ControlLockJsonSchema;
|
|
1299
|
+
FeedbackOpClJson: FeedbackOpClJsonSchema;
|
|
1300
|
+
FeedbackRunningStoppedJson: FeedbackRunningStoppedJsonSchema;
|
|
1301
|
+
OrderOpClJson: OrderOpClJsonSchema;
|
|
1302
|
+
OrderStartStopJson: OrderStartStopJsonSchema;
|
|
1303
|
+
RemoteLocalJson: RemoteLocalJsonSchema;
|
|
1304
|
+
TripResetJson: TripResetJsonSchema;
|
|
1305
|
+
BreakerJson: BreakerJsonSchema;
|
|
1306
|
+
BreakerPmsJson: BreakerPmsJsonSchema;
|
|
1307
|
+
GeneratorJson: GeneratorJsonSchema;
|
|
1308
|
+
GeneratorPmsJson: GeneratorPmsJsonSchema;
|
|
1309
|
+
OperationModesJson: OperationModesJsonSchema;
|
|
1310
|
+
PriorityDataJson: PriorityDataJsonSchema;
|
|
1311
|
+
PrioritiesJson: PrioritiesJsonSchema;
|
|
1312
|
+
ShaftJson: ShaftJsonSchema;
|
|
1313
|
+
};
|
|
1314
|
+
|
|
1315
|
+
declare const MimicsRequest: {
|
|
1316
|
+
ImageAuxiliaryRequest: ImageAuxiliaryRequestSchema;
|
|
1317
|
+
LineAuxiliaryRequest: LineAuxiliaryRequestSchema;
|
|
1318
|
+
LinkAuxiliaryRequest: LinkAuxiliaryRequestSchema;
|
|
1319
|
+
PolylineAuxiliaryRequest: PolylineAuxiliaryRequestSchema;
|
|
1320
|
+
SquareAuxiliaryRequest: SquareAuxiliaryRequestSchema;
|
|
1321
|
+
TextAuxiliaryRequest: TextAuxiliaryRequestSchema;
|
|
1322
|
+
ChannelRequest: ChannelRequestSchema;
|
|
1323
|
+
CompressorRequest: CompressorRequestSchema;
|
|
1324
|
+
DamperRequest: DamperRequestSchema;
|
|
1325
|
+
DamperAutomatedRequest: DamperAutomatedRequestSchema;
|
|
1326
|
+
FanRequest: FanRequestSchema;
|
|
1327
|
+
PumpRequest: PumpRequestSchema;
|
|
1328
|
+
PumpAutomatedRequest: PumpAutomatedRequestSchema;
|
|
1329
|
+
TankRequest: TankRequestSchema;
|
|
1330
|
+
ValveRequest: ValveRequestSchema;
|
|
1331
|
+
ValveAutomatedRequest: ValveAutomatedRequestSchema;
|
|
1332
|
+
AlarmIndicatorRequest: AlarmIndicatorRequestSchema;
|
|
1333
|
+
CommandRequest: CommandRequestSchema;
|
|
1334
|
+
DialRequest: DialRequestSchema;
|
|
1335
|
+
DigitalRequest: DigitalRequestSchema;
|
|
1336
|
+
DisplayRequest: DisplayRequestSchema;
|
|
1337
|
+
DynamicTextRequest: DynamicTextRequestSchema;
|
|
1338
|
+
LevelBarRequest: LevelBarRequestSchema;
|
|
1339
|
+
SliderRequest: SliderRequestSchema;
|
|
1340
|
+
TextChannelRequest: TextChannelRequestSchema;
|
|
1341
|
+
ToggleRequest: ToggleRequestSchema;
|
|
1342
|
+
CabinetRequest: CabinetRequestSchema;
|
|
1343
|
+
RepeaterRequest: RepeaterRequestSchema;
|
|
1344
|
+
StationRequest: StationRequestSchema;
|
|
1345
|
+
UnitRequest: UnitRequestSchema;
|
|
1346
|
+
AutomaticSemiAutoRequest: AutomaticSemiAutoRequestSchema;
|
|
1347
|
+
CommandsOpClRequest: CommandsOpClRequestSchema;
|
|
1348
|
+
CommandsStartStopRequest: CommandsStartStopRequestSchema;
|
|
1349
|
+
ControlLockRequest: ControlLockRequestSchema;
|
|
1350
|
+
FeedbackOpClRequest: FeedbackOpClRequestSchema;
|
|
1351
|
+
FeedbackRunningStoppedRequest: FeedbackRunningStoppedRequestSchema;
|
|
1352
|
+
OrderOpClRequest: OrderOpClRequestSchema;
|
|
1353
|
+
OrderStartStopRequest: OrderStartStopRequestSchema;
|
|
1354
|
+
RemoteLocalRequest: RemoteLocalRequestSchema;
|
|
1355
|
+
TripResetRequest: TripResetRequestSchema;
|
|
1356
|
+
BreakerRequest: BreakerRequestSchema;
|
|
1357
|
+
BreakerPmsRequest: BreakerPmsRequestSchema;
|
|
1358
|
+
GeneratorRequest: GeneratorRequestSchema;
|
|
1359
|
+
GeneratorPmsRequest: GeneratorPmsRequestSchema;
|
|
1360
|
+
OperationModesRequest: OperationModesRequestSchema;
|
|
1361
|
+
PriorityDataRequest: PriorityDataRequestSchema;
|
|
1362
|
+
PrioritiesRequest: PrioritiesRequestSchema;
|
|
1363
|
+
ShaftRequest: ShaftRequestSchema;
|
|
1364
|
+
};
|
|
1365
|
+
|
|
1366
|
+
declare const MimicsResponse: {
|
|
1367
|
+
ImageAuxiliaryResponse: ImageAuxiliaryResponseSchema;
|
|
1368
|
+
LineAuxiliaryResponse: LineAuxiliaryResponseSchema;
|
|
1369
|
+
LinkAuxiliaryResponse: LinkAuxiliaryResponseSchema;
|
|
1370
|
+
PolylineAuxiliaryResponse: PolylineAuxiliaryResponseSchema;
|
|
1371
|
+
SquareAuxiliaryResponse: SquareAuxiliaryResponseSchema;
|
|
1372
|
+
TextAuxiliaryResponse: TextAuxiliaryResponseSchema;
|
|
1373
|
+
CompressorResponse: CompressorResponseSchema;
|
|
1374
|
+
DamperResponse: DamperResponseSchema;
|
|
1375
|
+
DamperAutomatedResponse: DamperAutomatedResponseSchema;
|
|
1376
|
+
FanResponse: FanResponseSchema;
|
|
1377
|
+
PumpResponse: PumpResponseSchema;
|
|
1378
|
+
PumpAutomatedResponse: PumpAutomatedResponseSchema;
|
|
1379
|
+
TankResponse: TankResponseSchema;
|
|
1380
|
+
ValveResponse: ValveResponseSchema;
|
|
1381
|
+
ValveAutomatedResponse: ValveAutomatedResponseSchema;
|
|
1382
|
+
AlarmIndicatorResponse: AlarmIndicatorResponseSchema;
|
|
1383
|
+
CommandResponse: CommandResponseSchema;
|
|
1384
|
+
DialResponse: DialResponseSchema;
|
|
1385
|
+
DigitalResponse: DigitalResponseSchema;
|
|
1386
|
+
DisplayResponse: DisplayResponseSchema;
|
|
1387
|
+
DynamicTextResponse: DynamicTextResponseSchema;
|
|
1388
|
+
LevelBarResponse: LevelBarResponseSchema;
|
|
1389
|
+
SliderResponse: SliderResponseSchema;
|
|
1390
|
+
TextChannelResponse: TextChannelResponseSchema;
|
|
1391
|
+
ToggleResponse: ToggleResponseSchema;
|
|
1392
|
+
CabinetResponse: CabinetResponseSchema;
|
|
1393
|
+
RepeaterResponse: RepeaterResponseSchema;
|
|
1394
|
+
StationResponse: StationResponseSchema;
|
|
1395
|
+
UnitResponse: UnitResponseSchema;
|
|
1396
|
+
BreakerResponse: BreakerResponseSchema;
|
|
1397
|
+
BreakerPmsResponse: BreakerPmsResponseSchema;
|
|
1398
|
+
GeneratorResponse: GeneratorResponseSchema;
|
|
1399
|
+
GeneratorPmsResponse: GeneratorPmsResponseSchema;
|
|
1400
|
+
OperationModesResponse: OperationModesResponseSchema;
|
|
1401
|
+
PrioritiesResponse: PrioritiesResponseSchema;
|
|
1402
|
+
ShaftResponse: ShaftResponseSchema;
|
|
1403
|
+
};
|
|
103
1404
|
|
|
104
1405
|
declare const Types: {
|
|
105
1406
|
AlarmTypes: {
|
|
@@ -192,6 +1493,236 @@ declare const Types: {
|
|
|
192
1493
|
readonly SLIM: "Slim";
|
|
193
1494
|
readonly TIM28: "Tim28";
|
|
194
1495
|
};
|
|
1496
|
+
Mimics: {
|
|
1497
|
+
MimicElementTypes: {
|
|
1498
|
+
readonly IMAGE: "Image";
|
|
1499
|
+
readonly LINE: "Line";
|
|
1500
|
+
readonly SQUARE: "Square";
|
|
1501
|
+
readonly LINK: "Link";
|
|
1502
|
+
readonly POLYLINE: "Polyline";
|
|
1503
|
+
readonly TEXT: "Text";
|
|
1504
|
+
readonly ALARM_INDICATOR: "AlarmIndicator";
|
|
1505
|
+
readonly BREAKER: "Breaker";
|
|
1506
|
+
readonly COMMAND: "Command";
|
|
1507
|
+
readonly COMPRESSOR: "Compressor";
|
|
1508
|
+
readonly DAMPER: "Damper";
|
|
1509
|
+
readonly DIAL: "Dial";
|
|
1510
|
+
readonly DIGITAL: "Digital";
|
|
1511
|
+
readonly DISPLAY: "Display";
|
|
1512
|
+
readonly FAN: "Fan";
|
|
1513
|
+
readonly GENERATOR: "Generator";
|
|
1514
|
+
readonly LEVEL_BAR: "LevelBar";
|
|
1515
|
+
readonly PUMP: "Pump";
|
|
1516
|
+
readonly SHAFT: "Shaft";
|
|
1517
|
+
readonly TEXT_CHANNEL: "TextChannel";
|
|
1518
|
+
readonly DYNAMIC_TEXT: "DynamicText";
|
|
1519
|
+
readonly TANK: "Tank";
|
|
1520
|
+
readonly VALVE: "Valve";
|
|
1521
|
+
readonly SLIDER: "Slider";
|
|
1522
|
+
readonly TOGGLE: "Toggle";
|
|
1523
|
+
readonly UNIT: "Unit";
|
|
1524
|
+
readonly REPEATER: "Repeater";
|
|
1525
|
+
readonly STATION: "Station";
|
|
1526
|
+
readonly CABINET: "Cabinet";
|
|
1527
|
+
readonly BREAKER_PMS: "BreakerPms";
|
|
1528
|
+
readonly GENERATOR_PMS: "GeneratorPms";
|
|
1529
|
+
readonly OPERATION_MODES_PMS: "OperationModesPms";
|
|
1530
|
+
readonly PMS_PRIORITIES: "PmsPriorities";
|
|
1531
|
+
readonly VALVE_AUTOMATED: "ValveAutomated";
|
|
1532
|
+
readonly DAMPER_AUTOMATED: "DamperAutomated";
|
|
1533
|
+
readonly PUMP_AUTOMATED: "PumpAutomated";
|
|
1534
|
+
};
|
|
1535
|
+
ZDepths: {
|
|
1536
|
+
readonly BACKGROUND: "Background";
|
|
1537
|
+
readonly LOW: "Low";
|
|
1538
|
+
readonly NORMAL: "Normal";
|
|
1539
|
+
readonly HIGH: "High";
|
|
1540
|
+
};
|
|
1541
|
+
TitleAligns: {
|
|
1542
|
+
readonly BOTTOM: "Bottom";
|
|
1543
|
+
readonly LEFT: "Left";
|
|
1544
|
+
readonly RIGHT: "Right";
|
|
1545
|
+
readonly TOP: "Top";
|
|
1546
|
+
};
|
|
1547
|
+
DigitalStates: {
|
|
1548
|
+
readonly NO_VALUE: "NoValue";
|
|
1549
|
+
readonly OPEN: "Open";
|
|
1550
|
+
readonly CLOSE: "Close";
|
|
1551
|
+
readonly UNDEFINED: "Undefined";
|
|
1552
|
+
};
|
|
1553
|
+
DigitalAlarmStates: {
|
|
1554
|
+
readonly NO_ALARM: "NoAlarm";
|
|
1555
|
+
readonly ALARM: "Alarm";
|
|
1556
|
+
readonly UNDEFINED: "Undefined";
|
|
1557
|
+
};
|
|
1558
|
+
AlarmStates: {
|
|
1559
|
+
readonly ALARM: 1;
|
|
1560
|
+
readonly WARNING: 2;
|
|
1561
|
+
readonly UNACKNOWLEDGED_ALARM: 3;
|
|
1562
|
+
readonly UNACKNOWLEDGED_WARNING: 4;
|
|
1563
|
+
readonly ACKNOWLEDGED_ALARM: 5;
|
|
1564
|
+
readonly ACKNOWLEDGED_WARNING: 6;
|
|
1565
|
+
readonly INHIBITED: 7;
|
|
1566
|
+
readonly OFF_SCAN: 8;
|
|
1567
|
+
readonly NORMAL: 9;
|
|
1568
|
+
readonly OFFLINE: 10;
|
|
1569
|
+
};
|
|
1570
|
+
MimicAlarmStates: {
|
|
1571
|
+
ALARM: string;
|
|
1572
|
+
WARNING: string;
|
|
1573
|
+
UNACKNOWLEDGED_ALARM: string;
|
|
1574
|
+
UNACKNOWLEDGED_WARNING: string;
|
|
1575
|
+
ACKNOWLEDGED_ALARM: string;
|
|
1576
|
+
ACKNOWLEDGED_WARNING: string;
|
|
1577
|
+
INHIBITED: string;
|
|
1578
|
+
OFF_SCAN: string;
|
|
1579
|
+
NORMAL: string;
|
|
1580
|
+
OFFLINE: string;
|
|
1581
|
+
};
|
|
1582
|
+
MimicControlStates: {
|
|
1583
|
+
NO_VALUE: string;
|
|
1584
|
+
LOCAL: string;
|
|
1585
|
+
AUTOMATIC: string;
|
|
1586
|
+
SEMI_AUTOMATIC: string;
|
|
1587
|
+
UNDEFINED: string;
|
|
1588
|
+
};
|
|
1589
|
+
ActivationModes: {
|
|
1590
|
+
readonly ALARM: "Alarm";
|
|
1591
|
+
readonly LOGIC: "Logic";
|
|
1592
|
+
readonly VALUE: "Value";
|
|
1593
|
+
};
|
|
1594
|
+
TextAnchorPoints: {
|
|
1595
|
+
readonly LEFT: "Left";
|
|
1596
|
+
readonly CENTER: "Center";
|
|
1597
|
+
readonly RIGHT: "Right";
|
|
1598
|
+
};
|
|
1599
|
+
ValveDesigns: {
|
|
1600
|
+
readonly MECHANIC: "Mechanic";
|
|
1601
|
+
readonly NORMAL: "Normal";
|
|
1602
|
+
};
|
|
1603
|
+
FanDesigns: {
|
|
1604
|
+
readonly NORMAL: "Normal";
|
|
1605
|
+
readonly BLADED: "Bladed";
|
|
1606
|
+
};
|
|
1607
|
+
FanRunStates: {
|
|
1608
|
+
readonly NO_VALUE: "NoValue";
|
|
1609
|
+
readonly UNDEFINED: "Undefined";
|
|
1610
|
+
readonly STOPPED: "Stopped";
|
|
1611
|
+
readonly RUNNING: "Running";
|
|
1612
|
+
readonly RUNNING_FAST: "RunningFast";
|
|
1613
|
+
};
|
|
1614
|
+
FanDirections: {
|
|
1615
|
+
readonly NO_VALUE: "NoValue";
|
|
1616
|
+
readonly UNDEFINED: "Undefined";
|
|
1617
|
+
readonly SUPPLY: "Supply";
|
|
1618
|
+
readonly EXHAUST: "Exhaust";
|
|
1619
|
+
};
|
|
1620
|
+
FanTypes: {
|
|
1621
|
+
readonly SIMPLE: "Simple";
|
|
1622
|
+
readonly SIMPLE_WITH_FAST: "SimpleWithFast";
|
|
1623
|
+
readonly REVERSIBLE: "Reversible";
|
|
1624
|
+
readonly REVERSIBLE_WITH_FAST: "ReversibleWithFast";
|
|
1625
|
+
};
|
|
1626
|
+
LevelBarOrientations: {
|
|
1627
|
+
readonly VERTICAL: "Vertical";
|
|
1628
|
+
readonly HORIZONTAL: "Horizontal";
|
|
1629
|
+
};
|
|
1630
|
+
SliderOrientations: {
|
|
1631
|
+
readonly VERTICAL: "Vertical";
|
|
1632
|
+
readonly HORIZONTAL: "Horizontal";
|
|
1633
|
+
};
|
|
1634
|
+
CompressorDesigns: {
|
|
1635
|
+
readonly CENTRIFUGAL: "Centrifugal";
|
|
1636
|
+
readonly MECHANIC: "Mechanic";
|
|
1637
|
+
readonly NORMAL: "Normal";
|
|
1638
|
+
readonly PISTONS: "Pistons";
|
|
1639
|
+
readonly ROTATORY_SCREW: "RotatoryScrew";
|
|
1640
|
+
readonly SCROLL: "Scroll";
|
|
1641
|
+
readonly VANES: "Vanes";
|
|
1642
|
+
};
|
|
1643
|
+
LedTypes: {
|
|
1644
|
+
readonly CIRCLE: "Circle";
|
|
1645
|
+
readonly SQUARE: "Square";
|
|
1646
|
+
};
|
|
1647
|
+
InfoLocations: {
|
|
1648
|
+
readonly BOTTOM: "Bottom";
|
|
1649
|
+
readonly LEFT: "Left";
|
|
1650
|
+
readonly RIGHT: "Right";
|
|
1651
|
+
readonly TOP: "Top";
|
|
1652
|
+
};
|
|
1653
|
+
MarkTypes: {
|
|
1654
|
+
readonly LARGE_LINE: "LargeLine";
|
|
1655
|
+
readonly SHORT_LINE: "ShortLine";
|
|
1656
|
+
readonly TRIANGLE: "Triangle";
|
|
1657
|
+
};
|
|
1658
|
+
ScalePositions: {
|
|
1659
|
+
readonly LEFT: "Left";
|
|
1660
|
+
readonly RIGHT: "Right";
|
|
1661
|
+
};
|
|
1662
|
+
ValueTypes: {
|
|
1663
|
+
readonly PERCENTAGE: "Percentage";
|
|
1664
|
+
readonly RAW: "Raw";
|
|
1665
|
+
};
|
|
1666
|
+
OperationModeStates: {
|
|
1667
|
+
readonly ACTIVE: 0;
|
|
1668
|
+
readonly INACTIVE: 1;
|
|
1669
|
+
readonly IN_TRANSITION: 2;
|
|
1670
|
+
readonly FAILED: 3;
|
|
1671
|
+
};
|
|
1672
|
+
UnitDesigns: {
|
|
1673
|
+
readonly IMAGE: "Image";
|
|
1674
|
+
readonly MODERN: "Modern";
|
|
1675
|
+
};
|
|
1676
|
+
StationDesigns: {
|
|
1677
|
+
readonly IMAGE: "Image";
|
|
1678
|
+
readonly MONITOR: "Monitor";
|
|
1679
|
+
readonly SCREEN: "Screen";
|
|
1680
|
+
};
|
|
1681
|
+
RepeaterDesigns: {
|
|
1682
|
+
readonly IMAGE: "Image";
|
|
1683
|
+
readonly SLIM: "SLim";
|
|
1684
|
+
readonly DIAMAR_REPEATER: "DiamarRepeater";
|
|
1685
|
+
};
|
|
1686
|
+
CabinetDesigns: {
|
|
1687
|
+
readonly IMAGE: "Image";
|
|
1688
|
+
readonly MODERN: "Modern";
|
|
1689
|
+
};
|
|
1690
|
+
LinkDesigns: {
|
|
1691
|
+
readonly BUTTON: "Button";
|
|
1692
|
+
readonly IMAGE: "Image";
|
|
1693
|
+
};
|
|
1694
|
+
OpClStates: {
|
|
1695
|
+
readonly NO_VALUE: "NoValue";
|
|
1696
|
+
readonly OPEN: "Open";
|
|
1697
|
+
readonly CLOSE: "Close";
|
|
1698
|
+
readonly UNDEFINED: "Undefined";
|
|
1699
|
+
};
|
|
1700
|
+
RunningStoppedStates: {
|
|
1701
|
+
readonly NO_VALUE: "NoValue";
|
|
1702
|
+
readonly RUNNING: "Running";
|
|
1703
|
+
readonly STOPPED: "Stopped";
|
|
1704
|
+
readonly UNDEFINED: "Undefined";
|
|
1705
|
+
};
|
|
1706
|
+
AutoSemiAutoStates: {
|
|
1707
|
+
readonly NO_VALUE: "NoValue";
|
|
1708
|
+
readonly AUTOMATIC: "Automatic";
|
|
1709
|
+
readonly SEMI_AUTOMATIC: "SemiAuto";
|
|
1710
|
+
readonly UNDEFINED: "Undefined";
|
|
1711
|
+
};
|
|
1712
|
+
RemoteLocalStates: {
|
|
1713
|
+
readonly NO_VALUE: "NoValue";
|
|
1714
|
+
readonly REMOTE: "Remote";
|
|
1715
|
+
readonly LOCAL: "Local";
|
|
1716
|
+
readonly UNDEFINED: "Undefined";
|
|
1717
|
+
};
|
|
1718
|
+
};
|
|
1719
|
+
};
|
|
1720
|
+
|
|
1721
|
+
declare const _default: {
|
|
1722
|
+
mongoose: typeof mongoose;
|
|
1723
|
+
mongoosePaginate: typeof mongoosePaginate;
|
|
1724
|
+
mongooseAggregatePaginate: typeof mongooseAggregatePaginate;
|
|
1725
|
+
mongooseAutopopulate: typeof mongooseAutopopulate;
|
|
195
1726
|
};
|
|
196
1727
|
|
|
197
|
-
export {
|
|
1728
|
+
export { AddedAlarmsJsonSchema, AlarmIndicatorJsonSchema, AlarmIndicatorRequestSchema, AlarmIndicatorResponseSchema, AlarmPriority, AlarmType, AutomaticSemiAutoJsonSchema, AutomaticSemiAutoRequestSchema, BackgroundJsonSchema, BreakerJsonSchema, BreakerPmsJsonSchema, BreakerPmsRequestSchema, BreakerPmsResponseSchema, BreakerRequestSchema, BreakerResponseSchema, CabinetJsonSchema, CabinetRequestSchema, CabinetResponseSchema, type ChannelDataBucketDocument, type ChannelDataBucketJSON, type ChannelDataBucketModel, type ChannelDataPointDocument, type ChannelDataPointJSON, type ChannelDataPointModel, type ChannelDocument, type ChannelJSON, ChannelJsonSchema, type ChannelModel, CloudAlarmState, CommandJsonSchema, CommandRequestSchema, CommandResponseSchema, CommandsOpClJsonSchema, CommandsOpClRequestSchema, CommandsStartStopJsonSchema, CommandsStartStopRequestSchema, CompressorJsonSchema, CompressorRequestSchema, CompressorResponseSchema, ControlLockJsonSchema, ControlLockRequestSchema, DamperAutomatedJsonSchema, DamperAutomatedRequestSchema, DamperAutomatedResponseSchema, DamperJsonSchema, DamperRequestSchema, DamperResponseSchema, DialJsonSchema, DialRequestSchema, DialResponseSchema, DiamarAlarmState, DigitalJsonSchema, DigitalRequestSchema, DigitalResponseSchema, DisplayJsonSchema, DisplayRequestSchema, DisplayResponseSchema, Docs, DynamicTextJsonSchema, DynamicTextRequestSchema, DynamicTextResponseSchema, type EventDocument, type EventJSON, type EventModel, FanJsonSchema, FanRequestSchema, FanResponseSchema, FeedbackOpClJsonSchema, FeedbackOpClRequestSchema, FeedbackRunningStoppedJsonSchema, FeedbackRunningStoppedRequestSchema, GeneratorJsonSchema, GeneratorPmsJsonSchema, GeneratorPmsRequestSchema, GeneratorPmsResponseSchema, GeneratorRequestSchema, GeneratorResponseSchema, type HistoryDocument, type HistoryJSON, type HistoryModel, ImageAuxiliaryJsonSchema, ImageAuxiliaryRequestSchema, ImageAuxiliaryResponseSchema, LevelBarJsonSchema, LevelBarRequestSchema, LevelBarResponseSchema, LineAuxiliaryJsonSchema, LineAuxiliaryRequestSchema, LineAuxiliaryResponseSchema, LineJsonSchema, LinkAuxiliaryJsonSchema, LinkAuxiliaryRequestSchema, LinkAuxiliaryResponseSchema, LocalizedTextJsonSchema, LocationJsonSchema, LogicExpressionJsonSchema, LogicExpressionsJsonSchema, Mimics, MimicsRequest, MimicsResponse, OperationModesJsonSchema, OperationModesRequestSchema, OperationModesResponseSchema, OrderOpClJsonSchema, OrderOpClRequestSchema, OrderStartStopJsonSchema, OrderStartStopRequestSchema, PolylineAuxiliaryJsonSchema, PolylineAuxiliaryRequestSchema, PolylineAuxiliaryResponseSchema, PrioritiesJsonSchema, PrioritiesRequestSchema, PrioritiesResponseSchema, PriorityDataJsonSchema, PriorityDataRequestSchema, PumpAutomatedJsonSchema, PumpAutomatedRequestSchema, PumpAutomatedResponseSchema, PumpJsonSchema, PumpRequestSchema, PumpResponseSchema, RemoteLocalJsonSchema, RemoteLocalRequestSchema, RepeaterJsonSchema, RepeaterRequestSchema, RepeaterResponseSchema, ScaleJsonSchema, Schemas, ShaftJsonSchema, ShaftRequestSchema, ShaftResponseSchema, SliderJsonSchema, SliderRequestSchema, SliderResponseSchema, SquareAuxiliaryJsonSchema, SquareAuxiliaryRequestSchema, SquareAuxiliaryResponseSchema, StationJsonSchema, StationRequestSchema, StationResponseSchema, TankJsonSchema, TankRequestSchema, TankResponseSchema, TextAttributesJsonSchema, TextAuxiliaryJsonSchema, TextAuxiliaryRequestSchema, TextAuxiliaryResponseSchema, TextChannelJsonSchema, TextChannelRequestSchema, TextChannelResponseSchema, TitleJsonSchema, ToggleJsonSchema, ToggleRequestSchema, ToggleResponseSchema, TripResetJsonSchema, TripResetRequestSchema, Types, type UnitDocument, type UnitJSON, UnitJsonSchema, type UnitModel, UnitRequestSchema, UnitResponseSchema, ValveAutomatedJsonSchema, ValveAutomatedRequestSchema, ValveAutomatedResponseSchema, ValveJsonSchema, ValveRequestSchema, ValveResponseSchema, _default as default };
|