@ricado/api-client 2.4.2 → 2.5.1

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.
Files changed (33) hide show
  1. package/dist/ricado.api.client.js +1 -1
  2. package/lib/Controllers/Lab/Site/FruitProfileController.js +10 -8
  3. package/lib/Controllers/Lab/Site/LabController.js +5 -2
  4. package/lib/Controllers/Lab/Site/RackPositionController.js +2 -2
  5. package/lib/Controllers/Lab/Site/SampleController.js +7 -15
  6. package/lib/Controllers/Lab/Site/SampleResultController.js +29 -27
  7. package/lib/Controllers/Lab/Site/index.js +0 -3
  8. package/lib/Models/Lab/Site/FruitProfileModel.js +22 -4
  9. package/lib/Models/Lab/Site/LabModel.js +100 -11
  10. package/lib/Models/Lab/Site/RackPositionModel.js +67 -15
  11. package/lib/Models/Lab/Site/SampleModel.js +9 -75
  12. package/lib/Models/Lab/Site/SampleResultModel.js +45 -23
  13. package/lib/Models/Lab/Site/index.js +0 -3
  14. package/lib/PackageVersion.js +1 -1
  15. package/lib/index.d.ts +150 -315
  16. package/package.json +1 -1
  17. package/src/Controllers/Lab/Site/FruitProfileController.js +10 -8
  18. package/src/Controllers/Lab/Site/LabController.js +5 -2
  19. package/src/Controllers/Lab/Site/RackPositionController.js +2 -2
  20. package/src/Controllers/Lab/Site/SampleController.js +7 -15
  21. package/src/Controllers/Lab/Site/SampleResultController.js +29 -27
  22. package/src/Controllers/Lab/Site/index.js +0 -2
  23. package/src/Models/Lab/Site/FruitProfileModel.js +24 -4
  24. package/src/Models/Lab/Site/LabModel.js +132 -11
  25. package/src/Models/Lab/Site/RackPositionModel.js +87 -15
  26. package/src/Models/Lab/Site/SampleModel.js +9 -84
  27. package/src/Models/Lab/Site/SampleResultModel.js +48 -23
  28. package/src/Models/Lab/Site/index.js +0 -2
  29. package/src/PackageVersion.js +1 -1
  30. package/lib/Controllers/Lab/Site/SampleFailureReasonController.js +0 -193
  31. package/lib/Models/Lab/Site/SampleFailureReasonModel.js +0 -195
  32. package/src/Controllers/Lab/Site/SampleFailureReasonController.js +0 -170
  33. package/src/Models/Lab/Site/SampleFailureReasonModel.js +0 -170
@@ -52,7 +52,7 @@ class RackPositionModel extends BaseModel
52
52
  /**
53
53
  * The Points used by this Rack Position
54
54
  *
55
- * @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, currentSampleSuccessCriteriaMet: number, currentSampleFailureCriteriaMet: number}}
55
+ * @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}}
56
56
  * @public
57
57
  */
58
58
  this.points = (function(){
@@ -74,14 +74,22 @@ class RackPositionModel extends BaseModel
74
74
 
75
75
  pointsDefaultValue.nextSampleId = 0;
76
76
 
77
+ pointsDefaultValue.loadCurrentSampleRequest = 0;
78
+
77
79
  pointsDefaultValue.startCurrentSampleRequest = 0;
78
80
 
79
81
  pointsDefaultValue.finishCurrentSampleRequest = 0;
80
82
 
83
+ pointsDefaultValue.unloadCurrentSampleRequest = 0;
84
+
81
85
  pointsDefaultValue.currentSampleTotalDuration = 0;
82
86
 
83
87
  pointsDefaultValue.currentSampleWarmUpDuration = 0;
84
88
 
89
+ pointsDefaultValue.currentSampleWarmUpRateOfChange = 0;
90
+
91
+ pointsDefaultValue.currentSampleWarmUpWarning = 0;
92
+
85
93
  pointsDefaultValue.currentSampleWarmUpCompleted = 0;
86
94
 
87
95
  pointsDefaultValue.currentSampleBelowTargetDuration = 0;
@@ -90,9 +98,9 @@ class RackPositionModel extends BaseModel
90
98
 
91
99
  pointsDefaultValue.currentSampleWithinTargetDuration = 0;
92
100
 
93
- pointsDefaultValue.currentSampleSuccessCriteriaMet = 0;
101
+ pointsDefaultValue.currentSampleFinishCriteriaMet = 0;
94
102
 
95
- pointsDefaultValue.currentSampleFailureCriteriaMet = 0;
103
+ pointsDefaultValue.currentSampleLatestUnloadTimestamp = 0;
96
104
 
97
105
  return pointsDefaultValue;
98
106
  }());
@@ -357,6 +365,22 @@ class RackPositionModel extends BaseModel
357
365
  pointsObject.nextSampleId = 0;
358
366
  }
359
367
 
368
+ if(typeof jsonObject['points'] === 'object' && 'loadCurrentSampleRequest' in jsonObject['points'])
369
+ {
370
+ pointsObject.loadCurrentSampleRequest = (function(){
371
+ if(typeof jsonObject['points'].loadCurrentSampleRequest !== 'number')
372
+ {
373
+ return Number.isInteger(Number(jsonObject['points'].loadCurrentSampleRequest)) ? Number(jsonObject['points'].loadCurrentSampleRequest) : Math.floor(Number(jsonObject['points'].loadCurrentSampleRequest));
374
+ }
375
+
376
+ return Number.isInteger(jsonObject['points'].loadCurrentSampleRequest) ? jsonObject['points'].loadCurrentSampleRequest : Math.floor(jsonObject['points'].loadCurrentSampleRequest);
377
+ }());
378
+ }
379
+ else
380
+ {
381
+ pointsObject.loadCurrentSampleRequest = 0;
382
+ }
383
+
360
384
  if(typeof jsonObject['points'] === 'object' && 'startCurrentSampleRequest' in jsonObject['points'])
361
385
  {
362
386
  pointsObject.startCurrentSampleRequest = (function(){
@@ -389,6 +413,22 @@ class RackPositionModel extends BaseModel
389
413
  pointsObject.finishCurrentSampleRequest = 0;
390
414
  }
391
415
 
416
+ if(typeof jsonObject['points'] === 'object' && 'unloadCurrentSampleRequest' in jsonObject['points'])
417
+ {
418
+ pointsObject.unloadCurrentSampleRequest = (function(){
419
+ if(typeof jsonObject['points'].unloadCurrentSampleRequest !== 'number')
420
+ {
421
+ return Number.isInteger(Number(jsonObject['points'].unloadCurrentSampleRequest)) ? Number(jsonObject['points'].unloadCurrentSampleRequest) : Math.floor(Number(jsonObject['points'].unloadCurrentSampleRequest));
422
+ }
423
+
424
+ return Number.isInteger(jsonObject['points'].unloadCurrentSampleRequest) ? jsonObject['points'].unloadCurrentSampleRequest : Math.floor(jsonObject['points'].unloadCurrentSampleRequest);
425
+ }());
426
+ }
427
+ else
428
+ {
429
+ pointsObject.unloadCurrentSampleRequest = 0;
430
+ }
431
+
392
432
  if(typeof jsonObject['points'] === 'object' && 'currentSampleTotalDuration' in jsonObject['points'])
393
433
  {
394
434
  pointsObject.currentSampleTotalDuration = (function(){
@@ -421,6 +461,38 @@ class RackPositionModel extends BaseModel
421
461
  pointsObject.currentSampleWarmUpDuration = 0;
422
462
  }
423
463
 
464
+ if(typeof jsonObject['points'] === 'object' && 'currentSampleWarmUpRateOfChange' in jsonObject['points'])
465
+ {
466
+ pointsObject.currentSampleWarmUpRateOfChange = (function(){
467
+ if(typeof jsonObject['points'].currentSampleWarmUpRateOfChange !== 'number')
468
+ {
469
+ return Number.isInteger(Number(jsonObject['points'].currentSampleWarmUpRateOfChange)) ? Number(jsonObject['points'].currentSampleWarmUpRateOfChange) : Math.floor(Number(jsonObject['points'].currentSampleWarmUpRateOfChange));
470
+ }
471
+
472
+ return Number.isInteger(jsonObject['points'].currentSampleWarmUpRateOfChange) ? jsonObject['points'].currentSampleWarmUpRateOfChange : Math.floor(jsonObject['points'].currentSampleWarmUpRateOfChange);
473
+ }());
474
+ }
475
+ else
476
+ {
477
+ pointsObject.currentSampleWarmUpRateOfChange = 0;
478
+ }
479
+
480
+ if(typeof jsonObject['points'] === 'object' && 'currentSampleWarmUpWarning' in jsonObject['points'])
481
+ {
482
+ pointsObject.currentSampleWarmUpWarning = (function(){
483
+ if(typeof jsonObject['points'].currentSampleWarmUpWarning !== 'number')
484
+ {
485
+ return Number.isInteger(Number(jsonObject['points'].currentSampleWarmUpWarning)) ? Number(jsonObject['points'].currentSampleWarmUpWarning) : Math.floor(Number(jsonObject['points'].currentSampleWarmUpWarning));
486
+ }
487
+
488
+ return Number.isInteger(jsonObject['points'].currentSampleWarmUpWarning) ? jsonObject['points'].currentSampleWarmUpWarning : Math.floor(jsonObject['points'].currentSampleWarmUpWarning);
489
+ }());
490
+ }
491
+ else
492
+ {
493
+ pointsObject.currentSampleWarmUpWarning = 0;
494
+ }
495
+
424
496
  if(typeof jsonObject['points'] === 'object' && 'currentSampleWarmUpCompleted' in jsonObject['points'])
425
497
  {
426
498
  pointsObject.currentSampleWarmUpCompleted = (function(){
@@ -485,36 +557,36 @@ class RackPositionModel extends BaseModel
485
557
  pointsObject.currentSampleWithinTargetDuration = 0;
486
558
  }
487
559
 
488
- if(typeof jsonObject['points'] === 'object' && 'currentSampleSuccessCriteriaMet' in jsonObject['points'])
560
+ if(typeof jsonObject['points'] === 'object' && 'currentSampleFinishCriteriaMet' in jsonObject['points'])
489
561
  {
490
- pointsObject.currentSampleSuccessCriteriaMet = (function(){
491
- if(typeof jsonObject['points'].currentSampleSuccessCriteriaMet !== 'number')
562
+ pointsObject.currentSampleFinishCriteriaMet = (function(){
563
+ if(typeof jsonObject['points'].currentSampleFinishCriteriaMet !== 'number')
492
564
  {
493
- return Number.isInteger(Number(jsonObject['points'].currentSampleSuccessCriteriaMet)) ? Number(jsonObject['points'].currentSampleSuccessCriteriaMet) : Math.floor(Number(jsonObject['points'].currentSampleSuccessCriteriaMet));
565
+ return Number.isInteger(Number(jsonObject['points'].currentSampleFinishCriteriaMet)) ? Number(jsonObject['points'].currentSampleFinishCriteriaMet) : Math.floor(Number(jsonObject['points'].currentSampleFinishCriteriaMet));
494
566
  }
495
567
 
496
- return Number.isInteger(jsonObject['points'].currentSampleSuccessCriteriaMet) ? jsonObject['points'].currentSampleSuccessCriteriaMet : Math.floor(jsonObject['points'].currentSampleSuccessCriteriaMet);
568
+ return Number.isInteger(jsonObject['points'].currentSampleFinishCriteriaMet) ? jsonObject['points'].currentSampleFinishCriteriaMet : Math.floor(jsonObject['points'].currentSampleFinishCriteriaMet);
497
569
  }());
498
570
  }
499
571
  else
500
572
  {
501
- pointsObject.currentSampleSuccessCriteriaMet = 0;
573
+ pointsObject.currentSampleFinishCriteriaMet = 0;
502
574
  }
503
575
 
504
- if(typeof jsonObject['points'] === 'object' && 'currentSampleFailureCriteriaMet' in jsonObject['points'])
576
+ if(typeof jsonObject['points'] === 'object' && 'currentSampleLatestUnloadTimestamp' in jsonObject['points'])
505
577
  {
506
- pointsObject.currentSampleFailureCriteriaMet = (function(){
507
- if(typeof jsonObject['points'].currentSampleFailureCriteriaMet !== 'number')
578
+ pointsObject.currentSampleLatestUnloadTimestamp = (function(){
579
+ if(typeof jsonObject['points'].currentSampleLatestUnloadTimestamp !== 'number')
508
580
  {
509
- return Number.isInteger(Number(jsonObject['points'].currentSampleFailureCriteriaMet)) ? Number(jsonObject['points'].currentSampleFailureCriteriaMet) : Math.floor(Number(jsonObject['points'].currentSampleFailureCriteriaMet));
581
+ return Number.isInteger(Number(jsonObject['points'].currentSampleLatestUnloadTimestamp)) ? Number(jsonObject['points'].currentSampleLatestUnloadTimestamp) : Math.floor(Number(jsonObject['points'].currentSampleLatestUnloadTimestamp));
510
582
  }
511
583
 
512
- return Number.isInteger(jsonObject['points'].currentSampleFailureCriteriaMet) ? jsonObject['points'].currentSampleFailureCriteriaMet : Math.floor(jsonObject['points'].currentSampleFailureCriteriaMet);
584
+ return Number.isInteger(jsonObject['points'].currentSampleLatestUnloadTimestamp) ? jsonObject['points'].currentSampleLatestUnloadTimestamp : Math.floor(jsonObject['points'].currentSampleLatestUnloadTimestamp);
513
585
  }());
514
586
  }
515
587
  else
516
588
  {
517
- pointsObject.currentSampleFailureCriteriaMet = 0;
589
+ pointsObject.currentSampleLatestUnloadTimestamp = 0;
518
590
  }
519
591
 
520
592
  return pointsObject;
@@ -66,15 +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 'User'
70
- *
71
- * @type {?string}
72
- * @public
73
- */
74
- this.createdUserId = null;
75
-
76
- /**
77
- * Name of the User who Created this Sample. Only applies if the `createdSource` is 'User'
69
+ * Name of the User who Created this Sample
78
70
  *
79
71
  * @type {?string}
80
72
  * @public
@@ -130,12 +122,12 @@ class SampleModel extends BaseModel
130
122
  this.publishTimestamp = null;
131
123
 
132
124
  /**
133
- * ID of the User who Published this Sample
125
+ * The Source that Published this Sample
134
126
  *
135
127
  * @type {?string}
136
128
  * @public
137
129
  */
138
- this.publishUserId = null;
130
+ this.publishSource = null;
139
131
 
140
132
  /**
141
133
  * Name of the User who Published this Sample
@@ -169,22 +161,6 @@ class SampleModel extends BaseModel
169
161
  */
170
162
  this.dehydratorId = "";
171
163
 
172
- /**
173
- * The Outcome of this Sample
174
- *
175
- * @type {?string}
176
- * @public
177
- */
178
- this.outcome = null;
179
-
180
- /**
181
- * A Sample Failure Reason ID if this Sample Failed
182
- *
183
- * @type {?string}
184
- * @public
185
- */
186
- this.failureReasonId = null;
187
-
188
164
  /**
189
165
  * The Sample Result ID asociated with this Sample
190
166
  *
@@ -315,23 +291,6 @@ class SampleModel extends BaseModel
315
291
  }());
316
292
  }
317
293
 
318
- if('createdUserId' in jsonObject)
319
- {
320
- model.createdUserId = (function(){
321
- if(jsonObject['createdUserId'] === null)
322
- {
323
- return null;
324
- }
325
-
326
- if(typeof jsonObject['createdUserId'] !== 'string')
327
- {
328
- return String(jsonObject['createdUserId']);
329
- }
330
-
331
- return jsonObject['createdUserId'];
332
- }());
333
- }
334
-
335
294
  if('createdUserName' in jsonObject)
336
295
  {
337
296
  model.createdUserName = (function(){
@@ -451,20 +410,20 @@ class SampleModel extends BaseModel
451
410
  }());
452
411
  }
453
412
 
454
- if('publishUserId' in jsonObject)
413
+ if('publishSource' in jsonObject)
455
414
  {
456
- model.publishUserId = (function(){
457
- if(jsonObject['publishUserId'] === null)
415
+ model.publishSource = (function(){
416
+ if(jsonObject['publishSource'] === null)
458
417
  {
459
418
  return null;
460
419
  }
461
420
 
462
- if(typeof jsonObject['publishUserId'] !== 'string')
421
+ if(typeof jsonObject['publishSource'] !== 'string')
463
422
  {
464
- return String(jsonObject['publishUserId']);
423
+ return String(jsonObject['publishSource']);
465
424
  }
466
425
 
467
- return jsonObject['publishUserId'];
426
+ return jsonObject['publishSource'];
468
427
  }());
469
428
  }
470
429
 
@@ -521,40 +480,6 @@ class SampleModel extends BaseModel
521
480
  }());
522
481
  }
523
482
 
524
- if('outcome' in jsonObject)
525
- {
526
- model.outcome = (function(){
527
- if(jsonObject['outcome'] === null)
528
- {
529
- return null;
530
- }
531
-
532
- if(typeof jsonObject['outcome'] !== 'string')
533
- {
534
- return String(jsonObject['outcome']);
535
- }
536
-
537
- return jsonObject['outcome'];
538
- }());
539
- }
540
-
541
- if('failureReasonId' in jsonObject)
542
- {
543
- model.failureReasonId = (function(){
544
- if(jsonObject['failureReasonId'] === null)
545
- {
546
- return null;
547
- }
548
-
549
- if(typeof jsonObject['failureReasonId'] !== 'string')
550
- {
551
- return String(jsonObject['failureReasonId']);
552
- }
553
-
554
- return jsonObject['failureReasonId'];
555
- }());
556
- }
557
-
558
483
  if('resultId' in jsonObject)
559
484
  {
560
485
  model.resultId = (function(){
@@ -7,7 +7,7 @@
7
7
  import BaseModel from '../../../Models/BaseModel';
8
8
 
9
9
  /**
10
- * Model Class for a Sample Results
10
+ * Model Class for a Sample Result
11
11
  *
12
12
  * @class
13
13
  * @hideconstructor
@@ -19,14 +19,14 @@ class SampleResultModel extends BaseModel
19
19
  * SampleResultModel Constructor
20
20
  *
21
21
  * @protected
22
- * @param {number} siteId The Site ID associated with this Sample Results
22
+ * @param {number} siteId The Site ID associated with this Sample Result
23
23
  */
24
24
  constructor(siteId)
25
25
  {
26
26
  super();
27
27
 
28
28
  /**
29
- * The Sample Results ID
29
+ * The Sample Result ID
30
30
  *
31
31
  * @type {string}
32
32
  * @public
@@ -106,20 +106,20 @@ class SampleResultModel extends BaseModel
106
106
  this.withinTargetDuration = 0;
107
107
 
108
108
  /**
109
- * Timestamp of when the Success Criteria was Met for the Sample - `null` if not Met
109
+ * Timestamp of when the Finish Criteria was Met for the Sample - `null` if not Met
110
110
  *
111
111
  * @type {?Date}
112
112
  * @public
113
113
  */
114
- this.successCriteriaMetTimestamp = null;
114
+ this.finishCriteriaMetTimestamp = null;
115
115
 
116
116
  /**
117
- * Timestamp of when the Failure Criteria was Met for the Sample - `null` if not Met
117
+ * Latest Possible Timestamp of when the Sample should have been Unloaded to remain Compliant
118
118
  *
119
119
  * @type {?Date}
120
120
  * @public
121
121
  */
122
- this.failureCriteriaMetTimestamp = null;
122
+ this.latestUnloadTimestamp = null;
123
123
 
124
124
  /**
125
125
  * The Average Temperature for the Total Duration of the Sample
@@ -129,6 +129,14 @@ class SampleResultModel extends BaseModel
129
129
  */
130
130
  this.totalAverageTemperature = null;
131
131
 
132
+ /**
133
+ * The Average Temperature Rate-of-Change seen during the Warm Up process for the Sample
134
+ *
135
+ * @type {?number}
136
+ * @public
137
+ */
138
+ this.warmUpRateOfChangeTemperature = null;
139
+
132
140
  /**
133
141
  * The Minimum Temperature seen Below the Temperature Target for the Sample
134
142
  *
@@ -186,7 +194,7 @@ class SampleResultModel extends BaseModel
186
194
  this.withinTargetAverageTemperature = null;
187
195
 
188
196
  /**
189
- * Whether the Sample Results has been deleted
197
+ * Whether the Sample Result has been deleted
190
198
  *
191
199
  * @type {boolean}
192
200
  * @public
@@ -194,7 +202,7 @@ class SampleResultModel extends BaseModel
194
202
  this.deleted = false;
195
203
 
196
204
  /**
197
- * When the Sample Results was last updated
205
+ * When the Sample Result was last updated
198
206
  *
199
207
  * @type {Date}
200
208
  * @public
@@ -202,7 +210,7 @@ class SampleResultModel extends BaseModel
202
210
  this.updateTimestamp = new Date();
203
211
 
204
212
  /**
205
- * The Site ID associated with this Sample Results
213
+ * The Site ID associated with this Sample Result
206
214
  *
207
215
  * @type {number}
208
216
  * @public
@@ -216,7 +224,7 @@ class SampleResultModel extends BaseModel
216
224
  * @static
217
225
  * @public
218
226
  * @param {Object<string, any>|string} json A JSON Object or JSON String
219
- * @param {number} siteId The Site ID associated with this Sample Results
227
+ * @param {number} siteId The Site ID associated with this Sample Result
220
228
  * @return {SampleResultModel}
221
229
  */
222
230
  static fromJSON(json, siteId)
@@ -364,37 +372,37 @@ class SampleResultModel extends BaseModel
364
372
  }());
365
373
  }
366
374
 
367
- if('successCriteriaMetTimestamp' in jsonObject)
375
+ if('finishCriteriaMetTimestamp' in jsonObject)
368
376
  {
369
- model.successCriteriaMetTimestamp = (function(){
370
- if(jsonObject['successCriteriaMetTimestamp'] === null)
377
+ model.finishCriteriaMetTimestamp = (function(){
378
+ if(jsonObject['finishCriteriaMetTimestamp'] === null)
371
379
  {
372
380
  return null;
373
381
  }
374
382
 
375
- if(typeof jsonObject['successCriteriaMetTimestamp'] !== 'string')
383
+ if(typeof jsonObject['finishCriteriaMetTimestamp'] !== 'string')
376
384
  {
377
- return new Date(String(jsonObject['successCriteriaMetTimestamp']));
385
+ return new Date(String(jsonObject['finishCriteriaMetTimestamp']));
378
386
  }
379
387
 
380
- return new Date(jsonObject['successCriteriaMetTimestamp']);
388
+ return new Date(jsonObject['finishCriteriaMetTimestamp']);
381
389
  }());
382
390
  }
383
391
 
384
- if('failureCriteriaMetTimestamp' in jsonObject)
392
+ if('latestUnloadTimestamp' in jsonObject)
385
393
  {
386
- model.failureCriteriaMetTimestamp = (function(){
387
- if(jsonObject['failureCriteriaMetTimestamp'] === null)
394
+ model.latestUnloadTimestamp = (function(){
395
+ if(jsonObject['latestUnloadTimestamp'] === null)
388
396
  {
389
397
  return null;
390
398
  }
391
399
 
392
- if(typeof jsonObject['failureCriteriaMetTimestamp'] !== 'string')
400
+ if(typeof jsonObject['latestUnloadTimestamp'] !== 'string')
393
401
  {
394
- return new Date(String(jsonObject['failureCriteriaMetTimestamp']));
402
+ return new Date(String(jsonObject['latestUnloadTimestamp']));
395
403
  }
396
404
 
397
- return new Date(jsonObject['failureCriteriaMetTimestamp']);
405
+ return new Date(jsonObject['latestUnloadTimestamp']);
398
406
  }());
399
407
  }
400
408
 
@@ -415,6 +423,23 @@ class SampleResultModel extends BaseModel
415
423
  }());
416
424
  }
417
425
 
426
+ if('warmUpRateOfChangeTemperature' in jsonObject)
427
+ {
428
+ model.warmUpRateOfChangeTemperature = (function(){
429
+ if(jsonObject['warmUpRateOfChangeTemperature'] === null)
430
+ {
431
+ return null;
432
+ }
433
+
434
+ if(typeof jsonObject['warmUpRateOfChangeTemperature'] !== 'number')
435
+ {
436
+ return Number(jsonObject['warmUpRateOfChangeTemperature']);
437
+ }
438
+
439
+ return jsonObject['warmUpRateOfChangeTemperature'];
440
+ }());
441
+ }
442
+
418
443
  if('belowTargetMinimumTemperature' in jsonObject)
419
444
  {
420
445
  model.belowTargetMinimumTemperature = (function(){
@@ -13,7 +13,6 @@ import LabModel from './LabModel';
13
13
  import ProbeCalibrationModel from './ProbeCalibrationModel';
14
14
  import RackModel from './RackModel';
15
15
  import RackPositionModel from './RackPositionModel';
16
- import SampleFailureReasonModel from './SampleFailureReasonModel';
17
16
  import SampleModel from './SampleModel';
18
17
  import SampleResultModel from './SampleResultModel';
19
18
 
@@ -24,7 +23,6 @@ const Site = {
24
23
  ProbeCalibrationModel,
25
24
  RackModel,
26
25
  RackPositionModel,
27
- SampleFailureReasonModel,
28
26
  SampleModel,
29
27
  SampleResultModel,
30
28
  };
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '2.4.2';
2
+ export const version = '2.5.1';