@ricado/api-client 2.5.11 → 2.5.13

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.
@@ -222,7 +222,7 @@ class PackingLineModel extends BaseModel
222
222
  /**
223
223
  * The FreshQuality Integration Configuration for this Packing Line
224
224
  *
225
- * @type {?{points: {currentPackrunSamples: number, apiCommunicationStatus: number, currentPackrunMajorPackingDefects: number, currentPackrunMinorPackingDefects: number, currentPackrunTotalPackingDefects: number, currentPackrunFutureStorageDefects: number, currentPackrunMajorPackingDefectsCount: number, currentPackrunMinorPackingDefectsCount: number, currentPackrunTotalPackingDefectsCount: number, currentPackrunFutureStorageDefectsCount: number, currentPackrunRejectAnalysisSamples: ?number, sampleTypes: ?number}, enabled: boolean, username: string, password: string, apiBaseUrl: string, sampleTypeIds: number[], rejectAnalysisSampleTypeIds: number[]}}
225
+ * @type {?{points: {currentPackrunSamples: number, apiCommunicationStatus: number, currentPackrunMajorPackingDefects: number, currentPackrunMinorPackingDefects: number, currentPackrunTotalPackingDefects: number, currentPackrunFutureStorageDefects: number, currentPackrunMajorPackingDefectsCount: number, currentPackrunMinorPackingDefectsCount: number, currentPackrunTotalPackingDefectsCount: number, currentPackrunFutureStorageDefectsCount: number, currentPackrunRejectAnalysisSamples: ?number, currentPackrunMaturityAreaSamples: ?number, sampleTypes: ?number}, enabled: boolean, username: string, password: string, apiBaseUrl: string, sampleTypeIds: number[], rejectAnalysisSampleTypeIds: number[], maturityAreaSampleTypeIds: number[]}}
226
226
  * @public
227
227
  */
228
228
  this.freshQualityIntegration = null;
@@ -6426,6 +6426,27 @@ class PackingLineModel extends BaseModel
6426
6426
  pointsObject.currentPackrunRejectAnalysisSamples = null;
6427
6427
  }
6428
6428
 
6429
+ if(typeof jsonObject['freshQualityIntegration'].points === 'object' && 'currentPackrunMaturityAreaSamples' in jsonObject['freshQualityIntegration'].points)
6430
+ {
6431
+ pointsObject.currentPackrunMaturityAreaSamples = (function(){
6432
+ if(jsonObject['freshQualityIntegration'].points.currentPackrunMaturityAreaSamples === null)
6433
+ {
6434
+ return null;
6435
+ }
6436
+
6437
+ if(typeof jsonObject['freshQualityIntegration'].points.currentPackrunMaturityAreaSamples !== 'number')
6438
+ {
6439
+ return Number.isInteger(Number(jsonObject['freshQualityIntegration'].points.currentPackrunMaturityAreaSamples)) ? Number(jsonObject['freshQualityIntegration'].points.currentPackrunMaturityAreaSamples) : Math.floor(Number(jsonObject['freshQualityIntegration'].points.currentPackrunMaturityAreaSamples));
6440
+ }
6441
+
6442
+ return Number.isInteger(jsonObject['freshQualityIntegration'].points.currentPackrunMaturityAreaSamples) ? jsonObject['freshQualityIntegration'].points.currentPackrunMaturityAreaSamples : Math.floor(jsonObject['freshQualityIntegration'].points.currentPackrunMaturityAreaSamples);
6443
+ }());
6444
+ }
6445
+ else
6446
+ {
6447
+ pointsObject.currentPackrunMaturityAreaSamples = null;
6448
+ }
6449
+
6429
6450
  if(typeof jsonObject['freshQualityIntegration'].points === 'object' && 'sampleTypes' in jsonObject['freshQualityIntegration'].points)
6430
6451
  {
6431
6452
  pointsObject.sampleTypes = (function(){
@@ -6477,6 +6498,8 @@ class PackingLineModel extends BaseModel
6477
6498
 
6478
6499
  pointsDefaultValue.currentPackrunRejectAnalysisSamples = null;
6479
6500
 
6501
+ pointsDefaultValue.currentPackrunMaturityAreaSamples = null;
6502
+
6480
6503
  pointsDefaultValue.sampleTypes = null;
6481
6504
 
6482
6505
  return pointsDefaultValue;
@@ -6596,6 +6619,31 @@ class PackingLineModel extends BaseModel
6596
6619
  {
6597
6620
  freshQualityIntegrationObject.rejectAnalysisSampleTypeIds = [];
6598
6621
  }
6622
+
6623
+ if(typeof jsonObject['freshQualityIntegration'] === 'object' && 'maturityAreaSampleTypeIds' in jsonObject['freshQualityIntegration'])
6624
+ {
6625
+ freshQualityIntegrationObject.maturityAreaSampleTypeIds = (function(){
6626
+ if(Array.isArray(jsonObject['freshQualityIntegration'].maturityAreaSampleTypeIds) !== true)
6627
+ {
6628
+ return [];
6629
+ }
6630
+
6631
+ return jsonObject['freshQualityIntegration'].maturityAreaSampleTypeIds.map((maturityAreaSampleTypeIdsItem) => {
6632
+ return (function(){
6633
+ if(typeof maturityAreaSampleTypeIdsItem !== 'number')
6634
+ {
6635
+ return Number.isInteger(Number(maturityAreaSampleTypeIdsItem)) ? Number(maturityAreaSampleTypeIdsItem) : Math.floor(Number(maturityAreaSampleTypeIdsItem));
6636
+ }
6637
+
6638
+ return Number.isInteger(maturityAreaSampleTypeIdsItem) ? maturityAreaSampleTypeIdsItem : Math.floor(maturityAreaSampleTypeIdsItem);
6639
+ }());
6640
+ });
6641
+ }());
6642
+ }
6643
+ else
6644
+ {
6645
+ freshQualityIntegrationObject.maturityAreaSampleTypeIds = [];
6646
+ }
6599
6647
 
6600
6648
  return freshQualityIntegrationObject;
6601
6649
  }());
@@ -179,6 +179,14 @@ class ShiftModel extends BaseModel
179
179
  return scheduleDefaultValue;
180
180
  }());
181
181
 
182
+ /**
183
+ * The Score Weightings used for this Shift. Represented as a Number between 0.0 and 1.0
184
+ *
185
+ * @type {?{class1TraysPerHour: number, costPerTray: number, qualityR600Ideal: number, customQualities: Array<{id: string, weighting: number}>}}
186
+ * @public
187
+ */
188
+ this.scoreWeightings = null;
189
+
182
190
  /**
183
191
  * The Status of this Shift
184
192
  *
@@ -687,6 +695,122 @@ class ShiftModel extends BaseModel
687
695
  }());
688
696
  }
689
697
 
698
+ if('scoreWeightings' in jsonObject)
699
+ {
700
+ model.scoreWeightings = (function(){
701
+ if(jsonObject['scoreWeightings'] === null)
702
+ {
703
+ return null;
704
+ }
705
+
706
+ let scoreWeightingsObject = {};
707
+
708
+ if(typeof jsonObject['scoreWeightings'] === 'object' && 'class1TraysPerHour' in jsonObject['scoreWeightings'])
709
+ {
710
+ scoreWeightingsObject.class1TraysPerHour = (function(){
711
+ if(typeof jsonObject['scoreWeightings'].class1TraysPerHour !== 'number')
712
+ {
713
+ return Number(jsonObject['scoreWeightings'].class1TraysPerHour);
714
+ }
715
+
716
+ return jsonObject['scoreWeightings'].class1TraysPerHour;
717
+ }());
718
+ }
719
+ else
720
+ {
721
+ scoreWeightingsObject.class1TraysPerHour = 0;
722
+ }
723
+
724
+ if(typeof jsonObject['scoreWeightings'] === 'object' && 'costPerTray' in jsonObject['scoreWeightings'])
725
+ {
726
+ scoreWeightingsObject.costPerTray = (function(){
727
+ if(typeof jsonObject['scoreWeightings'].costPerTray !== 'number')
728
+ {
729
+ return Number(jsonObject['scoreWeightings'].costPerTray);
730
+ }
731
+
732
+ return jsonObject['scoreWeightings'].costPerTray;
733
+ }());
734
+ }
735
+ else
736
+ {
737
+ scoreWeightingsObject.costPerTray = 0;
738
+ }
739
+
740
+ if(typeof jsonObject['scoreWeightings'] === 'object' && 'qualityR600Ideal' in jsonObject['scoreWeightings'])
741
+ {
742
+ scoreWeightingsObject.qualityR600Ideal = (function(){
743
+ if(typeof jsonObject['scoreWeightings'].qualityR600Ideal !== 'number')
744
+ {
745
+ return Number(jsonObject['scoreWeightings'].qualityR600Ideal);
746
+ }
747
+
748
+ return jsonObject['scoreWeightings'].qualityR600Ideal;
749
+ }());
750
+ }
751
+ else
752
+ {
753
+ scoreWeightingsObject.qualityR600Ideal = 0;
754
+ }
755
+
756
+ if(typeof jsonObject['scoreWeightings'] === 'object' && 'customQualities' in jsonObject['scoreWeightings'])
757
+ {
758
+ scoreWeightingsObject.customQualities = (function(){
759
+ if(Array.isArray(jsonObject['scoreWeightings'].customQualities) !== true)
760
+ {
761
+ return [];
762
+ }
763
+
764
+ return jsonObject['scoreWeightings'].customQualities.map((customQualitiesItem) => {
765
+ return (function(){
766
+ let customQualitiesItemObject = {};
767
+
768
+ if(typeof customQualitiesItem === 'object' && 'id' in customQualitiesItem)
769
+ {
770
+ customQualitiesItemObject.id = (function(){
771
+ if(typeof customQualitiesItem.id !== 'string')
772
+ {
773
+ return String(customQualitiesItem.id);
774
+ }
775
+
776
+ return customQualitiesItem.id;
777
+ }());
778
+ }
779
+ else
780
+ {
781
+ customQualitiesItemObject.id = "";
782
+ }
783
+
784
+ if(typeof customQualitiesItem === 'object' && 'weighting' in customQualitiesItem)
785
+ {
786
+ customQualitiesItemObject.weighting = (function(){
787
+ if(typeof customQualitiesItem.weighting !== 'number')
788
+ {
789
+ return Number(customQualitiesItem.weighting);
790
+ }
791
+
792
+ return customQualitiesItem.weighting;
793
+ }());
794
+ }
795
+ else
796
+ {
797
+ customQualitiesItemObject.weighting = 0;
798
+ }
799
+
800
+ return customQualitiesItemObject;
801
+ }());
802
+ });
803
+ }());
804
+ }
805
+ else
806
+ {
807
+ scoreWeightingsObject.customQualities = [];
808
+ }
809
+
810
+ return scoreWeightingsObject;
811
+ }());
812
+ }
813
+
690
814
  if('status' in jsonObject)
691
815
  {
692
816
  model.status = (function(){
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '2.5.11';
2
+ export const version = '2.5.13';
package/types/tslint.json CHANGED
@@ -12,6 +12,8 @@
12
12
  "strict-export-declare-modifiers": false,
13
13
  "array-type": false,
14
14
  "interface-over-type-literal": false,
15
- "redundant-undefined": false
15
+ "redundant-undefined": false,
16
+ "no-unnecessary-qualifier": false,
17
+ "unnecessary-bind": false
16
18
  }
17
19
  }