@ricado/api-client 2.5.15 → 2.5.18
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/PackrunController.js +26 -26
- package/lib/Models/Lab/Site/FruitProfileModel.js +144 -0
- package/lib/Models/Lab/Site/SampleModel.js +88 -0
- package/lib/PackageVersion.js +1 -1
- package/lib/index.d.ts +181 -1
- 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/PackrunController.js +26 -26
- package/src/Models/Lab/Site/FruitProfileModel.js +160 -0
- package/src/Models/Lab/Site/SampleModel.js +100 -0
- package/src/PackageVersion.js +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -6984,6 +6984,38 @@ declare module '@ricado/api-client/Controllers/Lab/Site/FruitProfileController'
|
|
|
6984
6984
|
* The Maximum Target Temperature for a Sample to be Compliant
|
|
6985
6985
|
*/
|
|
6986
6986
|
maximumTargetTemperature: number;
|
|
6987
|
+
/**
|
|
6988
|
+
* The Warm-Up Temperature for starting the Warm Up alerts
|
|
6989
|
+
*/
|
|
6990
|
+
warmUpStartExpectedTemperature: number;
|
|
6991
|
+
/**
|
|
6992
|
+
* The Warm-Up Start Expected Rate of Change
|
|
6993
|
+
*/
|
|
6994
|
+
warmUpStartExpectedRateOfChange: number;
|
|
6995
|
+
/**
|
|
6996
|
+
* The Warm-Up Stage Two Expected Temperature
|
|
6997
|
+
*/
|
|
6998
|
+
warmUpStageTwoExpectedTemperature: number;
|
|
6999
|
+
/**
|
|
7000
|
+
* The Warm-Up Stage Two Expected Rate of Change
|
|
7001
|
+
*/
|
|
7002
|
+
warmUpStageTwoExpectedRateOfChange: number;
|
|
7003
|
+
/**
|
|
7004
|
+
* The Warm-Up Stage Three Expected Temperature
|
|
7005
|
+
*/
|
|
7006
|
+
warmUpStageThreeExpectedTemperature: number;
|
|
7007
|
+
/**
|
|
7008
|
+
* The Warm-Up Stage Three Expected Rate of Change
|
|
7009
|
+
*/
|
|
7010
|
+
warmUpStageThreeExpectedRateOfChange: number;
|
|
7011
|
+
/**
|
|
7012
|
+
* The Warm-Up End Expected Temperature
|
|
7013
|
+
*/
|
|
7014
|
+
warmUpEndExpectedTemperature: number;
|
|
7015
|
+
/**
|
|
7016
|
+
* The Warm-Up End Expected Rate of Change
|
|
7017
|
+
*/
|
|
7018
|
+
warmUpEndExpectedRateOfChange: number;
|
|
6987
7019
|
};
|
|
6988
7020
|
/**
|
|
6989
7021
|
* The Update Data for a Fruit Profile
|
|
@@ -7025,6 +7057,38 @@ declare module '@ricado/api-client/Controllers/Lab/Site/FruitProfileController'
|
|
|
7025
7057
|
* The Maximum Target Temperature for a Sample to be Compliant
|
|
7026
7058
|
*/
|
|
7027
7059
|
maximumTargetTemperature?: number | undefined;
|
|
7060
|
+
/**
|
|
7061
|
+
* The Warm-Up Temperature for starting the Warm Up alerts
|
|
7062
|
+
*/
|
|
7063
|
+
warmUpStartExpectedTemperature?: number | undefined;
|
|
7064
|
+
/**
|
|
7065
|
+
* The Warm-Up Start Expected Rate of Change
|
|
7066
|
+
*/
|
|
7067
|
+
warmUpStartExpectedRateOfChange?: number | undefined;
|
|
7068
|
+
/**
|
|
7069
|
+
* The Warm-Up Stage Two Expected Temperature
|
|
7070
|
+
*/
|
|
7071
|
+
warmUpStageTwoExpectedTemperature?: number | undefined;
|
|
7072
|
+
/**
|
|
7073
|
+
* The Warm-Up Stage Two Expected Rate of Change
|
|
7074
|
+
*/
|
|
7075
|
+
warmUpStageTwoExpectedRateOfChange?: number | undefined;
|
|
7076
|
+
/**
|
|
7077
|
+
* The Warm-Up Stage Three Expected Temperature
|
|
7078
|
+
*/
|
|
7079
|
+
warmUpStageThreeExpectedTemperature?: number | undefined;
|
|
7080
|
+
/**
|
|
7081
|
+
* The Warm-Up Stage Three Expected Rate of Change
|
|
7082
|
+
*/
|
|
7083
|
+
warmUpStageThreeExpectedRateOfChange?: number | undefined;
|
|
7084
|
+
/**
|
|
7085
|
+
* The Warm-Up End Expected Temperature
|
|
7086
|
+
*/
|
|
7087
|
+
warmUpEndExpectedTemperature?: number | undefined;
|
|
7088
|
+
/**
|
|
7089
|
+
* The Warm-Up End Expected Rate of Change
|
|
7090
|
+
*/
|
|
7091
|
+
warmUpEndExpectedRateOfChange?: number | undefined;
|
|
7028
7092
|
};
|
|
7029
7093
|
}
|
|
7030
7094
|
import FruitProfileModel from "@ricado/api-client/Models/Lab/Site/FruitProfileModel";
|
|
@@ -8176,6 +8240,10 @@ declare module '@ricado/api-client/Controllers/Lab/Site/SampleController' {
|
|
|
8176
8240
|
* Optional Scheduled Timestamp when this Sample should Begin
|
|
8177
8241
|
*/
|
|
8178
8242
|
scheduledTimestamp?: Date | null | undefined;
|
|
8243
|
+
/**
|
|
8244
|
+
* Optional When the Schedule was received from Inspect
|
|
8245
|
+
*/
|
|
8246
|
+
scheduleReceivedTimestamp?: Date | null | undefined;
|
|
8179
8247
|
/**
|
|
8180
8248
|
* When this Sample was Loaded into the Dehydrator
|
|
8181
8249
|
*/
|
|
@@ -8220,6 +8288,18 @@ declare module '@ricado/api-client/Controllers/Lab/Site/SampleController' {
|
|
|
8220
8288
|
* The Sample Result ID asociated with this Sample
|
|
8221
8289
|
*/
|
|
8222
8290
|
resultId?: string | null | undefined;
|
|
8291
|
+
/**
|
|
8292
|
+
* Optional the BlindedSampleID Reference defined in RadfordsInspect
|
|
8293
|
+
*/
|
|
8294
|
+
blindedSampleID?: string | null | undefined;
|
|
8295
|
+
/**
|
|
8296
|
+
* Optional the Sample Short Description defined in RadfordsInspect
|
|
8297
|
+
*/
|
|
8298
|
+
shortDescription?: string | null | undefined;
|
|
8299
|
+
/**
|
|
8300
|
+
* Optional the Sample Description defined in RadfordsInspect
|
|
8301
|
+
*/
|
|
8302
|
+
sampleDescription?: string | null | undefined;
|
|
8223
8303
|
};
|
|
8224
8304
|
/**
|
|
8225
8305
|
* The Update Data for a Sample
|
|
@@ -8245,6 +8325,10 @@ declare module '@ricado/api-client/Controllers/Lab/Site/SampleController' {
|
|
|
8245
8325
|
* Optional Scheduled Timestamp when this Sample should Begin
|
|
8246
8326
|
*/
|
|
8247
8327
|
scheduledTimestamp?: Date | null | undefined;
|
|
8328
|
+
/**
|
|
8329
|
+
* Optional When the Schedule was received from Inspect
|
|
8330
|
+
*/
|
|
8331
|
+
scheduleReceivedTimestamp?: Date | null | undefined;
|
|
8248
8332
|
/**
|
|
8249
8333
|
* When this Sample was Loaded into the Dehydrator
|
|
8250
8334
|
*/
|
|
@@ -8289,6 +8373,18 @@ declare module '@ricado/api-client/Controllers/Lab/Site/SampleController' {
|
|
|
8289
8373
|
* The Sample Result ID asociated with this Sample
|
|
8290
8374
|
*/
|
|
8291
8375
|
resultId?: string | null | undefined;
|
|
8376
|
+
/**
|
|
8377
|
+
* Optional the BlindedSampleID Reference defined in RadfordsInspect
|
|
8378
|
+
*/
|
|
8379
|
+
blindedSampleID?: string | null | undefined;
|
|
8380
|
+
/**
|
|
8381
|
+
* Optional the Sample Short Description defined in RadfordsInspect
|
|
8382
|
+
*/
|
|
8383
|
+
shortDescription?: string | null | undefined;
|
|
8384
|
+
/**
|
|
8385
|
+
* Optional the Sample Description defined in RadfordsInspect
|
|
8386
|
+
*/
|
|
8387
|
+
sampleDescription?: string | null | undefined;
|
|
8292
8388
|
};
|
|
8293
8389
|
/**
|
|
8294
8390
|
* A **UserAccount** Type
|
|
@@ -17699,7 +17795,7 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PackrunController'
|
|
|
17699
17795
|
/**
|
|
17700
17796
|
* An Array of Class Types and their Percentages for this Packrun
|
|
17701
17797
|
*/
|
|
17702
|
-
|
|
17798
|
+
classTypeTotals: ClassTypePercentageItem[];
|
|
17703
17799
|
};
|
|
17704
17800
|
/**
|
|
17705
17801
|
* A **TimeBatch** Type
|
|
@@ -23188,6 +23284,62 @@ declare module '@ricado/api-client/Models/Lab/Site/FruitProfileModel' {
|
|
|
23188
23284
|
* @public
|
|
23189
23285
|
*/
|
|
23190
23286
|
maximumTargetTemperature: number;
|
|
23287
|
+
/**
|
|
23288
|
+
* The Warm-Up Temperature for starting the Warm Up alerts
|
|
23289
|
+
*
|
|
23290
|
+
* @type {number}
|
|
23291
|
+
* @public
|
|
23292
|
+
*/
|
|
23293
|
+
warmUpStartExpectedTemperature: number;
|
|
23294
|
+
/**
|
|
23295
|
+
* The Warm-Up Start Expected Rate of Change
|
|
23296
|
+
*
|
|
23297
|
+
* @type {number}
|
|
23298
|
+
* @public
|
|
23299
|
+
*/
|
|
23300
|
+
warmUpStartExpectedRateOfChange: number;
|
|
23301
|
+
/**
|
|
23302
|
+
* The Warm-Up Stage Two Expected Temperature
|
|
23303
|
+
*
|
|
23304
|
+
* @type {number}
|
|
23305
|
+
* @public
|
|
23306
|
+
*/
|
|
23307
|
+
warmUpStageTwoExpectedTemperature: number;
|
|
23308
|
+
/**
|
|
23309
|
+
* The Warm-Up Stage Two Expected Rate of Change
|
|
23310
|
+
*
|
|
23311
|
+
* @type {number}
|
|
23312
|
+
* @public
|
|
23313
|
+
*/
|
|
23314
|
+
warmUpStageTwoExpectedRateOfChange: number;
|
|
23315
|
+
/**
|
|
23316
|
+
* The Warm-Up Stage Three Expected Temperature
|
|
23317
|
+
*
|
|
23318
|
+
* @type {number}
|
|
23319
|
+
* @public
|
|
23320
|
+
*/
|
|
23321
|
+
warmUpStageThreeExpectedTemperature: number;
|
|
23322
|
+
/**
|
|
23323
|
+
* The Warm-Up Stage Three Expected Rate of Change
|
|
23324
|
+
*
|
|
23325
|
+
* @type {number}
|
|
23326
|
+
* @public
|
|
23327
|
+
*/
|
|
23328
|
+
warmUpStageThreeExpectedRateOfChange: number;
|
|
23329
|
+
/**
|
|
23330
|
+
* The Warm-Up End Expected Temperature
|
|
23331
|
+
*
|
|
23332
|
+
* @type {number}
|
|
23333
|
+
* @public
|
|
23334
|
+
*/
|
|
23335
|
+
warmUpEndExpectedTemperature: number;
|
|
23336
|
+
/**
|
|
23337
|
+
* The Warm-Up End Expected Rate of Change
|
|
23338
|
+
*
|
|
23339
|
+
* @type {number}
|
|
23340
|
+
* @public
|
|
23341
|
+
*/
|
|
23342
|
+
warmUpEndExpectedRateOfChange: number;
|
|
23191
23343
|
/**
|
|
23192
23344
|
* Whether the Fruit Profile has been deleted
|
|
23193
23345
|
*
|
|
@@ -23792,6 +23944,13 @@ declare module '@ricado/api-client/Models/Lab/Site/SampleModel' {
|
|
|
23792
23944
|
* @public
|
|
23793
23945
|
*/
|
|
23794
23946
|
scheduledTimestamp: Date | null;
|
|
23947
|
+
/**
|
|
23948
|
+
* Optional When the Schedule was received from Inspect
|
|
23949
|
+
*
|
|
23950
|
+
* @type {?Date}
|
|
23951
|
+
* @public
|
|
23952
|
+
*/
|
|
23953
|
+
scheduleReceivedTimestamp: Date | null;
|
|
23795
23954
|
/**
|
|
23796
23955
|
* When this Sample was Loaded into the Dehydrator
|
|
23797
23956
|
*
|
|
@@ -23869,6 +24028,27 @@ declare module '@ricado/api-client/Models/Lab/Site/SampleModel' {
|
|
|
23869
24028
|
* @public
|
|
23870
24029
|
*/
|
|
23871
24030
|
resultId: string | null;
|
|
24031
|
+
/**
|
|
24032
|
+
* Optional the BlindedSampleID Reference defined in RadfordsInspect
|
|
24033
|
+
*
|
|
24034
|
+
* @type {?string}
|
|
24035
|
+
* @public
|
|
24036
|
+
*/
|
|
24037
|
+
blindedSampleID: string | null;
|
|
24038
|
+
/**
|
|
24039
|
+
* Optional the Sample Short Description defined in RadfordsInspect
|
|
24040
|
+
*
|
|
24041
|
+
* @type {?string}
|
|
24042
|
+
* @public
|
|
24043
|
+
*/
|
|
24044
|
+
shortDescription: string | null;
|
|
24045
|
+
/**
|
|
24046
|
+
* Optional the Sample Description defined in RadfordsInspect
|
|
24047
|
+
*
|
|
24048
|
+
* @type {?string}
|
|
24049
|
+
* @public
|
|
24050
|
+
*/
|
|
24051
|
+
sampleDescription: string | null;
|
|
23872
24052
|
/**
|
|
23873
24053
|
* The Status of this Sample
|
|
23874
24054
|
*
|
package/package.json
CHANGED
|
@@ -164,6 +164,14 @@ export default FruitProfileController;
|
|
|
164
164
|
* @property {number} maximumTotalDuration The Maximum Duration (in seconds) that a Sample can be Dehydrated for before it is Considered Non-Compliant
|
|
165
165
|
* @property {number} minimumTargetTemperature The Minimum Target Temperature for a Sample to be Compliant
|
|
166
166
|
* @property {number} maximumTargetTemperature The Maximum Target Temperature for a Sample to be Compliant
|
|
167
|
+
* @property {number} warmUpStartExpectedTemperature The Warm-Up Temperature for starting the Warm Up alerts
|
|
168
|
+
* @property {number} warmUpStartExpectedRateOfChange The Warm-Up Start Expected Rate of Change
|
|
169
|
+
* @property {number} warmUpStageTwoExpectedTemperature The Warm-Up Stage Two Expected Temperature
|
|
170
|
+
* @property {number} warmUpStageTwoExpectedRateOfChange The Warm-Up Stage Two Expected Rate of Change
|
|
171
|
+
* @property {number} warmUpStageThreeExpectedTemperature The Warm-Up Stage Three Expected Temperature
|
|
172
|
+
* @property {number} warmUpStageThreeExpectedRateOfChange The Warm-Up Stage Three Expected Rate of Change
|
|
173
|
+
* @property {number} warmUpEndExpectedTemperature The Warm-Up End Expected Temperature
|
|
174
|
+
* @property {number} warmUpEndExpectedRateOfChange The Warm-Up End Expected Rate of Change
|
|
167
175
|
* @memberof Controllers.Lab.Site
|
|
168
176
|
*/
|
|
169
177
|
|
|
@@ -180,5 +188,13 @@ export default FruitProfileController;
|
|
|
180
188
|
* @property {number} [maximumTotalDuration] The Maximum Duration (in seconds) that a Sample can be Dehydrated for before it is Considered Non-Compliant
|
|
181
189
|
* @property {number} [minimumTargetTemperature] The Minimum Target Temperature for a Sample to be Compliant
|
|
182
190
|
* @property {number} [maximumTargetTemperature] The Maximum Target Temperature for a Sample to be Compliant
|
|
191
|
+
* @property {number} [warmUpStartExpectedTemperature] The Warm-Up Temperature for starting the Warm Up alerts
|
|
192
|
+
* @property {number} [warmUpStartExpectedRateOfChange] The Warm-Up Start Expected Rate of Change
|
|
193
|
+
* @property {number} [warmUpStageTwoExpectedTemperature] The Warm-Up Stage Two Expected Temperature
|
|
194
|
+
* @property {number} [warmUpStageTwoExpectedRateOfChange] The Warm-Up Stage Two Expected Rate of Change
|
|
195
|
+
* @property {number} [warmUpStageThreeExpectedTemperature] The Warm-Up Stage Three Expected Temperature
|
|
196
|
+
* @property {number} [warmUpStageThreeExpectedRateOfChange] The Warm-Up Stage Three Expected Rate of Change
|
|
197
|
+
* @property {number} [warmUpEndExpectedTemperature] The Warm-Up End Expected Temperature
|
|
198
|
+
* @property {number} [warmUpEndExpectedRateOfChange] The Warm-Up End Expected Rate of Change
|
|
183
199
|
* @memberof Controllers.Lab.Site
|
|
184
200
|
*/
|
|
@@ -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
|
|
|
@@ -2908,74 +2908,74 @@ class PackrunController
|
|
|
2908
2908
|
resultObject.class2TotalTrays = 0;
|
|
2909
2909
|
}
|
|
2910
2910
|
|
|
2911
|
-
if(typeof result === 'object' && '
|
|
2911
|
+
if(typeof result === 'object' && 'classTypeTotals' in result)
|
|
2912
2912
|
{
|
|
2913
|
-
resultObject.
|
|
2914
|
-
if(Array.isArray(result.
|
|
2913
|
+
resultObject.classTypeTotals = (function(){
|
|
2914
|
+
if(Array.isArray(result.classTypeTotals) !== true)
|
|
2915
2915
|
{
|
|
2916
2916
|
return [];
|
|
2917
2917
|
}
|
|
2918
2918
|
|
|
2919
|
-
return result.
|
|
2919
|
+
return result.classTypeTotals.map((classTypeTotalsItem) => {
|
|
2920
2920
|
return (function(){
|
|
2921
|
-
let
|
|
2921
|
+
let classTypeTotalsItemObject = {};
|
|
2922
2922
|
|
|
2923
|
-
if(typeof
|
|
2923
|
+
if(typeof classTypeTotalsItem === 'object' && 'classType' in classTypeTotalsItem)
|
|
2924
2924
|
{
|
|
2925
|
-
|
|
2926
|
-
if(typeof
|
|
2925
|
+
classTypeTotalsItemObject.classType = (function(){
|
|
2926
|
+
if(typeof classTypeTotalsItem.classType !== 'string')
|
|
2927
2927
|
{
|
|
2928
|
-
return String(
|
|
2928
|
+
return String(classTypeTotalsItem.classType);
|
|
2929
2929
|
}
|
|
2930
2930
|
|
|
2931
|
-
return
|
|
2931
|
+
return classTypeTotalsItem.classType;
|
|
2932
2932
|
}());
|
|
2933
2933
|
}
|
|
2934
2934
|
else
|
|
2935
2935
|
{
|
|
2936
|
-
|
|
2936
|
+
classTypeTotalsItemObject.classType = "";
|
|
2937
2937
|
}
|
|
2938
2938
|
|
|
2939
|
-
if(typeof
|
|
2939
|
+
if(typeof classTypeTotalsItem === 'object' && 'name' in classTypeTotalsItem)
|
|
2940
2940
|
{
|
|
2941
|
-
|
|
2942
|
-
if(typeof
|
|
2941
|
+
classTypeTotalsItemObject.name = (function(){
|
|
2942
|
+
if(typeof classTypeTotalsItem.name !== 'string')
|
|
2943
2943
|
{
|
|
2944
|
-
return String(
|
|
2944
|
+
return String(classTypeTotalsItem.name);
|
|
2945
2945
|
}
|
|
2946
2946
|
|
|
2947
|
-
return
|
|
2947
|
+
return classTypeTotalsItem.name;
|
|
2948
2948
|
}());
|
|
2949
2949
|
}
|
|
2950
2950
|
else
|
|
2951
2951
|
{
|
|
2952
|
-
|
|
2952
|
+
classTypeTotalsItemObject.name = "";
|
|
2953
2953
|
}
|
|
2954
2954
|
|
|
2955
|
-
if(typeof
|
|
2955
|
+
if(typeof classTypeTotalsItem === 'object' && 'percentage' in classTypeTotalsItem)
|
|
2956
2956
|
{
|
|
2957
|
-
|
|
2958
|
-
if(typeof
|
|
2957
|
+
classTypeTotalsItemObject.percentage = (function(){
|
|
2958
|
+
if(typeof classTypeTotalsItem.percentage !== 'number')
|
|
2959
2959
|
{
|
|
2960
|
-
return Number(
|
|
2960
|
+
return Number(classTypeTotalsItem.percentage);
|
|
2961
2961
|
}
|
|
2962
2962
|
|
|
2963
|
-
return
|
|
2963
|
+
return classTypeTotalsItem.percentage;
|
|
2964
2964
|
}());
|
|
2965
2965
|
}
|
|
2966
2966
|
else
|
|
2967
2967
|
{
|
|
2968
|
-
|
|
2968
|
+
classTypeTotalsItemObject.percentage = 0;
|
|
2969
2969
|
}
|
|
2970
2970
|
|
|
2971
|
-
return
|
|
2971
|
+
return classTypeTotalsItemObject;
|
|
2972
2972
|
}());
|
|
2973
2973
|
});
|
|
2974
2974
|
}());
|
|
2975
2975
|
}
|
|
2976
2976
|
else
|
|
2977
2977
|
{
|
|
2978
|
-
resultObject.
|
|
2978
|
+
resultObject.classTypeTotals = [];
|
|
2979
2979
|
}
|
|
2980
2980
|
|
|
2981
2981
|
return resultObject;
|
|
@@ -3313,7 +3313,7 @@ export default PackrunController;
|
|
|
3313
3313
|
* @property {number} class1TraysPerBin The Number of Class 1 Trays per Bin for this Packrun
|
|
3314
3314
|
* @property {number} class1AverageFruitSize The Average Class 1 Fruit Size for this Packrun
|
|
3315
3315
|
* @property {number} class2TotalTrays The Total Class 2 Trays for this Packrun
|
|
3316
|
-
* @property {Array<PackrunController.ClassTypePercentageItem>}
|
|
3316
|
+
* @property {Array<PackrunController.ClassTypePercentageItem>} classTypeTotals An Array of Class Types and their Percentages for this Packrun
|
|
3317
3317
|
* @memberof Controllers.Packhouse.Site
|
|
3318
3318
|
*/
|
|
3319
3319
|
|
|
@@ -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(){
|