@ricado/api-client 2.4.2 → 2.5.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 +10 -8
- package/lib/Controllers/Lab/Site/RackPositionController.js +2 -2
- package/lib/Controllers/Lab/Site/SampleController.js +7 -15
- package/lib/Controllers/Lab/Site/SampleResultController.js +29 -27
- package/lib/Controllers/Lab/Site/index.js +0 -3
- package/lib/Models/Lab/Site/FruitProfileModel.js +22 -4
- package/lib/Models/Lab/Site/RackPositionModel.js +67 -15
- package/lib/Models/Lab/Site/SampleModel.js +9 -75
- package/lib/Models/Lab/Site/SampleResultModel.js +45 -23
- package/lib/Models/Lab/Site/index.js +0 -3
- package/lib/PackageVersion.js +1 -1
- package/lib/index.d.ts +119 -309
- package/package.json +1 -1
- package/src/Controllers/Lab/Site/FruitProfileController.js +10 -8
- package/src/Controllers/Lab/Site/RackPositionController.js +2 -2
- package/src/Controllers/Lab/Site/SampleController.js +7 -15
- package/src/Controllers/Lab/Site/SampleResultController.js +29 -27
- package/src/Controllers/Lab/Site/index.js +0 -2
- package/src/Models/Lab/Site/FruitProfileModel.js +24 -4
- package/src/Models/Lab/Site/RackPositionModel.js +87 -15
- package/src/Models/Lab/Site/SampleModel.js +9 -84
- package/src/Models/Lab/Site/SampleResultModel.js +48 -23
- package/src/Models/Lab/Site/index.js +0 -2
- package/src/PackageVersion.js +1 -1
- package/lib/Controllers/Lab/Site/SampleFailureReasonController.js +0 -193
- package/lib/Models/Lab/Site/SampleFailureReasonModel.js +0 -195
- package/src/Controllers/Lab/Site/SampleFailureReasonController.js +0 -170
- package/src/Models/Lab/Site/SampleFailureReasonModel.js +0 -170
|
@@ -180,10 +180,11 @@ var _default = FruitProfileController;
|
|
|
180
180
|
* @property {string} description The Fruit Profile Description
|
|
181
181
|
* @property {string} image The Fruit Profile Image Source
|
|
182
182
|
* @property {number} nominalWarmUpDuration The Typical Warm Up Duration (in seconds) for a Sample to reach the Minimum Target Temperature
|
|
183
|
-
* @property {number} minimumWithinTargetDuration The Minimum Duration (in seconds) that a Sample should be within the Min and Max Target Temperatures be
|
|
184
|
-
* @property {number}
|
|
185
|
-
* @property {number}
|
|
186
|
-
* @property {number}
|
|
183
|
+
* @property {number} minimumWithinTargetDuration The Minimum Duration (in seconds) that a Sample should be within the Min and Max Target Temperatures to be Compliant
|
|
184
|
+
* @property {number} minimumTotalDuration The Minimum Duration (in seconds) that a Sample must be Dehydrated for to be Compliant
|
|
185
|
+
* @property {number} maximumTotalDuration The Maximum Duration (in seconds) that a Sample can be Dehydrated for before it is Considered Non-Compliant
|
|
186
|
+
* @property {number} minimumTargetTemperature The Minimum Target Temperature for a Sample to be Compliant
|
|
187
|
+
* @property {number} maximumTargetTemperature The Maximum Target Temperature for a Sample to be Compliant
|
|
187
188
|
* @memberof Controllers.Lab.Site
|
|
188
189
|
*/
|
|
189
190
|
|
|
@@ -195,10 +196,11 @@ var _default = FruitProfileController;
|
|
|
195
196
|
* @property {string} [description] The Fruit Profile Description
|
|
196
197
|
* @property {string} [image] The Fruit Profile Image Source
|
|
197
198
|
* @property {number} [nominalWarmUpDuration] The Typical Warm Up Duration (in seconds) for a Sample to reach the Minimum Target Temperature
|
|
198
|
-
* @property {number} [minimumWithinTargetDuration] The Minimum Duration (in seconds) that a Sample should be within the Min and Max Target Temperatures be
|
|
199
|
-
* @property {number} [
|
|
200
|
-
* @property {number} [
|
|
201
|
-
* @property {number} [
|
|
199
|
+
* @property {number} [minimumWithinTargetDuration] The Minimum Duration (in seconds) that a Sample should be within the Min and Max Target Temperatures to be Compliant
|
|
200
|
+
* @property {number} [minimumTotalDuration] The Minimum Duration (in seconds) that a Sample must be Dehydrated for to be Compliant
|
|
201
|
+
* @property {number} [maximumTotalDuration] The Maximum Duration (in seconds) that a Sample can be Dehydrated for before it is Considered Non-Compliant
|
|
202
|
+
* @property {number} [minimumTargetTemperature] The Minimum Target Temperature for a Sample to be Compliant
|
|
203
|
+
* @property {number} [maximumTargetTemperature] The Maximum Target Temperature for a Sample to be Compliant
|
|
202
204
|
* @memberof Controllers.Lab.Site
|
|
203
205
|
*/
|
|
204
206
|
|
|
@@ -183,7 +183,7 @@ var _default = RackPositionController;
|
|
|
183
183
|
* @typedef {Object} RackPositionController.CreateData
|
|
184
184
|
* @property {?number} [rtuId] The RTU this Rack Position belongs to
|
|
185
185
|
* @property {string} name The Name of this Rack Position
|
|
186
|
-
* @property {{pushButton: number, indicatorLight: number, temperature: number, calibrationOffset: number, disabled: number, currentSampleId: number, currentSampleStatus: number, nextSampleId: number, startCurrentSampleRequest: number, finishCurrentSampleRequest: number, currentSampleTotalDuration: number, currentSampleWarmUpDuration: number, currentSampleWarmUpCompleted: number, currentSampleBelowTargetDuration: number, currentSampleAboveTargetDuration: number, currentSampleWithinTargetDuration: number,
|
|
186
|
+
* @property {{pushButton: number, indicatorLight: number, temperature: number, calibrationOffset: number, disabled: number, currentSampleId: number, currentSampleStatus: number, nextSampleId: number, loadCurrentSampleRequest: number, startCurrentSampleRequest: number, finishCurrentSampleRequest: number, unloadCurrentSampleRequest: number, currentSampleTotalDuration: number, currentSampleWarmUpDuration: number, currentSampleWarmUpRateOfChange: number, currentSampleWarmUpWarning: number, currentSampleWarmUpCompleted: number, currentSampleBelowTargetDuration: number, currentSampleAboveTargetDuration: number, currentSampleWithinTargetDuration: number, currentSampleFinishCriteriaMet: number, currentSampleLatestUnloadTimestamp: number}} points The Points used by this Rack Position
|
|
187
187
|
* @property {string} labId The Lab that owns this Rack Position
|
|
188
188
|
* @property {string} rackId The Rack associated with this Rack Position
|
|
189
189
|
* @property {number} verticalLevelIndex The Index of the Vertical Level in the Rack where this Position resides
|
|
@@ -196,7 +196,7 @@ var _default = RackPositionController;
|
|
|
196
196
|
*
|
|
197
197
|
* @typedef {Object} RackPositionController.UpdateData
|
|
198
198
|
* @property {string} [name] The Name of this Rack Position
|
|
199
|
-
* @property {{pushButton: number, indicatorLight: number, temperature: number, calibrationOffset: number, disabled: number, currentSampleId: number, currentSampleStatus: number, nextSampleId: number, startCurrentSampleRequest: number, finishCurrentSampleRequest: number, currentSampleTotalDuration: number, currentSampleWarmUpDuration: number, currentSampleWarmUpCompleted: number, currentSampleBelowTargetDuration: number, currentSampleAboveTargetDuration: number, currentSampleWithinTargetDuration: number,
|
|
199
|
+
* @property {{pushButton: number, indicatorLight: number, temperature: number, calibrationOffset: number, disabled: number, currentSampleId: number, currentSampleStatus: number, nextSampleId: number, loadCurrentSampleRequest: number, startCurrentSampleRequest: number, finishCurrentSampleRequest: number, unloadCurrentSampleRequest: number, currentSampleTotalDuration: number, currentSampleWarmUpDuration: number, currentSampleWarmUpRateOfChange: number, currentSampleWarmUpWarning: number, currentSampleWarmUpCompleted: number, currentSampleBelowTargetDuration: number, currentSampleAboveTargetDuration: number, currentSampleWithinTargetDuration: number, currentSampleFinishCriteriaMet: number, currentSampleLatestUnloadTimestamp: number}} [points] The Points used by this Rack Position
|
|
200
200
|
* @property {string} [labId] The Lab that owns this Rack Position
|
|
201
201
|
* @property {string} [rackId] The Rack associated with this Rack Position
|
|
202
202
|
* @property {number} [verticalLevelIndex] The Index of the Vertical Level in the Rack where this Position resides
|
|
@@ -915,15 +915,12 @@ var _default = SampleController;
|
|
|
915
915
|
* @property {string} [labId] The Lab ID this Sample is associated with
|
|
916
916
|
* @property {string} [sampleNumber] The Numeric Sample Number
|
|
917
917
|
* @property {string} [createdSource] The Source that Created this Sample
|
|
918
|
-
* @property {?string} [
|
|
919
|
-
* @property {?string} [
|
|
920
|
-
* @property {?string} [publishUserId] ID of the User who Published this Sample
|
|
918
|
+
* @property {?string} [createdUserName] Name of the User who Created this Sample
|
|
919
|
+
* @property {?string} [publishSource] The Source that Published this Sample
|
|
921
920
|
* @property {?string} [publishUserName] Name of the User who Published this Sample
|
|
922
921
|
* @property {string} [fruitProfileId] The Fruit Profile for this Sample
|
|
923
922
|
* @property {string} [rackPositionId] The Rack Position used for this Sample
|
|
924
923
|
* @property {string} [dehydratorId] The Dehydrator used for this Sample
|
|
925
|
-
* @property {?string} [outcome] The Outcome of this Sample
|
|
926
|
-
* @property {?string} [failureReasonId] A Sample Failure Reason ID if this Sample Failed
|
|
927
924
|
* @property {?string} [resultId] The Sample Result ID asociated with this Sample
|
|
928
925
|
* @property {Date} [createdTimestampBegin] Filter by the Timestamp when Samples were Created. Results Greater than or Equal to Timestamp
|
|
929
926
|
* @property {Date} [createdTimestampEnd] Filter by the Timestamp when Samples were Created. Results Less than or Equal to Timestamp
|
|
@@ -941,6 +938,7 @@ var _default = SampleController;
|
|
|
941
938
|
* @property {Date} [publishTimestampEnd] Filter by the Timestamp when Samples were Published. Results Less than or Equal to Timestamp
|
|
942
939
|
* @property {Date} [updateTimestampBegin] Filter by the Timestamp when Samples were last Updated. Results Greater than or Equal to Timestamp
|
|
943
940
|
* @property {Date} [updateTimestampEnd] Filter by the Timestamp when Samples were last Updated. Results Less than or Equal to Timestamp
|
|
941
|
+
* @property {boolean} [publishedState] Filter by Published State of a Sample. `true` = Published, `false` = Not Published
|
|
944
942
|
* @memberof Controllers.Lab.Site
|
|
945
943
|
*/
|
|
946
944
|
|
|
@@ -952,21 +950,18 @@ var _default = SampleController;
|
|
|
952
950
|
* @property {string} [sampleNumber] The Numeric Sample Number
|
|
953
951
|
* @property {Date} [createdTimestamp] When this Sample was Created
|
|
954
952
|
* @property {string} createdSource The Source that Created this Sample
|
|
955
|
-
* @property {?string} [
|
|
956
|
-
* @property {?string} [createdUserName] Name of the User who Created this Sample. Only applies if the `createdSource` is 'User'
|
|
953
|
+
* @property {?string} [createdUserName] Name of the User who Created this Sample
|
|
957
954
|
* @property {?Date} [scheduledTimestamp] Optional Scheduled Timestamp when this Sample should Begin
|
|
958
955
|
* @property {?Date} [loadedTimestamp] When this Sample was Loaded into the Dehydrator
|
|
959
956
|
* @property {?Date} [startTimestamp] When this Sample was Started
|
|
960
957
|
* @property {?Date} [finishTimestamp] When this Sample was Finished
|
|
961
958
|
* @property {?Date} [unloadedTimestamp] When this Sample was Unloaded from the Dehydrator
|
|
962
959
|
* @property {?Date} [publishTimestamp] When this Sample was Published
|
|
963
|
-
* @property {?string} [
|
|
960
|
+
* @property {?string} [publishSource] The Source that Published this Sample
|
|
964
961
|
* @property {?string} [publishUserName] Name of the User who Published this Sample
|
|
965
962
|
* @property {string} fruitProfileId The Fruit Profile for this Sample
|
|
966
963
|
* @property {string} rackPositionId The Rack Position used for this Sample
|
|
967
964
|
* @property {string} dehydratorId The Dehydrator used for this Sample
|
|
968
|
-
* @property {?string} [outcome] The Outcome of this Sample
|
|
969
|
-
* @property {?string} [failureReasonId] A Sample Failure Reason ID if this Sample Failed
|
|
970
965
|
* @property {?string} [resultId] The Sample Result ID asociated with this Sample
|
|
971
966
|
* @memberof Controllers.Lab.Site
|
|
972
967
|
*/
|
|
@@ -978,21 +973,18 @@ var _default = SampleController;
|
|
|
978
973
|
* @property {string} [labId] The Lab ID this Sample is associated with
|
|
979
974
|
* @property {Date} [createdTimestamp] When this Sample was Created
|
|
980
975
|
* @property {string} [createdSource] The Source that Created this Sample
|
|
981
|
-
* @property {?string} [
|
|
982
|
-
* @property {?string} [createdUserName] Name of the User who Created this Sample. Only applies if the `createdSource` is 'User'
|
|
976
|
+
* @property {?string} [createdUserName] Name of the User who Created this Sample
|
|
983
977
|
* @property {?Date} [scheduledTimestamp] Optional Scheduled Timestamp when this Sample should Begin
|
|
984
978
|
* @property {?Date} [loadedTimestamp] When this Sample was Loaded into the Dehydrator
|
|
985
979
|
* @property {?Date} [startTimestamp] When this Sample was Started
|
|
986
980
|
* @property {?Date} [finishTimestamp] When this Sample was Finished
|
|
987
981
|
* @property {?Date} [unloadedTimestamp] When this Sample was Unloaded from the Dehydrator
|
|
988
982
|
* @property {?Date} [publishTimestamp] When this Sample was Published
|
|
989
|
-
* @property {?string} [
|
|
983
|
+
* @property {?string} [publishSource] The Source that Published this Sample
|
|
990
984
|
* @property {?string} [publishUserName] Name of the User who Published this Sample
|
|
991
985
|
* @property {string} [fruitProfileId] The Fruit Profile for this Sample
|
|
992
986
|
* @property {string} [rackPositionId] The Rack Position used for this Sample
|
|
993
987
|
* @property {string} [dehydratorId] The Dehydrator used for this Sample
|
|
994
|
-
* @property {?string} [outcome] The Outcome of this Sample
|
|
995
|
-
* @property {?string} [failureReasonId] A Sample Failure Reason ID if this Sample Failed
|
|
996
988
|
* @property {?string} [resultId] The Sample Result ID asociated with this Sample
|
|
997
989
|
* @memberof Controllers.Lab.Site
|
|
998
990
|
*/
|
|
@@ -20,7 +20,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
20
20
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
* Controller Class for Sample
|
|
23
|
+
* Controller Class for Sample Results
|
|
24
24
|
*
|
|
25
25
|
* @class
|
|
26
26
|
*/
|
|
@@ -33,12 +33,12 @@ var SampleResultController = /*#__PURE__*/function () {
|
|
|
33
33
|
key: "getOne",
|
|
34
34
|
value:
|
|
35
35
|
/**
|
|
36
|
-
* Retrieve a Sample
|
|
36
|
+
* Retrieve a Sample Result [GET /lab/sites/{siteId}/sample-results/{id}]
|
|
37
37
|
*
|
|
38
38
|
* @static
|
|
39
39
|
* @public
|
|
40
40
|
* @param {number} siteId The Site ID
|
|
41
|
-
* @param {string} id The Sample
|
|
41
|
+
* @param {string} id The Sample Result ID
|
|
42
42
|
* @return {Promise<SampleResultModel>}
|
|
43
43
|
*/
|
|
44
44
|
function getOne(siteId, id) {
|
|
@@ -55,13 +55,13 @@ var SampleResultController = /*#__PURE__*/function () {
|
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
58
|
-
* Update a Sample
|
|
58
|
+
* Update a Sample Result [PATCH /lab/sites/{siteId}/sample-results/{id}]
|
|
59
59
|
*
|
|
60
60
|
* @static
|
|
61
61
|
* @public
|
|
62
62
|
* @param {number} siteId The Site ID
|
|
63
|
-
* @param {string} id The Sample
|
|
64
|
-
* @param {SampleResultController.UpdateData} updateData The Sample
|
|
63
|
+
* @param {string} id The Sample Result ID
|
|
64
|
+
* @param {SampleResultController.UpdateData} updateData The Sample Result Update Data
|
|
65
65
|
* @return {Promise<SampleResultModel>}
|
|
66
66
|
*/
|
|
67
67
|
|
|
@@ -81,12 +81,12 @@ var SampleResultController = /*#__PURE__*/function () {
|
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
/**
|
|
84
|
-
* Delete a Sample
|
|
84
|
+
* Delete a Sample Result [DELETE /lab/sites/{siteId}/sample-results/{id}]
|
|
85
85
|
*
|
|
86
86
|
* @static
|
|
87
87
|
* @public
|
|
88
88
|
* @param {number} siteId The Site ID
|
|
89
|
-
* @param {string} id The Sample
|
|
89
|
+
* @param {string} id The Sample Result ID
|
|
90
90
|
* @return {Promise<boolean>}
|
|
91
91
|
*/
|
|
92
92
|
|
|
@@ -104,12 +104,12 @@ var SampleResultController = /*#__PURE__*/function () {
|
|
|
104
104
|
/**
|
|
105
105
|
* Retrieve Comments [GET /lab/sites/{siteId}/sample-results/{id}/comments]
|
|
106
106
|
*
|
|
107
|
-
* Retrieves Comments for a Sample
|
|
107
|
+
* Retrieves Comments for a Sample Result
|
|
108
108
|
*
|
|
109
109
|
* @static
|
|
110
110
|
* @public
|
|
111
111
|
* @param {number} siteId The Site ID
|
|
112
|
-
* @param {string} id The Sample
|
|
112
|
+
* @param {string} id The Sample Result ID
|
|
113
113
|
* @return {Promise<Array<SampleResultController.CommentItem>>}
|
|
114
114
|
*/
|
|
115
115
|
|
|
@@ -265,12 +265,12 @@ var SampleResultController = /*#__PURE__*/function () {
|
|
|
265
265
|
/**
|
|
266
266
|
* Create a Comment [POST /lab/sites/{siteId}/sample-results/{id}/comments]
|
|
267
267
|
*
|
|
268
|
-
* Create a Comment for a Sample
|
|
268
|
+
* Create a Comment for a Sample Result
|
|
269
269
|
*
|
|
270
270
|
* @static
|
|
271
271
|
* @public
|
|
272
272
|
* @param {number} siteId The Site ID
|
|
273
|
-
* @param {string} id The Sample
|
|
273
|
+
* @param {string} id The Sample Result ID
|
|
274
274
|
* @param {string} content The Content of the New Comment
|
|
275
275
|
* @return {Promise<SampleResultController.CommentItem>}
|
|
276
276
|
*/
|
|
@@ -421,12 +421,12 @@ var SampleResultController = /*#__PURE__*/function () {
|
|
|
421
421
|
/**
|
|
422
422
|
* Retrieve a Comment [GET /lab/sites/{siteId}/sample-results/{id}/comments/{commentId}]
|
|
423
423
|
*
|
|
424
|
-
* Retrieves Comments for a Sample
|
|
424
|
+
* Retrieves Comments for a Sample Result
|
|
425
425
|
*
|
|
426
426
|
* @static
|
|
427
427
|
* @public
|
|
428
428
|
* @param {number} siteId The Site ID
|
|
429
|
-
* @param {string} id The Sample
|
|
429
|
+
* @param {string} id The Sample Result ID
|
|
430
430
|
* @param {string} commentId The Comment ID
|
|
431
431
|
* @return {Promise<SampleResultController.CommentItem>}
|
|
432
432
|
*/
|
|
@@ -575,12 +575,12 @@ var SampleResultController = /*#__PURE__*/function () {
|
|
|
575
575
|
/**
|
|
576
576
|
* Update a Comment [PATCH /lab/sites/{siteId}/sample-results/{id}/comments/{commentId}]
|
|
577
577
|
*
|
|
578
|
-
* Update a Comment for a Sample
|
|
578
|
+
* Update a Comment for a Sample Result
|
|
579
579
|
*
|
|
580
580
|
* @static
|
|
581
581
|
* @public
|
|
582
582
|
* @param {number} siteId The Site ID
|
|
583
|
-
* @param {string} id The Sample
|
|
583
|
+
* @param {string} id The Sample Result ID
|
|
584
584
|
* @param {string} commentId The Comment ID
|
|
585
585
|
* @param {string} content The Updated Content for the Comment
|
|
586
586
|
* @return {Promise<SampleResultController.CommentItem>}
|
|
@@ -732,12 +732,12 @@ var SampleResultController = /*#__PURE__*/function () {
|
|
|
732
732
|
/**
|
|
733
733
|
* Delete a Comment [DELETE /lab/sites/{siteId}/sample-results/{id}/comments/{commentId}]
|
|
734
734
|
*
|
|
735
|
-
* Delete a Comment for a Sample
|
|
735
|
+
* Delete a Comment for a Sample Result
|
|
736
736
|
*
|
|
737
737
|
* @static
|
|
738
738
|
* @public
|
|
739
739
|
* @param {number} siteId The Site ID
|
|
740
|
-
* @param {string} id The Sample
|
|
740
|
+
* @param {string} id The Sample Result ID
|
|
741
741
|
* @param {string} commentId The Comment ID
|
|
742
742
|
* @return {Promise<boolean>}
|
|
743
743
|
*/
|
|
@@ -754,7 +754,7 @@ var SampleResultController = /*#__PURE__*/function () {
|
|
|
754
754
|
});
|
|
755
755
|
}
|
|
756
756
|
/**
|
|
757
|
-
* List all Sample
|
|
757
|
+
* List all Sample Results [GET /lab/sites/{siteId}/sample-results]
|
|
758
758
|
*
|
|
759
759
|
* @static
|
|
760
760
|
* @public
|
|
@@ -788,12 +788,12 @@ var SampleResultController = /*#__PURE__*/function () {
|
|
|
788
788
|
});
|
|
789
789
|
}
|
|
790
790
|
/**
|
|
791
|
-
* Create a Sample
|
|
791
|
+
* Create a Sample Result [POST /lab/sites/{siteId}/sample-results]
|
|
792
792
|
*
|
|
793
793
|
* @static
|
|
794
794
|
* @public
|
|
795
795
|
* @param {number} siteId The Site ID
|
|
796
|
-
* @param {SampleResultController.CreateData} createData The Sample
|
|
796
|
+
* @param {SampleResultController.CreateData} createData The Sample Result Create Data
|
|
797
797
|
* @return {Promise<SampleResultModel>}
|
|
798
798
|
*/
|
|
799
799
|
|
|
@@ -830,7 +830,7 @@ var _default = SampleResultController;
|
|
|
830
830
|
*/
|
|
831
831
|
|
|
832
832
|
/**
|
|
833
|
-
* The Create Data for a Sample
|
|
833
|
+
* The Create Data for a Sample Result
|
|
834
834
|
*
|
|
835
835
|
* @typedef {Object} SampleResultController.CreateData
|
|
836
836
|
* @property {string} labId The Lab ID this Sample Result is associated with
|
|
@@ -842,9 +842,10 @@ var _default = SampleResultController;
|
|
|
842
842
|
* @property {number} belowTargetDuration The Below Temperature Target Duration (in seconds) of the Sample
|
|
843
843
|
* @property {number} aboveTargetDuration The Above Temperature Target Duration (in seconds) of the Sample
|
|
844
844
|
* @property {number} withinTargetDuration The Within Temperature Target Duration (in seconds) of the Sample
|
|
845
|
-
* @property {?Date} [
|
|
846
|
-
* @property {?Date} [
|
|
845
|
+
* @property {?Date} [finishCriteriaMetTimestamp] Timestamp of when the Finish Criteria was Met for the Sample - `null` if not Met
|
|
846
|
+
* @property {?Date} [latestUnloadTimestamp] Latest Possible Timestamp of when the Sample should have been Unloaded to remain Compliant
|
|
847
847
|
* @property {?number} [totalAverageTemperature] The Average Temperature for the Total Duration of the Sample
|
|
848
|
+
* @property {?number} [warmUpRateOfChangeTemperature] The Average Temperature Rate-of-Change seen during the Warm Up process for the Sample
|
|
848
849
|
* @property {?number} [belowTargetMinimumTemperature] The Minimum Temperature seen Below the Temperature Target for the Sample
|
|
849
850
|
* @property {?number} [belowTargetAverageTemperature] The Average Temperature seen Below the Temperature Target for the Sample
|
|
850
851
|
* @property {?number} [aboveTargetMaximumTemperature] The Maximum Temperature seen Above the Temperature Target for the Sample
|
|
@@ -856,7 +857,7 @@ var _default = SampleResultController;
|
|
|
856
857
|
*/
|
|
857
858
|
|
|
858
859
|
/**
|
|
859
|
-
* The Update Data for a Sample
|
|
860
|
+
* The Update Data for a Sample Result
|
|
860
861
|
*
|
|
861
862
|
* @typedef {Object} SampleResultController.UpdateData
|
|
862
863
|
* @property {string} [labId] The Lab ID this Sample Result is associated with
|
|
@@ -867,9 +868,10 @@ var _default = SampleResultController;
|
|
|
867
868
|
* @property {number} [belowTargetDuration] The Below Temperature Target Duration (in seconds) of the Sample
|
|
868
869
|
* @property {number} [aboveTargetDuration] The Above Temperature Target Duration (in seconds) of the Sample
|
|
869
870
|
* @property {number} [withinTargetDuration] The Within Temperature Target Duration (in seconds) of the Sample
|
|
870
|
-
* @property {?Date} [
|
|
871
|
-
* @property {?Date} [
|
|
871
|
+
* @property {?Date} [finishCriteriaMetTimestamp] Timestamp of when the Finish Criteria was Met for the Sample - `null` if not Met
|
|
872
|
+
* @property {?Date} [latestUnloadTimestamp] Latest Possible Timestamp of when the Sample should have been Unloaded to remain Compliant
|
|
872
873
|
* @property {?number} [totalAverageTemperature] The Average Temperature for the Total Duration of the Sample
|
|
874
|
+
* @property {?number} [warmUpRateOfChangeTemperature] The Average Temperature Rate-of-Change seen during the Warm Up process for the Sample
|
|
873
875
|
* @property {?number} [belowTargetMinimumTemperature] The Minimum Temperature seen Below the Temperature Target for the Sample
|
|
874
876
|
* @property {?number} [belowTargetAverageTemperature] The Average Temperature seen Below the Temperature Target for the Sample
|
|
875
877
|
* @property {?number} [aboveTargetMaximumTemperature] The Maximum Temperature seen Above the Temperature Target for the Sample
|
|
@@ -19,8 +19,6 @@ var _RackPositionController = _interopRequireDefault(require("./RackPositionCont
|
|
|
19
19
|
|
|
20
20
|
var _SampleController = _interopRequireDefault(require("./SampleController"));
|
|
21
21
|
|
|
22
|
-
var _SampleFailureReasonController = _interopRequireDefault(require("./SampleFailureReasonController"));
|
|
23
|
-
|
|
24
22
|
var _SampleResultController = _interopRequireDefault(require("./SampleResultController"));
|
|
25
23
|
|
|
26
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -42,7 +40,6 @@ var Site = {
|
|
|
42
40
|
RackController: _RackController.default,
|
|
43
41
|
RackPositionController: _RackPositionController.default,
|
|
44
42
|
SampleController: _SampleController.default,
|
|
45
|
-
SampleFailureReasonController: _SampleFailureReasonController.default,
|
|
46
43
|
SampleResultController: _SampleResultController.default
|
|
47
44
|
};
|
|
48
45
|
var _default = Site;
|
|
@@ -96,7 +96,7 @@ var FruitProfileModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
96
96
|
|
|
97
97
|
_this.nominalWarmUpDuration = 0;
|
|
98
98
|
/**
|
|
99
|
-
* The Minimum Duration (in seconds) that a Sample should be within the Min and Max Target Temperatures be
|
|
99
|
+
* The Minimum Duration (in seconds) that a Sample should be within the Min and Max Target Temperatures to be Compliant
|
|
100
100
|
*
|
|
101
101
|
* @type {number}
|
|
102
102
|
* @public
|
|
@@ -104,7 +104,15 @@ var FruitProfileModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
104
104
|
|
|
105
105
|
_this.minimumWithinTargetDuration = 0;
|
|
106
106
|
/**
|
|
107
|
-
* The
|
|
107
|
+
* The Minimum Duration (in seconds) that a Sample must be Dehydrated for to be Compliant
|
|
108
|
+
*
|
|
109
|
+
* @type {number}
|
|
110
|
+
* @public
|
|
111
|
+
*/
|
|
112
|
+
|
|
113
|
+
_this.minimumTotalDuration = 0;
|
|
114
|
+
/**
|
|
115
|
+
* The Maximum Duration (in seconds) that a Sample can be Dehydrated for before it is Considered Non-Compliant
|
|
108
116
|
*
|
|
109
117
|
* @type {number}
|
|
110
118
|
* @public
|
|
@@ -112,7 +120,7 @@ var FruitProfileModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
112
120
|
|
|
113
121
|
_this.maximumTotalDuration = 0;
|
|
114
122
|
/**
|
|
115
|
-
* The Minimum Target Temperature for a Sample to be
|
|
123
|
+
* The Minimum Target Temperature for a Sample to be Compliant
|
|
116
124
|
*
|
|
117
125
|
* @type {number}
|
|
118
126
|
* @public
|
|
@@ -120,7 +128,7 @@ var FruitProfileModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
120
128
|
|
|
121
129
|
_this.minimumTargetTemperature = 0;
|
|
122
130
|
/**
|
|
123
|
-
* The Maximum Target Temperature for a Sample to be
|
|
131
|
+
* The Maximum Target Temperature for a Sample to be Compliant
|
|
124
132
|
*
|
|
125
133
|
* @type {number}
|
|
126
134
|
* @public
|
|
@@ -242,6 +250,16 @@ var FruitProfileModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
242
250
|
}();
|
|
243
251
|
}
|
|
244
252
|
|
|
253
|
+
if ('minimumTotalDuration' in jsonObject) {
|
|
254
|
+
model.minimumTotalDuration = function () {
|
|
255
|
+
if (typeof jsonObject['minimumTotalDuration'] !== 'number') {
|
|
256
|
+
return Number.isInteger(Number(jsonObject['minimumTotalDuration'])) ? Number(jsonObject['minimumTotalDuration']) : Math.floor(Number(jsonObject['minimumTotalDuration']));
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
return Number.isInteger(jsonObject['minimumTotalDuration']) ? jsonObject['minimumTotalDuration'] : Math.floor(jsonObject['minimumTotalDuration']);
|
|
260
|
+
}();
|
|
261
|
+
}
|
|
262
|
+
|
|
245
263
|
if ('maximumTotalDuration' in jsonObject) {
|
|
246
264
|
model.maximumTotalDuration = function () {
|
|
247
265
|
if (typeof jsonObject['maximumTotalDuration'] !== 'number') {
|
|
@@ -82,7 +82,7 @@ var RackPositionModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
82
82
|
/**
|
|
83
83
|
* The Points used by this Rack Position
|
|
84
84
|
*
|
|
85
|
-
* @type {{pushButton: number, indicatorLight: number, temperature: number, calibrationOffset: number, disabled: number, currentSampleId: number, currentSampleStatus: number, nextSampleId: number, startCurrentSampleRequest: number, finishCurrentSampleRequest: number, currentSampleTotalDuration: number, currentSampleWarmUpDuration: number, currentSampleWarmUpCompleted: number, currentSampleBelowTargetDuration: number, currentSampleAboveTargetDuration: number, currentSampleWithinTargetDuration: number,
|
|
85
|
+
* @type {{pushButton: number, indicatorLight: number, temperature: number, calibrationOffset: number, disabled: number, currentSampleId: number, currentSampleStatus: number, nextSampleId: number, loadCurrentSampleRequest: number, startCurrentSampleRequest: number, finishCurrentSampleRequest: number, unloadCurrentSampleRequest: number, currentSampleTotalDuration: number, currentSampleWarmUpDuration: number, currentSampleWarmUpRateOfChange: number, currentSampleWarmUpWarning: number, currentSampleWarmUpCompleted: number, currentSampleBelowTargetDuration: number, currentSampleAboveTargetDuration: number, currentSampleWithinTargetDuration: number, currentSampleFinishCriteriaMet: number, currentSampleLatestUnloadTimestamp: number}}
|
|
86
86
|
* @public
|
|
87
87
|
*/
|
|
88
88
|
|
|
@@ -96,16 +96,20 @@ var RackPositionModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
96
96
|
pointsDefaultValue.currentSampleId = 0;
|
|
97
97
|
pointsDefaultValue.currentSampleStatus = 0;
|
|
98
98
|
pointsDefaultValue.nextSampleId = 0;
|
|
99
|
+
pointsDefaultValue.loadCurrentSampleRequest = 0;
|
|
99
100
|
pointsDefaultValue.startCurrentSampleRequest = 0;
|
|
100
101
|
pointsDefaultValue.finishCurrentSampleRequest = 0;
|
|
102
|
+
pointsDefaultValue.unloadCurrentSampleRequest = 0;
|
|
101
103
|
pointsDefaultValue.currentSampleTotalDuration = 0;
|
|
102
104
|
pointsDefaultValue.currentSampleWarmUpDuration = 0;
|
|
105
|
+
pointsDefaultValue.currentSampleWarmUpRateOfChange = 0;
|
|
106
|
+
pointsDefaultValue.currentSampleWarmUpWarning = 0;
|
|
103
107
|
pointsDefaultValue.currentSampleWarmUpCompleted = 0;
|
|
104
108
|
pointsDefaultValue.currentSampleBelowTargetDuration = 0;
|
|
105
109
|
pointsDefaultValue.currentSampleAboveTargetDuration = 0;
|
|
106
110
|
pointsDefaultValue.currentSampleWithinTargetDuration = 0;
|
|
107
|
-
pointsDefaultValue.
|
|
108
|
-
pointsDefaultValue.
|
|
111
|
+
pointsDefaultValue.currentSampleFinishCriteriaMet = 0;
|
|
112
|
+
pointsDefaultValue.currentSampleLatestUnloadTimestamp = 0;
|
|
109
113
|
return pointsDefaultValue;
|
|
110
114
|
}();
|
|
111
115
|
/**
|
|
@@ -330,6 +334,18 @@ var RackPositionModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
330
334
|
pointsObject.nextSampleId = 0;
|
|
331
335
|
}
|
|
332
336
|
|
|
337
|
+
if (_typeof(jsonObject['points']) === 'object' && 'loadCurrentSampleRequest' in jsonObject['points']) {
|
|
338
|
+
pointsObject.loadCurrentSampleRequest = function () {
|
|
339
|
+
if (typeof jsonObject['points'].loadCurrentSampleRequest !== 'number') {
|
|
340
|
+
return Number.isInteger(Number(jsonObject['points'].loadCurrentSampleRequest)) ? Number(jsonObject['points'].loadCurrentSampleRequest) : Math.floor(Number(jsonObject['points'].loadCurrentSampleRequest));
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
return Number.isInteger(jsonObject['points'].loadCurrentSampleRequest) ? jsonObject['points'].loadCurrentSampleRequest : Math.floor(jsonObject['points'].loadCurrentSampleRequest);
|
|
344
|
+
}();
|
|
345
|
+
} else {
|
|
346
|
+
pointsObject.loadCurrentSampleRequest = 0;
|
|
347
|
+
}
|
|
348
|
+
|
|
333
349
|
if (_typeof(jsonObject['points']) === 'object' && 'startCurrentSampleRequest' in jsonObject['points']) {
|
|
334
350
|
pointsObject.startCurrentSampleRequest = function () {
|
|
335
351
|
if (typeof jsonObject['points'].startCurrentSampleRequest !== 'number') {
|
|
@@ -354,6 +370,18 @@ var RackPositionModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
354
370
|
pointsObject.finishCurrentSampleRequest = 0;
|
|
355
371
|
}
|
|
356
372
|
|
|
373
|
+
if (_typeof(jsonObject['points']) === 'object' && 'unloadCurrentSampleRequest' in jsonObject['points']) {
|
|
374
|
+
pointsObject.unloadCurrentSampleRequest = function () {
|
|
375
|
+
if (typeof jsonObject['points'].unloadCurrentSampleRequest !== 'number') {
|
|
376
|
+
return Number.isInteger(Number(jsonObject['points'].unloadCurrentSampleRequest)) ? Number(jsonObject['points'].unloadCurrentSampleRequest) : Math.floor(Number(jsonObject['points'].unloadCurrentSampleRequest));
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
return Number.isInteger(jsonObject['points'].unloadCurrentSampleRequest) ? jsonObject['points'].unloadCurrentSampleRequest : Math.floor(jsonObject['points'].unloadCurrentSampleRequest);
|
|
380
|
+
}();
|
|
381
|
+
} else {
|
|
382
|
+
pointsObject.unloadCurrentSampleRequest = 0;
|
|
383
|
+
}
|
|
384
|
+
|
|
357
385
|
if (_typeof(jsonObject['points']) === 'object' && 'currentSampleTotalDuration' in jsonObject['points']) {
|
|
358
386
|
pointsObject.currentSampleTotalDuration = function () {
|
|
359
387
|
if (typeof jsonObject['points'].currentSampleTotalDuration !== 'number') {
|
|
@@ -378,6 +406,30 @@ var RackPositionModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
378
406
|
pointsObject.currentSampleWarmUpDuration = 0;
|
|
379
407
|
}
|
|
380
408
|
|
|
409
|
+
if (_typeof(jsonObject['points']) === 'object' && 'currentSampleWarmUpRateOfChange' in jsonObject['points']) {
|
|
410
|
+
pointsObject.currentSampleWarmUpRateOfChange = function () {
|
|
411
|
+
if (typeof jsonObject['points'].currentSampleWarmUpRateOfChange !== 'number') {
|
|
412
|
+
return Number.isInteger(Number(jsonObject['points'].currentSampleWarmUpRateOfChange)) ? Number(jsonObject['points'].currentSampleWarmUpRateOfChange) : Math.floor(Number(jsonObject['points'].currentSampleWarmUpRateOfChange));
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
return Number.isInteger(jsonObject['points'].currentSampleWarmUpRateOfChange) ? jsonObject['points'].currentSampleWarmUpRateOfChange : Math.floor(jsonObject['points'].currentSampleWarmUpRateOfChange);
|
|
416
|
+
}();
|
|
417
|
+
} else {
|
|
418
|
+
pointsObject.currentSampleWarmUpRateOfChange = 0;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
if (_typeof(jsonObject['points']) === 'object' && 'currentSampleWarmUpWarning' in jsonObject['points']) {
|
|
422
|
+
pointsObject.currentSampleWarmUpWarning = function () {
|
|
423
|
+
if (typeof jsonObject['points'].currentSampleWarmUpWarning !== 'number') {
|
|
424
|
+
return Number.isInteger(Number(jsonObject['points'].currentSampleWarmUpWarning)) ? Number(jsonObject['points'].currentSampleWarmUpWarning) : Math.floor(Number(jsonObject['points'].currentSampleWarmUpWarning));
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
return Number.isInteger(jsonObject['points'].currentSampleWarmUpWarning) ? jsonObject['points'].currentSampleWarmUpWarning : Math.floor(jsonObject['points'].currentSampleWarmUpWarning);
|
|
428
|
+
}();
|
|
429
|
+
} else {
|
|
430
|
+
pointsObject.currentSampleWarmUpWarning = 0;
|
|
431
|
+
}
|
|
432
|
+
|
|
381
433
|
if (_typeof(jsonObject['points']) === 'object' && 'currentSampleWarmUpCompleted' in jsonObject['points']) {
|
|
382
434
|
pointsObject.currentSampleWarmUpCompleted = function () {
|
|
383
435
|
if (typeof jsonObject['points'].currentSampleWarmUpCompleted !== 'number') {
|
|
@@ -426,28 +478,28 @@ var RackPositionModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
426
478
|
pointsObject.currentSampleWithinTargetDuration = 0;
|
|
427
479
|
}
|
|
428
480
|
|
|
429
|
-
if (_typeof(jsonObject['points']) === 'object' && '
|
|
430
|
-
pointsObject.
|
|
431
|
-
if (typeof jsonObject['points'].
|
|
432
|
-
return Number.isInteger(Number(jsonObject['points'].
|
|
481
|
+
if (_typeof(jsonObject['points']) === 'object' && 'currentSampleFinishCriteriaMet' in jsonObject['points']) {
|
|
482
|
+
pointsObject.currentSampleFinishCriteriaMet = function () {
|
|
483
|
+
if (typeof jsonObject['points'].currentSampleFinishCriteriaMet !== 'number') {
|
|
484
|
+
return Number.isInteger(Number(jsonObject['points'].currentSampleFinishCriteriaMet)) ? Number(jsonObject['points'].currentSampleFinishCriteriaMet) : Math.floor(Number(jsonObject['points'].currentSampleFinishCriteriaMet));
|
|
433
485
|
}
|
|
434
486
|
|
|
435
|
-
return Number.isInteger(jsonObject['points'].
|
|
487
|
+
return Number.isInteger(jsonObject['points'].currentSampleFinishCriteriaMet) ? jsonObject['points'].currentSampleFinishCriteriaMet : Math.floor(jsonObject['points'].currentSampleFinishCriteriaMet);
|
|
436
488
|
}();
|
|
437
489
|
} else {
|
|
438
|
-
pointsObject.
|
|
490
|
+
pointsObject.currentSampleFinishCriteriaMet = 0;
|
|
439
491
|
}
|
|
440
492
|
|
|
441
|
-
if (_typeof(jsonObject['points']) === 'object' && '
|
|
442
|
-
pointsObject.
|
|
443
|
-
if (typeof jsonObject['points'].
|
|
444
|
-
return Number.isInteger(Number(jsonObject['points'].
|
|
493
|
+
if (_typeof(jsonObject['points']) === 'object' && 'currentSampleLatestUnloadTimestamp' in jsonObject['points']) {
|
|
494
|
+
pointsObject.currentSampleLatestUnloadTimestamp = function () {
|
|
495
|
+
if (typeof jsonObject['points'].currentSampleLatestUnloadTimestamp !== 'number') {
|
|
496
|
+
return Number.isInteger(Number(jsonObject['points'].currentSampleLatestUnloadTimestamp)) ? Number(jsonObject['points'].currentSampleLatestUnloadTimestamp) : Math.floor(Number(jsonObject['points'].currentSampleLatestUnloadTimestamp));
|
|
445
497
|
}
|
|
446
498
|
|
|
447
|
-
return Number.isInteger(jsonObject['points'].
|
|
499
|
+
return Number.isInteger(jsonObject['points'].currentSampleLatestUnloadTimestamp) ? jsonObject['points'].currentSampleLatestUnloadTimestamp : Math.floor(jsonObject['points'].currentSampleLatestUnloadTimestamp);
|
|
448
500
|
}();
|
|
449
501
|
} else {
|
|
450
|
-
pointsObject.
|
|
502
|
+
pointsObject.currentSampleLatestUnloadTimestamp = 0;
|
|
451
503
|
}
|
|
452
504
|
|
|
453
505
|
return pointsObject;
|