@ricado/api-client 2.1.0 → 2.1.1
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/README.md +5 -7
- package/dist/ricado.api.client.js +1 -1
- package/lib/Controllers/Packhouse/Site/RejectBinScaleController.js +24 -2
- package/lib/Controllers/Packhouse/Site/SoftSortBeltController.js +453 -0
- package/lib/Controllers/Packhouse/Site/index.js +3 -0
- package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +260 -4
- package/lib/Models/Packhouse/Site/SoftSortBeltModel.js +235 -0
- package/lib/Models/Packhouse/Site/index.js +3 -0
- package/lib/PackageVersion.js +1 -1
- package/lib/index.d.ts +471 -3
- package/package.json +1 -1
- package/src/Controllers/Packhouse/Site/RejectBinScaleController.js +24 -2
- package/src/Controllers/Packhouse/Site/SoftSortBeltController.js +474 -0
- package/src/Controllers/Packhouse/Site/index.js +2 -0
- package/src/Models/Packhouse/Site/RejectBinScaleModel.js +297 -4
- package/src/Models/Packhouse/Site/SoftSortBeltModel.js +215 -0
- package/src/Models/Packhouse/Site/index.js +2 -0
- package/src/PackageVersion.js +1 -1
|
@@ -92,11 +92,99 @@ class RejectBinScaleModel extends BaseModel
|
|
|
92
92
|
/**
|
|
93
93
|
* The Auto Packrun Change Configuration for this Reject Bin Scale
|
|
94
94
|
*
|
|
95
|
-
* @type {?number}
|
|
95
|
+
* @type {?{delay: ?number}}
|
|
96
96
|
* @public
|
|
97
97
|
*/
|
|
98
98
|
this.autoPackrunChange = undefined;
|
|
99
99
|
|
|
100
|
+
/**
|
|
101
|
+
* Whether this Reject Bin Scale supports Live Weighing
|
|
102
|
+
*
|
|
103
|
+
* @type {?boolean}
|
|
104
|
+
* @public
|
|
105
|
+
*/
|
|
106
|
+
this.supportsLiveWeighing = undefined;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* The Minimum Weight Change Required to Automatically Start Live Weighing
|
|
110
|
+
*
|
|
111
|
+
* @type {?number}
|
|
112
|
+
* @public
|
|
113
|
+
*/
|
|
114
|
+
this.autoWeighingStartThreshold = undefined;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* The Delay in Milliseconds before Auto Live Weighing would Start
|
|
118
|
+
*
|
|
119
|
+
* @type {?number}
|
|
120
|
+
* @public
|
|
121
|
+
*/
|
|
122
|
+
this.autoWeighingStartDelay = undefined;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* The Minimum Weight Change Required to Automatically Finish Live Weighing
|
|
126
|
+
*
|
|
127
|
+
* @type {?number}
|
|
128
|
+
* @public
|
|
129
|
+
*/
|
|
130
|
+
this.autoWeighingFinishThreshold = undefined;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* The Delay in Milliseconds before Auto Live Weighing would Finish
|
|
134
|
+
*
|
|
135
|
+
* @type {?number}
|
|
136
|
+
* @public
|
|
137
|
+
*/
|
|
138
|
+
this.autoWeighingFinishDelay = undefined;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* The Maximum Duration in Milliseconds before a Manual Intervention would end
|
|
142
|
+
*
|
|
143
|
+
* @type {?number}
|
|
144
|
+
* @public
|
|
145
|
+
*/
|
|
146
|
+
this.manualInterventionMaximumDuration = undefined;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* The Maximum Weight Increase allowed within a single Live Weighing Update Interval
|
|
150
|
+
*
|
|
151
|
+
* @type {?number}
|
|
152
|
+
* @public
|
|
153
|
+
*/
|
|
154
|
+
this.liveWeighingIncreaseTolerance = undefined;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* The Maximum Weight Decrease allowed within a single Live Weighing Update Interval
|
|
158
|
+
*
|
|
159
|
+
* @type {?number}
|
|
160
|
+
* @public
|
|
161
|
+
*/
|
|
162
|
+
this.liveWeighingDecreaseTolerance = undefined;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* The Interval in Milliseconds between Live Weighing Updates
|
|
166
|
+
*
|
|
167
|
+
* @type {?number}
|
|
168
|
+
* @public
|
|
169
|
+
*/
|
|
170
|
+
this.liveWeighingUpdateInterval = undefined;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Whether the Loadcell Stable Status is used to ignore Changes during Live Weighing
|
|
174
|
+
*
|
|
175
|
+
* @type {?boolean}
|
|
176
|
+
* @public
|
|
177
|
+
*/
|
|
178
|
+
this.liveWeighingUsesStableStatus = undefined;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* The Maximum Weight Change allowed while Live Weighing before an Incorrect Operation is Logged
|
|
182
|
+
*
|
|
183
|
+
* @type {?number}
|
|
184
|
+
* @public
|
|
185
|
+
*/
|
|
186
|
+
this.incorrectOperationTolerance = undefined;
|
|
187
|
+
|
|
100
188
|
/**
|
|
101
189
|
* The FreshPack Integration Configuration for this Reject Bin Scale
|
|
102
190
|
*
|
|
@@ -287,12 +375,217 @@ class RejectBinScaleModel extends BaseModel
|
|
|
287
375
|
return null;
|
|
288
376
|
}
|
|
289
377
|
|
|
290
|
-
|
|
378
|
+
let autoPackrunChangeObject = {};
|
|
379
|
+
|
|
380
|
+
if(typeof jsonObject['autoPackrunChange'] === 'object' && 'delay' in jsonObject['autoPackrunChange'])
|
|
381
|
+
{
|
|
382
|
+
autoPackrunChangeObject.delay = (function(){
|
|
383
|
+
if(jsonObject['autoPackrunChange'].delay === null)
|
|
384
|
+
{
|
|
385
|
+
return null;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
if(typeof jsonObject['autoPackrunChange'].delay !== 'number')
|
|
389
|
+
{
|
|
390
|
+
return Number.isInteger(Number(jsonObject['autoPackrunChange'].delay)) ? Number(jsonObject['autoPackrunChange'].delay) : Math.floor(Number(jsonObject['autoPackrunChange'].delay));
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
return Number.isInteger(jsonObject['autoPackrunChange'].delay) ? jsonObject['autoPackrunChange'].delay : Math.floor(jsonObject['autoPackrunChange'].delay);
|
|
394
|
+
}());
|
|
395
|
+
}
|
|
396
|
+
else
|
|
397
|
+
{
|
|
398
|
+
autoPackrunChangeObject.delay = null;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
return autoPackrunChangeObject;
|
|
402
|
+
}());
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
if('supportsLiveWeighing' in jsonObject)
|
|
406
|
+
{
|
|
407
|
+
model.supportsLiveWeighing = (function(){
|
|
408
|
+
if(jsonObject['supportsLiveWeighing'] === null)
|
|
409
|
+
{
|
|
410
|
+
return null;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
if(typeof jsonObject['supportsLiveWeighing'] !== 'boolean')
|
|
414
|
+
{
|
|
415
|
+
return Boolean(jsonObject['supportsLiveWeighing']);
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
return jsonObject['supportsLiveWeighing'];
|
|
419
|
+
}());
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
if('autoWeighingStartThreshold' in jsonObject)
|
|
423
|
+
{
|
|
424
|
+
model.autoWeighingStartThreshold = (function(){
|
|
425
|
+
if(jsonObject['autoWeighingStartThreshold'] === null)
|
|
426
|
+
{
|
|
427
|
+
return null;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
if(typeof jsonObject['autoWeighingStartThreshold'] !== 'number')
|
|
431
|
+
{
|
|
432
|
+
return Number(jsonObject['autoWeighingStartThreshold']);
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
return jsonObject['autoWeighingStartThreshold'];
|
|
436
|
+
}());
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
if('autoWeighingStartDelay' in jsonObject)
|
|
440
|
+
{
|
|
441
|
+
model.autoWeighingStartDelay = (function(){
|
|
442
|
+
if(jsonObject['autoWeighingStartDelay'] === null)
|
|
443
|
+
{
|
|
444
|
+
return null;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
if(typeof jsonObject['autoWeighingStartDelay'] !== 'number')
|
|
448
|
+
{
|
|
449
|
+
return Number.isInteger(Number(jsonObject['autoWeighingStartDelay'])) ? Number(jsonObject['autoWeighingStartDelay']) : Math.floor(Number(jsonObject['autoWeighingStartDelay']));
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
return Number.isInteger(jsonObject['autoWeighingStartDelay']) ? jsonObject['autoWeighingStartDelay'] : Math.floor(jsonObject['autoWeighingStartDelay']);
|
|
453
|
+
}());
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
if('autoWeighingFinishThreshold' in jsonObject)
|
|
457
|
+
{
|
|
458
|
+
model.autoWeighingFinishThreshold = (function(){
|
|
459
|
+
if(jsonObject['autoWeighingFinishThreshold'] === null)
|
|
460
|
+
{
|
|
461
|
+
return null;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
if(typeof jsonObject['autoWeighingFinishThreshold'] !== 'number')
|
|
465
|
+
{
|
|
466
|
+
return Number(jsonObject['autoWeighingFinishThreshold']);
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
return jsonObject['autoWeighingFinishThreshold'];
|
|
470
|
+
}());
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
if('autoWeighingFinishDelay' in jsonObject)
|
|
474
|
+
{
|
|
475
|
+
model.autoWeighingFinishDelay = (function(){
|
|
476
|
+
if(jsonObject['autoWeighingFinishDelay'] === null)
|
|
477
|
+
{
|
|
478
|
+
return null;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
if(typeof jsonObject['autoWeighingFinishDelay'] !== 'number')
|
|
482
|
+
{
|
|
483
|
+
return Number.isInteger(Number(jsonObject['autoWeighingFinishDelay'])) ? Number(jsonObject['autoWeighingFinishDelay']) : Math.floor(Number(jsonObject['autoWeighingFinishDelay']));
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
return Number.isInteger(jsonObject['autoWeighingFinishDelay']) ? jsonObject['autoWeighingFinishDelay'] : Math.floor(jsonObject['autoWeighingFinishDelay']);
|
|
487
|
+
}());
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
if('manualInterventionMaximumDuration' in jsonObject)
|
|
491
|
+
{
|
|
492
|
+
model.manualInterventionMaximumDuration = (function(){
|
|
493
|
+
if(jsonObject['manualInterventionMaximumDuration'] === null)
|
|
494
|
+
{
|
|
495
|
+
return null;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
if(typeof jsonObject['manualInterventionMaximumDuration'] !== 'number')
|
|
499
|
+
{
|
|
500
|
+
return Number.isInteger(Number(jsonObject['manualInterventionMaximumDuration'])) ? Number(jsonObject['manualInterventionMaximumDuration']) : Math.floor(Number(jsonObject['manualInterventionMaximumDuration']));
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
return Number.isInteger(jsonObject['manualInterventionMaximumDuration']) ? jsonObject['manualInterventionMaximumDuration'] : Math.floor(jsonObject['manualInterventionMaximumDuration']);
|
|
504
|
+
}());
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
if('liveWeighingIncreaseTolerance' in jsonObject)
|
|
508
|
+
{
|
|
509
|
+
model.liveWeighingIncreaseTolerance = (function(){
|
|
510
|
+
if(jsonObject['liveWeighingIncreaseTolerance'] === null)
|
|
511
|
+
{
|
|
512
|
+
return null;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
if(typeof jsonObject['liveWeighingIncreaseTolerance'] !== 'number')
|
|
516
|
+
{
|
|
517
|
+
return Number(jsonObject['liveWeighingIncreaseTolerance']);
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
return jsonObject['liveWeighingIncreaseTolerance'];
|
|
521
|
+
}());
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
if('liveWeighingDecreaseTolerance' in jsonObject)
|
|
525
|
+
{
|
|
526
|
+
model.liveWeighingDecreaseTolerance = (function(){
|
|
527
|
+
if(jsonObject['liveWeighingDecreaseTolerance'] === null)
|
|
528
|
+
{
|
|
529
|
+
return null;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
if(typeof jsonObject['liveWeighingDecreaseTolerance'] !== 'number')
|
|
533
|
+
{
|
|
534
|
+
return Number(jsonObject['liveWeighingDecreaseTolerance']);
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
return jsonObject['liveWeighingDecreaseTolerance'];
|
|
538
|
+
}());
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
if('liveWeighingUpdateInterval' in jsonObject)
|
|
542
|
+
{
|
|
543
|
+
model.liveWeighingUpdateInterval = (function(){
|
|
544
|
+
if(jsonObject['liveWeighingUpdateInterval'] === null)
|
|
545
|
+
{
|
|
546
|
+
return null;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
if(typeof jsonObject['liveWeighingUpdateInterval'] !== 'number')
|
|
550
|
+
{
|
|
551
|
+
return Number.isInteger(Number(jsonObject['liveWeighingUpdateInterval'])) ? Number(jsonObject['liveWeighingUpdateInterval']) : Math.floor(Number(jsonObject['liveWeighingUpdateInterval']));
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
return Number.isInteger(jsonObject['liveWeighingUpdateInterval']) ? jsonObject['liveWeighingUpdateInterval'] : Math.floor(jsonObject['liveWeighingUpdateInterval']);
|
|
555
|
+
}());
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
if('liveWeighingUsesStableStatus' in jsonObject)
|
|
559
|
+
{
|
|
560
|
+
model.liveWeighingUsesStableStatus = (function(){
|
|
561
|
+
if(jsonObject['liveWeighingUsesStableStatus'] === null)
|
|
562
|
+
{
|
|
563
|
+
return null;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
if(typeof jsonObject['liveWeighingUsesStableStatus'] !== 'boolean')
|
|
567
|
+
{
|
|
568
|
+
return Boolean(jsonObject['liveWeighingUsesStableStatus']);
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
return jsonObject['liveWeighingUsesStableStatus'];
|
|
572
|
+
}());
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
if('incorrectOperationTolerance' in jsonObject)
|
|
576
|
+
{
|
|
577
|
+
model.incorrectOperationTolerance = (function(){
|
|
578
|
+
if(jsonObject['incorrectOperationTolerance'] === null)
|
|
579
|
+
{
|
|
580
|
+
return null;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
if(typeof jsonObject['incorrectOperationTolerance'] !== 'number')
|
|
291
584
|
{
|
|
292
|
-
return Number
|
|
585
|
+
return Number(jsonObject['incorrectOperationTolerance']);
|
|
293
586
|
}
|
|
294
587
|
|
|
295
|
-
return
|
|
588
|
+
return jsonObject['incorrectOperationTolerance'];
|
|
296
589
|
}());
|
|
297
590
|
}
|
|
298
591
|
|
|
@@ -0,0 +1,215 @@
|
|
|
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 Soft Sort Belt
|
|
11
|
+
*
|
|
12
|
+
* @class
|
|
13
|
+
* @hideconstructor
|
|
14
|
+
* @extends BaseModel
|
|
15
|
+
*/
|
|
16
|
+
class SoftSortBeltModel extends BaseModel
|
|
17
|
+
{
|
|
18
|
+
/**
|
|
19
|
+
* SoftSortBeltModel Constructor
|
|
20
|
+
*
|
|
21
|
+
* @protected
|
|
22
|
+
* @param {number} siteId The Site ID associated with this Soft Sort Belt
|
|
23
|
+
*/
|
|
24
|
+
constructor(siteId)
|
|
25
|
+
{
|
|
26
|
+
super();
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* The Soft Sort Belt ID
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @public
|
|
33
|
+
*/
|
|
34
|
+
this.id = undefined;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* The RTU this Soft Sort Belt belongs to
|
|
38
|
+
*
|
|
39
|
+
* @type {?number}
|
|
40
|
+
* @public
|
|
41
|
+
*/
|
|
42
|
+
this.rtuId = undefined;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* The Name of this Soft Sort Belt
|
|
46
|
+
*
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @public
|
|
49
|
+
*/
|
|
50
|
+
this.name = undefined;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* The Points used by this Soft Sort Belt
|
|
54
|
+
*
|
|
55
|
+
* @type {Object}
|
|
56
|
+
* @public
|
|
57
|
+
*/
|
|
58
|
+
this.points = undefined;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* The Packing Line that owns this Soft Sort Belt
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @public
|
|
65
|
+
*/
|
|
66
|
+
this.packingLineId = undefined;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Whether the Soft Sort Belt has been deleted
|
|
70
|
+
*
|
|
71
|
+
* @type {boolean}
|
|
72
|
+
* @public
|
|
73
|
+
*/
|
|
74
|
+
this.deleted = undefined;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* When the Soft Sort Belt was last updated
|
|
78
|
+
*
|
|
79
|
+
* @type {Date}
|
|
80
|
+
* @public
|
|
81
|
+
*/
|
|
82
|
+
this.updateTimestamp = undefined;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* The Site ID associated with this Soft Sort Belt
|
|
86
|
+
*
|
|
87
|
+
* @type {number}
|
|
88
|
+
* @public
|
|
89
|
+
*/
|
|
90
|
+
this.siteId = siteId;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Create a new **SoftSortBeltModel** from a JSON Object or JSON String
|
|
95
|
+
*
|
|
96
|
+
* @static
|
|
97
|
+
* @public
|
|
98
|
+
* @param {Object<string, any>|string} json A JSON Object or JSON String
|
|
99
|
+
* @param {number} siteId The Site ID associated with this Soft Sort Belt
|
|
100
|
+
* @return {SoftSortBeltModel}
|
|
101
|
+
*/
|
|
102
|
+
static fromJSON(json, siteId)
|
|
103
|
+
{
|
|
104
|
+
let model = new SoftSortBeltModel(siteId);
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* The JSON Object
|
|
108
|
+
*
|
|
109
|
+
* @type {Object<string, any>}
|
|
110
|
+
*/
|
|
111
|
+
let jsonObject = {};
|
|
112
|
+
|
|
113
|
+
if(typeof json === 'string')
|
|
114
|
+
{
|
|
115
|
+
jsonObject = JSON.parse(json);
|
|
116
|
+
}
|
|
117
|
+
else if(typeof json === 'object')
|
|
118
|
+
{
|
|
119
|
+
jsonObject = json;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
if('id' in jsonObject)
|
|
123
|
+
{
|
|
124
|
+
model.id = (function(){
|
|
125
|
+
if(typeof jsonObject['id'] !== 'string')
|
|
126
|
+
{
|
|
127
|
+
return String(jsonObject['id']);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
return jsonObject['id'];
|
|
131
|
+
}());
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
if('rtuId' in jsonObject)
|
|
135
|
+
{
|
|
136
|
+
model.rtuId = (function(){
|
|
137
|
+
if(jsonObject['rtuId'] === null)
|
|
138
|
+
{
|
|
139
|
+
return null;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
if(typeof jsonObject['rtuId'] !== 'number')
|
|
143
|
+
{
|
|
144
|
+
return Number.isInteger(Number(jsonObject['rtuId'])) ? Number(jsonObject['rtuId']) : Math.floor(Number(jsonObject['rtuId']));
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
return Number.isInteger(jsonObject['rtuId']) ? jsonObject['rtuId'] : Math.floor(jsonObject['rtuId']);
|
|
148
|
+
}());
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
if('name' in jsonObject)
|
|
152
|
+
{
|
|
153
|
+
model.name = (function(){
|
|
154
|
+
if(typeof jsonObject['name'] !== 'string')
|
|
155
|
+
{
|
|
156
|
+
return String(jsonObject['name']);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
return jsonObject['name'];
|
|
160
|
+
}());
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
if('points' in jsonObject)
|
|
164
|
+
{
|
|
165
|
+
model.points = (function(){
|
|
166
|
+
if(typeof jsonObject['points'] !== 'object')
|
|
167
|
+
{
|
|
168
|
+
return Object(jsonObject['points']);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
return jsonObject['points'];
|
|
172
|
+
}());
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
if('packingLineId' in jsonObject)
|
|
176
|
+
{
|
|
177
|
+
model.packingLineId = (function(){
|
|
178
|
+
if(typeof jsonObject['packingLineId'] !== 'string')
|
|
179
|
+
{
|
|
180
|
+
return String(jsonObject['packingLineId']);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
return jsonObject['packingLineId'];
|
|
184
|
+
}());
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
if('deleted' in jsonObject)
|
|
188
|
+
{
|
|
189
|
+
model.deleted = (function(){
|
|
190
|
+
if(typeof jsonObject['deleted'] !== 'boolean')
|
|
191
|
+
{
|
|
192
|
+
return Boolean(jsonObject['deleted']);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
return jsonObject['deleted'];
|
|
196
|
+
}());
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
if('updateTimestamp' in jsonObject)
|
|
200
|
+
{
|
|
201
|
+
model.updateTimestamp = (function(){
|
|
202
|
+
if(typeof jsonObject['updateTimestamp'] !== 'string')
|
|
203
|
+
{
|
|
204
|
+
return new Date(String(jsonObject['updateTimestamp']));
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
return new Date(jsonObject['updateTimestamp']);
|
|
208
|
+
}());
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
return model;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export default SoftSortBeltModel;
|
|
@@ -26,6 +26,7 @@ import RejectBinWeightModel from './RejectBinWeightModel';
|
|
|
26
26
|
import ShiftFocusMeetingModel from './ShiftFocusMeetingModel';
|
|
27
27
|
import ShiftHourlyEntryModel from './ShiftHourlyEntryModel';
|
|
28
28
|
import ShiftModel from './ShiftModel';
|
|
29
|
+
import SoftSortBeltModel from './SoftSortBeltModel';
|
|
29
30
|
import VarietyModel from './VarietyModel';
|
|
30
31
|
|
|
31
32
|
const Site = {
|
|
@@ -48,6 +49,7 @@ const Site = {
|
|
|
48
49
|
ShiftFocusMeetingModel,
|
|
49
50
|
ShiftHourlyEntryModel,
|
|
50
51
|
ShiftModel,
|
|
52
|
+
SoftSortBeltModel,
|
|
51
53
|
VarietyModel,
|
|
52
54
|
};
|
|
53
55
|
|
package/src/PackageVersion.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// generated by genversion
|
|
2
|
-
export const version = '2.1.
|
|
2
|
+
export const version = '2.1.1';
|