@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
|
@@ -62,7 +62,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
62
62
|
* @public
|
|
63
63
|
*/
|
|
64
64
|
|
|
65
|
-
_this.id =
|
|
65
|
+
_this.id = "";
|
|
66
66
|
/**
|
|
67
67
|
* The Packing Line ID this Shift is associated with
|
|
68
68
|
*
|
|
@@ -70,7 +70,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
70
70
|
* @public
|
|
71
71
|
*/
|
|
72
72
|
|
|
73
|
-
_this.packingLineId =
|
|
73
|
+
_this.packingLineId = "";
|
|
74
74
|
/**
|
|
75
75
|
* When this Shift was Created
|
|
76
76
|
*
|
|
@@ -78,7 +78,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
78
78
|
* @public
|
|
79
79
|
*/
|
|
80
80
|
|
|
81
|
-
_this.createdTimestamp =
|
|
81
|
+
_this.createdTimestamp = new Date();
|
|
82
82
|
/**
|
|
83
83
|
* The Type of Shift
|
|
84
84
|
*
|
|
@@ -86,7 +86,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
86
86
|
* @public
|
|
87
87
|
*/
|
|
88
88
|
|
|
89
|
-
_this.type =
|
|
89
|
+
_this.type = "";
|
|
90
90
|
/**
|
|
91
91
|
* The Name of the Line Manager for this Shift
|
|
92
92
|
*
|
|
@@ -94,7 +94,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
94
94
|
* @public
|
|
95
95
|
*/
|
|
96
96
|
|
|
97
|
-
_this.lineManagerName =
|
|
97
|
+
_this.lineManagerName = null;
|
|
98
98
|
/**
|
|
99
99
|
* The Target Number of Bins to Tip for this Shift
|
|
100
100
|
*
|
|
@@ -102,7 +102,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
102
102
|
* @public
|
|
103
103
|
*/
|
|
104
104
|
|
|
105
|
-
_this.binsTippedTarget =
|
|
105
|
+
_this.binsTippedTarget = null;
|
|
106
106
|
/**
|
|
107
107
|
* *DEPRECATED* The Initial Number of People working in all Areas except Class 2 for this Hour
|
|
108
108
|
*
|
|
@@ -110,7 +110,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
110
110
|
* @public
|
|
111
111
|
*/
|
|
112
112
|
|
|
113
|
-
_this.initialClass1Manning =
|
|
113
|
+
_this.initialClass1Manning = null;
|
|
114
114
|
/**
|
|
115
115
|
* *DEPRECATED* The Initial Number of People working in the Class 2 Area for this Hour
|
|
116
116
|
*
|
|
@@ -118,7 +118,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
118
118
|
* @public
|
|
119
119
|
*/
|
|
120
120
|
|
|
121
|
-
_this.initialClass2Manning =
|
|
121
|
+
_this.initialClass2Manning = null;
|
|
122
122
|
/**
|
|
123
123
|
* When this Shift was Ready for Packing
|
|
124
124
|
*
|
|
@@ -126,7 +126,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
126
126
|
* @public
|
|
127
127
|
*/
|
|
128
128
|
|
|
129
|
-
_this.readyTimestamp =
|
|
129
|
+
_this.readyTimestamp = null;
|
|
130
130
|
/**
|
|
131
131
|
* When this Shift was Started
|
|
132
132
|
*
|
|
@@ -134,7 +134,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
134
134
|
* @public
|
|
135
135
|
*/
|
|
136
136
|
|
|
137
|
-
_this.startTimestamp =
|
|
137
|
+
_this.startTimestamp = null;
|
|
138
138
|
/**
|
|
139
139
|
* When this Shift was Finished
|
|
140
140
|
*
|
|
@@ -142,7 +142,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
142
142
|
* @public
|
|
143
143
|
*/
|
|
144
144
|
|
|
145
|
-
_this.finishTimestamp =
|
|
145
|
+
_this.finishTimestamp = null;
|
|
146
146
|
/**
|
|
147
147
|
* When this Shift was Published
|
|
148
148
|
*
|
|
@@ -150,7 +150,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
150
150
|
* @public
|
|
151
151
|
*/
|
|
152
152
|
|
|
153
|
-
_this.publishTimestamp =
|
|
153
|
+
_this.publishTimestamp = null;
|
|
154
154
|
/**
|
|
155
155
|
* An Optional Rating between 1 and 10 on how Satisfied the Line Manager was with this Shift
|
|
156
156
|
*
|
|
@@ -158,7 +158,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
158
158
|
* @public
|
|
159
159
|
*/
|
|
160
160
|
|
|
161
|
-
_this.satisfactionRating =
|
|
161
|
+
_this.satisfactionRating = null;
|
|
162
162
|
/**
|
|
163
163
|
* *DEPRECATED* An Optional Array of Handover Notes for this Shift
|
|
164
164
|
*
|
|
@@ -166,7 +166,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
166
166
|
* @public
|
|
167
167
|
*/
|
|
168
168
|
|
|
169
|
-
_this.handoverNotes =
|
|
169
|
+
_this.handoverNotes = [];
|
|
170
170
|
/**
|
|
171
171
|
* An Optional Array of Notes for this Shift
|
|
172
172
|
*
|
|
@@ -174,7 +174,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
174
174
|
* @public
|
|
175
175
|
*/
|
|
176
176
|
|
|
177
|
-
_this.areaNotes =
|
|
177
|
+
_this.areaNotes = [];
|
|
178
178
|
/**
|
|
179
179
|
* The Schedule for this Shift
|
|
180
180
|
*
|
|
@@ -182,7 +182,13 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
182
182
|
* @public
|
|
183
183
|
*/
|
|
184
184
|
|
|
185
|
-
_this.schedule =
|
|
185
|
+
_this.schedule = function () {
|
|
186
|
+
var scheduleDefaultValue = {};
|
|
187
|
+
scheduleDefaultValue.startTime = "";
|
|
188
|
+
scheduleDefaultValue.endTime = "";
|
|
189
|
+
scheduleDefaultValue.breaks = [];
|
|
190
|
+
return scheduleDefaultValue;
|
|
191
|
+
}();
|
|
186
192
|
/**
|
|
187
193
|
* The Status of this Shift
|
|
188
194
|
*
|
|
@@ -190,7 +196,8 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
190
196
|
* @public
|
|
191
197
|
*/
|
|
192
198
|
|
|
193
|
-
|
|
199
|
+
|
|
200
|
+
_this.status = "";
|
|
194
201
|
/**
|
|
195
202
|
* Whether the Shift has been deleted
|
|
196
203
|
*
|
|
@@ -198,7 +205,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
198
205
|
* @public
|
|
199
206
|
*/
|
|
200
207
|
|
|
201
|
-
_this.deleted =
|
|
208
|
+
_this.deleted = false;
|
|
202
209
|
/**
|
|
203
210
|
* When the Shift was last updated
|
|
204
211
|
*
|
|
@@ -206,7 +213,7 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
206
213
|
* @public
|
|
207
214
|
*/
|
|
208
215
|
|
|
209
|
-
_this.updateTimestamp =
|
|
216
|
+
_this.updateTimestamp = new Date();
|
|
210
217
|
/**
|
|
211
218
|
* The Site ID associated with this Shift
|
|
212
219
|
*
|
|
@@ -62,7 +62,7 @@ var ShiftQualitySummaryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
62
62
|
* @public
|
|
63
63
|
*/
|
|
64
64
|
|
|
65
|
-
_this.id =
|
|
65
|
+
_this.id = "";
|
|
66
66
|
/**
|
|
67
67
|
* The Packing Line ID this Quality Summary is associated with
|
|
68
68
|
*
|
|
@@ -70,7 +70,7 @@ var ShiftQualitySummaryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
70
70
|
* @public
|
|
71
71
|
*/
|
|
72
72
|
|
|
73
|
-
_this.packingLineId =
|
|
73
|
+
_this.packingLineId = "";
|
|
74
74
|
/**
|
|
75
75
|
* The Shift ID this Quality Summary is asssociated with
|
|
76
76
|
*
|
|
@@ -78,7 +78,7 @@ var ShiftQualitySummaryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
78
78
|
* @public
|
|
79
79
|
*/
|
|
80
80
|
|
|
81
|
-
_this.shiftId =
|
|
81
|
+
_this.shiftId = "";
|
|
82
82
|
/**
|
|
83
83
|
* When this Quality Summary was Created
|
|
84
84
|
*
|
|
@@ -86,7 +86,7 @@ var ShiftQualitySummaryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
86
86
|
* @public
|
|
87
87
|
*/
|
|
88
88
|
|
|
89
|
-
_this.createdTimestamp =
|
|
89
|
+
_this.createdTimestamp = new Date();
|
|
90
90
|
/**
|
|
91
91
|
* When this Quality Summary was Published
|
|
92
92
|
*
|
|
@@ -94,7 +94,7 @@ var ShiftQualitySummaryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
94
94
|
* @public
|
|
95
95
|
*/
|
|
96
96
|
|
|
97
|
-
_this.publishTimestamp =
|
|
97
|
+
_this.publishTimestamp = null;
|
|
98
98
|
/**
|
|
99
99
|
* The User ID of the Quality Manager for this Summary
|
|
100
100
|
*
|
|
@@ -102,7 +102,7 @@ var ShiftQualitySummaryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
102
102
|
* @public
|
|
103
103
|
*/
|
|
104
104
|
|
|
105
|
-
_this.qualityManagerUserId =
|
|
105
|
+
_this.qualityManagerUserId = null;
|
|
106
106
|
/**
|
|
107
107
|
* The Name of the Quality Manager for this Summary
|
|
108
108
|
*
|
|
@@ -110,7 +110,7 @@ var ShiftQualitySummaryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
110
110
|
* @public
|
|
111
111
|
*/
|
|
112
112
|
|
|
113
|
-
_this.qualityManagerName =
|
|
113
|
+
_this.qualityManagerName = "";
|
|
114
114
|
/**
|
|
115
115
|
* An Array of Accuracy Results for this Summary
|
|
116
116
|
*
|
|
@@ -118,7 +118,7 @@ var ShiftQualitySummaryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
118
118
|
* @public
|
|
119
119
|
*/
|
|
120
120
|
|
|
121
|
-
_this.accuracyResults =
|
|
121
|
+
_this.accuracyResults = [];
|
|
122
122
|
/**
|
|
123
123
|
* An Array of Audit Results for this Summary
|
|
124
124
|
*
|
|
@@ -126,7 +126,7 @@ var ShiftQualitySummaryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
126
126
|
* @public
|
|
127
127
|
*/
|
|
128
128
|
|
|
129
|
-
_this.auditResults =
|
|
129
|
+
_this.auditResults = [];
|
|
130
130
|
/**
|
|
131
131
|
* An Array of Packrun Results for this Summary
|
|
132
132
|
*
|
|
@@ -134,7 +134,7 @@ var ShiftQualitySummaryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
134
134
|
* @public
|
|
135
135
|
*/
|
|
136
136
|
|
|
137
|
-
_this.packrunResults =
|
|
137
|
+
_this.packrunResults = [];
|
|
138
138
|
/**
|
|
139
139
|
* An Optional Rating between 1 and 10 on how Satisfied the Quality Manager was with this Shift
|
|
140
140
|
*
|
|
@@ -142,7 +142,7 @@ var ShiftQualitySummaryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
142
142
|
* @public
|
|
143
143
|
*/
|
|
144
144
|
|
|
145
|
-
_this.satisfactionRating =
|
|
145
|
+
_this.satisfactionRating = null;
|
|
146
146
|
/**
|
|
147
147
|
* The Status of this Quality Summary
|
|
148
148
|
*
|
|
@@ -150,7 +150,7 @@ var ShiftQualitySummaryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
150
150
|
* @public
|
|
151
151
|
*/
|
|
152
152
|
|
|
153
|
-
_this.status =
|
|
153
|
+
_this.status = "";
|
|
154
154
|
/**
|
|
155
155
|
* Whether the Shift Quality Summary has been deleted
|
|
156
156
|
*
|
|
@@ -158,7 +158,7 @@ var ShiftQualitySummaryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
158
158
|
* @public
|
|
159
159
|
*/
|
|
160
160
|
|
|
161
|
-
_this.deleted =
|
|
161
|
+
_this.deleted = false;
|
|
162
162
|
/**
|
|
163
163
|
* When the Shift Quality Summary was last updated
|
|
164
164
|
*
|
|
@@ -166,7 +166,7 @@ var ShiftQualitySummaryModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
166
166
|
* @public
|
|
167
167
|
*/
|
|
168
168
|
|
|
169
|
-
_this.updateTimestamp =
|
|
169
|
+
_this.updateTimestamp = new Date();
|
|
170
170
|
/**
|
|
171
171
|
* The Site ID associated with this Shift Quality Summary
|
|
172
172
|
*
|
|
@@ -62,7 +62,7 @@ var ShiftTaskModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
62
62
|
* @public
|
|
63
63
|
*/
|
|
64
64
|
|
|
65
|
-
_this.id =
|
|
65
|
+
_this.id = "";
|
|
66
66
|
/**
|
|
67
67
|
* The Packing Line ID this Task is associated with
|
|
68
68
|
*
|
|
@@ -70,7 +70,7 @@ var ShiftTaskModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
70
70
|
* @public
|
|
71
71
|
*/
|
|
72
72
|
|
|
73
|
-
_this.packingLineId =
|
|
73
|
+
_this.packingLineId = "";
|
|
74
74
|
/**
|
|
75
75
|
* The Shift ID this Task is asssociated with
|
|
76
76
|
*
|
|
@@ -78,7 +78,7 @@ var ShiftTaskModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
78
78
|
* @public
|
|
79
79
|
*/
|
|
80
80
|
|
|
81
|
-
_this.shiftId =
|
|
81
|
+
_this.shiftId = "";
|
|
82
82
|
/**
|
|
83
83
|
* When this Task was Created
|
|
84
84
|
*
|
|
@@ -86,7 +86,7 @@ var ShiftTaskModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
86
86
|
* @public
|
|
87
87
|
*/
|
|
88
88
|
|
|
89
|
-
_this.createdTimestamp =
|
|
89
|
+
_this.createdTimestamp = new Date();
|
|
90
90
|
/**
|
|
91
91
|
* When this Task was Completed
|
|
92
92
|
*
|
|
@@ -94,7 +94,7 @@ var ShiftTaskModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
94
94
|
* @public
|
|
95
95
|
*/
|
|
96
96
|
|
|
97
|
-
_this.completedTimestamp =
|
|
97
|
+
_this.completedTimestamp = null;
|
|
98
98
|
/**
|
|
99
99
|
* The User ID of the Author for this Task
|
|
100
100
|
*
|
|
@@ -102,7 +102,7 @@ var ShiftTaskModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
102
102
|
* @public
|
|
103
103
|
*/
|
|
104
104
|
|
|
105
|
-
_this.authorUserId =
|
|
105
|
+
_this.authorUserId = null;
|
|
106
106
|
/**
|
|
107
107
|
* The Name of the Author for this Task
|
|
108
108
|
*
|
|
@@ -110,7 +110,7 @@ var ShiftTaskModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
110
110
|
* @public
|
|
111
111
|
*/
|
|
112
112
|
|
|
113
|
-
_this.authorName =
|
|
113
|
+
_this.authorName = "";
|
|
114
114
|
/**
|
|
115
115
|
* The Task Type
|
|
116
116
|
*
|
|
@@ -118,7 +118,7 @@ var ShiftTaskModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
118
118
|
* @public
|
|
119
119
|
*/
|
|
120
120
|
|
|
121
|
-
_this.type =
|
|
121
|
+
_this.type = "";
|
|
122
122
|
/**
|
|
123
123
|
* An Array of Tag IDs for this Task
|
|
124
124
|
*
|
|
@@ -126,7 +126,7 @@ var ShiftTaskModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
126
126
|
* @public
|
|
127
127
|
*/
|
|
128
128
|
|
|
129
|
-
_this.tags =
|
|
129
|
+
_this.tags = [];
|
|
130
130
|
/**
|
|
131
131
|
* The Title of this Task
|
|
132
132
|
*
|
|
@@ -134,7 +134,7 @@ var ShiftTaskModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
134
134
|
* @public
|
|
135
135
|
*/
|
|
136
136
|
|
|
137
|
-
_this.title =
|
|
137
|
+
_this.title = "";
|
|
138
138
|
/**
|
|
139
139
|
* The Content of this Task
|
|
140
140
|
*
|
|
@@ -142,7 +142,7 @@ var ShiftTaskModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
142
142
|
* @public
|
|
143
143
|
*/
|
|
144
144
|
|
|
145
|
-
_this.content =
|
|
145
|
+
_this.content = "";
|
|
146
146
|
/**
|
|
147
147
|
* The Status of this Task
|
|
148
148
|
*
|
|
@@ -150,7 +150,7 @@ var ShiftTaskModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
150
150
|
* @public
|
|
151
151
|
*/
|
|
152
152
|
|
|
153
|
-
_this.status =
|
|
153
|
+
_this.status = "";
|
|
154
154
|
/**
|
|
155
155
|
* Whether the Shift Task has been deleted
|
|
156
156
|
*
|
|
@@ -158,7 +158,7 @@ var ShiftTaskModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
158
158
|
* @public
|
|
159
159
|
*/
|
|
160
160
|
|
|
161
|
-
_this.deleted =
|
|
161
|
+
_this.deleted = false;
|
|
162
162
|
/**
|
|
163
163
|
* When the Shift Task was last updated
|
|
164
164
|
*
|
|
@@ -166,7 +166,7 @@ var ShiftTaskModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
166
166
|
* @public
|
|
167
167
|
*/
|
|
168
168
|
|
|
169
|
-
_this.updateTimestamp =
|
|
169
|
+
_this.updateTimestamp = new Date();
|
|
170
170
|
/**
|
|
171
171
|
* The Site ID associated with this Shift Task
|
|
172
172
|
*
|
|
@@ -62,7 +62,7 @@ var SoftSortBeltModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
62
62
|
* @public
|
|
63
63
|
*/
|
|
64
64
|
|
|
65
|
-
_this.id =
|
|
65
|
+
_this.id = "";
|
|
66
66
|
/**
|
|
67
67
|
* The RTU this Soft Sort Belt belongs to
|
|
68
68
|
*
|
|
@@ -70,7 +70,7 @@ var SoftSortBeltModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
70
70
|
* @public
|
|
71
71
|
*/
|
|
72
72
|
|
|
73
|
-
_this.rtuId =
|
|
73
|
+
_this.rtuId = null;
|
|
74
74
|
/**
|
|
75
75
|
* The Name of this Soft Sort Belt
|
|
76
76
|
*
|
|
@@ -78,7 +78,7 @@ var SoftSortBeltModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
78
78
|
* @public
|
|
79
79
|
*/
|
|
80
80
|
|
|
81
|
-
_this.name =
|
|
81
|
+
_this.name = "";
|
|
82
82
|
/**
|
|
83
83
|
* The Points used by this Soft Sort Belt
|
|
84
84
|
*
|
|
@@ -86,7 +86,7 @@ var SoftSortBeltModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
86
86
|
* @public
|
|
87
87
|
*/
|
|
88
88
|
|
|
89
|
-
_this.points =
|
|
89
|
+
_this.points = {};
|
|
90
90
|
/**
|
|
91
91
|
* The Packing Line that owns this Soft Sort Belt
|
|
92
92
|
*
|
|
@@ -94,7 +94,7 @@ var SoftSortBeltModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
94
94
|
* @public
|
|
95
95
|
*/
|
|
96
96
|
|
|
97
|
-
_this.packingLineId =
|
|
97
|
+
_this.packingLineId = "";
|
|
98
98
|
/**
|
|
99
99
|
* Whether the Soft Sort Belt has been deleted
|
|
100
100
|
*
|
|
@@ -102,7 +102,7 @@ var SoftSortBeltModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
102
102
|
* @public
|
|
103
103
|
*/
|
|
104
104
|
|
|
105
|
-
_this.deleted =
|
|
105
|
+
_this.deleted = false;
|
|
106
106
|
/**
|
|
107
107
|
* When the Soft Sort Belt was last updated
|
|
108
108
|
*
|
|
@@ -110,7 +110,7 @@ var SoftSortBeltModel = /*#__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 Soft Sort Belt
|
|
116
116
|
*
|
|
@@ -62,7 +62,7 @@ var VarietyModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
62
62
|
* @public
|
|
63
63
|
*/
|
|
64
64
|
|
|
65
|
-
_this.id =
|
|
65
|
+
_this.id = "";
|
|
66
66
|
/**
|
|
67
67
|
* The Variety Code
|
|
68
68
|
*
|
|
@@ -70,7 +70,7 @@ var VarietyModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
70
70
|
* @public
|
|
71
71
|
*/
|
|
72
72
|
|
|
73
|
-
_this.code =
|
|
73
|
+
_this.code = "";
|
|
74
74
|
/**
|
|
75
75
|
* The Variety Name
|
|
76
76
|
*
|
|
@@ -78,7 +78,7 @@ var VarietyModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
78
78
|
* @public
|
|
79
79
|
*/
|
|
80
80
|
|
|
81
|
-
_this.name =
|
|
81
|
+
_this.name = "";
|
|
82
82
|
/**
|
|
83
83
|
* The Variety Description
|
|
84
84
|
*
|
|
@@ -86,7 +86,7 @@ var VarietyModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
86
86
|
* @public
|
|
87
87
|
*/
|
|
88
88
|
|
|
89
|
-
_this.description =
|
|
89
|
+
_this.description = "";
|
|
90
90
|
/**
|
|
91
91
|
* The Variety Image Source
|
|
92
92
|
*
|
|
@@ -94,7 +94,7 @@ var VarietyModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
94
94
|
* @public
|
|
95
95
|
*/
|
|
96
96
|
|
|
97
|
-
_this.image =
|
|
97
|
+
_this.image = "";
|
|
98
98
|
/**
|
|
99
99
|
* An Array of Fruit Sizes Defined for this Variety
|
|
100
100
|
*
|
|
@@ -102,7 +102,7 @@ var VarietyModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
102
102
|
* @public
|
|
103
103
|
*/
|
|
104
104
|
|
|
105
|
-
_this.fruitSizes =
|
|
105
|
+
_this.fruitSizes = [];
|
|
106
106
|
/**
|
|
107
107
|
* Whether the Variety has been deleted
|
|
108
108
|
*
|
|
@@ -110,7 +110,7 @@ var VarietyModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
110
110
|
* @public
|
|
111
111
|
*/
|
|
112
112
|
|
|
113
|
-
_this.deleted =
|
|
113
|
+
_this.deleted = false;
|
|
114
114
|
/**
|
|
115
115
|
* When the Variety was last updated
|
|
116
116
|
*
|
|
@@ -118,7 +118,7 @@ var VarietyModel = /*#__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 Variety
|
|
124
124
|
*
|
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
|
*
|