@ricado/api-client 2.4.0 → 2.4.2
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 +2 -1
- package/lib/Controllers/Lab/Site/ProbeCalibrationController.js +921 -0
- package/lib/Controllers/Lab/Site/SampleController.js +151 -47
- package/lib/Controllers/Lab/Site/SampleFailureReasonController.js +2 -1
- package/lib/Controllers/Lab/Site/index.js +3 -0
- package/lib/Models/Lab/Site/ProbeCalibrationModel.js +303 -0
- package/lib/Models/Lab/Site/SampleModel.js +46 -2
- package/lib/Models/Lab/Site/index.js +3 -0
- package/lib/PackageVersion.js +1 -1
- package/lib/index.d.ts +585 -19
- package/package.json +1 -1
- package/src/Controllers/Lab/Site/FruitProfileController.js +2 -1
- package/src/Controllers/Lab/Site/ProbeCalibrationController.js +1052 -0
- package/src/Controllers/Lab/Site/SampleController.js +157 -56
- package/src/Controllers/Lab/Site/SampleFailureReasonController.js +2 -1
- package/src/Controllers/Lab/Site/index.js +2 -0
- package/src/Models/Lab/Site/ProbeCalibrationModel.js +290 -0
- package/src/Models/Lab/Site/SampleModel.js +52 -2
- package/src/Models/Lab/Site/index.js +2 -0
- package/src/PackageVersion.js +1 -1
|
@@ -96,7 +96,7 @@ var SampleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
96
96
|
|
|
97
97
|
_this.createdSource = "";
|
|
98
98
|
/**
|
|
99
|
-
* ID of the User who Created this Sample. Only applies if the `createdSource` is '
|
|
99
|
+
* ID of the User who Created this Sample. Only applies if the `createdSource` is 'User'
|
|
100
100
|
*
|
|
101
101
|
* @type {?string}
|
|
102
102
|
* @public
|
|
@@ -104,7 +104,7 @@ var SampleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
104
104
|
|
|
105
105
|
_this.createdUserId = null;
|
|
106
106
|
/**
|
|
107
|
-
* Name of the User who Created this Sample. Only applies if the `createdSource` is '
|
|
107
|
+
* Name of the User who Created this Sample. Only applies if the `createdSource` is 'User'
|
|
108
108
|
*
|
|
109
109
|
* @type {?string}
|
|
110
110
|
* @public
|
|
@@ -119,6 +119,14 @@ var SampleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
119
119
|
*/
|
|
120
120
|
|
|
121
121
|
_this.scheduledTimestamp = null;
|
|
122
|
+
/**
|
|
123
|
+
* When this Sample was Loaded into the Dehydrator
|
|
124
|
+
*
|
|
125
|
+
* @type {?Date}
|
|
126
|
+
* @public
|
|
127
|
+
*/
|
|
128
|
+
|
|
129
|
+
_this.loadedTimestamp = null;
|
|
122
130
|
/**
|
|
123
131
|
* When this Sample was Started
|
|
124
132
|
*
|
|
@@ -135,6 +143,14 @@ var SampleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
135
143
|
*/
|
|
136
144
|
|
|
137
145
|
_this.finishTimestamp = null;
|
|
146
|
+
/**
|
|
147
|
+
* When this Sample was Unloaded from the Dehydrator
|
|
148
|
+
*
|
|
149
|
+
* @type {?Date}
|
|
150
|
+
* @public
|
|
151
|
+
*/
|
|
152
|
+
|
|
153
|
+
_this.unloadedTimestamp = null;
|
|
138
154
|
/**
|
|
139
155
|
* When this Sample was Published
|
|
140
156
|
*
|
|
@@ -362,6 +378,20 @@ var SampleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
362
378
|
}();
|
|
363
379
|
}
|
|
364
380
|
|
|
381
|
+
if ('loadedTimestamp' in jsonObject) {
|
|
382
|
+
model.loadedTimestamp = function () {
|
|
383
|
+
if (jsonObject['loadedTimestamp'] === null) {
|
|
384
|
+
return null;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
if (typeof jsonObject['loadedTimestamp'] !== 'string') {
|
|
388
|
+
return new Date(String(jsonObject['loadedTimestamp']));
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
return new Date(jsonObject['loadedTimestamp']);
|
|
392
|
+
}();
|
|
393
|
+
}
|
|
394
|
+
|
|
365
395
|
if ('startTimestamp' in jsonObject) {
|
|
366
396
|
model.startTimestamp = function () {
|
|
367
397
|
if (jsonObject['startTimestamp'] === null) {
|
|
@@ -390,6 +420,20 @@ var SampleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
390
420
|
}();
|
|
391
421
|
}
|
|
392
422
|
|
|
423
|
+
if ('unloadedTimestamp' in jsonObject) {
|
|
424
|
+
model.unloadedTimestamp = function () {
|
|
425
|
+
if (jsonObject['unloadedTimestamp'] === null) {
|
|
426
|
+
return null;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
if (typeof jsonObject['unloadedTimestamp'] !== 'string') {
|
|
430
|
+
return new Date(String(jsonObject['unloadedTimestamp']));
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
return new Date(jsonObject['unloadedTimestamp']);
|
|
434
|
+
}();
|
|
435
|
+
}
|
|
436
|
+
|
|
393
437
|
if ('publishTimestamp' in jsonObject) {
|
|
394
438
|
model.publishTimestamp = function () {
|
|
395
439
|
if (jsonObject['publishTimestamp'] === null) {
|
|
@@ -11,6 +11,8 @@ var _FruitProfileModel = _interopRequireDefault(require("./FruitProfileModel"));
|
|
|
11
11
|
|
|
12
12
|
var _LabModel = _interopRequireDefault(require("./LabModel"));
|
|
13
13
|
|
|
14
|
+
var _ProbeCalibrationModel = _interopRequireDefault(require("./ProbeCalibrationModel"));
|
|
15
|
+
|
|
14
16
|
var _RackModel = _interopRequireDefault(require("./RackModel"));
|
|
15
17
|
|
|
16
18
|
var _RackPositionModel = _interopRequireDefault(require("./RackPositionModel"));
|
|
@@ -36,6 +38,7 @@ var Site = {
|
|
|
36
38
|
DehydratorModel: _DehydratorModel.default,
|
|
37
39
|
FruitProfileModel: _FruitProfileModel.default,
|
|
38
40
|
LabModel: _LabModel.default,
|
|
41
|
+
ProbeCalibrationModel: _ProbeCalibrationModel.default,
|
|
39
42
|
RackModel: _RackModel.default,
|
|
40
43
|
RackPositionModel: _RackPositionModel.default,
|
|
41
44
|
SampleFailureReasonModel: _SampleFailureReasonModel.default,
|
package/lib/PackageVersion.js
CHANGED