@blues-inc/notehub-js 1.0.33-beta.1 → 1.0.33-beta.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.
Files changed (121) hide show
  1. package/README.md +86 -76
  2. package/dist/ApiClient.js +2 -2
  3. package/dist/api/AlertApi.js +11 -11
  4. package/dist/api/AuthorizationApi.js +1 -1
  5. package/dist/api/BillingAccountApi.js +1 -1
  6. package/dist/api/DeviceApi.js +271 -271
  7. package/dist/api/EventApi.js +51 -51
  8. package/dist/api/ExternalDevicesApi.js +203 -0
  9. package/dist/api/MonitorApi.js +51 -51
  10. package/dist/api/ProjectApi.js +309 -309
  11. package/dist/api/RepositoryApi.js +1 -1
  12. package/dist/api/RouteApi.js +61 -61
  13. package/dist/api/WebhookApi.js +282 -0
  14. package/dist/index.js +28 -0
  15. package/dist/model/Alert.js +1 -1
  16. package/dist/model/AlertDataInner.js +1 -1
  17. package/dist/model/AlertNotificationsInner.js +1 -1
  18. package/dist/model/Aws.js +1 -1
  19. package/dist/model/Azure.js +1 -1
  20. package/dist/model/BillingAccount.js +1 -1
  21. package/dist/model/Body.js +1 -1
  22. package/dist/model/CloneProjectRequest.js +1 -1
  23. package/dist/model/Contact.js +1 -1
  24. package/dist/model/CreateFleetRequest.js +1 -1
  25. package/dist/model/CreateMonitor.js +1 -1
  26. package/dist/model/CreateProductRequest.js +1 -1
  27. package/dist/model/CreateProjectRequest.js +1 -1
  28. package/dist/model/CreateUpdateRepository.js +1 -1
  29. package/dist/model/CurrentFirmware.js +1 -1
  30. package/dist/model/DFUEnv.js +1 -1
  31. package/dist/model/DFUState.js +1 -1
  32. package/dist/model/DataField.js +1 -1
  33. package/dist/model/DataSet.js +1 -1
  34. package/dist/model/DataSetField.js +1 -1
  35. package/dist/model/DeleteDeviceFleetsRequest.js +1 -1
  36. package/dist/model/Device.js +1 -1
  37. package/dist/model/DeviceDfuHistory.js +1 -1
  38. package/dist/model/DeviceDfuHistoryPage.js +1 -1
  39. package/dist/model/DeviceDfuStateMachine.js +1 -1
  40. package/dist/model/DeviceDfuStateMachineNode.js +1 -1
  41. package/dist/model/DeviceDfuStatus.js +1 -1
  42. package/dist/model/DeviceDfuStatusCurrent.js +1 -1
  43. package/dist/model/DeviceDfuStatusPage.js +1 -1
  44. package/dist/model/DeviceSession.js +115 -4
  45. package/dist/model/DeviceTowerInfo.js +1 -1
  46. package/dist/model/DeviceUsage.js +7 -5
  47. package/dist/model/DfuActionRequest.js +1 -1
  48. package/dist/model/EmailNotification.js +1 -1
  49. package/dist/model/EnvironmentVariables.js +1 -1
  50. package/dist/model/Error.js +1 -1
  51. package/dist/model/Event.js +14 -1
  52. package/dist/model/Firmware.js +1 -1
  53. package/dist/model/FirmwareInfo.js +1 -1
  54. package/dist/model/Fleet.js +1 -1
  55. package/dist/model/GetAlerts200Response.js +1 -1
  56. package/dist/model/GetBillingAccounts200Response.js +1 -1
  57. package/dist/model/GetDeviceEnvironmentVariables200Response.js +1 -1
  58. package/dist/model/GetDeviceHealthLog200Response.js +1 -1
  59. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +1 -1
  60. package/dist/model/GetDeviceLatest200Response.js +1 -1
  61. package/dist/model/GetDevicePublicKey200Response.js +1 -1
  62. package/dist/model/GetDeviceSessions200Response.js +1 -1
  63. package/dist/model/GetProjectDevicePublicKeys200Response.js +1 -1
  64. package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +1 -1
  65. package/dist/model/GetProjectDevices200Response.js +1 -1
  66. package/dist/model/GetProjectEvents200Response.js +1 -1
  67. package/dist/model/GetProjectEventsByCursor200Response.js +1 -1
  68. package/dist/model/GetProjectFleets200Response.js +1 -1
  69. package/dist/model/GetProjectMembers200Response.js +1 -1
  70. package/dist/model/GetProjectProducts200Response.js +1 -1
  71. package/dist/model/GetProjects200Response.js +1 -1
  72. package/dist/model/GetRouteLogsByRoute200ResponseInner.js +1 -1
  73. package/dist/model/GetWebhooks200Response.js +112 -0
  74. package/dist/model/Google.js +1 -1
  75. package/dist/model/HandleNoteChanges200Response.js +1 -1
  76. package/dist/model/HandleNoteGet200Response.js +1 -1
  77. package/dist/model/HandleNoteSignal200Response.js +1 -1
  78. package/dist/model/HandleNotefileChanges200Response.js +1 -1
  79. package/dist/model/HandleNotefileChangesPending200Response.js +1 -1
  80. package/dist/model/HandleNotefileDeleteRequest.js +1 -1
  81. package/dist/model/Http.js +1 -1
  82. package/dist/model/HttpFilter.js +1 -1
  83. package/dist/model/HttpTransform.js +1 -1
  84. package/dist/model/Location.js +1 -1
  85. package/dist/model/Login200Response.js +1 -1
  86. package/dist/model/LoginRequest.js +1 -1
  87. package/dist/model/Monitor.js +1 -1
  88. package/dist/model/MonitorAlertRoutesInner.js +1 -1
  89. package/dist/model/Mqtt.js +1 -1
  90. package/dist/model/Note.js +1 -1
  91. package/dist/model/NotefileSchema.js +1 -1
  92. package/dist/model/NotehubRoute.js +1 -1
  93. package/dist/model/NotehubRouteSchema.js +1 -1
  94. package/dist/model/PostProvisionProjectDeviceRequest.js +1 -1
  95. package/dist/model/Product.js +1 -1
  96. package/dist/model/Project.js +1 -1
  97. package/dist/model/ProjectMember.js +1 -1
  98. package/dist/model/Proxy.js +1 -1
  99. package/dist/model/PutDeviceFleetsRequest.js +1 -1
  100. package/dist/model/QuestionDataResponseLineChart.js +1 -1
  101. package/dist/model/QuestionDataResponseMap.js +1 -1
  102. package/dist/model/Radresponder.js +1 -1
  103. package/dist/model/Repository.js +1 -1
  104. package/dist/model/SchemaProperty.js +1 -1
  105. package/dist/model/SimUsage.js +1 -1
  106. package/dist/model/Slack.js +1 -1
  107. package/dist/model/SlackBearerNotification.js +1 -1
  108. package/dist/model/SlackWebHookNotification.js +1 -1
  109. package/dist/model/Snowflake.js +1 -1
  110. package/dist/model/SnowflakeTransform.js +1 -1
  111. package/dist/model/Thingworx.js +1 -1
  112. package/dist/model/TowerLocation.js +23 -11
  113. package/dist/model/Twilio.js +1 -1
  114. package/dist/model/UpdateFleetRequest.js +1 -1
  115. package/dist/model/UploadMetadata.js +1 -1
  116. package/dist/model/UserDbRoute.js +1 -1
  117. package/dist/model/UserDfuStateMachine.js +1 -1
  118. package/dist/model/UserDfuStateMachineStatus.js +1 -1
  119. package/dist/model/UserFirmwareInfo.js +1 -1
  120. package/dist/model/WebhookSettings.js +114 -0
  121. package/package.json +1 -1
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * Event service.
32
32
  * @module api/EventApi
33
- * @version 1.0.33-beta.1
33
+ * @version 1.0.33-beta.2
34
34
  */
35
35
  var EventApi = exports["default"] = /*#__PURE__*/function () {
36
36
  /**
@@ -47,7 +47,7 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
47
47
 
48
48
  /**
49
49
  * Get Events of a Fleet
50
- * @param {String} projectOrProductUID
50
+ * @param {String} projectUID
51
51
  * @param {String} fleetUID
52
52
  * @param {Object} opts Optional parameters
53
53
  * @param {Number} opts.pageSize (default to 50)
@@ -69,19 +69,19 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
69
69
  */
70
70
  return _createClass(EventApi, [{
71
71
  key: "getFleetEventsWithHttpInfo",
72
- value: function getFleetEventsWithHttpInfo(projectOrProductUID, fleetUID, opts) {
72
+ value: function getFleetEventsWithHttpInfo(projectUID, fleetUID, opts) {
73
73
  opts = opts || {};
74
74
  var postBody = null;
75
- // verify the required parameter 'projectOrProductUID' is set
76
- if (projectOrProductUID === undefined || projectOrProductUID === null) {
77
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getFleetEvents");
75
+ // verify the required parameter 'projectUID' is set
76
+ if (projectUID === undefined || projectUID === null) {
77
+ throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getFleetEvents");
78
78
  }
79
79
  // verify the required parameter 'fleetUID' is set
80
80
  if (fleetUID === undefined || fleetUID === null) {
81
81
  throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEvents");
82
82
  }
83
83
  var pathParams = {
84
- 'projectOrProductUID': projectOrProductUID,
84
+ 'projectUID': projectUID,
85
85
  'fleetUID': fleetUID
86
86
  };
87
87
  var queryParams = {
@@ -107,12 +107,12 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
107
107
  var contentTypes = [];
108
108
  var accepts = ['application/json', 'text/csv'];
109
109
  var returnType = _GetProjectEvents200Response["default"];
110
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/events', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
110
+ return this.apiClient.callApi('/v1/projects/{projectUID}/fleets/{fleetUID}/events', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
111
111
  }
112
112
 
113
113
  /**
114
114
  * Get Events of a Fleet
115
- * @param {String} projectOrProductUID
115
+ * @param {String} projectUID
116
116
  * @param {String} fleetUID
117
117
  * @param {Object} opts Optional parameters
118
118
  * @param {Number} opts.pageSize (default to 50)
@@ -134,15 +134,15 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
134
134
  */
135
135
  }, {
136
136
  key: "getFleetEvents",
137
- value: function getFleetEvents(projectOrProductUID, fleetUID, opts) {
138
- return this.getFleetEventsWithHttpInfo(projectOrProductUID, fleetUID, opts).then(function (response_and_data) {
137
+ value: function getFleetEvents(projectUID, fleetUID, opts) {
138
+ return this.getFleetEventsWithHttpInfo(projectUID, fleetUID, opts).then(function (response_and_data) {
139
139
  return response_and_data.data;
140
140
  });
141
141
  }
142
142
 
143
143
  /**
144
144
  * Get Events of a Fleet by cursor
145
- * @param {String} projectOrProductUID
145
+ * @param {String} projectUID
146
146
  * @param {String} fleetUID
147
147
  * @param {Object} opts Optional parameters
148
148
  * @param {Number} opts.limit (default to 50)
@@ -157,19 +157,19 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
157
157
  */
158
158
  }, {
159
159
  key: "getFleetEventsByCursorWithHttpInfo",
160
- value: function getFleetEventsByCursorWithHttpInfo(projectOrProductUID, fleetUID, opts) {
160
+ value: function getFleetEventsByCursorWithHttpInfo(projectUID, fleetUID, opts) {
161
161
  opts = opts || {};
162
162
  var postBody = null;
163
- // verify the required parameter 'projectOrProductUID' is set
164
- if (projectOrProductUID === undefined || projectOrProductUID === null) {
165
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getFleetEventsByCursor");
163
+ // verify the required parameter 'projectUID' is set
164
+ if (projectUID === undefined || projectUID === null) {
165
+ throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getFleetEventsByCursor");
166
166
  }
167
167
  // verify the required parameter 'fleetUID' is set
168
168
  if (fleetUID === undefined || fleetUID === null) {
169
169
  throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEventsByCursor");
170
170
  }
171
171
  var pathParams = {
172
- 'projectOrProductUID': projectOrProductUID,
172
+ 'projectUID': projectUID,
173
173
  'fleetUID': fleetUID
174
174
  };
175
175
  var queryParams = {
@@ -188,12 +188,12 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
188
188
  var contentTypes = [];
189
189
  var accepts = ['application/json'];
190
190
  var returnType = _GetProjectEventsByCursor200Response["default"];
191
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/events-cursor', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
191
+ return this.apiClient.callApi('/v1/projects/{projectUID}/fleets/{fleetUID}/events-cursor', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
192
192
  }
193
193
 
194
194
  /**
195
195
  * Get Events of a Fleet by cursor
196
- * @param {String} projectOrProductUID
196
+ * @param {String} projectUID
197
197
  * @param {String} fleetUID
198
198
  * @param {Object} opts Optional parameters
199
199
  * @param {Number} opts.limit (default to 50)
@@ -208,15 +208,15 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
208
208
  */
209
209
  }, {
210
210
  key: "getFleetEventsByCursor",
211
- value: function getFleetEventsByCursor(projectOrProductUID, fleetUID, opts) {
212
- return this.getFleetEventsByCursorWithHttpInfo(projectOrProductUID, fleetUID, opts).then(function (response_and_data) {
211
+ value: function getFleetEventsByCursor(projectUID, fleetUID, opts) {
212
+ return this.getFleetEventsByCursorWithHttpInfo(projectUID, fleetUID, opts).then(function (response_and_data) {
213
213
  return response_and_data.data;
214
214
  });
215
215
  }
216
216
 
217
217
  /**
218
218
  * Get Events of a Project
219
- * @param {String} projectOrProductUID
219
+ * @param {String} projectUID
220
220
  * @param {Object} opts Optional parameters
221
221
  * @param {Number} opts.pageSize (default to 50)
222
222
  * @param {Number} opts.pageNum (default to 1)
@@ -238,15 +238,15 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
238
238
  */
239
239
  }, {
240
240
  key: "getProjectEventsWithHttpInfo",
241
- value: function getProjectEventsWithHttpInfo(projectOrProductUID, opts) {
241
+ value: function getProjectEventsWithHttpInfo(projectUID, opts) {
242
242
  opts = opts || {};
243
243
  var postBody = null;
244
- // verify the required parameter 'projectOrProductUID' is set
245
- if (projectOrProductUID === undefined || projectOrProductUID === null) {
246
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectEvents");
244
+ // verify the required parameter 'projectUID' is set
245
+ if (projectUID === undefined || projectUID === null) {
246
+ throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectEvents");
247
247
  }
248
248
  var pathParams = {
249
- 'projectOrProductUID': projectOrProductUID
249
+ 'projectUID': projectUID
250
250
  };
251
251
  var queryParams = {
252
252
  'pageSize': opts['pageSize'],
@@ -272,12 +272,12 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
272
272
  var contentTypes = [];
273
273
  var accepts = ['application/json', 'text/csv'];
274
274
  var returnType = _GetProjectEvents200Response["default"];
275
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/events', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
275
+ return this.apiClient.callApi('/v1/projects/{projectUID}/events', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
276
276
  }
277
277
 
278
278
  /**
279
279
  * Get Events of a Project
280
- * @param {String} projectOrProductUID
280
+ * @param {String} projectUID
281
281
  * @param {Object} opts Optional parameters
282
282
  * @param {Number} opts.pageSize (default to 50)
283
283
  * @param {Number} opts.pageNum (default to 1)
@@ -299,15 +299,15 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
299
299
  */
300
300
  }, {
301
301
  key: "getProjectEvents",
302
- value: function getProjectEvents(projectOrProductUID, opts) {
303
- return this.getProjectEventsWithHttpInfo(projectOrProductUID, opts).then(function (response_and_data) {
302
+ value: function getProjectEvents(projectUID, opts) {
303
+ return this.getProjectEventsWithHttpInfo(projectUID, opts).then(function (response_and_data) {
304
304
  return response_and_data.data;
305
305
  });
306
306
  }
307
307
 
308
308
  /**
309
309
  * Get Events of a Project by cursor
310
- * @param {String} projectOrProductUID
310
+ * @param {String} projectUID
311
311
  * @param {Object} opts Optional parameters
312
312
  * @param {Number} opts.limit (default to 50)
313
313
  * @param {String} opts.cursor A cursor, which can be obtained from the `next_cursor` value from a previous call to this endpoint. The results set returned will include this event as its first result if the given identifier is actually the UID of an event. If this event UID is not found, the parameter is ignored and the results set is the same as if the parameter was not included.
@@ -320,15 +320,15 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
320
320
  */
321
321
  }, {
322
322
  key: "getProjectEventsByCursorWithHttpInfo",
323
- value: function getProjectEventsByCursorWithHttpInfo(projectOrProductUID, opts) {
323
+ value: function getProjectEventsByCursorWithHttpInfo(projectUID, opts) {
324
324
  opts = opts || {};
325
325
  var postBody = null;
326
- // verify the required parameter 'projectOrProductUID' is set
327
- if (projectOrProductUID === undefined || projectOrProductUID === null) {
328
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectEventsByCursor");
326
+ // verify the required parameter 'projectUID' is set
327
+ if (projectUID === undefined || projectUID === null) {
328
+ throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectEventsByCursor");
329
329
  }
330
330
  var pathParams = {
331
- 'projectOrProductUID': projectOrProductUID
331
+ 'projectUID': projectUID
332
332
  };
333
333
  var queryParams = {
334
334
  'limit': opts['limit'],
@@ -345,12 +345,12 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
345
345
  var contentTypes = [];
346
346
  var accepts = ['application/json'];
347
347
  var returnType = _GetProjectEventsByCursor200Response["default"];
348
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/events-cursor', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
348
+ return this.apiClient.callApi('/v1/projects/{projectUID}/events-cursor', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
349
349
  }
350
350
 
351
351
  /**
352
352
  * Get Events of a Project by cursor
353
- * @param {String} projectOrProductUID
353
+ * @param {String} projectUID
354
354
  * @param {Object} opts Optional parameters
355
355
  * @param {Number} opts.limit (default to 50)
356
356
  * @param {String} opts.cursor A cursor, which can be obtained from the `next_cursor` value from a previous call to this endpoint. The results set returned will include this event as its first result if the given identifier is actually the UID of an event. If this event UID is not found, the parameter is ignored and the results set is the same as if the parameter was not included.
@@ -363,32 +363,32 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
363
363
  */
364
364
  }, {
365
365
  key: "getProjectEventsByCursor",
366
- value: function getProjectEventsByCursor(projectOrProductUID, opts) {
367
- return this.getProjectEventsByCursorWithHttpInfo(projectOrProductUID, opts).then(function (response_and_data) {
366
+ value: function getProjectEventsByCursor(projectUID, opts) {
367
+ return this.getProjectEventsByCursorWithHttpInfo(projectUID, opts).then(function (response_and_data) {
368
368
  return response_and_data.data;
369
369
  });
370
370
  }
371
371
 
372
372
  /**
373
373
  * Get Route Logs by Event UID
374
- * @param {String} projectOrProductUID
374
+ * @param {String} projectUID
375
375
  * @param {String} eventUID
376
376
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/GetRouteLogsByRoute200ResponseInner>} and HTTP response
377
377
  */
378
378
  }, {
379
379
  key: "getRouteLogsByEventWithHttpInfo",
380
- value: function getRouteLogsByEventWithHttpInfo(projectOrProductUID, eventUID) {
380
+ value: function getRouteLogsByEventWithHttpInfo(projectUID, eventUID) {
381
381
  var postBody = null;
382
- // verify the required parameter 'projectOrProductUID' is set
383
- if (projectOrProductUID === undefined || projectOrProductUID === null) {
384
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getRouteLogsByEvent");
382
+ // verify the required parameter 'projectUID' is set
383
+ if (projectUID === undefined || projectUID === null) {
384
+ throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getRouteLogsByEvent");
385
385
  }
386
386
  // verify the required parameter 'eventUID' is set
387
387
  if (eventUID === undefined || eventUID === null) {
388
388
  throw new _Error["default"]("Missing the required parameter 'eventUID' when calling getRouteLogsByEvent");
389
389
  }
390
390
  var pathParams = {
391
- 'projectOrProductUID': projectOrProductUID,
391
+ 'projectUID': projectUID,
392
392
  'eventUID': eventUID
393
393
  };
394
394
  var queryParams = {};
@@ -398,19 +398,19 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
398
398
  var contentTypes = [];
399
399
  var accepts = ['application/json'];
400
400
  var returnType = [_GetRouteLogsByRoute200ResponseInner["default"]];
401
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/events/{eventUID}/route-logs', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
401
+ return this.apiClient.callApi('/v1/projects/{projectUID}/events/{eventUID}/route-logs', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
402
402
  }
403
403
 
404
404
  /**
405
405
  * Get Route Logs by Event UID
406
- * @param {String} projectOrProductUID
406
+ * @param {String} projectUID
407
407
  * @param {String} eventUID
408
408
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/GetRouteLogsByRoute200ResponseInner>}
409
409
  */
410
410
  }, {
411
411
  key: "getRouteLogsByEvent",
412
- value: function getRouteLogsByEvent(projectOrProductUID, eventUID) {
413
- return this.getRouteLogsByEventWithHttpInfo(projectOrProductUID, eventUID).then(function (response_and_data) {
412
+ value: function getRouteLogsByEvent(projectUID, eventUID) {
413
+ return this.getRouteLogsByEventWithHttpInfo(projectUID, eventUID).then(function (response_and_data) {
414
414
  return response_and_data.data;
415
415
  });
416
416
  }
@@ -0,0 +1,203 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _DeviceSession = _interopRequireDefault(require("../model/DeviceSession"));
9
+ var _Error = _interopRequireDefault(require("../model/Error"));
10
+ var _Event = _interopRequireDefault(require("../model/Event"));
11
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
12
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
13
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
14
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
15
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
16
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
18
+ * Notehub API
19
+ * The OpenAPI definition for the Notehub.io API.
20
+ *
21
+ * The version of the OpenAPI document: 1.2.0
22
+ * Contact: engineering@blues.io
23
+ *
24
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
25
+ * https://openapi-generator.tech
26
+ * Do not edit the class manually.
27
+ *
28
+ */
29
+ /**
30
+ * ExternalDevices service.
31
+ * @module api/ExternalDevicesApi
32
+ * @version 1.0.33-beta.2
33
+ */
34
+ var ExternalDevicesApi = exports["default"] = /*#__PURE__*/function () {
35
+ /**
36
+ * Constructs a new ExternalDevicesApi.
37
+ * @alias module:api/ExternalDevicesApi
38
+ * @class
39
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
40
+ * default to {@link module:ApiClient#instance} if unspecified.
41
+ */
42
+ function ExternalDevicesApi(apiClient) {
43
+ _classCallCheck(this, ExternalDevicesApi);
44
+ this.apiClient = apiClient || _ApiClient["default"].instance;
45
+ }
46
+
47
+ /**
48
+ * Creates an event using specified webhook
49
+ * @param {String} productUID
50
+ * @param {String} deviceUID
51
+ * @param {module:model/Event} event Event Object
52
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
53
+ */
54
+ return _createClass(ExternalDevicesApi, [{
55
+ key: "createEventExtDeviceWithHttpInfo",
56
+ value: function createEventExtDeviceWithHttpInfo(productUID, deviceUID, event) {
57
+ var postBody = event;
58
+ // verify the required parameter 'productUID' is set
59
+ if (productUID === undefined || productUID === null) {
60
+ throw new _Error["default"]("Missing the required parameter 'productUID' when calling createEventExtDevice");
61
+ }
62
+ // verify the required parameter 'deviceUID' is set
63
+ if (deviceUID === undefined || deviceUID === null) {
64
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling createEventExtDevice");
65
+ }
66
+ // verify the required parameter 'event' is set
67
+ if (event === undefined || event === null) {
68
+ throw new _Error["default"]("Missing the required parameter 'event' when calling createEventExtDevice");
69
+ }
70
+ var pathParams = {
71
+ 'productUID': productUID,
72
+ 'deviceUID': deviceUID
73
+ };
74
+ var queryParams = {};
75
+ var headerParams = {};
76
+ var formParams = {};
77
+ var authNames = ['api_key'];
78
+ var contentTypes = ['application/json'];
79
+ var accepts = ['application/json'];
80
+ var returnType = null;
81
+ return this.apiClient.callApi('/v1/products/{productUID}/ext-devices/{deviceUID}/event', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
82
+ }
83
+
84
+ /**
85
+ * Creates an event using specified webhook
86
+ * @param {String} productUID
87
+ * @param {String} deviceUID
88
+ * @param {module:model/Event} event Event Object
89
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
90
+ */
91
+ }, {
92
+ key: "createEventExtDevice",
93
+ value: function createEventExtDevice(productUID, deviceUID, event) {
94
+ return this.createEventExtDeviceWithHttpInfo(productUID, deviceUID, event).then(function (response_and_data) {
95
+ return response_and_data.data;
96
+ });
97
+ }
98
+
99
+ /**
100
+ * Closes the session for the specified device if open
101
+ * @param {String} productUID
102
+ * @param {String} deviceUID
103
+ * @param {module:model/DeviceSession} deviceSession Session Object
104
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
105
+ */
106
+ }, {
107
+ key: "extDeviceSessionCloseWithHttpInfo",
108
+ value: function extDeviceSessionCloseWithHttpInfo(productUID, deviceUID, deviceSession) {
109
+ var postBody = deviceSession;
110
+ // verify the required parameter 'productUID' is set
111
+ if (productUID === undefined || productUID === null) {
112
+ throw new _Error["default"]("Missing the required parameter 'productUID' when calling extDeviceSessionClose");
113
+ }
114
+ // verify the required parameter 'deviceUID' is set
115
+ if (deviceUID === undefined || deviceUID === null) {
116
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling extDeviceSessionClose");
117
+ }
118
+ // verify the required parameter 'deviceSession' is set
119
+ if (deviceSession === undefined || deviceSession === null) {
120
+ throw new _Error["default"]("Missing the required parameter 'deviceSession' when calling extDeviceSessionClose");
121
+ }
122
+ var pathParams = {
123
+ 'productUID': productUID,
124
+ 'deviceUID': deviceUID
125
+ };
126
+ var queryParams = {};
127
+ var headerParams = {};
128
+ var formParams = {};
129
+ var authNames = ['api_key'];
130
+ var contentTypes = ['application/json'];
131
+ var accepts = ['application/json'];
132
+ var returnType = null;
133
+ return this.apiClient.callApi('/v1/products/{productUID}/ext-devices/{deviceUID}/session/close', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
134
+ }
135
+
136
+ /**
137
+ * Closes the session for the specified device if open
138
+ * @param {String} productUID
139
+ * @param {String} deviceUID
140
+ * @param {module:model/DeviceSession} deviceSession Session Object
141
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
142
+ */
143
+ }, {
144
+ key: "extDeviceSessionClose",
145
+ value: function extDeviceSessionClose(productUID, deviceUID, deviceSession) {
146
+ return this.extDeviceSessionCloseWithHttpInfo(productUID, deviceUID, deviceSession).then(function (response_and_data) {
147
+ return response_and_data.data;
148
+ });
149
+ }
150
+
151
+ /**
152
+ * Create a Session for the specified device. | If a session is currently open it will be closed and a new one opened.
153
+ * @param {String} productUID
154
+ * @param {String} deviceUID
155
+ * @param {module:model/DeviceSession} deviceSession Session Object
156
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
157
+ */
158
+ }, {
159
+ key: "extDeviceSessionOpenWithHttpInfo",
160
+ value: function extDeviceSessionOpenWithHttpInfo(productUID, deviceUID, deviceSession) {
161
+ var postBody = deviceSession;
162
+ // verify the required parameter 'productUID' is set
163
+ if (productUID === undefined || productUID === null) {
164
+ throw new _Error["default"]("Missing the required parameter 'productUID' when calling extDeviceSessionOpen");
165
+ }
166
+ // verify the required parameter 'deviceUID' is set
167
+ if (deviceUID === undefined || deviceUID === null) {
168
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling extDeviceSessionOpen");
169
+ }
170
+ // verify the required parameter 'deviceSession' is set
171
+ if (deviceSession === undefined || deviceSession === null) {
172
+ throw new _Error["default"]("Missing the required parameter 'deviceSession' when calling extDeviceSessionOpen");
173
+ }
174
+ var pathParams = {
175
+ 'productUID': productUID,
176
+ 'deviceUID': deviceUID
177
+ };
178
+ var queryParams = {};
179
+ var headerParams = {};
180
+ var formParams = {};
181
+ var authNames = ['api_key'];
182
+ var contentTypes = ['application/json'];
183
+ var accepts = ['application/json'];
184
+ var returnType = null;
185
+ return this.apiClient.callApi('/v1/products/{productUID}/ext-devices/{deviceUID}/session/open', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
186
+ }
187
+
188
+ /**
189
+ * Create a Session for the specified device. | If a session is currently open it will be closed and a new one opened.
190
+ * @param {String} productUID
191
+ * @param {String} deviceUID
192
+ * @param {module:model/DeviceSession} deviceSession Session Object
193
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
194
+ */
195
+ }, {
196
+ key: "extDeviceSessionOpen",
197
+ value: function extDeviceSessionOpen(productUID, deviceUID, deviceSession) {
198
+ return this.extDeviceSessionOpenWithHttpInfo(productUID, deviceUID, deviceSession).then(function (response_and_data) {
199
+ return response_and_data.data;
200
+ });
201
+ }
202
+ }]);
203
+ }();