@ricado/api-client 2.3.28 → 2.4.0
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/DehydratorController.js +198 -0
- package/lib/Controllers/Lab/Site/FruitProfileController.js +204 -0
- package/lib/Controllers/Lab/Site/LabController.js +222 -0
- package/lib/Controllers/Lab/Site/RackController.js +222 -0
- package/lib/Controllers/Lab/Site/RackPositionController.js +207 -0
- package/lib/Controllers/Lab/Site/SampleController.js +927 -0
- package/lib/Controllers/Lab/Site/SampleFailureReasonController.js +192 -0
- package/lib/Controllers/Lab/Site/SampleResultController.js +905 -0
- package/lib/Controllers/Lab/Site/index.js +46 -0
- package/lib/Controllers/Lab/index.js +25 -0
- package/lib/Controllers/Packhouse/Site/ShiftController.js +304 -0
- package/lib/Controllers/index.js +9 -6
- package/lib/Models/Lab/Site/DehydratorModel.js +250 -0
- package/lib/Models/Lab/Site/FruitProfileModel.js +303 -0
- package/lib/Models/Lab/Site/LabModel.js +365 -0
- package/lib/Models/Lab/Site/RackModel.js +358 -0
- package/lib/Models/Lab/Site/RackPositionModel.js +525 -0
- package/lib/Models/Lab/Site/SampleFailureReasonModel.js +195 -0
- package/lib/Models/Lab/Site/SampleModel.js +545 -0
- package/lib/Models/Lab/Site/SampleResultModel.js +545 -0
- package/lib/Models/Lab/Site/index.js +46 -0
- package/lib/Models/Lab/index.js +25 -0
- package/lib/Models/index.js +7 -4
- package/lib/PackageVersion.js +1 -1
- package/lib/index.d.ts +10348 -7537
- package/package.json +1 -1
- package/src/Controllers/Lab/Site/DehydratorController.js +175 -0
- package/src/Controllers/Lab/Site/FruitProfileController.js +181 -0
- package/src/Controllers/Lab/Site/LabController.js +199 -0
- package/src/Controllers/Lab/Site/RackController.js +199 -0
- package/src/Controllers/Lab/Site/RackPositionController.js +184 -0
- package/src/Controllers/Lab/Site/SampleController.js +1067 -0
- package/src/Controllers/Lab/Site/SampleFailureReasonController.js +169 -0
- package/src/Controllers/Lab/Site/SampleResultController.js +1036 -0
- package/src/Controllers/Lab/Site/index.js +30 -0
- package/src/Controllers/Lab/index.js +16 -0
- package/src/Controllers/Packhouse/Site/ShiftController.js +367 -0
- package/src/Controllers/index.js +2 -0
- package/src/Models/Lab/Site/DehydratorModel.js +234 -0
- package/src/Models/Lab/Site/FruitProfileModel.js +290 -0
- package/src/Models/Lab/Site/LabModel.js +372 -0
- package/src/Models/Lab/Site/RackModel.js +358 -0
- package/src/Models/Lab/Site/RackPositionModel.js +600 -0
- package/src/Models/Lab/Site/SampleFailureReasonModel.js +170 -0
- package/src/Models/Lab/Site/SampleModel.js +565 -0
- package/src/Models/Lab/Site/SampleResultModel.js +565 -0
- package/src/Models/Lab/Site/index.js +30 -0
- package/src/Models/Lab/index.js +16 -0
- package/src/Models/index.js +2 -0
- package/src/PackageVersion.js +1 -1
|
@@ -0,0 +1,545 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _BaseModel2 = _interopRequireDefault(require("../../../Models/BaseModel"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
|
|
12
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
13
|
+
|
|
14
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15
|
+
|
|
16
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
17
|
+
|
|
18
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
19
|
+
|
|
20
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
21
|
+
|
|
22
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
23
|
+
|
|
24
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
25
|
+
|
|
26
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
27
|
+
|
|
28
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
29
|
+
|
|
30
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
31
|
+
|
|
32
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Model Class for a Sample Results
|
|
36
|
+
*
|
|
37
|
+
* @class
|
|
38
|
+
* @hideconstructor
|
|
39
|
+
* @extends BaseModel
|
|
40
|
+
*/
|
|
41
|
+
var SampleResultModel = /*#__PURE__*/function (_BaseModel) {
|
|
42
|
+
_inherits(SampleResultModel, _BaseModel);
|
|
43
|
+
|
|
44
|
+
var _super = _createSuper(SampleResultModel);
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* SampleResultModel Constructor
|
|
48
|
+
*
|
|
49
|
+
* @protected
|
|
50
|
+
* @param {number} siteId The Site ID associated with this Sample Results
|
|
51
|
+
*/
|
|
52
|
+
function SampleResultModel(siteId) {
|
|
53
|
+
var _this;
|
|
54
|
+
|
|
55
|
+
_classCallCheck(this, SampleResultModel);
|
|
56
|
+
|
|
57
|
+
_this = _super.call(this);
|
|
58
|
+
/**
|
|
59
|
+
* The Sample Results ID
|
|
60
|
+
*
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @public
|
|
63
|
+
*/
|
|
64
|
+
|
|
65
|
+
_this.id = "";
|
|
66
|
+
/**
|
|
67
|
+
* The Lab ID this Sample Result is associated with
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @public
|
|
71
|
+
*/
|
|
72
|
+
|
|
73
|
+
_this.labId = "";
|
|
74
|
+
/**
|
|
75
|
+
* The Sample ID this Sample Result is associated with
|
|
76
|
+
*
|
|
77
|
+
* @type {string}
|
|
78
|
+
* @public
|
|
79
|
+
*/
|
|
80
|
+
|
|
81
|
+
_this.sampleId = "";
|
|
82
|
+
/**
|
|
83
|
+
* When this Sample Result was Created
|
|
84
|
+
*
|
|
85
|
+
* @type {Date}
|
|
86
|
+
* @public
|
|
87
|
+
*/
|
|
88
|
+
|
|
89
|
+
_this.createdTimestamp = new Date();
|
|
90
|
+
/**
|
|
91
|
+
* The Total Duration (in seconds) of the Sample
|
|
92
|
+
*
|
|
93
|
+
* @type {number}
|
|
94
|
+
* @public
|
|
95
|
+
*/
|
|
96
|
+
|
|
97
|
+
_this.totalDuration = 0;
|
|
98
|
+
/**
|
|
99
|
+
* The Warm Up Duration (in seconds) of the Sample
|
|
100
|
+
*
|
|
101
|
+
* @type {number}
|
|
102
|
+
* @public
|
|
103
|
+
*/
|
|
104
|
+
|
|
105
|
+
_this.warmUpDuration = 0;
|
|
106
|
+
/**
|
|
107
|
+
* Timestamp of when the Warm Up process was Completed - `null` if not Completed
|
|
108
|
+
*
|
|
109
|
+
* @type {?Date}
|
|
110
|
+
* @public
|
|
111
|
+
*/
|
|
112
|
+
|
|
113
|
+
_this.warmUpCompletedTimestamp = null;
|
|
114
|
+
/**
|
|
115
|
+
* The Below Temperature Target Duration (in seconds) of the Sample
|
|
116
|
+
*
|
|
117
|
+
* @type {number}
|
|
118
|
+
* @public
|
|
119
|
+
*/
|
|
120
|
+
|
|
121
|
+
_this.belowTargetDuration = 0;
|
|
122
|
+
/**
|
|
123
|
+
* The Above Temperature Target Duration (in seconds) of the Sample
|
|
124
|
+
*
|
|
125
|
+
* @type {number}
|
|
126
|
+
* @public
|
|
127
|
+
*/
|
|
128
|
+
|
|
129
|
+
_this.aboveTargetDuration = 0;
|
|
130
|
+
/**
|
|
131
|
+
* The Within Temperature Target Duration (in seconds) of the Sample
|
|
132
|
+
*
|
|
133
|
+
* @type {number}
|
|
134
|
+
* @public
|
|
135
|
+
*/
|
|
136
|
+
|
|
137
|
+
_this.withinTargetDuration = 0;
|
|
138
|
+
/**
|
|
139
|
+
* Timestamp of when the Success Criteria was Met for the Sample - `null` if not Met
|
|
140
|
+
*
|
|
141
|
+
* @type {?Date}
|
|
142
|
+
* @public
|
|
143
|
+
*/
|
|
144
|
+
|
|
145
|
+
_this.successCriteriaMetTimestamp = null;
|
|
146
|
+
/**
|
|
147
|
+
* Timestamp of when the Failure Criteria was Met for the Sample - `null` if not Met
|
|
148
|
+
*
|
|
149
|
+
* @type {?Date}
|
|
150
|
+
* @public
|
|
151
|
+
*/
|
|
152
|
+
|
|
153
|
+
_this.failureCriteriaMetTimestamp = null;
|
|
154
|
+
/**
|
|
155
|
+
* The Average Temperature for the Total Duration of the Sample
|
|
156
|
+
*
|
|
157
|
+
* @type {?number}
|
|
158
|
+
* @public
|
|
159
|
+
*/
|
|
160
|
+
|
|
161
|
+
_this.totalAverageTemperature = null;
|
|
162
|
+
/**
|
|
163
|
+
* The Minimum Temperature seen Below the Temperature Target for the Sample
|
|
164
|
+
*
|
|
165
|
+
* @type {?number}
|
|
166
|
+
* @public
|
|
167
|
+
*/
|
|
168
|
+
|
|
169
|
+
_this.belowTargetMinimumTemperature = null;
|
|
170
|
+
/**
|
|
171
|
+
* The Average Temperature seen Below the Temperature Target for the Sample
|
|
172
|
+
*
|
|
173
|
+
* @type {?number}
|
|
174
|
+
* @public
|
|
175
|
+
*/
|
|
176
|
+
|
|
177
|
+
_this.belowTargetAverageTemperature = null;
|
|
178
|
+
/**
|
|
179
|
+
* The Maximum Temperature seen Above the Temperature Target for the Sample
|
|
180
|
+
*
|
|
181
|
+
* @type {?number}
|
|
182
|
+
* @public
|
|
183
|
+
*/
|
|
184
|
+
|
|
185
|
+
_this.aboveTargetMaximumTemperature = null;
|
|
186
|
+
/**
|
|
187
|
+
* The Average Temperature seen Above the Temperature Target for the Sample
|
|
188
|
+
*
|
|
189
|
+
* @type {?number}
|
|
190
|
+
* @public
|
|
191
|
+
*/
|
|
192
|
+
|
|
193
|
+
_this.aboveTargetAverageTemperature = null;
|
|
194
|
+
/**
|
|
195
|
+
* The Minimum Temperature seen Within the Temperature Target for the Sample
|
|
196
|
+
*
|
|
197
|
+
* @type {?number}
|
|
198
|
+
* @public
|
|
199
|
+
*/
|
|
200
|
+
|
|
201
|
+
_this.withinTargetMinimumTemperature = null;
|
|
202
|
+
/**
|
|
203
|
+
* The Maximum Temperature seen Within the Temperature Target for the Sample
|
|
204
|
+
*
|
|
205
|
+
* @type {?number}
|
|
206
|
+
* @public
|
|
207
|
+
*/
|
|
208
|
+
|
|
209
|
+
_this.withinTargetMaximumTemperature = null;
|
|
210
|
+
/**
|
|
211
|
+
* The Average Temperature seen Within the Temperature Target for the Sample
|
|
212
|
+
*
|
|
213
|
+
* @type {?number}
|
|
214
|
+
* @public
|
|
215
|
+
*/
|
|
216
|
+
|
|
217
|
+
_this.withinTargetAverageTemperature = null;
|
|
218
|
+
/**
|
|
219
|
+
* Whether the Sample Results has been deleted
|
|
220
|
+
*
|
|
221
|
+
* @type {boolean}
|
|
222
|
+
* @public
|
|
223
|
+
*/
|
|
224
|
+
|
|
225
|
+
_this.deleted = false;
|
|
226
|
+
/**
|
|
227
|
+
* When the Sample Results was last updated
|
|
228
|
+
*
|
|
229
|
+
* @type {Date}
|
|
230
|
+
* @public
|
|
231
|
+
*/
|
|
232
|
+
|
|
233
|
+
_this.updateTimestamp = new Date();
|
|
234
|
+
/**
|
|
235
|
+
* The Site ID associated with this Sample Results
|
|
236
|
+
*
|
|
237
|
+
* @type {number}
|
|
238
|
+
* @public
|
|
239
|
+
*/
|
|
240
|
+
|
|
241
|
+
_this.siteId = siteId;
|
|
242
|
+
return _this;
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Create a new **SampleResultModel** from a JSON Object or JSON String
|
|
246
|
+
*
|
|
247
|
+
* @static
|
|
248
|
+
* @public
|
|
249
|
+
* @param {Object<string, any>|string} json A JSON Object or JSON String
|
|
250
|
+
* @param {number} siteId The Site ID associated with this Sample Results
|
|
251
|
+
* @return {SampleResultModel}
|
|
252
|
+
*/
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
_createClass(SampleResultModel, null, [{
|
|
256
|
+
key: "fromJSON",
|
|
257
|
+
value: function fromJSON(json, siteId) {
|
|
258
|
+
var model = new SampleResultModel(siteId);
|
|
259
|
+
/**
|
|
260
|
+
* The JSON Object
|
|
261
|
+
*
|
|
262
|
+
* @type {Object<string, any>}
|
|
263
|
+
*/
|
|
264
|
+
|
|
265
|
+
var jsonObject = {};
|
|
266
|
+
|
|
267
|
+
if (typeof json === 'string') {
|
|
268
|
+
jsonObject = JSON.parse(json);
|
|
269
|
+
} else if (_typeof(json) === 'object') {
|
|
270
|
+
jsonObject = json;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
if ('id' in jsonObject) {
|
|
274
|
+
model.id = function () {
|
|
275
|
+
if (typeof jsonObject['id'] !== 'string') {
|
|
276
|
+
return String(jsonObject['id']);
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
return jsonObject['id'];
|
|
280
|
+
}();
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
if ('labId' in jsonObject) {
|
|
284
|
+
model.labId = function () {
|
|
285
|
+
if (typeof jsonObject['labId'] !== 'string') {
|
|
286
|
+
return String(jsonObject['labId']);
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
return jsonObject['labId'];
|
|
290
|
+
}();
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
if ('sampleId' in jsonObject) {
|
|
294
|
+
model.sampleId = function () {
|
|
295
|
+
if (typeof jsonObject['sampleId'] !== 'string') {
|
|
296
|
+
return String(jsonObject['sampleId']);
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
return jsonObject['sampleId'];
|
|
300
|
+
}();
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
if ('createdTimestamp' in jsonObject) {
|
|
304
|
+
model.createdTimestamp = function () {
|
|
305
|
+
if (typeof jsonObject['createdTimestamp'] !== 'string') {
|
|
306
|
+
return new Date(String(jsonObject['createdTimestamp']));
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
return new Date(jsonObject['createdTimestamp']);
|
|
310
|
+
}();
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
if ('totalDuration' in jsonObject) {
|
|
314
|
+
model.totalDuration = function () {
|
|
315
|
+
if (typeof jsonObject['totalDuration'] !== 'number') {
|
|
316
|
+
return Number.isInteger(Number(jsonObject['totalDuration'])) ? Number(jsonObject['totalDuration']) : Math.floor(Number(jsonObject['totalDuration']));
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
return Number.isInteger(jsonObject['totalDuration']) ? jsonObject['totalDuration'] : Math.floor(jsonObject['totalDuration']);
|
|
320
|
+
}();
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
if ('warmUpDuration' in jsonObject) {
|
|
324
|
+
model.warmUpDuration = function () {
|
|
325
|
+
if (typeof jsonObject['warmUpDuration'] !== 'number') {
|
|
326
|
+
return Number.isInteger(Number(jsonObject['warmUpDuration'])) ? Number(jsonObject['warmUpDuration']) : Math.floor(Number(jsonObject['warmUpDuration']));
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
return Number.isInteger(jsonObject['warmUpDuration']) ? jsonObject['warmUpDuration'] : Math.floor(jsonObject['warmUpDuration']);
|
|
330
|
+
}();
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
if ('warmUpCompletedTimestamp' in jsonObject) {
|
|
334
|
+
model.warmUpCompletedTimestamp = function () {
|
|
335
|
+
if (jsonObject['warmUpCompletedTimestamp'] === null) {
|
|
336
|
+
return null;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
if (typeof jsonObject['warmUpCompletedTimestamp'] !== 'string') {
|
|
340
|
+
return new Date(String(jsonObject['warmUpCompletedTimestamp']));
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
return new Date(jsonObject['warmUpCompletedTimestamp']);
|
|
344
|
+
}();
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
if ('belowTargetDuration' in jsonObject) {
|
|
348
|
+
model.belowTargetDuration = function () {
|
|
349
|
+
if (typeof jsonObject['belowTargetDuration'] !== 'number') {
|
|
350
|
+
return Number.isInteger(Number(jsonObject['belowTargetDuration'])) ? Number(jsonObject['belowTargetDuration']) : Math.floor(Number(jsonObject['belowTargetDuration']));
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
return Number.isInteger(jsonObject['belowTargetDuration']) ? jsonObject['belowTargetDuration'] : Math.floor(jsonObject['belowTargetDuration']);
|
|
354
|
+
}();
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
if ('aboveTargetDuration' in jsonObject) {
|
|
358
|
+
model.aboveTargetDuration = function () {
|
|
359
|
+
if (typeof jsonObject['aboveTargetDuration'] !== 'number') {
|
|
360
|
+
return Number.isInteger(Number(jsonObject['aboveTargetDuration'])) ? Number(jsonObject['aboveTargetDuration']) : Math.floor(Number(jsonObject['aboveTargetDuration']));
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
return Number.isInteger(jsonObject['aboveTargetDuration']) ? jsonObject['aboveTargetDuration'] : Math.floor(jsonObject['aboveTargetDuration']);
|
|
364
|
+
}();
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
if ('withinTargetDuration' in jsonObject) {
|
|
368
|
+
model.withinTargetDuration = function () {
|
|
369
|
+
if (typeof jsonObject['withinTargetDuration'] !== 'number') {
|
|
370
|
+
return Number.isInteger(Number(jsonObject['withinTargetDuration'])) ? Number(jsonObject['withinTargetDuration']) : Math.floor(Number(jsonObject['withinTargetDuration']));
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
return Number.isInteger(jsonObject['withinTargetDuration']) ? jsonObject['withinTargetDuration'] : Math.floor(jsonObject['withinTargetDuration']);
|
|
374
|
+
}();
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
if ('successCriteriaMetTimestamp' in jsonObject) {
|
|
378
|
+
model.successCriteriaMetTimestamp = function () {
|
|
379
|
+
if (jsonObject['successCriteriaMetTimestamp'] === null) {
|
|
380
|
+
return null;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
if (typeof jsonObject['successCriteriaMetTimestamp'] !== 'string') {
|
|
384
|
+
return new Date(String(jsonObject['successCriteriaMetTimestamp']));
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
return new Date(jsonObject['successCriteriaMetTimestamp']);
|
|
388
|
+
}();
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
if ('failureCriteriaMetTimestamp' in jsonObject) {
|
|
392
|
+
model.failureCriteriaMetTimestamp = function () {
|
|
393
|
+
if (jsonObject['failureCriteriaMetTimestamp'] === null) {
|
|
394
|
+
return null;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
if (typeof jsonObject['failureCriteriaMetTimestamp'] !== 'string') {
|
|
398
|
+
return new Date(String(jsonObject['failureCriteriaMetTimestamp']));
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
return new Date(jsonObject['failureCriteriaMetTimestamp']);
|
|
402
|
+
}();
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
if ('totalAverageTemperature' in jsonObject) {
|
|
406
|
+
model.totalAverageTemperature = function () {
|
|
407
|
+
if (jsonObject['totalAverageTemperature'] === null) {
|
|
408
|
+
return null;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
if (typeof jsonObject['totalAverageTemperature'] !== 'number') {
|
|
412
|
+
return Number(jsonObject['totalAverageTemperature']);
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
return jsonObject['totalAverageTemperature'];
|
|
416
|
+
}();
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
if ('belowTargetMinimumTemperature' in jsonObject) {
|
|
420
|
+
model.belowTargetMinimumTemperature = function () {
|
|
421
|
+
if (jsonObject['belowTargetMinimumTemperature'] === null) {
|
|
422
|
+
return null;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
if (typeof jsonObject['belowTargetMinimumTemperature'] !== 'number') {
|
|
426
|
+
return Number(jsonObject['belowTargetMinimumTemperature']);
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
return jsonObject['belowTargetMinimumTemperature'];
|
|
430
|
+
}();
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
if ('belowTargetAverageTemperature' in jsonObject) {
|
|
434
|
+
model.belowTargetAverageTemperature = function () {
|
|
435
|
+
if (jsonObject['belowTargetAverageTemperature'] === null) {
|
|
436
|
+
return null;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
if (typeof jsonObject['belowTargetAverageTemperature'] !== 'number') {
|
|
440
|
+
return Number(jsonObject['belowTargetAverageTemperature']);
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
return jsonObject['belowTargetAverageTemperature'];
|
|
444
|
+
}();
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
if ('aboveTargetMaximumTemperature' in jsonObject) {
|
|
448
|
+
model.aboveTargetMaximumTemperature = function () {
|
|
449
|
+
if (jsonObject['aboveTargetMaximumTemperature'] === null) {
|
|
450
|
+
return null;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
if (typeof jsonObject['aboveTargetMaximumTemperature'] !== 'number') {
|
|
454
|
+
return Number(jsonObject['aboveTargetMaximumTemperature']);
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
return jsonObject['aboveTargetMaximumTemperature'];
|
|
458
|
+
}();
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
if ('aboveTargetAverageTemperature' in jsonObject) {
|
|
462
|
+
model.aboveTargetAverageTemperature = function () {
|
|
463
|
+
if (jsonObject['aboveTargetAverageTemperature'] === null) {
|
|
464
|
+
return null;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
if (typeof jsonObject['aboveTargetAverageTemperature'] !== 'number') {
|
|
468
|
+
return Number(jsonObject['aboveTargetAverageTemperature']);
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
return jsonObject['aboveTargetAverageTemperature'];
|
|
472
|
+
}();
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
if ('withinTargetMinimumTemperature' in jsonObject) {
|
|
476
|
+
model.withinTargetMinimumTemperature = function () {
|
|
477
|
+
if (jsonObject['withinTargetMinimumTemperature'] === null) {
|
|
478
|
+
return null;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
if (typeof jsonObject['withinTargetMinimumTemperature'] !== 'number') {
|
|
482
|
+
return Number(jsonObject['withinTargetMinimumTemperature']);
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
return jsonObject['withinTargetMinimumTemperature'];
|
|
486
|
+
}();
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
if ('withinTargetMaximumTemperature' in jsonObject) {
|
|
490
|
+
model.withinTargetMaximumTemperature = function () {
|
|
491
|
+
if (jsonObject['withinTargetMaximumTemperature'] === null) {
|
|
492
|
+
return null;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
if (typeof jsonObject['withinTargetMaximumTemperature'] !== 'number') {
|
|
496
|
+
return Number(jsonObject['withinTargetMaximumTemperature']);
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
return jsonObject['withinTargetMaximumTemperature'];
|
|
500
|
+
}();
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
if ('withinTargetAverageTemperature' in jsonObject) {
|
|
504
|
+
model.withinTargetAverageTemperature = function () {
|
|
505
|
+
if (jsonObject['withinTargetAverageTemperature'] === null) {
|
|
506
|
+
return null;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
if (typeof jsonObject['withinTargetAverageTemperature'] !== 'number') {
|
|
510
|
+
return Number(jsonObject['withinTargetAverageTemperature']);
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
return jsonObject['withinTargetAverageTemperature'];
|
|
514
|
+
}();
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
if ('deleted' in jsonObject) {
|
|
518
|
+
model.deleted = function () {
|
|
519
|
+
if (typeof jsonObject['deleted'] !== 'boolean') {
|
|
520
|
+
return Boolean(jsonObject['deleted']);
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
return jsonObject['deleted'];
|
|
524
|
+
}();
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
if ('updateTimestamp' in jsonObject) {
|
|
528
|
+
model.updateTimestamp = function () {
|
|
529
|
+
if (typeof jsonObject['updateTimestamp'] !== 'string') {
|
|
530
|
+
return new Date(String(jsonObject['updateTimestamp']));
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
return new Date(jsonObject['updateTimestamp']);
|
|
534
|
+
}();
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
return model;
|
|
538
|
+
}
|
|
539
|
+
}]);
|
|
540
|
+
|
|
541
|
+
return SampleResultModel;
|
|
542
|
+
}(_BaseModel2.default);
|
|
543
|
+
|
|
544
|
+
var _default = SampleResultModel;
|
|
545
|
+
exports.default = _default;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _DehydratorModel = _interopRequireDefault(require("./DehydratorModel"));
|
|
9
|
+
|
|
10
|
+
var _FruitProfileModel = _interopRequireDefault(require("./FruitProfileModel"));
|
|
11
|
+
|
|
12
|
+
var _LabModel = _interopRequireDefault(require("./LabModel"));
|
|
13
|
+
|
|
14
|
+
var _RackModel = _interopRequireDefault(require("./RackModel"));
|
|
15
|
+
|
|
16
|
+
var _RackPositionModel = _interopRequireDefault(require("./RackPositionModel"));
|
|
17
|
+
|
|
18
|
+
var _SampleFailureReasonModel = _interopRequireDefault(require("./SampleFailureReasonModel"));
|
|
19
|
+
|
|
20
|
+
var _SampleModel = _interopRequireDefault(require("./SampleModel"));
|
|
21
|
+
|
|
22
|
+
var _SampleResultModel = _interopRequireDefault(require("./SampleResultModel"));
|
|
23
|
+
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* File Auto-Generated by the RICADO Gen 4 PHP API Project
|
|
28
|
+
*
|
|
29
|
+
* Do Not Edit this File Manually!
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* @namespace Models.Lab.Site
|
|
34
|
+
*/
|
|
35
|
+
var Site = {
|
|
36
|
+
DehydratorModel: _DehydratorModel.default,
|
|
37
|
+
FruitProfileModel: _FruitProfileModel.default,
|
|
38
|
+
LabModel: _LabModel.default,
|
|
39
|
+
RackModel: _RackModel.default,
|
|
40
|
+
RackPositionModel: _RackPositionModel.default,
|
|
41
|
+
SampleFailureReasonModel: _SampleFailureReasonModel.default,
|
|
42
|
+
SampleModel: _SampleModel.default,
|
|
43
|
+
SampleResultModel: _SampleResultModel.default
|
|
44
|
+
};
|
|
45
|
+
var _default = Site;
|
|
46
|
+
exports.default = _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _index = _interopRequireDefault(require("./Site/index"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* File Auto-Generated by the RICADO Gen 4 PHP API Project
|
|
14
|
+
*
|
|
15
|
+
* Do Not Edit this File Manually!
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @namespace Models.Lab
|
|
20
|
+
*/
|
|
21
|
+
var Lab = {
|
|
22
|
+
Site: _index.default
|
|
23
|
+
};
|
|
24
|
+
var _default = Lab;
|
|
25
|
+
exports.default = _default;
|
package/lib/Models/index.js
CHANGED
|
@@ -27,9 +27,11 @@ var _UserAccountActionTokenModel = _interopRequireDefault(require("./UserAccount
|
|
|
27
27
|
|
|
28
28
|
var _UserAccountModel = _interopRequireDefault(require("./UserAccountModel"));
|
|
29
29
|
|
|
30
|
-
var _index = _interopRequireDefault(require("./
|
|
30
|
+
var _index = _interopRequireDefault(require("./Lab/index"));
|
|
31
31
|
|
|
32
|
-
var _index2 = _interopRequireDefault(require("./
|
|
32
|
+
var _index2 = _interopRequireDefault(require("./Packhouse/index"));
|
|
33
|
+
|
|
34
|
+
var _index3 = _interopRequireDefault(require("./Site/index"));
|
|
33
35
|
|
|
34
36
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
35
37
|
|
|
@@ -54,8 +56,9 @@ var Models = {
|
|
|
54
56
|
TokenModel: _TokenModel.default,
|
|
55
57
|
UserAccountActionTokenModel: _UserAccountActionTokenModel.default,
|
|
56
58
|
UserAccountModel: _UserAccountModel.default,
|
|
57
|
-
|
|
58
|
-
|
|
59
|
+
Lab: _index.default,
|
|
60
|
+
Packhouse: _index2.default,
|
|
61
|
+
Site: _index3.default
|
|
59
62
|
};
|
|
60
63
|
var _default = Models;
|
|
61
64
|
exports.default = _default;
|
package/lib/PackageVersion.js
CHANGED