@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.
Files changed (123) hide show
  1. package/README.md +5 -7
  2. package/dist/ricado.api.client.js +1 -1
  3. package/lib/Controllers/Packhouse/Site/BinTipBinController.js +622 -0
  4. package/lib/Controllers/Packhouse/Site/CompacSizerController.js +3 -3
  5. package/lib/Controllers/Packhouse/Site/FreshQualityPackrunSummaryController.js +657 -0
  6. package/lib/Controllers/Packhouse/Site/PackingLineController.js +25 -1
  7. package/lib/Controllers/Packhouse/Site/PackrunController.js +42 -0
  8. package/lib/Controllers/Packhouse/Site/RejectBinScaleController.js +24 -2
  9. package/lib/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +15 -0
  10. package/lib/Controllers/Packhouse/Site/ShiftQualitySummaryController.js +661 -0
  11. package/lib/Controllers/Packhouse/Site/ShiftTaskController.js +628 -0
  12. package/lib/Controllers/Packhouse/Site/SoftSortBeltController.js +453 -0
  13. package/lib/Controllers/Packhouse/Site/index.js +15 -0
  14. package/lib/DataItems/PointValueItem.js +3 -3
  15. package/lib/Models/AccountPolicyModel.js +7 -7
  16. package/lib/Models/ApiAccountModel.js +7 -7
  17. package/lib/Models/CompanyModel.js +5 -5
  18. package/lib/Models/FirebaseTokenModel.js +8 -8
  19. package/lib/Models/Packhouse/Site/BinTipBinModel.js +367 -0
  20. package/lib/Models/Packhouse/Site/BinTipWeightModel.js +9 -9
  21. package/lib/Models/Packhouse/Site/CompacSizerBatchModel.js +8 -8
  22. package/lib/Models/Packhouse/Site/CompacSizerModel.js +15 -15
  23. package/lib/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +10 -10
  24. package/lib/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +8 -8
  25. package/lib/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +6 -6
  26. package/lib/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +12 -12
  27. package/lib/Models/Packhouse/Site/DowntimeEventModel.js +14 -14
  28. package/lib/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +8 -8
  29. package/lib/Models/Packhouse/Site/FreshQualityPackrunSummaryModel.js +481 -0
  30. package/lib/Models/Packhouse/Site/GrowingMethodModel.js +6 -6
  31. package/lib/Models/Packhouse/Site/PackTypeModel.js +8 -8
  32. package/lib/Models/Packhouse/Site/PackingLineModel.js +539 -16
  33. package/lib/Models/Packhouse/Site/PackrunModel.js +81 -15
  34. package/lib/Models/Packhouse/Site/RejectBinModel.js +9 -9
  35. package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +271 -15
  36. package/lib/Models/Packhouse/Site/RejectBinWeightModel.js +10 -10
  37. package/lib/Models/Packhouse/Site/ShiftFocusMeetingModel.js +12 -12
  38. package/lib/Models/Packhouse/Site/ShiftHourlyEntryModel.js +204 -38
  39. package/lib/Models/Packhouse/Site/ShiftModel.js +26 -19
  40. package/lib/Models/Packhouse/Site/ShiftQualitySummaryModel.js +599 -0
  41. package/lib/Models/Packhouse/Site/ShiftTaskModel.js +373 -0
  42. package/lib/Models/Packhouse/Site/SoftSortBeltModel.js +235 -0
  43. package/lib/Models/Packhouse/Site/VarietyModel.js +8 -8
  44. package/lib/Models/Packhouse/Site/index.js +15 -0
  45. package/lib/Models/RTUModel.js +6 -6
  46. package/lib/Models/RTUPluginModel.js +5 -5
  47. package/lib/Models/Site/AlarmGroupModel.js +7 -7
  48. package/lib/Models/Site/AlarmModel.js +17 -17
  49. package/lib/Models/Site/DefinitionModel.js +6 -6
  50. package/lib/Models/Site/PermanentObjectDataModel.js +8 -8
  51. package/lib/Models/Site/PermanentObjectModel.js +7 -7
  52. package/lib/Models/Site/PointModel.js +11 -11
  53. package/lib/Models/Site/TemporaryObjectModel.js +6 -6
  54. package/lib/Models/SiteModel.js +6 -6
  55. package/lib/Models/TokenModel.js +10 -10
  56. package/lib/Models/UserAccountActionTokenModel.js +11 -11
  57. package/lib/Models/UserAccountModel.js +10 -10
  58. package/lib/PackageVersion.js +1 -1
  59. package/lib/Points.js +22 -12
  60. package/lib/WebSocketHelper.js +29 -13
  61. package/lib/index.d.ts +3853 -1290
  62. package/lib/index.js +3 -3
  63. package/package.json +1 -1
  64. package/src/Controllers/Packhouse/Site/BinTipBinController.js +665 -0
  65. package/src/Controllers/Packhouse/Site/CompacSizerController.js +3 -3
  66. package/src/Controllers/Packhouse/Site/FreshQualityPackrunSummaryController.js +700 -0
  67. package/src/Controllers/Packhouse/Site/PackingLineController.js +25 -1
  68. package/src/Controllers/Packhouse/Site/PackrunController.js +52 -0
  69. package/src/Controllers/Packhouse/Site/RejectBinScaleController.js +24 -2
  70. package/src/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +15 -0
  71. package/src/Controllers/Packhouse/Site/ShiftQualitySummaryController.js +704 -0
  72. package/src/Controllers/Packhouse/Site/ShiftTaskController.js +671 -0
  73. package/src/Controllers/Packhouse/Site/SoftSortBeltController.js +474 -0
  74. package/src/Controllers/Packhouse/Site/index.js +10 -0
  75. package/src/DataItems/PointValueItem.js +3 -3
  76. package/src/Models/AccountPolicyModel.js +7 -7
  77. package/src/Models/ApiAccountModel.js +7 -7
  78. package/src/Models/CompanyModel.js +5 -5
  79. package/src/Models/FirebaseTokenModel.js +8 -8
  80. package/src/Models/Packhouse/Site/BinTipBinModel.js +365 -0
  81. package/src/Models/Packhouse/Site/BinTipWeightModel.js +9 -9
  82. package/src/Models/Packhouse/Site/CompacSizerBatchModel.js +8 -8
  83. package/src/Models/Packhouse/Site/CompacSizerModel.js +15 -15
  84. package/src/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +10 -10
  85. package/src/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +8 -8
  86. package/src/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +6 -6
  87. package/src/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +12 -12
  88. package/src/Models/Packhouse/Site/DowntimeEventModel.js +14 -14
  89. package/src/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +8 -8
  90. package/src/Models/Packhouse/Site/FreshQualityPackrunSummaryModel.js +523 -0
  91. package/src/Models/Packhouse/Site/GrowingMethodModel.js +6 -6
  92. package/src/Models/Packhouse/Site/PackTypeModel.js +8 -8
  93. package/src/Models/Packhouse/Site/PackingLineModel.js +720 -16
  94. package/src/Models/Packhouse/Site/PackrunModel.js +90 -15
  95. package/src/Models/Packhouse/Site/RejectBinModel.js +9 -9
  96. package/src/Models/Packhouse/Site/RejectBinScaleModel.js +308 -15
  97. package/src/Models/Packhouse/Site/RejectBinWeightModel.js +10 -10
  98. package/src/Models/Packhouse/Site/ShiftFocusMeetingModel.js +12 -12
  99. package/src/Models/Packhouse/Site/ShiftHourlyEntryModel.js +229 -38
  100. package/src/Models/Packhouse/Site/ShiftModel.js +29 -19
  101. package/src/Models/Packhouse/Site/ShiftQualitySummaryModel.js +664 -0
  102. package/src/Models/Packhouse/Site/ShiftTaskModel.js +369 -0
  103. package/src/Models/Packhouse/Site/SoftSortBeltModel.js +215 -0
  104. package/src/Models/Packhouse/Site/VarietyModel.js +8 -8
  105. package/src/Models/Packhouse/Site/index.js +10 -0
  106. package/src/Models/RTUModel.js +6 -6
  107. package/src/Models/RTUPluginModel.js +5 -5
  108. package/src/Models/Site/AlarmGroupModel.js +7 -7
  109. package/src/Models/Site/AlarmModel.js +17 -17
  110. package/src/Models/Site/DefinitionModel.js +6 -6
  111. package/src/Models/Site/PermanentObjectDataModel.js +8 -8
  112. package/src/Models/Site/PermanentObjectModel.js +7 -7
  113. package/src/Models/Site/PointModel.js +11 -11
  114. package/src/Models/Site/TemporaryObjectModel.js +6 -6
  115. package/src/Models/SiteModel.js +6 -6
  116. package/src/Models/TokenModel.js +10 -10
  117. package/src/Models/UserAccountActionTokenModel.js +11 -11
  118. package/src/Models/UserAccountModel.js +10 -10
  119. package/src/PackageVersion.js +1 -1
  120. package/src/Points.js +24 -12
  121. package/src/WebSocketHelper.js +34 -13
  122. package/src/index.js +3 -3
  123. 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;
@@ -61,7 +61,7 @@ var RTUModel = /*#__PURE__*/function (_BaseModel) {
61
61
  * @public
62
62
  */
63
63
 
64
- _this.id = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
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 = undefined;
105
+ _this.updateTimestamp = new Date();
106
106
  /**
107
107
  * The Site ID associated with this Temporary Object
108
108
  *