@ricado/api-client 1.4.1 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ricado.api.client.js +1 -1
- package/lib/Controllers/AccountPolicyController.js +1 -1
- package/lib/Controllers/ApiAccountController.js +2 -2
- package/lib/Controllers/CompanyController.js +1 -1
- package/lib/Controllers/FirebaseTokenController.js +1 -1
- package/lib/Controllers/Packhouse/Site/BinTipWeightController.js +2 -2
- package/lib/Controllers/Packhouse/Site/CompacSizerBatchController.js +2 -2
- package/lib/Controllers/Packhouse/Site/CompacSizerController.js +1 -1
- package/lib/Controllers/Packhouse/Site/CompacSizerOutletProductChangeController.js +2 -2
- package/lib/Controllers/Packhouse/Site/CompacSizerOutletTypeChangeController.js +2 -2
- package/lib/Controllers/Packhouse/Site/CompacSizerOutletTypeController.js +1 -1
- package/lib/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +2 -2
- package/lib/Controllers/Packhouse/Site/DowntimeEventController.js +2 -2
- package/lib/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +2 -2
- package/lib/Controllers/Packhouse/Site/GrowingMethodController.js +1 -1
- package/lib/Controllers/Packhouse/Site/PackTypeController.js +1 -1
- package/lib/Controllers/Packhouse/Site/PackingLineController.js +1 -1
- package/lib/Controllers/Packhouse/Site/PackrunController.js +288 -2
- package/lib/Controllers/Packhouse/Site/RejectBinController.js +2 -2
- package/lib/Controllers/Packhouse/Site/RejectBinScaleController.js +1 -1
- package/lib/Controllers/Packhouse/Site/RejectBinWeightController.js +2 -2
- package/lib/Controllers/Packhouse/Site/ShiftController.js +2 -2
- package/lib/Controllers/Packhouse/Site/ShiftFocusMeetingController.js +2 -2
- package/lib/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +2 -2
- package/lib/Controllers/Packhouse/Site/VarietyController.js +1 -1
- package/lib/Controllers/RTU/GlobalSettingsController.js +2 -2
- package/lib/Controllers/RTU/PluginSettingsController.js +2 -2
- package/lib/Controllers/RTUController.js +1 -1
- package/lib/Controllers/RTUPluginController.js +1 -1
- package/lib/Controllers/Site/AlarmController.js +2 -2
- package/lib/Controllers/Site/AlarmGroupController.js +1 -1
- package/lib/Controllers/Site/DefinitionController.js +1 -1
- package/lib/Controllers/Site/PermanentObjectController.js +1 -1
- package/lib/Controllers/Site/PermanentObjectDataController.js +2 -2
- package/lib/Controllers/Site/PointController.js +2 -2
- package/lib/Controllers/Site/TemporaryObjectController.js +1 -1
- package/lib/Controllers/SiteController.js +1 -1
- package/lib/Controllers/TokenController.js +2 -2
- package/lib/Controllers/ToolsController.js +1 -1
- package/lib/Controllers/UserAccountActionTokenController.js +2 -2
- package/lib/Controllers/UserAccountController.js +2 -2
- package/lib/DataItems/PointValueItem.js +2 -2
- package/lib/Errors/BadRequestError.js +7 -3
- package/lib/Errors/ForbiddenError.js +7 -3
- package/lib/Errors/NetworkError.js +7 -3
- package/lib/Errors/NotAllowedError.js +7 -3
- package/lib/Errors/NotFoundError.js +7 -3
- package/lib/Errors/ServerError.js +7 -3
- package/lib/Errors/UnauthorizedError.js +7 -3
- package/lib/Models/AccountPolicyModel.js +29 -133
- package/lib/Models/ApiAccountModel.js +29 -133
- package/lib/Models/BaseModel.js +6 -2
- package/lib/Models/CompanyModel.js +23 -101
- package/lib/Models/FirebaseTokenModel.js +32 -149
- package/lib/Models/Packhouse/Site/BinTipWeightModel.js +43 -185
- package/lib/Models/Packhouse/Site/CompacSizerBatchModel.js +40 -169
- package/lib/Models/Packhouse/Site/CompacSizerModel.js +58 -265
- package/lib/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +46 -201
- package/lib/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +40 -169
- package/lib/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +34 -137
- package/lib/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +52 -233
- package/lib/Models/Packhouse/Site/DowntimeEventModel.js +58 -265
- package/lib/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +40 -169
- package/lib/Models/Packhouse/Site/GrowingMethodModel.js +34 -137
- package/lib/Models/Packhouse/Site/PackTypeModel.js +40 -169
- package/lib/Models/Packhouse/Site/PackingLineModel.js +61 -281
- package/lib/Models/Packhouse/Site/PackrunModel.js +61 -281
- package/lib/Models/Packhouse/Site/RejectBinModel.js +43 -185
- package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +52 -233
- package/lib/Models/Packhouse/Site/RejectBinWeightModel.js +46 -201
- package/lib/Models/Packhouse/Site/ShiftFocusMeetingModel.js +52 -233
- package/lib/Models/Packhouse/Site/ShiftHourlyEntryModel.js +127 -633
- package/lib/Models/Packhouse/Site/ShiftModel.js +73 -345
- package/lib/Models/Packhouse/Site/VarietyModel.js +40 -169
- package/lib/Models/RTUModel.js +26 -117
- package/lib/Models/RTUPluginModel.js +23 -101
- package/lib/Models/Site/AlarmGroupModel.js +37 -153
- package/lib/Models/Site/AlarmModel.js +67 -313
- package/lib/Models/Site/DefinitionModel.js +34 -137
- package/lib/Models/Site/PermanentObjectDataModel.js +40 -169
- package/lib/Models/Site/PermanentObjectModel.js +37 -153
- package/lib/Models/Site/PointModel.js +49 -217
- package/lib/Models/Site/TemporaryObjectModel.js +34 -137
- package/lib/Models/Site/index.js +0 -3
- package/lib/Models/SiteModel.js +26 -117
- package/lib/Models/TokenModel.js +38 -181
- package/lib/Models/UserAccountActionTokenModel.js +41 -197
- package/lib/Models/UserAccountModel.js +38 -181
- package/lib/PackageVersion.js +1 -1
- package/lib/Points.js +1 -1
- package/lib/RequestHelper.js +2 -2
- package/lib/WebSocketHelper.js +1 -1
- package/lib/index.d.ts +945 -1206
- package/package.json +3 -3
- package/src/Controllers/Packhouse/Site/PackrunController.js +361 -0
- package/src/Models/AccountPolicyModel.js +21 -117
- package/src/Models/ApiAccountModel.js +21 -117
- package/src/Models/CompanyModel.js +15 -87
- package/src/Models/FirebaseTokenModel.js +24 -132
- package/src/Models/Packhouse/Site/BinTipWeightModel.js +32 -163
- package/src/Models/Packhouse/Site/CompacSizerBatchModel.js +29 -148
- package/src/Models/Packhouse/Site/CompacSizerModel.js +47 -238
- package/src/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +35 -178
- package/src/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +29 -148
- package/src/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +23 -118
- package/src/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +41 -208
- package/src/Models/Packhouse/Site/DowntimeEventModel.js +47 -238
- package/src/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +29 -148
- package/src/Models/Packhouse/Site/GrowingMethodModel.js +23 -118
- package/src/Models/Packhouse/Site/PackTypeModel.js +29 -148
- package/src/Models/Packhouse/Site/PackingLineModel.js +50 -253
- package/src/Models/Packhouse/Site/PackrunModel.js +50 -253
- package/src/Models/Packhouse/Site/RejectBinModel.js +32 -163
- package/src/Models/Packhouse/Site/RejectBinScaleModel.js +41 -208
- package/src/Models/Packhouse/Site/RejectBinWeightModel.js +35 -178
- package/src/Models/Packhouse/Site/ShiftFocusMeetingModel.js +41 -208
- package/src/Models/Packhouse/Site/ShiftHourlyEntryModel.js +116 -583
- package/src/Models/Packhouse/Site/ShiftModel.js +62 -313
- package/src/Models/Packhouse/Site/VarietyModel.js +29 -148
- package/src/Models/RTUModel.js +18 -102
- package/src/Models/RTUPluginModel.js +15 -87
- package/src/Models/Site/AlarmGroupModel.js +26 -133
- package/src/Models/Site/AlarmModel.js +56 -283
- package/src/Models/Site/DefinitionModel.js +23 -118
- package/src/Models/Site/PermanentObjectDataModel.js +29 -148
- package/src/Models/Site/PermanentObjectModel.js +26 -133
- package/src/Models/Site/PointModel.js +38 -193
- package/src/Models/Site/TemporaryObjectModel.js +23 -118
- package/src/Models/Site/index.js +0 -2
- package/src/Models/SiteModel.js +18 -102
- package/src/Models/TokenModel.js +30 -162
- package/src/Models/UserAccountActionTokenModel.js +33 -177
- package/src/Models/UserAccountModel.js +30 -162
- package/src/PackageVersion.js +1 -1
- package/lib/Models/Site/BaseSiteModel.js +0 -58
- package/src/Models/Site/BaseSiteModel.js +0 -30
|
@@ -4,16 +4,16 @@
|
|
|
4
4
|
* Do Not Edit this File Manually!
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import
|
|
7
|
+
import BaseModel from '../../../Models/BaseModel';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Model Class for a Reject Bin
|
|
11
11
|
*
|
|
12
12
|
* @class
|
|
13
13
|
* @hideconstructor
|
|
14
|
-
* @extends
|
|
14
|
+
* @extends BaseModel
|
|
15
15
|
*/
|
|
16
|
-
class RejectBinModel extends
|
|
16
|
+
class RejectBinModel extends BaseModel
|
|
17
17
|
{
|
|
18
18
|
/**
|
|
19
19
|
* RejectBinModel Constructor
|
|
@@ -29,212 +29,81 @@ class RejectBinModel extends BaseSiteModel
|
|
|
29
29
|
* The Reject Bin ID
|
|
30
30
|
*
|
|
31
31
|
* @type {string}
|
|
32
|
-
* @
|
|
32
|
+
* @public
|
|
33
33
|
*/
|
|
34
|
-
this.
|
|
34
|
+
this.id = undefined;
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* The Reject Bin Scale ID this Reject Bin is associated with
|
|
38
38
|
*
|
|
39
39
|
* @type {string}
|
|
40
|
-
* @
|
|
40
|
+
* @public
|
|
41
41
|
*/
|
|
42
|
-
this.
|
|
42
|
+
this.rejectBinScaleId = undefined;
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* When this Reject Bin was Created
|
|
46
46
|
*
|
|
47
47
|
* @type {Date}
|
|
48
|
-
* @
|
|
48
|
+
* @public
|
|
49
49
|
*/
|
|
50
|
-
this.
|
|
50
|
+
this.createdTimestamp = undefined;
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* The Name of the Reject Bin Scale where this Bin was Created
|
|
54
54
|
*
|
|
55
55
|
* @type {string}
|
|
56
|
-
* @
|
|
56
|
+
* @public
|
|
57
57
|
*/
|
|
58
|
-
this.
|
|
58
|
+
this.rejectBinScaleName = undefined;
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
61
|
* The Tare Weight Captured by the Reject Bin Scale
|
|
62
62
|
*
|
|
63
63
|
* @type {?number}
|
|
64
|
-
* @
|
|
64
|
+
* @public
|
|
65
65
|
*/
|
|
66
|
-
this.
|
|
66
|
+
this.tareWeight = undefined;
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* When this Reject Bin was Finalized (No new Weights)
|
|
70
70
|
*
|
|
71
71
|
* @type {?Date}
|
|
72
|
-
* @
|
|
72
|
+
* @public
|
|
73
73
|
*/
|
|
74
|
-
this.
|
|
74
|
+
this.finalizedTimestamp = undefined;
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* The Multi-Grower Bins that will be submitted to FreshPack
|
|
78
78
|
*
|
|
79
79
|
* @type {Object[]}
|
|
80
|
-
* @
|
|
80
|
+
* @public
|
|
81
81
|
*/
|
|
82
|
-
this.
|
|
82
|
+
this.freshPackMultiGrowerBins = undefined;
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
85
|
* Whether the Reject Bin has been deleted
|
|
86
86
|
*
|
|
87
87
|
* @type {boolean}
|
|
88
|
-
* @
|
|
88
|
+
* @public
|
|
89
89
|
*/
|
|
90
|
-
this.
|
|
90
|
+
this.deleted = undefined;
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
93
|
* When the Reject Bin was last updated
|
|
94
94
|
*
|
|
95
95
|
* @type {Date}
|
|
96
|
-
* @
|
|
96
|
+
* @public
|
|
97
97
|
*/
|
|
98
|
-
this.
|
|
98
|
+
this.updateTimestamp = undefined;
|
|
99
99
|
|
|
100
100
|
/**
|
|
101
101
|
* The Site ID associated with this Reject Bin
|
|
102
102
|
*
|
|
103
103
|
* @type {number}
|
|
104
|
-
* @
|
|
104
|
+
* @public
|
|
105
105
|
*/
|
|
106
|
-
this.
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* The Reject Bin ID
|
|
111
|
-
*
|
|
112
|
-
* @public
|
|
113
|
-
* @type {string}
|
|
114
|
-
*/
|
|
115
|
-
get id()
|
|
116
|
-
{
|
|
117
|
-
return this._id;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* The Reject Bin Scale ID this Reject Bin is associated with
|
|
122
|
-
*
|
|
123
|
-
* @public
|
|
124
|
-
* @type {string}
|
|
125
|
-
*/
|
|
126
|
-
get rejectBinScaleId()
|
|
127
|
-
{
|
|
128
|
-
return this._rejectBinScaleId;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* When this Reject Bin was Created
|
|
133
|
-
*
|
|
134
|
-
* @public
|
|
135
|
-
* @type {Date}
|
|
136
|
-
*/
|
|
137
|
-
get createdTimestamp()
|
|
138
|
-
{
|
|
139
|
-
return this._createdTimestamp;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* The Name of the Reject Bin Scale where this Bin was Created
|
|
144
|
-
*
|
|
145
|
-
* @public
|
|
146
|
-
* @type {string}
|
|
147
|
-
*/
|
|
148
|
-
get rejectBinScaleName()
|
|
149
|
-
{
|
|
150
|
-
return this._rejectBinScaleName;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* The Tare Weight Captured by the Reject Bin Scale
|
|
155
|
-
*
|
|
156
|
-
* @public
|
|
157
|
-
* @type {?number}
|
|
158
|
-
*/
|
|
159
|
-
get tareWeight()
|
|
160
|
-
{
|
|
161
|
-
return this._tareWeight;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* When this Reject Bin was Finalized (No new Weights)
|
|
166
|
-
*
|
|
167
|
-
* @public
|
|
168
|
-
* @type {?Date}
|
|
169
|
-
*/
|
|
170
|
-
get finalizedTimestamp()
|
|
171
|
-
{
|
|
172
|
-
return this._finalizedTimestamp;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* The Multi-Grower Bins that will be submitted to FreshPack
|
|
177
|
-
*
|
|
178
|
-
* @public
|
|
179
|
-
* @type {Object[]}
|
|
180
|
-
*/
|
|
181
|
-
get freshPackMultiGrowerBins()
|
|
182
|
-
{
|
|
183
|
-
return this._freshPackMultiGrowerBins;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
/**
|
|
187
|
-
* Whether the Reject Bin has been deleted
|
|
188
|
-
*
|
|
189
|
-
* @public
|
|
190
|
-
* @type {boolean}
|
|
191
|
-
*/
|
|
192
|
-
get deleted()
|
|
193
|
-
{
|
|
194
|
-
return this._deleted;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* When the Reject Bin was last updated
|
|
199
|
-
*
|
|
200
|
-
* @public
|
|
201
|
-
* @type {Date}
|
|
202
|
-
*/
|
|
203
|
-
get updateTimestamp()
|
|
204
|
-
{
|
|
205
|
-
return this._updateTimestamp;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
/**
|
|
209
|
-
* The Site ID associated with this Reject Bin
|
|
210
|
-
*
|
|
211
|
-
* @public
|
|
212
|
-
* @type {number}
|
|
213
|
-
*/
|
|
214
|
-
get siteId()
|
|
215
|
-
{
|
|
216
|
-
return this._siteId;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
* Convert this **RejectBinModel** to a JSON Object
|
|
221
|
-
*
|
|
222
|
-
* @public
|
|
223
|
-
* @return {Object<string, any>}
|
|
224
|
-
*/
|
|
225
|
-
toJSON()
|
|
226
|
-
{
|
|
227
|
-
return {
|
|
228
|
-
id: this._id,
|
|
229
|
-
rejectBinScaleId: this._rejectBinScaleId,
|
|
230
|
-
createdTimestamp: this._createdTimestamp,
|
|
231
|
-
rejectBinScaleName: this._rejectBinScaleName,
|
|
232
|
-
tareWeight: this._tareWeight,
|
|
233
|
-
finalizedTimestamp: this._finalizedTimestamp,
|
|
234
|
-
freshPackMultiGrowerBins: this._freshPackMultiGrowerBins,
|
|
235
|
-
deleted: this._deleted,
|
|
236
|
-
updateTimestamp: this._updateTimestamp
|
|
237
|
-
};
|
|
106
|
+
this.siteId = siteId;
|
|
238
107
|
}
|
|
239
108
|
|
|
240
109
|
/**
|
|
@@ -268,7 +137,7 @@ class RejectBinModel extends BaseSiteModel
|
|
|
268
137
|
|
|
269
138
|
if('id' in jsonObject)
|
|
270
139
|
{
|
|
271
|
-
model.
|
|
140
|
+
model.id = (function(){
|
|
272
141
|
if(typeof jsonObject['id'] !== 'string')
|
|
273
142
|
{
|
|
274
143
|
return String(jsonObject['id']);
|
|
@@ -280,7 +149,7 @@ class RejectBinModel extends BaseSiteModel
|
|
|
280
149
|
|
|
281
150
|
if('rejectBinScaleId' in jsonObject)
|
|
282
151
|
{
|
|
283
|
-
model.
|
|
152
|
+
model.rejectBinScaleId = (function(){
|
|
284
153
|
if(typeof jsonObject['rejectBinScaleId'] !== 'string')
|
|
285
154
|
{
|
|
286
155
|
return String(jsonObject['rejectBinScaleId']);
|
|
@@ -292,7 +161,7 @@ class RejectBinModel extends BaseSiteModel
|
|
|
292
161
|
|
|
293
162
|
if('createdTimestamp' in jsonObject)
|
|
294
163
|
{
|
|
295
|
-
model.
|
|
164
|
+
model.createdTimestamp = (function(){
|
|
296
165
|
if(typeof jsonObject['createdTimestamp'] !== 'string')
|
|
297
166
|
{
|
|
298
167
|
return new Date(String(jsonObject['createdTimestamp']));
|
|
@@ -304,7 +173,7 @@ class RejectBinModel extends BaseSiteModel
|
|
|
304
173
|
|
|
305
174
|
if('rejectBinScaleName' in jsonObject)
|
|
306
175
|
{
|
|
307
|
-
model.
|
|
176
|
+
model.rejectBinScaleName = (function(){
|
|
308
177
|
if(typeof jsonObject['rejectBinScaleName'] !== 'string')
|
|
309
178
|
{
|
|
310
179
|
return String(jsonObject['rejectBinScaleName']);
|
|
@@ -316,7 +185,7 @@ class RejectBinModel extends BaseSiteModel
|
|
|
316
185
|
|
|
317
186
|
if('tareWeight' in jsonObject)
|
|
318
187
|
{
|
|
319
|
-
model.
|
|
188
|
+
model.tareWeight = (function(){
|
|
320
189
|
if(jsonObject['tareWeight'] === null)
|
|
321
190
|
{
|
|
322
191
|
return null;
|
|
@@ -333,7 +202,7 @@ class RejectBinModel extends BaseSiteModel
|
|
|
333
202
|
|
|
334
203
|
if('finalizedTimestamp' in jsonObject)
|
|
335
204
|
{
|
|
336
|
-
model.
|
|
205
|
+
model.finalizedTimestamp = (function(){
|
|
337
206
|
if(jsonObject['finalizedTimestamp'] === null)
|
|
338
207
|
{
|
|
339
208
|
return null;
|
|
@@ -350,7 +219,7 @@ class RejectBinModel extends BaseSiteModel
|
|
|
350
219
|
|
|
351
220
|
if('freshPackMultiGrowerBins' in jsonObject)
|
|
352
221
|
{
|
|
353
|
-
model.
|
|
222
|
+
model.freshPackMultiGrowerBins = (function(){
|
|
354
223
|
if(Array.isArray(jsonObject['freshPackMultiGrowerBins']) !== true)
|
|
355
224
|
{
|
|
356
225
|
return [];
|
|
@@ -371,7 +240,7 @@ class RejectBinModel extends BaseSiteModel
|
|
|
371
240
|
|
|
372
241
|
if('deleted' in jsonObject)
|
|
373
242
|
{
|
|
374
|
-
model.
|
|
243
|
+
model.deleted = (function(){
|
|
375
244
|
if(typeof jsonObject['deleted'] !== 'boolean')
|
|
376
245
|
{
|
|
377
246
|
return Boolean(jsonObject['deleted']);
|
|
@@ -383,7 +252,7 @@ class RejectBinModel extends BaseSiteModel
|
|
|
383
252
|
|
|
384
253
|
if('updateTimestamp' in jsonObject)
|
|
385
254
|
{
|
|
386
|
-
model.
|
|
255
|
+
model.updateTimestamp = (function(){
|
|
387
256
|
if(typeof jsonObject['updateTimestamp'] !== 'string')
|
|
388
257
|
{
|
|
389
258
|
return new Date(String(jsonObject['updateTimestamp']));
|