@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
|
@@ -66,7 +66,7 @@ class SampleModel extends BaseModel
|
|
|
66
66
|
this.createdSource = "";
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
|
-
* ID of the User who Created this Sample. Only applies if the `createdSource` is '
|
|
69
|
+
* ID of the User who Created this Sample. Only applies if the `createdSource` is 'User'
|
|
70
70
|
*
|
|
71
71
|
* @type {?string}
|
|
72
72
|
* @public
|
|
@@ -74,7 +74,7 @@ class SampleModel extends BaseModel
|
|
|
74
74
|
this.createdUserId = null;
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
|
-
* Name of the User who Created this Sample. Only applies if the `createdSource` is '
|
|
77
|
+
* Name of the User who Created this Sample. Only applies if the `createdSource` is 'User'
|
|
78
78
|
*
|
|
79
79
|
* @type {?string}
|
|
80
80
|
* @public
|
|
@@ -89,6 +89,14 @@ class SampleModel extends BaseModel
|
|
|
89
89
|
*/
|
|
90
90
|
this.scheduledTimestamp = null;
|
|
91
91
|
|
|
92
|
+
/**
|
|
93
|
+
* When this Sample was Loaded into the Dehydrator
|
|
94
|
+
*
|
|
95
|
+
* @type {?Date}
|
|
96
|
+
* @public
|
|
97
|
+
*/
|
|
98
|
+
this.loadedTimestamp = null;
|
|
99
|
+
|
|
92
100
|
/**
|
|
93
101
|
* When this Sample was Started
|
|
94
102
|
*
|
|
@@ -105,6 +113,14 @@ class SampleModel extends BaseModel
|
|
|
105
113
|
*/
|
|
106
114
|
this.finishTimestamp = null;
|
|
107
115
|
|
|
116
|
+
/**
|
|
117
|
+
* When this Sample was Unloaded from the Dehydrator
|
|
118
|
+
*
|
|
119
|
+
* @type {?Date}
|
|
120
|
+
* @public
|
|
121
|
+
*/
|
|
122
|
+
this.unloadedTimestamp = null;
|
|
123
|
+
|
|
108
124
|
/**
|
|
109
125
|
* When this Sample was Published
|
|
110
126
|
*
|
|
@@ -350,6 +366,23 @@ class SampleModel extends BaseModel
|
|
|
350
366
|
}());
|
|
351
367
|
}
|
|
352
368
|
|
|
369
|
+
if('loadedTimestamp' in jsonObject)
|
|
370
|
+
{
|
|
371
|
+
model.loadedTimestamp = (function(){
|
|
372
|
+
if(jsonObject['loadedTimestamp'] === null)
|
|
373
|
+
{
|
|
374
|
+
return null;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
if(typeof jsonObject['loadedTimestamp'] !== 'string')
|
|
378
|
+
{
|
|
379
|
+
return new Date(String(jsonObject['loadedTimestamp']));
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
return new Date(jsonObject['loadedTimestamp']);
|
|
383
|
+
}());
|
|
384
|
+
}
|
|
385
|
+
|
|
353
386
|
if('startTimestamp' in jsonObject)
|
|
354
387
|
{
|
|
355
388
|
model.startTimestamp = (function(){
|
|
@@ -384,6 +417,23 @@ class SampleModel extends BaseModel
|
|
|
384
417
|
}());
|
|
385
418
|
}
|
|
386
419
|
|
|
420
|
+
if('unloadedTimestamp' in jsonObject)
|
|
421
|
+
{
|
|
422
|
+
model.unloadedTimestamp = (function(){
|
|
423
|
+
if(jsonObject['unloadedTimestamp'] === null)
|
|
424
|
+
{
|
|
425
|
+
return null;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
if(typeof jsonObject['unloadedTimestamp'] !== 'string')
|
|
429
|
+
{
|
|
430
|
+
return new Date(String(jsonObject['unloadedTimestamp']));
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
return new Date(jsonObject['unloadedTimestamp']);
|
|
434
|
+
}());
|
|
435
|
+
}
|
|
436
|
+
|
|
387
437
|
if('publishTimestamp' in jsonObject)
|
|
388
438
|
{
|
|
389
439
|
model.publishTimestamp = (function(){
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
import DehydratorModel from './DehydratorModel';
|
|
11
11
|
import FruitProfileModel from './FruitProfileModel';
|
|
12
12
|
import LabModel from './LabModel';
|
|
13
|
+
import ProbeCalibrationModel from './ProbeCalibrationModel';
|
|
13
14
|
import RackModel from './RackModel';
|
|
14
15
|
import RackPositionModel from './RackPositionModel';
|
|
15
16
|
import SampleFailureReasonModel from './SampleFailureReasonModel';
|
|
@@ -20,6 +21,7 @@ const Site = {
|
|
|
20
21
|
DehydratorModel,
|
|
21
22
|
FruitProfileModel,
|
|
22
23
|
LabModel,
|
|
24
|
+
ProbeCalibrationModel,
|
|
23
25
|
RackModel,
|
|
24
26
|
RackPositionModel,
|
|
25
27
|
SampleFailureReasonModel,
|
package/src/PackageVersion.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '2.4.
|
|
2
|
+
export const version = '2.4.2';
|