@ricado/api-client 2.5.7 → 2.5.8
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/PackingLineController.js +2 -2
- package/lib/Controllers/Packhouse/Site/RejectBinScaleController.js +1 -1
- package/lib/Models/Packhouse/Site/PackingLineModel.js +159 -2
- package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +6 -2
- package/lib/PackageVersion.js +1 -1
- package/lib/index.d.ts +24 -6
- package/package.json +1 -1
- package/src/Controllers/Packhouse/Site/PackingLineController.js +2 -2
- package/src/Controllers/Packhouse/Site/RejectBinScaleController.js +1 -1
- package/src/Models/Packhouse/Site/PackingLineModel.js +214 -2
- package/src/Models/Packhouse/Site/RejectBinScaleModel.js +7 -2
- package/src/PackageVersion.js +1 -1
|
@@ -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, 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[]}}
|
|
217
|
+
* @type {?{points: {graders: number, binTypes: number, printerGroups: number, materialGroups: number, rejectCategories: number, productionFacilities: number, marketHolds: number, varieties: ?number, produces: ?number, growingMethods: ?number, fruitClasses: ?number, fruitSizes: ?number, packStyles: ?number, nssLabelTypes: ?number, multiGrowerBinProducts: ?number, apiCommunicationStatus: number, currentPackrunClearanceSummary: number, nextPackrunClearanceSummary: number, currentPackrunMarketHolds: ?number, nextPackrunMarketHolds: ?number, apiVersion: ?number, activePackrunName: ?number, activeTimeBatch: ?number, classTypeMultiGrowerBinProductIds: ?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;
|
|
@@ -5303,6 +5303,174 @@ class PackingLineModel extends BaseModel
|
|
|
5303
5303
|
pointsObject.marketHolds = 0;
|
|
5304
5304
|
}
|
|
5305
5305
|
|
|
5306
|
+
if(typeof jsonObject['freshPackIntegration'].points === 'object' && 'varieties' in jsonObject['freshPackIntegration'].points)
|
|
5307
|
+
{
|
|
5308
|
+
pointsObject.varieties = (function(){
|
|
5309
|
+
if(jsonObject['freshPackIntegration'].points.varieties === null)
|
|
5310
|
+
{
|
|
5311
|
+
return null;
|
|
5312
|
+
}
|
|
5313
|
+
|
|
5314
|
+
if(typeof jsonObject['freshPackIntegration'].points.varieties !== 'number')
|
|
5315
|
+
{
|
|
5316
|
+
return Number.isInteger(Number(jsonObject['freshPackIntegration'].points.varieties)) ? Number(jsonObject['freshPackIntegration'].points.varieties) : Math.floor(Number(jsonObject['freshPackIntegration'].points.varieties));
|
|
5317
|
+
}
|
|
5318
|
+
|
|
5319
|
+
return Number.isInteger(jsonObject['freshPackIntegration'].points.varieties) ? jsonObject['freshPackIntegration'].points.varieties : Math.floor(jsonObject['freshPackIntegration'].points.varieties);
|
|
5320
|
+
}());
|
|
5321
|
+
}
|
|
5322
|
+
else
|
|
5323
|
+
{
|
|
5324
|
+
pointsObject.varieties = null;
|
|
5325
|
+
}
|
|
5326
|
+
|
|
5327
|
+
if(typeof jsonObject['freshPackIntegration'].points === 'object' && 'produces' in jsonObject['freshPackIntegration'].points)
|
|
5328
|
+
{
|
|
5329
|
+
pointsObject.produces = (function(){
|
|
5330
|
+
if(jsonObject['freshPackIntegration'].points.produces === null)
|
|
5331
|
+
{
|
|
5332
|
+
return null;
|
|
5333
|
+
}
|
|
5334
|
+
|
|
5335
|
+
if(typeof jsonObject['freshPackIntegration'].points.produces !== 'number')
|
|
5336
|
+
{
|
|
5337
|
+
return Number.isInteger(Number(jsonObject['freshPackIntegration'].points.produces)) ? Number(jsonObject['freshPackIntegration'].points.produces) : Math.floor(Number(jsonObject['freshPackIntegration'].points.produces));
|
|
5338
|
+
}
|
|
5339
|
+
|
|
5340
|
+
return Number.isInteger(jsonObject['freshPackIntegration'].points.produces) ? jsonObject['freshPackIntegration'].points.produces : Math.floor(jsonObject['freshPackIntegration'].points.produces);
|
|
5341
|
+
}());
|
|
5342
|
+
}
|
|
5343
|
+
else
|
|
5344
|
+
{
|
|
5345
|
+
pointsObject.produces = null;
|
|
5346
|
+
}
|
|
5347
|
+
|
|
5348
|
+
if(typeof jsonObject['freshPackIntegration'].points === 'object' && 'growingMethods' in jsonObject['freshPackIntegration'].points)
|
|
5349
|
+
{
|
|
5350
|
+
pointsObject.growingMethods = (function(){
|
|
5351
|
+
if(jsonObject['freshPackIntegration'].points.growingMethods === null)
|
|
5352
|
+
{
|
|
5353
|
+
return null;
|
|
5354
|
+
}
|
|
5355
|
+
|
|
5356
|
+
if(typeof jsonObject['freshPackIntegration'].points.growingMethods !== 'number')
|
|
5357
|
+
{
|
|
5358
|
+
return Number.isInteger(Number(jsonObject['freshPackIntegration'].points.growingMethods)) ? Number(jsonObject['freshPackIntegration'].points.growingMethods) : Math.floor(Number(jsonObject['freshPackIntegration'].points.growingMethods));
|
|
5359
|
+
}
|
|
5360
|
+
|
|
5361
|
+
return Number.isInteger(jsonObject['freshPackIntegration'].points.growingMethods) ? jsonObject['freshPackIntegration'].points.growingMethods : Math.floor(jsonObject['freshPackIntegration'].points.growingMethods);
|
|
5362
|
+
}());
|
|
5363
|
+
}
|
|
5364
|
+
else
|
|
5365
|
+
{
|
|
5366
|
+
pointsObject.growingMethods = null;
|
|
5367
|
+
}
|
|
5368
|
+
|
|
5369
|
+
if(typeof jsonObject['freshPackIntegration'].points === 'object' && 'fruitClasses' in jsonObject['freshPackIntegration'].points)
|
|
5370
|
+
{
|
|
5371
|
+
pointsObject.fruitClasses = (function(){
|
|
5372
|
+
if(jsonObject['freshPackIntegration'].points.fruitClasses === null)
|
|
5373
|
+
{
|
|
5374
|
+
return null;
|
|
5375
|
+
}
|
|
5376
|
+
|
|
5377
|
+
if(typeof jsonObject['freshPackIntegration'].points.fruitClasses !== 'number')
|
|
5378
|
+
{
|
|
5379
|
+
return Number.isInteger(Number(jsonObject['freshPackIntegration'].points.fruitClasses)) ? Number(jsonObject['freshPackIntegration'].points.fruitClasses) : Math.floor(Number(jsonObject['freshPackIntegration'].points.fruitClasses));
|
|
5380
|
+
}
|
|
5381
|
+
|
|
5382
|
+
return Number.isInteger(jsonObject['freshPackIntegration'].points.fruitClasses) ? jsonObject['freshPackIntegration'].points.fruitClasses : Math.floor(jsonObject['freshPackIntegration'].points.fruitClasses);
|
|
5383
|
+
}());
|
|
5384
|
+
}
|
|
5385
|
+
else
|
|
5386
|
+
{
|
|
5387
|
+
pointsObject.fruitClasses = null;
|
|
5388
|
+
}
|
|
5389
|
+
|
|
5390
|
+
if(typeof jsonObject['freshPackIntegration'].points === 'object' && 'fruitSizes' in jsonObject['freshPackIntegration'].points)
|
|
5391
|
+
{
|
|
5392
|
+
pointsObject.fruitSizes = (function(){
|
|
5393
|
+
if(jsonObject['freshPackIntegration'].points.fruitSizes === null)
|
|
5394
|
+
{
|
|
5395
|
+
return null;
|
|
5396
|
+
}
|
|
5397
|
+
|
|
5398
|
+
if(typeof jsonObject['freshPackIntegration'].points.fruitSizes !== 'number')
|
|
5399
|
+
{
|
|
5400
|
+
return Number.isInteger(Number(jsonObject['freshPackIntegration'].points.fruitSizes)) ? Number(jsonObject['freshPackIntegration'].points.fruitSizes) : Math.floor(Number(jsonObject['freshPackIntegration'].points.fruitSizes));
|
|
5401
|
+
}
|
|
5402
|
+
|
|
5403
|
+
return Number.isInteger(jsonObject['freshPackIntegration'].points.fruitSizes) ? jsonObject['freshPackIntegration'].points.fruitSizes : Math.floor(jsonObject['freshPackIntegration'].points.fruitSizes);
|
|
5404
|
+
}());
|
|
5405
|
+
}
|
|
5406
|
+
else
|
|
5407
|
+
{
|
|
5408
|
+
pointsObject.fruitSizes = null;
|
|
5409
|
+
}
|
|
5410
|
+
|
|
5411
|
+
if(typeof jsonObject['freshPackIntegration'].points === 'object' && 'packStyles' in jsonObject['freshPackIntegration'].points)
|
|
5412
|
+
{
|
|
5413
|
+
pointsObject.packStyles = (function(){
|
|
5414
|
+
if(jsonObject['freshPackIntegration'].points.packStyles === null)
|
|
5415
|
+
{
|
|
5416
|
+
return null;
|
|
5417
|
+
}
|
|
5418
|
+
|
|
5419
|
+
if(typeof jsonObject['freshPackIntegration'].points.packStyles !== 'number')
|
|
5420
|
+
{
|
|
5421
|
+
return Number.isInteger(Number(jsonObject['freshPackIntegration'].points.packStyles)) ? Number(jsonObject['freshPackIntegration'].points.packStyles) : Math.floor(Number(jsonObject['freshPackIntegration'].points.packStyles));
|
|
5422
|
+
}
|
|
5423
|
+
|
|
5424
|
+
return Number.isInteger(jsonObject['freshPackIntegration'].points.packStyles) ? jsonObject['freshPackIntegration'].points.packStyles : Math.floor(jsonObject['freshPackIntegration'].points.packStyles);
|
|
5425
|
+
}());
|
|
5426
|
+
}
|
|
5427
|
+
else
|
|
5428
|
+
{
|
|
5429
|
+
pointsObject.packStyles = null;
|
|
5430
|
+
}
|
|
5431
|
+
|
|
5432
|
+
if(typeof jsonObject['freshPackIntegration'].points === 'object' && 'nssLabelTypes' in jsonObject['freshPackIntegration'].points)
|
|
5433
|
+
{
|
|
5434
|
+
pointsObject.nssLabelTypes = (function(){
|
|
5435
|
+
if(jsonObject['freshPackIntegration'].points.nssLabelTypes === null)
|
|
5436
|
+
{
|
|
5437
|
+
return null;
|
|
5438
|
+
}
|
|
5439
|
+
|
|
5440
|
+
if(typeof jsonObject['freshPackIntegration'].points.nssLabelTypes !== 'number')
|
|
5441
|
+
{
|
|
5442
|
+
return Number.isInteger(Number(jsonObject['freshPackIntegration'].points.nssLabelTypes)) ? Number(jsonObject['freshPackIntegration'].points.nssLabelTypes) : Math.floor(Number(jsonObject['freshPackIntegration'].points.nssLabelTypes));
|
|
5443
|
+
}
|
|
5444
|
+
|
|
5445
|
+
return Number.isInteger(jsonObject['freshPackIntegration'].points.nssLabelTypes) ? jsonObject['freshPackIntegration'].points.nssLabelTypes : Math.floor(jsonObject['freshPackIntegration'].points.nssLabelTypes);
|
|
5446
|
+
}());
|
|
5447
|
+
}
|
|
5448
|
+
else
|
|
5449
|
+
{
|
|
5450
|
+
pointsObject.nssLabelTypes = null;
|
|
5451
|
+
}
|
|
5452
|
+
|
|
5453
|
+
if(typeof jsonObject['freshPackIntegration'].points === 'object' && 'multiGrowerBinProducts' in jsonObject['freshPackIntegration'].points)
|
|
5454
|
+
{
|
|
5455
|
+
pointsObject.multiGrowerBinProducts = (function(){
|
|
5456
|
+
if(jsonObject['freshPackIntegration'].points.multiGrowerBinProducts === null)
|
|
5457
|
+
{
|
|
5458
|
+
return null;
|
|
5459
|
+
}
|
|
5460
|
+
|
|
5461
|
+
if(typeof jsonObject['freshPackIntegration'].points.multiGrowerBinProducts !== 'number')
|
|
5462
|
+
{
|
|
5463
|
+
return Number.isInteger(Number(jsonObject['freshPackIntegration'].points.multiGrowerBinProducts)) ? Number(jsonObject['freshPackIntegration'].points.multiGrowerBinProducts) : Math.floor(Number(jsonObject['freshPackIntegration'].points.multiGrowerBinProducts));
|
|
5464
|
+
}
|
|
5465
|
+
|
|
5466
|
+
return Number.isInteger(jsonObject['freshPackIntegration'].points.multiGrowerBinProducts) ? jsonObject['freshPackIntegration'].points.multiGrowerBinProducts : Math.floor(jsonObject['freshPackIntegration'].points.multiGrowerBinProducts);
|
|
5467
|
+
}());
|
|
5468
|
+
}
|
|
5469
|
+
else
|
|
5470
|
+
{
|
|
5471
|
+
pointsObject.multiGrowerBinProducts = null;
|
|
5472
|
+
}
|
|
5473
|
+
|
|
5306
5474
|
if(typeof jsonObject['freshPackIntegration'].points === 'object' && 'apiCommunicationStatus' in jsonObject['freshPackIntegration'].points)
|
|
5307
5475
|
{
|
|
5308
5476
|
pointsObject.apiCommunicationStatus = (function(){
|
|
@@ -5455,6 +5623,27 @@ class PackingLineModel extends BaseModel
|
|
|
5455
5623
|
{
|
|
5456
5624
|
pointsObject.activeTimeBatch = null;
|
|
5457
5625
|
}
|
|
5626
|
+
|
|
5627
|
+
if(typeof jsonObject['freshPackIntegration'].points === 'object' && 'classTypeMultiGrowerBinProductIds' in jsonObject['freshPackIntegration'].points)
|
|
5628
|
+
{
|
|
5629
|
+
pointsObject.classTypeMultiGrowerBinProductIds = (function(){
|
|
5630
|
+
if(jsonObject['freshPackIntegration'].points.classTypeMultiGrowerBinProductIds === null)
|
|
5631
|
+
{
|
|
5632
|
+
return null;
|
|
5633
|
+
}
|
|
5634
|
+
|
|
5635
|
+
if(typeof jsonObject['freshPackIntegration'].points.classTypeMultiGrowerBinProductIds !== 'number')
|
|
5636
|
+
{
|
|
5637
|
+
return Number.isInteger(Number(jsonObject['freshPackIntegration'].points.classTypeMultiGrowerBinProductIds)) ? Number(jsonObject['freshPackIntegration'].points.classTypeMultiGrowerBinProductIds) : Math.floor(Number(jsonObject['freshPackIntegration'].points.classTypeMultiGrowerBinProductIds));
|
|
5638
|
+
}
|
|
5639
|
+
|
|
5640
|
+
return Number.isInteger(jsonObject['freshPackIntegration'].points.classTypeMultiGrowerBinProductIds) ? jsonObject['freshPackIntegration'].points.classTypeMultiGrowerBinProductIds : Math.floor(jsonObject['freshPackIntegration'].points.classTypeMultiGrowerBinProductIds);
|
|
5641
|
+
}());
|
|
5642
|
+
}
|
|
5643
|
+
else
|
|
5644
|
+
{
|
|
5645
|
+
pointsObject.classTypeMultiGrowerBinProductIds = null;
|
|
5646
|
+
}
|
|
5458
5647
|
|
|
5459
5648
|
return pointsObject;
|
|
5460
5649
|
}());
|
|
@@ -5478,6 +5667,22 @@ class PackingLineModel extends BaseModel
|
|
|
5478
5667
|
|
|
5479
5668
|
pointsDefaultValue.marketHolds = 0;
|
|
5480
5669
|
|
|
5670
|
+
pointsDefaultValue.varieties = null;
|
|
5671
|
+
|
|
5672
|
+
pointsDefaultValue.produces = null;
|
|
5673
|
+
|
|
5674
|
+
pointsDefaultValue.growingMethods = null;
|
|
5675
|
+
|
|
5676
|
+
pointsDefaultValue.fruitClasses = null;
|
|
5677
|
+
|
|
5678
|
+
pointsDefaultValue.fruitSizes = null;
|
|
5679
|
+
|
|
5680
|
+
pointsDefaultValue.packStyles = null;
|
|
5681
|
+
|
|
5682
|
+
pointsDefaultValue.nssLabelTypes = null;
|
|
5683
|
+
|
|
5684
|
+
pointsDefaultValue.multiGrowerBinProducts = null;
|
|
5685
|
+
|
|
5481
5686
|
pointsDefaultValue.apiCommunicationStatus = 0;
|
|
5482
5687
|
|
|
5483
5688
|
pointsDefaultValue.currentPackrunClearanceSummary = 0;
|
|
@@ -5494,6 +5699,8 @@ class PackingLineModel extends BaseModel
|
|
|
5494
5699
|
|
|
5495
5700
|
pointsDefaultValue.activeTimeBatch = null;
|
|
5496
5701
|
|
|
5702
|
+
pointsDefaultValue.classTypeMultiGrowerBinProductIds = null;
|
|
5703
|
+
|
|
5497
5704
|
return pointsDefaultValue;
|
|
5498
5705
|
}());
|
|
5499
5706
|
}
|
|
@@ -5590,6 +5797,11 @@ class PackingLineModel extends BaseModel
|
|
|
5590
5797
|
if(typeof jsonObject['freshPackIntegration'] === 'object' && 'classTypeRejectCategoryIds' in jsonObject['freshPackIntegration'])
|
|
5591
5798
|
{
|
|
5592
5799
|
freshPackIntegrationObject.classTypeRejectCategoryIds = (function(){
|
|
5800
|
+
if(jsonObject['freshPackIntegration'].classTypeRejectCategoryIds === null)
|
|
5801
|
+
{
|
|
5802
|
+
return null;
|
|
5803
|
+
}
|
|
5804
|
+
|
|
5593
5805
|
if(Array.isArray(jsonObject['freshPackIntegration'].classTypeRejectCategoryIds) !== true)
|
|
5594
5806
|
{
|
|
5595
5807
|
return [];
|
|
@@ -5638,7 +5850,7 @@ class PackingLineModel extends BaseModel
|
|
|
5638
5850
|
}
|
|
5639
5851
|
else
|
|
5640
5852
|
{
|
|
5641
|
-
freshPackIntegrationObject.classTypeRejectCategoryIds =
|
|
5853
|
+
freshPackIntegrationObject.classTypeRejectCategoryIds = null;
|
|
5642
5854
|
}
|
|
5643
5855
|
|
|
5644
5856
|
if(typeof jsonObject['freshPackIntegration'] === 'object' && 'packrunSourceTrayClassTypes' in jsonObject['freshPackIntegration'])
|
|
@@ -254,7 +254,7 @@ class RejectBinScaleModel extends BaseModel
|
|
|
254
254
|
/**
|
|
255
255
|
* The FreshPack Integration Configuration for this Reject Bin Scale
|
|
256
256
|
*
|
|
257
|
-
* @type {?{points: Object, enabled: boolean, materialGroupId: number, binTypeId: number, printerGroupId: ?number, binCardPrintingEnabled: boolean, useWindowsDriverApi: boolean}}
|
|
257
|
+
* @type {?{points: Object, enabled: boolean, materialGroupId: ?number, binTypeId: number, printerGroupId: ?number, binCardPrintingEnabled: boolean, useWindowsDriverApi: boolean}}
|
|
258
258
|
* @public
|
|
259
259
|
*/
|
|
260
260
|
this.freshPackIntegration = null;
|
|
@@ -1303,6 +1303,11 @@ class RejectBinScaleModel extends BaseModel
|
|
|
1303
1303
|
if(typeof jsonObject['freshPackIntegration'] === 'object' && 'materialGroupId' in jsonObject['freshPackIntegration'])
|
|
1304
1304
|
{
|
|
1305
1305
|
freshPackIntegrationObject.materialGroupId = (function(){
|
|
1306
|
+
if(jsonObject['freshPackIntegration'].materialGroupId === null)
|
|
1307
|
+
{
|
|
1308
|
+
return null;
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1306
1311
|
if(typeof jsonObject['freshPackIntegration'].materialGroupId !== 'number')
|
|
1307
1312
|
{
|
|
1308
1313
|
return Number.isInteger(Number(jsonObject['freshPackIntegration'].materialGroupId)) ? Number(jsonObject['freshPackIntegration'].materialGroupId) : Math.floor(Number(jsonObject['freshPackIntegration'].materialGroupId));
|
|
@@ -1313,7 +1318,7 @@ class RejectBinScaleModel extends BaseModel
|
|
|
1313
1318
|
}
|
|
1314
1319
|
else
|
|
1315
1320
|
{
|
|
1316
|
-
freshPackIntegrationObject.materialGroupId =
|
|
1321
|
+
freshPackIntegrationObject.materialGroupId = null;
|
|
1317
1322
|
}
|
|
1318
1323
|
|
|
1319
1324
|
if(typeof jsonObject['freshPackIntegration'] === 'object' && 'binTypeId' in jsonObject['freshPackIntegration'])
|
package/src/PackageVersion.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '2.5.
|
|
2
|
+
export const version = '2.5.8';
|