@ricado/api-client 2.7.4 → 2.7.5

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.
@@ -121,6 +121,14 @@ class PackrunModel extends BaseModel
121
121
  */
122
122
  this.allocatedBins = 0;
123
123
 
124
+ /**
125
+ * The Single Letter Starting Time Batch for this Packrun (Starts at A and proceeds through to Z)
126
+ *
127
+ * @type {?string}
128
+ * @public
129
+ */
130
+ this.startingTimeBatch = null;
131
+
124
132
  /**
125
133
  * The Time Batches for this Packrun
126
134
  *
@@ -129,6 +137,22 @@ class PackrunModel extends BaseModel
129
137
  */
130
138
  this.timeBatches = [];
131
139
 
140
+ /**
141
+ * The Source of Data when this Packrun was Created
142
+ *
143
+ * @type {?string}
144
+ * @public
145
+ */
146
+ this.source = null;
147
+
148
+ /**
149
+ * Whether this Packrun should be Automatically Updated with Data from a matching Scheduled Packrun in FreshPack
150
+ *
151
+ * @type {?boolean}
152
+ * @public
153
+ */
154
+ this.allowFreshPackUpdates = null;
155
+
132
156
  /**
133
157
  * The FreshPack Grader ID associated with this Packrun
134
158
  *
@@ -153,6 +177,22 @@ class PackrunModel extends BaseModel
153
177
  */
154
178
  this.freshPackProduceCode = null;
155
179
 
180
+ /**
181
+ * The FreshPack Packing Schedule ID associated with this Packrun
182
+ *
183
+ * @type {?number}
184
+ * @public
185
+ */
186
+ this.freshPackPackingScheduleId = null;
187
+
188
+ /**
189
+ * The Number of Tipped Bins reported in FreshPack when this Packrun was Initially Created
190
+ *
191
+ * @type {?number}
192
+ * @public
193
+ */
194
+ this.freshPackInitialTippedBins = null;
195
+
156
196
  /**
157
197
  * Whether the Packrun has been deleted
158
198
  *
@@ -366,6 +406,23 @@ class PackrunModel extends BaseModel
366
406
  }());
367
407
  }
368
408
 
409
+ if('startingTimeBatch' in jsonObject)
410
+ {
411
+ model.startingTimeBatch = (function(){
412
+ if(jsonObject['startingTimeBatch'] === null)
413
+ {
414
+ return null;
415
+ }
416
+
417
+ if(typeof jsonObject['startingTimeBatch'] !== 'string')
418
+ {
419
+ return String(jsonObject['startingTimeBatch']);
420
+ }
421
+
422
+ return jsonObject['startingTimeBatch'];
423
+ }());
424
+ }
425
+
369
426
  if('timeBatches' in jsonObject)
370
427
  {
371
428
  model.timeBatches = (function(){
@@ -416,6 +473,40 @@ class PackrunModel extends BaseModel
416
473
  }());
417
474
  }
418
475
 
476
+ if('source' in jsonObject)
477
+ {
478
+ model.source = (function(){
479
+ if(jsonObject['source'] === null)
480
+ {
481
+ return null;
482
+ }
483
+
484
+ if(typeof jsonObject['source'] !== 'string')
485
+ {
486
+ return String(jsonObject['source']);
487
+ }
488
+
489
+ return jsonObject['source'];
490
+ }());
491
+ }
492
+
493
+ if('allowFreshPackUpdates' in jsonObject)
494
+ {
495
+ model.allowFreshPackUpdates = (function(){
496
+ if(jsonObject['allowFreshPackUpdates'] === null)
497
+ {
498
+ return null;
499
+ }
500
+
501
+ if(typeof jsonObject['allowFreshPackUpdates'] !== 'boolean')
502
+ {
503
+ return Boolean(jsonObject['allowFreshPackUpdates']);
504
+ }
505
+
506
+ return jsonObject['allowFreshPackUpdates'];
507
+ }());
508
+ }
509
+
419
510
  if('freshPackGraderId' in jsonObject)
420
511
  {
421
512
  model.freshPackGraderId = (function(){
@@ -467,6 +558,40 @@ class PackrunModel extends BaseModel
467
558
  }());
468
559
  }
469
560
 
561
+ if('freshPackPackingScheduleId' in jsonObject)
562
+ {
563
+ model.freshPackPackingScheduleId = (function(){
564
+ if(jsonObject['freshPackPackingScheduleId'] === null)
565
+ {
566
+ return null;
567
+ }
568
+
569
+ if(typeof jsonObject['freshPackPackingScheduleId'] !== 'number')
570
+ {
571
+ return Number.isInteger(Number(jsonObject['freshPackPackingScheduleId'])) ? Number(jsonObject['freshPackPackingScheduleId']) : Math.floor(Number(jsonObject['freshPackPackingScheduleId']));
572
+ }
573
+
574
+ return Number.isInteger(jsonObject['freshPackPackingScheduleId']) ? jsonObject['freshPackPackingScheduleId'] : Math.floor(jsonObject['freshPackPackingScheduleId']);
575
+ }());
576
+ }
577
+
578
+ if('freshPackInitialTippedBins' in jsonObject)
579
+ {
580
+ model.freshPackInitialTippedBins = (function(){
581
+ if(jsonObject['freshPackInitialTippedBins'] === null)
582
+ {
583
+ return null;
584
+ }
585
+
586
+ if(typeof jsonObject['freshPackInitialTippedBins'] !== 'number')
587
+ {
588
+ return Number.isInteger(Number(jsonObject['freshPackInitialTippedBins'])) ? Number(jsonObject['freshPackInitialTippedBins']) : Math.floor(Number(jsonObject['freshPackInitialTippedBins']));
589
+ }
590
+
591
+ return Number.isInteger(jsonObject['freshPackInitialTippedBins']) ? jsonObject['freshPackInitialTippedBins'] : Math.floor(jsonObject['freshPackInitialTippedBins']);
592
+ }());
593
+ }
594
+
470
595
  if('deleted' in jsonObject)
471
596
  {
472
597
  model.deleted = (function(){
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '2.7.4';
2
+ export const version = '2.7.5';