@blues-inc/notehub-js 6.0.0-beta.41 → 6.0.0-beta.43

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 (158) hide show
  1. package/README.md +18 -1
  2. package/dist/ApiClient.js +2 -2
  3. package/dist/api/AlertApi.js +1 -1
  4. package/dist/api/AuthorizationApi.js +1 -1
  5. package/dist/api/BillingAccountApi.js +1 -1
  6. package/dist/api/DeviceApi.js +1 -1
  7. package/dist/api/EventApi.js +1 -1
  8. package/dist/api/ExternalDevicesApi.js +1 -1
  9. package/dist/api/JobsApi.js +491 -0
  10. package/dist/api/MonitorApi.js +1 -1
  11. package/dist/api/ProjectApi.js +1 -1
  12. package/dist/api/RouteApi.js +1 -1
  13. package/dist/api/UsageApi.js +1 -1
  14. package/dist/api/WebhookApi.js +1 -1
  15. package/dist/index.js +63 -0
  16. package/dist/model/AWSRoleConfig.js +1 -1
  17. package/dist/model/AddDeviceToFleetsRequest.js +1 -1
  18. package/dist/model/Alert.js +1 -1
  19. package/dist/model/AlertDataInner.js +1 -1
  20. package/dist/model/AlertNotificationsInner.js +1 -1
  21. package/dist/model/AwsRoute.js +1 -1
  22. package/dist/model/AzureRoute.js +1 -1
  23. package/dist/model/BillingAccount.js +1 -1
  24. package/dist/model/BlynkRoute.js +1 -1
  25. package/dist/model/Body.js +1 -1
  26. package/dist/model/CancelJobRun200Response.js +111 -0
  27. package/dist/model/CellularPlan.js +1 -1
  28. package/dist/model/CloneProjectRequest.js +1 -1
  29. package/dist/model/Contact.js +1 -1
  30. package/dist/model/CreateFleetRequest.js +1 -1
  31. package/dist/model/CreateJob201Response.js +115 -0
  32. package/dist/model/CreateMonitor.js +1 -1
  33. package/dist/model/CreateProductRequest.js +1 -1
  34. package/dist/model/CreateProjectRequest.js +1 -1
  35. package/dist/model/CreateUpdateRepository.js +1 -1
  36. package/dist/model/CurrentFirmware.js +1 -1
  37. package/dist/model/DFUEnv.js +1 -1
  38. package/dist/model/DFUState.js +1 -1
  39. package/dist/model/DataField.js +1 -1
  40. package/dist/model/DataSetField.js +1 -1
  41. package/dist/model/DataUsage.js +1 -1
  42. package/dist/model/DatacakeRoute.js +1 -1
  43. package/dist/model/DeleteDeviceFromFleetsRequest.js +1 -1
  44. package/dist/model/DeleteJob200Response.js +111 -0
  45. package/dist/model/DeleteNotefilesRequest.js +1 -1
  46. package/dist/model/Device.js +1 -1
  47. package/dist/model/DeviceDfuHistory.js +1 -1
  48. package/dist/model/DeviceDfuHistoryCurrent.js +1 -1
  49. package/dist/model/DeviceDfuHistoryPage.js +1 -1
  50. package/dist/model/DeviceDfuStateMachine.js +1 -1
  51. package/dist/model/DeviceDfuStateMachineNode.js +1 -1
  52. package/dist/model/DeviceDfuStatus.js +1 -1
  53. package/dist/model/DeviceDfuStatusPage.js +1 -1
  54. package/dist/model/DeviceSession.js +1 -1
  55. package/dist/model/DeviceTowerInfo.js +1 -1
  56. package/dist/model/DeviceUsage.js +1 -1
  57. package/dist/model/DfuActionRequest.js +1 -1
  58. package/dist/model/EmailNotification.js +1 -1
  59. package/dist/model/EnvTreeJsonNode.js +1 -1
  60. package/dist/model/EnvVar.js +1 -1
  61. package/dist/model/EnvironmentVariables.js +1 -1
  62. package/dist/model/Error.js +1 -1
  63. package/dist/model/Event.js +1 -1
  64. package/dist/model/Filter.js +1 -1
  65. package/dist/model/Firmware.js +1 -1
  66. package/dist/model/FirmwareInfo.js +1 -1
  67. package/dist/model/Fleet.js +1 -1
  68. package/dist/model/FleetConnectivityAssurance.js +1 -1
  69. package/dist/model/GetAlerts200Response.js +1 -1
  70. package/dist/model/GetBillingAccount200Response.js +1 -1
  71. package/dist/model/GetBillingAccount200ResponsePlan.js +1 -1
  72. package/dist/model/GetBillingAccountBalanceHistory200Response.js +1 -1
  73. package/dist/model/GetBillingAccountBalanceHistory200ResponseDataInner.js +15 -5
  74. package/dist/model/GetBillingAccounts200Response.js +1 -1
  75. package/dist/model/GetDataUsage200Response.js +1 -1
  76. package/dist/model/GetDataUsage200ResponseDataInner.js +1 -1
  77. package/dist/model/GetDbNote200Response.js +1 -1
  78. package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +1 -1
  79. package/dist/model/GetDeviceFleets200Response.js +1 -1
  80. package/dist/model/GetDeviceHealthLog200Response.js +1 -1
  81. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +1 -1
  82. package/dist/model/GetDeviceLatestEvents200Response.js +1 -1
  83. package/dist/model/GetDevicePlans200Response.js +1 -1
  84. package/dist/model/GetDevicePublicKey200Response.js +1 -1
  85. package/dist/model/GetDevicePublicKeys200Response.js +1 -1
  86. package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +1 -1
  87. package/dist/model/GetDeviceSessions200Response.js +1 -1
  88. package/dist/model/GetDevices200Response.js +1 -1
  89. package/dist/model/GetEvents200Response.js +1 -1
  90. package/dist/model/GetEventsByCursor200Response.js +1 -1
  91. package/dist/model/GetJobRuns200Response.js +132 -0
  92. package/dist/model/GetJobs200Response.js +132 -0
  93. package/dist/model/GetNotefile200Response.js +1 -1
  94. package/dist/model/GetProducts200Response.js +1 -1
  95. package/dist/model/GetProjectMembers200Response.js +1 -1
  96. package/dist/model/GetProjects200Response.js +1 -1
  97. package/dist/model/GetRouteLogsUsage200Response.js +1 -1
  98. package/dist/model/GetSessionsUsage200Response.js +1 -1
  99. package/dist/model/GetWebhooks200Response.js +1 -1
  100. package/dist/model/GoogleRoute.js +1 -1
  101. package/dist/model/HttpRoute.js +1 -1
  102. package/dist/model/Job.js +189 -0
  103. package/dist/model/JobRun.js +246 -0
  104. package/dist/model/Location.js +1 -1
  105. package/dist/model/Login200Response.js +1 -1
  106. package/dist/model/LoginRequest.js +1 -1
  107. package/dist/model/Monitor.js +1 -1
  108. package/dist/model/MonitorAlertRoutesInner.js +1 -1
  109. package/dist/model/MqttRoute.js +1 -1
  110. package/dist/model/Note.js +1 -1
  111. package/dist/model/NoteInput.js +1 -1
  112. package/dist/model/Notefile.js +1 -1
  113. package/dist/model/NotefileSchema.js +1 -1
  114. package/dist/model/NotehubRoute.js +1 -1
  115. package/dist/model/NotehubRouteSummary.js +1 -1
  116. package/dist/model/OAuth2Error.js +1 -1
  117. package/dist/model/OAuth2TokenResponse.js +1 -1
  118. package/dist/model/PersonalAccessToken.js +1 -1
  119. package/dist/model/PersonalAccessTokenCreatedBy.js +1 -1
  120. package/dist/model/PersonalAccessTokenInfo.js +1 -1
  121. package/dist/model/PersonalAccessTokenSecret.js +1 -1
  122. package/dist/model/Product.js +1 -1
  123. package/dist/model/Project.js +1 -1
  124. package/dist/model/ProjectMember.js +1 -1
  125. package/dist/model/ProvisionDeviceRequest.js +1 -1
  126. package/dist/model/ProxyRoute.js +1 -1
  127. package/dist/model/QubitroRoute.js +1 -1
  128. package/dist/model/RadRoute.js +1 -1
  129. package/dist/model/Repository.js +1 -1
  130. package/dist/model/RouteLog.js +1 -1
  131. package/dist/model/RouteTransformSettings.js +1 -1
  132. package/dist/model/RunJob200Response.js +115 -0
  133. package/dist/model/S3ArchiveRoute.js +1 -1
  134. package/dist/model/SatelliteDataUsage.js +1 -1
  135. package/dist/model/SatellitePlan.js +1 -1
  136. package/dist/model/SchemaProperty.js +1 -1
  137. package/dist/model/SignalDevice200Response.js +1 -1
  138. package/dist/model/SimUsage.js +1 -1
  139. package/dist/model/SlackBearerNotification.js +1 -1
  140. package/dist/model/SlackRoute.js +1 -1
  141. package/dist/model/SlackWebHookNotification.js +1 -1
  142. package/dist/model/SnowflakeRoute.js +1 -1
  143. package/dist/model/SnowpipeStreamingRoute.js +1 -1
  144. package/dist/model/ThingworxRoute.js +1 -1
  145. package/dist/model/TowerLocation.js +1 -1
  146. package/dist/model/TwilioRoute.js +1 -1
  147. package/dist/model/UpdateFleetRequest.js +1 -1
  148. package/dist/model/UploadMetadata.js +1 -1
  149. package/dist/model/UsageData.js +1 -1
  150. package/dist/model/UsageEventsData.js +1 -1
  151. package/dist/model/UsageEventsResponse.js +1 -1
  152. package/dist/model/UsageRouteLogsData.js +1 -1
  153. package/dist/model/UsageSessionsData.js +1 -1
  154. package/dist/model/UserDfuStateMachine.js +1 -1
  155. package/dist/model/UserDfuStateMachineStatus.js +1 -1
  156. package/dist/model/UserFirmwareInfo.js +1 -1
  157. package/dist/model/WebhookSettings.js +1 -1
  158. package/package.json +1 -1
package/README.md CHANGED
@@ -6,7 +6,7 @@ The OpenAPI definition for the Notehub.io API.
6
6
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
7
7
 
8
8
  - API version: 1.2.0
9
- - Package version: 6.0.0-beta.41
9
+ - Package version: 6.0.0-beta.43
10
10
  - Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
11
11
  For more information, please visit [https://dev.blues.io/support/](https://dev.blues.io/support/)
12
12
 
@@ -172,6 +172,15 @@ Class | Method | HTTP request | Description
172
172
  *NotehubJs.ExternalDevicesApi* | [**createEventExtDevice**](docs/ExternalDevicesApi.md#createEventExtDevice) | **POST** /v1/products/{productUID}/ext-devices/{deviceUID}/event |
173
173
  *NotehubJs.ExternalDevicesApi* | [**extDeviceSessionClose**](docs/ExternalDevicesApi.md#extDeviceSessionClose) | **POST** /v1/products/{productUID}/ext-devices/{deviceUID}/session/close |
174
174
  *NotehubJs.ExternalDevicesApi* | [**extDeviceSessionOpen**](docs/ExternalDevicesApi.md#extDeviceSessionOpen) | **POST** /v1/products/{productUID}/ext-devices/{deviceUID}/session/open |
175
+ *NotehubJs.JobsApi* | [**cancelJobRun**](docs/JobsApi.md#cancelJobRun) | **POST** /v1/projects/{projectOrProductUID}/jobs/runs/{reportUID}/cancel |
176
+ *NotehubJs.JobsApi* | [**createJob**](docs/JobsApi.md#createJob) | **POST** /v1/projects/{projectOrProductUID}/jobs |
177
+ *NotehubJs.JobsApi* | [**deleteJob**](docs/JobsApi.md#deleteJob) | **DELETE** /v1/projects/{projectOrProductUID}/jobs/{jobUID} |
178
+ *NotehubJs.JobsApi* | [**deleteJobRun**](docs/JobsApi.md#deleteJobRun) | **DELETE** /v1/projects/{projectOrProductUID}/jobs/runs/{reportUID} |
179
+ *NotehubJs.JobsApi* | [**getJob**](docs/JobsApi.md#getJob) | **GET** /v1/projects/{projectOrProductUID}/jobs/{jobUID} |
180
+ *NotehubJs.JobsApi* | [**getJobRun**](docs/JobsApi.md#getJobRun) | **GET** /v1/projects/{projectOrProductUID}/jobs/runs/{reportUID} |
181
+ *NotehubJs.JobsApi* | [**getJobRuns**](docs/JobsApi.md#getJobRuns) | **GET** /v1/projects/{projectOrProductUID}/jobs/{jobUID}/runs |
182
+ *NotehubJs.JobsApi* | [**getJobs**](docs/JobsApi.md#getJobs) | **GET** /v1/projects/{projectOrProductUID}/jobs |
183
+ *NotehubJs.JobsApi* | [**runJob**](docs/JobsApi.md#runJob) | **POST** /v1/projects/{projectOrProductUID}/jobs/{jobUID}/run |
175
184
  *NotehubJs.MonitorApi* | [**createMonitor**](docs/MonitorApi.md#createMonitor) | **POST** /v1/projects/{projectOrProductUID}/monitors |
176
185
  *NotehubJs.MonitorApi* | [**deleteMonitor**](docs/MonitorApi.md#deleteMonitor) | **DELETE** /v1/projects/{projectOrProductUID}/monitors/{monitorUID} |
177
186
  *NotehubJs.MonitorApi* | [**getMonitor**](docs/MonitorApi.md#getMonitor) | **GET** /v1/projects/{projectOrProductUID}/monitors/{monitorUID} |
@@ -246,10 +255,12 @@ Class | Method | HTTP request | Description
246
255
  - [NotehubJs.BillingAccountRole](docs/BillingAccountRole.md)
247
256
  - [NotehubJs.BlynkRoute](docs/BlynkRoute.md)
248
257
  - [NotehubJs.Body](docs/Body.md)
258
+ - [NotehubJs.CancelJobRun200Response](docs/CancelJobRun200Response.md)
249
259
  - [NotehubJs.CellularPlan](docs/CellularPlan.md)
250
260
  - [NotehubJs.CloneProjectRequest](docs/CloneProjectRequest.md)
251
261
  - [NotehubJs.Contact](docs/Contact.md)
252
262
  - [NotehubJs.CreateFleetRequest](docs/CreateFleetRequest.md)
263
+ - [NotehubJs.CreateJob201Response](docs/CreateJob201Response.md)
253
264
  - [NotehubJs.CreateMonitor](docs/CreateMonitor.md)
254
265
  - [NotehubJs.CreateProductRequest](docs/CreateProductRequest.md)
255
266
  - [NotehubJs.CreateProjectRequest](docs/CreateProjectRequest.md)
@@ -262,6 +273,7 @@ Class | Method | HTTP request | Description
262
273
  - [NotehubJs.DataUsage](docs/DataUsage.md)
263
274
  - [NotehubJs.DatacakeRoute](docs/DatacakeRoute.md)
264
275
  - [NotehubJs.DeleteDeviceFromFleetsRequest](docs/DeleteDeviceFromFleetsRequest.md)
276
+ - [NotehubJs.DeleteJob200Response](docs/DeleteJob200Response.md)
265
277
  - [NotehubJs.DeleteNotefilesRequest](docs/DeleteNotefilesRequest.md)
266
278
  - [NotehubJs.Device](docs/Device.md)
267
279
  - [NotehubJs.DeviceDfuHistory](docs/DeviceDfuHistory.md)
@@ -308,6 +320,8 @@ Class | Method | HTTP request | Description
308
320
  - [NotehubJs.GetDevices200Response](docs/GetDevices200Response.md)
309
321
  - [NotehubJs.GetEvents200Response](docs/GetEvents200Response.md)
310
322
  - [NotehubJs.GetEventsByCursor200Response](docs/GetEventsByCursor200Response.md)
323
+ - [NotehubJs.GetJobRuns200Response](docs/GetJobRuns200Response.md)
324
+ - [NotehubJs.GetJobs200Response](docs/GetJobs200Response.md)
311
325
  - [NotehubJs.GetNotefile200Response](docs/GetNotefile200Response.md)
312
326
  - [NotehubJs.GetProducts200Response](docs/GetProducts200Response.md)
313
327
  - [NotehubJs.GetProjectMembers200Response](docs/GetProjectMembers200Response.md)
@@ -317,6 +331,8 @@ Class | Method | HTTP request | Description
317
331
  - [NotehubJs.GetWebhooks200Response](docs/GetWebhooks200Response.md)
318
332
  - [NotehubJs.GoogleRoute](docs/GoogleRoute.md)
319
333
  - [NotehubJs.HttpRoute](docs/HttpRoute.md)
334
+ - [NotehubJs.Job](docs/Job.md)
335
+ - [NotehubJs.JobRun](docs/JobRun.md)
320
336
  - [NotehubJs.Location](docs/Location.md)
321
337
  - [NotehubJs.Login200Response](docs/Login200Response.md)
322
338
  - [NotehubJs.LoginRequest](docs/LoginRequest.md)
@@ -346,6 +362,7 @@ Class | Method | HTTP request | Description
346
362
  - [NotehubJs.Role](docs/Role.md)
347
363
  - [NotehubJs.RouteLog](docs/RouteLog.md)
348
364
  - [NotehubJs.RouteTransformSettings](docs/RouteTransformSettings.md)
365
+ - [NotehubJs.RunJob200Response](docs/RunJob200Response.md)
349
366
  - [NotehubJs.S3ArchiveRoute](docs/S3ArchiveRoute.md)
350
367
  - [NotehubJs.SatelliteDataUsage](docs/SatelliteDataUsage.md)
351
368
  - [NotehubJs.SatellitePlan](docs/SatellitePlan.md)
package/dist/ApiClient.js CHANGED
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  */
27
27
  /**
28
28
  * @module ApiClient
29
- * @version 6.0.0-beta.41
29
+ * @version 6.0.0-beta.43
30
30
  */
31
31
  /**
32
32
  * Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
@@ -68,7 +68,7 @@ var ApiClient = /*#__PURE__*/function () {
68
68
  */
69
69
  this.defaultHeaders = {};
70
70
  if (typeof window === 'undefined') {
71
- this.defaultHeaders['User-Agent'] = 'OpenAPI-Generator/6.0.0-beta.41/Javascript';
71
+ this.defaultHeaders['User-Agent'] = 'OpenAPI-Generator/6.0.0-beta.43/Javascript';
72
72
  }
73
73
 
74
74
  /**
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
28
28
  /**
29
29
  * Alert service.
30
30
  * @module api/AlertApi
31
- * @version 6.0.0-beta.41
31
+ * @version 6.0.0-beta.43
32
32
  */
33
33
  var AlertApi = exports["default"] = /*#__PURE__*/function () {
34
34
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * Authorization service.
32
32
  * @module api/AuthorizationApi
33
- * @version 6.0.0-beta.41
33
+ * @version 6.0.0-beta.43
34
34
  */
35
35
  var AuthorizationApi = exports["default"] = /*#__PURE__*/function () {
36
36
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * BillingAccount service.
32
32
  * @module api/BillingAccountApi
33
- * @version 6.0.0-beta.41
33
+ * @version 6.0.0-beta.43
34
34
  */
35
35
  var BillingAccountApi = exports["default"] = /*#__PURE__*/function () {
36
36
  /**
@@ -46,7 +46,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
46
46
  /**
47
47
  * Device service.
48
48
  * @module api/DeviceApi
49
- * @version 6.0.0-beta.41
49
+ * @version 6.0.0-beta.43
50
50
  */
51
51
  var DeviceApi = exports["default"] = /*#__PURE__*/function () {
52
52
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * Event service.
32
32
  * @module api/EventApi
33
- * @version 6.0.0-beta.41
33
+ * @version 6.0.0-beta.43
34
34
  */
35
35
  var EventApi = exports["default"] = /*#__PURE__*/function () {
36
36
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * ExternalDevices service.
31
31
  * @module api/ExternalDevicesApi
32
- * @version 6.0.0-beta.41
32
+ * @version 6.0.0-beta.43
33
33
  */
34
34
  var ExternalDevicesApi = exports["default"] = /*#__PURE__*/function () {
35
35
  /**
@@ -0,0 +1,491 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _CancelJobRun200Response = _interopRequireDefault(require("../model/CancelJobRun200Response"));
9
+ var _CreateJob201Response = _interopRequireDefault(require("../model/CreateJob201Response"));
10
+ var _DeleteJob200Response = _interopRequireDefault(require("../model/DeleteJob200Response"));
11
+ var _Error = _interopRequireDefault(require("../model/Error"));
12
+ var _GetJobRuns200Response = _interopRequireDefault(require("../model/GetJobRuns200Response"));
13
+ var _GetJobs200Response = _interopRequireDefault(require("../model/GetJobs200Response"));
14
+ var _Job = _interopRequireDefault(require("../model/Job"));
15
+ var _JobRun = _interopRequireDefault(require("../model/JobRun"));
16
+ var _RunJob200Response = _interopRequireDefault(require("../model/RunJob200Response"));
17
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
18
+ 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); }
19
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
20
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
21
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
22
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
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
+ * Notehub API
25
+ * The OpenAPI definition for the Notehub.io API.
26
+ *
27
+ * The version of the OpenAPI document: 1.2.0
28
+ * Contact: engineering@blues.io
29
+ *
30
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
31
+ * https://openapi-generator.tech
32
+ * Do not edit the class manually.
33
+ *
34
+ */
35
+ /**
36
+ * Jobs service.
37
+ * @module api/JobsApi
38
+ * @version 6.0.0-beta.43
39
+ */
40
+ var JobsApi = exports["default"] = /*#__PURE__*/function () {
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
+ */
48
+ function JobsApi(apiClient) {
49
+ _classCallCheck(this, JobsApi);
50
+ this.apiClient = apiClient || _ApiClient["default"].instance;
51
+ }
52
+
53
+ /**
54
+ * Cancel a running job execution
55
+ * @param {String} projectOrProductUID
56
+ * @param {String} reportUID Unique identifier for a job run report
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
+ */
59
+ return _createClass(JobsApi, [{
60
+ key: "cancelJobRunWithHttpInfo",
61
+ value: function cancelJobRunWithHttpInfo(projectOrProductUID, reportUID) {
62
+ var postBody = null;
63
+ // verify the required parameter 'projectOrProductUID' is set
64
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
65
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling cancelJobRun");
66
+ }
67
+ // verify the required parameter 'reportUID' is set
68
+ if (reportUID === undefined || reportUID === null) {
69
+ throw new _Error["default"]("Missing the required parameter 'reportUID' when calling cancelJobRun");
70
+ }
71
+ var pathParams = {
72
+ 'projectOrProductUID': projectOrProductUID,
73
+ 'reportUID': reportUID
74
+ };
75
+ var queryParams = {};
76
+ var headerParams = {};
77
+ var formParams = {};
78
+ var authNames = ['personalAccessToken'];
79
+ var contentTypes = [];
80
+ var accepts = ['application/json'];
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);
83
+ }
84
+
85
+ /**
86
+ * Cancel a running job execution
87
+ * @param {String} projectOrProductUID
88
+ * @param {String} reportUID Unique identifier for a job run report
89
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CancelJobRun200Response}
90
+ */
91
+ }, {
92
+ key: "cancelJobRun",
93
+ value: function cancelJobRun(projectOrProductUID, reportUID) {
94
+ return this.cancelJobRunWithHttpInfo(projectOrProductUID, reportUID).then(function (response_and_data) {
95
+ return response_and_data.data;
96
+ });
97
+ }
98
+
99
+ /**
100
+ * Create a new batch job with an optional name
101
+ * @param {String} projectOrProductUID
102
+ * @param {String} name Name for the job
103
+ * @param {Object.<String, Object>} body The job definition as raw JSON
104
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateJob201Response} and HTTP response
105
+ */
106
+ }, {
107
+ key: "createJobWithHttpInfo",
108
+ value: function createJobWithHttpInfo(projectOrProductUID, name, body) {
109
+ var postBody = body;
110
+ // verify the required parameter 'projectOrProductUID' is set
111
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
112
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling createJob");
113
+ }
114
+ // verify the required parameter 'name' is set
115
+ if (name === undefined || name === null) {
116
+ throw new _Error["default"]("Missing the required parameter 'name' when calling createJob");
117
+ }
118
+ // verify the required parameter 'body' is set
119
+ if (body === undefined || body === null) {
120
+ throw new _Error["default"]("Missing the required parameter 'body' when calling createJob");
121
+ }
122
+ var pathParams = {
123
+ 'projectOrProductUID': projectOrProductUID
124
+ };
125
+ var queryParams = {
126
+ 'name': name
127
+ };
128
+ var headerParams = {};
129
+ var formParams = {};
130
+ var authNames = ['personalAccessToken'];
131
+ var contentTypes = ['application/json'];
132
+ var accepts = ['application/json'];
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);
135
+ }
136
+
137
+ /**
138
+ * Create a new batch job with an optional name
139
+ * @param {String} projectOrProductUID
140
+ * @param {String} name Name for the job
141
+ * @param {Object.<String, Object>} body The job definition as raw JSON
142
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateJob201Response}
143
+ */
144
+ }, {
145
+ key: "createJob",
146
+ value: function createJob(projectOrProductUID, name, body) {
147
+ return this.createJobWithHttpInfo(projectOrProductUID, name, body).then(function (response_and_data) {
148
+ return response_and_data.data;
149
+ });
150
+ }
151
+
152
+ /**
153
+ * Delete a batch job
154
+ * @param {String} projectOrProductUID
155
+ * @param {String} jobUID Unique identifier for a batch job
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
+ */
158
+ }, {
159
+ key: "deleteJobWithHttpInfo",
160
+ value: function deleteJobWithHttpInfo(projectOrProductUID, jobUID) {
161
+ var postBody = null;
162
+ // verify the required parameter 'projectOrProductUID' is set
163
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
164
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteJob");
165
+ }
166
+ // verify the required parameter 'jobUID' is set
167
+ if (jobUID === undefined || jobUID === null) {
168
+ throw new _Error["default"]("Missing the required parameter 'jobUID' when calling deleteJob");
169
+ }
170
+ var pathParams = {
171
+ 'projectOrProductUID': projectOrProductUID,
172
+ 'jobUID': jobUID
173
+ };
174
+ var queryParams = {};
175
+ var headerParams = {};
176
+ var formParams = {};
177
+ var authNames = ['personalAccessToken'];
178
+ var contentTypes = [];
179
+ var accepts = ['application/json'];
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);
182
+ }
183
+
184
+ /**
185
+ * Delete a batch job
186
+ * @param {String} projectOrProductUID
187
+ * @param {String} jobUID Unique identifier for a batch job
188
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteJob200Response}
189
+ */
190
+ }, {
191
+ key: "deleteJob",
192
+ value: function deleteJob(projectOrProductUID, jobUID) {
193
+ return this.deleteJobWithHttpInfo(projectOrProductUID, jobUID).then(function (response_and_data) {
194
+ return response_and_data.data;
195
+ });
196
+ }
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
+ /**
245
+ * Get a specific batch job definition
246
+ * @param {String} projectOrProductUID
247
+ * @param {String} jobUID Unique identifier for a batch job
248
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Job} and HTTP response
249
+ */
250
+ }, {
251
+ key: "getJobWithHttpInfo",
252
+ value: function getJobWithHttpInfo(projectOrProductUID, jobUID) {
253
+ var postBody = null;
254
+ // verify the required parameter 'projectOrProductUID' is set
255
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
256
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getJob");
257
+ }
258
+ // verify the required parameter 'jobUID' is set
259
+ if (jobUID === undefined || jobUID === null) {
260
+ throw new _Error["default"]("Missing the required parameter 'jobUID' when calling getJob");
261
+ }
262
+ var pathParams = {
263
+ 'projectOrProductUID': projectOrProductUID,
264
+ 'jobUID': jobUID
265
+ };
266
+ var queryParams = {};
267
+ var headerParams = {};
268
+ var formParams = {};
269
+ var authNames = ['personalAccessToken'];
270
+ var contentTypes = [];
271
+ var accepts = ['application/json'];
272
+ 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);
274
+ }
275
+
276
+ /**
277
+ * Get a specific batch job definition
278
+ * @param {String} projectOrProductUID
279
+ * @param {String} jobUID Unique identifier for a batch job
280
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Job}
281
+ */
282
+ }, {
283
+ key: "getJob",
284
+ value: function getJob(projectOrProductUID, jobUID) {
285
+ return this.getJobWithHttpInfo(projectOrProductUID, jobUID).then(function (response_and_data) {
286
+ return response_and_data.data;
287
+ });
288
+ }
289
+
290
+ /**
291
+ * Get the result of a job execution
292
+ * @param {String} projectOrProductUID
293
+ * @param {String} reportUID Unique identifier for a job run report
294
+ * @param {Object} opts Optional parameters
295
+ * @param {Boolean} opts.full If true, return the full job run result payload; if false, return only the summary
296
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/JobRun} and HTTP response
297
+ */
298
+ }, {
299
+ key: "getJobRunWithHttpInfo",
300
+ value: function getJobRunWithHttpInfo(projectOrProductUID, reportUID, opts) {
301
+ opts = opts || {};
302
+ var postBody = null;
303
+ // verify the required parameter 'projectOrProductUID' is set
304
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
305
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getJobRun");
306
+ }
307
+ // verify the required parameter 'reportUID' is set
308
+ if (reportUID === undefined || reportUID === null) {
309
+ throw new _Error["default"]("Missing the required parameter 'reportUID' when calling getJobRun");
310
+ }
311
+ var pathParams = {
312
+ 'projectOrProductUID': projectOrProductUID,
313
+ 'reportUID': reportUID
314
+ };
315
+ var queryParams = {
316
+ 'full': opts['full']
317
+ };
318
+ var headerParams = {};
319
+ var formParams = {};
320
+ var authNames = ['personalAccessToken'];
321
+ var contentTypes = [];
322
+ var accepts = ['application/json'];
323
+ 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);
325
+ }
326
+
327
+ /**
328
+ * Get the result of a job execution
329
+ * @param {String} projectOrProductUID
330
+ * @param {String} reportUID Unique identifier for a job run report
331
+ * @param {Object} opts Optional parameters
332
+ * @param {Boolean} opts.full If true, return the full job run result payload; if false, return only the summary
333
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/JobRun}
334
+ */
335
+ }, {
336
+ key: "getJobRun",
337
+ value: function getJobRun(projectOrProductUID, reportUID, opts) {
338
+ return this.getJobRunWithHttpInfo(projectOrProductUID, reportUID, opts).then(function (response_and_data) {
339
+ return response_and_data.data;
340
+ });
341
+ }
342
+
343
+ /**
344
+ * List all runs for a specific job
345
+ * @param {String} projectOrProductUID
346
+ * @param {String} jobUID Unique identifier for a batch job
347
+ * @param {Object} opts Optional parameters
348
+ * @param {String} opts.status Filter runs by status
349
+ * @param {Boolean} opts.dryRun Filter runs by dry run flag
350
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetJobRuns200Response} and HTTP response
351
+ */
352
+ }, {
353
+ key: "getJobRunsWithHttpInfo",
354
+ value: function getJobRunsWithHttpInfo(projectOrProductUID, jobUID, opts) {
355
+ opts = opts || {};
356
+ var postBody = null;
357
+ // verify the required parameter 'projectOrProductUID' is set
358
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
359
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getJobRuns");
360
+ }
361
+ // verify the required parameter 'jobUID' is set
362
+ if (jobUID === undefined || jobUID === null) {
363
+ throw new _Error["default"]("Missing the required parameter 'jobUID' when calling getJobRuns");
364
+ }
365
+ var pathParams = {
366
+ 'projectOrProductUID': projectOrProductUID,
367
+ 'jobUID': jobUID
368
+ };
369
+ var queryParams = {
370
+ 'status': opts['status'],
371
+ 'dry_run': opts['dryRun']
372
+ };
373
+ var headerParams = {};
374
+ var formParams = {};
375
+ var authNames = ['personalAccessToken'];
376
+ var contentTypes = [];
377
+ var accepts = ['application/json'];
378
+ 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);
380
+ }
381
+
382
+ /**
383
+ * List all runs for a specific job
384
+ * @param {String} projectOrProductUID
385
+ * @param {String} jobUID Unique identifier for a batch job
386
+ * @param {Object} opts Optional parameters
387
+ * @param {String} opts.status Filter runs by status
388
+ * @param {Boolean} opts.dryRun Filter runs by dry run flag
389
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetJobRuns200Response}
390
+ */
391
+ }, {
392
+ key: "getJobRuns",
393
+ value: function getJobRuns(projectOrProductUID, jobUID, opts) {
394
+ return this.getJobRunsWithHttpInfo(projectOrProductUID, jobUID, opts).then(function (response_and_data) {
395
+ return response_and_data.data;
396
+ });
397
+ }
398
+
399
+ /**
400
+ * List all batch jobs for a project
401
+ * @param {String} projectOrProductUID
402
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetJobs200Response} and HTTP response
403
+ */
404
+ }, {
405
+ key: "getJobsWithHttpInfo",
406
+ value: function getJobsWithHttpInfo(projectOrProductUID) {
407
+ var postBody = null;
408
+ // verify the required parameter 'projectOrProductUID' is set
409
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
410
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getJobs");
411
+ }
412
+ var pathParams = {
413
+ 'projectOrProductUID': projectOrProductUID
414
+ };
415
+ var queryParams = {};
416
+ var headerParams = {};
417
+ var formParams = {};
418
+ var authNames = ['personalAccessToken'];
419
+ var contentTypes = [];
420
+ var accepts = ['application/json'];
421
+ var returnType = _GetJobs200Response["default"];
422
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/jobs', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
423
+ }
424
+
425
+ /**
426
+ * List all batch jobs for a project
427
+ * @param {String} projectOrProductUID
428
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetJobs200Response}
429
+ */
430
+ }, {
431
+ key: "getJobs",
432
+ value: function getJobs(projectOrProductUID) {
433
+ return this.getJobsWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
434
+ return response_and_data.data;
435
+ });
436
+ }
437
+
438
+ /**
439
+ * Execute a batch job
440
+ * @param {String} projectOrProductUID
441
+ * @param {String} jobUID Unique identifier for a batch job
442
+ * @param {Object} opts Optional parameters
443
+ * @param {Boolean} opts.dryRun Run job in dry-run mode without making actual changes (default to false)
444
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RunJob200Response} and HTTP response
445
+ */
446
+ }, {
447
+ key: "runJobWithHttpInfo",
448
+ value: function runJobWithHttpInfo(projectOrProductUID, jobUID, opts) {
449
+ opts = opts || {};
450
+ var postBody = null;
451
+ // verify the required parameter 'projectOrProductUID' is set
452
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
453
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling runJob");
454
+ }
455
+ // verify the required parameter 'jobUID' is set
456
+ if (jobUID === undefined || jobUID === null) {
457
+ throw new _Error["default"]("Missing the required parameter 'jobUID' when calling runJob");
458
+ }
459
+ var pathParams = {
460
+ 'projectOrProductUID': projectOrProductUID,
461
+ 'jobUID': jobUID
462
+ };
463
+ var queryParams = {
464
+ 'dry_run': opts['dryRun']
465
+ };
466
+ var headerParams = {};
467
+ var formParams = {};
468
+ var authNames = ['personalAccessToken'];
469
+ var contentTypes = [];
470
+ var accepts = ['application/json'];
471
+ 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);
473
+ }
474
+
475
+ /**
476
+ * Execute a batch job
477
+ * @param {String} projectOrProductUID
478
+ * @param {String} jobUID Unique identifier for a batch job
479
+ * @param {Object} opts Optional parameters
480
+ * @param {Boolean} opts.dryRun Run job in dry-run mode without making actual changes (default to false)
481
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RunJob200Response}
482
+ */
483
+ }, {
484
+ key: "runJob",
485
+ value: function runJob(projectOrProductUID, jobUID, opts) {
486
+ return this.runJobWithHttpInfo(projectOrProductUID, jobUID, opts).then(function (response_and_data) {
487
+ return response_and_data.data;
488
+ });
489
+ }
490
+ }]);
491
+ }();
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * Monitor service.
31
31
  * @module api/MonitorApi
32
- * @version 6.0.0-beta.41
32
+ * @version 6.0.0-beta.43
33
33
  */
34
34
  var MonitorApi = exports["default"] = /*#__PURE__*/function () {
35
35
  /**
@@ -51,7 +51,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
51
51
  /**
52
52
  * Project service.
53
53
  * @module api/ProjectApi
54
- * @version 6.0.0-beta.41
54
+ * @version 6.0.0-beta.43
55
55
  */
56
56
  var ProjectApi = exports["default"] = /*#__PURE__*/function () {
57
57
  /**