@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
|
@@ -1091,6 +1091,7 @@ export default SampleController;
|
|
|
1091
1091
|
* @property {string} createdSource The Source that Created this Sample
|
|
1092
1092
|
* @property {?string} [createdUserName] Name of the User who Created this Sample
|
|
1093
1093
|
* @property {?Date} [scheduledTimestamp] Optional Scheduled Timestamp when this Sample should Begin
|
|
1094
|
+
* @property {?Date} [scheduleReceivedTimestamp] Optional When the Schedule was received from Inspect
|
|
1094
1095
|
* @property {?Date} [loadedTimestamp] When this Sample was Loaded into the Dehydrator
|
|
1095
1096
|
* @property {?Date} [startTimestamp] When this Sample was Started
|
|
1096
1097
|
* @property {?Date} [finishTimestamp] When this Sample was Finished
|
|
@@ -1102,6 +1103,9 @@ export default SampleController;
|
|
|
1102
1103
|
* @property {string} rackPositionId The Rack Position used for this Sample
|
|
1103
1104
|
* @property {string} dehydratorId The Dehydrator used for this Sample
|
|
1104
1105
|
* @property {?string} [resultId] The Sample Result ID asociated with this Sample
|
|
1106
|
+
* @property {?string} [blindedSampleID] Optional the BlindedSampleID Reference defined in RadfordsInspect
|
|
1107
|
+
* @property {?string} [shortDescription] Optional the Sample Short Description defined in RadfordsInspect
|
|
1108
|
+
* @property {?string} [sampleDescription] Optional the Sample Description defined in RadfordsInspect
|
|
1105
1109
|
* @memberof Controllers.Lab.Site
|
|
1106
1110
|
*/
|
|
1107
1111
|
|
|
@@ -1114,6 +1118,7 @@ export default SampleController;
|
|
|
1114
1118
|
* @property {string} [createdSource] The Source that Created this Sample
|
|
1115
1119
|
* @property {?string} [createdUserName] Name of the User who Created this Sample
|
|
1116
1120
|
* @property {?Date} [scheduledTimestamp] Optional Scheduled Timestamp when this Sample should Begin
|
|
1121
|
+
* @property {?Date} [scheduleReceivedTimestamp] Optional When the Schedule was received from Inspect
|
|
1117
1122
|
* @property {?Date} [loadedTimestamp] When this Sample was Loaded into the Dehydrator
|
|
1118
1123
|
* @property {?Date} [startTimestamp] When this Sample was Started
|
|
1119
1124
|
* @property {?Date} [finishTimestamp] When this Sample was Finished
|
|
@@ -1125,6 +1130,9 @@ export default SampleController;
|
|
|
1125
1130
|
* @property {string} [rackPositionId] The Rack Position used for this Sample
|
|
1126
1131
|
* @property {string} [dehydratorId] The Dehydrator used for this Sample
|
|
1127
1132
|
* @property {?string} [resultId] The Sample Result ID asociated with this Sample
|
|
1133
|
+
* @property {?string} [blindedSampleID] Optional the BlindedSampleID Reference defined in RadfordsInspect
|
|
1134
|
+
* @property {?string} [shortDescription] Optional the Sample Short Description defined in RadfordsInspect
|
|
1135
|
+
* @property {?string} [sampleDescription] Optional the Sample Description defined in RadfordsInspect
|
|
1128
1136
|
* @memberof Controllers.Lab.Site
|
|
1129
1137
|
*/
|
|
1130
1138
|
|
|
@@ -978,9 +978,13 @@ export default MAFSizerBatchController;
|
|
|
978
978
|
* @property {?string} [varietyName] The Variety Name
|
|
979
979
|
* @property {number} totalWeight The Total Weight Processed for this Batch
|
|
980
980
|
* @property {?string} [packrunId] The Packrun ID associated with this Batch
|
|
981
|
+
* @property {?Date} [finalOrpheaUpdate] When the Final Update from the MAF Sizer Orphea Database has been Received
|
|
981
982
|
* @property {Array<MAFSizerBatchController.ArticleSummary>} [articleSummaries] An Array of Summary Data Objects for each Article
|
|
982
983
|
* @property {Array<MAFSizerBatchController.OutletSummary>} [outletSummaries] An Array of Summary Data Objects for each Outlet
|
|
983
984
|
* @property {Array<MAFSizerBatchController.FruitSummary>} [fruitSummaries] An Array of Summary Data Objects for each Fruit Size and Article
|
|
985
|
+
* @property {Array<MAFSizerBatchController.OutletFruitSummary>} [outletFruitSummaries] An Array of Summary Data Objects for each Outlet by Fruit Size and Article
|
|
986
|
+
* @property {Array<MAFSizerBatchController.SizeNameLookup>} [sizeNames] An Array of Size Names and Indexes
|
|
987
|
+
* @property {Array<MAFSizerBatchController.ArticleNameLookup>} [articleNames] An Array of Article Names and Indexes
|
|
984
988
|
* @memberof Controllers.Packhouse.Site
|
|
985
989
|
*/
|
|
986
990
|
|
|
@@ -997,9 +1001,13 @@ export default MAFSizerBatchController;
|
|
|
997
1001
|
* @property {?string} [varietyName] The Variety Name
|
|
998
1002
|
* @property {number} [totalWeight] The Total Weight Processed for this Batch
|
|
999
1003
|
* @property {?string} [packrunId] The Packrun ID associated with this Batch
|
|
1004
|
+
* @property {?Date} [finalOrpheaUpdate] When the Final Update from the MAF Sizer Orphea Database has been Received
|
|
1000
1005
|
* @property {Array<MAFSizerBatchController.ArticleSummary>} [articleSummaries] An Array of Summary Data Objects for each Article
|
|
1001
1006
|
* @property {Array<MAFSizerBatchController.OutletSummary>} [outletSummaries] An Array of Summary Data Objects for each Outlet
|
|
1002
1007
|
* @property {Array<MAFSizerBatchController.FruitSummary>} [fruitSummaries] An Array of Summary Data Objects for each Fruit Size and Article
|
|
1008
|
+
* @property {Array<MAFSizerBatchController.OutletFruitSummary>} [outletFruitSummaries] An Array of Summary Data Objects for each Outlet by Fruit Size and Article
|
|
1009
|
+
* @property {Array<MAFSizerBatchController.SizeNameLookup>} [sizeNames] An Array of Size Names and Indexes
|
|
1010
|
+
* @property {Array<MAFSizerBatchController.ArticleNameLookup>} [articleNames] An Array of Article Names and Indexes
|
|
1003
1011
|
* @memberof Controllers.Packhouse.Site
|
|
1004
1012
|
*/
|
|
1005
1013
|
|
|
@@ -1029,6 +1037,7 @@ export default MAFSizerBatchController;
|
|
|
1029
1037
|
* A **ArticleSummary** Type
|
|
1030
1038
|
*
|
|
1031
1039
|
* @typedef {Object} MAFSizerBatchController.ArticleSummary
|
|
1040
|
+
* @property {?number} index The Article Index
|
|
1032
1041
|
* @property {string} name The Article Name
|
|
1033
1042
|
* @property {number} fruitCount The Fruit Count
|
|
1034
1043
|
* @property {number} fruitWeight The Fruit Weight expressed in Kilograms
|
|
@@ -1042,6 +1051,8 @@ export default MAFSizerBatchController;
|
|
|
1042
1051
|
* @property {number} number The Outlet Number
|
|
1043
1052
|
* @property {number} fruitCount The Fruit Count
|
|
1044
1053
|
* @property {number} fruitWeight The Fruit Weight expressed in Kilograms
|
|
1054
|
+
* @property {number[]} seenArticles An Array of Article Indexes that have been Seen assigned to the Outlet
|
|
1055
|
+
* @property {number[]} activeArticles An Array of Article Indexes that have are Actively assigned to the Outlet
|
|
1045
1056
|
* @memberof Controllers.Packhouse.Site
|
|
1046
1057
|
*/
|
|
1047
1058
|
|
|
@@ -1049,9 +1060,43 @@ export default MAFSizerBatchController;
|
|
|
1049
1060
|
* A **FruitSummary** Type
|
|
1050
1061
|
*
|
|
1051
1062
|
* @typedef {Object} MAFSizerBatchController.FruitSummary
|
|
1063
|
+
* @property {number} sizeIndex The Size Index
|
|
1064
|
+
* @property {string} sizeName The Size Name
|
|
1065
|
+
* @property {number} articleIndex The Article Index
|
|
1052
1066
|
* @property {string} articleName The Article Name
|
|
1053
|
-
* @property {string} fruitSize The Fruit Size
|
|
1054
1067
|
* @property {number} fruitCount The Fruit Count
|
|
1055
1068
|
* @property {number} fruitWeight The Fruit Weight expressed in Kilograms
|
|
1056
1069
|
* @memberof Controllers.Packhouse.Site
|
|
1070
|
+
*/
|
|
1071
|
+
|
|
1072
|
+
/**
|
|
1073
|
+
* A **OutletFruitSummary** Type
|
|
1074
|
+
*
|
|
1075
|
+
* @typedef {Object} MAFSizerBatchController.OutletFruitSummary
|
|
1076
|
+
* @property {number} outletNumber The Outlet Number
|
|
1077
|
+
* @property {number} sizeIndex The Size Index
|
|
1078
|
+
* @property {string} sizeName The Size Name
|
|
1079
|
+
* @property {number} articleIndex The Article Index
|
|
1080
|
+
* @property {string} articleName The Article Name
|
|
1081
|
+
* @property {number} fruitCount The Fruit Count
|
|
1082
|
+
* @property {number} fruitWeight The Fruit Weight expressed in Kilograms
|
|
1083
|
+
* @memberof Controllers.Packhouse.Site
|
|
1084
|
+
*/
|
|
1085
|
+
|
|
1086
|
+
/**
|
|
1087
|
+
* A **SizeNameLookup** Type
|
|
1088
|
+
*
|
|
1089
|
+
* @typedef {Object} MAFSizerBatchController.SizeNameLookup
|
|
1090
|
+
* @property {number} index The Size Index
|
|
1091
|
+
* @property {string} name The Size Name
|
|
1092
|
+
* @memberof Controllers.Packhouse.Site
|
|
1093
|
+
*/
|
|
1094
|
+
|
|
1095
|
+
/**
|
|
1096
|
+
* A **ArticleNameLookup** Type
|
|
1097
|
+
*
|
|
1098
|
+
* @typedef {Object} MAFSizerBatchController.ArticleNameLookup
|
|
1099
|
+
* @property {number} index The Article Index
|
|
1100
|
+
* @property {string} name The Article Name
|
|
1101
|
+
* @memberof Controllers.Packhouse.Site
|
|
1057
1102
|
*/
|
|
@@ -972,6 +972,7 @@ export default MAFSizerPackrunSummaryController;
|
|
|
972
972
|
* @property {Date} [createdTimestamp] When this Summary was Created
|
|
973
973
|
* @property {?string} [timeBatchId] The Time Batch this Summary is associated with
|
|
974
974
|
* @property {Array<MAFSizerPackrunSummaryController.ClassTypeSummary>} [classTypeSummaries] An Array of Packrun Summary Data Objects for each Class Type
|
|
975
|
+
* @property {Array<MAFSizerPackrunSummaryController.OutletSummary>} [outletSummaries] An Array of Packrun Summary Data Objects for each Outlet
|
|
975
976
|
* @property {Array<MAFSizerPackrunSummaryController.InitialOutletArticle>} [initialOutletArticles] An Array that contains the Articles initially Assigned to each Outlet
|
|
976
977
|
* @property {Array<MAFSizerPackrunSummaryController.InitialOutletType>} [initialOutletTypes] An Array that contains the Types initially configured for each Outlet
|
|
977
978
|
* @memberof Controllers.Packhouse.Site
|
|
@@ -985,6 +986,7 @@ export default MAFSizerPackrunSummaryController;
|
|
|
985
986
|
* @property {Date} [createdTimestamp] When this Summary was Created
|
|
986
987
|
* @property {?string} [timeBatchId] The Time Batch this Summary is associated with
|
|
987
988
|
* @property {Array<MAFSizerPackrunSummaryController.ClassTypeSummary>} [classTypeSummaries] An Array of Packrun Summary Data Objects for each Class Type
|
|
989
|
+
* @property {Array<MAFSizerPackrunSummaryController.OutletSummary>} [outletSummaries] An Array of Packrun Summary Data Objects for each Outlet
|
|
988
990
|
* @property {Array<MAFSizerPackrunSummaryController.InitialOutletArticle>} [initialOutletArticles] An Array that contains the Articles initially Assigned to each Outlet
|
|
989
991
|
* @property {Array<MAFSizerPackrunSummaryController.InitialOutletType>} [initialOutletTypes] An Array that contains the Types initially configured for each Outlet
|
|
990
992
|
* @memberof Controllers.Packhouse.Site
|
|
@@ -1033,6 +1035,30 @@ export default MAFSizerPackrunSummaryController;
|
|
|
1033
1035
|
* @memberof Controllers.Packhouse.Site
|
|
1034
1036
|
*/
|
|
1035
1037
|
|
|
1038
|
+
/**
|
|
1039
|
+
* A **OutletTotal** Type
|
|
1040
|
+
*
|
|
1041
|
+
* @typedef {Object} MAFSizerPackrunSummaryController.OutletTotal
|
|
1042
|
+
* @property {?string} classType The Class Type
|
|
1043
|
+
* @property {string} fruitSize The Fruit Size
|
|
1044
|
+
* @property {?string} packType The Pack Type
|
|
1045
|
+
* @property {number} weight The Weight expressed in Kilograms
|
|
1046
|
+
* @property {number} fruitCount The Fruit Count
|
|
1047
|
+
* @property {?number} packCount The Number of Packs
|
|
1048
|
+
* @memberof Controllers.Packhouse.Site
|
|
1049
|
+
*/
|
|
1050
|
+
|
|
1051
|
+
/**
|
|
1052
|
+
* A **OutletSummary** Type
|
|
1053
|
+
*
|
|
1054
|
+
* @typedef {Object} MAFSizerPackrunSummaryController.OutletSummary
|
|
1055
|
+
* @property {string} name The Outlet Name
|
|
1056
|
+
* @property {string} type The Generic Outlet Type
|
|
1057
|
+
* @property {number} number The Outlet Number
|
|
1058
|
+
* @property {Array<MAFSizerPackrunSummaryController.OutletTotal>} totals An Array of Totals for the Outlet
|
|
1059
|
+
* @memberof Controllers.Packhouse.Site
|
|
1060
|
+
*/
|
|
1061
|
+
|
|
1036
1062
|
/**
|
|
1037
1063
|
* A **InitialOutletArticle** Type
|
|
1038
1064
|
*
|
|
@@ -1650,6 +1650,38 @@ class PackrunController
|
|
|
1650
1650
|
{
|
|
1651
1651
|
batchSummariesItemObject.recyclePercentage = 0;
|
|
1652
1652
|
}
|
|
1653
|
+
|
|
1654
|
+
if(typeof batchSummariesItem === 'object' && 'incomingFruitCount' in batchSummariesItem)
|
|
1655
|
+
{
|
|
1656
|
+
batchSummariesItemObject.incomingFruitCount = (function(){
|
|
1657
|
+
if(typeof batchSummariesItem.incomingFruitCount !== 'number')
|
|
1658
|
+
{
|
|
1659
|
+
return Number.isInteger(Number(batchSummariesItem.incomingFruitCount)) ? Number(batchSummariesItem.incomingFruitCount) : Math.floor(Number(batchSummariesItem.incomingFruitCount));
|
|
1660
|
+
}
|
|
1661
|
+
|
|
1662
|
+
return Number.isInteger(batchSummariesItem.incomingFruitCount) ? batchSummariesItem.incomingFruitCount : Math.floor(batchSummariesItem.incomingFruitCount);
|
|
1663
|
+
}());
|
|
1664
|
+
}
|
|
1665
|
+
else
|
|
1666
|
+
{
|
|
1667
|
+
batchSummariesItemObject.incomingFruitCount = 0;
|
|
1668
|
+
}
|
|
1669
|
+
|
|
1670
|
+
if(typeof batchSummariesItem === 'object' && 'incomingFruitWeight' in batchSummariesItem)
|
|
1671
|
+
{
|
|
1672
|
+
batchSummariesItemObject.incomingFruitWeight = (function(){
|
|
1673
|
+
if(typeof batchSummariesItem.incomingFruitWeight !== 'number')
|
|
1674
|
+
{
|
|
1675
|
+
return Number(batchSummariesItem.incomingFruitWeight);
|
|
1676
|
+
}
|
|
1677
|
+
|
|
1678
|
+
return batchSummariesItem.incomingFruitWeight;
|
|
1679
|
+
}());
|
|
1680
|
+
}
|
|
1681
|
+
else
|
|
1682
|
+
{
|
|
1683
|
+
batchSummariesItemObject.incomingFruitWeight = 0;
|
|
1684
|
+
}
|
|
1653
1685
|
|
|
1654
1686
|
return batchSummariesItemObject;
|
|
1655
1687
|
}());
|
|
@@ -1671,6 +1703,63 @@ class PackrunController
|
|
|
1671
1703
|
resultObject.sizers = [];
|
|
1672
1704
|
}
|
|
1673
1705
|
|
|
1706
|
+
if(typeof result === 'object' && 'incomingSizerIds' in result)
|
|
1707
|
+
{
|
|
1708
|
+
resultObject.incomingSizerIds = (function(){
|
|
1709
|
+
if(Array.isArray(result.incomingSizerIds) !== true)
|
|
1710
|
+
{
|
|
1711
|
+
return [];
|
|
1712
|
+
}
|
|
1713
|
+
|
|
1714
|
+
return result.incomingSizerIds.map((incomingSizerIdsItem) => {
|
|
1715
|
+
return (function(){
|
|
1716
|
+
if(typeof incomingSizerIdsItem !== 'string')
|
|
1717
|
+
{
|
|
1718
|
+
return String(incomingSizerIdsItem);
|
|
1719
|
+
}
|
|
1720
|
+
|
|
1721
|
+
return incomingSizerIdsItem;
|
|
1722
|
+
}());
|
|
1723
|
+
});
|
|
1724
|
+
}());
|
|
1725
|
+
}
|
|
1726
|
+
else
|
|
1727
|
+
{
|
|
1728
|
+
resultObject.incomingSizerIds = [];
|
|
1729
|
+
}
|
|
1730
|
+
|
|
1731
|
+
if(typeof result === 'object' && 'incomingSizersFruitCount' in result)
|
|
1732
|
+
{
|
|
1733
|
+
resultObject.incomingSizersFruitCount = (function(){
|
|
1734
|
+
if(typeof result.incomingSizersFruitCount !== 'number')
|
|
1735
|
+
{
|
|
1736
|
+
return Number.isInteger(Number(result.incomingSizersFruitCount)) ? Number(result.incomingSizersFruitCount) : Math.floor(Number(result.incomingSizersFruitCount));
|
|
1737
|
+
}
|
|
1738
|
+
|
|
1739
|
+
return Number.isInteger(result.incomingSizersFruitCount) ? result.incomingSizersFruitCount : Math.floor(result.incomingSizersFruitCount);
|
|
1740
|
+
}());
|
|
1741
|
+
}
|
|
1742
|
+
else
|
|
1743
|
+
{
|
|
1744
|
+
resultObject.incomingSizersFruitCount = 0;
|
|
1745
|
+
}
|
|
1746
|
+
|
|
1747
|
+
if(typeof result === 'object' && 'incomingSizersFruitWeight' in result)
|
|
1748
|
+
{
|
|
1749
|
+
resultObject.incomingSizersFruitWeight = (function(){
|
|
1750
|
+
if(typeof result.incomingSizersFruitWeight !== 'number')
|
|
1751
|
+
{
|
|
1752
|
+
return Number(result.incomingSizersFruitWeight);
|
|
1753
|
+
}
|
|
1754
|
+
|
|
1755
|
+
return result.incomingSizersFruitWeight;
|
|
1756
|
+
}());
|
|
1757
|
+
}
|
|
1758
|
+
else
|
|
1759
|
+
{
|
|
1760
|
+
resultObject.incomingSizersFruitWeight = 0;
|
|
1761
|
+
}
|
|
1762
|
+
|
|
1674
1763
|
if(typeof result === 'object' && 'rejectBinSummary' in result)
|
|
1675
1764
|
{
|
|
1676
1765
|
resultObject.rejectBinSummary = (function(){
|
|
@@ -3191,6 +3280,8 @@ export default PackrunController;
|
|
|
3191
3280
|
* @property {number} recycleFruitCount The Recycled Fruit Count for the Batch
|
|
3192
3281
|
* @property {number} recycleFruitWeight The Recycled Fruit Weight (kg) for the Batch
|
|
3193
3282
|
* @property {number} recyclePercentage The Percentage of Total Fruit that was Recycled for the Batch
|
|
3283
|
+
* @property {number} incomingFruitCount The Incoming Fruit Count for the Batch
|
|
3284
|
+
* @property {number} incomingFruitWeight The Incoming Fruit Weight (kg) for the Batch
|
|
3194
3285
|
* @memberof Controllers.Packhouse.Site
|
|
3195
3286
|
*/
|
|
3196
3287
|
|
|
@@ -3225,6 +3316,9 @@ export default PackrunController;
|
|
|
3225
3316
|
* @property {Array<PackrunController.ClassTypeItem>} classTypes An Array of Class Types for the Packing Line
|
|
3226
3317
|
* @property {Object[]} compacSizers *DEPRECATED* - An Array of Summarized Compac Sizer Data
|
|
3227
3318
|
* @property {Array<PackrunController.SizerItem>} sizers
|
|
3319
|
+
* @property {string[]} incomingSizerIds The IDs of the Sizers that directly receive Fruit from the Infeed
|
|
3320
|
+
* @property {number} incomingSizersFruitCount The Incoming Fruit Count of all Incoming Sizers
|
|
3321
|
+
* @property {number} incomingSizersFruitWeight The Incoming Fruit Weight of all Incoming Sizers
|
|
3228
3322
|
* @property {Object} rejectBinSummary The Reject Bin Summary for the Packrun
|
|
3229
3323
|
* @property {Object} binTipSummary The Bin Tip Summary for the Packrun
|
|
3230
3324
|
* @property {Object[]} classTypeTotals An Array of Totals for each Class Type within the Packrun
|
|
@@ -105,6 +105,70 @@ class FruitProfileModel extends BaseModel
|
|
|
105
105
|
*/
|
|
106
106
|
this.maximumTargetTemperature = 0;
|
|
107
107
|
|
|
108
|
+
/**
|
|
109
|
+
* The Warm-Up Temperature for starting the Warm Up alerts
|
|
110
|
+
*
|
|
111
|
+
* @type {number}
|
|
112
|
+
* @public
|
|
113
|
+
*/
|
|
114
|
+
this.warmUpStartExpectedTemperature = 0;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* The Warm-Up Start Expected Rate of Change
|
|
118
|
+
*
|
|
119
|
+
* @type {number}
|
|
120
|
+
* @public
|
|
121
|
+
*/
|
|
122
|
+
this.warmUpStartExpectedRateOfChange = 0;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* The Warm-Up Stage Two Expected Temperature
|
|
126
|
+
*
|
|
127
|
+
* @type {number}
|
|
128
|
+
* @public
|
|
129
|
+
*/
|
|
130
|
+
this.warmUpStageTwoExpectedTemperature = 0;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* The Warm-Up Stage Two Expected Rate of Change
|
|
134
|
+
*
|
|
135
|
+
* @type {number}
|
|
136
|
+
* @public
|
|
137
|
+
*/
|
|
138
|
+
this.warmUpStageTwoExpectedRateOfChange = 0;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* The Warm-Up Stage Three Expected Temperature
|
|
142
|
+
*
|
|
143
|
+
* @type {number}
|
|
144
|
+
* @public
|
|
145
|
+
*/
|
|
146
|
+
this.warmUpStageThreeExpectedTemperature = 0;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* The Warm-Up Stage Three Expected Rate of Change
|
|
150
|
+
*
|
|
151
|
+
* @type {number}
|
|
152
|
+
* @public
|
|
153
|
+
*/
|
|
154
|
+
this.warmUpStageThreeExpectedRateOfChange = 0;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* The Warm-Up End Expected Temperature
|
|
158
|
+
*
|
|
159
|
+
* @type {number}
|
|
160
|
+
* @public
|
|
161
|
+
*/
|
|
162
|
+
this.warmUpEndExpectedTemperature = 0;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* The Warm-Up End Expected Rate of Change
|
|
166
|
+
*
|
|
167
|
+
* @type {number}
|
|
168
|
+
* @public
|
|
169
|
+
*/
|
|
170
|
+
this.warmUpEndExpectedRateOfChange = 0;
|
|
171
|
+
|
|
108
172
|
/**
|
|
109
173
|
* Whether the Fruit Profile has been deleted
|
|
110
174
|
*
|
|
@@ -279,6 +343,102 @@ class FruitProfileModel extends BaseModel
|
|
|
279
343
|
}());
|
|
280
344
|
}
|
|
281
345
|
|
|
346
|
+
if('warmUpStartExpectedTemperature' in jsonObject)
|
|
347
|
+
{
|
|
348
|
+
model.warmUpStartExpectedTemperature = (function(){
|
|
349
|
+
if(typeof jsonObject['warmUpStartExpectedTemperature'] !== 'number')
|
|
350
|
+
{
|
|
351
|
+
return Number(jsonObject['warmUpStartExpectedTemperature']);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
return jsonObject['warmUpStartExpectedTemperature'];
|
|
355
|
+
}());
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
if('warmUpStartExpectedRateOfChange' in jsonObject)
|
|
359
|
+
{
|
|
360
|
+
model.warmUpStartExpectedRateOfChange = (function(){
|
|
361
|
+
if(typeof jsonObject['warmUpStartExpectedRateOfChange'] !== 'number')
|
|
362
|
+
{
|
|
363
|
+
return Number(jsonObject['warmUpStartExpectedRateOfChange']);
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
return jsonObject['warmUpStartExpectedRateOfChange'];
|
|
367
|
+
}());
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
if('warmUpStageTwoExpectedTemperature' in jsonObject)
|
|
371
|
+
{
|
|
372
|
+
model.warmUpStageTwoExpectedTemperature = (function(){
|
|
373
|
+
if(typeof jsonObject['warmUpStageTwoExpectedTemperature'] !== 'number')
|
|
374
|
+
{
|
|
375
|
+
return Number(jsonObject['warmUpStageTwoExpectedTemperature']);
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
return jsonObject['warmUpStageTwoExpectedTemperature'];
|
|
379
|
+
}());
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
if('warmUpStageTwoExpectedRateOfChange' in jsonObject)
|
|
383
|
+
{
|
|
384
|
+
model.warmUpStageTwoExpectedRateOfChange = (function(){
|
|
385
|
+
if(typeof jsonObject['warmUpStageTwoExpectedRateOfChange'] !== 'number')
|
|
386
|
+
{
|
|
387
|
+
return Number(jsonObject['warmUpStageTwoExpectedRateOfChange']);
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
return jsonObject['warmUpStageTwoExpectedRateOfChange'];
|
|
391
|
+
}());
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
if('warmUpStageThreeExpectedTemperature' in jsonObject)
|
|
395
|
+
{
|
|
396
|
+
model.warmUpStageThreeExpectedTemperature = (function(){
|
|
397
|
+
if(typeof jsonObject['warmUpStageThreeExpectedTemperature'] !== 'number')
|
|
398
|
+
{
|
|
399
|
+
return Number(jsonObject['warmUpStageThreeExpectedTemperature']);
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
return jsonObject['warmUpStageThreeExpectedTemperature'];
|
|
403
|
+
}());
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
if('warmUpStageThreeExpectedRateOfChange' in jsonObject)
|
|
407
|
+
{
|
|
408
|
+
model.warmUpStageThreeExpectedRateOfChange = (function(){
|
|
409
|
+
if(typeof jsonObject['warmUpStageThreeExpectedRateOfChange'] !== 'number')
|
|
410
|
+
{
|
|
411
|
+
return Number(jsonObject['warmUpStageThreeExpectedRateOfChange']);
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
return jsonObject['warmUpStageThreeExpectedRateOfChange'];
|
|
415
|
+
}());
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
if('warmUpEndExpectedTemperature' in jsonObject)
|
|
419
|
+
{
|
|
420
|
+
model.warmUpEndExpectedTemperature = (function(){
|
|
421
|
+
if(typeof jsonObject['warmUpEndExpectedTemperature'] !== 'number')
|
|
422
|
+
{
|
|
423
|
+
return Number(jsonObject['warmUpEndExpectedTemperature']);
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
return jsonObject['warmUpEndExpectedTemperature'];
|
|
427
|
+
}());
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
if('warmUpEndExpectedRateOfChange' in jsonObject)
|
|
431
|
+
{
|
|
432
|
+
model.warmUpEndExpectedRateOfChange = (function(){
|
|
433
|
+
if(typeof jsonObject['warmUpEndExpectedRateOfChange'] !== 'number')
|
|
434
|
+
{
|
|
435
|
+
return Number(jsonObject['warmUpEndExpectedRateOfChange']);
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
return jsonObject['warmUpEndExpectedRateOfChange'];
|
|
439
|
+
}());
|
|
440
|
+
}
|
|
441
|
+
|
|
282
442
|
if('deleted' in jsonObject)
|
|
283
443
|
{
|
|
284
444
|
model.deleted = (function(){
|
|
@@ -81,6 +81,14 @@ class SampleModel extends BaseModel
|
|
|
81
81
|
*/
|
|
82
82
|
this.scheduledTimestamp = null;
|
|
83
83
|
|
|
84
|
+
/**
|
|
85
|
+
* Optional When the Schedule was received from Inspect
|
|
86
|
+
*
|
|
87
|
+
* @type {?Date}
|
|
88
|
+
* @public
|
|
89
|
+
*/
|
|
90
|
+
this.scheduleReceivedTimestamp = null;
|
|
91
|
+
|
|
84
92
|
/**
|
|
85
93
|
* When this Sample was Loaded into the Dehydrator
|
|
86
94
|
*
|
|
@@ -169,6 +177,30 @@ class SampleModel extends BaseModel
|
|
|
169
177
|
*/
|
|
170
178
|
this.resultId = null;
|
|
171
179
|
|
|
180
|
+
/**
|
|
181
|
+
* Optional the BlindedSampleID Reference defined in RadfordsInspect
|
|
182
|
+
*
|
|
183
|
+
* @type {?string}
|
|
184
|
+
* @public
|
|
185
|
+
*/
|
|
186
|
+
this.blindedSampleID = null;
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Optional the Sample Short Description defined in RadfordsInspect
|
|
190
|
+
*
|
|
191
|
+
* @type {?string}
|
|
192
|
+
* @public
|
|
193
|
+
*/
|
|
194
|
+
this.shortDescription = null;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Optional the Sample Description defined in RadfordsInspect
|
|
198
|
+
*
|
|
199
|
+
* @type {?string}
|
|
200
|
+
* @public
|
|
201
|
+
*/
|
|
202
|
+
this.sampleDescription = null;
|
|
203
|
+
|
|
172
204
|
/**
|
|
173
205
|
* The Status of this Sample
|
|
174
206
|
*
|
|
@@ -325,6 +357,23 @@ class SampleModel extends BaseModel
|
|
|
325
357
|
}());
|
|
326
358
|
}
|
|
327
359
|
|
|
360
|
+
if('scheduleReceivedTimestamp' in jsonObject)
|
|
361
|
+
{
|
|
362
|
+
model.scheduleReceivedTimestamp = (function(){
|
|
363
|
+
if(jsonObject['scheduleReceivedTimestamp'] === null)
|
|
364
|
+
{
|
|
365
|
+
return null;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
if(typeof jsonObject['scheduleReceivedTimestamp'] !== 'string')
|
|
369
|
+
{
|
|
370
|
+
return new Date(String(jsonObject['scheduleReceivedTimestamp']));
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
return new Date(jsonObject['scheduleReceivedTimestamp']);
|
|
374
|
+
}());
|
|
375
|
+
}
|
|
376
|
+
|
|
328
377
|
if('loadedTimestamp' in jsonObject)
|
|
329
378
|
{
|
|
330
379
|
model.loadedTimestamp = (function(){
|
|
@@ -497,6 +546,57 @@ class SampleModel extends BaseModel
|
|
|
497
546
|
}());
|
|
498
547
|
}
|
|
499
548
|
|
|
549
|
+
if('blindedSampleID' in jsonObject)
|
|
550
|
+
{
|
|
551
|
+
model.blindedSampleID = (function(){
|
|
552
|
+
if(jsonObject['blindedSampleID'] === null)
|
|
553
|
+
{
|
|
554
|
+
return null;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
if(typeof jsonObject['blindedSampleID'] !== 'string')
|
|
558
|
+
{
|
|
559
|
+
return String(jsonObject['blindedSampleID']);
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
return jsonObject['blindedSampleID'];
|
|
563
|
+
}());
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
if('shortDescription' in jsonObject)
|
|
567
|
+
{
|
|
568
|
+
model.shortDescription = (function(){
|
|
569
|
+
if(jsonObject['shortDescription'] === null)
|
|
570
|
+
{
|
|
571
|
+
return null;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
if(typeof jsonObject['shortDescription'] !== 'string')
|
|
575
|
+
{
|
|
576
|
+
return String(jsonObject['shortDescription']);
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
return jsonObject['shortDescription'];
|
|
580
|
+
}());
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
if('sampleDescription' in jsonObject)
|
|
584
|
+
{
|
|
585
|
+
model.sampleDescription = (function(){
|
|
586
|
+
if(jsonObject['sampleDescription'] === null)
|
|
587
|
+
{
|
|
588
|
+
return null;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
if(typeof jsonObject['sampleDescription'] !== 'string')
|
|
592
|
+
{
|
|
593
|
+
return String(jsonObject['sampleDescription']);
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
return jsonObject['sampleDescription'];
|
|
597
|
+
}());
|
|
598
|
+
}
|
|
599
|
+
|
|
500
600
|
if('status' in jsonObject)
|
|
501
601
|
{
|
|
502
602
|
model.status = (function(){
|