@ricado/api-client 2.5.4 → 2.5.6

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.
@@ -214,7 +214,7 @@ class PackingLineModel extends BaseModel
214
214
  /**
215
215
  * The FreshPack Integration Configuration for this Packing Line
216
216
  *
217
- * @type {?{points: {graders: number, binTypes: number, printerGroups: number, materialGroups: number, rejectCategories: number, productionFacilities: number, apiCommunicationStatus: number, currentPackrunClearanceSummary: number, nextPackrunClearanceSummary: number}, enabled: boolean, graderIds: number[], apiBaseUrl: string, computerName: string, productionFacilityId: number, classTypeRejectCategoryIds: Array<{classType: string, rejectCategoryId: number}>, packrunSourceTrayClassTypes: ?string[]}}
217
+ * @type {?{points: {graders: number, binTypes: number, printerGroups: number, materialGroups: number, rejectCategories: number, productionFacilities: number, marketHolds: number, apiCommunicationStatus: number, currentPackrunClearanceSummary: number, nextPackrunClearanceSummary: number, currentPackrunMarketHolds: ?number, nextPackrunMarketHolds: ?number, apiVersion: number, activePackrunName: number, activeTimeBatch: number}, enabled: boolean, graderIds: number[], apiBaseUrl: string, computerName: string, productionFacilityId: number, classTypeRejectCategoryIds: Array<{classType: string, rejectCategoryId: number}>, packrunSourceTrayClassTypes: ?string[]}}
218
218
  * @public
219
219
  */
220
220
  this.freshPackIntegration = null;
@@ -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}, enabled: boolean, username: string, password: string, apiBaseUrl: string, sampleTypeIds: 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, sampleTypes: number}, enabled: boolean, username: string, password: string, apiBaseUrl: string, sampleTypeIds: number[], rejectAnalysisSampleTypeIds: number[]}}
226
226
  * @public
227
227
  */
228
228
  this.freshQualityIntegration = null;
@@ -5287,6 +5287,22 @@ class PackingLineModel extends BaseModel
5287
5287
  pointsObject.productionFacilities = 0;
5288
5288
  }
5289
5289
 
5290
+ if(typeof jsonObject['freshPackIntegration'].points === 'object' && 'marketHolds' in jsonObject['freshPackIntegration'].points)
5291
+ {
5292
+ pointsObject.marketHolds = (function(){
5293
+ if(typeof jsonObject['freshPackIntegration'].points.marketHolds !== 'number')
5294
+ {
5295
+ return Number.isInteger(Number(jsonObject['freshPackIntegration'].points.marketHolds)) ? Number(jsonObject['freshPackIntegration'].points.marketHolds) : Math.floor(Number(jsonObject['freshPackIntegration'].points.marketHolds));
5296
+ }
5297
+
5298
+ return Number.isInteger(jsonObject['freshPackIntegration'].points.marketHolds) ? jsonObject['freshPackIntegration'].points.marketHolds : Math.floor(jsonObject['freshPackIntegration'].points.marketHolds);
5299
+ }());
5300
+ }
5301
+ else
5302
+ {
5303
+ pointsObject.marketHolds = 0;
5304
+ }
5305
+
5290
5306
  if(typeof jsonObject['freshPackIntegration'].points === 'object' && 'apiCommunicationStatus' in jsonObject['freshPackIntegration'].points)
5291
5307
  {
5292
5308
  pointsObject.apiCommunicationStatus = (function(){
@@ -5334,6 +5350,96 @@ class PackingLineModel extends BaseModel
5334
5350
  {
5335
5351
  pointsObject.nextPackrunClearanceSummary = 0;
5336
5352
  }
5353
+
5354
+ if(typeof jsonObject['freshPackIntegration'].points === 'object' && 'currentPackrunMarketHolds' in jsonObject['freshPackIntegration'].points)
5355
+ {
5356
+ pointsObject.currentPackrunMarketHolds = (function(){
5357
+ if(jsonObject['freshPackIntegration'].points.currentPackrunMarketHolds === null)
5358
+ {
5359
+ return null;
5360
+ }
5361
+
5362
+ if(typeof jsonObject['freshPackIntegration'].points.currentPackrunMarketHolds !== 'number')
5363
+ {
5364
+ return Number.isInteger(Number(jsonObject['freshPackIntegration'].points.currentPackrunMarketHolds)) ? Number(jsonObject['freshPackIntegration'].points.currentPackrunMarketHolds) : Math.floor(Number(jsonObject['freshPackIntegration'].points.currentPackrunMarketHolds));
5365
+ }
5366
+
5367
+ return Number.isInteger(jsonObject['freshPackIntegration'].points.currentPackrunMarketHolds) ? jsonObject['freshPackIntegration'].points.currentPackrunMarketHolds : Math.floor(jsonObject['freshPackIntegration'].points.currentPackrunMarketHolds);
5368
+ }());
5369
+ }
5370
+ else
5371
+ {
5372
+ pointsObject.currentPackrunMarketHolds = null;
5373
+ }
5374
+
5375
+ if(typeof jsonObject['freshPackIntegration'].points === 'object' && 'nextPackrunMarketHolds' in jsonObject['freshPackIntegration'].points)
5376
+ {
5377
+ pointsObject.nextPackrunMarketHolds = (function(){
5378
+ if(jsonObject['freshPackIntegration'].points.nextPackrunMarketHolds === null)
5379
+ {
5380
+ return null;
5381
+ }
5382
+
5383
+ if(typeof jsonObject['freshPackIntegration'].points.nextPackrunMarketHolds !== 'number')
5384
+ {
5385
+ return Number.isInteger(Number(jsonObject['freshPackIntegration'].points.nextPackrunMarketHolds)) ? Number(jsonObject['freshPackIntegration'].points.nextPackrunMarketHolds) : Math.floor(Number(jsonObject['freshPackIntegration'].points.nextPackrunMarketHolds));
5386
+ }
5387
+
5388
+ return Number.isInteger(jsonObject['freshPackIntegration'].points.nextPackrunMarketHolds) ? jsonObject['freshPackIntegration'].points.nextPackrunMarketHolds : Math.floor(jsonObject['freshPackIntegration'].points.nextPackrunMarketHolds);
5389
+ }());
5390
+ }
5391
+ else
5392
+ {
5393
+ pointsObject.nextPackrunMarketHolds = null;
5394
+ }
5395
+
5396
+ if(typeof jsonObject['freshPackIntegration'].points === 'object' && 'apiVersion' in jsonObject['freshPackIntegration'].points)
5397
+ {
5398
+ pointsObject.apiVersion = (function(){
5399
+ if(typeof jsonObject['freshPackIntegration'].points.apiVersion !== 'number')
5400
+ {
5401
+ return Number.isInteger(Number(jsonObject['freshPackIntegration'].points.apiVersion)) ? Number(jsonObject['freshPackIntegration'].points.apiVersion) : Math.floor(Number(jsonObject['freshPackIntegration'].points.apiVersion));
5402
+ }
5403
+
5404
+ return Number.isInteger(jsonObject['freshPackIntegration'].points.apiVersion) ? jsonObject['freshPackIntegration'].points.apiVersion : Math.floor(jsonObject['freshPackIntegration'].points.apiVersion);
5405
+ }());
5406
+ }
5407
+ else
5408
+ {
5409
+ pointsObject.apiVersion = 0;
5410
+ }
5411
+
5412
+ if(typeof jsonObject['freshPackIntegration'].points === 'object' && 'activePackrunName' in jsonObject['freshPackIntegration'].points)
5413
+ {
5414
+ pointsObject.activePackrunName = (function(){
5415
+ if(typeof jsonObject['freshPackIntegration'].points.activePackrunName !== 'number')
5416
+ {
5417
+ return Number.isInteger(Number(jsonObject['freshPackIntegration'].points.activePackrunName)) ? Number(jsonObject['freshPackIntegration'].points.activePackrunName) : Math.floor(Number(jsonObject['freshPackIntegration'].points.activePackrunName));
5418
+ }
5419
+
5420
+ return Number.isInteger(jsonObject['freshPackIntegration'].points.activePackrunName) ? jsonObject['freshPackIntegration'].points.activePackrunName : Math.floor(jsonObject['freshPackIntegration'].points.activePackrunName);
5421
+ }());
5422
+ }
5423
+ else
5424
+ {
5425
+ pointsObject.activePackrunName = 0;
5426
+ }
5427
+
5428
+ if(typeof jsonObject['freshPackIntegration'].points === 'object' && 'activeTimeBatch' in jsonObject['freshPackIntegration'].points)
5429
+ {
5430
+ pointsObject.activeTimeBatch = (function(){
5431
+ if(typeof jsonObject['freshPackIntegration'].points.activeTimeBatch !== 'number')
5432
+ {
5433
+ return Number.isInteger(Number(jsonObject['freshPackIntegration'].points.activeTimeBatch)) ? Number(jsonObject['freshPackIntegration'].points.activeTimeBatch) : Math.floor(Number(jsonObject['freshPackIntegration'].points.activeTimeBatch));
5434
+ }
5435
+
5436
+ return Number.isInteger(jsonObject['freshPackIntegration'].points.activeTimeBatch) ? jsonObject['freshPackIntegration'].points.activeTimeBatch : Math.floor(jsonObject['freshPackIntegration'].points.activeTimeBatch);
5437
+ }());
5438
+ }
5439
+ else
5440
+ {
5441
+ pointsObject.activeTimeBatch = 0;
5442
+ }
5337
5443
 
5338
5444
  return pointsObject;
5339
5445
  }());
@@ -5355,12 +5461,24 @@ class PackingLineModel extends BaseModel
5355
5461
 
5356
5462
  pointsDefaultValue.productionFacilities = 0;
5357
5463
 
5464
+ pointsDefaultValue.marketHolds = 0;
5465
+
5358
5466
  pointsDefaultValue.apiCommunicationStatus = 0;
5359
5467
 
5360
5468
  pointsDefaultValue.currentPackrunClearanceSummary = 0;
5361
5469
 
5362
5470
  pointsDefaultValue.nextPackrunClearanceSummary = 0;
5363
5471
 
5472
+ pointsDefaultValue.currentPackrunMarketHolds = null;
5473
+
5474
+ pointsDefaultValue.nextPackrunMarketHolds = null;
5475
+
5476
+ pointsDefaultValue.apiVersion = 0;
5477
+
5478
+ pointsDefaultValue.activePackrunName = 0;
5479
+
5480
+ pointsDefaultValue.activeTimeBatch = 0;
5481
+
5364
5482
  return pointsDefaultValue;
5365
5483
  }());
5366
5484
  }
@@ -5716,6 +5834,38 @@ class PackingLineModel extends BaseModel
5716
5834
  {
5717
5835
  pointsObject.currentPackrunFutureStorageDefectsCount = 0;
5718
5836
  }
5837
+
5838
+ if(typeof jsonObject['freshQualityIntegration'].points === 'object' && 'currentPackrunRejectAnalysisSamples' in jsonObject['freshQualityIntegration'].points)
5839
+ {
5840
+ pointsObject.currentPackrunRejectAnalysisSamples = (function(){
5841
+ if(typeof jsonObject['freshQualityIntegration'].points.currentPackrunRejectAnalysisSamples !== 'number')
5842
+ {
5843
+ return Number.isInteger(Number(jsonObject['freshQualityIntegration'].points.currentPackrunRejectAnalysisSamples)) ? Number(jsonObject['freshQualityIntegration'].points.currentPackrunRejectAnalysisSamples) : Math.floor(Number(jsonObject['freshQualityIntegration'].points.currentPackrunRejectAnalysisSamples));
5844
+ }
5845
+
5846
+ return Number.isInteger(jsonObject['freshQualityIntegration'].points.currentPackrunRejectAnalysisSamples) ? jsonObject['freshQualityIntegration'].points.currentPackrunRejectAnalysisSamples : Math.floor(jsonObject['freshQualityIntegration'].points.currentPackrunRejectAnalysisSamples);
5847
+ }());
5848
+ }
5849
+ else
5850
+ {
5851
+ pointsObject.currentPackrunRejectAnalysisSamples = 0;
5852
+ }
5853
+
5854
+ if(typeof jsonObject['freshQualityIntegration'].points === 'object' && 'sampleTypes' in jsonObject['freshQualityIntegration'].points)
5855
+ {
5856
+ pointsObject.sampleTypes = (function(){
5857
+ if(typeof jsonObject['freshQualityIntegration'].points.sampleTypes !== 'number')
5858
+ {
5859
+ return Number.isInteger(Number(jsonObject['freshQualityIntegration'].points.sampleTypes)) ? Number(jsonObject['freshQualityIntegration'].points.sampleTypes) : Math.floor(Number(jsonObject['freshQualityIntegration'].points.sampleTypes));
5860
+ }
5861
+
5862
+ return Number.isInteger(jsonObject['freshQualityIntegration'].points.sampleTypes) ? jsonObject['freshQualityIntegration'].points.sampleTypes : Math.floor(jsonObject['freshQualityIntegration'].points.sampleTypes);
5863
+ }());
5864
+ }
5865
+ else
5866
+ {
5867
+ pointsObject.sampleTypes = 0;
5868
+ }
5719
5869
 
5720
5870
  return pointsObject;
5721
5871
  }());
@@ -5745,6 +5895,10 @@ class PackingLineModel extends BaseModel
5745
5895
 
5746
5896
  pointsDefaultValue.currentPackrunFutureStorageDefectsCount = 0;
5747
5897
 
5898
+ pointsDefaultValue.currentPackrunRejectAnalysisSamples = 0;
5899
+
5900
+ pointsDefaultValue.sampleTypes = 0;
5901
+
5748
5902
  return pointsDefaultValue;
5749
5903
  }());
5750
5904
  }
@@ -5837,6 +5991,31 @@ class PackingLineModel extends BaseModel
5837
5991
  {
5838
5992
  freshQualityIntegrationObject.sampleTypeIds = [];
5839
5993
  }
5994
+
5995
+ if(typeof jsonObject['freshQualityIntegration'] === 'object' && 'rejectAnalysisSampleTypeIds' in jsonObject['freshQualityIntegration'])
5996
+ {
5997
+ freshQualityIntegrationObject.rejectAnalysisSampleTypeIds = (function(){
5998
+ if(Array.isArray(jsonObject['freshQualityIntegration'].rejectAnalysisSampleTypeIds) !== true)
5999
+ {
6000
+ return [];
6001
+ }
6002
+
6003
+ return jsonObject['freshQualityIntegration'].rejectAnalysisSampleTypeIds.map((rejectAnalysisSampleTypeIdsItem) => {
6004
+ return (function(){
6005
+ if(typeof rejectAnalysisSampleTypeIdsItem !== 'number')
6006
+ {
6007
+ return Number.isInteger(Number(rejectAnalysisSampleTypeIdsItem)) ? Number(rejectAnalysisSampleTypeIdsItem) : Math.floor(Number(rejectAnalysisSampleTypeIdsItem));
6008
+ }
6009
+
6010
+ return Number.isInteger(rejectAnalysisSampleTypeIdsItem) ? rejectAnalysisSampleTypeIdsItem : Math.floor(rejectAnalysisSampleTypeIdsItem);
6011
+ }());
6012
+ });
6013
+ }());
6014
+ }
6015
+ else
6016
+ {
6017
+ freshQualityIntegrationObject.rejectAnalysisSampleTypeIds = [];
6018
+ }
5840
6019
 
5841
6020
  return freshQualityIntegrationObject;
5842
6021
  }());
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '2.5.4';
2
+ export const version = '2.5.6';