@ricado/api-client 2.5.0 → 2.5.2

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.
@@ -213,9 +213,12 @@ var _default = LabController;
213
213
  * A **InspectIntegration** Type
214
214
  *
215
215
  * @typedef {Object} LabController.InspectIntegration
216
- * @property {Object} points The Points used for this Inspect Integration
216
+ * @property {{sqlServerCommunicationStatus: number, sampleCreationEnabled: number, sampleSchedulingEnabled: number, samplePublishingEnabled: number, samplePublishingFilter: number}} points The Points used for this Inspect Integration
217
217
  * @property {boolean} enabled Whether the Inspect Integration is Enabled on this Lab
218
- * @property {string} apiBaseUrl Base URL of the Inspect API
218
+ * @property {string} labName Name of the Lab referenced by Inspect
219
+ * @property {string} sqlServerHost Host of the Inspect SQL Server
220
+ * @property {string} sqlServerUsername Username for Authentication with the Inspect SQL Server
221
+ * @property {string} sqlServerPassword Password for Authentication with the Inspect SQL Server
219
222
  * @memberof Controllers.Lab.Site
220
223
  */
221
224
 
@@ -183,7 +183,7 @@ var _default = RackPositionController;
183
183
  * @typedef {Object} RackPositionController.CreateData
184
184
  * @property {?number} [rtuId] The RTU this Rack Position belongs to
185
185
  * @property {string} name The Name of this Rack Position
186
- * @property {{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}} points The Points used by this Rack Position
186
+ * @property {{pushButton: number, indicatorLight: number, temperature: number, calibrationOffset: number, disabled: number, currentSampleId: number, currentAdditionalSampleIds: number, currentSampleStatus: number, nextSampleId: number, nextAdditionalSampleIds: 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}} points The Points used by this Rack Position
187
187
  * @property {string} labId The Lab that owns this Rack Position
188
188
  * @property {string} rackId The Rack associated with this Rack Position
189
189
  * @property {number} verticalLevelIndex The Index of the Vertical Level in the Rack where this Position resides
@@ -196,7 +196,7 @@ var _default = RackPositionController;
196
196
  *
197
197
  * @typedef {Object} RackPositionController.UpdateData
198
198
  * @property {string} [name] The Name of this Rack Position
199
- * @property {{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}} [points] The Points used by this Rack Position
199
+ * @property {{pushButton: number, indicatorLight: number, temperature: number, calibrationOffset: number, disabled: number, currentSampleId: number, currentAdditionalSampleIds: number, currentSampleStatus: number, nextSampleId: number, nextAdditionalSampleIds: 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}} [points] The Points used by this Rack Position
200
200
  * @property {string} [labId] The Lab that owns this Rack Position
201
201
  * @property {string} [rackId] The Rack associated with this Rack Position
202
202
  * @property {number} [verticalLevelIndex] The Index of the Vertical Level in the Rack where this Position resides
@@ -114,7 +114,7 @@ var LabModel = /*#__PURE__*/function (_BaseModel) {
114
114
  /**
115
115
  * The Inspect Integration Configuration for this Lab
116
116
  *
117
- * @type {?{points: Object, enabled: boolean, apiBaseUrl: string}}
117
+ * @type {?{points: {sqlServerCommunicationStatus: number, sampleCreationEnabled: number, sampleSchedulingEnabled: number, samplePublishingEnabled: number, samplePublishingFilter: number}, enabled: boolean, labName: string, sqlServerHost: string, sqlServerUsername: string, sqlServerPassword: string}}
118
118
  * @public
119
119
  */
120
120
 
@@ -296,14 +296,80 @@ var LabModel = /*#__PURE__*/function (_BaseModel) {
296
296
 
297
297
  if (_typeof(jsonObject['inspectIntegration']) === 'object' && 'points' in jsonObject['inspectIntegration']) {
298
298
  inspectIntegrationObject.points = function () {
299
- if (_typeof(jsonObject['inspectIntegration'].points) !== 'object') {
300
- return Object(jsonObject['inspectIntegration'].points);
299
+ var pointsObject = {};
300
+
301
+ if (_typeof(jsonObject['inspectIntegration'].points) === 'object' && 'sqlServerCommunicationStatus' in jsonObject['inspectIntegration'].points) {
302
+ pointsObject.sqlServerCommunicationStatus = function () {
303
+ if (typeof jsonObject['inspectIntegration'].points.sqlServerCommunicationStatus !== 'number') {
304
+ return Number.isInteger(Number(jsonObject['inspectIntegration'].points.sqlServerCommunicationStatus)) ? Number(jsonObject['inspectIntegration'].points.sqlServerCommunicationStatus) : Math.floor(Number(jsonObject['inspectIntegration'].points.sqlServerCommunicationStatus));
305
+ }
306
+
307
+ return Number.isInteger(jsonObject['inspectIntegration'].points.sqlServerCommunicationStatus) ? jsonObject['inspectIntegration'].points.sqlServerCommunicationStatus : Math.floor(jsonObject['inspectIntegration'].points.sqlServerCommunicationStatus);
308
+ }();
309
+ } else {
310
+ pointsObject.sqlServerCommunicationStatus = 0;
301
311
  }
302
312
 
303
- return jsonObject['inspectIntegration'].points;
313
+ if (_typeof(jsonObject['inspectIntegration'].points) === 'object' && 'sampleCreationEnabled' in jsonObject['inspectIntegration'].points) {
314
+ pointsObject.sampleCreationEnabled = function () {
315
+ if (typeof jsonObject['inspectIntegration'].points.sampleCreationEnabled !== 'number') {
316
+ return Number.isInteger(Number(jsonObject['inspectIntegration'].points.sampleCreationEnabled)) ? Number(jsonObject['inspectIntegration'].points.sampleCreationEnabled) : Math.floor(Number(jsonObject['inspectIntegration'].points.sampleCreationEnabled));
317
+ }
318
+
319
+ return Number.isInteger(jsonObject['inspectIntegration'].points.sampleCreationEnabled) ? jsonObject['inspectIntegration'].points.sampleCreationEnabled : Math.floor(jsonObject['inspectIntegration'].points.sampleCreationEnabled);
320
+ }();
321
+ } else {
322
+ pointsObject.sampleCreationEnabled = 0;
323
+ }
324
+
325
+ if (_typeof(jsonObject['inspectIntegration'].points) === 'object' && 'sampleSchedulingEnabled' in jsonObject['inspectIntegration'].points) {
326
+ pointsObject.sampleSchedulingEnabled = function () {
327
+ if (typeof jsonObject['inspectIntegration'].points.sampleSchedulingEnabled !== 'number') {
328
+ return Number.isInteger(Number(jsonObject['inspectIntegration'].points.sampleSchedulingEnabled)) ? Number(jsonObject['inspectIntegration'].points.sampleSchedulingEnabled) : Math.floor(Number(jsonObject['inspectIntegration'].points.sampleSchedulingEnabled));
329
+ }
330
+
331
+ return Number.isInteger(jsonObject['inspectIntegration'].points.sampleSchedulingEnabled) ? jsonObject['inspectIntegration'].points.sampleSchedulingEnabled : Math.floor(jsonObject['inspectIntegration'].points.sampleSchedulingEnabled);
332
+ }();
333
+ } else {
334
+ pointsObject.sampleSchedulingEnabled = 0;
335
+ }
336
+
337
+ if (_typeof(jsonObject['inspectIntegration'].points) === 'object' && 'samplePublishingEnabled' in jsonObject['inspectIntegration'].points) {
338
+ pointsObject.samplePublishingEnabled = function () {
339
+ if (typeof jsonObject['inspectIntegration'].points.samplePublishingEnabled !== 'number') {
340
+ return Number.isInteger(Number(jsonObject['inspectIntegration'].points.samplePublishingEnabled)) ? Number(jsonObject['inspectIntegration'].points.samplePublishingEnabled) : Math.floor(Number(jsonObject['inspectIntegration'].points.samplePublishingEnabled));
341
+ }
342
+
343
+ return Number.isInteger(jsonObject['inspectIntegration'].points.samplePublishingEnabled) ? jsonObject['inspectIntegration'].points.samplePublishingEnabled : Math.floor(jsonObject['inspectIntegration'].points.samplePublishingEnabled);
344
+ }();
345
+ } else {
346
+ pointsObject.samplePublishingEnabled = 0;
347
+ }
348
+
349
+ if (_typeof(jsonObject['inspectIntegration'].points) === 'object' && 'samplePublishingFilter' in jsonObject['inspectIntegration'].points) {
350
+ pointsObject.samplePublishingFilter = function () {
351
+ if (typeof jsonObject['inspectIntegration'].points.samplePublishingFilter !== 'number') {
352
+ return Number.isInteger(Number(jsonObject['inspectIntegration'].points.samplePublishingFilter)) ? Number(jsonObject['inspectIntegration'].points.samplePublishingFilter) : Math.floor(Number(jsonObject['inspectIntegration'].points.samplePublishingFilter));
353
+ }
354
+
355
+ return Number.isInteger(jsonObject['inspectIntegration'].points.samplePublishingFilter) ? jsonObject['inspectIntegration'].points.samplePublishingFilter : Math.floor(jsonObject['inspectIntegration'].points.samplePublishingFilter);
356
+ }();
357
+ } else {
358
+ pointsObject.samplePublishingFilter = 0;
359
+ }
360
+
361
+ return pointsObject;
304
362
  }();
305
363
  } else {
306
- inspectIntegrationObject.points = {};
364
+ inspectIntegrationObject.points = function () {
365
+ var pointsDefaultValue = {};
366
+ pointsDefaultValue.sqlServerCommunicationStatus = 0;
367
+ pointsDefaultValue.sampleCreationEnabled = 0;
368
+ pointsDefaultValue.sampleSchedulingEnabled = 0;
369
+ pointsDefaultValue.samplePublishingEnabled = 0;
370
+ pointsDefaultValue.samplePublishingFilter = 0;
371
+ return pointsDefaultValue;
372
+ }();
307
373
  }
308
374
 
309
375
  if (_typeof(jsonObject['inspectIntegration']) === 'object' && 'enabled' in jsonObject['inspectIntegration']) {
@@ -318,16 +384,52 @@ var LabModel = /*#__PURE__*/function (_BaseModel) {
318
384
  inspectIntegrationObject.enabled = false;
319
385
  }
320
386
 
321
- if (_typeof(jsonObject['inspectIntegration']) === 'object' && 'apiBaseUrl' in jsonObject['inspectIntegration']) {
322
- inspectIntegrationObject.apiBaseUrl = function () {
323
- if (typeof jsonObject['inspectIntegration'].apiBaseUrl !== 'string') {
324
- return String(jsonObject['inspectIntegration'].apiBaseUrl);
387
+ if (_typeof(jsonObject['inspectIntegration']) === 'object' && 'labName' in jsonObject['inspectIntegration']) {
388
+ inspectIntegrationObject.labName = function () {
389
+ if (typeof jsonObject['inspectIntegration'].labName !== 'string') {
390
+ return String(jsonObject['inspectIntegration'].labName);
391
+ }
392
+
393
+ return jsonObject['inspectIntegration'].labName;
394
+ }();
395
+ } else {
396
+ inspectIntegrationObject.labName = "";
397
+ }
398
+
399
+ if (_typeof(jsonObject['inspectIntegration']) === 'object' && 'sqlServerHost' in jsonObject['inspectIntegration']) {
400
+ inspectIntegrationObject.sqlServerHost = function () {
401
+ if (typeof jsonObject['inspectIntegration'].sqlServerHost !== 'string') {
402
+ return String(jsonObject['inspectIntegration'].sqlServerHost);
403
+ }
404
+
405
+ return jsonObject['inspectIntegration'].sqlServerHost;
406
+ }();
407
+ } else {
408
+ inspectIntegrationObject.sqlServerHost = "";
409
+ }
410
+
411
+ if (_typeof(jsonObject['inspectIntegration']) === 'object' && 'sqlServerUsername' in jsonObject['inspectIntegration']) {
412
+ inspectIntegrationObject.sqlServerUsername = function () {
413
+ if (typeof jsonObject['inspectIntegration'].sqlServerUsername !== 'string') {
414
+ return String(jsonObject['inspectIntegration'].sqlServerUsername);
415
+ }
416
+
417
+ return jsonObject['inspectIntegration'].sqlServerUsername;
418
+ }();
419
+ } else {
420
+ inspectIntegrationObject.sqlServerUsername = "";
421
+ }
422
+
423
+ if (_typeof(jsonObject['inspectIntegration']) === 'object' && 'sqlServerPassword' in jsonObject['inspectIntegration']) {
424
+ inspectIntegrationObject.sqlServerPassword = function () {
425
+ if (typeof jsonObject['inspectIntegration'].sqlServerPassword !== 'string') {
426
+ return String(jsonObject['inspectIntegration'].sqlServerPassword);
325
427
  }
326
428
 
327
- return jsonObject['inspectIntegration'].apiBaseUrl;
429
+ return jsonObject['inspectIntegration'].sqlServerPassword;
328
430
  }();
329
431
  } else {
330
- inspectIntegrationObject.apiBaseUrl = "";
432
+ inspectIntegrationObject.sqlServerPassword = "";
331
433
  }
332
434
 
333
435
  return inspectIntegrationObject;
@@ -82,7 +82,7 @@ var RackPositionModel = /*#__PURE__*/function (_BaseModel) {
82
82
  /**
83
83
  * The Points used by this Rack Position
84
84
  *
85
- * @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}}
85
+ * @type {{pushButton: number, indicatorLight: number, temperature: number, calibrationOffset: number, disabled: number, currentSampleId: number, currentAdditionalSampleIds: number, currentSampleStatus: number, nextSampleId: number, nextAdditionalSampleIds: 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}}
86
86
  * @public
87
87
  */
88
88
 
@@ -94,8 +94,10 @@ var RackPositionModel = /*#__PURE__*/function (_BaseModel) {
94
94
  pointsDefaultValue.calibrationOffset = 0;
95
95
  pointsDefaultValue.disabled = 0;
96
96
  pointsDefaultValue.currentSampleId = 0;
97
+ pointsDefaultValue.currentAdditionalSampleIds = 0;
97
98
  pointsDefaultValue.currentSampleStatus = 0;
98
99
  pointsDefaultValue.nextSampleId = 0;
100
+ pointsDefaultValue.nextAdditionalSampleIds = 0;
99
101
  pointsDefaultValue.loadCurrentSampleRequest = 0;
100
102
  pointsDefaultValue.startCurrentSampleRequest = 0;
101
103
  pointsDefaultValue.finishCurrentSampleRequest = 0;
@@ -310,6 +312,18 @@ var RackPositionModel = /*#__PURE__*/function (_BaseModel) {
310
312
  pointsObject.currentSampleId = 0;
311
313
  }
312
314
 
315
+ if (_typeof(jsonObject['points']) === 'object' && 'currentAdditionalSampleIds' in jsonObject['points']) {
316
+ pointsObject.currentAdditionalSampleIds = function () {
317
+ if (typeof jsonObject['points'].currentAdditionalSampleIds !== 'number') {
318
+ return Number.isInteger(Number(jsonObject['points'].currentAdditionalSampleIds)) ? Number(jsonObject['points'].currentAdditionalSampleIds) : Math.floor(Number(jsonObject['points'].currentAdditionalSampleIds));
319
+ }
320
+
321
+ return Number.isInteger(jsonObject['points'].currentAdditionalSampleIds) ? jsonObject['points'].currentAdditionalSampleIds : Math.floor(jsonObject['points'].currentAdditionalSampleIds);
322
+ }();
323
+ } else {
324
+ pointsObject.currentAdditionalSampleIds = 0;
325
+ }
326
+
313
327
  if (_typeof(jsonObject['points']) === 'object' && 'currentSampleStatus' in jsonObject['points']) {
314
328
  pointsObject.currentSampleStatus = function () {
315
329
  if (typeof jsonObject['points'].currentSampleStatus !== 'number') {
@@ -334,6 +348,18 @@ var RackPositionModel = /*#__PURE__*/function (_BaseModel) {
334
348
  pointsObject.nextSampleId = 0;
335
349
  }
336
350
 
351
+ if (_typeof(jsonObject['points']) === 'object' && 'nextAdditionalSampleIds' in jsonObject['points']) {
352
+ pointsObject.nextAdditionalSampleIds = function () {
353
+ if (typeof jsonObject['points'].nextAdditionalSampleIds !== 'number') {
354
+ return Number.isInteger(Number(jsonObject['points'].nextAdditionalSampleIds)) ? Number(jsonObject['points'].nextAdditionalSampleIds) : Math.floor(Number(jsonObject['points'].nextAdditionalSampleIds));
355
+ }
356
+
357
+ return Number.isInteger(jsonObject['points'].nextAdditionalSampleIds) ? jsonObject['points'].nextAdditionalSampleIds : Math.floor(jsonObject['points'].nextAdditionalSampleIds);
358
+ }();
359
+ } else {
360
+ pointsObject.nextAdditionalSampleIds = 0;
361
+ }
362
+
337
363
  if (_typeof(jsonObject['points']) === 'object' && 'loadCurrentSampleRequest' in jsonObject['points']) {
338
364
  pointsObject.loadCurrentSampleRequest = function () {
339
365
  if (typeof jsonObject['points'].loadCurrentSampleRequest !== 'number') {
@@ -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.0';
8
+ var version = '2.5.2';
9
9
  exports.version = version;
package/lib/index.d.ts CHANGED
@@ -7132,15 +7132,33 @@ declare module '@ricado/api-client/Controllers/Lab/Site/LabController' {
7132
7132
  /**
7133
7133
  * The Points used for this Inspect Integration
7134
7134
  */
7135
- points: any;
7135
+ points: {
7136
+ sqlServerCommunicationStatus: number;
7137
+ sampleCreationEnabled: number;
7138
+ sampleSchedulingEnabled: number;
7139
+ samplePublishingEnabled: number;
7140
+ samplePublishingFilter: number;
7141
+ };
7136
7142
  /**
7137
7143
  * Whether the Inspect Integration is Enabled on this Lab
7138
7144
  */
7139
7145
  enabled: boolean;
7140
7146
  /**
7141
- * Base URL of the Inspect API
7147
+ * Name of the Lab referenced by Inspect
7142
7148
  */
7143
- apiBaseUrl: string;
7149
+ labName: string;
7150
+ /**
7151
+ * Host of the Inspect SQL Server
7152
+ */
7153
+ sqlServerHost: string;
7154
+ /**
7155
+ * Username for Authentication with the Inspect SQL Server
7156
+ */
7157
+ sqlServerUsername: string;
7158
+ /**
7159
+ * Password for Authentication with the Inspect SQL Server
7160
+ */
7161
+ sqlServerPassword: string;
7144
7162
  };
7145
7163
  }
7146
7164
  import LabModel from "@ricado/api-client/Models/Lab/Site/LabModel";
@@ -7719,8 +7737,10 @@ declare module '@ricado/api-client/Controllers/Lab/Site/RackPositionController'
7719
7737
  calibrationOffset: number;
7720
7738
  disabled: number;
7721
7739
  currentSampleId: number;
7740
+ currentAdditionalSampleIds: number;
7722
7741
  currentSampleStatus: number;
7723
7742
  nextSampleId: number;
7743
+ nextAdditionalSampleIds: number;
7724
7744
  loadCurrentSampleRequest: number;
7725
7745
  startCurrentSampleRequest: number;
7726
7746
  finishCurrentSampleRequest: number;
@@ -7771,8 +7791,10 @@ declare module '@ricado/api-client/Controllers/Lab/Site/RackPositionController'
7771
7791
  calibrationOffset: number;
7772
7792
  disabled: number;
7773
7793
  currentSampleId: number;
7794
+ currentAdditionalSampleIds: number;
7774
7795
  currentSampleStatus: number;
7775
7796
  nextSampleId: number;
7797
+ nextAdditionalSampleIds: number;
7776
7798
  loadCurrentSampleRequest: number;
7777
7799
  startCurrentSampleRequest: number;
7778
7800
  finishCurrentSampleRequest: number;
@@ -22513,13 +22535,22 @@ declare module '@ricado/api-client/Models/Lab/Site/LabModel' {
22513
22535
  /**
22514
22536
  * The Inspect Integration Configuration for this Lab
22515
22537
  *
22516
- * @type {?{points: Object, enabled: boolean, apiBaseUrl: string}}
22538
+ * @type {?{points: {sqlServerCommunicationStatus: number, sampleCreationEnabled: number, sampleSchedulingEnabled: number, samplePublishingEnabled: number, samplePublishingFilter: number}, enabled: boolean, labName: string, sqlServerHost: string, sqlServerUsername: string, sqlServerPassword: string}}
22517
22539
  * @public
22518
22540
  */
22519
22541
  inspectIntegration: {
22520
- points: any;
22542
+ points: {
22543
+ sqlServerCommunicationStatus: number;
22544
+ sampleCreationEnabled: number;
22545
+ sampleSchedulingEnabled: number;
22546
+ samplePublishingEnabled: number;
22547
+ samplePublishingFilter: number;
22548
+ };
22521
22549
  enabled: boolean;
22522
- apiBaseUrl: string;
22550
+ labName: string;
22551
+ sqlServerHost: string;
22552
+ sqlServerUsername: string;
22553
+ sqlServerPassword: string;
22523
22554
  } | null;
22524
22555
  /**
22525
22556
  * Whether the Lab has been deleted
@@ -22839,7 +22870,7 @@ declare module '@ricado/api-client/Models/Lab/Site/RackPositionModel' {
22839
22870
  /**
22840
22871
  * The Points used by this Rack Position
22841
22872
  *
22842
- * @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}}
22873
+ * @type {{pushButton: number, indicatorLight: number, temperature: number, calibrationOffset: number, disabled: number, currentSampleId: number, currentAdditionalSampleIds: number, currentSampleStatus: number, nextSampleId: number, nextAdditionalSampleIds: 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}}
22843
22874
  * @public
22844
22875
  */
22845
22876
  points: {
@@ -22849,8 +22880,10 @@ declare module '@ricado/api-client/Models/Lab/Site/RackPositionModel' {
22849
22880
  calibrationOffset: number;
22850
22881
  disabled: number;
22851
22882
  currentSampleId: number;
22883
+ currentAdditionalSampleIds: number;
22852
22884
  currentSampleStatus: number;
22853
22885
  nextSampleId: number;
22886
+ nextAdditionalSampleIds: number;
22854
22887
  loadCurrentSampleRequest: number;
22855
22888
  startCurrentSampleRequest: number;
22856
22889
  finishCurrentSampleRequest: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ricado/api-client",
3
- "version": "2.5.0",
3
+ "version": "2.5.2",
4
4
  "description": "RICADO Gen 4 API Client Library for NodeJS and Browsers",
5
5
  "author": {
6
6
  "name": "Ash Neilson"
@@ -192,8 +192,11 @@ export default LabController;
192
192
  * A **InspectIntegration** Type
193
193
  *
194
194
  * @typedef {Object} LabController.InspectIntegration
195
- * @property {Object} points The Points used for this Inspect Integration
195
+ * @property {{sqlServerCommunicationStatus: number, sampleCreationEnabled: number, sampleSchedulingEnabled: number, samplePublishingEnabled: number, samplePublishingFilter: number}} points The Points used for this Inspect Integration
196
196
  * @property {boolean} enabled Whether the Inspect Integration is Enabled on this Lab
197
- * @property {string} apiBaseUrl Base URL of the Inspect API
197
+ * @property {string} labName Name of the Lab referenced by Inspect
198
+ * @property {string} sqlServerHost Host of the Inspect SQL Server
199
+ * @property {string} sqlServerUsername Username for Authentication with the Inspect SQL Server
200
+ * @property {string} sqlServerPassword Password for Authentication with the Inspect SQL Server
198
201
  * @memberof Controllers.Lab.Site
199
202
  */
@@ -162,7 +162,7 @@ export default RackPositionController;
162
162
  * @typedef {Object} RackPositionController.CreateData
163
163
  * @property {?number} [rtuId] The RTU this Rack Position belongs to
164
164
  * @property {string} name The Name of this Rack Position
165
- * @property {{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}} points The Points used by this Rack Position
165
+ * @property {{pushButton: number, indicatorLight: number, temperature: number, calibrationOffset: number, disabled: number, currentSampleId: number, currentAdditionalSampleIds: number, currentSampleStatus: number, nextSampleId: number, nextAdditionalSampleIds: 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}} points The Points used by this Rack Position
166
166
  * @property {string} labId The Lab that owns this Rack Position
167
167
  * @property {string} rackId The Rack associated with this Rack Position
168
168
  * @property {number} verticalLevelIndex The Index of the Vertical Level in the Rack where this Position resides
@@ -175,7 +175,7 @@ export default RackPositionController;
175
175
  *
176
176
  * @typedef {Object} RackPositionController.UpdateData
177
177
  * @property {string} [name] The Name of this Rack Position
178
- * @property {{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}} [points] The Points used by this Rack Position
178
+ * @property {{pushButton: number, indicatorLight: number, temperature: number, calibrationOffset: number, disabled: number, currentSampleId: number, currentAdditionalSampleIds: number, currentSampleStatus: number, nextSampleId: number, nextAdditionalSampleIds: 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}} [points] The Points used by this Rack Position
179
179
  * @property {string} [labId] The Lab that owns this Rack Position
180
180
  * @property {string} [rackId] The Rack associated with this Rack Position
181
181
  * @property {number} [verticalLevelIndex] The Index of the Vertical Level in the Rack where this Position resides
@@ -84,7 +84,7 @@ class LabModel extends BaseModel
84
84
  /**
85
85
  * The Inspect Integration Configuration for this Lab
86
86
  *
87
- * @type {?{points: Object, enabled: boolean, apiBaseUrl: string}}
87
+ * @type {?{points: {sqlServerCommunicationStatus: number, sampleCreationEnabled: number, sampleSchedulingEnabled: number, samplePublishingEnabled: number, samplePublishingFilter: number}, enabled: boolean, labName: string, sqlServerHost: string, sqlServerUsername: string, sqlServerPassword: string}}
88
88
  * @public
89
89
  */
90
90
  this.inspectIntegration = null;
@@ -292,17 +292,108 @@ class LabModel extends BaseModel
292
292
  if(typeof jsonObject['inspectIntegration'] === 'object' && 'points' in jsonObject['inspectIntegration'])
293
293
  {
294
294
  inspectIntegrationObject.points = (function(){
295
- if(typeof jsonObject['inspectIntegration'].points !== 'object')
295
+ let pointsObject = {};
296
+
297
+ if(typeof jsonObject['inspectIntegration'].points === 'object' && 'sqlServerCommunicationStatus' in jsonObject['inspectIntegration'].points)
298
+ {
299
+ pointsObject.sqlServerCommunicationStatus = (function(){
300
+ if(typeof jsonObject['inspectIntegration'].points.sqlServerCommunicationStatus !== 'number')
301
+ {
302
+ return Number.isInteger(Number(jsonObject['inspectIntegration'].points.sqlServerCommunicationStatus)) ? Number(jsonObject['inspectIntegration'].points.sqlServerCommunicationStatus) : Math.floor(Number(jsonObject['inspectIntegration'].points.sqlServerCommunicationStatus));
303
+ }
304
+
305
+ return Number.isInteger(jsonObject['inspectIntegration'].points.sqlServerCommunicationStatus) ? jsonObject['inspectIntegration'].points.sqlServerCommunicationStatus : Math.floor(jsonObject['inspectIntegration'].points.sqlServerCommunicationStatus);
306
+ }());
307
+ }
308
+ else
309
+ {
310
+ pointsObject.sqlServerCommunicationStatus = 0;
311
+ }
312
+
313
+ if(typeof jsonObject['inspectIntegration'].points === 'object' && 'sampleCreationEnabled' in jsonObject['inspectIntegration'].points)
314
+ {
315
+ pointsObject.sampleCreationEnabled = (function(){
316
+ if(typeof jsonObject['inspectIntegration'].points.sampleCreationEnabled !== 'number')
317
+ {
318
+ return Number.isInteger(Number(jsonObject['inspectIntegration'].points.sampleCreationEnabled)) ? Number(jsonObject['inspectIntegration'].points.sampleCreationEnabled) : Math.floor(Number(jsonObject['inspectIntegration'].points.sampleCreationEnabled));
319
+ }
320
+
321
+ return Number.isInteger(jsonObject['inspectIntegration'].points.sampleCreationEnabled) ? jsonObject['inspectIntegration'].points.sampleCreationEnabled : Math.floor(jsonObject['inspectIntegration'].points.sampleCreationEnabled);
322
+ }());
323
+ }
324
+ else
325
+ {
326
+ pointsObject.sampleCreationEnabled = 0;
327
+ }
328
+
329
+ if(typeof jsonObject['inspectIntegration'].points === 'object' && 'sampleSchedulingEnabled' in jsonObject['inspectIntegration'].points)
330
+ {
331
+ pointsObject.sampleSchedulingEnabled = (function(){
332
+ if(typeof jsonObject['inspectIntegration'].points.sampleSchedulingEnabled !== 'number')
333
+ {
334
+ return Number.isInteger(Number(jsonObject['inspectIntegration'].points.sampleSchedulingEnabled)) ? Number(jsonObject['inspectIntegration'].points.sampleSchedulingEnabled) : Math.floor(Number(jsonObject['inspectIntegration'].points.sampleSchedulingEnabled));
335
+ }
336
+
337
+ return Number.isInteger(jsonObject['inspectIntegration'].points.sampleSchedulingEnabled) ? jsonObject['inspectIntegration'].points.sampleSchedulingEnabled : Math.floor(jsonObject['inspectIntegration'].points.sampleSchedulingEnabled);
338
+ }());
339
+ }
340
+ else
341
+ {
342
+ pointsObject.sampleSchedulingEnabled = 0;
343
+ }
344
+
345
+ if(typeof jsonObject['inspectIntegration'].points === 'object' && 'samplePublishingEnabled' in jsonObject['inspectIntegration'].points)
346
+ {
347
+ pointsObject.samplePublishingEnabled = (function(){
348
+ if(typeof jsonObject['inspectIntegration'].points.samplePublishingEnabled !== 'number')
349
+ {
350
+ return Number.isInteger(Number(jsonObject['inspectIntegration'].points.samplePublishingEnabled)) ? Number(jsonObject['inspectIntegration'].points.samplePublishingEnabled) : Math.floor(Number(jsonObject['inspectIntegration'].points.samplePublishingEnabled));
351
+ }
352
+
353
+ return Number.isInteger(jsonObject['inspectIntegration'].points.samplePublishingEnabled) ? jsonObject['inspectIntegration'].points.samplePublishingEnabled : Math.floor(jsonObject['inspectIntegration'].points.samplePublishingEnabled);
354
+ }());
355
+ }
356
+ else
357
+ {
358
+ pointsObject.samplePublishingEnabled = 0;
359
+ }
360
+
361
+ if(typeof jsonObject['inspectIntegration'].points === 'object' && 'samplePublishingFilter' in jsonObject['inspectIntegration'].points)
362
+ {
363
+ pointsObject.samplePublishingFilter = (function(){
364
+ if(typeof jsonObject['inspectIntegration'].points.samplePublishingFilter !== 'number')
365
+ {
366
+ return Number.isInteger(Number(jsonObject['inspectIntegration'].points.samplePublishingFilter)) ? Number(jsonObject['inspectIntegration'].points.samplePublishingFilter) : Math.floor(Number(jsonObject['inspectIntegration'].points.samplePublishingFilter));
367
+ }
368
+
369
+ return Number.isInteger(jsonObject['inspectIntegration'].points.samplePublishingFilter) ? jsonObject['inspectIntegration'].points.samplePublishingFilter : Math.floor(jsonObject['inspectIntegration'].points.samplePublishingFilter);
370
+ }());
371
+ }
372
+ else
296
373
  {
297
- return Object(jsonObject['inspectIntegration'].points);
374
+ pointsObject.samplePublishingFilter = 0;
298
375
  }
299
376
 
300
- return jsonObject['inspectIntegration'].points;
377
+ return pointsObject;
301
378
  }());
302
379
  }
303
380
  else
304
381
  {
305
- inspectIntegrationObject.points = {}
382
+ inspectIntegrationObject.points = (function(){
383
+ let pointsDefaultValue = {};
384
+
385
+ pointsDefaultValue.sqlServerCommunicationStatus = 0;
386
+
387
+ pointsDefaultValue.sampleCreationEnabled = 0;
388
+
389
+ pointsDefaultValue.sampleSchedulingEnabled = 0;
390
+
391
+ pointsDefaultValue.samplePublishingEnabled = 0;
392
+
393
+ pointsDefaultValue.samplePublishingFilter = 0;
394
+
395
+ return pointsDefaultValue;
396
+ }());
306
397
  }
307
398
 
308
399
  if(typeof jsonObject['inspectIntegration'] === 'object' && 'enabled' in jsonObject['inspectIntegration'])
@@ -321,20 +412,68 @@ class LabModel extends BaseModel
321
412
  inspectIntegrationObject.enabled = false;
322
413
  }
323
414
 
324
- if(typeof jsonObject['inspectIntegration'] === 'object' && 'apiBaseUrl' in jsonObject['inspectIntegration'])
415
+ if(typeof jsonObject['inspectIntegration'] === 'object' && 'labName' in jsonObject['inspectIntegration'])
416
+ {
417
+ inspectIntegrationObject.labName = (function(){
418
+ if(typeof jsonObject['inspectIntegration'].labName !== 'string')
419
+ {
420
+ return String(jsonObject['inspectIntegration'].labName);
421
+ }
422
+
423
+ return jsonObject['inspectIntegration'].labName;
424
+ }());
425
+ }
426
+ else
427
+ {
428
+ inspectIntegrationObject.labName = "";
429
+ }
430
+
431
+ if(typeof jsonObject['inspectIntegration'] === 'object' && 'sqlServerHost' in jsonObject['inspectIntegration'])
432
+ {
433
+ inspectIntegrationObject.sqlServerHost = (function(){
434
+ if(typeof jsonObject['inspectIntegration'].sqlServerHost !== 'string')
435
+ {
436
+ return String(jsonObject['inspectIntegration'].sqlServerHost);
437
+ }
438
+
439
+ return jsonObject['inspectIntegration'].sqlServerHost;
440
+ }());
441
+ }
442
+ else
443
+ {
444
+ inspectIntegrationObject.sqlServerHost = "";
445
+ }
446
+
447
+ if(typeof jsonObject['inspectIntegration'] === 'object' && 'sqlServerUsername' in jsonObject['inspectIntegration'])
448
+ {
449
+ inspectIntegrationObject.sqlServerUsername = (function(){
450
+ if(typeof jsonObject['inspectIntegration'].sqlServerUsername !== 'string')
451
+ {
452
+ return String(jsonObject['inspectIntegration'].sqlServerUsername);
453
+ }
454
+
455
+ return jsonObject['inspectIntegration'].sqlServerUsername;
456
+ }());
457
+ }
458
+ else
459
+ {
460
+ inspectIntegrationObject.sqlServerUsername = "";
461
+ }
462
+
463
+ if(typeof jsonObject['inspectIntegration'] === 'object' && 'sqlServerPassword' in jsonObject['inspectIntegration'])
325
464
  {
326
- inspectIntegrationObject.apiBaseUrl = (function(){
327
- if(typeof jsonObject['inspectIntegration'].apiBaseUrl !== 'string')
465
+ inspectIntegrationObject.sqlServerPassword = (function(){
466
+ if(typeof jsonObject['inspectIntegration'].sqlServerPassword !== 'string')
328
467
  {
329
- return String(jsonObject['inspectIntegration'].apiBaseUrl);
468
+ return String(jsonObject['inspectIntegration'].sqlServerPassword);
330
469
  }
331
470
 
332
- return jsonObject['inspectIntegration'].apiBaseUrl;
471
+ return jsonObject['inspectIntegration'].sqlServerPassword;
333
472
  }());
334
473
  }
335
474
  else
336
475
  {
337
- inspectIntegrationObject.apiBaseUrl = "";
476
+ inspectIntegrationObject.sqlServerPassword = "";
338
477
  }
339
478
 
340
479
  return inspectIntegrationObject;