@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
|
@@ -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';
|