@ricado/api-client 2.1.1 → 2.2.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/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/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/index.js +12 -0
- package/lib/Models/Packhouse/Site/BinTipBinModel.js +367 -0
- package/lib/Models/Packhouse/Site/CompacSizerModel.js +1 -1
- package/lib/Models/Packhouse/Site/FreshQualityPackrunSummaryModel.js +481 -0
- package/lib/Models/Packhouse/Site/PackingLineModel.js +524 -1
- package/lib/Models/Packhouse/Site/PackrunModel.js +66 -0
- package/lib/Models/Packhouse/Site/ShiftHourlyEntryModel.js +167 -1
- package/lib/Models/Packhouse/Site/ShiftQualitySummaryModel.js +599 -0
- package/lib/Models/Packhouse/Site/ShiftTaskModel.js +373 -0
- package/lib/Models/Packhouse/Site/index.js +12 -0
- package/lib/PackageVersion.js +1 -1
- package/lib/index.d.ts +2241 -146
- 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/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/index.js +8 -0
- package/src/Models/Packhouse/Site/BinTipBinModel.js +365 -0
- package/src/Models/Packhouse/Site/CompacSizerModel.js +1 -1
- package/src/Models/Packhouse/Site/FreshQualityPackrunSummaryModel.js +523 -0
- package/src/Models/Packhouse/Site/PackingLineModel.js +705 -1
- package/src/Models/Packhouse/Site/PackrunModel.js +75 -0
- package/src/Models/Packhouse/Site/ShiftHourlyEntryModel.js +192 -1
- package/src/Models/Packhouse/Site/ShiftQualitySummaryModel.js +664 -0
- package/src/Models/Packhouse/Site/ShiftTaskModel.js +369 -0
- package/src/Models/Packhouse/Site/index.js +8 -0
- package/src/PackageVersion.js +1 -1
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
/**
|
|
8
8
|
* @namespace Controllers.Packhouse.Site
|
|
9
9
|
*/
|
|
10
|
+
import BinTipBinController from './BinTipBinController';
|
|
10
11
|
import BinTipWeightController from './BinTipWeightController';
|
|
11
12
|
import CompacSizerBatchController from './CompacSizerBatchController';
|
|
12
13
|
import CompacSizerController from './CompacSizerController';
|
|
@@ -16,6 +17,7 @@ import CompacSizerOutletTypeController from './CompacSizerOutletTypeController';
|
|
|
16
17
|
import CompacSizerPackrunSummaryController from './CompacSizerPackrunSummaryController';
|
|
17
18
|
import DowntimeEventController from './DowntimeEventController';
|
|
18
19
|
import FreshPackPackrunSummaryController from './FreshPackPackrunSummaryController';
|
|
20
|
+
import FreshQualityPackrunSummaryController from './FreshQualityPackrunSummaryController';
|
|
19
21
|
import GrowingMethodController from './GrowingMethodController';
|
|
20
22
|
import PackTypeController from './PackTypeController';
|
|
21
23
|
import PackingLineController from './PackingLineController';
|
|
@@ -26,10 +28,13 @@ import RejectBinWeightController from './RejectBinWeightController';
|
|
|
26
28
|
import ShiftController from './ShiftController';
|
|
27
29
|
import ShiftFocusMeetingController from './ShiftFocusMeetingController';
|
|
28
30
|
import ShiftHourlyEntryController from './ShiftHourlyEntryController';
|
|
31
|
+
import ShiftQualitySummaryController from './ShiftQualitySummaryController';
|
|
32
|
+
import ShiftTaskController from './ShiftTaskController';
|
|
29
33
|
import SoftSortBeltController from './SoftSortBeltController';
|
|
30
34
|
import VarietyController from './VarietyController';
|
|
31
35
|
|
|
32
36
|
const Site = {
|
|
37
|
+
BinTipBinController,
|
|
33
38
|
BinTipWeightController,
|
|
34
39
|
CompacSizerBatchController,
|
|
35
40
|
CompacSizerController,
|
|
@@ -39,6 +44,7 @@ const Site = {
|
|
|
39
44
|
CompacSizerPackrunSummaryController,
|
|
40
45
|
DowntimeEventController,
|
|
41
46
|
FreshPackPackrunSummaryController,
|
|
47
|
+
FreshQualityPackrunSummaryController,
|
|
42
48
|
GrowingMethodController,
|
|
43
49
|
PackTypeController,
|
|
44
50
|
PackingLineController,
|
|
@@ -49,6 +55,8 @@ const Site = {
|
|
|
49
55
|
ShiftController,
|
|
50
56
|
ShiftFocusMeetingController,
|
|
51
57
|
ShiftHourlyEntryController,
|
|
58
|
+
ShiftQualitySummaryController,
|
|
59
|
+
ShiftTaskController,
|
|
52
60
|
SoftSortBeltController,
|
|
53
61
|
VarietyController,
|
|
54
62
|
};
|
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* File Auto-Generated by the RICADO Gen 4 PHP API Project
|
|
3
|
+
*
|
|
4
|
+
* Do Not Edit this File Manually!
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import BaseModel from '../../../Models/BaseModel';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Model Class for a Bin Tip Bin
|
|
11
|
+
*
|
|
12
|
+
* @class
|
|
13
|
+
* @hideconstructor
|
|
14
|
+
* @extends BaseModel
|
|
15
|
+
*/
|
|
16
|
+
class BinTipBinModel extends BaseModel
|
|
17
|
+
{
|
|
18
|
+
/**
|
|
19
|
+
* BinTipBinModel Constructor
|
|
20
|
+
*
|
|
21
|
+
* @protected
|
|
22
|
+
* @param {number} siteId The Site ID associated with this Bin Tip Bin
|
|
23
|
+
*/
|
|
24
|
+
constructor(siteId)
|
|
25
|
+
{
|
|
26
|
+
super();
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* The Bin Tip Bin ID
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @public
|
|
33
|
+
*/
|
|
34
|
+
this.id = undefined;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* The Bin Tip ID associated with this Bin
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @public
|
|
41
|
+
*/
|
|
42
|
+
this.binTipId = undefined;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* The Packrun ID associated with this Bin
|
|
46
|
+
*
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @public
|
|
49
|
+
*/
|
|
50
|
+
this.packrunId = undefined;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* When this Bin was Created
|
|
54
|
+
*
|
|
55
|
+
* @type {Date}
|
|
56
|
+
* @public
|
|
57
|
+
*/
|
|
58
|
+
this.createdTimestamp = undefined;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* A 10-Digit Bin Number made up of a Bin Lot (4-Digits) and a Unique Number (6-Digits)
|
|
62
|
+
*
|
|
63
|
+
* @type {?string}
|
|
64
|
+
* @public
|
|
65
|
+
*/
|
|
66
|
+
this.binNumber = undefined;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* The Time Batch ID associated with this Bin
|
|
70
|
+
*
|
|
71
|
+
* @type {?string}
|
|
72
|
+
* @public
|
|
73
|
+
*/
|
|
74
|
+
this.timeBatchId = undefined;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* The Full Weight for this Bin
|
|
78
|
+
*
|
|
79
|
+
* @type {?number}
|
|
80
|
+
* @public
|
|
81
|
+
*/
|
|
82
|
+
this.fullWeight = undefined;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* The Empty Weight for this Bin
|
|
86
|
+
*
|
|
87
|
+
* @type {?number}
|
|
88
|
+
* @public
|
|
89
|
+
*/
|
|
90
|
+
this.emptyWeight = undefined;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* The `BinTipWeight` ID as the Source for the Full Weight of this Bin
|
|
94
|
+
*
|
|
95
|
+
* @type {?string}
|
|
96
|
+
* @public
|
|
97
|
+
*/
|
|
98
|
+
this.fullBinWeightId = undefined;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* The `BinTipWeight` ID as the Source for the Empty Weight of this Bin
|
|
102
|
+
*
|
|
103
|
+
* @type {?string}
|
|
104
|
+
* @public
|
|
105
|
+
*/
|
|
106
|
+
this.emptyBinWeightId = undefined;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* The FreshPack Field Bin Weight API Data
|
|
110
|
+
*
|
|
111
|
+
* @type {?Object}
|
|
112
|
+
* @public
|
|
113
|
+
*/
|
|
114
|
+
this.freshPackFieldBinWeightApi = undefined;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Whether the Bin Tip Bin has been deleted
|
|
118
|
+
*
|
|
119
|
+
* @type {boolean}
|
|
120
|
+
* @public
|
|
121
|
+
*/
|
|
122
|
+
this.deleted = undefined;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* When the Bin Tip Bin was last updated
|
|
126
|
+
*
|
|
127
|
+
* @type {Date}
|
|
128
|
+
* @public
|
|
129
|
+
*/
|
|
130
|
+
this.updateTimestamp = undefined;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* The Site ID associated with this Bin Tip Bin
|
|
134
|
+
*
|
|
135
|
+
* @type {number}
|
|
136
|
+
* @public
|
|
137
|
+
*/
|
|
138
|
+
this.siteId = siteId;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Create a new **BinTipBinModel** from a JSON Object or JSON String
|
|
143
|
+
*
|
|
144
|
+
* @static
|
|
145
|
+
* @public
|
|
146
|
+
* @param {Object<string, any>|string} json A JSON Object or JSON String
|
|
147
|
+
* @param {number} siteId The Site ID associated with this Bin Tip Bin
|
|
148
|
+
* @return {BinTipBinModel}
|
|
149
|
+
*/
|
|
150
|
+
static fromJSON(json, siteId)
|
|
151
|
+
{
|
|
152
|
+
let model = new BinTipBinModel(siteId);
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* The JSON Object
|
|
156
|
+
*
|
|
157
|
+
* @type {Object<string, any>}
|
|
158
|
+
*/
|
|
159
|
+
let jsonObject = {};
|
|
160
|
+
|
|
161
|
+
if(typeof json === 'string')
|
|
162
|
+
{
|
|
163
|
+
jsonObject = JSON.parse(json);
|
|
164
|
+
}
|
|
165
|
+
else if(typeof json === 'object')
|
|
166
|
+
{
|
|
167
|
+
jsonObject = json;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
if('id' in jsonObject)
|
|
171
|
+
{
|
|
172
|
+
model.id = (function(){
|
|
173
|
+
if(typeof jsonObject['id'] !== 'string')
|
|
174
|
+
{
|
|
175
|
+
return String(jsonObject['id']);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
return jsonObject['id'];
|
|
179
|
+
}());
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
if('binTipId' in jsonObject)
|
|
183
|
+
{
|
|
184
|
+
model.binTipId = (function(){
|
|
185
|
+
if(typeof jsonObject['binTipId'] !== 'string')
|
|
186
|
+
{
|
|
187
|
+
return String(jsonObject['binTipId']);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
return jsonObject['binTipId'];
|
|
191
|
+
}());
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
if('packrunId' in jsonObject)
|
|
195
|
+
{
|
|
196
|
+
model.packrunId = (function(){
|
|
197
|
+
if(typeof jsonObject['packrunId'] !== 'string')
|
|
198
|
+
{
|
|
199
|
+
return String(jsonObject['packrunId']);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
return jsonObject['packrunId'];
|
|
203
|
+
}());
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
if('createdTimestamp' in jsonObject)
|
|
207
|
+
{
|
|
208
|
+
model.createdTimestamp = (function(){
|
|
209
|
+
if(typeof jsonObject['createdTimestamp'] !== 'string')
|
|
210
|
+
{
|
|
211
|
+
return new Date(String(jsonObject['createdTimestamp']));
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
return new Date(jsonObject['createdTimestamp']);
|
|
215
|
+
}());
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
if('binNumber' in jsonObject)
|
|
219
|
+
{
|
|
220
|
+
model.binNumber = (function(){
|
|
221
|
+
if(jsonObject['binNumber'] === null)
|
|
222
|
+
{
|
|
223
|
+
return null;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
if(typeof jsonObject['binNumber'] !== 'string')
|
|
227
|
+
{
|
|
228
|
+
return String(jsonObject['binNumber']);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
return jsonObject['binNumber'];
|
|
232
|
+
}());
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
if('timeBatchId' in jsonObject)
|
|
236
|
+
{
|
|
237
|
+
model.timeBatchId = (function(){
|
|
238
|
+
if(jsonObject['timeBatchId'] === null)
|
|
239
|
+
{
|
|
240
|
+
return null;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
if(typeof jsonObject['timeBatchId'] !== 'string')
|
|
244
|
+
{
|
|
245
|
+
return String(jsonObject['timeBatchId']);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
return jsonObject['timeBatchId'];
|
|
249
|
+
}());
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
if('fullWeight' in jsonObject)
|
|
253
|
+
{
|
|
254
|
+
model.fullWeight = (function(){
|
|
255
|
+
if(jsonObject['fullWeight'] === null)
|
|
256
|
+
{
|
|
257
|
+
return null;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
if(typeof jsonObject['fullWeight'] !== 'number')
|
|
261
|
+
{
|
|
262
|
+
return Number(jsonObject['fullWeight']);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
return jsonObject['fullWeight'];
|
|
266
|
+
}());
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
if('emptyWeight' in jsonObject)
|
|
270
|
+
{
|
|
271
|
+
model.emptyWeight = (function(){
|
|
272
|
+
if(jsonObject['emptyWeight'] === null)
|
|
273
|
+
{
|
|
274
|
+
return null;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
if(typeof jsonObject['emptyWeight'] !== 'number')
|
|
278
|
+
{
|
|
279
|
+
return Number(jsonObject['emptyWeight']);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
return jsonObject['emptyWeight'];
|
|
283
|
+
}());
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
if('fullBinWeightId' in jsonObject)
|
|
287
|
+
{
|
|
288
|
+
model.fullBinWeightId = (function(){
|
|
289
|
+
if(jsonObject['fullBinWeightId'] === null)
|
|
290
|
+
{
|
|
291
|
+
return null;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
if(typeof jsonObject['fullBinWeightId'] !== 'string')
|
|
295
|
+
{
|
|
296
|
+
return String(jsonObject['fullBinWeightId']);
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
return jsonObject['fullBinWeightId'];
|
|
300
|
+
}());
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
if('emptyBinWeightId' in jsonObject)
|
|
304
|
+
{
|
|
305
|
+
model.emptyBinWeightId = (function(){
|
|
306
|
+
if(jsonObject['emptyBinWeightId'] === null)
|
|
307
|
+
{
|
|
308
|
+
return null;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
if(typeof jsonObject['emptyBinWeightId'] !== 'string')
|
|
312
|
+
{
|
|
313
|
+
return String(jsonObject['emptyBinWeightId']);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
return jsonObject['emptyBinWeightId'];
|
|
317
|
+
}());
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
if('freshPackFieldBinWeightApi' in jsonObject)
|
|
321
|
+
{
|
|
322
|
+
model.freshPackFieldBinWeightApi = (function(){
|
|
323
|
+
if(jsonObject['freshPackFieldBinWeightApi'] === null)
|
|
324
|
+
{
|
|
325
|
+
return null;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
if(typeof jsonObject['freshPackFieldBinWeightApi'] !== 'object')
|
|
329
|
+
{
|
|
330
|
+
return Object(jsonObject['freshPackFieldBinWeightApi']);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
return jsonObject['freshPackFieldBinWeightApi'];
|
|
334
|
+
}());
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
if('deleted' in jsonObject)
|
|
338
|
+
{
|
|
339
|
+
model.deleted = (function(){
|
|
340
|
+
if(typeof jsonObject['deleted'] !== 'boolean')
|
|
341
|
+
{
|
|
342
|
+
return Boolean(jsonObject['deleted']);
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
return jsonObject['deleted'];
|
|
346
|
+
}());
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
if('updateTimestamp' in jsonObject)
|
|
350
|
+
{
|
|
351
|
+
model.updateTimestamp = (function(){
|
|
352
|
+
if(typeof jsonObject['updateTimestamp'] !== 'string')
|
|
353
|
+
{
|
|
354
|
+
return new Date(String(jsonObject['updateTimestamp']));
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
return new Date(jsonObject['updateTimestamp']);
|
|
358
|
+
}());
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
return model;
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
export default BinTipBinModel;
|