@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.
@@ -185,6 +185,14 @@ var _default = FruitProfileController;
185
185
  * @property {number} maximumTotalDuration The Maximum Duration (in seconds) that a Sample can be Dehydrated for before it is Considered Non-Compliant
186
186
  * @property {number} minimumTargetTemperature The Minimum Target Temperature for a Sample to be Compliant
187
187
  * @property {number} maximumTargetTemperature The Maximum Target Temperature for a Sample to be Compliant
188
+ * @property {number} warmUpStartExpectedTemperature The Warm-Up Temperature for starting the Warm Up alerts
189
+ * @property {number} warmUpStartExpectedRateOfChange The Warm-Up Start Expected Rate of Change
190
+ * @property {number} warmUpStageTwoExpectedTemperature The Warm-Up Stage Two Expected Temperature
191
+ * @property {number} warmUpStageTwoExpectedRateOfChange The Warm-Up Stage Two Expected Rate of Change
192
+ * @property {number} warmUpStageThreeExpectedTemperature The Warm-Up Stage Three Expected Temperature
193
+ * @property {number} warmUpStageThreeExpectedRateOfChange The Warm-Up Stage Three Expected Rate of Change
194
+ * @property {number} warmUpEndExpectedTemperature The Warm-Up End Expected Temperature
195
+ * @property {number} warmUpEndExpectedRateOfChange The Warm-Up End Expected Rate of Change
188
196
  * @memberof Controllers.Lab.Site
189
197
  */
190
198
 
@@ -201,6 +209,14 @@ var _default = FruitProfileController;
201
209
  * @property {number} [maximumTotalDuration] The Maximum Duration (in seconds) that a Sample can be Dehydrated for before it is Considered Non-Compliant
202
210
  * @property {number} [minimumTargetTemperature] The Minimum Target Temperature for a Sample to be Compliant
203
211
  * @property {number} [maximumTargetTemperature] The Maximum Target Temperature for a Sample to be Compliant
212
+ * @property {number} [warmUpStartExpectedTemperature] The Warm-Up Temperature for starting the Warm Up alerts
213
+ * @property {number} [warmUpStartExpectedRateOfChange] The Warm-Up Start Expected Rate of Change
214
+ * @property {number} [warmUpStageTwoExpectedTemperature] The Warm-Up Stage Two Expected Temperature
215
+ * @property {number} [warmUpStageTwoExpectedRateOfChange] The Warm-Up Stage Two Expected Rate of Change
216
+ * @property {number} [warmUpStageThreeExpectedTemperature] The Warm-Up Stage Three Expected Temperature
217
+ * @property {number} [warmUpStageThreeExpectedRateOfChange] The Warm-Up Stage Three Expected Rate of Change
218
+ * @property {number} [warmUpEndExpectedTemperature] The Warm-Up End Expected Temperature
219
+ * @property {number} [warmUpEndExpectedRateOfChange] The Warm-Up End Expected Rate of Change
204
220
  * @memberof Controllers.Lab.Site
205
221
  */
206
222
 
@@ -952,6 +952,7 @@ var _default = SampleController;
952
952
  * @property {string} createdSource The Source that Created this Sample
953
953
  * @property {?string} [createdUserName] Name of the User who Created this Sample
954
954
  * @property {?Date} [scheduledTimestamp] Optional Scheduled Timestamp when this Sample should Begin
955
+ * @property {?Date} [scheduleReceivedTimestamp] Optional When the Schedule was received from Inspect
955
956
  * @property {?Date} [loadedTimestamp] When this Sample was Loaded into the Dehydrator
956
957
  * @property {?Date} [startTimestamp] When this Sample was Started
957
958
  * @property {?Date} [finishTimestamp] When this Sample was Finished
@@ -963,6 +964,9 @@ var _default = SampleController;
963
964
  * @property {string} rackPositionId The Rack Position used for this Sample
964
965
  * @property {string} dehydratorId The Dehydrator used for this Sample
965
966
  * @property {?string} [resultId] The Sample Result ID asociated with this Sample
967
+ * @property {?string} [blindedSampleID] Optional the BlindedSampleID Reference defined in RadfordsInspect
968
+ * @property {?string} [shortDescription] Optional the Sample Short Description defined in RadfordsInspect
969
+ * @property {?string} [sampleDescription] Optional the Sample Description defined in RadfordsInspect
966
970
  * @memberof Controllers.Lab.Site
967
971
  */
968
972
 
@@ -975,6 +979,7 @@ var _default = SampleController;
975
979
  * @property {string} [createdSource] The Source that Created this Sample
976
980
  * @property {?string} [createdUserName] Name of the User who Created this Sample
977
981
  * @property {?Date} [scheduledTimestamp] Optional Scheduled Timestamp when this Sample should Begin
982
+ * @property {?Date} [scheduleReceivedTimestamp] Optional When the Schedule was received from Inspect
978
983
  * @property {?Date} [loadedTimestamp] When this Sample was Loaded into the Dehydrator
979
984
  * @property {?Date} [startTimestamp] When this Sample was Started
980
985
  * @property {?Date} [finishTimestamp] When this Sample was Finished
@@ -986,6 +991,9 @@ var _default = SampleController;
986
991
  * @property {string} [rackPositionId] The Rack Position used for this Sample
987
992
  * @property {string} [dehydratorId] The Dehydrator used for this Sample
988
993
  * @property {?string} [resultId] The Sample Result ID asociated with this Sample
994
+ * @property {?string} [blindedSampleID] Optional the BlindedSampleID Reference defined in RadfordsInspect
995
+ * @property {?string} [shortDescription] Optional the Sample Short Description defined in RadfordsInspect
996
+ * @property {?string} [sampleDescription] Optional the Sample Description defined in RadfordsInspect
989
997
  * @memberof Controllers.Lab.Site
990
998
  */
991
999
 
@@ -2299,58 +2299,58 @@ var PackrunController = /*#__PURE__*/function () {
2299
2299
  resultObject.class2TotalTrays = 0;
2300
2300
  }
2301
2301
 
2302
- if (_typeof(result) === 'object' && 'classTypes' in result) {
2303
- resultObject.classTypes = function () {
2304
- if (Array.isArray(result.classTypes) !== true) {
2302
+ if (_typeof(result) === 'object' && 'classTypeTotals' in result) {
2303
+ resultObject.classTypeTotals = function () {
2304
+ if (Array.isArray(result.classTypeTotals) !== true) {
2305
2305
  return [];
2306
2306
  }
2307
2307
 
2308
- return result.classTypes.map(function (classTypesItem) {
2308
+ return result.classTypeTotals.map(function (classTypeTotalsItem) {
2309
2309
  return function () {
2310
- var classTypesItemObject = {};
2310
+ var classTypeTotalsItemObject = {};
2311
2311
 
2312
- if (_typeof(classTypesItem) === 'object' && 'classType' in classTypesItem) {
2313
- classTypesItemObject.classType = function () {
2314
- if (typeof classTypesItem.classType !== 'string') {
2315
- return String(classTypesItem.classType);
2312
+ if (_typeof(classTypeTotalsItem) === 'object' && 'classType' in classTypeTotalsItem) {
2313
+ classTypeTotalsItemObject.classType = function () {
2314
+ if (typeof classTypeTotalsItem.classType !== 'string') {
2315
+ return String(classTypeTotalsItem.classType);
2316
2316
  }
2317
2317
 
2318
- return classTypesItem.classType;
2318
+ return classTypeTotalsItem.classType;
2319
2319
  }();
2320
2320
  } else {
2321
- classTypesItemObject.classType = "";
2321
+ classTypeTotalsItemObject.classType = "";
2322
2322
  }
2323
2323
 
2324
- if (_typeof(classTypesItem) === 'object' && 'name' in classTypesItem) {
2325
- classTypesItemObject.name = function () {
2326
- if (typeof classTypesItem.name !== 'string') {
2327
- return String(classTypesItem.name);
2324
+ if (_typeof(classTypeTotalsItem) === 'object' && 'name' in classTypeTotalsItem) {
2325
+ classTypeTotalsItemObject.name = function () {
2326
+ if (typeof classTypeTotalsItem.name !== 'string') {
2327
+ return String(classTypeTotalsItem.name);
2328
2328
  }
2329
2329
 
2330
- return classTypesItem.name;
2330
+ return classTypeTotalsItem.name;
2331
2331
  }();
2332
2332
  } else {
2333
- classTypesItemObject.name = "";
2333
+ classTypeTotalsItemObject.name = "";
2334
2334
  }
2335
2335
 
2336
- if (_typeof(classTypesItem) === 'object' && 'percentage' in classTypesItem) {
2337
- classTypesItemObject.percentage = function () {
2338
- if (typeof classTypesItem.percentage !== 'number') {
2339
- return Number(classTypesItem.percentage);
2336
+ if (_typeof(classTypeTotalsItem) === 'object' && 'percentage' in classTypeTotalsItem) {
2337
+ classTypeTotalsItemObject.percentage = function () {
2338
+ if (typeof classTypeTotalsItem.percentage !== 'number') {
2339
+ return Number(classTypeTotalsItem.percentage);
2340
2340
  }
2341
2341
 
2342
- return classTypesItem.percentage;
2342
+ return classTypeTotalsItem.percentage;
2343
2343
  }();
2344
2344
  } else {
2345
- classTypesItemObject.percentage = 0;
2345
+ classTypeTotalsItemObject.percentage = 0;
2346
2346
  }
2347
2347
 
2348
- return classTypesItemObject;
2348
+ return classTypeTotalsItemObject;
2349
2349
  }();
2350
2350
  });
2351
2351
  }();
2352
2352
  } else {
2353
- resultObject.classTypes = [];
2353
+ resultObject.classTypeTotals = [];
2354
2354
  }
2355
2355
 
2356
2356
  return resultObject;
@@ -2693,7 +2693,7 @@ var _default = PackrunController;
2693
2693
  * @property {number} class1TraysPerBin The Number of Class 1 Trays per Bin for this Packrun
2694
2694
  * @property {number} class1AverageFruitSize The Average Class 1 Fruit Size for this Packrun
2695
2695
  * @property {number} class2TotalTrays The Total Class 2 Trays for this Packrun
2696
- * @property {Array<PackrunController.ClassTypePercentageItem>} classTypes An Array of Class Types and their Percentages for this Packrun
2696
+ * @property {Array<PackrunController.ClassTypePercentageItem>} classTypeTotals An Array of Class Types and their Percentages for this Packrun
2697
2697
  * @memberof Controllers.Packhouse.Site
2698
2698
  */
2699
2699
 
@@ -135,6 +135,70 @@ var FruitProfileModel = /*#__PURE__*/function (_BaseModel) {
135
135
  */
136
136
 
137
137
  _this.maximumTargetTemperature = 0;
138
+ /**
139
+ * The Warm-Up Temperature for starting the Warm Up alerts
140
+ *
141
+ * @type {number}
142
+ * @public
143
+ */
144
+
145
+ _this.warmUpStartExpectedTemperature = 0;
146
+ /**
147
+ * The Warm-Up Start Expected Rate of Change
148
+ *
149
+ * @type {number}
150
+ * @public
151
+ */
152
+
153
+ _this.warmUpStartExpectedRateOfChange = 0;
154
+ /**
155
+ * The Warm-Up Stage Two Expected Temperature
156
+ *
157
+ * @type {number}
158
+ * @public
159
+ */
160
+
161
+ _this.warmUpStageTwoExpectedTemperature = 0;
162
+ /**
163
+ * The Warm-Up Stage Two Expected Rate of Change
164
+ *
165
+ * @type {number}
166
+ * @public
167
+ */
168
+
169
+ _this.warmUpStageTwoExpectedRateOfChange = 0;
170
+ /**
171
+ * The Warm-Up Stage Three Expected Temperature
172
+ *
173
+ * @type {number}
174
+ * @public
175
+ */
176
+
177
+ _this.warmUpStageThreeExpectedTemperature = 0;
178
+ /**
179
+ * The Warm-Up Stage Three Expected Rate of Change
180
+ *
181
+ * @type {number}
182
+ * @public
183
+ */
184
+
185
+ _this.warmUpStageThreeExpectedRateOfChange = 0;
186
+ /**
187
+ * The Warm-Up End Expected Temperature
188
+ *
189
+ * @type {number}
190
+ * @public
191
+ */
192
+
193
+ _this.warmUpEndExpectedTemperature = 0;
194
+ /**
195
+ * The Warm-Up End Expected Rate of Change
196
+ *
197
+ * @type {number}
198
+ * @public
199
+ */
200
+
201
+ _this.warmUpEndExpectedRateOfChange = 0;
138
202
  /**
139
203
  * Whether the Fruit Profile has been deleted
140
204
  *
@@ -290,6 +354,86 @@ var FruitProfileModel = /*#__PURE__*/function (_BaseModel) {
290
354
  }();
291
355
  }
292
356
 
357
+ if ('warmUpStartExpectedTemperature' in jsonObject) {
358
+ model.warmUpStartExpectedTemperature = function () {
359
+ if (typeof jsonObject['warmUpStartExpectedTemperature'] !== 'number') {
360
+ return Number(jsonObject['warmUpStartExpectedTemperature']);
361
+ }
362
+
363
+ return jsonObject['warmUpStartExpectedTemperature'];
364
+ }();
365
+ }
366
+
367
+ if ('warmUpStartExpectedRateOfChange' in jsonObject) {
368
+ model.warmUpStartExpectedRateOfChange = function () {
369
+ if (typeof jsonObject['warmUpStartExpectedRateOfChange'] !== 'number') {
370
+ return Number(jsonObject['warmUpStartExpectedRateOfChange']);
371
+ }
372
+
373
+ return jsonObject['warmUpStartExpectedRateOfChange'];
374
+ }();
375
+ }
376
+
377
+ if ('warmUpStageTwoExpectedTemperature' in jsonObject) {
378
+ model.warmUpStageTwoExpectedTemperature = function () {
379
+ if (typeof jsonObject['warmUpStageTwoExpectedTemperature'] !== 'number') {
380
+ return Number(jsonObject['warmUpStageTwoExpectedTemperature']);
381
+ }
382
+
383
+ return jsonObject['warmUpStageTwoExpectedTemperature'];
384
+ }();
385
+ }
386
+
387
+ if ('warmUpStageTwoExpectedRateOfChange' in jsonObject) {
388
+ model.warmUpStageTwoExpectedRateOfChange = function () {
389
+ if (typeof jsonObject['warmUpStageTwoExpectedRateOfChange'] !== 'number') {
390
+ return Number(jsonObject['warmUpStageTwoExpectedRateOfChange']);
391
+ }
392
+
393
+ return jsonObject['warmUpStageTwoExpectedRateOfChange'];
394
+ }();
395
+ }
396
+
397
+ if ('warmUpStageThreeExpectedTemperature' in jsonObject) {
398
+ model.warmUpStageThreeExpectedTemperature = function () {
399
+ if (typeof jsonObject['warmUpStageThreeExpectedTemperature'] !== 'number') {
400
+ return Number(jsonObject['warmUpStageThreeExpectedTemperature']);
401
+ }
402
+
403
+ return jsonObject['warmUpStageThreeExpectedTemperature'];
404
+ }();
405
+ }
406
+
407
+ if ('warmUpStageThreeExpectedRateOfChange' in jsonObject) {
408
+ model.warmUpStageThreeExpectedRateOfChange = function () {
409
+ if (typeof jsonObject['warmUpStageThreeExpectedRateOfChange'] !== 'number') {
410
+ return Number(jsonObject['warmUpStageThreeExpectedRateOfChange']);
411
+ }
412
+
413
+ return jsonObject['warmUpStageThreeExpectedRateOfChange'];
414
+ }();
415
+ }
416
+
417
+ if ('warmUpEndExpectedTemperature' in jsonObject) {
418
+ model.warmUpEndExpectedTemperature = function () {
419
+ if (typeof jsonObject['warmUpEndExpectedTemperature'] !== 'number') {
420
+ return Number(jsonObject['warmUpEndExpectedTemperature']);
421
+ }
422
+
423
+ return jsonObject['warmUpEndExpectedTemperature'];
424
+ }();
425
+ }
426
+
427
+ if ('warmUpEndExpectedRateOfChange' in jsonObject) {
428
+ model.warmUpEndExpectedRateOfChange = function () {
429
+ if (typeof jsonObject['warmUpEndExpectedRateOfChange'] !== 'number') {
430
+ return Number(jsonObject['warmUpEndExpectedRateOfChange']);
431
+ }
432
+
433
+ return jsonObject['warmUpEndExpectedRateOfChange'];
434
+ }();
435
+ }
436
+
293
437
  if ('deleted' in jsonObject) {
294
438
  model.deleted = function () {
295
439
  if (typeof jsonObject['deleted'] !== 'boolean') {
@@ -111,6 +111,14 @@ var SampleModel = /*#__PURE__*/function (_BaseModel) {
111
111
  */
112
112
 
113
113
  _this.scheduledTimestamp = null;
114
+ /**
115
+ * Optional When the Schedule was received from Inspect
116
+ *
117
+ * @type {?Date}
118
+ * @public
119
+ */
120
+
121
+ _this.scheduleReceivedTimestamp = null;
114
122
  /**
115
123
  * When this Sample was Loaded into the Dehydrator
116
124
  *
@@ -199,6 +207,30 @@ var SampleModel = /*#__PURE__*/function (_BaseModel) {
199
207
  */
200
208
 
201
209
  _this.resultId = null;
210
+ /**
211
+ * Optional the BlindedSampleID Reference defined in RadfordsInspect
212
+ *
213
+ * @type {?string}
214
+ * @public
215
+ */
216
+
217
+ _this.blindedSampleID = null;
218
+ /**
219
+ * Optional the Sample Short Description defined in RadfordsInspect
220
+ *
221
+ * @type {?string}
222
+ * @public
223
+ */
224
+
225
+ _this.shortDescription = null;
226
+ /**
227
+ * Optional the Sample Description defined in RadfordsInspect
228
+ *
229
+ * @type {?string}
230
+ * @public
231
+ */
232
+
233
+ _this.sampleDescription = null;
202
234
  /**
203
235
  * The Status of this Sample
204
236
  *
@@ -340,6 +372,20 @@ var SampleModel = /*#__PURE__*/function (_BaseModel) {
340
372
  }();
341
373
  }
342
374
 
375
+ if ('scheduleReceivedTimestamp' in jsonObject) {
376
+ model.scheduleReceivedTimestamp = function () {
377
+ if (jsonObject['scheduleReceivedTimestamp'] === null) {
378
+ return null;
379
+ }
380
+
381
+ if (typeof jsonObject['scheduleReceivedTimestamp'] !== 'string') {
382
+ return new Date(String(jsonObject['scheduleReceivedTimestamp']));
383
+ }
384
+
385
+ return new Date(jsonObject['scheduleReceivedTimestamp']);
386
+ }();
387
+ }
388
+
343
389
  if ('loadedTimestamp' in jsonObject) {
344
390
  model.loadedTimestamp = function () {
345
391
  if (jsonObject['loadedTimestamp'] === null) {
@@ -482,6 +528,48 @@ var SampleModel = /*#__PURE__*/function (_BaseModel) {
482
528
  }();
483
529
  }
484
530
 
531
+ if ('blindedSampleID' in jsonObject) {
532
+ model.blindedSampleID = function () {
533
+ if (jsonObject['blindedSampleID'] === null) {
534
+ return null;
535
+ }
536
+
537
+ if (typeof jsonObject['blindedSampleID'] !== 'string') {
538
+ return String(jsonObject['blindedSampleID']);
539
+ }
540
+
541
+ return jsonObject['blindedSampleID'];
542
+ }();
543
+ }
544
+
545
+ if ('shortDescription' in jsonObject) {
546
+ model.shortDescription = function () {
547
+ if (jsonObject['shortDescription'] === null) {
548
+ return null;
549
+ }
550
+
551
+ if (typeof jsonObject['shortDescription'] !== 'string') {
552
+ return String(jsonObject['shortDescription']);
553
+ }
554
+
555
+ return jsonObject['shortDescription'];
556
+ }();
557
+ }
558
+
559
+ if ('sampleDescription' in jsonObject) {
560
+ model.sampleDescription = function () {
561
+ if (jsonObject['sampleDescription'] === null) {
562
+ return null;
563
+ }
564
+
565
+ if (typeof jsonObject['sampleDescription'] !== 'string') {
566
+ return String(jsonObject['sampleDescription']);
567
+ }
568
+
569
+ return jsonObject['sampleDescription'];
570
+ }();
571
+ }
572
+
485
573
  if ('status' in jsonObject) {
486
574
  model.status = function () {
487
575
  if (typeof jsonObject['status'] !== 'string') {
@@ -5,5 +5,5 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = void 0;
7
7
  // Generated by genversion.
8
- var version = '2.5.15';
8
+ var version = '2.5.18';
9
9
  exports.version = version;