@ricado/api-client 2.2.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ricado.api.client.js +1 -1
- 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 +16 -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 +361 -361
- package/lib/index.js +3 -3
- package/package.json +1 -1
- 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 +16 -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 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
|
|
@@ -31,7 +31,7 @@ class PermanentObjectModel 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 Permanent Object belongs to
|
|
@@ -39,7 +39,7 @@ class PermanentObjectModel 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 Permanent Object Key Index
|
|
@@ -47,7 +47,7 @@ class PermanentObjectModel extends BaseModel
|
|
|
47
47
|
* @type {string}
|
|
48
48
|
* @public
|
|
49
49
|
*/
|
|
50
|
-
this.keyIndex =
|
|
50
|
+
this.keyIndex = "";
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* The Permanent Object Type
|
|
@@ -55,7 +55,7 @@ class PermanentObjectModel extends BaseModel
|
|
|
55
55
|
* @type {string}
|
|
56
56
|
* @public
|
|
57
57
|
*/
|
|
58
|
-
this.type =
|
|
58
|
+
this.type = "";
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
61
|
* The Permanent Object Definition
|
|
@@ -63,7 +63,7 @@ class PermanentObjectModel extends BaseModel
|
|
|
63
63
|
* @type {Object}
|
|
64
64
|
* @public
|
|
65
65
|
*/
|
|
66
|
-
this.definition =
|
|
66
|
+
this.definition = {}
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* Whether the Permanent Object has been deleted
|
|
@@ -71,7 +71,7 @@ class PermanentObjectModel 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 Permanent Object was last updated
|
|
@@ -79,7 +79,7 @@ class PermanentObjectModel 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 Permanent Object
|
|
@@ -31,7 +31,7 @@ class PointModel extends BaseModel
|
|
|
31
31
|
* @type {number}
|
|
32
32
|
* @public
|
|
33
33
|
*/
|
|
34
|
-
this.id =
|
|
34
|
+
this.id = 0;
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* The RTU this Point belongs to
|
|
@@ -39,7 +39,7 @@ class PointModel 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 Plugin ID
|
|
@@ -47,7 +47,7 @@ class PointModel extends BaseModel
|
|
|
47
47
|
* @type {?number}
|
|
48
48
|
* @public
|
|
49
49
|
*/
|
|
50
|
-
this.pluginId =
|
|
50
|
+
this.pluginId = null;
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* The Point Name
|
|
@@ -55,7 +55,7 @@ class PointModel extends BaseModel
|
|
|
55
55
|
* @type {string}
|
|
56
56
|
* @public
|
|
57
57
|
*/
|
|
58
|
-
this.name =
|
|
58
|
+
this.name = "";
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
61
|
* The Point Type
|
|
@@ -63,7 +63,7 @@ class PointModel extends BaseModel
|
|
|
63
63
|
* @type {string}
|
|
64
64
|
* @public
|
|
65
65
|
*/
|
|
66
|
-
this.type =
|
|
66
|
+
this.type = "";
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* The Point's Value Type
|
|
@@ -71,7 +71,7 @@ class PointModel extends BaseModel
|
|
|
71
71
|
* @type {string}
|
|
72
72
|
* @public
|
|
73
73
|
*/
|
|
74
|
-
this.valueType =
|
|
74
|
+
this.valueType = "";
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* The Permissions
|
|
@@ -79,7 +79,7 @@ class PointModel extends BaseModel
|
|
|
79
79
|
* @type {string}
|
|
80
80
|
* @public
|
|
81
81
|
*/
|
|
82
|
-
this.permissions =
|
|
82
|
+
this.permissions = "";
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
85
|
* Whether the Point is Enabled
|
|
@@ -87,7 +87,7 @@ class PointModel extends BaseModel
|
|
|
87
87
|
* @type {boolean}
|
|
88
88
|
* @public
|
|
89
89
|
*/
|
|
90
|
-
this.enabled =
|
|
90
|
+
this.enabled = false;
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
93
|
* The Point Settings
|
|
@@ -95,7 +95,7 @@ class PointModel extends BaseModel
|
|
|
95
95
|
* @type {Object}
|
|
96
96
|
* @public
|
|
97
97
|
*/
|
|
98
|
-
this.settings =
|
|
98
|
+
this.settings = {}
|
|
99
99
|
|
|
100
100
|
/**
|
|
101
101
|
* Whether the Point has been deleted
|
|
@@ -103,7 +103,7 @@ class PointModel extends BaseModel
|
|
|
103
103
|
* @type {boolean}
|
|
104
104
|
* @public
|
|
105
105
|
*/
|
|
106
|
-
this.deleted =
|
|
106
|
+
this.deleted = false;
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
109
|
* When the Point was last updated
|
|
@@ -111,7 +111,7 @@ class PointModel extends BaseModel
|
|
|
111
111
|
* @type {Date}
|
|
112
112
|
* @public
|
|
113
113
|
*/
|
|
114
|
-
this.updateTimestamp =
|
|
114
|
+
this.updateTimestamp = new Date();
|
|
115
115
|
|
|
116
116
|
/**
|
|
117
117
|
* The Site ID associated with this Point
|
|
@@ -31,7 +31,7 @@ class TemporaryObjectModel extends BaseModel
|
|
|
31
31
|
* @type {string}
|
|
32
32
|
* @public
|
|
33
33
|
*/
|
|
34
|
-
this.id =
|
|
34
|
+
this.id = "";
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* The Temporary Object Key Index
|
|
@@ -39,7 +39,7 @@ class TemporaryObjectModel extends BaseModel
|
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @public
|
|
41
41
|
*/
|
|
42
|
-
this.keyIndex =
|
|
42
|
+
this.keyIndex = "";
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* The Temporary Object Type
|
|
@@ -47,7 +47,7 @@ class TemporaryObjectModel extends BaseModel
|
|
|
47
47
|
* @type {string}
|
|
48
48
|
* @public
|
|
49
49
|
*/
|
|
50
|
-
this.type =
|
|
50
|
+
this.type = "";
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* The Temporary Object Definition
|
|
@@ -55,7 +55,7 @@ class TemporaryObjectModel extends BaseModel
|
|
|
55
55
|
* @type {Object}
|
|
56
56
|
* @public
|
|
57
57
|
*/
|
|
58
|
-
this.definition =
|
|
58
|
+
this.definition = {}
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
61
|
* Whether the Temporary Object has been deleted
|
|
@@ -63,7 +63,7 @@ class TemporaryObjectModel 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 Temporary Object was last updated
|
|
@@ -71,7 +71,7 @@ class TemporaryObjectModel 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 Temporary Object
|
package/src/Models/SiteModel.js
CHANGED
|
@@ -30,7 +30,7 @@ class SiteModel 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 Name
|
|
@@ -38,7 +38,7 @@ class SiteModel 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 Site belongs to
|
|
@@ -46,7 +46,7 @@ class SiteModel 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 Site is Enabled
|
|
@@ -54,7 +54,7 @@ class SiteModel 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 Site has been deleted
|
|
@@ -62,7 +62,7 @@ class SiteModel 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 Site was last updated
|
|
@@ -70,7 +70,7 @@ class SiteModel 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
|
/**
|
package/src/Models/TokenModel.js
CHANGED
|
@@ -30,7 +30,7 @@ class TokenModel extends BaseModel
|
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @public
|
|
32
32
|
*/
|
|
33
|
-
this.id =
|
|
33
|
+
this.id = "";
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* The Account this Token belongs to
|
|
@@ -38,7 +38,7 @@ class TokenModel extends BaseModel
|
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @public
|
|
40
40
|
*/
|
|
41
|
-
this.accountId =
|
|
41
|
+
this.accountId = "";
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
44
|
* The Account Type
|
|
@@ -46,7 +46,7 @@ class TokenModel extends BaseModel
|
|
|
46
46
|
* @type {string}
|
|
47
47
|
* @public
|
|
48
48
|
*/
|
|
49
|
-
this.accountType =
|
|
49
|
+
this.accountType = "";
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
52
|
* When the Token was issued
|
|
@@ -54,7 +54,7 @@ class TokenModel extends BaseModel
|
|
|
54
54
|
* @type {Date}
|
|
55
55
|
* @public
|
|
56
56
|
*/
|
|
57
|
-
this.issueTimestamp =
|
|
57
|
+
this.issueTimestamp = new Date();
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
60
|
* When the Token will expire
|
|
@@ -62,7 +62,7 @@ class TokenModel extends BaseModel
|
|
|
62
62
|
* @type {Date}
|
|
63
63
|
* @public
|
|
64
64
|
*/
|
|
65
|
-
this.expireTimestamp =
|
|
65
|
+
this.expireTimestamp = new Date();
|
|
66
66
|
|
|
67
67
|
/**
|
|
68
68
|
* When the last API call using this Token was made
|
|
@@ -70,7 +70,7 @@ class TokenModel extends BaseModel
|
|
|
70
70
|
* @type {?Date}
|
|
71
71
|
* @public
|
|
72
72
|
*/
|
|
73
|
-
this.activityTimestamp =
|
|
73
|
+
this.activityTimestamp = null;
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
76
|
* When the Token was unlocked
|
|
@@ -78,7 +78,7 @@ class TokenModel extends BaseModel
|
|
|
78
78
|
* @type {?Date}
|
|
79
79
|
* @public
|
|
80
80
|
*/
|
|
81
|
-
this.unlockTimestamp =
|
|
81
|
+
this.unlockTimestamp = null;
|
|
82
82
|
|
|
83
83
|
/**
|
|
84
84
|
* When the Token was locked
|
|
@@ -86,7 +86,7 @@ class TokenModel extends BaseModel
|
|
|
86
86
|
* @type {?Date}
|
|
87
87
|
* @public
|
|
88
88
|
*/
|
|
89
|
-
this.lockTimestamp =
|
|
89
|
+
this.lockTimestamp = null;
|
|
90
90
|
|
|
91
91
|
/**
|
|
92
92
|
* Whether the Token has been deleted
|
|
@@ -94,7 +94,7 @@ class TokenModel extends BaseModel
|
|
|
94
94
|
* @type {boolean}
|
|
95
95
|
* @public
|
|
96
96
|
*/
|
|
97
|
-
this.deleted =
|
|
97
|
+
this.deleted = false;
|
|
98
98
|
|
|
99
99
|
/**
|
|
100
100
|
* When the Token was last updated
|
|
@@ -102,7 +102,7 @@ class TokenModel extends BaseModel
|
|
|
102
102
|
* @type {Date}
|
|
103
103
|
* @public
|
|
104
104
|
*/
|
|
105
|
-
this.updateTimestamp =
|
|
105
|
+
this.updateTimestamp = new Date();
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
/**
|