@ricado/api-client 2.5.16 → 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/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 +180 -0
- 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/Models/Lab/Site/FruitProfileModel.js +160 -0
- package/src/Models/Lab/Site/SampleModel.js +100 -0
- package/src/PackageVersion.js +1 -1
|
@@ -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(){
|
package/src/PackageVersion.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '2.5.
|
|
2
|
+
export const version = '2.5.18';
|