@ricado/api-client 2.5.16 → 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.
- package/dist/ricado.api.client.js +1 -1
- package/lib/Controllers/Lab/Site/FruitProfileController.js +16 -0
- package/lib/Controllers/Lab/Site/SampleController.js +8 -0
- package/lib/Controllers/Packhouse/Site/MAFSizerBatchController.js +46 -1
- package/lib/Controllers/Packhouse/Site/MAFSizerPackrunSummaryController.js +26 -0
- package/lib/Controllers/Packhouse/Site/PackrunController.js +73 -0
- package/lib/Models/Lab/Site/FruitProfileModel.js +144 -0
- package/lib/Models/Lab/Site/SampleModel.js +88 -0
- package/lib/Models/Packhouse/Site/MAFSizerBatchModel.js +321 -15
- package/lib/Models/Packhouse/Site/MAFSizerPackrunSummaryModel.js +162 -0
- package/lib/PackageVersion.js +1 -1
- package/lib/index.d.ts +441 -6
- package/package.json +1 -1
- package/src/Controllers/Lab/Site/FruitProfileController.js +16 -0
- package/src/Controllers/Lab/Site/SampleController.js +8 -0
- package/src/Controllers/Packhouse/Site/MAFSizerBatchController.js +46 -1
- package/src/Controllers/Packhouse/Site/MAFSizerPackrunSummaryController.js +26 -0
- package/src/Controllers/Packhouse/Site/PackrunController.js +94 -0
- package/src/Models/Lab/Site/FruitProfileModel.js +160 -0
- package/src/Models/Lab/Site/SampleModel.js +100 -0
- package/src/Models/Packhouse/Site/MAFSizerBatchModel.js +397 -15
- package/src/Models/Packhouse/Site/MAFSizerPackrunSummaryModel.js +207 -0
- package/src/PackageVersion.js +1 -1
|
@@ -185,6 +185,14 @@ var _default = FruitProfileController;
|
|
|
185
185
|
* @property {number} maximumTotalDuration The Maximum Duration (in seconds) that a Sample can be Dehydrated for before it is Considered Non-Compliant
|
|
186
186
|
* @property {number} minimumTargetTemperature The Minimum Target Temperature for a Sample to be Compliant
|
|
187
187
|
* @property {number} maximumTargetTemperature The Maximum Target Temperature for a Sample to be Compliant
|
|
188
|
+
* @property {number} warmUpStartExpectedTemperature The Warm-Up Temperature for starting the Warm Up alerts
|
|
189
|
+
* @property {number} warmUpStartExpectedRateOfChange The Warm-Up Start Expected Rate of Change
|
|
190
|
+
* @property {number} warmUpStageTwoExpectedTemperature The Warm-Up Stage Two Expected Temperature
|
|
191
|
+
* @property {number} warmUpStageTwoExpectedRateOfChange The Warm-Up Stage Two Expected Rate of Change
|
|
192
|
+
* @property {number} warmUpStageThreeExpectedTemperature The Warm-Up Stage Three Expected Temperature
|
|
193
|
+
* @property {number} warmUpStageThreeExpectedRateOfChange The Warm-Up Stage Three Expected Rate of Change
|
|
194
|
+
* @property {number} warmUpEndExpectedTemperature The Warm-Up End Expected Temperature
|
|
195
|
+
* @property {number} warmUpEndExpectedRateOfChange The Warm-Up End Expected Rate of Change
|
|
188
196
|
* @memberof Controllers.Lab.Site
|
|
189
197
|
*/
|
|
190
198
|
|
|
@@ -201,6 +209,14 @@ var _default = FruitProfileController;
|
|
|
201
209
|
* @property {number} [maximumTotalDuration] The Maximum Duration (in seconds) that a Sample can be Dehydrated for before it is Considered Non-Compliant
|
|
202
210
|
* @property {number} [minimumTargetTemperature] The Minimum Target Temperature for a Sample to be Compliant
|
|
203
211
|
* @property {number} [maximumTargetTemperature] The Maximum Target Temperature for a Sample to be Compliant
|
|
212
|
+
* @property {number} [warmUpStartExpectedTemperature] The Warm-Up Temperature for starting the Warm Up alerts
|
|
213
|
+
* @property {number} [warmUpStartExpectedRateOfChange] The Warm-Up Start Expected Rate of Change
|
|
214
|
+
* @property {number} [warmUpStageTwoExpectedTemperature] The Warm-Up Stage Two Expected Temperature
|
|
215
|
+
* @property {number} [warmUpStageTwoExpectedRateOfChange] The Warm-Up Stage Two Expected Rate of Change
|
|
216
|
+
* @property {number} [warmUpStageThreeExpectedTemperature] The Warm-Up Stage Three Expected Temperature
|
|
217
|
+
* @property {number} [warmUpStageThreeExpectedRateOfChange] The Warm-Up Stage Three Expected Rate of Change
|
|
218
|
+
* @property {number} [warmUpEndExpectedTemperature] The Warm-Up End Expected Temperature
|
|
219
|
+
* @property {number} [warmUpEndExpectedRateOfChange] The Warm-Up End Expected Rate of Change
|
|
204
220
|
* @memberof Controllers.Lab.Site
|
|
205
221
|
*/
|
|
206
222
|
|
|
@@ -952,6 +952,7 @@ var _default = SampleController;
|
|
|
952
952
|
* @property {string} createdSource The Source that Created this Sample
|
|
953
953
|
* @property {?string} [createdUserName] Name of the User who Created this Sample
|
|
954
954
|
* @property {?Date} [scheduledTimestamp] Optional Scheduled Timestamp when this Sample should Begin
|
|
955
|
+
* @property {?Date} [scheduleReceivedTimestamp] Optional When the Schedule was received from Inspect
|
|
955
956
|
* @property {?Date} [loadedTimestamp] When this Sample was Loaded into the Dehydrator
|
|
956
957
|
* @property {?Date} [startTimestamp] When this Sample was Started
|
|
957
958
|
* @property {?Date} [finishTimestamp] When this Sample was Finished
|
|
@@ -963,6 +964,9 @@ var _default = SampleController;
|
|
|
963
964
|
* @property {string} rackPositionId The Rack Position used for this Sample
|
|
964
965
|
* @property {string} dehydratorId The Dehydrator used for this Sample
|
|
965
966
|
* @property {?string} [resultId] The Sample Result ID asociated with this Sample
|
|
967
|
+
* @property {?string} [blindedSampleID] Optional the BlindedSampleID Reference defined in RadfordsInspect
|
|
968
|
+
* @property {?string} [shortDescription] Optional the Sample Short Description defined in RadfordsInspect
|
|
969
|
+
* @property {?string} [sampleDescription] Optional the Sample Description defined in RadfordsInspect
|
|
966
970
|
* @memberof Controllers.Lab.Site
|
|
967
971
|
*/
|
|
968
972
|
|
|
@@ -975,6 +979,7 @@ var _default = SampleController;
|
|
|
975
979
|
* @property {string} [createdSource] The Source that Created this Sample
|
|
976
980
|
* @property {?string} [createdUserName] Name of the User who Created this Sample
|
|
977
981
|
* @property {?Date} [scheduledTimestamp] Optional Scheduled Timestamp when this Sample should Begin
|
|
982
|
+
* @property {?Date} [scheduleReceivedTimestamp] Optional When the Schedule was received from Inspect
|
|
978
983
|
* @property {?Date} [loadedTimestamp] When this Sample was Loaded into the Dehydrator
|
|
979
984
|
* @property {?Date} [startTimestamp] When this Sample was Started
|
|
980
985
|
* @property {?Date} [finishTimestamp] When this Sample was Finished
|
|
@@ -986,6 +991,9 @@ var _default = SampleController;
|
|
|
986
991
|
* @property {string} [rackPositionId] The Rack Position used for this Sample
|
|
987
992
|
* @property {string} [dehydratorId] The Dehydrator used for this Sample
|
|
988
993
|
* @property {?string} [resultId] The Sample Result ID asociated with this Sample
|
|
994
|
+
* @property {?string} [blindedSampleID] Optional the BlindedSampleID Reference defined in RadfordsInspect
|
|
995
|
+
* @property {?string} [shortDescription] Optional the Sample Short Description defined in RadfordsInspect
|
|
996
|
+
* @property {?string} [sampleDescription] Optional the Sample Description defined in RadfordsInspect
|
|
989
997
|
* @memberof Controllers.Lab.Site
|
|
990
998
|
*/
|
|
991
999
|
|
|
@@ -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
|
|
@@ -135,6 +135,70 @@ var FruitProfileModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
135
135
|
*/
|
|
136
136
|
|
|
137
137
|
_this.maximumTargetTemperature = 0;
|
|
138
|
+
/**
|
|
139
|
+
* The Warm-Up Temperature for starting the Warm Up alerts
|
|
140
|
+
*
|
|
141
|
+
* @type {number}
|
|
142
|
+
* @public
|
|
143
|
+
*/
|
|
144
|
+
|
|
145
|
+
_this.warmUpStartExpectedTemperature = 0;
|
|
146
|
+
/**
|
|
147
|
+
* The Warm-Up Start Expected Rate of Change
|
|
148
|
+
*
|
|
149
|
+
* @type {number}
|
|
150
|
+
* @public
|
|
151
|
+
*/
|
|
152
|
+
|
|
153
|
+
_this.warmUpStartExpectedRateOfChange = 0;
|
|
154
|
+
/**
|
|
155
|
+
* The Warm-Up Stage Two Expected Temperature
|
|
156
|
+
*
|
|
157
|
+
* @type {number}
|
|
158
|
+
* @public
|
|
159
|
+
*/
|
|
160
|
+
|
|
161
|
+
_this.warmUpStageTwoExpectedTemperature = 0;
|
|
162
|
+
/**
|
|
163
|
+
* The Warm-Up Stage Two Expected Rate of Change
|
|
164
|
+
*
|
|
165
|
+
* @type {number}
|
|
166
|
+
* @public
|
|
167
|
+
*/
|
|
168
|
+
|
|
169
|
+
_this.warmUpStageTwoExpectedRateOfChange = 0;
|
|
170
|
+
/**
|
|
171
|
+
* The Warm-Up Stage Three Expected Temperature
|
|
172
|
+
*
|
|
173
|
+
* @type {number}
|
|
174
|
+
* @public
|
|
175
|
+
*/
|
|
176
|
+
|
|
177
|
+
_this.warmUpStageThreeExpectedTemperature = 0;
|
|
178
|
+
/**
|
|
179
|
+
* The Warm-Up Stage Three Expected Rate of Change
|
|
180
|
+
*
|
|
181
|
+
* @type {number}
|
|
182
|
+
* @public
|
|
183
|
+
*/
|
|
184
|
+
|
|
185
|
+
_this.warmUpStageThreeExpectedRateOfChange = 0;
|
|
186
|
+
/**
|
|
187
|
+
* The Warm-Up End Expected Temperature
|
|
188
|
+
*
|
|
189
|
+
* @type {number}
|
|
190
|
+
* @public
|
|
191
|
+
*/
|
|
192
|
+
|
|
193
|
+
_this.warmUpEndExpectedTemperature = 0;
|
|
194
|
+
/**
|
|
195
|
+
* The Warm-Up End Expected Rate of Change
|
|
196
|
+
*
|
|
197
|
+
* @type {number}
|
|
198
|
+
* @public
|
|
199
|
+
*/
|
|
200
|
+
|
|
201
|
+
_this.warmUpEndExpectedRateOfChange = 0;
|
|
138
202
|
/**
|
|
139
203
|
* Whether the Fruit Profile has been deleted
|
|
140
204
|
*
|
|
@@ -290,6 +354,86 @@ var FruitProfileModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
290
354
|
}();
|
|
291
355
|
}
|
|
292
356
|
|
|
357
|
+
if ('warmUpStartExpectedTemperature' in jsonObject) {
|
|
358
|
+
model.warmUpStartExpectedTemperature = function () {
|
|
359
|
+
if (typeof jsonObject['warmUpStartExpectedTemperature'] !== 'number') {
|
|
360
|
+
return Number(jsonObject['warmUpStartExpectedTemperature']);
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
return jsonObject['warmUpStartExpectedTemperature'];
|
|
364
|
+
}();
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
if ('warmUpStartExpectedRateOfChange' in jsonObject) {
|
|
368
|
+
model.warmUpStartExpectedRateOfChange = function () {
|
|
369
|
+
if (typeof jsonObject['warmUpStartExpectedRateOfChange'] !== 'number') {
|
|
370
|
+
return Number(jsonObject['warmUpStartExpectedRateOfChange']);
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
return jsonObject['warmUpStartExpectedRateOfChange'];
|
|
374
|
+
}();
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
if ('warmUpStageTwoExpectedTemperature' in jsonObject) {
|
|
378
|
+
model.warmUpStageTwoExpectedTemperature = function () {
|
|
379
|
+
if (typeof jsonObject['warmUpStageTwoExpectedTemperature'] !== 'number') {
|
|
380
|
+
return Number(jsonObject['warmUpStageTwoExpectedTemperature']);
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
return jsonObject['warmUpStageTwoExpectedTemperature'];
|
|
384
|
+
}();
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
if ('warmUpStageTwoExpectedRateOfChange' in jsonObject) {
|
|
388
|
+
model.warmUpStageTwoExpectedRateOfChange = function () {
|
|
389
|
+
if (typeof jsonObject['warmUpStageTwoExpectedRateOfChange'] !== 'number') {
|
|
390
|
+
return Number(jsonObject['warmUpStageTwoExpectedRateOfChange']);
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
return jsonObject['warmUpStageTwoExpectedRateOfChange'];
|
|
394
|
+
}();
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
if ('warmUpStageThreeExpectedTemperature' in jsonObject) {
|
|
398
|
+
model.warmUpStageThreeExpectedTemperature = function () {
|
|
399
|
+
if (typeof jsonObject['warmUpStageThreeExpectedTemperature'] !== 'number') {
|
|
400
|
+
return Number(jsonObject['warmUpStageThreeExpectedTemperature']);
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
return jsonObject['warmUpStageThreeExpectedTemperature'];
|
|
404
|
+
}();
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
if ('warmUpStageThreeExpectedRateOfChange' in jsonObject) {
|
|
408
|
+
model.warmUpStageThreeExpectedRateOfChange = function () {
|
|
409
|
+
if (typeof jsonObject['warmUpStageThreeExpectedRateOfChange'] !== 'number') {
|
|
410
|
+
return Number(jsonObject['warmUpStageThreeExpectedRateOfChange']);
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
return jsonObject['warmUpStageThreeExpectedRateOfChange'];
|
|
414
|
+
}();
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
if ('warmUpEndExpectedTemperature' in jsonObject) {
|
|
418
|
+
model.warmUpEndExpectedTemperature = function () {
|
|
419
|
+
if (typeof jsonObject['warmUpEndExpectedTemperature'] !== 'number') {
|
|
420
|
+
return Number(jsonObject['warmUpEndExpectedTemperature']);
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
return jsonObject['warmUpEndExpectedTemperature'];
|
|
424
|
+
}();
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
if ('warmUpEndExpectedRateOfChange' in jsonObject) {
|
|
428
|
+
model.warmUpEndExpectedRateOfChange = function () {
|
|
429
|
+
if (typeof jsonObject['warmUpEndExpectedRateOfChange'] !== 'number') {
|
|
430
|
+
return Number(jsonObject['warmUpEndExpectedRateOfChange']);
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
return jsonObject['warmUpEndExpectedRateOfChange'];
|
|
434
|
+
}();
|
|
435
|
+
}
|
|
436
|
+
|
|
293
437
|
if ('deleted' in jsonObject) {
|
|
294
438
|
model.deleted = function () {
|
|
295
439
|
if (typeof jsonObject['deleted'] !== 'boolean') {
|
|
@@ -111,6 +111,14 @@ var SampleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
111
111
|
*/
|
|
112
112
|
|
|
113
113
|
_this.scheduledTimestamp = null;
|
|
114
|
+
/**
|
|
115
|
+
* Optional When the Schedule was received from Inspect
|
|
116
|
+
*
|
|
117
|
+
* @type {?Date}
|
|
118
|
+
* @public
|
|
119
|
+
*/
|
|
120
|
+
|
|
121
|
+
_this.scheduleReceivedTimestamp = null;
|
|
114
122
|
/**
|
|
115
123
|
* When this Sample was Loaded into the Dehydrator
|
|
116
124
|
*
|
|
@@ -199,6 +207,30 @@ var SampleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
199
207
|
*/
|
|
200
208
|
|
|
201
209
|
_this.resultId = null;
|
|
210
|
+
/**
|
|
211
|
+
* Optional the BlindedSampleID Reference defined in RadfordsInspect
|
|
212
|
+
*
|
|
213
|
+
* @type {?string}
|
|
214
|
+
* @public
|
|
215
|
+
*/
|
|
216
|
+
|
|
217
|
+
_this.blindedSampleID = null;
|
|
218
|
+
/**
|
|
219
|
+
* Optional the Sample Short Description defined in RadfordsInspect
|
|
220
|
+
*
|
|
221
|
+
* @type {?string}
|
|
222
|
+
* @public
|
|
223
|
+
*/
|
|
224
|
+
|
|
225
|
+
_this.shortDescription = null;
|
|
226
|
+
/**
|
|
227
|
+
* Optional the Sample Description defined in RadfordsInspect
|
|
228
|
+
*
|
|
229
|
+
* @type {?string}
|
|
230
|
+
* @public
|
|
231
|
+
*/
|
|
232
|
+
|
|
233
|
+
_this.sampleDescription = null;
|
|
202
234
|
/**
|
|
203
235
|
* The Status of this Sample
|
|
204
236
|
*
|
|
@@ -340,6 +372,20 @@ var SampleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
340
372
|
}();
|
|
341
373
|
}
|
|
342
374
|
|
|
375
|
+
if ('scheduleReceivedTimestamp' in jsonObject) {
|
|
376
|
+
model.scheduleReceivedTimestamp = function () {
|
|
377
|
+
if (jsonObject['scheduleReceivedTimestamp'] === null) {
|
|
378
|
+
return null;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
if (typeof jsonObject['scheduleReceivedTimestamp'] !== 'string') {
|
|
382
|
+
return new Date(String(jsonObject['scheduleReceivedTimestamp']));
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
return new Date(jsonObject['scheduleReceivedTimestamp']);
|
|
386
|
+
}();
|
|
387
|
+
}
|
|
388
|
+
|
|
343
389
|
if ('loadedTimestamp' in jsonObject) {
|
|
344
390
|
model.loadedTimestamp = function () {
|
|
345
391
|
if (jsonObject['loadedTimestamp'] === null) {
|
|
@@ -482,6 +528,48 @@ var SampleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
482
528
|
}();
|
|
483
529
|
}
|
|
484
530
|
|
|
531
|
+
if ('blindedSampleID' in jsonObject) {
|
|
532
|
+
model.blindedSampleID = function () {
|
|
533
|
+
if (jsonObject['blindedSampleID'] === null) {
|
|
534
|
+
return null;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
if (typeof jsonObject['blindedSampleID'] !== 'string') {
|
|
538
|
+
return String(jsonObject['blindedSampleID']);
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
return jsonObject['blindedSampleID'];
|
|
542
|
+
}();
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
if ('shortDescription' in jsonObject) {
|
|
546
|
+
model.shortDescription = function () {
|
|
547
|
+
if (jsonObject['shortDescription'] === null) {
|
|
548
|
+
return null;
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
if (typeof jsonObject['shortDescription'] !== 'string') {
|
|
552
|
+
return String(jsonObject['shortDescription']);
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
return jsonObject['shortDescription'];
|
|
556
|
+
}();
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
if ('sampleDescription' in jsonObject) {
|
|
560
|
+
model.sampleDescription = function () {
|
|
561
|
+
if (jsonObject['sampleDescription'] === null) {
|
|
562
|
+
return null;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
if (typeof jsonObject['sampleDescription'] !== 'string') {
|
|
566
|
+
return String(jsonObject['sampleDescription']);
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
return jsonObject['sampleDescription'];
|
|
570
|
+
}();
|
|
571
|
+
}
|
|
572
|
+
|
|
485
573
|
if ('status' in jsonObject) {
|
|
486
574
|
model.status = function () {
|
|
487
575
|
if (typeof jsonObject['status'] !== 'string') {
|