@blues-inc/notehub-js 6.2.0-beta.2 → 6.2.0-beta.3

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 +285 -293
  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 +30 -30
  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 +127 -74
  10. package/dist/api/MonitorApi.js +52 -52
  11. package/dist/api/ProjectApi.js +403 -702
  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 +0 -35
  16. package/dist/model/AWSRoleConfig.js +14 -14
  17. package/dist/model/AddDeviceToFleetsRequest.js +8 -8
  18. package/dist/model/Alert.js +76 -74
  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 +128 -127
  34. package/dist/model/CreateProductRequest.js +22 -22
  35. package/dist/model/CreateProjectRequest.js +16 -16
  36. package/dist/model/CreateUpdateRepository.js +17 -17
  37. package/dist/model/CurrentFirmware.js +12 -12
  38. package/dist/model/DFUEnv.js +12 -12
  39. package/dist/model/DFUState.js +65 -65
  40. package/dist/model/DataField.js +7 -7
  41. package/dist/model/DataSetField.js +19 -19
  42. package/dist/model/DataUsage.js +14 -14
  43. package/dist/model/DatacakeRoute.js +35 -35
  44. package/dist/model/DeleteDeviceFromFleetsRequest.js +8 -8
  45. package/dist/model/DeleteJob200Response.js +6 -6
  46. package/dist/model/DeleteNotefilesRequest.js +7 -7
  47. package/dist/model/Device.js +107 -106
  48. package/dist/model/DeviceDfuHistory.js +20 -19
  49. package/dist/model/DeviceDfuHistoryCurrent.js +32 -32
  50. package/dist/model/DeviceDfuHistoryPage.js +13 -12
  51. package/dist/model/DeviceDfuStateMachine.js +25 -24
  52. package/dist/model/DeviceDfuStateMachineNode.js +22 -22
  53. package/dist/model/DeviceDfuStatus.js +20 -20
  54. package/dist/model/DeviceDfuStatusPage.js +13 -12
  55. package/dist/model/DeviceSession.js +221 -221
  56. package/dist/model/DeviceTowerInfo.js +14 -14
  57. package/dist/model/DeviceUsage.js +32 -32
  58. package/dist/model/DfuActionRequest.js +7 -7
  59. package/dist/model/EmailNotification.js +7 -7
  60. package/dist/model/EnvTreeJsonNode.js +69 -67
  61. package/dist/model/EnvVar.js +18 -18
  62. package/dist/model/EnvironmentVariables.js +8 -8
  63. package/dist/model/Error.js +31 -31
  64. package/dist/model/Event.js +248 -248
  65. package/dist/model/Filter.js +16 -16
  66. package/dist/model/Firmware.js +49 -49
  67. package/dist/model/FirmwareInfo.js +68 -68
  68. package/dist/model/Fleet.js +38 -38
  69. package/dist/model/FleetConnectivityAssurance.js +5 -5
  70. package/dist/model/GetAlerts200Response.js +15 -14
  71. package/dist/model/GetBillingAccount200Response.js +25 -25
  72. package/dist/model/GetBillingAccount200ResponsePlan.js +22 -22
  73. package/dist/model/GetBillingAccountBalanceHistory200Response.js +10 -9
  74. package/dist/model/GetBillingAccountBalanceHistory200ResponseDataInner.js +17 -17
  75. package/dist/model/GetBillingAccounts200Response.js +10 -9
  76. package/dist/model/GetDataUsage200Response.js +13 -12
  77. package/dist/model/GetDataUsage200ResponseDataInner.js +44 -43
  78. package/dist/model/GetDbNote200Response.js +13 -13
  79. package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +16 -16
  80. package/dist/model/GetDeviceFleets200Response.js +12 -11
  81. package/dist/model/GetDeviceHealthLog200Response.js +12 -11
  82. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
  83. package/dist/model/GetDeviceLatestEvents200Response.js +10 -9
  84. package/dist/model/GetDevicePlans200Response.js +10 -9
  85. package/dist/model/GetDevicePublicKey200Response.js +16 -16
  86. package/dist/model/GetDevicePublicKeys200Response.js +17 -16
  87. package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
  88. package/dist/model/GetDeviceSessions200Response.js +17 -16
  89. package/dist/model/GetDevices200Response.js +17 -16
  90. package/dist/model/GetEvents200Response.js +21 -20
  91. package/dist/model/GetEventsByCursor200Response.js +24 -23
  92. package/dist/model/GetJobRuns200Response.js +12 -11
  93. package/dist/model/GetJobs200Response.js +12 -11
  94. package/dist/model/GetNotefile200Response.js +11 -11
  95. package/dist/model/GetProducts200Response.js +10 -9
  96. package/dist/model/GetProjectMembers200Response.js +12 -11
  97. package/dist/model/GetProjects200Response.js +10 -9
  98. package/dist/model/GetRouteLogsUsage200Response.js +15 -14
  99. package/dist/model/GetSessionsUsage200Response.js +16 -15
  100. package/dist/model/GetWebhooks200Response.js +10 -9
  101. package/dist/model/GoogleRoute.js +33 -33
  102. package/dist/model/HttpRoute.js +35 -35
  103. package/dist/model/Job.js +50 -28
  104. package/dist/model/JobRun.js +57 -57
  105. package/dist/model/Location.js +40 -40
  106. package/dist/model/Login200Response.js +7 -7
  107. package/dist/model/LoginRequest.js +12 -12
  108. package/dist/model/Monitor.js +102 -101
  109. package/dist/model/MonitorAlertRoutesInner.js +9 -10
  110. package/dist/model/MqttRoute.js +68 -68
  111. package/dist/model/Note.js +31 -31
  112. package/dist/model/NoteInput.js +9 -9
  113. package/dist/model/Notefile.js +23 -22
  114. package/dist/model/NotefileSchema.js +19 -18
  115. package/dist/model/NotehubRoute.js +103 -103
  116. package/dist/model/NotehubRouteSummary.js +23 -23
  117. package/dist/model/OAuth2Error.js +20 -20
  118. package/dist/model/OAuth2TokenResponse.js +23 -23
  119. package/dist/model/PersonalAccessToken.js +34 -34
  120. package/dist/model/PersonalAccessTokenCreatedBy.js +17 -17
  121. package/dist/model/PersonalAccessTokenInfo.js +18 -18
  122. package/dist/model/PersonalAccessTokenSecret.js +12 -12
  123. package/dist/model/Product.js +26 -26
  124. package/dist/model/Project.js +34 -34
  125. package/dist/model/ProjectMember.js +22 -22
  126. package/dist/model/ProvisionDeviceRequest.js +18 -18
  127. package/dist/model/ProxyRoute.js +29 -29
  128. package/dist/model/QubitroRoute.js +33 -33
  129. package/dist/model/RadRoute.js +31 -31
  130. package/dist/model/Repository.js +22 -22
  131. package/dist/model/Role.js +9 -9
  132. package/dist/model/RouteLog.js +38 -38
  133. package/dist/model/RouteTransformSettings.js +18 -18
  134. package/dist/model/RunJob200Response.js +8 -8
  135. package/dist/model/S3ArchiveRoute.js +79 -79
  136. package/dist/model/SatelliteDataUsage.js +18 -18
  137. package/dist/model/SatellitePlan.js +29 -29
  138. package/dist/model/SchemaProperty.js +38 -36
  139. package/dist/model/SignalDevice200Response.js +5 -5
  140. package/dist/model/SimUsage.js +19 -19
  141. package/dist/model/SlackBearerNotification.js +25 -25
  142. package/dist/model/SlackRoute.js +48 -48
  143. package/dist/model/SlackWebHookNotification.js +20 -20
  144. package/dist/model/SnowflakeRoute.js +45 -45
  145. package/dist/model/SnowpipeStreamingRoute.js +60 -60
  146. package/dist/model/ThingworxRoute.js +33 -33
  147. package/dist/model/TowerLocation.js +54 -54
  148. package/dist/model/TwilioRoute.js +43 -43
  149. package/dist/model/UpdateFleetRequest.js +33 -33
  150. package/dist/model/UploadMetadata.js +64 -64
  151. package/dist/model/UsageData.js +33 -33
  152. package/dist/model/UsageEventsData.js +49 -49
  153. package/dist/model/UsageEventsResponse.js +15 -14
  154. package/dist/model/UsageRouteLogsData.js +30 -30
  155. package/dist/model/UsageSessionsData.js +43 -43
  156. package/dist/model/UserDfuStateMachine.js +20 -20
  157. package/dist/model/UserDfuStateMachineStatus.js +20 -20
  158. package/dist/model/UserFirmwareInfo.js +12 -12
  159. package/dist/model/WebhookSettings.js +15 -15
  160. package/package.json +3 -3
  161. package/dist/model/CreateProjectSecretRequest.js +0 -130
  162. package/dist/model/GetProjectSecretsResponse.js +0 -131
  163. package/dist/model/ProjectSecret.js +0 -164
  164. package/dist/model/UpdateHostFirmwareRequest.js +0 -117
  165. package/dist/model/UpdateProjectSecretRequest.js +0 -115
@@ -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.2
39
- */
36
+ * Jobs service.
37
+ * @module api/JobsApi
38
+ * @version 6.2.0-beta.3
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,9 +195,55 @@ 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
+
198
244
  /**
199
245
  * Get a specific batch job definition
200
- * @param {String} projectOrProductUID
246
+ * @param {String} projectOrProductUID
201
247
  * @param {String} jobUID Unique identifier for a batch job
202
248
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Job} and HTTP response
203
249
  */
@@ -214,22 +260,22 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
214
260
  throw new _Error["default"]("Missing the required parameter 'jobUID' when calling getJob");
215
261
  }
216
262
  var pathParams = {
217
- projectOrProductUID: projectOrProductUID,
218
- jobUID: jobUID
263
+ 'projectOrProductUID': projectOrProductUID,
264
+ 'jobUID': jobUID
219
265
  };
220
266
  var queryParams = {};
221
267
  var headerParams = {};
222
268
  var formParams = {};
223
- var authNames = ["personalAccessToken"];
269
+ var authNames = ['personalAccessToken'];
224
270
  var contentTypes = [];
225
- var accepts = ["application/json"];
271
+ var accepts = ['application/json'];
226
272
  var returnType = _Job["default"];
227
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/jobs/{jobUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
273
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/jobs/{jobUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
228
274
  }
229
275
 
230
276
  /**
231
277
  * Get a specific batch job definition
232
- * @param {String} projectOrProductUID
278
+ * @param {String} projectOrProductUID
233
279
  * @param {String} jobUID Unique identifier for a batch job
234
280
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Job}
235
281
  */
@@ -243,13 +289,16 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
243
289
 
244
290
  /**
245
291
  * Get the result of a job execution
246
- * @param {String} projectOrProductUID
292
+ * @param {String} projectOrProductUID
247
293
  * @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')
248
296
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/JobRun} and HTTP response
249
297
  */
250
298
  }, {
251
299
  key: "getJobRunWithHttpInfo",
252
- value: function getJobRunWithHttpInfo(projectOrProductUID, reportUID) {
300
+ value: function getJobRunWithHttpInfo(projectOrProductUID, reportUID, opts) {
301
+ opts = opts || {};
253
302
  var postBody = null;
254
303
  // verify the required parameter 'projectOrProductUID' is set
255
304
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
@@ -260,36 +309,40 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
260
309
  throw new _Error["default"]("Missing the required parameter 'reportUID' when calling getJobRun");
261
310
  }
262
311
  var pathParams = {
263
- projectOrProductUID: projectOrProductUID,
264
- reportUID: reportUID
312
+ 'projectOrProductUID': projectOrProductUID,
313
+ 'reportUID': reportUID
314
+ };
315
+ var queryParams = {
316
+ 'view': opts['view']
265
317
  };
266
- var queryParams = {};
267
318
  var headerParams = {};
268
319
  var formParams = {};
269
- var authNames = ["personalAccessToken"];
320
+ var authNames = ['personalAccessToken'];
270
321
  var contentTypes = [];
271
- var accepts = ["application/json"];
322
+ var accepts = ['application/json'];
272
323
  var returnType = _JobRun["default"];
273
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/jobs/runs/{reportUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
324
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/jobs/runs/{reportUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
274
325
  }
275
326
 
276
327
  /**
277
328
  * Get the result of a job execution
278
- * @param {String} projectOrProductUID
329
+ * @param {String} projectOrProductUID
279
330
  * @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')
280
333
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/JobRun}
281
334
  */
282
335
  }, {
283
336
  key: "getJobRun",
284
- value: function getJobRun(projectOrProductUID, reportUID) {
285
- return this.getJobRunWithHttpInfo(projectOrProductUID, reportUID).then(function (response_and_data) {
337
+ value: function getJobRun(projectOrProductUID, reportUID, opts) {
338
+ return this.getJobRunWithHttpInfo(projectOrProductUID, reportUID, opts).then(function (response_and_data) {
286
339
  return response_and_data.data;
287
340
  });
288
341
  }
289
342
 
290
343
  /**
291
344
  * List all runs for a specific job
292
- * @param {String} projectOrProductUID
345
+ * @param {String} projectOrProductUID
293
346
  * @param {String} jobUID Unique identifier for a batch job
294
347
  * @param {Object} opts Optional parameters
295
348
  * @param {String} opts.status Filter runs by status
@@ -310,25 +363,25 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
310
363
  throw new _Error["default"]("Missing the required parameter 'jobUID' when calling getJobRuns");
311
364
  }
312
365
  var pathParams = {
313
- projectOrProductUID: projectOrProductUID,
314
- jobUID: jobUID
366
+ 'projectOrProductUID': projectOrProductUID,
367
+ 'jobUID': jobUID
315
368
  };
316
369
  var queryParams = {
317
- status: opts["status"],
318
- dry_run: opts["dryRun"]
370
+ 'status': opts['status'],
371
+ 'dry_run': opts['dryRun']
319
372
  };
320
373
  var headerParams = {};
321
374
  var formParams = {};
322
- var authNames = ["personalAccessToken"];
375
+ var authNames = ['personalAccessToken'];
323
376
  var contentTypes = [];
324
- var accepts = ["application/json"];
377
+ var accepts = ['application/json'];
325
378
  var returnType = _GetJobRuns200Response["default"];
326
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/jobs/{jobUID}/runs", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
379
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/jobs/{jobUID}/runs', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
327
380
  }
328
381
 
329
382
  /**
330
383
  * List all runs for a specific job
331
- * @param {String} projectOrProductUID
384
+ * @param {String} projectOrProductUID
332
385
  * @param {String} jobUID Unique identifier for a batch job
333
386
  * @param {Object} opts Optional parameters
334
387
  * @param {String} opts.status Filter runs by status
@@ -345,7 +398,7 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
345
398
 
346
399
  /**
347
400
  * List all batch jobs for a project
348
- * @param {String} projectOrProductUID
401
+ * @param {String} projectOrProductUID
349
402
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetJobs200Response} and HTTP response
350
403
  */
351
404
  }, {
@@ -357,21 +410,21 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
357
410
  throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getJobs");
358
411
  }
359
412
  var pathParams = {
360
- projectOrProductUID: projectOrProductUID
413
+ 'projectOrProductUID': projectOrProductUID
361
414
  };
362
415
  var queryParams = {};
363
416
  var headerParams = {};
364
417
  var formParams = {};
365
- var authNames = ["personalAccessToken"];
418
+ var authNames = ['personalAccessToken'];
366
419
  var contentTypes = [];
367
- var accepts = ["application/json"];
420
+ var accepts = ['application/json'];
368
421
  var returnType = _GetJobs200Response["default"];
369
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/jobs", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
422
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/jobs', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
370
423
  }
371
424
 
372
425
  /**
373
426
  * List all batch jobs for a project
374
- * @param {String} projectOrProductUID
427
+ * @param {String} projectOrProductUID
375
428
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetJobs200Response}
376
429
  */
377
430
  }, {
@@ -384,7 +437,7 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
384
437
 
385
438
  /**
386
439
  * Execute a batch job
387
- * @param {String} projectOrProductUID
440
+ * @param {String} projectOrProductUID
388
441
  * @param {String} jobUID Unique identifier for a batch job
389
442
  * @param {Object} opts Optional parameters
390
443
  * @param {Boolean} opts.dryRun Run job in dry-run mode without making actual changes (default to false)
@@ -404,24 +457,24 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
404
457
  throw new _Error["default"]("Missing the required parameter 'jobUID' when calling runJob");
405
458
  }
406
459
  var pathParams = {
407
- projectOrProductUID: projectOrProductUID,
408
- jobUID: jobUID
460
+ 'projectOrProductUID': projectOrProductUID,
461
+ 'jobUID': jobUID
409
462
  };
410
463
  var queryParams = {
411
- dry_run: opts["dryRun"]
464
+ 'dry_run': opts['dryRun']
412
465
  };
413
466
  var headerParams = {};
414
467
  var formParams = {};
415
- var authNames = ["personalAccessToken"];
468
+ var authNames = ['personalAccessToken'];
416
469
  var contentTypes = [];
417
- var accepts = ["application/json"];
470
+ var accepts = ['application/json'];
418
471
  var returnType = _RunJob200Response["default"];
419
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/jobs/{jobUID}/run", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
472
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/jobs/{jobUID}/run', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
420
473
  }
421
474
 
422
475
  /**
423
476
  * Execute a batch job
424
- * @param {String} projectOrProductUID
477
+ * @param {String} projectOrProductUID
425
478
  * @param {String} jobUID Unique identifier for a batch job
426
479
  * @param {Object} opts Optional parameters
427
480
  * @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.2
33
- */
30
+ * Monitor service.
31
+ * @module api/MonitorApi
32
+ * @version 6.2.0-beta.3
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
  */