@ricado/api-client 2.3.17 → 2.3.19
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/BinTipBarcodeScannerController.js +198 -0
- package/lib/Controllers/Packhouse/Site/BinTipBinController.js +14 -2
- package/lib/Controllers/Packhouse/Site/CompacSizerBatchController.js +186 -2
- package/lib/Controllers/Packhouse/Site/CompacSizerBinWeightController.js +959 -0
- package/lib/Controllers/Packhouse/Site/CompacSizerController.js +89 -15
- package/lib/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +1 -1
- package/lib/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +35 -4
- package/lib/Controllers/Packhouse/Site/MAFSizerController.js +101 -19
- package/lib/Controllers/Packhouse/Site/PackingLineController.js +435 -23
- package/lib/Controllers/Packhouse/Site/PackrunController.js +11 -2
- package/lib/Controllers/Packhouse/Site/RejectBinController.js +38 -2
- package/lib/Controllers/Packhouse/Site/RejectBinScaleController.js +52 -6
- package/lib/Controllers/Packhouse/Site/RejectBinWeightController.js +70 -4
- package/lib/Controllers/Packhouse/Site/ShiftController.js +1 -1
- package/lib/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +15 -0
- package/lib/Controllers/Packhouse/Site/SoftSortBeltController.js +2 -2
- package/lib/Controllers/Packhouse/Site/SoftSortPackrunSummaryController.js +14 -2
- package/lib/Controllers/Packhouse/Site/index.js +6 -0
- package/lib/Models/Packhouse/Site/BinTipBarcodeScannerModel.js +263 -0
- package/lib/Models/Packhouse/Site/BinTipBinModel.js +75 -5
- package/lib/Models/Packhouse/Site/CompacSizerBatchModel.js +1276 -5
- package/lib/Models/Packhouse/Site/CompacSizerBinWeightModel.js +627 -0
- package/lib/Models/Packhouse/Site/CompacSizerModel.js +966 -72
- package/lib/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +260 -8
- package/lib/Models/Packhouse/Site/MAFSizerModel.js +660 -85
- package/lib/Models/Packhouse/Site/PackingLineModel.js +3860 -551
- package/lib/Models/Packhouse/Site/PackrunModel.js +26 -4
- package/lib/Models/Packhouse/Site/RejectBinModel.js +214 -4
- package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +576 -14
- package/lib/Models/Packhouse/Site/RejectBinWeightModel.js +113 -9
- package/lib/Models/Packhouse/Site/ShiftHourlyEntryModel.js +98 -0
- package/lib/Models/Packhouse/Site/SoftSortBeltModel.js +50 -5
- package/lib/Models/Packhouse/Site/SoftSortPackrunSummaryModel.js +75 -5
- package/lib/Models/Packhouse/Site/index.js +6 -0
- package/lib/PackageVersion.js +1 -1
- package/lib/index.d.ts +6004 -2037
- package/package.json +1 -1
- package/src/Controllers/Packhouse/Site/BinTipBarcodeScannerController.js +175 -0
- package/src/Controllers/Packhouse/Site/BinTipBinController.js +14 -2
- package/src/Controllers/Packhouse/Site/CompacSizerBatchController.js +186 -2
- package/src/Controllers/Packhouse/Site/CompacSizerBinWeightController.js +1090 -0
- package/src/Controllers/Packhouse/Site/CompacSizerController.js +89 -15
- package/src/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +1 -1
- package/src/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +35 -4
- package/src/Controllers/Packhouse/Site/MAFSizerController.js +101 -19
- package/src/Controllers/Packhouse/Site/PackingLineController.js +435 -23
- package/src/Controllers/Packhouse/Site/PackrunController.js +11 -2
- package/src/Controllers/Packhouse/Site/RejectBinController.js +38 -2
- package/src/Controllers/Packhouse/Site/RejectBinScaleController.js +52 -6
- package/src/Controllers/Packhouse/Site/RejectBinWeightController.js +70 -4
- package/src/Controllers/Packhouse/Site/ShiftController.js +1 -1
- package/src/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +15 -0
- package/src/Controllers/Packhouse/Site/SoftSortBeltController.js +2 -2
- package/src/Controllers/Packhouse/Site/SoftSortPackrunSummaryController.js +14 -2
- package/src/Controllers/Packhouse/Site/index.js +4 -0
- package/src/Models/Packhouse/Site/BinTipBarcodeScannerModel.js +252 -0
- package/src/Models/Packhouse/Site/BinTipBinModel.js +97 -5
- package/src/Models/Packhouse/Site/CompacSizerBatchModel.js +1682 -5
- package/src/Models/Packhouse/Site/CompacSizerBinWeightModel.js +715 -0
- package/src/Models/Packhouse/Site/CompacSizerModel.js +1319 -109
- package/src/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +339 -8
- package/src/Models/Packhouse/Site/MAFSizerModel.js +869 -92
- package/src/Models/Packhouse/Site/PackingLineModel.js +5086 -671
- package/src/Models/Packhouse/Site/PackrunModel.js +33 -4
- package/src/Models/Packhouse/Site/RejectBinModel.js +280 -4
- package/src/Models/Packhouse/Site/RejectBinScaleModel.js +775 -15
- package/src/Models/Packhouse/Site/RejectBinWeightModel.js +147 -10
- package/src/Models/Packhouse/Site/ShiftHourlyEntryModel.js +120 -0
- package/src/Models/Packhouse/Site/SoftSortBeltModel.js +65 -5
- package/src/Models/Packhouse/Site/SoftSortPackrunSummaryModel.js +97 -5
- package/src/Models/Packhouse/Site/index.js +4 -0
- package/src/PackageVersion.js +1 -1
|
@@ -76,7 +76,7 @@ class RejectBinWeightModel extends BaseModel
|
|
|
76
76
|
/**
|
|
77
77
|
* The Source Weights that make up the Net Weight
|
|
78
78
|
*
|
|
79
|
-
* @type {
|
|
79
|
+
* @type {Array<{type: string, sortingTableId: string, sortingTableName: ?string, weights: Array<{classType: string, weight: number, fruitCount: ?number}>}|{type: string, beltName: ?string, weights: Array<{classType: string, weight: number, fruitCount: ?number}>}|{type: string, sizerId: string, sizerName: ?string, outletNumber: number, outletName: ?string, weights: Array<{classType: string, weight: number, fruitCount: ?number}>}|{type: string, mixedNames: string[], weights: Array<{classType: string, weight: number, fruitCount: ?number}>}>}
|
|
80
80
|
* @public
|
|
81
81
|
*/
|
|
82
82
|
this.sources = [];
|
|
@@ -84,7 +84,7 @@ class RejectBinWeightModel extends BaseModel
|
|
|
84
84
|
/**
|
|
85
85
|
* The Multi-Grower Bin Weights that will be submitted to FreshPack
|
|
86
86
|
*
|
|
87
|
-
* @type {
|
|
87
|
+
* @type {Array<{classType: string, weight: number, weightApi: ?{requestCount: number, requestTimestamp: ?Date, responseCode: ?number, responseMessage: ?string, completed: boolean}}>}
|
|
88
88
|
* @public
|
|
89
89
|
*/
|
|
90
90
|
this.freshPackMultiGrowerBinWeights = [];
|
|
@@ -230,11 +230,6 @@ class RejectBinWeightModel extends BaseModel
|
|
|
230
230
|
|
|
231
231
|
return jsonObject['sources'].map((sourcesItem) => {
|
|
232
232
|
return (function(){
|
|
233
|
-
if(typeof sourcesItem !== 'object')
|
|
234
|
-
{
|
|
235
|
-
return Object(sourcesItem);
|
|
236
|
-
}
|
|
237
|
-
|
|
238
233
|
return sourcesItem;
|
|
239
234
|
}());
|
|
240
235
|
});
|
|
@@ -251,12 +246,154 @@ class RejectBinWeightModel extends BaseModel
|
|
|
251
246
|
|
|
252
247
|
return jsonObject['freshPackMultiGrowerBinWeights'].map((freshPackMultiGrowerBinWeightsItem) => {
|
|
253
248
|
return (function(){
|
|
254
|
-
|
|
249
|
+
let freshPackMultiGrowerBinWeightsItemObject = {};
|
|
250
|
+
|
|
251
|
+
if(typeof freshPackMultiGrowerBinWeightsItem === 'object' && 'classType' in freshPackMultiGrowerBinWeightsItem)
|
|
252
|
+
{
|
|
253
|
+
freshPackMultiGrowerBinWeightsItemObject.classType = (function(){
|
|
254
|
+
if(typeof freshPackMultiGrowerBinWeightsItem.classType !== 'string')
|
|
255
|
+
{
|
|
256
|
+
return String(freshPackMultiGrowerBinWeightsItem.classType);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
return freshPackMultiGrowerBinWeightsItem.classType;
|
|
260
|
+
}());
|
|
261
|
+
}
|
|
262
|
+
else
|
|
263
|
+
{
|
|
264
|
+
freshPackMultiGrowerBinWeightsItemObject.classType = "";
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
if(typeof freshPackMultiGrowerBinWeightsItem === 'object' && 'weight' in freshPackMultiGrowerBinWeightsItem)
|
|
268
|
+
{
|
|
269
|
+
freshPackMultiGrowerBinWeightsItemObject.weight = (function(){
|
|
270
|
+
if(typeof freshPackMultiGrowerBinWeightsItem.weight !== 'number')
|
|
271
|
+
{
|
|
272
|
+
return Number(freshPackMultiGrowerBinWeightsItem.weight);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
return freshPackMultiGrowerBinWeightsItem.weight;
|
|
276
|
+
}());
|
|
277
|
+
}
|
|
278
|
+
else
|
|
279
|
+
{
|
|
280
|
+
freshPackMultiGrowerBinWeightsItemObject.weight = 0;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
if(typeof freshPackMultiGrowerBinWeightsItem === 'object' && 'weightApi' in freshPackMultiGrowerBinWeightsItem)
|
|
284
|
+
{
|
|
285
|
+
freshPackMultiGrowerBinWeightsItemObject.weightApi = (function(){
|
|
286
|
+
if(freshPackMultiGrowerBinWeightsItem.weightApi === null)
|
|
287
|
+
{
|
|
288
|
+
return null;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
let weightApiObject = {};
|
|
292
|
+
|
|
293
|
+
if(typeof freshPackMultiGrowerBinWeightsItem.weightApi === 'object' && 'requestCount' in freshPackMultiGrowerBinWeightsItem.weightApi)
|
|
294
|
+
{
|
|
295
|
+
weightApiObject.requestCount = (function(){
|
|
296
|
+
if(typeof freshPackMultiGrowerBinWeightsItem.weightApi.requestCount !== 'number')
|
|
297
|
+
{
|
|
298
|
+
return Number.isInteger(Number(freshPackMultiGrowerBinWeightsItem.weightApi.requestCount)) ? Number(freshPackMultiGrowerBinWeightsItem.weightApi.requestCount) : Math.floor(Number(freshPackMultiGrowerBinWeightsItem.weightApi.requestCount));
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
return Number.isInteger(freshPackMultiGrowerBinWeightsItem.weightApi.requestCount) ? freshPackMultiGrowerBinWeightsItem.weightApi.requestCount : Math.floor(freshPackMultiGrowerBinWeightsItem.weightApi.requestCount);
|
|
302
|
+
}());
|
|
303
|
+
}
|
|
304
|
+
else
|
|
305
|
+
{
|
|
306
|
+
weightApiObject.requestCount = 0;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
if(typeof freshPackMultiGrowerBinWeightsItem.weightApi === 'object' && 'requestTimestamp' in freshPackMultiGrowerBinWeightsItem.weightApi)
|
|
310
|
+
{
|
|
311
|
+
weightApiObject.requestTimestamp = (function(){
|
|
312
|
+
if(freshPackMultiGrowerBinWeightsItem.weightApi.requestTimestamp === null)
|
|
313
|
+
{
|
|
314
|
+
return null;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
if(typeof freshPackMultiGrowerBinWeightsItem.weightApi.requestTimestamp !== 'string')
|
|
318
|
+
{
|
|
319
|
+
return new Date(String(freshPackMultiGrowerBinWeightsItem.weightApi.requestTimestamp));
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
return new Date(freshPackMultiGrowerBinWeightsItem.weightApi.requestTimestamp);
|
|
323
|
+
}());
|
|
324
|
+
}
|
|
325
|
+
else
|
|
326
|
+
{
|
|
327
|
+
weightApiObject.requestTimestamp = null;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
if(typeof freshPackMultiGrowerBinWeightsItem.weightApi === 'object' && 'responseCode' in freshPackMultiGrowerBinWeightsItem.weightApi)
|
|
331
|
+
{
|
|
332
|
+
weightApiObject.responseCode = (function(){
|
|
333
|
+
if(freshPackMultiGrowerBinWeightsItem.weightApi.responseCode === null)
|
|
334
|
+
{
|
|
335
|
+
return null;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
if(typeof freshPackMultiGrowerBinWeightsItem.weightApi.responseCode !== 'number')
|
|
339
|
+
{
|
|
340
|
+
return Number.isInteger(Number(freshPackMultiGrowerBinWeightsItem.weightApi.responseCode)) ? Number(freshPackMultiGrowerBinWeightsItem.weightApi.responseCode) : Math.floor(Number(freshPackMultiGrowerBinWeightsItem.weightApi.responseCode));
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
return Number.isInteger(freshPackMultiGrowerBinWeightsItem.weightApi.responseCode) ? freshPackMultiGrowerBinWeightsItem.weightApi.responseCode : Math.floor(freshPackMultiGrowerBinWeightsItem.weightApi.responseCode);
|
|
344
|
+
}());
|
|
345
|
+
}
|
|
346
|
+
else
|
|
347
|
+
{
|
|
348
|
+
weightApiObject.responseCode = null;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
if(typeof freshPackMultiGrowerBinWeightsItem.weightApi === 'object' && 'responseMessage' in freshPackMultiGrowerBinWeightsItem.weightApi)
|
|
352
|
+
{
|
|
353
|
+
weightApiObject.responseMessage = (function(){
|
|
354
|
+
if(freshPackMultiGrowerBinWeightsItem.weightApi.responseMessage === null)
|
|
355
|
+
{
|
|
356
|
+
return null;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
if(typeof freshPackMultiGrowerBinWeightsItem.weightApi.responseMessage !== 'string')
|
|
360
|
+
{
|
|
361
|
+
return String(freshPackMultiGrowerBinWeightsItem.weightApi.responseMessage);
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
return freshPackMultiGrowerBinWeightsItem.weightApi.responseMessage;
|
|
365
|
+
}());
|
|
366
|
+
}
|
|
367
|
+
else
|
|
368
|
+
{
|
|
369
|
+
weightApiObject.responseMessage = null;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
if(typeof freshPackMultiGrowerBinWeightsItem.weightApi === 'object' && 'completed' in freshPackMultiGrowerBinWeightsItem.weightApi)
|
|
373
|
+
{
|
|
374
|
+
weightApiObject.completed = (function(){
|
|
375
|
+
if(typeof freshPackMultiGrowerBinWeightsItem.weightApi.completed !== 'boolean')
|
|
376
|
+
{
|
|
377
|
+
return Boolean(freshPackMultiGrowerBinWeightsItem.weightApi.completed);
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
return freshPackMultiGrowerBinWeightsItem.weightApi.completed;
|
|
381
|
+
}());
|
|
382
|
+
}
|
|
383
|
+
else
|
|
384
|
+
{
|
|
385
|
+
weightApiObject.completed = false;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
return weightApiObject;
|
|
389
|
+
}());
|
|
390
|
+
}
|
|
391
|
+
else
|
|
255
392
|
{
|
|
256
|
-
|
|
393
|
+
freshPackMultiGrowerBinWeightsItemObject.weightApi = null;
|
|
257
394
|
}
|
|
258
395
|
|
|
259
|
-
return
|
|
396
|
+
return freshPackMultiGrowerBinWeightsItemObject;
|
|
260
397
|
}());
|
|
261
398
|
});
|
|
262
399
|
}());
|
|
@@ -113,6 +113,22 @@ class ShiftHourlyEntryModel extends BaseModel
|
|
|
113
113
|
*/
|
|
114
114
|
this.averageClass2ManningTarget = null;
|
|
115
115
|
|
|
116
|
+
/**
|
|
117
|
+
* An Array of Manning Teams and their Headcounts for this Hour. Only Applies when *manningUsesTeams* is *true*
|
|
118
|
+
*
|
|
119
|
+
* @type {?Array<{id: string, name: string, headcount: number, group: string}>}
|
|
120
|
+
* @public
|
|
121
|
+
*/
|
|
122
|
+
this.manningTeams = null;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Whether Manning is tracked at the Team Level for this Hour
|
|
126
|
+
*
|
|
127
|
+
* @type {?boolean}
|
|
128
|
+
* @public
|
|
129
|
+
*/
|
|
130
|
+
this.manningUsesTeams = null;
|
|
131
|
+
|
|
116
132
|
/**
|
|
117
133
|
* The Average Cost per Person working in all Areas for this Hour
|
|
118
134
|
*
|
|
@@ -596,6 +612,110 @@ class ShiftHourlyEntryModel extends BaseModel
|
|
|
596
612
|
}());
|
|
597
613
|
}
|
|
598
614
|
|
|
615
|
+
if('manningTeams' in jsonObject)
|
|
616
|
+
{
|
|
617
|
+
model.manningTeams = (function(){
|
|
618
|
+
if(jsonObject['manningTeams'] === null)
|
|
619
|
+
{
|
|
620
|
+
return null;
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
if(Array.isArray(jsonObject['manningTeams']) !== true)
|
|
624
|
+
{
|
|
625
|
+
return [];
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
return jsonObject['manningTeams'].map((manningTeamsItem) => {
|
|
629
|
+
return (function(){
|
|
630
|
+
let manningTeamsItemObject = {};
|
|
631
|
+
|
|
632
|
+
if(typeof manningTeamsItem === 'object' && 'id' in manningTeamsItem)
|
|
633
|
+
{
|
|
634
|
+
manningTeamsItemObject.id = (function(){
|
|
635
|
+
if(typeof manningTeamsItem.id !== 'string')
|
|
636
|
+
{
|
|
637
|
+
return String(manningTeamsItem.id);
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
return manningTeamsItem.id;
|
|
641
|
+
}());
|
|
642
|
+
}
|
|
643
|
+
else
|
|
644
|
+
{
|
|
645
|
+
manningTeamsItemObject.id = "";
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
if(typeof manningTeamsItem === 'object' && 'name' in manningTeamsItem)
|
|
649
|
+
{
|
|
650
|
+
manningTeamsItemObject.name = (function(){
|
|
651
|
+
if(typeof manningTeamsItem.name !== 'string')
|
|
652
|
+
{
|
|
653
|
+
return String(manningTeamsItem.name);
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
return manningTeamsItem.name;
|
|
657
|
+
}());
|
|
658
|
+
}
|
|
659
|
+
else
|
|
660
|
+
{
|
|
661
|
+
manningTeamsItemObject.name = "";
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
if(typeof manningTeamsItem === 'object' && 'headcount' in manningTeamsItem)
|
|
665
|
+
{
|
|
666
|
+
manningTeamsItemObject.headcount = (function(){
|
|
667
|
+
if(typeof manningTeamsItem.headcount !== 'number')
|
|
668
|
+
{
|
|
669
|
+
return Number.isInteger(Number(manningTeamsItem.headcount)) ? Number(manningTeamsItem.headcount) : Math.floor(Number(manningTeamsItem.headcount));
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
return Number.isInteger(manningTeamsItem.headcount) ? manningTeamsItem.headcount : Math.floor(manningTeamsItem.headcount);
|
|
673
|
+
}());
|
|
674
|
+
}
|
|
675
|
+
else
|
|
676
|
+
{
|
|
677
|
+
manningTeamsItemObject.headcount = 0;
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
if(typeof manningTeamsItem === 'object' && 'group' in manningTeamsItem)
|
|
681
|
+
{
|
|
682
|
+
manningTeamsItemObject.group = (function(){
|
|
683
|
+
if(typeof manningTeamsItem.group !== 'string')
|
|
684
|
+
{
|
|
685
|
+
return String(manningTeamsItem.group);
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
return manningTeamsItem.group;
|
|
689
|
+
}());
|
|
690
|
+
}
|
|
691
|
+
else
|
|
692
|
+
{
|
|
693
|
+
manningTeamsItemObject.group = "";
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
return manningTeamsItemObject;
|
|
697
|
+
}());
|
|
698
|
+
});
|
|
699
|
+
}());
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
if('manningUsesTeams' in jsonObject)
|
|
703
|
+
{
|
|
704
|
+
model.manningUsesTeams = (function(){
|
|
705
|
+
if(jsonObject['manningUsesTeams'] === null)
|
|
706
|
+
{
|
|
707
|
+
return null;
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
if(typeof jsonObject['manningUsesTeams'] !== 'boolean')
|
|
711
|
+
{
|
|
712
|
+
return Boolean(jsonObject['manningUsesTeams']);
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
return jsonObject['manningUsesTeams'];
|
|
716
|
+
}());
|
|
717
|
+
}
|
|
718
|
+
|
|
599
719
|
if('averageCostPerManningUnit' in jsonObject)
|
|
600
720
|
{
|
|
601
721
|
model.averageCostPerManningUnit = (function(){
|
|
@@ -52,10 +52,20 @@ class SoftSortBeltModel extends BaseModel
|
|
|
52
52
|
/**
|
|
53
53
|
* The Points used by this Soft Sort Belt
|
|
54
54
|
*
|
|
55
|
-
* @type {
|
|
55
|
+
* @type {{runAuto: number, slowMode: ?number, stopMode: number}}
|
|
56
56
|
* @public
|
|
57
57
|
*/
|
|
58
|
-
this.points = {
|
|
58
|
+
this.points = (function(){
|
|
59
|
+
let pointsDefaultValue = {};
|
|
60
|
+
|
|
61
|
+
pointsDefaultValue.runAuto = 0;
|
|
62
|
+
|
|
63
|
+
pointsDefaultValue.slowMode = null;
|
|
64
|
+
|
|
65
|
+
pointsDefaultValue.stopMode = 0;
|
|
66
|
+
|
|
67
|
+
return pointsDefaultValue;
|
|
68
|
+
}());
|
|
59
69
|
|
|
60
70
|
/**
|
|
61
71
|
* The Packing Line that owns this Soft Sort Belt
|
|
@@ -163,12 +173,62 @@ class SoftSortBeltModel extends BaseModel
|
|
|
163
173
|
if('points' in jsonObject)
|
|
164
174
|
{
|
|
165
175
|
model.points = (function(){
|
|
166
|
-
|
|
176
|
+
let pointsObject = {};
|
|
177
|
+
|
|
178
|
+
if(typeof jsonObject['points'] === 'object' && 'runAuto' in jsonObject['points'])
|
|
167
179
|
{
|
|
168
|
-
|
|
180
|
+
pointsObject.runAuto = (function(){
|
|
181
|
+
if(typeof jsonObject['points'].runAuto !== 'number')
|
|
182
|
+
{
|
|
183
|
+
return Number.isInteger(Number(jsonObject['points'].runAuto)) ? Number(jsonObject['points'].runAuto) : Math.floor(Number(jsonObject['points'].runAuto));
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
return Number.isInteger(jsonObject['points'].runAuto) ? jsonObject['points'].runAuto : Math.floor(jsonObject['points'].runAuto);
|
|
187
|
+
}());
|
|
188
|
+
}
|
|
189
|
+
else
|
|
190
|
+
{
|
|
191
|
+
pointsObject.runAuto = 0;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
if(typeof jsonObject['points'] === 'object' && 'slowMode' in jsonObject['points'])
|
|
195
|
+
{
|
|
196
|
+
pointsObject.slowMode = (function(){
|
|
197
|
+
if(jsonObject['points'].slowMode === null)
|
|
198
|
+
{
|
|
199
|
+
return null;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
if(typeof jsonObject['points'].slowMode !== 'number')
|
|
203
|
+
{
|
|
204
|
+
return Number.isInteger(Number(jsonObject['points'].slowMode)) ? Number(jsonObject['points'].slowMode) : Math.floor(Number(jsonObject['points'].slowMode));
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
return Number.isInteger(jsonObject['points'].slowMode) ? jsonObject['points'].slowMode : Math.floor(jsonObject['points'].slowMode);
|
|
208
|
+
}());
|
|
209
|
+
}
|
|
210
|
+
else
|
|
211
|
+
{
|
|
212
|
+
pointsObject.slowMode = null;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
if(typeof jsonObject['points'] === 'object' && 'stopMode' in jsonObject['points'])
|
|
216
|
+
{
|
|
217
|
+
pointsObject.stopMode = (function(){
|
|
218
|
+
if(typeof jsonObject['points'].stopMode !== 'number')
|
|
219
|
+
{
|
|
220
|
+
return Number.isInteger(Number(jsonObject['points'].stopMode)) ? Number(jsonObject['points'].stopMode) : Math.floor(Number(jsonObject['points'].stopMode));
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
return Number.isInteger(jsonObject['points'].stopMode) ? jsonObject['points'].stopMode : Math.floor(jsonObject['points'].stopMode);
|
|
224
|
+
}());
|
|
225
|
+
}
|
|
226
|
+
else
|
|
227
|
+
{
|
|
228
|
+
pointsObject.stopMode = 0;
|
|
169
229
|
}
|
|
170
230
|
|
|
171
|
-
return
|
|
231
|
+
return pointsObject;
|
|
172
232
|
}());
|
|
173
233
|
}
|
|
174
234
|
|
|
@@ -114,9 +114,9 @@ class SoftSortPackrunSummaryModel extends BaseModel
|
|
|
114
114
|
this.eventsNotAccurateReason = null;
|
|
115
115
|
|
|
116
116
|
/**
|
|
117
|
-
*
|
|
117
|
+
* Results from Interacting with the FreshPack API to Send Soft-Sort Events Data
|
|
118
118
|
*
|
|
119
|
-
* @type {?
|
|
119
|
+
* @type {?{requestCount: number, requestTimestamp: ?Date, responseCode: ?number, responseMessage: ?string, completed: boolean}}
|
|
120
120
|
* @public
|
|
121
121
|
*/
|
|
122
122
|
this.freshPackSoftSortApi = null;
|
|
@@ -330,12 +330,104 @@ class SoftSortPackrunSummaryModel extends BaseModel
|
|
|
330
330
|
return null;
|
|
331
331
|
}
|
|
332
332
|
|
|
333
|
-
|
|
333
|
+
let freshPackSoftSortApiObject = {};
|
|
334
|
+
|
|
335
|
+
if(typeof jsonObject['freshPackSoftSortApi'] === 'object' && 'requestCount' in jsonObject['freshPackSoftSortApi'])
|
|
334
336
|
{
|
|
335
|
-
|
|
337
|
+
freshPackSoftSortApiObject.requestCount = (function(){
|
|
338
|
+
if(typeof jsonObject['freshPackSoftSortApi'].requestCount !== 'number')
|
|
339
|
+
{
|
|
340
|
+
return Number.isInteger(Number(jsonObject['freshPackSoftSortApi'].requestCount)) ? Number(jsonObject['freshPackSoftSortApi'].requestCount) : Math.floor(Number(jsonObject['freshPackSoftSortApi'].requestCount));
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
return Number.isInteger(jsonObject['freshPackSoftSortApi'].requestCount) ? jsonObject['freshPackSoftSortApi'].requestCount : Math.floor(jsonObject['freshPackSoftSortApi'].requestCount);
|
|
344
|
+
}());
|
|
345
|
+
}
|
|
346
|
+
else
|
|
347
|
+
{
|
|
348
|
+
freshPackSoftSortApiObject.requestCount = 0;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
if(typeof jsonObject['freshPackSoftSortApi'] === 'object' && 'requestTimestamp' in jsonObject['freshPackSoftSortApi'])
|
|
352
|
+
{
|
|
353
|
+
freshPackSoftSortApiObject.requestTimestamp = (function(){
|
|
354
|
+
if(jsonObject['freshPackSoftSortApi'].requestTimestamp === null)
|
|
355
|
+
{
|
|
356
|
+
return null;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
if(typeof jsonObject['freshPackSoftSortApi'].requestTimestamp !== 'string')
|
|
360
|
+
{
|
|
361
|
+
return new Date(String(jsonObject['freshPackSoftSortApi'].requestTimestamp));
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
return new Date(jsonObject['freshPackSoftSortApi'].requestTimestamp);
|
|
365
|
+
}());
|
|
366
|
+
}
|
|
367
|
+
else
|
|
368
|
+
{
|
|
369
|
+
freshPackSoftSortApiObject.requestTimestamp = null;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
if(typeof jsonObject['freshPackSoftSortApi'] === 'object' && 'responseCode' in jsonObject['freshPackSoftSortApi'])
|
|
373
|
+
{
|
|
374
|
+
freshPackSoftSortApiObject.responseCode = (function(){
|
|
375
|
+
if(jsonObject['freshPackSoftSortApi'].responseCode === null)
|
|
376
|
+
{
|
|
377
|
+
return null;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
if(typeof jsonObject['freshPackSoftSortApi'].responseCode !== 'number')
|
|
381
|
+
{
|
|
382
|
+
return Number.isInteger(Number(jsonObject['freshPackSoftSortApi'].responseCode)) ? Number(jsonObject['freshPackSoftSortApi'].responseCode) : Math.floor(Number(jsonObject['freshPackSoftSortApi'].responseCode));
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
return Number.isInteger(jsonObject['freshPackSoftSortApi'].responseCode) ? jsonObject['freshPackSoftSortApi'].responseCode : Math.floor(jsonObject['freshPackSoftSortApi'].responseCode);
|
|
386
|
+
}());
|
|
387
|
+
}
|
|
388
|
+
else
|
|
389
|
+
{
|
|
390
|
+
freshPackSoftSortApiObject.responseCode = null;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
if(typeof jsonObject['freshPackSoftSortApi'] === 'object' && 'responseMessage' in jsonObject['freshPackSoftSortApi'])
|
|
394
|
+
{
|
|
395
|
+
freshPackSoftSortApiObject.responseMessage = (function(){
|
|
396
|
+
if(jsonObject['freshPackSoftSortApi'].responseMessage === null)
|
|
397
|
+
{
|
|
398
|
+
return null;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
if(typeof jsonObject['freshPackSoftSortApi'].responseMessage !== 'string')
|
|
402
|
+
{
|
|
403
|
+
return String(jsonObject['freshPackSoftSortApi'].responseMessage);
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
return jsonObject['freshPackSoftSortApi'].responseMessage;
|
|
407
|
+
}());
|
|
408
|
+
}
|
|
409
|
+
else
|
|
410
|
+
{
|
|
411
|
+
freshPackSoftSortApiObject.responseMessage = null;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
if(typeof jsonObject['freshPackSoftSortApi'] === 'object' && 'completed' in jsonObject['freshPackSoftSortApi'])
|
|
415
|
+
{
|
|
416
|
+
freshPackSoftSortApiObject.completed = (function(){
|
|
417
|
+
if(typeof jsonObject['freshPackSoftSortApi'].completed !== 'boolean')
|
|
418
|
+
{
|
|
419
|
+
return Boolean(jsonObject['freshPackSoftSortApi'].completed);
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
return jsonObject['freshPackSoftSortApi'].completed;
|
|
423
|
+
}());
|
|
424
|
+
}
|
|
425
|
+
else
|
|
426
|
+
{
|
|
427
|
+
freshPackSoftSortApiObject.completed = false;
|
|
336
428
|
}
|
|
337
429
|
|
|
338
|
-
return
|
|
430
|
+
return freshPackSoftSortApiObject;
|
|
339
431
|
}());
|
|
340
432
|
}
|
|
341
433
|
|
|
@@ -7,10 +7,12 @@
|
|
|
7
7
|
/**
|
|
8
8
|
* @namespace Models.Packhouse.Site
|
|
9
9
|
*/
|
|
10
|
+
import BinTipBarcodeScannerModel from './BinTipBarcodeScannerModel';
|
|
10
11
|
import BinTipBinCardModel from './BinTipBinCardModel';
|
|
11
12
|
import BinTipBinModel from './BinTipBinModel';
|
|
12
13
|
import BinTipWeightModel from './BinTipWeightModel';
|
|
13
14
|
import CompacSizerBatchModel from './CompacSizerBatchModel';
|
|
15
|
+
import CompacSizerBinWeightModel from './CompacSizerBinWeightModel';
|
|
14
16
|
import CompacSizerModel from './CompacSizerModel';
|
|
15
17
|
import CompacSizerOutletProductChangeModel from './CompacSizerOutletProductChangeModel';
|
|
16
18
|
import CompacSizerOutletTypeChangeModel from './CompacSizerOutletTypeChangeModel';
|
|
@@ -41,10 +43,12 @@ import SoftSortPackrunSummaryModel from './SoftSortPackrunSummaryModel';
|
|
|
41
43
|
import VarietyModel from './VarietyModel';
|
|
42
44
|
|
|
43
45
|
const Site = {
|
|
46
|
+
BinTipBarcodeScannerModel,
|
|
44
47
|
BinTipBinCardModel,
|
|
45
48
|
BinTipBinModel,
|
|
46
49
|
BinTipWeightModel,
|
|
47
50
|
CompacSizerBatchModel,
|
|
51
|
+
CompacSizerBinWeightModel,
|
|
48
52
|
CompacSizerModel,
|
|
49
53
|
CompacSizerOutletProductChangeModel,
|
|
50
54
|
CompacSizerOutletTypeChangeModel,
|
package/src/PackageVersion.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '2.3.
|
|
2
|
+
export const version = '2.3.19';
|