@ricado/api-client 2.2.0 → 2.3.2
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/dist/ricado.api.client.js +1 -1
- package/lib/Controllers/Packhouse/Site/BinTipBinController.js +267 -0
- package/lib/Controllers/Packhouse/Site/BinTipWeightController.js +267 -0
- package/lib/Controllers/Packhouse/Site/CompacSizerBatchController.js +267 -0
- package/lib/Controllers/Packhouse/Site/CompacSizerOutletProductChangeController.js +267 -0
- package/lib/Controllers/Packhouse/Site/CompacSizerOutletTypeChangeController.js +267 -0
- package/lib/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +267 -0
- package/lib/Controllers/Packhouse/Site/DowntimeEventController.js +267 -0
- package/lib/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +267 -0
- package/lib/Controllers/Packhouse/Site/FreshQualityPackrunSummaryController.js +267 -0
- package/lib/Controllers/Packhouse/Site/PackingLineController.js +4 -0
- package/lib/Controllers/Packhouse/Site/PackrunController.js +267 -0
- package/lib/Controllers/Packhouse/Site/RejectBinController.js +267 -0
- package/lib/Controllers/Packhouse/Site/RejectBinWeightController.js +267 -0
- package/lib/Controllers/Packhouse/Site/ShiftController.js +267 -0
- package/lib/Controllers/Packhouse/Site/ShiftFocusMeetingController.js +267 -0
- package/lib/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +267 -0
- package/lib/Controllers/Packhouse/Site/ShiftQualitySummaryController.js +267 -0
- package/lib/Controllers/Packhouse/Site/ShiftTaskController.js +267 -0
- package/lib/Controllers/Site/PermanentObjectDataController.js +267 -0
- package/lib/DataItems/PointValueItem.js +3 -3
- package/lib/Models/AccountPolicyModel.js +7 -7
- package/lib/Models/ApiAccountModel.js +7 -7
- package/lib/Models/CompanyModel.js +5 -5
- package/lib/Models/FirebaseTokenModel.js +8 -8
- package/lib/Models/Packhouse/Site/BinTipBinModel.js +13 -13
- package/lib/Models/Packhouse/Site/BinTipWeightModel.js +9 -9
- package/lib/Models/Packhouse/Site/CompacSizerBatchModel.js +8 -8
- package/lib/Models/Packhouse/Site/CompacSizerModel.js +14 -14
- package/lib/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +10 -10
- package/lib/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +8 -8
- package/lib/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +6 -6
- package/lib/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +12 -12
- package/lib/Models/Packhouse/Site/DowntimeEventModel.js +14 -14
- package/lib/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +8 -8
- package/lib/Models/Packhouse/Site/FreshQualityPackrunSummaryModel.js +10 -10
- package/lib/Models/Packhouse/Site/GrowingMethodModel.js +6 -6
- package/lib/Models/Packhouse/Site/PackTypeModel.js +8 -8
- package/lib/Models/Packhouse/Site/PackingLineModel.js +60 -16
- package/lib/Models/Packhouse/Site/PackrunModel.js +18 -18
- package/lib/Models/Packhouse/Site/RejectBinModel.js +9 -9
- package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +23 -23
- package/lib/Models/Packhouse/Site/RejectBinWeightModel.js +10 -10
- package/lib/Models/Packhouse/Site/ShiftFocusMeetingModel.js +12 -12
- package/lib/Models/Packhouse/Site/ShiftHourlyEntryModel.js +44 -44
- package/lib/Models/Packhouse/Site/ShiftModel.js +26 -19
- package/lib/Models/Packhouse/Site/ShiftQualitySummaryModel.js +14 -14
- package/lib/Models/Packhouse/Site/ShiftTaskModel.js +14 -14
- package/lib/Models/Packhouse/Site/SoftSortBeltModel.js +7 -7
- package/lib/Models/Packhouse/Site/VarietyModel.js +8 -8
- package/lib/Models/RTUModel.js +6 -6
- package/lib/Models/RTUPluginModel.js +5 -5
- package/lib/Models/Site/AlarmGroupModel.js +7 -7
- package/lib/Models/Site/AlarmModel.js +17 -17
- package/lib/Models/Site/DefinitionModel.js +6 -6
- package/lib/Models/Site/PermanentObjectDataModel.js +8 -8
- package/lib/Models/Site/PermanentObjectModel.js +7 -7
- package/lib/Models/Site/PointModel.js +11 -11
- package/lib/Models/Site/TemporaryObjectModel.js +6 -6
- package/lib/Models/SiteModel.js +6 -6
- package/lib/Models/TokenModel.js +10 -10
- package/lib/Models/UserAccountActionTokenModel.js +11 -11
- package/lib/Models/UserAccountModel.js +10 -10
- package/lib/PackageVersion.js +1 -1
- package/lib/Points.js +22 -12
- package/lib/WebSocketHelper.js +29 -13
- package/lib/index.d.ts +715 -361
- package/lib/index.js +3 -3
- package/package.json +1 -1
- package/src/Controllers/Packhouse/Site/BinTipBinController.js +355 -0
- package/src/Controllers/Packhouse/Site/BinTipWeightController.js +355 -0
- package/src/Controllers/Packhouse/Site/CompacSizerBatchController.js +355 -0
- package/src/Controllers/Packhouse/Site/CompacSizerOutletProductChangeController.js +355 -0
- package/src/Controllers/Packhouse/Site/CompacSizerOutletTypeChangeController.js +355 -0
- package/src/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +355 -0
- package/src/Controllers/Packhouse/Site/DowntimeEventController.js +355 -0
- package/src/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +355 -0
- package/src/Controllers/Packhouse/Site/FreshQualityPackrunSummaryController.js +355 -0
- package/src/Controllers/Packhouse/Site/PackingLineController.js +4 -0
- package/src/Controllers/Packhouse/Site/PackrunController.js +355 -0
- package/src/Controllers/Packhouse/Site/RejectBinController.js +355 -0
- package/src/Controllers/Packhouse/Site/RejectBinWeightController.js +355 -0
- package/src/Controllers/Packhouse/Site/ShiftController.js +355 -0
- package/src/Controllers/Packhouse/Site/ShiftFocusMeetingController.js +355 -0
- package/src/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +355 -0
- package/src/Controllers/Packhouse/Site/ShiftQualitySummaryController.js +355 -0
- package/src/Controllers/Packhouse/Site/ShiftTaskController.js +355 -0
- package/src/Controllers/Site/PermanentObjectDataController.js +355 -0
- package/src/DataItems/PointValueItem.js +3 -3
- package/src/Models/AccountPolicyModel.js +7 -7
- package/src/Models/ApiAccountModel.js +7 -7
- package/src/Models/CompanyModel.js +5 -5
- package/src/Models/FirebaseTokenModel.js +8 -8
- package/src/Models/Packhouse/Site/BinTipBinModel.js +13 -13
- package/src/Models/Packhouse/Site/BinTipWeightModel.js +9 -9
- package/src/Models/Packhouse/Site/CompacSizerBatchModel.js +8 -8
- package/src/Models/Packhouse/Site/CompacSizerModel.js +14 -14
- package/src/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +10 -10
- package/src/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +8 -8
- package/src/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +6 -6
- package/src/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +12 -12
- package/src/Models/Packhouse/Site/DowntimeEventModel.js +14 -14
- package/src/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +8 -8
- package/src/Models/Packhouse/Site/FreshQualityPackrunSummaryModel.js +10 -10
- package/src/Models/Packhouse/Site/GrowingMethodModel.js +6 -6
- package/src/Models/Packhouse/Site/PackTypeModel.js +8 -8
- package/src/Models/Packhouse/Site/PackingLineModel.js +66 -16
- package/src/Models/Packhouse/Site/PackrunModel.js +18 -18
- package/src/Models/Packhouse/Site/RejectBinModel.js +9 -9
- package/src/Models/Packhouse/Site/RejectBinScaleModel.js +23 -23
- package/src/Models/Packhouse/Site/RejectBinWeightModel.js +10 -10
- package/src/Models/Packhouse/Site/ShiftFocusMeetingModel.js +12 -12
- package/src/Models/Packhouse/Site/ShiftHourlyEntryModel.js +44 -44
- package/src/Models/Packhouse/Site/ShiftModel.js +29 -19
- package/src/Models/Packhouse/Site/ShiftQualitySummaryModel.js +14 -14
- package/src/Models/Packhouse/Site/ShiftTaskModel.js +14 -14
- package/src/Models/Packhouse/Site/SoftSortBeltModel.js +7 -7
- package/src/Models/Packhouse/Site/VarietyModel.js +8 -8
- package/src/Models/RTUModel.js +6 -6
- package/src/Models/RTUPluginModel.js +5 -5
- package/src/Models/Site/AlarmGroupModel.js +7 -7
- package/src/Models/Site/AlarmModel.js +17 -17
- package/src/Models/Site/DefinitionModel.js +6 -6
- package/src/Models/Site/PermanentObjectDataModel.js +8 -8
- package/src/Models/Site/PermanentObjectModel.js +7 -7
- package/src/Models/Site/PointModel.js +11 -11
- package/src/Models/Site/TemporaryObjectModel.js +6 -6
- package/src/Models/SiteModel.js +6 -6
- package/src/Models/TokenModel.js +10 -10
- package/src/Models/UserAccountActionTokenModel.js +11 -11
- package/src/Models/UserAccountModel.js +10 -10
- package/src/PackageVersion.js +1 -1
- package/src/Points.js +24 -12
- package/src/WebSocketHelper.js +34 -13
- package/src/index.js +3 -3
- package/types/tslint.json +2 -1
|
@@ -31,7 +31,7 @@ class ShiftTaskModel extends BaseModel
|
|
|
31
31
|
* @type {string}
|
|
32
32
|
* @public
|
|
33
33
|
*/
|
|
34
|
-
this.id =
|
|
34
|
+
this.id = "";
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* The Packing Line ID this Task is associated with
|
|
@@ -39,7 +39,7 @@ class ShiftTaskModel extends BaseModel
|
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @public
|
|
41
41
|
*/
|
|
42
|
-
this.packingLineId =
|
|
42
|
+
this.packingLineId = "";
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* The Shift ID this Task is asssociated with
|
|
@@ -47,7 +47,7 @@ class ShiftTaskModel extends BaseModel
|
|
|
47
47
|
* @type {string}
|
|
48
48
|
* @public
|
|
49
49
|
*/
|
|
50
|
-
this.shiftId =
|
|
50
|
+
this.shiftId = "";
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* When this Task was Created
|
|
@@ -55,7 +55,7 @@ class ShiftTaskModel extends BaseModel
|
|
|
55
55
|
* @type {Date}
|
|
56
56
|
* @public
|
|
57
57
|
*/
|
|
58
|
-
this.createdTimestamp =
|
|
58
|
+
this.createdTimestamp = new Date();
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
61
|
* When this Task was Completed
|
|
@@ -63,7 +63,7 @@ class ShiftTaskModel extends BaseModel
|
|
|
63
63
|
* @type {?Date}
|
|
64
64
|
* @public
|
|
65
65
|
*/
|
|
66
|
-
this.completedTimestamp =
|
|
66
|
+
this.completedTimestamp = null;
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* The User ID of the Author for this Task
|
|
@@ -71,7 +71,7 @@ class ShiftTaskModel extends BaseModel
|
|
|
71
71
|
* @type {?string}
|
|
72
72
|
* @public
|
|
73
73
|
*/
|
|
74
|
-
this.authorUserId =
|
|
74
|
+
this.authorUserId = null;
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* The Name of the Author for this Task
|
|
@@ -79,7 +79,7 @@ class ShiftTaskModel extends BaseModel
|
|
|
79
79
|
* @type {string}
|
|
80
80
|
* @public
|
|
81
81
|
*/
|
|
82
|
-
this.authorName =
|
|
82
|
+
this.authorName = "";
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
85
|
* The Task Type
|
|
@@ -87,7 +87,7 @@ class ShiftTaskModel extends BaseModel
|
|
|
87
87
|
* @type {string}
|
|
88
88
|
* @public
|
|
89
89
|
*/
|
|
90
|
-
this.type =
|
|
90
|
+
this.type = "";
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
93
|
* An Array of Tag IDs for this Task
|
|
@@ -95,7 +95,7 @@ class ShiftTaskModel extends BaseModel
|
|
|
95
95
|
* @type {string[]}
|
|
96
96
|
* @public
|
|
97
97
|
*/
|
|
98
|
-
this.tags =
|
|
98
|
+
this.tags = [];
|
|
99
99
|
|
|
100
100
|
/**
|
|
101
101
|
* The Title of this Task
|
|
@@ -103,7 +103,7 @@ class ShiftTaskModel extends BaseModel
|
|
|
103
103
|
* @type {string}
|
|
104
104
|
* @public
|
|
105
105
|
*/
|
|
106
|
-
this.title =
|
|
106
|
+
this.title = "";
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
109
|
* The Content of this Task
|
|
@@ -111,7 +111,7 @@ class ShiftTaskModel extends BaseModel
|
|
|
111
111
|
* @type {string}
|
|
112
112
|
* @public
|
|
113
113
|
*/
|
|
114
|
-
this.content =
|
|
114
|
+
this.content = "";
|
|
115
115
|
|
|
116
116
|
/**
|
|
117
117
|
* The Status of this Task
|
|
@@ -119,7 +119,7 @@ class ShiftTaskModel extends BaseModel
|
|
|
119
119
|
* @type {string}
|
|
120
120
|
* @public
|
|
121
121
|
*/
|
|
122
|
-
this.status =
|
|
122
|
+
this.status = "";
|
|
123
123
|
|
|
124
124
|
/**
|
|
125
125
|
* Whether the Shift Task has been deleted
|
|
@@ -127,7 +127,7 @@ class ShiftTaskModel extends BaseModel
|
|
|
127
127
|
* @type {boolean}
|
|
128
128
|
* @public
|
|
129
129
|
*/
|
|
130
|
-
this.deleted =
|
|
130
|
+
this.deleted = false;
|
|
131
131
|
|
|
132
132
|
/**
|
|
133
133
|
* When the Shift Task was last updated
|
|
@@ -135,7 +135,7 @@ class ShiftTaskModel extends BaseModel
|
|
|
135
135
|
* @type {Date}
|
|
136
136
|
* @public
|
|
137
137
|
*/
|
|
138
|
-
this.updateTimestamp =
|
|
138
|
+
this.updateTimestamp = new Date();
|
|
139
139
|
|
|
140
140
|
/**
|
|
141
141
|
* The Site ID associated with this Shift Task
|
|
@@ -31,7 +31,7 @@ class SoftSortBeltModel extends BaseModel
|
|
|
31
31
|
* @type {string}
|
|
32
32
|
* @public
|
|
33
33
|
*/
|
|
34
|
-
this.id =
|
|
34
|
+
this.id = "";
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* The RTU this Soft Sort Belt belongs to
|
|
@@ -39,7 +39,7 @@ class SoftSortBeltModel extends BaseModel
|
|
|
39
39
|
* @type {?number}
|
|
40
40
|
* @public
|
|
41
41
|
*/
|
|
42
|
-
this.rtuId =
|
|
42
|
+
this.rtuId = null;
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* The Name of this Soft Sort Belt
|
|
@@ -47,7 +47,7 @@ class SoftSortBeltModel extends BaseModel
|
|
|
47
47
|
* @type {string}
|
|
48
48
|
* @public
|
|
49
49
|
*/
|
|
50
|
-
this.name =
|
|
50
|
+
this.name = "";
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* The Points used by this Soft Sort Belt
|
|
@@ -55,7 +55,7 @@ class SoftSortBeltModel extends BaseModel
|
|
|
55
55
|
* @type {Object}
|
|
56
56
|
* @public
|
|
57
57
|
*/
|
|
58
|
-
this.points =
|
|
58
|
+
this.points = {}
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
61
|
* The Packing Line that owns this Soft Sort Belt
|
|
@@ -63,7 +63,7 @@ class SoftSortBeltModel extends BaseModel
|
|
|
63
63
|
* @type {string}
|
|
64
64
|
* @public
|
|
65
65
|
*/
|
|
66
|
-
this.packingLineId =
|
|
66
|
+
this.packingLineId = "";
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* Whether the Soft Sort Belt has been deleted
|
|
@@ -71,7 +71,7 @@ class SoftSortBeltModel extends BaseModel
|
|
|
71
71
|
* @type {boolean}
|
|
72
72
|
* @public
|
|
73
73
|
*/
|
|
74
|
-
this.deleted =
|
|
74
|
+
this.deleted = false;
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* When the Soft Sort Belt was last updated
|
|
@@ -79,7 +79,7 @@ class SoftSortBeltModel extends BaseModel
|
|
|
79
79
|
* @type {Date}
|
|
80
80
|
* @public
|
|
81
81
|
*/
|
|
82
|
-
this.updateTimestamp =
|
|
82
|
+
this.updateTimestamp = new Date();
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
85
|
* The Site ID associated with this Soft Sort Belt
|
|
@@ -31,7 +31,7 @@ class VarietyModel extends BaseModel
|
|
|
31
31
|
* @type {string}
|
|
32
32
|
* @public
|
|
33
33
|
*/
|
|
34
|
-
this.id =
|
|
34
|
+
this.id = "";
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* The Variety Code
|
|
@@ -39,7 +39,7 @@ class VarietyModel extends BaseModel
|
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @public
|
|
41
41
|
*/
|
|
42
|
-
this.code =
|
|
42
|
+
this.code = "";
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* The Variety Name
|
|
@@ -47,7 +47,7 @@ class VarietyModel extends BaseModel
|
|
|
47
47
|
* @type {string}
|
|
48
48
|
* @public
|
|
49
49
|
*/
|
|
50
|
-
this.name =
|
|
50
|
+
this.name = "";
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* The Variety Description
|
|
@@ -55,7 +55,7 @@ class VarietyModel extends BaseModel
|
|
|
55
55
|
* @type {string}
|
|
56
56
|
* @public
|
|
57
57
|
*/
|
|
58
|
-
this.description =
|
|
58
|
+
this.description = "";
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
61
|
* The Variety Image Source
|
|
@@ -63,7 +63,7 @@ class VarietyModel extends BaseModel
|
|
|
63
63
|
* @type {string}
|
|
64
64
|
* @public
|
|
65
65
|
*/
|
|
66
|
-
this.image =
|
|
66
|
+
this.image = "";
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* An Array of Fruit Sizes Defined for this Variety
|
|
@@ -71,7 +71,7 @@ class VarietyModel extends BaseModel
|
|
|
71
71
|
* @type {Array<{size: string}>}
|
|
72
72
|
* @public
|
|
73
73
|
*/
|
|
74
|
-
this.fruitSizes =
|
|
74
|
+
this.fruitSizes = [];
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* Whether the Variety has been deleted
|
|
@@ -79,7 +79,7 @@ class VarietyModel extends BaseModel
|
|
|
79
79
|
* @type {boolean}
|
|
80
80
|
* @public
|
|
81
81
|
*/
|
|
82
|
-
this.deleted =
|
|
82
|
+
this.deleted = false;
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
85
|
* When the Variety was last updated
|
|
@@ -87,7 +87,7 @@ class VarietyModel extends BaseModel
|
|
|
87
87
|
* @type {Date}
|
|
88
88
|
* @public
|
|
89
89
|
*/
|
|
90
|
-
this.updateTimestamp =
|
|
90
|
+
this.updateTimestamp = new Date();
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
93
|
* The Site ID associated with this Variety
|
package/src/Models/RTUModel.js
CHANGED
|
@@ -30,7 +30,7 @@ class RTUModel extends BaseModel
|
|
|
30
30
|
* @type {number}
|
|
31
31
|
* @public
|
|
32
32
|
*/
|
|
33
|
-
this.id =
|
|
33
|
+
this.id = 0;
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* The Site this RTU belongs to
|
|
@@ -38,7 +38,7 @@ class RTUModel extends BaseModel
|
|
|
38
38
|
* @type {number}
|
|
39
39
|
* @public
|
|
40
40
|
*/
|
|
41
|
-
this.siteId =
|
|
41
|
+
this.siteId = 0;
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
44
|
* The RTU Name
|
|
@@ -46,7 +46,7 @@ class RTUModel extends BaseModel
|
|
|
46
46
|
* @type {string}
|
|
47
47
|
* @public
|
|
48
48
|
*/
|
|
49
|
-
this.name =
|
|
49
|
+
this.name = "";
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
52
|
* Whether the RTU is Enabled
|
|
@@ -54,7 +54,7 @@ class RTUModel extends BaseModel
|
|
|
54
54
|
* @type {boolean}
|
|
55
55
|
* @public
|
|
56
56
|
*/
|
|
57
|
-
this.enabled =
|
|
57
|
+
this.enabled = false;
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
60
|
* Whether the RTU has been deleted
|
|
@@ -62,7 +62,7 @@ class RTUModel extends BaseModel
|
|
|
62
62
|
* @type {boolean}
|
|
63
63
|
* @public
|
|
64
64
|
*/
|
|
65
|
-
this.deleted =
|
|
65
|
+
this.deleted = false;
|
|
66
66
|
|
|
67
67
|
/**
|
|
68
68
|
* When the RTU was last updated
|
|
@@ -70,7 +70,7 @@ class RTUModel extends BaseModel
|
|
|
70
70
|
* @type {Date}
|
|
71
71
|
* @public
|
|
72
72
|
*/
|
|
73
|
-
this.updateTimestamp =
|
|
73
|
+
this.updateTimestamp = new Date();
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
/**
|
|
@@ -30,7 +30,7 @@ class RTUPluginModel extends BaseModel
|
|
|
30
30
|
* @type {number}
|
|
31
31
|
* @public
|
|
32
32
|
*/
|
|
33
|
-
this.id =
|
|
33
|
+
this.id = 0;
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* The Plugin Name
|
|
@@ -38,7 +38,7 @@ class RTUPluginModel extends BaseModel
|
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @public
|
|
40
40
|
*/
|
|
41
|
-
this.name =
|
|
41
|
+
this.name = "";
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
44
|
* The Company this RTU Plugin belongs to
|
|
@@ -46,7 +46,7 @@ class RTUPluginModel extends BaseModel
|
|
|
46
46
|
* @type {string}
|
|
47
47
|
* @public
|
|
48
48
|
*/
|
|
49
|
-
this.companyId =
|
|
49
|
+
this.companyId = "";
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
52
|
* Whether the RTU Plugin has been deleted
|
|
@@ -54,7 +54,7 @@ class RTUPluginModel extends BaseModel
|
|
|
54
54
|
* @type {boolean}
|
|
55
55
|
* @public
|
|
56
56
|
*/
|
|
57
|
-
this.deleted =
|
|
57
|
+
this.deleted = false;
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
60
|
* When the RTU Plugin was last updated
|
|
@@ -62,7 +62,7 @@ class RTUPluginModel extends BaseModel
|
|
|
62
62
|
* @type {Date}
|
|
63
63
|
* @public
|
|
64
64
|
*/
|
|
65
|
-
this.updateTimestamp =
|
|
65
|
+
this.updateTimestamp = new Date();
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
/**
|
|
@@ -31,7 +31,7 @@ class AlarmGroupModel extends BaseModel
|
|
|
31
31
|
* @type {string}
|
|
32
32
|
* @public
|
|
33
33
|
*/
|
|
34
|
-
this.id =
|
|
34
|
+
this.id = "";
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* The RTU this Alarm Group belongs to
|
|
@@ -39,7 +39,7 @@ class AlarmGroupModel extends BaseModel
|
|
|
39
39
|
* @type {?number}
|
|
40
40
|
* @public
|
|
41
41
|
*/
|
|
42
|
-
this.rtuId =
|
|
42
|
+
this.rtuId = null;
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* The Alarm Group Name
|
|
@@ -47,7 +47,7 @@ class AlarmGroupModel extends BaseModel
|
|
|
47
47
|
* @type {string}
|
|
48
48
|
* @public
|
|
49
49
|
*/
|
|
50
|
-
this.name =
|
|
50
|
+
this.name = "";
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* The Boolean Point used to Reset this Alarm Group
|
|
@@ -55,7 +55,7 @@ class AlarmGroupModel extends BaseModel
|
|
|
55
55
|
* @type {number}
|
|
56
56
|
* @public
|
|
57
57
|
*/
|
|
58
|
-
this.resetPoint =
|
|
58
|
+
this.resetPoint = 0;
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
61
|
* An Array of Points and the States to be Written when this Alarm Group is Reset
|
|
@@ -63,7 +63,7 @@ class AlarmGroupModel extends BaseModel
|
|
|
63
63
|
* @type {Array<{point: number, value: boolean}>}
|
|
64
64
|
* @public
|
|
65
65
|
*/
|
|
66
|
-
this.externalResetPoints =
|
|
66
|
+
this.externalResetPoints = [];
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* Whether the Alarm Group has been deleted
|
|
@@ -71,7 +71,7 @@ class AlarmGroupModel extends BaseModel
|
|
|
71
71
|
* @type {boolean}
|
|
72
72
|
* @public
|
|
73
73
|
*/
|
|
74
|
-
this.deleted =
|
|
74
|
+
this.deleted = false;
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* When the Alarm Group was last updated
|
|
@@ -79,7 +79,7 @@ class AlarmGroupModel extends BaseModel
|
|
|
79
79
|
* @type {Date}
|
|
80
80
|
* @public
|
|
81
81
|
*/
|
|
82
|
-
this.updateTimestamp =
|
|
82
|
+
this.updateTimestamp = new Date();
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
85
|
* The Site ID associated with this Alarm Group
|
|
@@ -31,7 +31,7 @@ class AlarmModel extends BaseModel
|
|
|
31
31
|
* @type {string}
|
|
32
32
|
* @public
|
|
33
33
|
*/
|
|
34
|
-
this.id =
|
|
34
|
+
this.id = "";
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* The RTU this Alarm belongs to
|
|
@@ -39,7 +39,7 @@ class AlarmModel extends BaseModel
|
|
|
39
39
|
* @type {?number}
|
|
40
40
|
* @public
|
|
41
41
|
*/
|
|
42
|
-
this.rtuId =
|
|
42
|
+
this.rtuId = null;
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* The Alarm Group this Alarm is a part of
|
|
@@ -47,7 +47,7 @@ class AlarmModel extends BaseModel
|
|
|
47
47
|
* @type {string}
|
|
48
48
|
* @public
|
|
49
49
|
*/
|
|
50
|
-
this.groupId =
|
|
50
|
+
this.groupId = "";
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* The Alarm Name
|
|
@@ -55,7 +55,7 @@ class AlarmModel extends BaseModel
|
|
|
55
55
|
* @type {string}
|
|
56
56
|
* @public
|
|
57
57
|
*/
|
|
58
|
-
this.name =
|
|
58
|
+
this.name = "";
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
61
|
* Whether the Alarm is Critical or not
|
|
@@ -63,7 +63,7 @@ class AlarmModel extends BaseModel
|
|
|
63
63
|
* @type {boolean}
|
|
64
64
|
* @public
|
|
65
65
|
*/
|
|
66
|
-
this.critical =
|
|
66
|
+
this.critical = false;
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* The Python Script with the Conditions to Trip this Alarm
|
|
@@ -71,7 +71,7 @@ class AlarmModel extends BaseModel
|
|
|
71
71
|
* @type {string}
|
|
72
72
|
* @public
|
|
73
73
|
*/
|
|
74
|
-
this.tripScript =
|
|
74
|
+
this.tripScript = "";
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* The Python Script with the Conditions to Reset this Alarm
|
|
@@ -79,7 +79,7 @@ class AlarmModel extends BaseModel
|
|
|
79
79
|
* @type {?string}
|
|
80
80
|
* @public
|
|
81
81
|
*/
|
|
82
|
-
this.resetScript =
|
|
82
|
+
this.resetScript = null;
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
85
|
* The Delay before this Alarm will Trip in Milliseconds
|
|
@@ -87,7 +87,7 @@ class AlarmModel extends BaseModel
|
|
|
87
87
|
* @type {number}
|
|
88
88
|
* @public
|
|
89
89
|
*/
|
|
90
|
-
this.tripDelay =
|
|
90
|
+
this.tripDelay = 0;
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
93
|
* The Delay before this Alarm will Reset in Milliseconds
|
|
@@ -95,7 +95,7 @@ class AlarmModel extends BaseModel
|
|
|
95
95
|
* @type {number}
|
|
96
96
|
* @public
|
|
97
97
|
*/
|
|
98
|
-
this.resetDelay =
|
|
98
|
+
this.resetDelay = 0;
|
|
99
99
|
|
|
100
100
|
/**
|
|
101
101
|
* Whether the Alarm should Automatically Reset
|
|
@@ -103,7 +103,7 @@ class AlarmModel extends BaseModel
|
|
|
103
103
|
* @type {boolean}
|
|
104
104
|
* @public
|
|
105
105
|
*/
|
|
106
|
-
this.autoReset =
|
|
106
|
+
this.autoReset = false;
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
109
|
* The Delay before this Alarm should Auto Reset in Milliseconds
|
|
@@ -111,7 +111,7 @@ class AlarmModel extends BaseModel
|
|
|
111
111
|
* @type {number}
|
|
112
112
|
* @public
|
|
113
113
|
*/
|
|
114
|
-
this.autoResetDelay =
|
|
114
|
+
this.autoResetDelay = 0;
|
|
115
115
|
|
|
116
116
|
/**
|
|
117
117
|
* The Point used to store the Alarm Tripped State
|
|
@@ -119,7 +119,7 @@ class AlarmModel extends BaseModel
|
|
|
119
119
|
* @type {number}
|
|
120
120
|
* @public
|
|
121
121
|
*/
|
|
122
|
-
this.trippedStatePoint =
|
|
122
|
+
this.trippedStatePoint = 0;
|
|
123
123
|
|
|
124
124
|
/**
|
|
125
125
|
* The Point used to store the Alarm Tripped Timestamp
|
|
@@ -127,7 +127,7 @@ class AlarmModel extends BaseModel
|
|
|
127
127
|
* @type {number}
|
|
128
128
|
* @public
|
|
129
129
|
*/
|
|
130
|
-
this.trippedTimestampPoint =
|
|
130
|
+
this.trippedTimestampPoint = 0;
|
|
131
131
|
|
|
132
132
|
/**
|
|
133
133
|
* The Point used to store the Alarm's Internal Trip Start
|
|
@@ -135,7 +135,7 @@ class AlarmModel extends BaseModel
|
|
|
135
135
|
* @type {number}
|
|
136
136
|
* @public
|
|
137
137
|
*/
|
|
138
|
-
this.internalTripStartPoint =
|
|
138
|
+
this.internalTripStartPoint = 0;
|
|
139
139
|
|
|
140
140
|
/**
|
|
141
141
|
* The Point used to store the Alarm's Internal Reset Start
|
|
@@ -143,7 +143,7 @@ class AlarmModel extends BaseModel
|
|
|
143
143
|
* @type {number}
|
|
144
144
|
* @public
|
|
145
145
|
*/
|
|
146
|
-
this.internalResetStartPoint =
|
|
146
|
+
this.internalResetStartPoint = 0;
|
|
147
147
|
|
|
148
148
|
/**
|
|
149
149
|
* Whether the Alarm has been deleted
|
|
@@ -151,7 +151,7 @@ class AlarmModel extends BaseModel
|
|
|
151
151
|
* @type {boolean}
|
|
152
152
|
* @public
|
|
153
153
|
*/
|
|
154
|
-
this.deleted =
|
|
154
|
+
this.deleted = false;
|
|
155
155
|
|
|
156
156
|
/**
|
|
157
157
|
* When the Alarm was last updated
|
|
@@ -159,7 +159,7 @@ class AlarmModel extends BaseModel
|
|
|
159
159
|
* @type {Date}
|
|
160
160
|
* @public
|
|
161
161
|
*/
|
|
162
|
-
this.updateTimestamp =
|
|
162
|
+
this.updateTimestamp = new Date();
|
|
163
163
|
|
|
164
164
|
/**
|
|
165
165
|
* The Site ID associated with this Alarm
|
|
@@ -31,7 +31,7 @@ class DefinitionModel extends BaseModel
|
|
|
31
31
|
* @type {string}
|
|
32
32
|
* @public
|
|
33
33
|
*/
|
|
34
|
-
this.id =
|
|
34
|
+
this.id = "";
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* The Definition Key Index
|
|
@@ -39,7 +39,7 @@ class DefinitionModel extends BaseModel
|
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @public
|
|
41
41
|
*/
|
|
42
|
-
this.keyIndex =
|
|
42
|
+
this.keyIndex = "";
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* The Definition Type
|
|
@@ -47,7 +47,7 @@ class DefinitionModel extends BaseModel
|
|
|
47
47
|
* @type {string}
|
|
48
48
|
* @public
|
|
49
49
|
*/
|
|
50
|
-
this.type =
|
|
50
|
+
this.type = "";
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* The Definition Data
|
|
@@ -55,7 +55,7 @@ class DefinitionModel extends BaseModel
|
|
|
55
55
|
* @type {Object}
|
|
56
56
|
* @public
|
|
57
57
|
*/
|
|
58
|
-
this.data =
|
|
58
|
+
this.data = {}
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
61
|
* Whether the Definition has been deleted
|
|
@@ -63,7 +63,7 @@ class DefinitionModel extends BaseModel
|
|
|
63
63
|
* @type {boolean}
|
|
64
64
|
* @public
|
|
65
65
|
*/
|
|
66
|
-
this.deleted =
|
|
66
|
+
this.deleted = false;
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* When the Definition was last updated
|
|
@@ -71,7 +71,7 @@ class DefinitionModel extends BaseModel
|
|
|
71
71
|
* @type {Date}
|
|
72
72
|
* @public
|
|
73
73
|
*/
|
|
74
|
-
this.updateTimestamp =
|
|
74
|
+
this.updateTimestamp = new Date();
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* The Site ID associated with this Definition
|
|
@@ -31,7 +31,7 @@ class PermanentObjectDataModel extends BaseModel
|
|
|
31
31
|
* @type {string}
|
|
32
32
|
* @public
|
|
33
33
|
*/
|
|
34
|
-
this.id =
|
|
34
|
+
this.id = "";
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* An Optional Key Index for this Data
|
|
@@ -39,7 +39,7 @@ class PermanentObjectDataModel extends BaseModel
|
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @public
|
|
41
41
|
*/
|
|
42
|
-
this.keyIndex =
|
|
42
|
+
this.keyIndex = "";
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* The Permanent Object this Data is related to
|
|
@@ -47,7 +47,7 @@ class PermanentObjectDataModel extends BaseModel
|
|
|
47
47
|
* @type {string}
|
|
48
48
|
* @public
|
|
49
49
|
*/
|
|
50
|
-
this.permanentObjectId =
|
|
50
|
+
this.permanentObjectId = "";
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* The Permanent Object Data Type
|
|
@@ -55,7 +55,7 @@ class PermanentObjectDataModel extends BaseModel
|
|
|
55
55
|
* @type {string}
|
|
56
56
|
* @public
|
|
57
57
|
*/
|
|
58
|
-
this.type =
|
|
58
|
+
this.type = "";
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
61
|
* The Timestamp when this Data was Created
|
|
@@ -63,7 +63,7 @@ class PermanentObjectDataModel extends BaseModel
|
|
|
63
63
|
* @type {Date}
|
|
64
64
|
* @public
|
|
65
65
|
*/
|
|
66
|
-
this.timestamp =
|
|
66
|
+
this.timestamp = new Date();
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* The Data Object specific to this Permanent Object Data Type
|
|
@@ -71,7 +71,7 @@ class PermanentObjectDataModel extends BaseModel
|
|
|
71
71
|
* @type {Object}
|
|
72
72
|
* @public
|
|
73
73
|
*/
|
|
74
|
-
this.data =
|
|
74
|
+
this.data = {}
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* Whether the Permanent Object Data has been deleted
|
|
@@ -79,7 +79,7 @@ class PermanentObjectDataModel extends BaseModel
|
|
|
79
79
|
* @type {boolean}
|
|
80
80
|
* @public
|
|
81
81
|
*/
|
|
82
|
-
this.deleted =
|
|
82
|
+
this.deleted = false;
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
85
|
* When the Permanent Object Data was last updated
|
|
@@ -87,7 +87,7 @@ class PermanentObjectDataModel extends BaseModel
|
|
|
87
87
|
* @type {Date}
|
|
88
88
|
* @public
|
|
89
89
|
*/
|
|
90
|
-
this.updateTimestamp =
|
|
90
|
+
this.updateTimestamp = new Date();
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
93
|
* The Site ID associated with this Permanent Object Data
|