@blues-inc/notehub-js 6.2.0-beta.1 → 6.2.0-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 (165) hide show
  1. package/README.md +293 -288
  2. package/dist/ApiClient.js +150 -150
  3. package/dist/api/AlertApi.js +22 -22
  4. package/dist/api/AuthorizationApi.js +31 -31
  5. package/dist/api/BillingAccountApi.js +28 -28
  6. package/dist/api/DeviceApi.js +354 -354
  7. package/dist/api/EventApi.js +118 -118
  8. package/dist/api/ExternalDevicesApi.js +41 -41
  9. package/dist/api/JobsApi.js +74 -127
  10. package/dist/api/MonitorApi.js +52 -52
  11. package/dist/api/ProjectApi.js +618 -432
  12. package/dist/api/RouteApi.js +83 -83
  13. package/dist/api/UsageApi.js +67 -67
  14. package/dist/api/WebhookApi.js +51 -51
  15. package/dist/index.js +28 -0
  16. package/dist/model/AWSRoleConfig.js +14 -14
  17. package/dist/model/AddDeviceToFleetsRequest.js +8 -8
  18. package/dist/model/Alert.js +74 -76
  19. package/dist/model/AlertDataInner.js +36 -36
  20. package/dist/model/AlertNotificationsInner.js +18 -18
  21. package/dist/model/AwsRoute.js +70 -70
  22. package/dist/model/AzureRoute.js +43 -43
  23. package/dist/model/BillingAccount.js +21 -21
  24. package/dist/model/BillingAccountRole.js +9 -9
  25. package/dist/model/BlynkRoute.js +28 -28
  26. package/dist/model/Body.js +5 -5
  27. package/dist/model/CancelJobRun200Response.js +6 -6
  28. package/dist/model/CellularPlan.js +34 -34
  29. package/dist/model/CloneProjectRequest.js +20 -20
  30. package/dist/model/Contact.js +22 -22
  31. package/dist/model/CreateFleetRequest.js +20 -20
  32. package/dist/model/CreateJob201Response.js +8 -8
  33. package/dist/model/CreateMonitor.js +127 -128
  34. package/dist/model/CreateProductRequest.js +22 -22
  35. package/dist/model/CreateProjectRequest.js +16 -16
  36. package/dist/model/CreateProjectSecretRequest.js +130 -0
  37. package/dist/model/CreateUpdateRepository.js +17 -17
  38. package/dist/model/CurrentFirmware.js +12 -12
  39. package/dist/model/DFUEnv.js +12 -12
  40. package/dist/model/DFUState.js +65 -65
  41. package/dist/model/DataField.js +7 -7
  42. package/dist/model/DataSetField.js +19 -19
  43. package/dist/model/DataUsage.js +14 -14
  44. package/dist/model/DatacakeRoute.js +35 -35
  45. package/dist/model/DeleteDeviceFromFleetsRequest.js +8 -8
  46. package/dist/model/DeleteJob200Response.js +6 -6
  47. package/dist/model/DeleteNotefilesRequest.js +7 -7
  48. package/dist/model/Device.js +106 -107
  49. package/dist/model/DeviceDfuHistory.js +19 -20
  50. package/dist/model/DeviceDfuHistoryCurrent.js +32 -32
  51. package/dist/model/DeviceDfuHistoryPage.js +12 -13
  52. package/dist/model/DeviceDfuStateMachine.js +24 -25
  53. package/dist/model/DeviceDfuStateMachineNode.js +22 -22
  54. package/dist/model/DeviceDfuStatus.js +20 -20
  55. package/dist/model/DeviceDfuStatusPage.js +12 -13
  56. package/dist/model/DeviceSession.js +221 -221
  57. package/dist/model/DeviceTowerInfo.js +14 -14
  58. package/dist/model/DeviceUsage.js +32 -32
  59. package/dist/model/DfuActionRequest.js +7 -7
  60. package/dist/model/EmailNotification.js +7 -7
  61. package/dist/model/EnvTreeJsonNode.js +67 -69
  62. package/dist/model/EnvVar.js +18 -18
  63. package/dist/model/EnvironmentVariables.js +8 -8
  64. package/dist/model/Error.js +31 -31
  65. package/dist/model/Event.js +248 -248
  66. package/dist/model/Filter.js +16 -16
  67. package/dist/model/Firmware.js +49 -49
  68. package/dist/model/FirmwareInfo.js +68 -68
  69. package/dist/model/Fleet.js +38 -38
  70. package/dist/model/FleetConnectivityAssurance.js +5 -5
  71. package/dist/model/GetAlerts200Response.js +14 -15
  72. package/dist/model/GetBillingAccount200Response.js +25 -25
  73. package/dist/model/GetBillingAccount200ResponsePlan.js +22 -22
  74. package/dist/model/GetBillingAccountBalanceHistory200Response.js +9 -10
  75. package/dist/model/GetBillingAccountBalanceHistory200ResponseDataInner.js +17 -17
  76. package/dist/model/GetBillingAccounts200Response.js +9 -10
  77. package/dist/model/GetDataUsage200Response.js +12 -13
  78. package/dist/model/GetDataUsage200ResponseDataInner.js +43 -44
  79. package/dist/model/GetDbNote200Response.js +13 -13
  80. package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +16 -16
  81. package/dist/model/GetDeviceFleets200Response.js +11 -12
  82. package/dist/model/GetDeviceHealthLog200Response.js +11 -12
  83. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
  84. package/dist/model/GetDeviceLatestEvents200Response.js +9 -10
  85. package/dist/model/GetDevicePlans200Response.js +9 -10
  86. package/dist/model/GetDevicePublicKey200Response.js +16 -16
  87. package/dist/model/GetDevicePublicKeys200Response.js +16 -17
  88. package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
  89. package/dist/model/GetDeviceSessions200Response.js +16 -17
  90. package/dist/model/GetDevices200Response.js +16 -17
  91. package/dist/model/GetEvents200Response.js +20 -21
  92. package/dist/model/GetEventsByCursor200Response.js +23 -24
  93. package/dist/model/GetJobRuns200Response.js +11 -12
  94. package/dist/model/GetJobs200Response.js +11 -12
  95. package/dist/model/GetNotefile200Response.js +11 -11
  96. package/dist/model/GetProducts200Response.js +9 -10
  97. package/dist/model/GetProjectMembers200Response.js +11 -12
  98. package/dist/model/GetProjectSecretsResponse.js +131 -0
  99. package/dist/model/GetProjects200Response.js +9 -10
  100. package/dist/model/GetRouteLogsUsage200Response.js +14 -15
  101. package/dist/model/GetSessionsUsage200Response.js +15 -16
  102. package/dist/model/GetWebhooks200Response.js +9 -10
  103. package/dist/model/GoogleRoute.js +33 -33
  104. package/dist/model/HttpRoute.js +35 -35
  105. package/dist/model/Job.js +28 -59
  106. package/dist/model/JobRun.js +57 -57
  107. package/dist/model/Location.js +40 -40
  108. package/dist/model/Login200Response.js +7 -7
  109. package/dist/model/LoginRequest.js +12 -12
  110. package/dist/model/Monitor.js +101 -102
  111. package/dist/model/MonitorAlertRoutesInner.js +10 -9
  112. package/dist/model/MqttRoute.js +68 -68
  113. package/dist/model/Note.js +31 -31
  114. package/dist/model/NoteInput.js +9 -9
  115. package/dist/model/Notefile.js +22 -23
  116. package/dist/model/NotefileSchema.js +18 -19
  117. package/dist/model/NotehubRoute.js +103 -103
  118. package/dist/model/NotehubRouteSummary.js +23 -23
  119. package/dist/model/OAuth2Error.js +20 -20
  120. package/dist/model/OAuth2TokenResponse.js +23 -23
  121. package/dist/model/PersonalAccessToken.js +34 -34
  122. package/dist/model/PersonalAccessTokenCreatedBy.js +17 -17
  123. package/dist/model/PersonalAccessTokenInfo.js +18 -18
  124. package/dist/model/PersonalAccessTokenSecret.js +12 -12
  125. package/dist/model/Product.js +26 -26
  126. package/dist/model/Project.js +34 -34
  127. package/dist/model/ProjectMember.js +22 -22
  128. package/dist/model/ProjectSecret.js +164 -0
  129. package/dist/model/ProvisionDeviceRequest.js +18 -18
  130. package/dist/model/ProxyRoute.js +29 -29
  131. package/dist/model/QubitroRoute.js +33 -33
  132. package/dist/model/RadRoute.js +31 -31
  133. package/dist/model/Repository.js +22 -22
  134. package/dist/model/Role.js +9 -9
  135. package/dist/model/RouteLog.js +38 -38
  136. package/dist/model/RouteTransformSettings.js +18 -18
  137. package/dist/model/RunJob200Response.js +8 -8
  138. package/dist/model/S3ArchiveRoute.js +79 -79
  139. package/dist/model/SatelliteDataUsage.js +18 -18
  140. package/dist/model/SatellitePlan.js +29 -29
  141. package/dist/model/SchemaProperty.js +36 -38
  142. package/dist/model/SignalDevice200Response.js +5 -5
  143. package/dist/model/SimUsage.js +19 -19
  144. package/dist/model/SlackBearerNotification.js +25 -25
  145. package/dist/model/SlackRoute.js +48 -48
  146. package/dist/model/SlackWebHookNotification.js +20 -20
  147. package/dist/model/SnowflakeRoute.js +45 -45
  148. package/dist/model/SnowpipeStreamingRoute.js +60 -60
  149. package/dist/model/ThingworxRoute.js +33 -33
  150. package/dist/model/TowerLocation.js +54 -54
  151. package/dist/model/TwilioRoute.js +43 -43
  152. package/dist/model/UpdateFleetRequest.js +33 -33
  153. package/dist/model/UpdateHostFirmwareRequest.js +17 -17
  154. package/dist/model/UpdateProjectSecretRequest.js +115 -0
  155. package/dist/model/UploadMetadata.js +64 -64
  156. package/dist/model/UsageData.js +33 -33
  157. package/dist/model/UsageEventsData.js +49 -49
  158. package/dist/model/UsageEventsResponse.js +14 -15
  159. package/dist/model/UsageRouteLogsData.js +30 -30
  160. package/dist/model/UsageSessionsData.js +43 -43
  161. package/dist/model/UserDfuStateMachine.js +20 -20
  162. package/dist/model/UserDfuStateMachineStatus.js +20 -20
  163. package/dist/model/UserFirmwareInfo.js +12 -12
  164. package/dist/model/WebhookSettings.js +15 -15
  165. package/package.json +3 -3
@@ -22,7 +22,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
22
22
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
23
23
  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); } /**
24
24
  * Notehub API
25
- * The OpenAPI definition for the Notehub.io API.
25
+ * The OpenAPI definition for the Notehub.io API.
26
26
  *
27
27
  * The version of the OpenAPI document: 1.2.0
28
28
  * Contact: engineering@blues.io
@@ -33,18 +33,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
33
33
  *
34
34
  */
35
35
  /**
36
- * Jobs service.
37
- * @module api/JobsApi
38
- * @version 6.2.0-beta.1
39
- */
36
+ * Jobs service.
37
+ * @module api/JobsApi
38
+ * @version 6.2.0-beta.2
39
+ */
40
40
  var JobsApi = exports["default"] = /*#__PURE__*/function () {
41
41
  /**
42
- * Constructs a new JobsApi.
43
- * @alias module:api/JobsApi
44
- * @class
45
- * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
46
- * default to {@link module:ApiClient#instance} if unspecified.
47
- */
42
+ * Constructs a new JobsApi.
43
+ * @alias module:api/JobsApi
44
+ * @class
45
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
46
+ * default to {@link module:ApiClient#instance} if unspecified.
47
+ */
48
48
  function JobsApi(apiClient) {
49
49
  _classCallCheck(this, JobsApi);
50
50
  this.apiClient = apiClient || _ApiClient["default"].instance;
@@ -52,7 +52,7 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
52
52
 
53
53
  /**
54
54
  * Cancel a running job execution
55
- * @param {String} projectOrProductUID
55
+ * @param {String} projectOrProductUID
56
56
  * @param {String} reportUID Unique identifier for a job run report
57
57
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CancelJobRun200Response} and HTTP response
58
58
  */
@@ -69,22 +69,22 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
69
69
  throw new _Error["default"]("Missing the required parameter 'reportUID' when calling cancelJobRun");
70
70
  }
71
71
  var pathParams = {
72
- 'projectOrProductUID': projectOrProductUID,
73
- 'reportUID': reportUID
72
+ projectOrProductUID: projectOrProductUID,
73
+ reportUID: reportUID
74
74
  };
75
75
  var queryParams = {};
76
76
  var headerParams = {};
77
77
  var formParams = {};
78
- var authNames = ['personalAccessToken'];
78
+ var authNames = ["personalAccessToken"];
79
79
  var contentTypes = [];
80
- var accepts = ['application/json'];
80
+ var accepts = ["application/json"];
81
81
  var returnType = _CancelJobRun200Response["default"];
82
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/jobs/runs/{reportUID}/cancel', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
82
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/jobs/runs/{reportUID}/cancel", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
83
83
  }
84
84
 
85
85
  /**
86
86
  * Cancel a running job execution
87
- * @param {String} projectOrProductUID
87
+ * @param {String} projectOrProductUID
88
88
  * @param {String} reportUID Unique identifier for a job run report
89
89
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CancelJobRun200Response}
90
90
  */
@@ -98,7 +98,7 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
98
98
 
99
99
  /**
100
100
  * Create a new batch job with an optional name
101
- * @param {String} projectOrProductUID
101
+ * @param {String} projectOrProductUID
102
102
  * @param {String} name Name for the job
103
103
  * @param {Object.<String, Object>} body The job definition as raw JSON
104
104
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateJob201Response} and HTTP response
@@ -120,23 +120,23 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
120
120
  throw new _Error["default"]("Missing the required parameter 'body' when calling createJob");
121
121
  }
122
122
  var pathParams = {
123
- 'projectOrProductUID': projectOrProductUID
123
+ projectOrProductUID: projectOrProductUID
124
124
  };
125
125
  var queryParams = {
126
- 'name': name
126
+ name: name
127
127
  };
128
128
  var headerParams = {};
129
129
  var formParams = {};
130
- var authNames = ['personalAccessToken'];
131
- var contentTypes = ['application/json'];
132
- var accepts = ['application/json'];
130
+ var authNames = ["personalAccessToken"];
131
+ var contentTypes = ["application/json"];
132
+ var accepts = ["application/json"];
133
133
  var returnType = _CreateJob201Response["default"];
134
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/jobs', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
134
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/jobs", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
135
135
  }
136
136
 
137
137
  /**
138
138
  * Create a new batch job with an optional name
139
- * @param {String} projectOrProductUID
139
+ * @param {String} projectOrProductUID
140
140
  * @param {String} name Name for the job
141
141
  * @param {Object.<String, Object>} body The job definition as raw JSON
142
142
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateJob201Response}
@@ -151,7 +151,7 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
151
151
 
152
152
  /**
153
153
  * Delete a batch job
154
- * @param {String} projectOrProductUID
154
+ * @param {String} projectOrProductUID
155
155
  * @param {String} jobUID Unique identifier for a batch job
156
156
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteJob200Response} and HTTP response
157
157
  */
@@ -168,22 +168,22 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
168
168
  throw new _Error["default"]("Missing the required parameter 'jobUID' when calling deleteJob");
169
169
  }
170
170
  var pathParams = {
171
- 'projectOrProductUID': projectOrProductUID,
172
- 'jobUID': jobUID
171
+ projectOrProductUID: projectOrProductUID,
172
+ jobUID: jobUID
173
173
  };
174
174
  var queryParams = {};
175
175
  var headerParams = {};
176
176
  var formParams = {};
177
- var authNames = ['personalAccessToken'];
177
+ var authNames = ["personalAccessToken"];
178
178
  var contentTypes = [];
179
- var accepts = ['application/json'];
179
+ var accepts = ["application/json"];
180
180
  var returnType = _DeleteJob200Response["default"];
181
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/jobs/{jobUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
181
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/jobs/{jobUID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
182
182
  }
183
183
 
184
184
  /**
185
185
  * Delete a batch job
186
- * @param {String} projectOrProductUID
186
+ * @param {String} projectOrProductUID
187
187
  * @param {String} jobUID Unique identifier for a batch job
188
188
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteJob200Response}
189
189
  */
@@ -195,55 +195,9 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
195
195
  });
196
196
  }
197
197
 
198
- /**
199
- * Delete the results of a job run
200
- * @param {String} projectOrProductUID
201
- * @param {String} reportUID Unique identifier for a job run report
202
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
203
- */
204
- }, {
205
- key: "deleteJobRunWithHttpInfo",
206
- value: function deleteJobRunWithHttpInfo(projectOrProductUID, reportUID) {
207
- var postBody = null;
208
- // verify the required parameter 'projectOrProductUID' is set
209
- if (projectOrProductUID === undefined || projectOrProductUID === null) {
210
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteJobRun");
211
- }
212
- // verify the required parameter 'reportUID' is set
213
- if (reportUID === undefined || reportUID === null) {
214
- throw new _Error["default"]("Missing the required parameter 'reportUID' when calling deleteJobRun");
215
- }
216
- var pathParams = {
217
- 'projectOrProductUID': projectOrProductUID,
218
- 'reportUID': reportUID
219
- };
220
- var queryParams = {};
221
- var headerParams = {};
222
- var formParams = {};
223
- var authNames = ['personalAccessToken'];
224
- var contentTypes = [];
225
- var accepts = ['application/json'];
226
- var returnType = null;
227
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/jobs/runs/{reportUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
228
- }
229
-
230
- /**
231
- * Delete the results of a job run
232
- * @param {String} projectOrProductUID
233
- * @param {String} reportUID Unique identifier for a job run report
234
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}
235
- */
236
- }, {
237
- key: "deleteJobRun",
238
- value: function deleteJobRun(projectOrProductUID, reportUID) {
239
- return this.deleteJobRunWithHttpInfo(projectOrProductUID, reportUID).then(function (response_and_data) {
240
- return response_and_data.data;
241
- });
242
- }
243
-
244
198
  /**
245
199
  * Get a specific batch job definition
246
- * @param {String} projectOrProductUID
200
+ * @param {String} projectOrProductUID
247
201
  * @param {String} jobUID Unique identifier for a batch job
248
202
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Job} and HTTP response
249
203
  */
@@ -260,22 +214,22 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
260
214
  throw new _Error["default"]("Missing the required parameter 'jobUID' when calling getJob");
261
215
  }
262
216
  var pathParams = {
263
- 'projectOrProductUID': projectOrProductUID,
264
- 'jobUID': jobUID
217
+ projectOrProductUID: projectOrProductUID,
218
+ jobUID: jobUID
265
219
  };
266
220
  var queryParams = {};
267
221
  var headerParams = {};
268
222
  var formParams = {};
269
- var authNames = ['personalAccessToken'];
223
+ var authNames = ["personalAccessToken"];
270
224
  var contentTypes = [];
271
- var accepts = ['application/json'];
225
+ var accepts = ["application/json"];
272
226
  var returnType = _Job["default"];
273
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/jobs/{jobUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
227
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/jobs/{jobUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
274
228
  }
275
229
 
276
230
  /**
277
231
  * Get a specific batch job definition
278
- * @param {String} projectOrProductUID
232
+ * @param {String} projectOrProductUID
279
233
  * @param {String} jobUID Unique identifier for a batch job
280
234
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Job}
281
235
  */
@@ -289,16 +243,13 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
289
243
 
290
244
  /**
291
245
  * Get the result of a job execution
292
- * @param {String} projectOrProductUID
246
+ * @param {String} projectOrProductUID
293
247
  * @param {String} reportUID Unique identifier for a job run report
294
- * @param {Object} opts Optional parameters
295
- * @param {module:model/String} opts.view Controls the level of detail returned: 'summary' returns metadata only, 'detail' returns the full result payload (default to 'summary')
296
248
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/JobRun} and HTTP response
297
249
  */
298
250
  }, {
299
251
  key: "getJobRunWithHttpInfo",
300
- value: function getJobRunWithHttpInfo(projectOrProductUID, reportUID, opts) {
301
- opts = opts || {};
252
+ value: function getJobRunWithHttpInfo(projectOrProductUID, reportUID) {
302
253
  var postBody = null;
303
254
  // verify the required parameter 'projectOrProductUID' is set
304
255
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
@@ -309,40 +260,36 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
309
260
  throw new _Error["default"]("Missing the required parameter 'reportUID' when calling getJobRun");
310
261
  }
311
262
  var pathParams = {
312
- 'projectOrProductUID': projectOrProductUID,
313
- 'reportUID': reportUID
314
- };
315
- var queryParams = {
316
- 'view': opts['view']
263
+ projectOrProductUID: projectOrProductUID,
264
+ reportUID: reportUID
317
265
  };
266
+ var queryParams = {};
318
267
  var headerParams = {};
319
268
  var formParams = {};
320
- var authNames = ['personalAccessToken'];
269
+ var authNames = ["personalAccessToken"];
321
270
  var contentTypes = [];
322
- var accepts = ['application/json'];
271
+ var accepts = ["application/json"];
323
272
  var returnType = _JobRun["default"];
324
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/jobs/runs/{reportUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
273
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/jobs/runs/{reportUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
325
274
  }
326
275
 
327
276
  /**
328
277
  * Get the result of a job execution
329
- * @param {String} projectOrProductUID
278
+ * @param {String} projectOrProductUID
330
279
  * @param {String} reportUID Unique identifier for a job run report
331
- * @param {Object} opts Optional parameters
332
- * @param {module:model/String} opts.view Controls the level of detail returned: 'summary' returns metadata only, 'detail' returns the full result payload (default to 'summary')
333
280
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/JobRun}
334
281
  */
335
282
  }, {
336
283
  key: "getJobRun",
337
- value: function getJobRun(projectOrProductUID, reportUID, opts) {
338
- return this.getJobRunWithHttpInfo(projectOrProductUID, reportUID, opts).then(function (response_and_data) {
284
+ value: function getJobRun(projectOrProductUID, reportUID) {
285
+ return this.getJobRunWithHttpInfo(projectOrProductUID, reportUID).then(function (response_and_data) {
339
286
  return response_and_data.data;
340
287
  });
341
288
  }
342
289
 
343
290
  /**
344
291
  * List all runs for a specific job
345
- * @param {String} projectOrProductUID
292
+ * @param {String} projectOrProductUID
346
293
  * @param {String} jobUID Unique identifier for a batch job
347
294
  * @param {Object} opts Optional parameters
348
295
  * @param {String} opts.status Filter runs by status
@@ -363,25 +310,25 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
363
310
  throw new _Error["default"]("Missing the required parameter 'jobUID' when calling getJobRuns");
364
311
  }
365
312
  var pathParams = {
366
- 'projectOrProductUID': projectOrProductUID,
367
- 'jobUID': jobUID
313
+ projectOrProductUID: projectOrProductUID,
314
+ jobUID: jobUID
368
315
  };
369
316
  var queryParams = {
370
- 'status': opts['status'],
371
- 'dry_run': opts['dryRun']
317
+ status: opts["status"],
318
+ dry_run: opts["dryRun"]
372
319
  };
373
320
  var headerParams = {};
374
321
  var formParams = {};
375
- var authNames = ['personalAccessToken'];
322
+ var authNames = ["personalAccessToken"];
376
323
  var contentTypes = [];
377
- var accepts = ['application/json'];
324
+ var accepts = ["application/json"];
378
325
  var returnType = _GetJobRuns200Response["default"];
379
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/jobs/{jobUID}/runs', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
326
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/jobs/{jobUID}/runs", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
380
327
  }
381
328
 
382
329
  /**
383
330
  * List all runs for a specific job
384
- * @param {String} projectOrProductUID
331
+ * @param {String} projectOrProductUID
385
332
  * @param {String} jobUID Unique identifier for a batch job
386
333
  * @param {Object} opts Optional parameters
387
334
  * @param {String} opts.status Filter runs by status
@@ -398,7 +345,7 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
398
345
 
399
346
  /**
400
347
  * List all batch jobs for a project
401
- * @param {String} projectOrProductUID
348
+ * @param {String} projectOrProductUID
402
349
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetJobs200Response} and HTTP response
403
350
  */
404
351
  }, {
@@ -410,21 +357,21 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
410
357
  throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getJobs");
411
358
  }
412
359
  var pathParams = {
413
- 'projectOrProductUID': projectOrProductUID
360
+ projectOrProductUID: projectOrProductUID
414
361
  };
415
362
  var queryParams = {};
416
363
  var headerParams = {};
417
364
  var formParams = {};
418
- var authNames = ['personalAccessToken'];
365
+ var authNames = ["personalAccessToken"];
419
366
  var contentTypes = [];
420
- var accepts = ['application/json'];
367
+ var accepts = ["application/json"];
421
368
  var returnType = _GetJobs200Response["default"];
422
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/jobs', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
369
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/jobs", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
423
370
  }
424
371
 
425
372
  /**
426
373
  * List all batch jobs for a project
427
- * @param {String} projectOrProductUID
374
+ * @param {String} projectOrProductUID
428
375
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetJobs200Response}
429
376
  */
430
377
  }, {
@@ -437,7 +384,7 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
437
384
 
438
385
  /**
439
386
  * Execute a batch job
440
- * @param {String} projectOrProductUID
387
+ * @param {String} projectOrProductUID
441
388
  * @param {String} jobUID Unique identifier for a batch job
442
389
  * @param {Object} opts Optional parameters
443
390
  * @param {Boolean} opts.dryRun Run job in dry-run mode without making actual changes (default to false)
@@ -457,24 +404,24 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
457
404
  throw new _Error["default"]("Missing the required parameter 'jobUID' when calling runJob");
458
405
  }
459
406
  var pathParams = {
460
- 'projectOrProductUID': projectOrProductUID,
461
- 'jobUID': jobUID
407
+ projectOrProductUID: projectOrProductUID,
408
+ jobUID: jobUID
462
409
  };
463
410
  var queryParams = {
464
- 'dry_run': opts['dryRun']
411
+ dry_run: opts["dryRun"]
465
412
  };
466
413
  var headerParams = {};
467
414
  var formParams = {};
468
- var authNames = ['personalAccessToken'];
415
+ var authNames = ["personalAccessToken"];
469
416
  var contentTypes = [];
470
- var accepts = ['application/json'];
417
+ var accepts = ["application/json"];
471
418
  var returnType = _RunJob200Response["default"];
472
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/jobs/{jobUID}/run', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
419
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/jobs/{jobUID}/run", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
473
420
  }
474
421
 
475
422
  /**
476
423
  * Execute a batch job
477
- * @param {String} projectOrProductUID
424
+ * @param {String} projectOrProductUID
478
425
  * @param {String} jobUID Unique identifier for a batch job
479
426
  * @param {Object} opts Optional parameters
480
427
  * @param {Boolean} opts.dryRun Run job in dry-run mode without making actual changes (default to false)
@@ -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
- * Monitor service.
31
- * @module api/MonitorApi
32
- * @version 6.2.0-beta.1
33
- */
30
+ * Monitor service.
31
+ * @module api/MonitorApi
32
+ * @version 6.2.0-beta.2
33
+ */
34
34
  var MonitorApi = exports["default"] = /*#__PURE__*/function () {
35
35
  /**
36
- * Constructs a new MonitorApi.
37
- * @alias module:api/MonitorApi
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 MonitorApi.
37
+ * @alias module:api/MonitorApi
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 MonitorApi(apiClient) {
43
43
  _classCallCheck(this, MonitorApi);
44
44
  this.apiClient = apiClient || _ApiClient["default"].instance;
@@ -46,7 +46,7 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
46
46
 
47
47
  /**
48
48
  * Create a new Monitor
49
- * @param {String} projectOrProductUID
49
+ * @param {String} projectOrProductUID
50
50
  * @param {module:model/Monitor} body Body or payload of monitor to be created
51
51
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Monitor} and HTTP response
52
52
  */
@@ -63,21 +63,21 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
63
63
  throw new _Error["default"]("Missing the required parameter 'body' when calling createMonitor");
64
64
  }
65
65
  var pathParams = {
66
- 'projectOrProductUID': projectOrProductUID
66
+ projectOrProductUID: projectOrProductUID
67
67
  };
68
68
  var queryParams = {};
69
69
  var headerParams = {};
70
70
  var formParams = {};
71
- var authNames = ['personalAccessToken'];
72
- var contentTypes = ['application/json'];
73
- var accepts = ['application/json'];
71
+ var authNames = ["personalAccessToken"];
72
+ var contentTypes = ["application/json"];
73
+ var accepts = ["application/json"];
74
74
  var returnType = _Monitor["default"];
75
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/monitors', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
75
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/monitors", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
76
76
  }
77
77
 
78
78
  /**
79
79
  * Create a new Monitor
80
- * @param {String} projectOrProductUID
80
+ * @param {String} projectOrProductUID
81
81
  * @param {module:model/Monitor} body Body or payload of monitor to be created
82
82
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Monitor}
83
83
  */
@@ -91,8 +91,8 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
91
91
 
92
92
  /**
93
93
  * Delete Monitor
94
- * @param {String} projectOrProductUID
95
- * @param {String} monitorUID
94
+ * @param {String} projectOrProductUID
95
+ * @param {String} monitorUID
96
96
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Monitor} and HTTP response
97
97
  */
98
98
  }, {
@@ -108,23 +108,23 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
108
108
  throw new _Error["default"]("Missing the required parameter 'monitorUID' when calling deleteMonitor");
109
109
  }
110
110
  var pathParams = {
111
- 'projectOrProductUID': projectOrProductUID,
112
- 'monitorUID': monitorUID
111
+ projectOrProductUID: projectOrProductUID,
112
+ monitorUID: monitorUID
113
113
  };
114
114
  var queryParams = {};
115
115
  var headerParams = {};
116
116
  var formParams = {};
117
- var authNames = ['personalAccessToken'];
117
+ var authNames = ["personalAccessToken"];
118
118
  var contentTypes = [];
119
- var accepts = ['application/json'];
119
+ var accepts = ["application/json"];
120
120
  var returnType = _Monitor["default"];
121
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/monitors/{monitorUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
121
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/monitors/{monitorUID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
122
122
  }
123
123
 
124
124
  /**
125
125
  * Delete Monitor
126
- * @param {String} projectOrProductUID
127
- * @param {String} monitorUID
126
+ * @param {String} projectOrProductUID
127
+ * @param {String} monitorUID
128
128
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Monitor}
129
129
  */
130
130
  }, {
@@ -137,8 +137,8 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
137
137
 
138
138
  /**
139
139
  * Get Monitor
140
- * @param {String} projectOrProductUID
141
- * @param {String} monitorUID
140
+ * @param {String} projectOrProductUID
141
+ * @param {String} monitorUID
142
142
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Monitor} and HTTP response
143
143
  */
144
144
  }, {
@@ -154,23 +154,23 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
154
154
  throw new _Error["default"]("Missing the required parameter 'monitorUID' when calling getMonitor");
155
155
  }
156
156
  var pathParams = {
157
- 'projectOrProductUID': projectOrProductUID,
158
- 'monitorUID': monitorUID
157
+ projectOrProductUID: projectOrProductUID,
158
+ monitorUID: monitorUID
159
159
  };
160
160
  var queryParams = {};
161
161
  var headerParams = {};
162
162
  var formParams = {};
163
- var authNames = ['personalAccessToken'];
163
+ var authNames = ["personalAccessToken"];
164
164
  var contentTypes = [];
165
- var accepts = ['application/json'];
165
+ var accepts = ["application/json"];
166
166
  var returnType = _Monitor["default"];
167
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/monitors/{monitorUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
167
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/monitors/{monitorUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
168
168
  }
169
169
 
170
170
  /**
171
171
  * Get Monitor
172
- * @param {String} projectOrProductUID
173
- * @param {String} monitorUID
172
+ * @param {String} projectOrProductUID
173
+ * @param {String} monitorUID
174
174
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Monitor}
175
175
  */
176
176
  }, {
@@ -183,7 +183,7 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
183
183
 
184
184
  /**
185
185
  * Get list of defined Monitors
186
- * @param {String} projectOrProductUID
186
+ * @param {String} projectOrProductUID
187
187
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/Monitor>} and HTTP response
188
188
  */
189
189
  }, {
@@ -195,21 +195,21 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
195
195
  throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getMonitors");
196
196
  }
197
197
  var pathParams = {
198
- 'projectOrProductUID': projectOrProductUID
198
+ projectOrProductUID: projectOrProductUID
199
199
  };
200
200
  var queryParams = {};
201
201
  var headerParams = {};
202
202
  var formParams = {};
203
- var authNames = ['personalAccessToken'];
203
+ var authNames = ["personalAccessToken"];
204
204
  var contentTypes = [];
205
- var accepts = ['application/json'];
205
+ var accepts = ["application/json"];
206
206
  var returnType = [_Monitor["default"]];
207
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/monitors', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
207
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/monitors", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
208
208
  }
209
209
 
210
210
  /**
211
211
  * Get list of defined Monitors
212
- * @param {String} projectOrProductUID
212
+ * @param {String} projectOrProductUID
213
213
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/Monitor>}
214
214
  */
215
215
  }, {
@@ -222,8 +222,8 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
222
222
 
223
223
  /**
224
224
  * Update Monitor
225
- * @param {String} projectOrProductUID
226
- * @param {String} monitorUID
225
+ * @param {String} projectOrProductUID
226
+ * @param {String} monitorUID
227
227
  * @param {module:model/Monitor} monitor Body or payload of monitor to be created
228
228
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Monitor} and HTTP response
229
229
  */
@@ -244,23 +244,23 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
244
244
  throw new _Error["default"]("Missing the required parameter 'monitor' when calling updateMonitor");
245
245
  }
246
246
  var pathParams = {
247
- 'projectOrProductUID': projectOrProductUID,
248
- 'monitorUID': monitorUID
247
+ projectOrProductUID: projectOrProductUID,
248
+ monitorUID: monitorUID
249
249
  };
250
250
  var queryParams = {};
251
251
  var headerParams = {};
252
252
  var formParams = {};
253
- var authNames = ['personalAccessToken'];
254
- var contentTypes = ['application/json'];
255
- var accepts = ['application/json'];
253
+ var authNames = ["personalAccessToken"];
254
+ var contentTypes = ["application/json"];
255
+ var accepts = ["application/json"];
256
256
  var returnType = _Monitor["default"];
257
- return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/monitors/{monitorUID}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
257
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/monitors/{monitorUID}", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
258
258
  }
259
259
 
260
260
  /**
261
261
  * Update Monitor
262
- * @param {String} projectOrProductUID
263
- * @param {String} monitorUID
262
+ * @param {String} projectOrProductUID
263
+ * @param {String} monitorUID
264
264
  * @param {module:model/Monitor} monitor Body or payload of monitor to be created
265
265
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Monitor}
266
266
  */