@ricado/api-client 2.1.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/README.md +5 -7
- package/dist/ricado.api.client.js +1 -1
- package/lib/Controllers/Packhouse/Site/BinTipBinController.js +622 -0
- package/lib/Controllers/Packhouse/Site/CompacSizerController.js +3 -3
- package/lib/Controllers/Packhouse/Site/FreshQualityPackrunSummaryController.js +657 -0
- package/lib/Controllers/Packhouse/Site/PackingLineController.js +25 -1
- package/lib/Controllers/Packhouse/Site/PackrunController.js +42 -0
- package/lib/Controllers/Packhouse/Site/RejectBinScaleController.js +24 -2
- package/lib/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +15 -0
- package/lib/Controllers/Packhouse/Site/ShiftQualitySummaryController.js +661 -0
- package/lib/Controllers/Packhouse/Site/ShiftTaskController.js +628 -0
- package/lib/Controllers/Packhouse/Site/SoftSortBeltController.js +453 -0
- package/lib/Controllers/Packhouse/Site/index.js +15 -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 +367 -0
- 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 +15 -15
- 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 +481 -0
- 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 +539 -16
- package/lib/Models/Packhouse/Site/PackrunModel.js +81 -15
- package/lib/Models/Packhouse/Site/RejectBinModel.js +9 -9
- package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +271 -15
- 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 +204 -38
- package/lib/Models/Packhouse/Site/ShiftModel.js +26 -19
- package/lib/Models/Packhouse/Site/ShiftQualitySummaryModel.js +599 -0
- package/lib/Models/Packhouse/Site/ShiftTaskModel.js +373 -0
- package/lib/Models/Packhouse/Site/SoftSortBeltModel.js +235 -0
- package/lib/Models/Packhouse/Site/VarietyModel.js +8 -8
- package/lib/Models/Packhouse/Site/index.js +15 -0
- 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 +3853 -1290
- package/lib/index.js +3 -3
- package/package.json +1 -1
- package/src/Controllers/Packhouse/Site/BinTipBinController.js +665 -0
- package/src/Controllers/Packhouse/Site/CompacSizerController.js +3 -3
- package/src/Controllers/Packhouse/Site/FreshQualityPackrunSummaryController.js +700 -0
- package/src/Controllers/Packhouse/Site/PackingLineController.js +25 -1
- package/src/Controllers/Packhouse/Site/PackrunController.js +52 -0
- package/src/Controllers/Packhouse/Site/RejectBinScaleController.js +24 -2
- package/src/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +15 -0
- package/src/Controllers/Packhouse/Site/ShiftQualitySummaryController.js +704 -0
- package/src/Controllers/Packhouse/Site/ShiftTaskController.js +671 -0
- package/src/Controllers/Packhouse/Site/SoftSortBeltController.js +474 -0
- package/src/Controllers/Packhouse/Site/index.js +10 -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 +365 -0
- 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 +15 -15
- 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 +523 -0
- 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 +720 -16
- package/src/Models/Packhouse/Site/PackrunModel.js +90 -15
- package/src/Models/Packhouse/Site/RejectBinModel.js +9 -9
- package/src/Models/Packhouse/Site/RejectBinScaleModel.js +308 -15
- 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 +229 -38
- package/src/Models/Packhouse/Site/ShiftModel.js +29 -19
- package/src/Models/Packhouse/Site/ShiftQualitySummaryModel.js +664 -0
- package/src/Models/Packhouse/Site/ShiftTaskModel.js +369 -0
- package/src/Models/Packhouse/Site/SoftSortBeltModel.js +215 -0
- package/src/Models/Packhouse/Site/VarietyModel.js +8 -8
- package/src/Models/Packhouse/Site/index.js +10 -0
- 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
|
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
|
|
8
|
+
var _BinTipBinModel = _interopRequireDefault(require("./BinTipBinModel"));
|
|
9
|
+
|
|
8
10
|
var _BinTipWeightModel = _interopRequireDefault(require("./BinTipWeightModel"));
|
|
9
11
|
|
|
10
12
|
var _CompacSizerBatchModel = _interopRequireDefault(require("./CompacSizerBatchModel"));
|
|
@@ -23,6 +25,8 @@ var _DowntimeEventModel = _interopRequireDefault(require("./DowntimeEventModel")
|
|
|
23
25
|
|
|
24
26
|
var _FreshPackPackrunSummaryModel = _interopRequireDefault(require("./FreshPackPackrunSummaryModel"));
|
|
25
27
|
|
|
28
|
+
var _FreshQualityPackrunSummaryModel = _interopRequireDefault(require("./FreshQualityPackrunSummaryModel"));
|
|
29
|
+
|
|
26
30
|
var _GrowingMethodModel = _interopRequireDefault(require("./GrowingMethodModel"));
|
|
27
31
|
|
|
28
32
|
var _PackTypeModel = _interopRequireDefault(require("./PackTypeModel"));
|
|
@@ -43,6 +47,12 @@ var _ShiftHourlyEntryModel = _interopRequireDefault(require("./ShiftHourlyEntryM
|
|
|
43
47
|
|
|
44
48
|
var _ShiftModel = _interopRequireDefault(require("./ShiftModel"));
|
|
45
49
|
|
|
50
|
+
var _ShiftQualitySummaryModel = _interopRequireDefault(require("./ShiftQualitySummaryModel"));
|
|
51
|
+
|
|
52
|
+
var _ShiftTaskModel = _interopRequireDefault(require("./ShiftTaskModel"));
|
|
53
|
+
|
|
54
|
+
var _SoftSortBeltModel = _interopRequireDefault(require("./SoftSortBeltModel"));
|
|
55
|
+
|
|
46
56
|
var _VarietyModel = _interopRequireDefault(require("./VarietyModel"));
|
|
47
57
|
|
|
48
58
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -57,6 +67,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
57
67
|
* @namespace Models.Packhouse.Site
|
|
58
68
|
*/
|
|
59
69
|
var Site = {
|
|
70
|
+
BinTipBinModel: _BinTipBinModel.default,
|
|
60
71
|
BinTipWeightModel: _BinTipWeightModel.default,
|
|
61
72
|
CompacSizerBatchModel: _CompacSizerBatchModel.default,
|
|
62
73
|
CompacSizerModel: _CompacSizerModel.default,
|
|
@@ -66,6 +77,7 @@ var Site = {
|
|
|
66
77
|
CompacSizerPackrunSummaryModel: _CompacSizerPackrunSummaryModel.default,
|
|
67
78
|
DowntimeEventModel: _DowntimeEventModel.default,
|
|
68
79
|
FreshPackPackrunSummaryModel: _FreshPackPackrunSummaryModel.default,
|
|
80
|
+
FreshQualityPackrunSummaryModel: _FreshQualityPackrunSummaryModel.default,
|
|
69
81
|
GrowingMethodModel: _GrowingMethodModel.default,
|
|
70
82
|
PackTypeModel: _PackTypeModel.default,
|
|
71
83
|
PackingLineModel: _PackingLineModel.default,
|
|
@@ -76,6 +88,9 @@ var Site = {
|
|
|
76
88
|
ShiftFocusMeetingModel: _ShiftFocusMeetingModel.default,
|
|
77
89
|
ShiftHourlyEntryModel: _ShiftHourlyEntryModel.default,
|
|
78
90
|
ShiftModel: _ShiftModel.default,
|
|
91
|
+
ShiftQualitySummaryModel: _ShiftQualitySummaryModel.default,
|
|
92
|
+
ShiftTaskModel: _ShiftTaskModel.default,
|
|
93
|
+
SoftSortBeltModel: _SoftSortBeltModel.default,
|
|
79
94
|
VarietyModel: _VarietyModel.default
|
|
80
95
|
};
|
|
81
96
|
var _default = Site;
|
package/lib/Models/RTUModel.js
CHANGED
|
@@ -61,7 +61,7 @@ var RTUModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
61
61
|
* @public
|
|
62
62
|
*/
|
|
63
63
|
|
|
64
|
-
_this.id =
|
|
64
|
+
_this.id = 0;
|
|
65
65
|
/**
|
|
66
66
|
* The Site this RTU belongs to
|
|
67
67
|
*
|
|
@@ -69,7 +69,7 @@ var RTUModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
69
69
|
* @public
|
|
70
70
|
*/
|
|
71
71
|
|
|
72
|
-
_this.siteId =
|
|
72
|
+
_this.siteId = 0;
|
|
73
73
|
/**
|
|
74
74
|
* The RTU Name
|
|
75
75
|
*
|
|
@@ -77,7 +77,7 @@ var RTUModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
77
77
|
* @public
|
|
78
78
|
*/
|
|
79
79
|
|
|
80
|
-
_this.name =
|
|
80
|
+
_this.name = "";
|
|
81
81
|
/**
|
|
82
82
|
* Whether the RTU is Enabled
|
|
83
83
|
*
|
|
@@ -85,7 +85,7 @@ var RTUModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
85
85
|
* @public
|
|
86
86
|
*/
|
|
87
87
|
|
|
88
|
-
_this.enabled =
|
|
88
|
+
_this.enabled = false;
|
|
89
89
|
/**
|
|
90
90
|
* Whether the RTU has been deleted
|
|
91
91
|
*
|
|
@@ -93,7 +93,7 @@ var RTUModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
93
93
|
* @public
|
|
94
94
|
*/
|
|
95
95
|
|
|
96
|
-
_this.deleted =
|
|
96
|
+
_this.deleted = false;
|
|
97
97
|
/**
|
|
98
98
|
* When the RTU was last updated
|
|
99
99
|
*
|
|
@@ -101,7 +101,7 @@ var RTUModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
101
101
|
* @public
|
|
102
102
|
*/
|
|
103
103
|
|
|
104
|
-
_this.updateTimestamp =
|
|
104
|
+
_this.updateTimestamp = new Date();
|
|
105
105
|
return _this;
|
|
106
106
|
}
|
|
107
107
|
/**
|
|
@@ -61,7 +61,7 @@ var RTUPluginModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
61
61
|
* @public
|
|
62
62
|
*/
|
|
63
63
|
|
|
64
|
-
_this.id =
|
|
64
|
+
_this.id = 0;
|
|
65
65
|
/**
|
|
66
66
|
* The Plugin Name
|
|
67
67
|
*
|
|
@@ -69,7 +69,7 @@ var RTUPluginModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
69
69
|
* @public
|
|
70
70
|
*/
|
|
71
71
|
|
|
72
|
-
_this.name =
|
|
72
|
+
_this.name = "";
|
|
73
73
|
/**
|
|
74
74
|
* The Company this RTU Plugin belongs to
|
|
75
75
|
*
|
|
@@ -77,7 +77,7 @@ var RTUPluginModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
77
77
|
* @public
|
|
78
78
|
*/
|
|
79
79
|
|
|
80
|
-
_this.companyId =
|
|
80
|
+
_this.companyId = "";
|
|
81
81
|
/**
|
|
82
82
|
* Whether the RTU Plugin has been deleted
|
|
83
83
|
*
|
|
@@ -85,7 +85,7 @@ var RTUPluginModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
85
85
|
* @public
|
|
86
86
|
*/
|
|
87
87
|
|
|
88
|
-
_this.deleted =
|
|
88
|
+
_this.deleted = false;
|
|
89
89
|
/**
|
|
90
90
|
* When the RTU Plugin was last updated
|
|
91
91
|
*
|
|
@@ -93,7 +93,7 @@ var RTUPluginModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
93
93
|
* @public
|
|
94
94
|
*/
|
|
95
95
|
|
|
96
|
-
_this.updateTimestamp =
|
|
96
|
+
_this.updateTimestamp = new Date();
|
|
97
97
|
return _this;
|
|
98
98
|
}
|
|
99
99
|
/**
|
|
@@ -62,7 +62,7 @@ var AlarmGroupModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
62
62
|
* @public
|
|
63
63
|
*/
|
|
64
64
|
|
|
65
|
-
_this.id =
|
|
65
|
+
_this.id = "";
|
|
66
66
|
/**
|
|
67
67
|
* The RTU this Alarm Group belongs to
|
|
68
68
|
*
|
|
@@ -70,7 +70,7 @@ var AlarmGroupModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
70
70
|
* @public
|
|
71
71
|
*/
|
|
72
72
|
|
|
73
|
-
_this.rtuId =
|
|
73
|
+
_this.rtuId = null;
|
|
74
74
|
/**
|
|
75
75
|
* The Alarm Group Name
|
|
76
76
|
*
|
|
@@ -78,7 +78,7 @@ var AlarmGroupModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
78
78
|
* @public
|
|
79
79
|
*/
|
|
80
80
|
|
|
81
|
-
_this.name =
|
|
81
|
+
_this.name = "";
|
|
82
82
|
/**
|
|
83
83
|
* The Boolean Point used to Reset this Alarm Group
|
|
84
84
|
*
|
|
@@ -86,7 +86,7 @@ var AlarmGroupModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
86
86
|
* @public
|
|
87
87
|
*/
|
|
88
88
|
|
|
89
|
-
_this.resetPoint =
|
|
89
|
+
_this.resetPoint = 0;
|
|
90
90
|
/**
|
|
91
91
|
* An Array of Points and the States to be Written when this Alarm Group is Reset
|
|
92
92
|
*
|
|
@@ -94,7 +94,7 @@ var AlarmGroupModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
94
94
|
* @public
|
|
95
95
|
*/
|
|
96
96
|
|
|
97
|
-
_this.externalResetPoints =
|
|
97
|
+
_this.externalResetPoints = [];
|
|
98
98
|
/**
|
|
99
99
|
* Whether the Alarm Group has been deleted
|
|
100
100
|
*
|
|
@@ -102,7 +102,7 @@ var AlarmGroupModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
102
102
|
* @public
|
|
103
103
|
*/
|
|
104
104
|
|
|
105
|
-
_this.deleted =
|
|
105
|
+
_this.deleted = false;
|
|
106
106
|
/**
|
|
107
107
|
* When the Alarm Group was last updated
|
|
108
108
|
*
|
|
@@ -110,7 +110,7 @@ var AlarmGroupModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
110
110
|
* @public
|
|
111
111
|
*/
|
|
112
112
|
|
|
113
|
-
_this.updateTimestamp =
|
|
113
|
+
_this.updateTimestamp = new Date();
|
|
114
114
|
/**
|
|
115
115
|
* The Site ID associated with this Alarm Group
|
|
116
116
|
*
|
|
@@ -62,7 +62,7 @@ var AlarmModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
62
62
|
* @public
|
|
63
63
|
*/
|
|
64
64
|
|
|
65
|
-
_this.id =
|
|
65
|
+
_this.id = "";
|
|
66
66
|
/**
|
|
67
67
|
* The RTU this Alarm belongs to
|
|
68
68
|
*
|
|
@@ -70,7 +70,7 @@ var AlarmModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
70
70
|
* @public
|
|
71
71
|
*/
|
|
72
72
|
|
|
73
|
-
_this.rtuId =
|
|
73
|
+
_this.rtuId = null;
|
|
74
74
|
/**
|
|
75
75
|
* The Alarm Group this Alarm is a part of
|
|
76
76
|
*
|
|
@@ -78,7 +78,7 @@ var AlarmModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
78
78
|
* @public
|
|
79
79
|
*/
|
|
80
80
|
|
|
81
|
-
_this.groupId =
|
|
81
|
+
_this.groupId = "";
|
|
82
82
|
/**
|
|
83
83
|
* The Alarm Name
|
|
84
84
|
*
|
|
@@ -86,7 +86,7 @@ var AlarmModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
86
86
|
* @public
|
|
87
87
|
*/
|
|
88
88
|
|
|
89
|
-
_this.name =
|
|
89
|
+
_this.name = "";
|
|
90
90
|
/**
|
|
91
91
|
* Whether the Alarm is Critical or not
|
|
92
92
|
*
|
|
@@ -94,7 +94,7 @@ var AlarmModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
94
94
|
* @public
|
|
95
95
|
*/
|
|
96
96
|
|
|
97
|
-
_this.critical =
|
|
97
|
+
_this.critical = false;
|
|
98
98
|
/**
|
|
99
99
|
* The Python Script with the Conditions to Trip this Alarm
|
|
100
100
|
*
|
|
@@ -102,7 +102,7 @@ var AlarmModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
102
102
|
* @public
|
|
103
103
|
*/
|
|
104
104
|
|
|
105
|
-
_this.tripScript =
|
|
105
|
+
_this.tripScript = "";
|
|
106
106
|
/**
|
|
107
107
|
* The Python Script with the Conditions to Reset this Alarm
|
|
108
108
|
*
|
|
@@ -110,7 +110,7 @@ var AlarmModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
110
110
|
* @public
|
|
111
111
|
*/
|
|
112
112
|
|
|
113
|
-
_this.resetScript =
|
|
113
|
+
_this.resetScript = null;
|
|
114
114
|
/**
|
|
115
115
|
* The Delay before this Alarm will Trip in Milliseconds
|
|
116
116
|
*
|
|
@@ -118,7 +118,7 @@ var AlarmModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
118
118
|
* @public
|
|
119
119
|
*/
|
|
120
120
|
|
|
121
|
-
_this.tripDelay =
|
|
121
|
+
_this.tripDelay = 0;
|
|
122
122
|
/**
|
|
123
123
|
* The Delay before this Alarm will Reset in Milliseconds
|
|
124
124
|
*
|
|
@@ -126,7 +126,7 @@ var AlarmModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
126
126
|
* @public
|
|
127
127
|
*/
|
|
128
128
|
|
|
129
|
-
_this.resetDelay =
|
|
129
|
+
_this.resetDelay = 0;
|
|
130
130
|
/**
|
|
131
131
|
* Whether the Alarm should Automatically Reset
|
|
132
132
|
*
|
|
@@ -134,7 +134,7 @@ var AlarmModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
134
134
|
* @public
|
|
135
135
|
*/
|
|
136
136
|
|
|
137
|
-
_this.autoReset =
|
|
137
|
+
_this.autoReset = false;
|
|
138
138
|
/**
|
|
139
139
|
* The Delay before this Alarm should Auto Reset in Milliseconds
|
|
140
140
|
*
|
|
@@ -142,7 +142,7 @@ var AlarmModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
142
142
|
* @public
|
|
143
143
|
*/
|
|
144
144
|
|
|
145
|
-
_this.autoResetDelay =
|
|
145
|
+
_this.autoResetDelay = 0;
|
|
146
146
|
/**
|
|
147
147
|
* The Point used to store the Alarm Tripped State
|
|
148
148
|
*
|
|
@@ -150,7 +150,7 @@ var AlarmModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
150
150
|
* @public
|
|
151
151
|
*/
|
|
152
152
|
|
|
153
|
-
_this.trippedStatePoint =
|
|
153
|
+
_this.trippedStatePoint = 0;
|
|
154
154
|
/**
|
|
155
155
|
* The Point used to store the Alarm Tripped Timestamp
|
|
156
156
|
*
|
|
@@ -158,7 +158,7 @@ var AlarmModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
158
158
|
* @public
|
|
159
159
|
*/
|
|
160
160
|
|
|
161
|
-
_this.trippedTimestampPoint =
|
|
161
|
+
_this.trippedTimestampPoint = 0;
|
|
162
162
|
/**
|
|
163
163
|
* The Point used to store the Alarm's Internal Trip Start
|
|
164
164
|
*
|
|
@@ -166,7 +166,7 @@ var AlarmModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
166
166
|
* @public
|
|
167
167
|
*/
|
|
168
168
|
|
|
169
|
-
_this.internalTripStartPoint =
|
|
169
|
+
_this.internalTripStartPoint = 0;
|
|
170
170
|
/**
|
|
171
171
|
* The Point used to store the Alarm's Internal Reset Start
|
|
172
172
|
*
|
|
@@ -174,7 +174,7 @@ var AlarmModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
174
174
|
* @public
|
|
175
175
|
*/
|
|
176
176
|
|
|
177
|
-
_this.internalResetStartPoint =
|
|
177
|
+
_this.internalResetStartPoint = 0;
|
|
178
178
|
/**
|
|
179
179
|
* Whether the Alarm has been deleted
|
|
180
180
|
*
|
|
@@ -182,7 +182,7 @@ var AlarmModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
182
182
|
* @public
|
|
183
183
|
*/
|
|
184
184
|
|
|
185
|
-
_this.deleted =
|
|
185
|
+
_this.deleted = false;
|
|
186
186
|
/**
|
|
187
187
|
* When the Alarm was last updated
|
|
188
188
|
*
|
|
@@ -190,7 +190,7 @@ var AlarmModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
190
190
|
* @public
|
|
191
191
|
*/
|
|
192
192
|
|
|
193
|
-
_this.updateTimestamp =
|
|
193
|
+
_this.updateTimestamp = new Date();
|
|
194
194
|
/**
|
|
195
195
|
* The Site ID associated with this Alarm
|
|
196
196
|
*
|
|
@@ -62,7 +62,7 @@ var DefinitionModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
62
62
|
* @public
|
|
63
63
|
*/
|
|
64
64
|
|
|
65
|
-
_this.id =
|
|
65
|
+
_this.id = "";
|
|
66
66
|
/**
|
|
67
67
|
* The Definition Key Index
|
|
68
68
|
*
|
|
@@ -70,7 +70,7 @@ var DefinitionModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
70
70
|
* @public
|
|
71
71
|
*/
|
|
72
72
|
|
|
73
|
-
_this.keyIndex =
|
|
73
|
+
_this.keyIndex = "";
|
|
74
74
|
/**
|
|
75
75
|
* The Definition Type
|
|
76
76
|
*
|
|
@@ -78,7 +78,7 @@ var DefinitionModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
78
78
|
* @public
|
|
79
79
|
*/
|
|
80
80
|
|
|
81
|
-
_this.type =
|
|
81
|
+
_this.type = "";
|
|
82
82
|
/**
|
|
83
83
|
* The Definition Data
|
|
84
84
|
*
|
|
@@ -86,7 +86,7 @@ var DefinitionModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
86
86
|
* @public
|
|
87
87
|
*/
|
|
88
88
|
|
|
89
|
-
_this.data =
|
|
89
|
+
_this.data = {};
|
|
90
90
|
/**
|
|
91
91
|
* Whether the Definition has been deleted
|
|
92
92
|
*
|
|
@@ -94,7 +94,7 @@ var DefinitionModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
94
94
|
* @public
|
|
95
95
|
*/
|
|
96
96
|
|
|
97
|
-
_this.deleted =
|
|
97
|
+
_this.deleted = false;
|
|
98
98
|
/**
|
|
99
99
|
* When the Definition was last updated
|
|
100
100
|
*
|
|
@@ -102,7 +102,7 @@ var DefinitionModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
102
102
|
* @public
|
|
103
103
|
*/
|
|
104
104
|
|
|
105
|
-
_this.updateTimestamp =
|
|
105
|
+
_this.updateTimestamp = new Date();
|
|
106
106
|
/**
|
|
107
107
|
* The Site ID associated with this Definition
|
|
108
108
|
*
|
|
@@ -62,7 +62,7 @@ var PermanentObjectDataModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
62
62
|
* @public
|
|
63
63
|
*/
|
|
64
64
|
|
|
65
|
-
_this.id =
|
|
65
|
+
_this.id = "";
|
|
66
66
|
/**
|
|
67
67
|
* An Optional Key Index for this Data
|
|
68
68
|
*
|
|
@@ -70,7 +70,7 @@ var PermanentObjectDataModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
70
70
|
* @public
|
|
71
71
|
*/
|
|
72
72
|
|
|
73
|
-
_this.keyIndex =
|
|
73
|
+
_this.keyIndex = "";
|
|
74
74
|
/**
|
|
75
75
|
* The Permanent Object this Data is related to
|
|
76
76
|
*
|
|
@@ -78,7 +78,7 @@ var PermanentObjectDataModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
78
78
|
* @public
|
|
79
79
|
*/
|
|
80
80
|
|
|
81
|
-
_this.permanentObjectId =
|
|
81
|
+
_this.permanentObjectId = "";
|
|
82
82
|
/**
|
|
83
83
|
* The Permanent Object Data Type
|
|
84
84
|
*
|
|
@@ -86,7 +86,7 @@ var PermanentObjectDataModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
86
86
|
* @public
|
|
87
87
|
*/
|
|
88
88
|
|
|
89
|
-
_this.type =
|
|
89
|
+
_this.type = "";
|
|
90
90
|
/**
|
|
91
91
|
* The Timestamp when this Data was Created
|
|
92
92
|
*
|
|
@@ -94,7 +94,7 @@ var PermanentObjectDataModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
94
94
|
* @public
|
|
95
95
|
*/
|
|
96
96
|
|
|
97
|
-
_this.timestamp =
|
|
97
|
+
_this.timestamp = new Date();
|
|
98
98
|
/**
|
|
99
99
|
* The Data Object specific to this Permanent Object Data Type
|
|
100
100
|
*
|
|
@@ -102,7 +102,7 @@ var PermanentObjectDataModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
102
102
|
* @public
|
|
103
103
|
*/
|
|
104
104
|
|
|
105
|
-
_this.data =
|
|
105
|
+
_this.data = {};
|
|
106
106
|
/**
|
|
107
107
|
* Whether the Permanent Object Data has been deleted
|
|
108
108
|
*
|
|
@@ -110,7 +110,7 @@ var PermanentObjectDataModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
110
110
|
* @public
|
|
111
111
|
*/
|
|
112
112
|
|
|
113
|
-
_this.deleted =
|
|
113
|
+
_this.deleted = false;
|
|
114
114
|
/**
|
|
115
115
|
* When the Permanent Object Data was last updated
|
|
116
116
|
*
|
|
@@ -118,7 +118,7 @@ var PermanentObjectDataModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
118
118
|
* @public
|
|
119
119
|
*/
|
|
120
120
|
|
|
121
|
-
_this.updateTimestamp =
|
|
121
|
+
_this.updateTimestamp = new Date();
|
|
122
122
|
/**
|
|
123
123
|
* The Site ID associated with this Permanent Object Data
|
|
124
124
|
*
|
|
@@ -62,7 +62,7 @@ var PermanentObjectModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
62
62
|
* @public
|
|
63
63
|
*/
|
|
64
64
|
|
|
65
|
-
_this.id =
|
|
65
|
+
_this.id = "";
|
|
66
66
|
/**
|
|
67
67
|
* The RTU this Permanent Object belongs to
|
|
68
68
|
*
|
|
@@ -70,7 +70,7 @@ var PermanentObjectModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
70
70
|
* @public
|
|
71
71
|
*/
|
|
72
72
|
|
|
73
|
-
_this.rtuId =
|
|
73
|
+
_this.rtuId = null;
|
|
74
74
|
/**
|
|
75
75
|
* The Permanent Object Key Index
|
|
76
76
|
*
|
|
@@ -78,7 +78,7 @@ var PermanentObjectModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
78
78
|
* @public
|
|
79
79
|
*/
|
|
80
80
|
|
|
81
|
-
_this.keyIndex =
|
|
81
|
+
_this.keyIndex = "";
|
|
82
82
|
/**
|
|
83
83
|
* The Permanent Object Type
|
|
84
84
|
*
|
|
@@ -86,7 +86,7 @@ var PermanentObjectModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
86
86
|
* @public
|
|
87
87
|
*/
|
|
88
88
|
|
|
89
|
-
_this.type =
|
|
89
|
+
_this.type = "";
|
|
90
90
|
/**
|
|
91
91
|
* The Permanent Object Definition
|
|
92
92
|
*
|
|
@@ -94,7 +94,7 @@ var PermanentObjectModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
94
94
|
* @public
|
|
95
95
|
*/
|
|
96
96
|
|
|
97
|
-
_this.definition =
|
|
97
|
+
_this.definition = {};
|
|
98
98
|
/**
|
|
99
99
|
* Whether the Permanent Object has been deleted
|
|
100
100
|
*
|
|
@@ -102,7 +102,7 @@ var PermanentObjectModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
102
102
|
* @public
|
|
103
103
|
*/
|
|
104
104
|
|
|
105
|
-
_this.deleted =
|
|
105
|
+
_this.deleted = false;
|
|
106
106
|
/**
|
|
107
107
|
* When the Permanent Object was last updated
|
|
108
108
|
*
|
|
@@ -110,7 +110,7 @@ var PermanentObjectModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
110
110
|
* @public
|
|
111
111
|
*/
|
|
112
112
|
|
|
113
|
-
_this.updateTimestamp =
|
|
113
|
+
_this.updateTimestamp = new Date();
|
|
114
114
|
/**
|
|
115
115
|
* The Site ID associated with this Permanent Object
|
|
116
116
|
*
|
|
@@ -62,7 +62,7 @@ var PointModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
62
62
|
* @public
|
|
63
63
|
*/
|
|
64
64
|
|
|
65
|
-
_this.id =
|
|
65
|
+
_this.id = 0;
|
|
66
66
|
/**
|
|
67
67
|
* The RTU this Point belongs to
|
|
68
68
|
*
|
|
@@ -70,7 +70,7 @@ var PointModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
70
70
|
* @public
|
|
71
71
|
*/
|
|
72
72
|
|
|
73
|
-
_this.rtuId =
|
|
73
|
+
_this.rtuId = null;
|
|
74
74
|
/**
|
|
75
75
|
* The Plugin ID
|
|
76
76
|
*
|
|
@@ -78,7 +78,7 @@ var PointModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
78
78
|
* @public
|
|
79
79
|
*/
|
|
80
80
|
|
|
81
|
-
_this.pluginId =
|
|
81
|
+
_this.pluginId = null;
|
|
82
82
|
/**
|
|
83
83
|
* The Point Name
|
|
84
84
|
*
|
|
@@ -86,7 +86,7 @@ var PointModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
86
86
|
* @public
|
|
87
87
|
*/
|
|
88
88
|
|
|
89
|
-
_this.name =
|
|
89
|
+
_this.name = "";
|
|
90
90
|
/**
|
|
91
91
|
* The Point Type
|
|
92
92
|
*
|
|
@@ -94,7 +94,7 @@ var PointModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
94
94
|
* @public
|
|
95
95
|
*/
|
|
96
96
|
|
|
97
|
-
_this.type =
|
|
97
|
+
_this.type = "";
|
|
98
98
|
/**
|
|
99
99
|
* The Point's Value Type
|
|
100
100
|
*
|
|
@@ -102,7 +102,7 @@ var PointModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
102
102
|
* @public
|
|
103
103
|
*/
|
|
104
104
|
|
|
105
|
-
_this.valueType =
|
|
105
|
+
_this.valueType = "";
|
|
106
106
|
/**
|
|
107
107
|
* The Permissions
|
|
108
108
|
*
|
|
@@ -110,7 +110,7 @@ var PointModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
110
110
|
* @public
|
|
111
111
|
*/
|
|
112
112
|
|
|
113
|
-
_this.permissions =
|
|
113
|
+
_this.permissions = "";
|
|
114
114
|
/**
|
|
115
115
|
* Whether the Point is Enabled
|
|
116
116
|
*
|
|
@@ -118,7 +118,7 @@ var PointModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
118
118
|
* @public
|
|
119
119
|
*/
|
|
120
120
|
|
|
121
|
-
_this.enabled =
|
|
121
|
+
_this.enabled = false;
|
|
122
122
|
/**
|
|
123
123
|
* The Point Settings
|
|
124
124
|
*
|
|
@@ -126,7 +126,7 @@ var PointModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
126
126
|
* @public
|
|
127
127
|
*/
|
|
128
128
|
|
|
129
|
-
_this.settings =
|
|
129
|
+
_this.settings = {};
|
|
130
130
|
/**
|
|
131
131
|
* Whether the Point has been deleted
|
|
132
132
|
*
|
|
@@ -134,7 +134,7 @@ var PointModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
134
134
|
* @public
|
|
135
135
|
*/
|
|
136
136
|
|
|
137
|
-
_this.deleted =
|
|
137
|
+
_this.deleted = false;
|
|
138
138
|
/**
|
|
139
139
|
* When the Point was last updated
|
|
140
140
|
*
|
|
@@ -142,7 +142,7 @@ var PointModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
142
142
|
* @public
|
|
143
143
|
*/
|
|
144
144
|
|
|
145
|
-
_this.updateTimestamp =
|
|
145
|
+
_this.updateTimestamp = new Date();
|
|
146
146
|
/**
|
|
147
147
|
* The Site ID associated with this Point
|
|
148
148
|
*
|
|
@@ -62,7 +62,7 @@ var TemporaryObjectModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
62
62
|
* @public
|
|
63
63
|
*/
|
|
64
64
|
|
|
65
|
-
_this.id =
|
|
65
|
+
_this.id = "";
|
|
66
66
|
/**
|
|
67
67
|
* The Temporary Object Key Index
|
|
68
68
|
*
|
|
@@ -70,7 +70,7 @@ var TemporaryObjectModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
70
70
|
* @public
|
|
71
71
|
*/
|
|
72
72
|
|
|
73
|
-
_this.keyIndex =
|
|
73
|
+
_this.keyIndex = "";
|
|
74
74
|
/**
|
|
75
75
|
* The Temporary Object Type
|
|
76
76
|
*
|
|
@@ -78,7 +78,7 @@ var TemporaryObjectModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
78
78
|
* @public
|
|
79
79
|
*/
|
|
80
80
|
|
|
81
|
-
_this.type =
|
|
81
|
+
_this.type = "";
|
|
82
82
|
/**
|
|
83
83
|
* The Temporary Object Definition
|
|
84
84
|
*
|
|
@@ -86,7 +86,7 @@ var TemporaryObjectModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
86
86
|
* @public
|
|
87
87
|
*/
|
|
88
88
|
|
|
89
|
-
_this.definition =
|
|
89
|
+
_this.definition = {};
|
|
90
90
|
/**
|
|
91
91
|
* Whether the Temporary Object has been deleted
|
|
92
92
|
*
|
|
@@ -94,7 +94,7 @@ var TemporaryObjectModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
94
94
|
* @public
|
|
95
95
|
*/
|
|
96
96
|
|
|
97
|
-
_this.deleted =
|
|
97
|
+
_this.deleted = false;
|
|
98
98
|
/**
|
|
99
99
|
* When the Temporary Object was last updated
|
|
100
100
|
*
|
|
@@ -102,7 +102,7 @@ var TemporaryObjectModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
102
102
|
* @public
|
|
103
103
|
*/
|
|
104
104
|
|
|
105
|
-
_this.updateTimestamp =
|
|
105
|
+
_this.updateTimestamp = new Date();
|
|
106
106
|
/**
|
|
107
107
|
* The Site ID associated with this Temporary Object
|
|
108
108
|
*
|