@blues-inc/notehub-js 1.0.34-beta.8 → 1.0.34

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 (123) hide show
  1. package/README.md +222 -231
  2. package/dist/ApiClient.js +156 -156
  3. package/dist/api/AlertApi.js +22 -22
  4. package/dist/api/AuthorizationApi.js +16 -16
  5. package/dist/api/BillingAccountApi.js +14 -14
  6. package/dist/api/DeviceApi.js +351 -351
  7. package/dist/api/EventApi.js +122 -122
  8. package/dist/api/ExternalDevicesApi.js +41 -41
  9. package/dist/api/MonitorApi.js +52 -52
  10. package/dist/api/ProjectApi.js +355 -355
  11. package/dist/api/RepositoryApi.js +103 -103
  12. package/dist/api/RouteApi.js +82 -85
  13. package/dist/api/WebhookApi.js +51 -51
  14. package/dist/index.js +7 -7
  15. package/dist/model/Alert.js +74 -76
  16. package/dist/model/AlertDataInner.js +35 -35
  17. package/dist/model/AlertNotificationsInner.js +18 -18
  18. package/dist/model/Aws.js +65 -65
  19. package/dist/model/Azure.js +43 -43
  20. package/dist/model/BillingAccount.js +21 -21
  21. package/dist/model/BillingAccountRole.js +9 -9
  22. package/dist/model/Body.js +5 -5
  23. package/dist/model/CloneProjectRequest.js +20 -20
  24. package/dist/model/Contact.js +22 -22
  25. package/dist/model/CreateFleetRequest.js +12 -12
  26. package/dist/model/CreateMonitor.js +125 -126
  27. package/dist/model/CreateProductRequest.js +22 -22
  28. package/dist/model/CreateProjectRequest.js +16 -16
  29. package/dist/model/CreateUpdateRepository.js +17 -17
  30. package/dist/model/CurrentFirmware.js +12 -12
  31. package/dist/model/DFUEnv.js +12 -12
  32. package/dist/model/DFUState.js +65 -65
  33. package/dist/model/DataField.js +7 -7
  34. package/dist/model/DataSet.js +29 -30
  35. package/dist/model/DataSetField.js +19 -19
  36. package/dist/model/DeleteDeviceFleetsRequest.js +8 -8
  37. package/dist/model/Device.js +101 -102
  38. package/dist/model/DeviceDfuHistory.js +19 -20
  39. package/dist/model/DeviceDfuHistoryPage.js +12 -13
  40. package/dist/model/DeviceDfuStateMachine.js +24 -25
  41. package/dist/model/DeviceDfuStateMachineNode.js +22 -22
  42. package/dist/model/DeviceDfuStatus.js +20 -20
  43. package/dist/model/DeviceDfuStatusCurrent.js +32 -32
  44. package/dist/model/DeviceDfuStatusPage.js +12 -13
  45. package/dist/model/DeviceSession.js +221 -221
  46. package/dist/model/DeviceTowerInfo.js +14 -14
  47. package/dist/model/DeviceUsage.js +32 -32
  48. package/dist/model/DfuActionRequest.js +7 -7
  49. package/dist/model/EmailNotification.js +7 -7
  50. package/dist/model/EnvironmentVariables.js +8 -8
  51. package/dist/model/Error.js +31 -31
  52. package/dist/model/Event.js +248 -248
  53. package/dist/model/Firmware.js +49 -49
  54. package/dist/model/FirmwareInfo.js +60 -60
  55. package/dist/model/Fleet.js +27 -27
  56. package/dist/model/GetAlerts200Response.js +14 -15
  57. package/dist/model/GetBillingAccounts200Response.js +9 -10
  58. package/dist/model/GetDeviceEnvironmentVariables200Response.js +16 -16
  59. package/dist/model/GetDeviceHealthLog200Response.js +11 -12
  60. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
  61. package/dist/model/GetDeviceLatest200Response.js +9 -10
  62. package/dist/model/GetDevicePublicKey200Response.js +16 -16
  63. package/dist/model/GetDeviceSessions200Response.js +16 -17
  64. package/dist/model/GetProjectDevicePublicKeys200Response.js +16 -17
  65. package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
  66. package/dist/model/GetProjectDevices200Response.js +16 -17
  67. package/dist/model/GetProjectEvents200Response.js +20 -21
  68. package/dist/model/GetProjectEventsByCursor200Response.js +23 -24
  69. package/dist/model/GetProjectFleets200Response.js +11 -12
  70. package/dist/model/GetProjectMembers200Response.js +11 -12
  71. package/dist/model/GetProjectProducts200Response.js +9 -10
  72. package/dist/model/GetProjects200Response.js +9 -10
  73. package/dist/model/{RouteLog.js → GetRouteLogsByRoute200ResponseInner.js} +52 -52
  74. package/dist/model/GetWebhooks200Response.js +9 -10
  75. package/dist/model/Google.js +33 -33
  76. package/dist/model/HandleNoteChanges200Response.js +11 -11
  77. package/dist/model/HandleNoteGet200Response.js +13 -13
  78. package/dist/model/HandleNoteSignal200Response.js +5 -5
  79. package/dist/model/HandleNotefileChanges200Response.js +11 -11
  80. package/dist/model/HandleNotefileChangesPending200Response.js +14 -14
  81. package/dist/model/HandleNotefileDeleteRequest.js +7 -7
  82. package/dist/model/Http.js +35 -35
  83. package/dist/model/HttpFilter.js +19 -19
  84. package/dist/model/HttpTransform.js +20 -20
  85. package/dist/model/Location.js +40 -40
  86. package/dist/model/Login200Response.js +7 -7
  87. package/dist/model/LoginRequest.js +12 -12
  88. package/dist/model/Monitor.js +99 -100
  89. package/dist/model/MonitorAlertRoutesInner.js +10 -9
  90. package/dist/model/Mqtt.js +66 -66
  91. package/dist/model/Note.js +10 -10
  92. package/dist/model/NotefileSchema.js +18 -19
  93. package/dist/model/NotehubRoute.js +36 -36
  94. package/dist/model/NotehubRouteSchema.js +46 -45
  95. package/dist/model/PostProvisionProjectDeviceRequest.js +18 -18
  96. package/dist/model/Product.js +26 -26
  97. package/dist/model/Project.js +34 -34
  98. package/dist/model/ProjectMember.js +22 -22
  99. package/dist/model/Proxy.js +24 -24
  100. package/dist/model/PutDeviceFleetsRequest.js +8 -8
  101. package/dist/model/QuestionDataResponseLineChart.js +39 -39
  102. package/dist/model/QuestionDataResponseMap.js +16 -16
  103. package/dist/model/Radresponder.js +25 -25
  104. package/dist/model/Repository.js +22 -22
  105. package/dist/model/Role.js +9 -9
  106. package/dist/model/SchemaProperty.js +38 -40
  107. package/dist/model/SimUsage.js +19 -19
  108. package/dist/model/Slack.js +53 -53
  109. package/dist/model/SlackBearerNotification.js +25 -25
  110. package/dist/model/SlackWebHookNotification.js +20 -20
  111. package/dist/model/Snowflake.js +45 -45
  112. package/dist/model/SnowflakeTransform.js +12 -12
  113. package/dist/model/Thingworx.js +33 -33
  114. package/dist/model/TowerLocation.js +54 -54
  115. package/dist/model/Twilio.js +43 -43
  116. package/dist/model/UpdateFleetRequest.js +22 -22
  117. package/dist/model/UploadMetadata.js +59 -59
  118. package/dist/model/UserDbRoute.js +25 -25
  119. package/dist/model/UserDfuStateMachine.js +20 -20
  120. package/dist/model/UserDfuStateMachineStatus.js +20 -20
  121. package/dist/model/UserFirmwareInfo.js +12 -12
  122. package/dist/model/WebhookSettings.js +15 -15
  123. package/package.json +3 -3
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
8
  var _Error = _interopRequireDefault(require("../model/Error"));
9
+ var _GetRouteLogsByRoute200ResponseInner = _interopRequireDefault(require("../model/GetRouteLogsByRoute200ResponseInner"));
9
10
  var _NotehubRoute = _interopRequireDefault(require("../model/NotehubRoute"));
10
- var _RouteLog = _interopRequireDefault(require("../model/RouteLog"));
11
11
  var _UserDbRoute = _interopRequireDefault(require("../model/UserDbRoute"));
12
12
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
13
13
  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); }
@@ -17,7 +17,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
17
17
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
18
  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); } /**
19
19
  * Notehub API
20
- * The OpenAPI definition for the Notehub.io API.
20
+ * The OpenAPI definition for the Notehub.io API.
21
21
  *
22
22
  * The version of the OpenAPI document: 1.2.0
23
23
  * Contact: engineering@blues.io
@@ -28,18 +28,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
28
28
  *
29
29
  */
30
30
  /**
31
- * Route service.
32
- * @module api/RouteApi
33
- * @version 1.0.34-beta.8
34
- */
31
+ * Route service.
32
+ * @module api/RouteApi
33
+ * @version 1.0.34
34
+ */
35
35
  var RouteApi = exports["default"] = /*#__PURE__*/function () {
36
36
  /**
37
- * Constructs a new RouteApi.
38
- * @alias module:api/RouteApi
39
- * @class
40
- * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
41
- * default to {@link module:ApiClient#instance} if unspecified.
42
- */
37
+ * Constructs a new RouteApi.
38
+ * @alias module:api/RouteApi
39
+ * @class
40
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
41
+ * default to {@link module:ApiClient#instance} if unspecified.
42
+ */
43
43
  function RouteApi(apiClient) {
44
44
  _classCallCheck(this, RouteApi);
45
45
  this.apiClient = apiClient || _ApiClient["default"].instance;
@@ -47,7 +47,7 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
47
47
 
48
48
  /**
49
49
  * Create Route within a Project
50
- * @param {String} projectOrProductUID
50
+ * @param {String} projectOrProductUID
51
51
  * @param {module:model/NotehubRoute} notehubRoute Route to be Created
52
52
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/NotehubRoute} and HTTP response
53
53
  */
@@ -64,21 +64,21 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
64
64
  throw new _Error["default"]("Missing the required parameter 'notehubRoute' when calling createRoute");
65
65
  }
66
66
  var pathParams = {
67
- 'projectOrProductUID': projectOrProductUID
67
+ projectOrProductUID: projectOrProductUID
68
68
  };
69
69
  var queryParams = {};
70
70
  var headerParams = {};
71
71
  var formParams = {};
72
- var authNames = ['api_key'];
73
- var contentTypes = ['application/json'];
74
- var accepts = ['application/json'];
72
+ var authNames = ["api_key"];
73
+ var contentTypes = ["application/json"];
74
+ var accepts = ["application/json"];
75
75
  var returnType = _NotehubRoute["default"];
76
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/routes', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
76
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/routes", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
77
77
  }
78
78
 
79
79
  /**
80
80
  * Create Route within a Project
81
- * @param {String} projectOrProductUID
81
+ * @param {String} projectOrProductUID
82
82
  * @param {module:model/NotehubRoute} notehubRoute Route to be Created
83
83
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NotehubRoute}
84
84
  */
@@ -92,8 +92,8 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
92
92
 
93
93
  /**
94
94
  * Delete single route within a project
95
- * @param {String} projectOrProductUID
96
- * @param {String} routeUID
95
+ * @param {String} projectOrProductUID
96
+ * @param {String} routeUID
97
97
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response
98
98
  */
99
99
  }, {
@@ -109,23 +109,23 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
109
109
  throw new _Error["default"]("Missing the required parameter 'routeUID' when calling deleteRoute");
110
110
  }
111
111
  var pathParams = {
112
- 'projectOrProductUID': projectOrProductUID,
113
- 'routeUID': routeUID
112
+ projectOrProductUID: projectOrProductUID,
113
+ routeUID: routeUID
114
114
  };
115
115
  var queryParams = {};
116
116
  var headerParams = {};
117
117
  var formParams = {};
118
- var authNames = ['api_key'];
118
+ var authNames = ["api_key"];
119
119
  var contentTypes = [];
120
- var accepts = ['application/json'];
120
+ var accepts = ["application/json"];
121
121
  var returnType = Object;
122
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/routes/{routeUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
122
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/routes/{routeUID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
123
123
  }
124
124
 
125
125
  /**
126
126
  * Delete single route within a project
127
- * @param {String} projectOrProductUID
128
- * @param {String} routeUID
127
+ * @param {String} projectOrProductUID
128
+ * @param {String} routeUID
129
129
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
130
130
  */
131
131
  }, {
@@ -138,8 +138,8 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
138
138
 
139
139
  /**
140
140
  * Get single route within a project
141
- * @param {String} projectOrProductUID
142
- * @param {String} routeUID
141
+ * @param {String} projectOrProductUID
142
+ * @param {String} routeUID
143
143
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/NotehubRoute} and HTTP response
144
144
  */
145
145
  }, {
@@ -155,23 +155,23 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
155
155
  throw new _Error["default"]("Missing the required parameter 'routeUID' when calling getRoute");
156
156
  }
157
157
  var pathParams = {
158
- 'projectOrProductUID': projectOrProductUID,
159
- 'routeUID': routeUID
158
+ projectOrProductUID: projectOrProductUID,
159
+ routeUID: routeUID
160
160
  };
161
161
  var queryParams = {};
162
162
  var headerParams = {};
163
163
  var formParams = {};
164
- var authNames = ['api_key'];
164
+ var authNames = ["api_key"];
165
165
  var contentTypes = [];
166
- var accepts = ['application/json'];
166
+ var accepts = ["application/json"];
167
167
  var returnType = _NotehubRoute["default"];
168
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/routes/{routeUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
168
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/routes/{routeUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
169
169
  }
170
170
 
171
171
  /**
172
172
  * Get single route within a project
173
- * @param {String} projectOrProductUID
174
- * @param {String} routeUID
173
+ * @param {String} projectOrProductUID
174
+ * @param {String} routeUID
175
175
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NotehubRoute}
176
176
  */
177
177
  }, {
@@ -184,20 +184,19 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
184
184
 
185
185
  /**
186
186
  * Get Route Logs by Route UID
187
- * @param {String} projectOrProductUID
188
- * @param {String} routeUID
187
+ * @param {String} projectOrProductUID
188
+ * @param {String} routeUID
189
189
  * @param {Object} opts Optional parameters
190
190
  * @param {Number} opts.pageSize (default to 50)
191
191
  * @param {Number} opts.pageNum (default to 1)
192
192
  * @param {Array.<String>} opts.deviceUID A Device UID.
193
- * @param {module:model/String} opts.sortBy (default to 'date')
194
- * @param {module:model/String} opts.sortOrder (default to 'desc')
193
+ * @param {module:model/String} opts.sortBy (default to 'captured')
194
+ * @param {module:model/String} opts.sortOrder (default to 'asc')
195
195
  * @param {Number} opts.startDate Unix timestamp
196
196
  * @param {Number} opts.endDate Unix timestamp
197
- * @param {Boolean} opts.systemFilesOnly
198
- * @param {Boolean} opts.mostRecentOnly
199
- * @param {String} opts.files
200
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/RouteLog>} and HTTP response
197
+ * @param {Boolean} opts.systemFilesOnly
198
+ * @param {String} opts.files
199
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/GetRouteLogsByRoute200ResponseInner>} and HTTP response
201
200
  */
202
201
  }, {
203
202
  key: "getRouteLogsByRouteWithHttpInfo",
@@ -213,46 +212,44 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
213
212
  throw new _Error["default"]("Missing the required parameter 'routeUID' when calling getRouteLogsByRoute");
214
213
  }
215
214
  var pathParams = {
216
- 'projectOrProductUID': projectOrProductUID,
217
- 'routeUID': routeUID
215
+ projectOrProductUID: projectOrProductUID,
216
+ routeUID: routeUID
218
217
  };
219
218
  var queryParams = {
220
- 'pageSize': opts['pageSize'],
221
- 'pageNum': opts['pageNum'],
222
- 'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
223
- 'sortBy': opts['sortBy'],
224
- 'sortOrder': opts['sortOrder'],
225
- 'startDate': opts['startDate'],
226
- 'endDate': opts['endDate'],
227
- 'systemFilesOnly': opts['systemFilesOnly'],
228
- 'mostRecentOnly': opts['mostRecentOnly'],
229
- 'files': opts['files']
219
+ pageSize: opts["pageSize"],
220
+ pageNum: opts["pageNum"],
221
+ deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
222
+ sortBy: opts["sortBy"],
223
+ sortOrder: opts["sortOrder"],
224
+ startDate: opts["startDate"],
225
+ endDate: opts["endDate"],
226
+ systemFilesOnly: opts["systemFilesOnly"],
227
+ files: opts["files"]
230
228
  };
231
229
  var headerParams = {};
232
230
  var formParams = {};
233
- var authNames = ['api_key'];
231
+ var authNames = ["api_key"];
234
232
  var contentTypes = [];
235
- var accepts = ['application/json'];
236
- var returnType = [_RouteLog["default"]];
237
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/routes/{routeUID}/route-logs', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
233
+ var accepts = ["application/json"];
234
+ var returnType = [_GetRouteLogsByRoute200ResponseInner["default"]];
235
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/routes/{routeUID}/route-logs", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
238
236
  }
239
237
 
240
238
  /**
241
239
  * Get Route Logs by Route UID
242
- * @param {String} projectOrProductUID
243
- * @param {String} routeUID
240
+ * @param {String} projectOrProductUID
241
+ * @param {String} routeUID
244
242
  * @param {Object} opts Optional parameters
245
243
  * @param {Number} opts.pageSize (default to 50)
246
244
  * @param {Number} opts.pageNum (default to 1)
247
245
  * @param {Array.<String>} opts.deviceUID A Device UID.
248
- * @param {module:model/String} opts.sortBy (default to 'date')
249
- * @param {module:model/String} opts.sortOrder (default to 'desc')
246
+ * @param {module:model/String} opts.sortBy (default to 'captured')
247
+ * @param {module:model/String} opts.sortOrder (default to 'asc')
250
248
  * @param {Number} opts.startDate Unix timestamp
251
249
  * @param {Number} opts.endDate Unix timestamp
252
- * @param {Boolean} opts.systemFilesOnly
253
- * @param {Boolean} opts.mostRecentOnly
254
- * @param {String} opts.files
255
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/RouteLog>}
250
+ * @param {Boolean} opts.systemFilesOnly
251
+ * @param {String} opts.files
252
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/GetRouteLogsByRoute200ResponseInner>}
256
253
  */
257
254
  }, {
258
255
  key: "getRouteLogsByRoute",
@@ -264,7 +261,7 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
264
261
 
265
262
  /**
266
263
  * Get all Routes within a Project
267
- * @param {String} projectOrProductUID
264
+ * @param {String} projectOrProductUID
268
265
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/UserDbRoute>} and HTTP response
269
266
  */
270
267
  }, {
@@ -276,21 +273,21 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
276
273
  throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getRoutes");
277
274
  }
278
275
  var pathParams = {
279
- 'projectOrProductUID': projectOrProductUID
276
+ projectOrProductUID: projectOrProductUID
280
277
  };
281
278
  var queryParams = {};
282
279
  var headerParams = {};
283
280
  var formParams = {};
284
- var authNames = ['api_key'];
281
+ var authNames = ["api_key"];
285
282
  var contentTypes = [];
286
- var accepts = ['application/json'];
283
+ var accepts = ["application/json"];
287
284
  var returnType = [_UserDbRoute["default"]];
288
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/routes', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
285
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/routes", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
289
286
  }
290
287
 
291
288
  /**
292
289
  * Get all Routes within a Project
293
- * @param {String} projectOrProductUID
290
+ * @param {String} projectOrProductUID
294
291
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/UserDbRoute>}
295
292
  */
296
293
  }, {
@@ -303,8 +300,8 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
303
300
 
304
301
  /**
305
302
  * Update route by UID
306
- * @param {String} projectOrProductUID
307
- * @param {String} routeUID
303
+ * @param {String} projectOrProductUID
304
+ * @param {String} routeUID
308
305
  * @param {module:model/NotehubRoute} notehubRoute Route settings to be updated
309
306
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/NotehubRoute} and HTTP response
310
307
  */
@@ -325,23 +322,23 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
325
322
  throw new _Error["default"]("Missing the required parameter 'notehubRoute' when calling updateRoute");
326
323
  }
327
324
  var pathParams = {
328
- 'projectOrProductUID': projectOrProductUID,
329
- 'routeUID': routeUID
325
+ projectOrProductUID: projectOrProductUID,
326
+ routeUID: routeUID
330
327
  };
331
328
  var queryParams = {};
332
329
  var headerParams = {};
333
330
  var formParams = {};
334
- var authNames = ['api_key'];
335
- var contentTypes = ['application/json'];
336
- var accepts = ['application/json'];
331
+ var authNames = ["api_key"];
332
+ var contentTypes = ["application/json"];
333
+ var accepts = ["application/json"];
337
334
  var returnType = _NotehubRoute["default"];
338
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/routes/{routeUID}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
335
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/routes/{routeUID}", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
339
336
  }
340
337
 
341
338
  /**
342
339
  * Update route by UID
343
- * @param {String} projectOrProductUID
344
- * @param {String} routeUID
340
+ * @param {String} projectOrProductUID
341
+ * @param {String} routeUID
345
342
  * @param {module:model/NotehubRoute} notehubRoute Route settings to be updated
346
343
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NotehubRoute}
347
344
  */
@@ -16,7 +16,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
16
16
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
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
18
  * Notehub API
19
- * The OpenAPI definition for the Notehub.io API.
19
+ * The OpenAPI definition for the Notehub.io API.
20
20
  *
21
21
  * The version of the OpenAPI document: 1.2.0
22
22
  * Contact: engineering@blues.io
@@ -27,18 +27,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
27
27
  *
28
28
  */
29
29
  /**
30
- * Webhook service.
31
- * @module api/WebhookApi
32
- * @version 1.0.34-beta.8
33
- */
30
+ * Webhook service.
31
+ * @module api/WebhookApi
32
+ * @version 1.0.34
33
+ */
34
34
  var WebhookApi = exports["default"] = /*#__PURE__*/function () {
35
35
  /**
36
- * Constructs a new WebhookApi.
37
- * @alias module:api/WebhookApi
38
- * @class
39
- * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
40
- * default to {@link module:ApiClient#instance} if unspecified.
41
- */
36
+ * Constructs a new WebhookApi.
37
+ * @alias module:api/WebhookApi
38
+ * @class
39
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
40
+ * default to {@link module:ApiClient#instance} if unspecified.
41
+ */
42
42
  function WebhookApi(apiClient) {
43
43
  _classCallCheck(this, WebhookApi);
44
44
  this.apiClient = apiClient || _ApiClient["default"].instance;
@@ -46,9 +46,9 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
46
46
 
47
47
  /**
48
48
  * Creates a webhook for the specified product with the given name. The name | must be unique within the project.
49
- * @param {String} projectOrProductUID
49
+ * @param {String} projectOrProductUID
50
50
  * @param {String} webhookUID Webhook UID
51
- * @param {module:model/WebhookSettings} webhookSettings
51
+ * @param {module:model/WebhookSettings} webhookSettings
52
52
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
53
53
  */
54
54
  return _createClass(WebhookApi, [{
@@ -68,24 +68,24 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
68
68
  throw new _Error["default"]("Missing the required parameter 'webhookSettings' when calling createWebhook");
69
69
  }
70
70
  var pathParams = {
71
- 'projectOrProductUID': projectOrProductUID,
72
- 'webhookUID': webhookUID
71
+ projectOrProductUID: projectOrProductUID,
72
+ webhookUID: webhookUID
73
73
  };
74
74
  var queryParams = {};
75
75
  var headerParams = {};
76
76
  var formParams = {};
77
- var authNames = ['api_key'];
78
- var contentTypes = ['application/json'];
79
- var accepts = ['application/json'];
77
+ var authNames = ["api_key"];
78
+ var contentTypes = ["application/json"];
79
+ var accepts = ["application/json"];
80
80
  var returnType = null;
81
- return this.apiClient.callApi('/v1/projects/{projectOrProductUIDParam}/webhooks/{webhookUID}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
81
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUIDParam}/webhooks/{webhookUID}", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
82
82
  }
83
83
 
84
84
  /**
85
85
  * Creates a webhook for the specified product with the given name. The name | must be unique within the project.
86
- * @param {String} projectOrProductUID
86
+ * @param {String} projectOrProductUID
87
87
  * @param {String} webhookUID Webhook UID
88
- * @param {module:model/WebhookSettings} webhookSettings
88
+ * @param {module:model/WebhookSettings} webhookSettings
89
89
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
90
90
  */
91
91
  }, {
@@ -98,7 +98,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
98
98
 
99
99
  /**
100
100
  * Deletes the specified webhook
101
- * @param {String} projectOrProductUID
101
+ * @param {String} projectOrProductUID
102
102
  * @param {String} webhookUID Webhook UID
103
103
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
104
104
  */
@@ -115,22 +115,22 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
115
115
  throw new _Error["default"]("Missing the required parameter 'webhookUID' when calling deleteWebhook");
116
116
  }
117
117
  var pathParams = {
118
- 'projectOrProductUID': projectOrProductUID,
119
- 'webhookUID': webhookUID
118
+ projectOrProductUID: projectOrProductUID,
119
+ webhookUID: webhookUID
120
120
  };
121
121
  var queryParams = {};
122
122
  var headerParams = {};
123
123
  var formParams = {};
124
- var authNames = ['api_key'];
124
+ var authNames = ["api_key"];
125
125
  var contentTypes = [];
126
- var accepts = ['application/json'];
126
+ var accepts = ["application/json"];
127
127
  var returnType = null;
128
- return this.apiClient.callApi('/v1/projects/{projectOrProductUIDParam}/webhooks/{webhookUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
128
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUIDParam}/webhooks/{webhookUID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
129
129
  }
130
130
 
131
131
  /**
132
132
  * Deletes the specified webhook
133
- * @param {String} projectOrProductUID
133
+ * @param {String} projectOrProductUID
134
134
  * @param {String} webhookUID Webhook UID
135
135
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
136
136
  */
@@ -144,7 +144,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
144
144
 
145
145
  /**
146
146
  * Retrieves the configuration settings for the specified webhook
147
- * @param {String} projectOrProductUID
147
+ * @param {String} projectOrProductUID
148
148
  * @param {String} webhookUID Webhook UID
149
149
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/WebhookSettings} and HTTP response
150
150
  */
@@ -161,22 +161,22 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
161
161
  throw new _Error["default"]("Missing the required parameter 'webhookUID' when calling getWebhook");
162
162
  }
163
163
  var pathParams = {
164
- 'projectOrProductUID': projectOrProductUID,
165
- 'webhookUID': webhookUID
164
+ projectOrProductUID: projectOrProductUID,
165
+ webhookUID: webhookUID
166
166
  };
167
167
  var queryParams = {};
168
168
  var headerParams = {};
169
169
  var formParams = {};
170
- var authNames = ['api_key'];
170
+ var authNames = ["api_key"];
171
171
  var contentTypes = [];
172
- var accepts = ['application/json'];
172
+ var accepts = ["application/json"];
173
173
  var returnType = _WebhookSettings["default"];
174
- return this.apiClient.callApi('/v1/projects/{projectOrProductUIDParam}/webhooks/{webhookUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
174
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUIDParam}/webhooks/{webhookUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
175
175
  }
176
176
 
177
177
  /**
178
178
  * Retrieves the configuration settings for the specified webhook
179
- * @param {String} projectOrProductUID
179
+ * @param {String} projectOrProductUID
180
180
  * @param {String} webhookUID Webhook UID
181
181
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/WebhookSettings}
182
182
  */
@@ -190,7 +190,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
190
190
 
191
191
  /**
192
192
  * Retrieves all webhooks for the specified project
193
- * @param {String} projectOrProductUID
193
+ * @param {String} projectOrProductUID
194
194
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetWebhooks200Response} and HTTP response
195
195
  */
196
196
  }, {
@@ -202,21 +202,21 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
202
202
  throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getWebhooks");
203
203
  }
204
204
  var pathParams = {
205
- 'projectOrProductUID': projectOrProductUID
205
+ projectOrProductUID: projectOrProductUID
206
206
  };
207
207
  var queryParams = {};
208
208
  var headerParams = {};
209
209
  var formParams = {};
210
- var authNames = ['api_key'];
210
+ var authNames = ["api_key"];
211
211
  var contentTypes = [];
212
- var accepts = ['application/json'];
212
+ var accepts = ["application/json"];
213
213
  var returnType = _GetWebhooks200Response["default"];
214
- return this.apiClient.callApi('/v1/projects/{projectOrProductUIDParam}/webhooks', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
214
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUIDParam}/webhooks", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
215
215
  }
216
216
 
217
217
  /**
218
218
  * Retrieves all webhooks for the specified project
219
- * @param {String} projectOrProductUID
219
+ * @param {String} projectOrProductUID
220
220
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetWebhooks200Response}
221
221
  */
222
222
  }, {
@@ -229,9 +229,9 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
229
229
 
230
230
  /**
231
231
  * Updates the configuration settings for the specified webhook. | Webhook will be created if it does not exist. Update body will completely replace the existing settings.
232
- * @param {String} projectOrProductUID
232
+ * @param {String} projectOrProductUID
233
233
  * @param {String} webhookUID Webhook UID
234
- * @param {module:model/WebhookSettings} webhookSettings
234
+ * @param {module:model/WebhookSettings} webhookSettings
235
235
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
236
236
  */
237
237
  }, {
@@ -251,24 +251,24 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
251
251
  throw new _Error["default"]("Missing the required parameter 'webhookSettings' when calling updateWebhook");
252
252
  }
253
253
  var pathParams = {
254
- 'projectOrProductUID': projectOrProductUID,
255
- 'webhookUID': webhookUID
254
+ projectOrProductUID: projectOrProductUID,
255
+ webhookUID: webhookUID
256
256
  };
257
257
  var queryParams = {};
258
258
  var headerParams = {};
259
259
  var formParams = {};
260
- var authNames = ['api_key'];
261
- var contentTypes = ['application/json'];
262
- var accepts = ['application/json'];
260
+ var authNames = ["api_key"];
261
+ var contentTypes = ["application/json"];
262
+ var accepts = ["application/json"];
263
263
  var returnType = null;
264
- return this.apiClient.callApi('/v1/projects/{projectOrProductUIDParam}/webhooks/{webhookUID}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
264
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUIDParam}/webhooks/{webhookUID}", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
265
265
  }
266
266
 
267
267
  /**
268
268
  * Updates the configuration settings for the specified webhook. | Webhook will be created if it does not exist. Update body will completely replace the existing settings.
269
- * @param {String} projectOrProductUID
269
+ * @param {String} projectOrProductUID
270
270
  * @param {String} webhookUID Webhook UID
271
- * @param {module:model/WebhookSettings} webhookSettings
271
+ * @param {module:model/WebhookSettings} webhookSettings
272
272
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
273
273
  */
274
274
  }, {
package/dist/index.js CHANGED
@@ -393,6 +393,12 @@ Object.defineProperty(exports, "GetProjects200Response", {
393
393
  return _GetProjects200Response["default"];
394
394
  }
395
395
  });
396
+ Object.defineProperty(exports, "GetRouteLogsByRoute200ResponseInner", {
397
+ enumerable: true,
398
+ get: function get() {
399
+ return _GetRouteLogsByRoute200ResponseInner["default"];
400
+ }
401
+ });
396
402
  Object.defineProperty(exports, "GetWebhooks200Response", {
397
403
  enumerable: true,
398
404
  get: function get() {
@@ -609,12 +615,6 @@ Object.defineProperty(exports, "RouteApi", {
609
615
  return _RouteApi["default"];
610
616
  }
611
617
  });
612
- Object.defineProperty(exports, "RouteLog", {
613
- enumerable: true,
614
- get: function get() {
615
- return _RouteLog["default"];
616
- }
617
- });
618
618
  Object.defineProperty(exports, "SchemaProperty", {
619
619
  enumerable: true,
620
620
  get: function get() {
@@ -782,6 +782,7 @@ var _GetProjectFleets200Response = _interopRequireDefault(require("./model/GetPr
782
782
  var _GetProjectMembers200Response = _interopRequireDefault(require("./model/GetProjectMembers200Response"));
783
783
  var _GetProjectProducts200Response = _interopRequireDefault(require("./model/GetProjectProducts200Response"));
784
784
  var _GetProjects200Response = _interopRequireDefault(require("./model/GetProjects200Response"));
785
+ var _GetRouteLogsByRoute200ResponseInner = _interopRequireDefault(require("./model/GetRouteLogsByRoute200ResponseInner"));
785
786
  var _GetWebhooks200Response = _interopRequireDefault(require("./model/GetWebhooks200Response"));
786
787
  var _Google = _interopRequireDefault(require("./model/Google"));
787
788
  var _HandleNoteChanges200Response = _interopRequireDefault(require("./model/HandleNoteChanges200Response"));
@@ -814,7 +815,6 @@ var _QuestionDataResponseMap = _interopRequireDefault(require("./model/QuestionD
814
815
  var _Radresponder = _interopRequireDefault(require("./model/Radresponder"));
815
816
  var _Repository = _interopRequireDefault(require("./model/Repository"));
816
817
  var _Role = _interopRequireDefault(require("./model/Role"));
817
- var _RouteLog = _interopRequireDefault(require("./model/RouteLog"));
818
818
  var _SchemaProperty = _interopRequireDefault(require("./model/SchemaProperty"));
819
819
  var _SimUsage = _interopRequireDefault(require("./model/SimUsage"));
820
820
  var _Slack = _interopRequireDefault(require("./model/Slack"));