@sedni/cloud_common 3.0.3 → 3.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.idea/cloud_common.iml +8 -0
- package/.idea/copilot.data.migration.agent.xml +6 -0
- package/.idea/copilot.data.migration.ask.xml +6 -0
- package/.idea/copilot.data.migration.ask2agent.xml +6 -0
- package/.idea/copilot.data.migration.edit.xml +6 -0
- package/.idea/inspectionProfiles/Project_Default.xml +6 -0
- package/.idea/modules.xml +8 -0
- package/.idea/shelf/Changes/shelved.patch +30 -0
- package/.idea/shelf/Changes.xml +4 -0
- package/.idea/shelf/Changes1/shelved.patch +229 -0
- package/.idea/shelf/Changes1.xml +4 -0
- package/.idea/shelf/Uncommitted_changes_before_Checkout_at_16_2_26,_10_07_[Changes]/shelved.patch +229 -0
- package/.idea/shelf/Uncommitted_changes_before_Checkout_at_16_2_26,_10_20_[Changes]/shelved.patch +23 -0
- package/.idea/shelf/Uncommitted_changes_before_Checkout_at_16_2_26__10_07__Changes_.xml +4 -0
- package/.idea/shelf/Uncommitted_changes_before_Checkout_at_16_2_26__10_20__Changes_.xml +4 -0
- package/.idea/vcs.xml +6 -0
- package/.idea/workspace.xml +245 -0
- package/deno.lock +1204 -0
- package/dist/browser-index.cjs +30 -0
- package/dist/browser-index.d.cts +38 -17
- package/dist/browser-index.d.ts +38 -17
- package/dist/browser-index.js +7 -1
- package/dist/{chunk-VQWCQ4E2.js → chunk-XZJXANPO.js} +539 -2
- package/dist/index.cjs +42 -10
- package/dist/index.d.cts +45 -24
- package/dist/index.d.ts +45 -24
- package/dist/index.js +13 -7
- package/dist/models/Channel.d.ts +53 -0
- package/dist/models/Channel.js +65 -0
- package/dist/models/ChannelDataBucket.d.ts +81 -0
- package/dist/models/ChannelDataBucket.js +93 -0
- package/dist/models/ChannelDataPoint.d.ts +21 -0
- package/dist/models/ChannelDataPoint.js +75 -0
- package/dist/models/Event.d.ts +28 -0
- package/dist/models/Event.js +84 -0
- package/dist/models/History.d.ts +30 -0
- package/dist/models/History.js +96 -0
- package/dist/models/Unit.d.ts +50 -0
- package/dist/models/Unit.js +58 -0
- package/dist/models/docs/Channel.json +58 -0
- package/dist/models/docs/ChannelDataBucket.json +77 -0
- package/dist/models/docs/ChannelDataPoint.json +39 -0
- package/dist/models/docs/ChannelWithData.json +58 -0
- package/dist/models/docs/Event.json +78 -0
- package/dist/models/docs/History.json +103 -0
- package/dist/models/docs/Unit.json +67 -0
- package/dist/models/docs/index.d.ts +448 -0
- package/dist/models/docs/index.js +27 -0
- package/dist/models/mimics/AuxiliaryElements.d.ts +39 -0
- package/dist/models/mimics/AuxiliaryElements.js +33 -0
- package/dist/models/mimics/ChannelMimic.d.ts +9 -0
- package/dist/models/mimics/ChannelMimic.js +8 -0
- package/dist/models/mimics/ControlElements.d.ts +123 -0
- package/dist/models/mimics/ControlElements.js +114 -0
- package/dist/models/mimics/Elements.d.ts +109 -0
- package/dist/models/mimics/Elements.js +99 -0
- package/dist/models/mimics/IasElements.d.ts +25 -0
- package/dist/models/mimics/IasElements.js +21 -0
- package/dist/models/mimics/MimicSupport.d.ts +77 -0
- package/dist/models/mimics/MimicSupport.js +59 -0
- package/dist/models/mimics/MimicTraits.d.ts +58 -0
- package/dist/models/mimics/MimicTraits.js +48 -0
- package/dist/models/mimics/PmsElements.d.ts +74 -0
- package/dist/models/mimics/PmsElements.js +66 -0
- package/dist/network/requests/mimics/AuxiliaryElements.d.ts +29 -0
- package/dist/network/requests/mimics/AuxiliaryElements.js +23 -0
- package/dist/network/requests/mimics/ChannelMimic.d.ts +9 -0
- package/dist/network/requests/mimics/ChannelMimic.js +8 -0
- package/dist/network/requests/mimics/ControlElements.d.ts +68 -0
- package/dist/network/requests/mimics/ControlElements.js +59 -0
- package/dist/network/requests/mimics/Elements.d.ts +46 -0
- package/dist/network/requests/mimics/Elements.js +36 -0
- package/dist/network/requests/mimics/IasElements.d.ts +16 -0
- package/dist/network/requests/mimics/IasElements.js +12 -0
- package/dist/network/requests/mimics/MimicSupport.d.ts +77 -0
- package/dist/network/requests/mimics/MimicSupport.js +59 -0
- package/dist/network/requests/mimics/MimicTraits.d.ts +55 -0
- package/dist/network/requests/mimics/MimicTraits.js +45 -0
- package/dist/network/requests/mimics/PmsElements.d.ts +58 -0
- package/dist/network/requests/mimics/PmsElements.js +50 -0
- package/dist/network/responses/mimics/AuxiliaryElements.d.ts +23 -0
- package/dist/network/responses/mimics/AuxiliaryElements.js +17 -0
- package/dist/network/responses/mimics/ControlElements.d.ts +63 -0
- package/dist/network/responses/mimics/ControlElements.js +54 -0
- package/dist/network/responses/mimics/Elements.d.ts +58 -0
- package/dist/network/responses/mimics/Elements.js +48 -0
- package/dist/network/responses/mimics/IasElements.d.ts +17 -0
- package/dist/network/responses/mimics/IasElements.js +13 -0
- package/dist/network/responses/mimics/PmsElements.d.ts +44 -0
- package/dist/network/responses/mimics/PmsElements.js +37 -0
- package/dist/types/alarm.types.d.ts +42 -0
- package/dist/types/alarm.types.js +38 -0
- package/dist/types/channel.types.d.ts +27 -0
- package/dist/types/channel.types.js +30 -0
- package/dist/types/event.types.d.ts +19 -0
- package/dist/types/event.types.js +17 -0
- package/dist/types/mimics.types.d.ts +254 -0
- package/dist/types/mimics.types.js +325 -0
- package/dist/types/unit.types.d.ts +11 -0
- package/dist/types/unit.types.js +10 -0
- package/dist/{unit.types-4ZD9ivHi.d.cts → user.types-DaVBScqh.d.cts} +493 -17
- package/dist/{unit.types-4ZD9ivHi.d.ts → user.types-DaVBScqh.d.ts} +493 -17
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -0
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"components": {
|
|
3
|
+
"schemas": {
|
|
4
|
+
"Event": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"description": "Event object. This is the object that is sent to and from the API. It includes the id as a string, the timestamp as a number and the creation timestamp is not included.",
|
|
7
|
+
"properties": {
|
|
8
|
+
"id": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"format": "ObjectId",
|
|
11
|
+
"description": "MongoDB ObjectId",
|
|
12
|
+
"example": "507f1f77bcf86cd799439011",
|
|
13
|
+
"readOnly": true
|
|
14
|
+
},
|
|
15
|
+
"event_message": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"format": "text",
|
|
18
|
+
"description": "Event message",
|
|
19
|
+
"example": "Event message"
|
|
20
|
+
},
|
|
21
|
+
"event_source": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"format": "text",
|
|
24
|
+
"description": "Hostname of the source of the event",
|
|
25
|
+
"example": "RMS1"
|
|
26
|
+
},
|
|
27
|
+
"event_category": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"format": "text",
|
|
30
|
+
"description": "Event category",
|
|
31
|
+
"example": "Login",
|
|
32
|
+
"enum": "%%EVENT_CATEGORY_ENUM%%"
|
|
33
|
+
},
|
|
34
|
+
"event_type": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"format": "text",
|
|
37
|
+
"description": "Event type",
|
|
38
|
+
"example": "Login"
|
|
39
|
+
},
|
|
40
|
+
"event_timestamp": {
|
|
41
|
+
"type": "number",
|
|
42
|
+
"format": "timestamp",
|
|
43
|
+
"description": "Event timestamp",
|
|
44
|
+
"example": 1709899759
|
|
45
|
+
},
|
|
46
|
+
"event_data": {
|
|
47
|
+
"type": "object",
|
|
48
|
+
"description": "Event data. Not validated, just stored"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"required": [
|
|
52
|
+
"event_message",
|
|
53
|
+
"event_source",
|
|
54
|
+
"event_category",
|
|
55
|
+
"event_type",
|
|
56
|
+
"event_timestamp"
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"examples": {
|
|
61
|
+
"Event": {
|
|
62
|
+
"value": {
|
|
63
|
+
"id": "507f1f77bcf86cd799439011",
|
|
64
|
+
"event_message": "Profile Root logged in for the next 600 seconds, replacing profile Root.",
|
|
65
|
+
"event_source": "RMS1",
|
|
66
|
+
"event_category": "Login",
|
|
67
|
+
"event_type": "LoiginSuccessful",
|
|
68
|
+
"event_timestamp": 1709899759,
|
|
69
|
+
"event_data": {
|
|
70
|
+
"profile": "Root",
|
|
71
|
+
"duration": 600,
|
|
72
|
+
"replaced_profile": "Monitor"
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
{
|
|
2
|
+
"components": {
|
|
3
|
+
"schemas": {
|
|
4
|
+
"History": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"id": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"format": "ObjectId",
|
|
10
|
+
"description": "MongoDB ObjectId",
|
|
11
|
+
"example": "507f1f77bcf86cd799439011",
|
|
12
|
+
"readOnly": true
|
|
13
|
+
},
|
|
14
|
+
"channel_tag": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"format": "text",
|
|
17
|
+
"description": "Channel tag",
|
|
18
|
+
"example": "Channel tag",
|
|
19
|
+
"readOnly": true
|
|
20
|
+
},
|
|
21
|
+
"alarm_timestamp": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"format": "date-time",
|
|
24
|
+
"description": "Alarm timestamp",
|
|
25
|
+
"example": "2020-12-31T23:59:59Z",
|
|
26
|
+
"readOnly": true
|
|
27
|
+
},
|
|
28
|
+
"alarm_priority": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"format": "text",
|
|
31
|
+
"description": "Alarm priority",
|
|
32
|
+
"example": "Alarm",
|
|
33
|
+
"enum": "%%ALARM_PRIORITY_ENUM%%",
|
|
34
|
+
"readOnly": true
|
|
35
|
+
},
|
|
36
|
+
"alarm_original_state": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"format": "text",
|
|
39
|
+
"description": "Alarm original state",
|
|
40
|
+
"example": "Inactive",
|
|
41
|
+
"enum": "%%DIAMAR_ALARM_STATE_ENUM%%",
|
|
42
|
+
"readOnly": true
|
|
43
|
+
},
|
|
44
|
+
"alarm_state": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"format": "text",
|
|
47
|
+
"description": "Alarm new state",
|
|
48
|
+
"example": "Inactive",
|
|
49
|
+
"enum": "%%CLOUD_ALARM_STATE_ENUM%%",
|
|
50
|
+
"readOnly": true
|
|
51
|
+
},
|
|
52
|
+
"alarm_type": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"format": "text",
|
|
55
|
+
"description": "Alarm type",
|
|
56
|
+
"example": "AlarmOpen",
|
|
57
|
+
"enum": "%%ALARM_TYPE_ENUM%%",
|
|
58
|
+
"readOnly": true
|
|
59
|
+
},
|
|
60
|
+
"alarm_value": {
|
|
61
|
+
"type": "number",
|
|
62
|
+
"format": "double",
|
|
63
|
+
"description": "Alarm value",
|
|
64
|
+
"example": 0.0,
|
|
65
|
+
"readOnly": true
|
|
66
|
+
},
|
|
67
|
+
"alarm_message": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"format": "text",
|
|
70
|
+
"description": "Alarm message",
|
|
71
|
+
"example": "Alarm message",
|
|
72
|
+
"readOnly": true
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"required": [
|
|
76
|
+
"channel_tag",
|
|
77
|
+
"alarm_timestamp",
|
|
78
|
+
"alarm_priority",
|
|
79
|
+
"alarm_original_state",
|
|
80
|
+
"alarm_state",
|
|
81
|
+
"alarm_type",
|
|
82
|
+
"alarm_value",
|
|
83
|
+
"alarm_message"
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"examples": {
|
|
88
|
+
"History": {
|
|
89
|
+
"value": {
|
|
90
|
+
"id": "507f1f77bcf86cd799439011",
|
|
91
|
+
"channel_tag": "Channel tag",
|
|
92
|
+
"alarm_timestamp": "2020-12-31T23:59:59Z",
|
|
93
|
+
"alarm_priority": "Alarm",
|
|
94
|
+
"alarm_original_state": "Inactive",
|
|
95
|
+
"alarm_state": "Inactive",
|
|
96
|
+
"alarm_type": "AlarmOpen",
|
|
97
|
+
"alarm_value": 0.0,
|
|
98
|
+
"alarm_message": "AlarmOpen Value: [OP]"
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"components": {
|
|
3
|
+
"schemas": {
|
|
4
|
+
"Unit": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"id": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"format": "ObjectId",
|
|
10
|
+
"description": "MongoDB ObjectId",
|
|
11
|
+
"example": "507f1f77bcf86cd799439011",
|
|
12
|
+
"readOnly": true
|
|
13
|
+
},
|
|
14
|
+
"unit_id": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "Unit identifier in Diamar",
|
|
17
|
+
"example": "127",
|
|
18
|
+
"readOnly": true
|
|
19
|
+
},
|
|
20
|
+
"unit_internal_description": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"description": "Unit description",
|
|
23
|
+
"example": "Motor Power Supply",
|
|
24
|
+
"readOnly": true
|
|
25
|
+
},
|
|
26
|
+
"unit_enabled": {
|
|
27
|
+
"type": "boolean",
|
|
28
|
+
"description": "Unit enabled",
|
|
29
|
+
"example": true,
|
|
30
|
+
"readOnly": true
|
|
31
|
+
},
|
|
32
|
+
"unit_type": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"description": "Unit type",
|
|
35
|
+
"example": "DIM36",
|
|
36
|
+
"readOnly": true
|
|
37
|
+
},
|
|
38
|
+
"unit_cabinet_id": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"description": "Cabinet identifier",
|
|
41
|
+
"example": "Cabinet 1",
|
|
42
|
+
"readOnly": true
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"required": [
|
|
46
|
+
"unit_id",
|
|
47
|
+
"unit_internal_description",
|
|
48
|
+
"unit_enabled",
|
|
49
|
+
"unit_type",
|
|
50
|
+
"unit_cabinet_id"
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"examples": {
|
|
55
|
+
"Unit": {
|
|
56
|
+
"value": {
|
|
57
|
+
"id": "507f1f77bcf86cd799439011",
|
|
58
|
+
"unit_id": "127",
|
|
59
|
+
"unit_internal_description": "Motor Power Supply",
|
|
60
|
+
"unit_enabled": true,
|
|
61
|
+
"unit_type": "DIM36",
|
|
62
|
+
"unit_cabinet_id": "Cabinet 1"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,448 @@
|
|
|
1
|
+
declare const Docs: {
|
|
2
|
+
ChannelDocs: {
|
|
3
|
+
components: {
|
|
4
|
+
schemas: {
|
|
5
|
+
Channel: {
|
|
6
|
+
type: string;
|
|
7
|
+
properties: {
|
|
8
|
+
id: {
|
|
9
|
+
type: string;
|
|
10
|
+
format: string;
|
|
11
|
+
description: string;
|
|
12
|
+
example: string;
|
|
13
|
+
readOnly: boolean;
|
|
14
|
+
};
|
|
15
|
+
channel_tag: {
|
|
16
|
+
type: string;
|
|
17
|
+
description: string;
|
|
18
|
+
example: string;
|
|
19
|
+
readOnly: boolean;
|
|
20
|
+
};
|
|
21
|
+
channel_description: {
|
|
22
|
+
type: string;
|
|
23
|
+
description: string;
|
|
24
|
+
example: string;
|
|
25
|
+
readOnly: boolean;
|
|
26
|
+
};
|
|
27
|
+
channel_unit_id: {
|
|
28
|
+
type: string;
|
|
29
|
+
format: string;
|
|
30
|
+
description: string;
|
|
31
|
+
example: string;
|
|
32
|
+
readOnly: boolean;
|
|
33
|
+
};
|
|
34
|
+
channel_parsed: {
|
|
35
|
+
type: string;
|
|
36
|
+
description: string;
|
|
37
|
+
readOnly: boolean;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
required: string[];
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
examples: {
|
|
44
|
+
Channel: {
|
|
45
|
+
value: {
|
|
46
|
+
id: string;
|
|
47
|
+
channel_tag: string;
|
|
48
|
+
channel_description: string;
|
|
49
|
+
channel_type: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
ChannelDataBucketDocs: {
|
|
56
|
+
components: {
|
|
57
|
+
schemas: {
|
|
58
|
+
ChannelData: {
|
|
59
|
+
type: string;
|
|
60
|
+
description: string;
|
|
61
|
+
properties: {
|
|
62
|
+
id: {
|
|
63
|
+
type: string;
|
|
64
|
+
format: string;
|
|
65
|
+
description: string;
|
|
66
|
+
example: string;
|
|
67
|
+
readOnly: boolean;
|
|
68
|
+
};
|
|
69
|
+
start_date: {
|
|
70
|
+
type: string;
|
|
71
|
+
format: string;
|
|
72
|
+
description: string;
|
|
73
|
+
example: string;
|
|
74
|
+
readOnly: boolean;
|
|
75
|
+
};
|
|
76
|
+
end_date: {
|
|
77
|
+
type: string;
|
|
78
|
+
format: string;
|
|
79
|
+
description: string;
|
|
80
|
+
example: string;
|
|
81
|
+
readOnly: boolean;
|
|
82
|
+
};
|
|
83
|
+
data: {
|
|
84
|
+
type: string;
|
|
85
|
+
description: string;
|
|
86
|
+
items: {
|
|
87
|
+
$ref: string;
|
|
88
|
+
};
|
|
89
|
+
readOnly: boolean;
|
|
90
|
+
};
|
|
91
|
+
size: {
|
|
92
|
+
type: string;
|
|
93
|
+
format: string;
|
|
94
|
+
description: string;
|
|
95
|
+
example: number;
|
|
96
|
+
readOnly: boolean;
|
|
97
|
+
};
|
|
98
|
+
synced: {
|
|
99
|
+
type: string;
|
|
100
|
+
description: string;
|
|
101
|
+
example: string;
|
|
102
|
+
readOnly: boolean;
|
|
103
|
+
};
|
|
104
|
+
sum: {
|
|
105
|
+
type: string;
|
|
106
|
+
format: string;
|
|
107
|
+
description: string;
|
|
108
|
+
example: number;
|
|
109
|
+
readOnly: boolean;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
examples: {
|
|
115
|
+
ChannelData: {
|
|
116
|
+
id: string;
|
|
117
|
+
start_date: string;
|
|
118
|
+
end_date: string;
|
|
119
|
+
data: {
|
|
120
|
+
t: number;
|
|
121
|
+
v: number;
|
|
122
|
+
}[];
|
|
123
|
+
size: number;
|
|
124
|
+
synced: string;
|
|
125
|
+
sum: number;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
ChannelWithDataDocs: {
|
|
131
|
+
components: {
|
|
132
|
+
schemas: {
|
|
133
|
+
ChannelWithData: {
|
|
134
|
+
allOf: ({
|
|
135
|
+
$ref: string;
|
|
136
|
+
type?: undefined;
|
|
137
|
+
properties?: undefined;
|
|
138
|
+
} | {
|
|
139
|
+
type: string;
|
|
140
|
+
properties: {
|
|
141
|
+
channel_latest_value: {
|
|
142
|
+
type: string;
|
|
143
|
+
description: string;
|
|
144
|
+
example: string;
|
|
145
|
+
readOnly: boolean;
|
|
146
|
+
};
|
|
147
|
+
channel_latest_timestamp: {
|
|
148
|
+
type: string;
|
|
149
|
+
format: string;
|
|
150
|
+
description: string;
|
|
151
|
+
example: number;
|
|
152
|
+
readOnly: boolean;
|
|
153
|
+
};
|
|
154
|
+
channel_alarm_state: {
|
|
155
|
+
type: string;
|
|
156
|
+
description: string;
|
|
157
|
+
example: string;
|
|
158
|
+
readOnly: boolean;
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
$ref?: undefined;
|
|
162
|
+
})[];
|
|
163
|
+
required: string[];
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
examples: {
|
|
167
|
+
ChannelWithData: {
|
|
168
|
+
value: {
|
|
169
|
+
id: string;
|
|
170
|
+
channel_tag: string;
|
|
171
|
+
channel_description: string;
|
|
172
|
+
channel_type: string;
|
|
173
|
+
channel_latest_value: number;
|
|
174
|
+
channel_latest_timestamp: number;
|
|
175
|
+
channel_alarm_state: string;
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
ChannelDataPointDocs: {
|
|
182
|
+
components: {
|
|
183
|
+
schemas: {
|
|
184
|
+
ChannelDataPoint: {
|
|
185
|
+
type: string;
|
|
186
|
+
description: string;
|
|
187
|
+
properties: {
|
|
188
|
+
c: {
|
|
189
|
+
type: string;
|
|
190
|
+
description: string;
|
|
191
|
+
example: string;
|
|
192
|
+
readOnly: boolean;
|
|
193
|
+
};
|
|
194
|
+
t: {
|
|
195
|
+
type: string;
|
|
196
|
+
format: string;
|
|
197
|
+
description: string;
|
|
198
|
+
example: number;
|
|
199
|
+
readOnly: boolean;
|
|
200
|
+
};
|
|
201
|
+
v: {
|
|
202
|
+
type: string;
|
|
203
|
+
format: string;
|
|
204
|
+
description: string;
|
|
205
|
+
example: number;
|
|
206
|
+
readOnly: boolean;
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
examples: {
|
|
212
|
+
ChannelDataPoint: {
|
|
213
|
+
c: string;
|
|
214
|
+
t: number;
|
|
215
|
+
v: number;
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
EventDocs: {
|
|
221
|
+
components: {
|
|
222
|
+
schemas: {
|
|
223
|
+
Event: {
|
|
224
|
+
type: string;
|
|
225
|
+
description: string;
|
|
226
|
+
properties: {
|
|
227
|
+
id: {
|
|
228
|
+
type: string;
|
|
229
|
+
format: string;
|
|
230
|
+
description: string;
|
|
231
|
+
example: string;
|
|
232
|
+
readOnly: boolean;
|
|
233
|
+
};
|
|
234
|
+
event_message: {
|
|
235
|
+
type: string;
|
|
236
|
+
format: string;
|
|
237
|
+
description: string;
|
|
238
|
+
example: string;
|
|
239
|
+
};
|
|
240
|
+
event_source: {
|
|
241
|
+
type: string;
|
|
242
|
+
format: string;
|
|
243
|
+
description: string;
|
|
244
|
+
example: string;
|
|
245
|
+
};
|
|
246
|
+
event_category: {
|
|
247
|
+
type: string;
|
|
248
|
+
format: string;
|
|
249
|
+
description: string;
|
|
250
|
+
example: string;
|
|
251
|
+
enum: string;
|
|
252
|
+
};
|
|
253
|
+
event_type: {
|
|
254
|
+
type: string;
|
|
255
|
+
format: string;
|
|
256
|
+
description: string;
|
|
257
|
+
example: string;
|
|
258
|
+
};
|
|
259
|
+
event_timestamp: {
|
|
260
|
+
type: string;
|
|
261
|
+
format: string;
|
|
262
|
+
description: string;
|
|
263
|
+
example: number;
|
|
264
|
+
};
|
|
265
|
+
event_data: {
|
|
266
|
+
type: string;
|
|
267
|
+
description: string;
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
required: string[];
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
examples: {
|
|
274
|
+
Event: {
|
|
275
|
+
value: {
|
|
276
|
+
id: string;
|
|
277
|
+
event_message: string;
|
|
278
|
+
event_source: string;
|
|
279
|
+
event_category: string;
|
|
280
|
+
event_type: string;
|
|
281
|
+
event_timestamp: number;
|
|
282
|
+
event_data: {
|
|
283
|
+
profile: string;
|
|
284
|
+
duration: number;
|
|
285
|
+
replaced_profile: string;
|
|
286
|
+
};
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
};
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
HistoryDocs: {
|
|
293
|
+
components: {
|
|
294
|
+
schemas: {
|
|
295
|
+
History: {
|
|
296
|
+
type: string;
|
|
297
|
+
properties: {
|
|
298
|
+
id: {
|
|
299
|
+
type: string;
|
|
300
|
+
format: string;
|
|
301
|
+
description: string;
|
|
302
|
+
example: string;
|
|
303
|
+
readOnly: boolean;
|
|
304
|
+
};
|
|
305
|
+
channel_tag: {
|
|
306
|
+
type: string;
|
|
307
|
+
format: string;
|
|
308
|
+
description: string;
|
|
309
|
+
example: string;
|
|
310
|
+
readOnly: boolean;
|
|
311
|
+
};
|
|
312
|
+
alarm_timestamp: {
|
|
313
|
+
type: string;
|
|
314
|
+
format: string;
|
|
315
|
+
description: string;
|
|
316
|
+
example: string;
|
|
317
|
+
readOnly: boolean;
|
|
318
|
+
};
|
|
319
|
+
alarm_priority: {
|
|
320
|
+
type: string;
|
|
321
|
+
format: string;
|
|
322
|
+
description: string;
|
|
323
|
+
example: string;
|
|
324
|
+
enum: string;
|
|
325
|
+
readOnly: boolean;
|
|
326
|
+
};
|
|
327
|
+
alarm_original_state: {
|
|
328
|
+
type: string;
|
|
329
|
+
format: string;
|
|
330
|
+
description: string;
|
|
331
|
+
example: string;
|
|
332
|
+
enum: string;
|
|
333
|
+
readOnly: boolean;
|
|
334
|
+
};
|
|
335
|
+
alarm_state: {
|
|
336
|
+
type: string;
|
|
337
|
+
format: string;
|
|
338
|
+
description: string;
|
|
339
|
+
example: string;
|
|
340
|
+
enum: string;
|
|
341
|
+
readOnly: boolean;
|
|
342
|
+
};
|
|
343
|
+
alarm_type: {
|
|
344
|
+
type: string;
|
|
345
|
+
format: string;
|
|
346
|
+
description: string;
|
|
347
|
+
example: string;
|
|
348
|
+
enum: string;
|
|
349
|
+
readOnly: boolean;
|
|
350
|
+
};
|
|
351
|
+
alarm_value: {
|
|
352
|
+
type: string;
|
|
353
|
+
format: string;
|
|
354
|
+
description: string;
|
|
355
|
+
example: number;
|
|
356
|
+
readOnly: boolean;
|
|
357
|
+
};
|
|
358
|
+
alarm_message: {
|
|
359
|
+
type: string;
|
|
360
|
+
format: string;
|
|
361
|
+
description: string;
|
|
362
|
+
example: string;
|
|
363
|
+
readOnly: boolean;
|
|
364
|
+
};
|
|
365
|
+
};
|
|
366
|
+
required: string[];
|
|
367
|
+
};
|
|
368
|
+
};
|
|
369
|
+
examples: {
|
|
370
|
+
History: {
|
|
371
|
+
value: {
|
|
372
|
+
id: string;
|
|
373
|
+
channel_tag: string;
|
|
374
|
+
alarm_timestamp: string;
|
|
375
|
+
alarm_priority: string;
|
|
376
|
+
alarm_original_state: string;
|
|
377
|
+
alarm_state: string;
|
|
378
|
+
alarm_type: string;
|
|
379
|
+
alarm_value: number;
|
|
380
|
+
alarm_message: string;
|
|
381
|
+
};
|
|
382
|
+
};
|
|
383
|
+
};
|
|
384
|
+
};
|
|
385
|
+
};
|
|
386
|
+
UnitDocs: {
|
|
387
|
+
components: {
|
|
388
|
+
schemas: {
|
|
389
|
+
Unit: {
|
|
390
|
+
type: string;
|
|
391
|
+
properties: {
|
|
392
|
+
id: {
|
|
393
|
+
type: string;
|
|
394
|
+
format: string;
|
|
395
|
+
description: string;
|
|
396
|
+
example: string;
|
|
397
|
+
readOnly: boolean;
|
|
398
|
+
};
|
|
399
|
+
unit_id: {
|
|
400
|
+
type: string;
|
|
401
|
+
description: string;
|
|
402
|
+
example: string;
|
|
403
|
+
readOnly: boolean;
|
|
404
|
+
};
|
|
405
|
+
unit_internal_description: {
|
|
406
|
+
type: string;
|
|
407
|
+
description: string;
|
|
408
|
+
example: string;
|
|
409
|
+
readOnly: boolean;
|
|
410
|
+
};
|
|
411
|
+
unit_enabled: {
|
|
412
|
+
type: string;
|
|
413
|
+
description: string;
|
|
414
|
+
example: boolean;
|
|
415
|
+
readOnly: boolean;
|
|
416
|
+
};
|
|
417
|
+
unit_type: {
|
|
418
|
+
type: string;
|
|
419
|
+
description: string;
|
|
420
|
+
example: string;
|
|
421
|
+
readOnly: boolean;
|
|
422
|
+
};
|
|
423
|
+
unit_cabinet_id: {
|
|
424
|
+
type: string;
|
|
425
|
+
description: string;
|
|
426
|
+
example: string;
|
|
427
|
+
readOnly: boolean;
|
|
428
|
+
};
|
|
429
|
+
};
|
|
430
|
+
required: string[];
|
|
431
|
+
};
|
|
432
|
+
};
|
|
433
|
+
examples: {
|
|
434
|
+
Unit: {
|
|
435
|
+
value: {
|
|
436
|
+
id: string;
|
|
437
|
+
unit_id: string;
|
|
438
|
+
unit_internal_description: string;
|
|
439
|
+
unit_enabled: boolean;
|
|
440
|
+
unit_type: string;
|
|
441
|
+
unit_cabinet_id: string;
|
|
442
|
+
};
|
|
443
|
+
};
|
|
444
|
+
};
|
|
445
|
+
};
|
|
446
|
+
};
|
|
447
|
+
};
|
|
448
|
+
export default Docs;
|