@ricado/api-client 2.5.18 → 2.6.0

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.
@@ -845,9 +845,13 @@ var _default = MAFSizerBatchController;
845
845
  * @property {?string} [varietyName] The Variety Name
846
846
  * @property {number} totalWeight The Total Weight Processed for this Batch
847
847
  * @property {?string} [packrunId] The Packrun ID associated with this Batch
848
+ * @property {?Date} [finalOrpheaUpdate] When the Final Update from the MAF Sizer Orphea Database has been Received
848
849
  * @property {Array<MAFSizerBatchController.ArticleSummary>} [articleSummaries] An Array of Summary Data Objects for each Article
849
850
  * @property {Array<MAFSizerBatchController.OutletSummary>} [outletSummaries] An Array of Summary Data Objects for each Outlet
850
851
  * @property {Array<MAFSizerBatchController.FruitSummary>} [fruitSummaries] An Array of Summary Data Objects for each Fruit Size and Article
852
+ * @property {Array<MAFSizerBatchController.OutletFruitSummary>} [outletFruitSummaries] An Array of Summary Data Objects for each Outlet by Fruit Size and Article
853
+ * @property {Array<MAFSizerBatchController.SizeNameLookup>} [sizeNames] An Array of Size Names and Indexes
854
+ * @property {Array<MAFSizerBatchController.ArticleNameLookup>} [articleNames] An Array of Article Names and Indexes
851
855
  * @memberof Controllers.Packhouse.Site
852
856
  */
853
857
 
@@ -864,9 +868,13 @@ var _default = MAFSizerBatchController;
864
868
  * @property {?string} [varietyName] The Variety Name
865
869
  * @property {number} [totalWeight] The Total Weight Processed for this Batch
866
870
  * @property {?string} [packrunId] The Packrun ID associated with this Batch
871
+ * @property {?Date} [finalOrpheaUpdate] When the Final Update from the MAF Sizer Orphea Database has been Received
867
872
  * @property {Array<MAFSizerBatchController.ArticleSummary>} [articleSummaries] An Array of Summary Data Objects for each Article
868
873
  * @property {Array<MAFSizerBatchController.OutletSummary>} [outletSummaries] An Array of Summary Data Objects for each Outlet
869
874
  * @property {Array<MAFSizerBatchController.FruitSummary>} [fruitSummaries] An Array of Summary Data Objects for each Fruit Size and Article
875
+ * @property {Array<MAFSizerBatchController.OutletFruitSummary>} [outletFruitSummaries] An Array of Summary Data Objects for each Outlet by Fruit Size and Article
876
+ * @property {Array<MAFSizerBatchController.SizeNameLookup>} [sizeNames] An Array of Size Names and Indexes
877
+ * @property {Array<MAFSizerBatchController.ArticleNameLookup>} [articleNames] An Array of Article Names and Indexes
870
878
  * @memberof Controllers.Packhouse.Site
871
879
  */
872
880
 
@@ -896,6 +904,7 @@ var _default = MAFSizerBatchController;
896
904
  * A **ArticleSummary** Type
897
905
  *
898
906
  * @typedef {Object} MAFSizerBatchController.ArticleSummary
907
+ * @property {?number} index The Article Index
899
908
  * @property {string} name The Article Name
900
909
  * @property {number} fruitCount The Fruit Count
901
910
  * @property {number} fruitWeight The Fruit Weight expressed in Kilograms
@@ -909,6 +918,8 @@ var _default = MAFSizerBatchController;
909
918
  * @property {number} number The Outlet Number
910
919
  * @property {number} fruitCount The Fruit Count
911
920
  * @property {number} fruitWeight The Fruit Weight expressed in Kilograms
921
+ * @property {number[]} seenArticles An Array of Article Indexes that have been Seen assigned to the Outlet
922
+ * @property {number[]} activeArticles An Array of Article Indexes that have are Actively assigned to the Outlet
912
923
  * @memberof Controllers.Packhouse.Site
913
924
  */
914
925
 
@@ -916,11 +927,45 @@ var _default = MAFSizerBatchController;
916
927
  * A **FruitSummary** Type
917
928
  *
918
929
  * @typedef {Object} MAFSizerBatchController.FruitSummary
930
+ * @property {number} sizeIndex The Size Index
931
+ * @property {string} sizeName The Size Name
932
+ * @property {number} articleIndex The Article Index
919
933
  * @property {string} articleName The Article Name
920
- * @property {string} fruitSize The Fruit Size
921
934
  * @property {number} fruitCount The Fruit Count
922
935
  * @property {number} fruitWeight The Fruit Weight expressed in Kilograms
923
936
  * @memberof Controllers.Packhouse.Site
924
937
  */
925
938
 
939
+ /**
940
+ * A **OutletFruitSummary** Type
941
+ *
942
+ * @typedef {Object} MAFSizerBatchController.OutletFruitSummary
943
+ * @property {number} outletNumber The Outlet Number
944
+ * @property {number} sizeIndex The Size Index
945
+ * @property {string} sizeName The Size Name
946
+ * @property {number} articleIndex The Article Index
947
+ * @property {string} articleName The Article Name
948
+ * @property {number} fruitCount The Fruit Count
949
+ * @property {number} fruitWeight The Fruit Weight expressed in Kilograms
950
+ * @memberof Controllers.Packhouse.Site
951
+ */
952
+
953
+ /**
954
+ * A **SizeNameLookup** Type
955
+ *
956
+ * @typedef {Object} MAFSizerBatchController.SizeNameLookup
957
+ * @property {number} index The Size Index
958
+ * @property {string} name The Size Name
959
+ * @memberof Controllers.Packhouse.Site
960
+ */
961
+
962
+ /**
963
+ * A **ArticleNameLookup** Type
964
+ *
965
+ * @typedef {Object} MAFSizerBatchController.ArticleNameLookup
966
+ * @property {number} index The Article Index
967
+ * @property {string} name The Article Name
968
+ * @memberof Controllers.Packhouse.Site
969
+ */
970
+
926
971
  exports.default = _default;
@@ -839,6 +839,7 @@ var _default = MAFSizerPackrunSummaryController;
839
839
  * @property {Date} [createdTimestamp] When this Summary was Created
840
840
  * @property {?string} [timeBatchId] The Time Batch this Summary is associated with
841
841
  * @property {Array<MAFSizerPackrunSummaryController.ClassTypeSummary>} [classTypeSummaries] An Array of Packrun Summary Data Objects for each Class Type
842
+ * @property {Array<MAFSizerPackrunSummaryController.OutletSummary>} [outletSummaries] An Array of Packrun Summary Data Objects for each Outlet
842
843
  * @property {Array<MAFSizerPackrunSummaryController.InitialOutletArticle>} [initialOutletArticles] An Array that contains the Articles initially Assigned to each Outlet
843
844
  * @property {Array<MAFSizerPackrunSummaryController.InitialOutletType>} [initialOutletTypes] An Array that contains the Types initially configured for each Outlet
844
845
  * @memberof Controllers.Packhouse.Site
@@ -852,6 +853,7 @@ var _default = MAFSizerPackrunSummaryController;
852
853
  * @property {Date} [createdTimestamp] When this Summary was Created
853
854
  * @property {?string} [timeBatchId] The Time Batch this Summary is associated with
854
855
  * @property {Array<MAFSizerPackrunSummaryController.ClassTypeSummary>} [classTypeSummaries] An Array of Packrun Summary Data Objects for each Class Type
856
+ * @property {Array<MAFSizerPackrunSummaryController.OutletSummary>} [outletSummaries] An Array of Packrun Summary Data Objects for each Outlet
855
857
  * @property {Array<MAFSizerPackrunSummaryController.InitialOutletArticle>} [initialOutletArticles] An Array that contains the Articles initially Assigned to each Outlet
856
858
  * @property {Array<MAFSizerPackrunSummaryController.InitialOutletType>} [initialOutletTypes] An Array that contains the Types initially configured for each Outlet
857
859
  * @memberof Controllers.Packhouse.Site
@@ -900,6 +902,30 @@ var _default = MAFSizerPackrunSummaryController;
900
902
  * @memberof Controllers.Packhouse.Site
901
903
  */
902
904
 
905
+ /**
906
+ * A **OutletTotal** Type
907
+ *
908
+ * @typedef {Object} MAFSizerPackrunSummaryController.OutletTotal
909
+ * @property {?string} classType The Class Type
910
+ * @property {string} fruitSize The Fruit Size
911
+ * @property {?string} packType The Pack Type
912
+ * @property {number} weight The Weight expressed in Kilograms
913
+ * @property {number} fruitCount The Fruit Count
914
+ * @property {?number} packCount The Number of Packs
915
+ * @memberof Controllers.Packhouse.Site
916
+ */
917
+
918
+ /**
919
+ * A **OutletSummary** Type
920
+ *
921
+ * @typedef {Object} MAFSizerPackrunSummaryController.OutletSummary
922
+ * @property {string} name The Outlet Name
923
+ * @property {string} type The Generic Outlet Type
924
+ * @property {number} number The Outlet Number
925
+ * @property {Array<MAFSizerPackrunSummaryController.OutletTotal>} totals An Array of Totals for the Outlet
926
+ * @memberof Controllers.Packhouse.Site
927
+ */
928
+
903
929
  /**
904
930
  * A **InitialOutletArticle** Type
905
931
  *
@@ -1332,6 +1332,30 @@ var PackrunController = /*#__PURE__*/function () {
1332
1332
  batchSummariesItemObject.recyclePercentage = 0;
1333
1333
  }
1334
1334
 
1335
+ if (_typeof(batchSummariesItem) === 'object' && 'incomingFruitCount' in batchSummariesItem) {
1336
+ batchSummariesItemObject.incomingFruitCount = function () {
1337
+ if (typeof batchSummariesItem.incomingFruitCount !== 'number') {
1338
+ return Number.isInteger(Number(batchSummariesItem.incomingFruitCount)) ? Number(batchSummariesItem.incomingFruitCount) : Math.floor(Number(batchSummariesItem.incomingFruitCount));
1339
+ }
1340
+
1341
+ return Number.isInteger(batchSummariesItem.incomingFruitCount) ? batchSummariesItem.incomingFruitCount : Math.floor(batchSummariesItem.incomingFruitCount);
1342
+ }();
1343
+ } else {
1344
+ batchSummariesItemObject.incomingFruitCount = 0;
1345
+ }
1346
+
1347
+ if (_typeof(batchSummariesItem) === 'object' && 'incomingFruitWeight' in batchSummariesItem) {
1348
+ batchSummariesItemObject.incomingFruitWeight = function () {
1349
+ if (typeof batchSummariesItem.incomingFruitWeight !== 'number') {
1350
+ return Number(batchSummariesItem.incomingFruitWeight);
1351
+ }
1352
+
1353
+ return batchSummariesItem.incomingFruitWeight;
1354
+ }();
1355
+ } else {
1356
+ batchSummariesItemObject.incomingFruitWeight = 0;
1357
+ }
1358
+
1335
1359
  return batchSummariesItemObject;
1336
1360
  }();
1337
1361
  });
@@ -1348,6 +1372,50 @@ var PackrunController = /*#__PURE__*/function () {
1348
1372
  resultObject.sizers = [];
1349
1373
  }
1350
1374
 
1375
+ if (_typeof(result) === 'object' && 'incomingSizerIds' in result) {
1376
+ resultObject.incomingSizerIds = function () {
1377
+ if (Array.isArray(result.incomingSizerIds) !== true) {
1378
+ return [];
1379
+ }
1380
+
1381
+ return result.incomingSizerIds.map(function (incomingSizerIdsItem) {
1382
+ return function () {
1383
+ if (typeof incomingSizerIdsItem !== 'string') {
1384
+ return String(incomingSizerIdsItem);
1385
+ }
1386
+
1387
+ return incomingSizerIdsItem;
1388
+ }();
1389
+ });
1390
+ }();
1391
+ } else {
1392
+ resultObject.incomingSizerIds = [];
1393
+ }
1394
+
1395
+ if (_typeof(result) === 'object' && 'incomingSizersFruitCount' in result) {
1396
+ resultObject.incomingSizersFruitCount = function () {
1397
+ if (typeof result.incomingSizersFruitCount !== 'number') {
1398
+ return Number.isInteger(Number(result.incomingSizersFruitCount)) ? Number(result.incomingSizersFruitCount) : Math.floor(Number(result.incomingSizersFruitCount));
1399
+ }
1400
+
1401
+ return Number.isInteger(result.incomingSizersFruitCount) ? result.incomingSizersFruitCount : Math.floor(result.incomingSizersFruitCount);
1402
+ }();
1403
+ } else {
1404
+ resultObject.incomingSizersFruitCount = 0;
1405
+ }
1406
+
1407
+ if (_typeof(result) === 'object' && 'incomingSizersFruitWeight' in result) {
1408
+ resultObject.incomingSizersFruitWeight = function () {
1409
+ if (typeof result.incomingSizersFruitWeight !== 'number') {
1410
+ return Number(result.incomingSizersFruitWeight);
1411
+ }
1412
+
1413
+ return result.incomingSizersFruitWeight;
1414
+ }();
1415
+ } else {
1416
+ resultObject.incomingSizersFruitWeight = 0;
1417
+ }
1418
+
1351
1419
  if (_typeof(result) === 'object' && 'rejectBinSummary' in result) {
1352
1420
  resultObject.rejectBinSummary = function () {
1353
1421
  if (_typeof(result.rejectBinSummary) !== 'object') {
@@ -2571,6 +2639,8 @@ var _default = PackrunController;
2571
2639
  * @property {number} recycleFruitCount The Recycled Fruit Count for the Batch
2572
2640
  * @property {number} recycleFruitWeight The Recycled Fruit Weight (kg) for the Batch
2573
2641
  * @property {number} recyclePercentage The Percentage of Total Fruit that was Recycled for the Batch
2642
+ * @property {number} incomingFruitCount The Incoming Fruit Count for the Batch
2643
+ * @property {number} incomingFruitWeight The Incoming Fruit Weight (kg) for the Batch
2574
2644
  * @memberof Controllers.Packhouse.Site
2575
2645
  */
2576
2646
 
@@ -2605,6 +2675,9 @@ var _default = PackrunController;
2605
2675
  * @property {Array<PackrunController.ClassTypeItem>} classTypes An Array of Class Types for the Packing Line
2606
2676
  * @property {Object[]} compacSizers *DEPRECATED* - An Array of Summarized Compac Sizer Data
2607
2677
  * @property {Array<PackrunController.SizerItem>} sizers
2678
+ * @property {string[]} incomingSizerIds The IDs of the Sizers that directly receive Fruit from the Infeed
2679
+ * @property {number} incomingSizersFruitCount The Incoming Fruit Count of all Incoming Sizers
2680
+ * @property {number} incomingSizersFruitWeight The Incoming Fruit Weight of all Incoming Sizers
2608
2681
  * @property {Object} rejectBinSummary The Reject Bin Summary for the Packrun
2609
2682
  * @property {Object} binTipSummary The Bin Tip Summary for the Packrun
2610
2683
  * @property {Object[]} classTypeTotals An Array of Totals for each Class Type within the Packrun
@@ -143,10 +143,18 @@ var MAFSizerBatchModel = /*#__PURE__*/function (_BaseModel) {
143
143
  */
144
144
 
145
145
  _this.packrunId = null;
146
+ /**
147
+ * When the Final Update from the MAF Sizer Orphea Database has been Received
148
+ *
149
+ * @type {?Date}
150
+ * @public
151
+ */
152
+
153
+ _this.finalOrpheaUpdate = null;
146
154
  /**
147
155
  * An Array of Summary Data Objects for each Article
148
156
  *
149
- * @type {Array<{name: string, fruitCount: number, fruitWeight: number}>}
157
+ * @type {Array<{index: ?number, name: string, fruitCount: number, fruitWeight: number}>}
150
158
  * @public
151
159
  */
152
160
 
@@ -154,7 +162,7 @@ var MAFSizerBatchModel = /*#__PURE__*/function (_BaseModel) {
154
162
  /**
155
163
  * An Array of Summary Data Objects for each Outlet
156
164
  *
157
- * @type {Array<{number: number, fruitCount: number, fruitWeight: number}>}
165
+ * @type {Array<{number: number, fruitCount: number, fruitWeight: number, seenArticles: number[], activeArticles: number[]}>}
158
166
  * @public
159
167
  */
160
168
 
@@ -162,11 +170,35 @@ var MAFSizerBatchModel = /*#__PURE__*/function (_BaseModel) {
162
170
  /**
163
171
  * An Array of Summary Data Objects for each Fruit Size and Article
164
172
  *
165
- * @type {Array<{articleName: string, fruitSize: string, fruitCount: number, fruitWeight: number}>}
173
+ * @type {Array<{sizeIndex: number, sizeName: string, articleIndex: number, articleName: string, fruitCount: number, fruitWeight: number}>}
166
174
  * @public
167
175
  */
168
176
 
169
177
  _this.fruitSummaries = [];
178
+ /**
179
+ * An Array of Summary Data Objects for each Outlet by Fruit Size and Article
180
+ *
181
+ * @type {Array<{outletNumber: number, sizeIndex: number, sizeName: string, articleIndex: number, articleName: string, fruitCount: number, fruitWeight: number}>}
182
+ * @public
183
+ */
184
+
185
+ _this.outletFruitSummaries = [];
186
+ /**
187
+ * An Array of Size Names and Indexes
188
+ *
189
+ * @type {Array<{index: number, name: string}>}
190
+ * @public
191
+ */
192
+
193
+ _this.sizeNames = [];
194
+ /**
195
+ * An Array of Article Names and Indexes
196
+ *
197
+ * @type {Array<{index: number, name: string}>}
198
+ * @public
199
+ */
200
+
201
+ _this.articleNames = [];
170
202
  /**
171
203
  * Whether the MAF Sizer Batch has been deleted
172
204
  *
@@ -356,6 +388,20 @@ var MAFSizerBatchModel = /*#__PURE__*/function (_BaseModel) {
356
388
  }();
357
389
  }
358
390
 
391
+ if ('finalOrpheaUpdate' in jsonObject) {
392
+ model.finalOrpheaUpdate = function () {
393
+ if (jsonObject['finalOrpheaUpdate'] === null) {
394
+ return null;
395
+ }
396
+
397
+ if (typeof jsonObject['finalOrpheaUpdate'] !== 'string') {
398
+ return new Date(String(jsonObject['finalOrpheaUpdate']));
399
+ }
400
+
401
+ return new Date(jsonObject['finalOrpheaUpdate']);
402
+ }();
403
+ }
404
+
359
405
  if ('articleSummaries' in jsonObject) {
360
406
  model.articleSummaries = function () {
361
407
  if (Array.isArray(jsonObject['articleSummaries']) !== true) {
@@ -366,6 +412,22 @@ var MAFSizerBatchModel = /*#__PURE__*/function (_BaseModel) {
366
412
  return function () {
367
413
  var articleSummariesItemObject = {};
368
414
 
415
+ if (_typeof(articleSummariesItem) === 'object' && 'index' in articleSummariesItem) {
416
+ articleSummariesItemObject.index = function () {
417
+ if (articleSummariesItem.index === null) {
418
+ return null;
419
+ }
420
+
421
+ if (typeof articleSummariesItem.index !== 'number') {
422
+ return Number.isInteger(Number(articleSummariesItem.index)) ? Number(articleSummariesItem.index) : Math.floor(Number(articleSummariesItem.index));
423
+ }
424
+
425
+ return Number.isInteger(articleSummariesItem.index) ? articleSummariesItem.index : Math.floor(articleSummariesItem.index);
426
+ }();
427
+ } else {
428
+ articleSummariesItemObject.index = null;
429
+ }
430
+
369
431
  if (_typeof(articleSummariesItem) === 'object' && 'name' in articleSummariesItem) {
370
432
  articleSummariesItemObject.name = function () {
371
433
  if (typeof articleSummariesItem.name !== 'string') {
@@ -454,6 +516,46 @@ var MAFSizerBatchModel = /*#__PURE__*/function (_BaseModel) {
454
516
  outletSummariesItemObject.fruitWeight = 0;
455
517
  }
456
518
 
519
+ if (_typeof(outletSummariesItem) === 'object' && 'seenArticles' in outletSummariesItem) {
520
+ outletSummariesItemObject.seenArticles = function () {
521
+ if (Array.isArray(outletSummariesItem.seenArticles) !== true) {
522
+ return [];
523
+ }
524
+
525
+ return outletSummariesItem.seenArticles.map(function (seenArticlesItem) {
526
+ return function () {
527
+ if (typeof seenArticlesItem !== 'number') {
528
+ return Number.isInteger(Number(seenArticlesItem)) ? Number(seenArticlesItem) : Math.floor(Number(seenArticlesItem));
529
+ }
530
+
531
+ return Number.isInteger(seenArticlesItem) ? seenArticlesItem : Math.floor(seenArticlesItem);
532
+ }();
533
+ });
534
+ }();
535
+ } else {
536
+ outletSummariesItemObject.seenArticles = [];
537
+ }
538
+
539
+ if (_typeof(outletSummariesItem) === 'object' && 'activeArticles' in outletSummariesItem) {
540
+ outletSummariesItemObject.activeArticles = function () {
541
+ if (Array.isArray(outletSummariesItem.activeArticles) !== true) {
542
+ return [];
543
+ }
544
+
545
+ return outletSummariesItem.activeArticles.map(function (activeArticlesItem) {
546
+ return function () {
547
+ if (typeof activeArticlesItem !== 'number') {
548
+ return Number.isInteger(Number(activeArticlesItem)) ? Number(activeArticlesItem) : Math.floor(Number(activeArticlesItem));
549
+ }
550
+
551
+ return Number.isInteger(activeArticlesItem) ? activeArticlesItem : Math.floor(activeArticlesItem);
552
+ }();
553
+ });
554
+ }();
555
+ } else {
556
+ outletSummariesItemObject.activeArticles = [];
557
+ }
558
+
457
559
  return outletSummariesItemObject;
458
560
  }();
459
561
  });
@@ -470,28 +572,52 @@ var MAFSizerBatchModel = /*#__PURE__*/function (_BaseModel) {
470
572
  return function () {
471
573
  var fruitSummariesItemObject = {};
472
574
 
473
- if (_typeof(fruitSummariesItem) === 'object' && 'articleName' in fruitSummariesItem) {
474
- fruitSummariesItemObject.articleName = function () {
475
- if (typeof fruitSummariesItem.articleName !== 'string') {
476
- return String(fruitSummariesItem.articleName);
575
+ if (_typeof(fruitSummariesItem) === 'object' && 'sizeIndex' in fruitSummariesItem) {
576
+ fruitSummariesItemObject.sizeIndex = function () {
577
+ if (typeof fruitSummariesItem.sizeIndex !== 'number') {
578
+ return Number.isInteger(Number(fruitSummariesItem.sizeIndex)) ? Number(fruitSummariesItem.sizeIndex) : Math.floor(Number(fruitSummariesItem.sizeIndex));
477
579
  }
478
580
 
479
- return fruitSummariesItem.articleName;
581
+ return Number.isInteger(fruitSummariesItem.sizeIndex) ? fruitSummariesItem.sizeIndex : Math.floor(fruitSummariesItem.sizeIndex);
480
582
  }();
481
583
  } else {
482
- fruitSummariesItemObject.articleName = "";
584
+ fruitSummariesItemObject.sizeIndex = 0;
585
+ }
586
+
587
+ if (_typeof(fruitSummariesItem) === 'object' && 'sizeName' in fruitSummariesItem) {
588
+ fruitSummariesItemObject.sizeName = function () {
589
+ if (typeof fruitSummariesItem.sizeName !== 'string') {
590
+ return String(fruitSummariesItem.sizeName);
591
+ }
592
+
593
+ return fruitSummariesItem.sizeName;
594
+ }();
595
+ } else {
596
+ fruitSummariesItemObject.sizeName = "";
597
+ }
598
+
599
+ if (_typeof(fruitSummariesItem) === 'object' && 'articleIndex' in fruitSummariesItem) {
600
+ fruitSummariesItemObject.articleIndex = function () {
601
+ if (typeof fruitSummariesItem.articleIndex !== 'number') {
602
+ return Number.isInteger(Number(fruitSummariesItem.articleIndex)) ? Number(fruitSummariesItem.articleIndex) : Math.floor(Number(fruitSummariesItem.articleIndex));
603
+ }
604
+
605
+ return Number.isInteger(fruitSummariesItem.articleIndex) ? fruitSummariesItem.articleIndex : Math.floor(fruitSummariesItem.articleIndex);
606
+ }();
607
+ } else {
608
+ fruitSummariesItemObject.articleIndex = 0;
483
609
  }
484
610
 
485
- if (_typeof(fruitSummariesItem) === 'object' && 'fruitSize' in fruitSummariesItem) {
486
- fruitSummariesItemObject.fruitSize = function () {
487
- if (typeof fruitSummariesItem.fruitSize !== 'string') {
488
- return String(fruitSummariesItem.fruitSize);
611
+ if (_typeof(fruitSummariesItem) === 'object' && 'articleName' in fruitSummariesItem) {
612
+ fruitSummariesItemObject.articleName = function () {
613
+ if (typeof fruitSummariesItem.articleName !== 'string') {
614
+ return String(fruitSummariesItem.articleName);
489
615
  }
490
616
 
491
- return fruitSummariesItem.fruitSize;
617
+ return fruitSummariesItem.articleName;
492
618
  }();
493
619
  } else {
494
- fruitSummariesItemObject.fruitSize = "";
620
+ fruitSummariesItemObject.articleName = "";
495
621
  }
496
622
 
497
623
  if (_typeof(fruitSummariesItem) === 'object' && 'fruitCount' in fruitSummariesItem) {
@@ -524,6 +650,186 @@ var MAFSizerBatchModel = /*#__PURE__*/function (_BaseModel) {
524
650
  }();
525
651
  }
526
652
 
653
+ if ('outletFruitSummaries' in jsonObject) {
654
+ model.outletFruitSummaries = function () {
655
+ if (Array.isArray(jsonObject['outletFruitSummaries']) !== true) {
656
+ return [];
657
+ }
658
+
659
+ return jsonObject['outletFruitSummaries'].map(function (outletFruitSummariesItem) {
660
+ return function () {
661
+ var outletFruitSummariesItemObject = {};
662
+
663
+ if (_typeof(outletFruitSummariesItem) === 'object' && 'outletNumber' in outletFruitSummariesItem) {
664
+ outletFruitSummariesItemObject.outletNumber = function () {
665
+ if (typeof outletFruitSummariesItem.outletNumber !== 'number') {
666
+ return Number.isInteger(Number(outletFruitSummariesItem.outletNumber)) ? Number(outletFruitSummariesItem.outletNumber) : Math.floor(Number(outletFruitSummariesItem.outletNumber));
667
+ }
668
+
669
+ return Number.isInteger(outletFruitSummariesItem.outletNumber) ? outletFruitSummariesItem.outletNumber : Math.floor(outletFruitSummariesItem.outletNumber);
670
+ }();
671
+ } else {
672
+ outletFruitSummariesItemObject.outletNumber = 0;
673
+ }
674
+
675
+ if (_typeof(outletFruitSummariesItem) === 'object' && 'sizeIndex' in outletFruitSummariesItem) {
676
+ outletFruitSummariesItemObject.sizeIndex = function () {
677
+ if (typeof outletFruitSummariesItem.sizeIndex !== 'number') {
678
+ return Number.isInteger(Number(outletFruitSummariesItem.sizeIndex)) ? Number(outletFruitSummariesItem.sizeIndex) : Math.floor(Number(outletFruitSummariesItem.sizeIndex));
679
+ }
680
+
681
+ return Number.isInteger(outletFruitSummariesItem.sizeIndex) ? outletFruitSummariesItem.sizeIndex : Math.floor(outletFruitSummariesItem.sizeIndex);
682
+ }();
683
+ } else {
684
+ outletFruitSummariesItemObject.sizeIndex = 0;
685
+ }
686
+
687
+ if (_typeof(outletFruitSummariesItem) === 'object' && 'sizeName' in outletFruitSummariesItem) {
688
+ outletFruitSummariesItemObject.sizeName = function () {
689
+ if (typeof outletFruitSummariesItem.sizeName !== 'string') {
690
+ return String(outletFruitSummariesItem.sizeName);
691
+ }
692
+
693
+ return outletFruitSummariesItem.sizeName;
694
+ }();
695
+ } else {
696
+ outletFruitSummariesItemObject.sizeName = "";
697
+ }
698
+
699
+ if (_typeof(outletFruitSummariesItem) === 'object' && 'articleIndex' in outletFruitSummariesItem) {
700
+ outletFruitSummariesItemObject.articleIndex = function () {
701
+ if (typeof outletFruitSummariesItem.articleIndex !== 'number') {
702
+ return Number.isInteger(Number(outletFruitSummariesItem.articleIndex)) ? Number(outletFruitSummariesItem.articleIndex) : Math.floor(Number(outletFruitSummariesItem.articleIndex));
703
+ }
704
+
705
+ return Number.isInteger(outletFruitSummariesItem.articleIndex) ? outletFruitSummariesItem.articleIndex : Math.floor(outletFruitSummariesItem.articleIndex);
706
+ }();
707
+ } else {
708
+ outletFruitSummariesItemObject.articleIndex = 0;
709
+ }
710
+
711
+ if (_typeof(outletFruitSummariesItem) === 'object' && 'articleName' in outletFruitSummariesItem) {
712
+ outletFruitSummariesItemObject.articleName = function () {
713
+ if (typeof outletFruitSummariesItem.articleName !== 'string') {
714
+ return String(outletFruitSummariesItem.articleName);
715
+ }
716
+
717
+ return outletFruitSummariesItem.articleName;
718
+ }();
719
+ } else {
720
+ outletFruitSummariesItemObject.articleName = "";
721
+ }
722
+
723
+ if (_typeof(outletFruitSummariesItem) === 'object' && 'fruitCount' in outletFruitSummariesItem) {
724
+ outletFruitSummariesItemObject.fruitCount = function () {
725
+ if (typeof outletFruitSummariesItem.fruitCount !== 'number') {
726
+ return Number.isInteger(Number(outletFruitSummariesItem.fruitCount)) ? Number(outletFruitSummariesItem.fruitCount) : Math.floor(Number(outletFruitSummariesItem.fruitCount));
727
+ }
728
+
729
+ return Number.isInteger(outletFruitSummariesItem.fruitCount) ? outletFruitSummariesItem.fruitCount : Math.floor(outletFruitSummariesItem.fruitCount);
730
+ }();
731
+ } else {
732
+ outletFruitSummariesItemObject.fruitCount = 0;
733
+ }
734
+
735
+ if (_typeof(outletFruitSummariesItem) === 'object' && 'fruitWeight' in outletFruitSummariesItem) {
736
+ outletFruitSummariesItemObject.fruitWeight = function () {
737
+ if (typeof outletFruitSummariesItem.fruitWeight !== 'number') {
738
+ return Number(outletFruitSummariesItem.fruitWeight);
739
+ }
740
+
741
+ return outletFruitSummariesItem.fruitWeight;
742
+ }();
743
+ } else {
744
+ outletFruitSummariesItemObject.fruitWeight = 0;
745
+ }
746
+
747
+ return outletFruitSummariesItemObject;
748
+ }();
749
+ });
750
+ }();
751
+ }
752
+
753
+ if ('sizeNames' in jsonObject) {
754
+ model.sizeNames = function () {
755
+ if (Array.isArray(jsonObject['sizeNames']) !== true) {
756
+ return [];
757
+ }
758
+
759
+ return jsonObject['sizeNames'].map(function (sizeNamesItem) {
760
+ return function () {
761
+ var sizeNamesItemObject = {};
762
+
763
+ if (_typeof(sizeNamesItem) === 'object' && 'index' in sizeNamesItem) {
764
+ sizeNamesItemObject.index = function () {
765
+ if (typeof sizeNamesItem.index !== 'number') {
766
+ return Number.isInteger(Number(sizeNamesItem.index)) ? Number(sizeNamesItem.index) : Math.floor(Number(sizeNamesItem.index));
767
+ }
768
+
769
+ return Number.isInteger(sizeNamesItem.index) ? sizeNamesItem.index : Math.floor(sizeNamesItem.index);
770
+ }();
771
+ } else {
772
+ sizeNamesItemObject.index = 0;
773
+ }
774
+
775
+ if (_typeof(sizeNamesItem) === 'object' && 'name' in sizeNamesItem) {
776
+ sizeNamesItemObject.name = function () {
777
+ if (typeof sizeNamesItem.name !== 'string') {
778
+ return String(sizeNamesItem.name);
779
+ }
780
+
781
+ return sizeNamesItem.name;
782
+ }();
783
+ } else {
784
+ sizeNamesItemObject.name = "";
785
+ }
786
+
787
+ return sizeNamesItemObject;
788
+ }();
789
+ });
790
+ }();
791
+ }
792
+
793
+ if ('articleNames' in jsonObject) {
794
+ model.articleNames = function () {
795
+ if (Array.isArray(jsonObject['articleNames']) !== true) {
796
+ return [];
797
+ }
798
+
799
+ return jsonObject['articleNames'].map(function (articleNamesItem) {
800
+ return function () {
801
+ var articleNamesItemObject = {};
802
+
803
+ if (_typeof(articleNamesItem) === 'object' && 'index' in articleNamesItem) {
804
+ articleNamesItemObject.index = function () {
805
+ if (typeof articleNamesItem.index !== 'number') {
806
+ return Number.isInteger(Number(articleNamesItem.index)) ? Number(articleNamesItem.index) : Math.floor(Number(articleNamesItem.index));
807
+ }
808
+
809
+ return Number.isInteger(articleNamesItem.index) ? articleNamesItem.index : Math.floor(articleNamesItem.index);
810
+ }();
811
+ } else {
812
+ articleNamesItemObject.index = 0;
813
+ }
814
+
815
+ if (_typeof(articleNamesItem) === 'object' && 'name' in articleNamesItem) {
816
+ articleNamesItemObject.name = function () {
817
+ if (typeof articleNamesItem.name !== 'string') {
818
+ return String(articleNamesItem.name);
819
+ }
820
+
821
+ return articleNamesItem.name;
822
+ }();
823
+ } else {
824
+ articleNamesItemObject.name = "";
825
+ }
826
+
827
+ return articleNamesItemObject;
828
+ }();
829
+ });
830
+ }();
831
+ }
832
+
527
833
  if ('deleted' in jsonObject) {
528
834
  model.deleted = function () {
529
835
  if (typeof jsonObject['deleted'] !== 'boolean') {