@blues-inc/notehub-js 6.0.0 → 6.1.0

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 +126 -101
  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 +93 -3
  6. package/dist/api/DeviceApi.js +58 -2
  7. package/dist/api/EventApi.js +1 -1
  8. package/dist/api/ExternalDevicesApi.js +1 -1
  9. package/dist/api/JobsApi.js +438 -0
  10. package/dist/api/MonitorApi.js +1 -1
  11. package/dist/api/ProjectApi.js +43 -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 +98 -0
  16. package/dist/model/AWSRoleConfig.js +131 -0
  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 +14 -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 +7 -2
  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 +23 -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 +137 -0
  71. package/dist/model/GetBillingAccount200ResponsePlan.js +141 -0
  72. package/dist/model/GetBillingAccountBalanceHistory200Response.js +111 -0
  73. package/dist/model/GetBillingAccountBalanceHistory200ResponseDataInner.js +130 -0
  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 +131 -0
  92. package/dist/model/GetJobs200Response.js +131 -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 +167 -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 +7 -2
  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 +19 -1
  151. package/dist/model/UsageEventsResponse.js +1 -1
  152. package/dist/model/UsageRouteLogsData.js +10 -1
  153. package/dist/model/UsageSessionsData.js +36 -5
  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
@@ -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
49
+ * @version 6.1.0
50
50
  */
51
51
  var DeviceApi = exports["default"] = /*#__PURE__*/function () {
52
52
  /**
@@ -186,6 +186,59 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
186
186
  });
187
187
  }
188
188
 
189
+ /**
190
+ * Creates an empty Notefile on the device.
191
+ * @param {String} projectOrProductUID
192
+ * @param {String} deviceUID
193
+ * @param {String} notefileID
194
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
195
+ */
196
+ }, {
197
+ key: "createNotefileWithHttpInfo",
198
+ value: function createNotefileWithHttpInfo(projectOrProductUID, deviceUID, notefileID) {
199
+ var postBody = null;
200
+ // verify the required parameter 'projectOrProductUID' is set
201
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
202
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling createNotefile");
203
+ }
204
+ // verify the required parameter 'deviceUID' is set
205
+ if (deviceUID === undefined || deviceUID === null) {
206
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling createNotefile");
207
+ }
208
+ // verify the required parameter 'notefileID' is set
209
+ if (notefileID === undefined || notefileID === null) {
210
+ throw new _Error["default"]("Missing the required parameter 'notefileID' when calling createNotefile");
211
+ }
212
+ var pathParams = {
213
+ projectOrProductUID: projectOrProductUID,
214
+ deviceUID: deviceUID,
215
+ notefileID: notefileID
216
+ };
217
+ var queryParams = {};
218
+ var headerParams = {};
219
+ var formParams = {};
220
+ var authNames = ["personalAccessToken"];
221
+ var contentTypes = [];
222
+ var accepts = ["application/json"];
223
+ var returnType = null;
224
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notefiles/{notefileID}", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
225
+ }
226
+
227
+ /**
228
+ * Creates an empty Notefile on the device.
229
+ * @param {String} projectOrProductUID
230
+ * @param {String} deviceUID
231
+ * @param {String} notefileID
232
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
233
+ */
234
+ }, {
235
+ key: "createNotefile",
236
+ value: function createNotefile(projectOrProductUID, deviceUID, notefileID) {
237
+ return this.createNotefileWithHttpInfo(projectOrProductUID, deviceUID, notefileID).then(function (response_and_data) {
238
+ return response_and_data.data;
239
+ });
240
+ }
241
+
189
242
  /**
190
243
  * Delete Device
191
244
  * @param {String} projectOrProductUID
@@ -1006,6 +1059,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1006
1059
  * @param {Number} opts.pageNum (default to 1)
1007
1060
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
1008
1061
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
1062
+ * @param {Boolean} opts.firstSync When true, filters results to only show first sync sessions (default to false)
1009
1063
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceSessions200Response} and HTTP response
1010
1064
  */
1011
1065
  }, {
@@ -1029,7 +1083,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1029
1083
  pageSize: opts["pageSize"],
1030
1084
  pageNum: opts["pageNum"],
1031
1085
  startDate: opts["startDate"],
1032
- endDate: opts["endDate"]
1086
+ endDate: opts["endDate"],
1087
+ firstSync: opts["firstSync"]
1033
1088
  };
1034
1089
  var headerParams = {};
1035
1090
  var formParams = {};
@@ -1049,6 +1104,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1049
1104
  * @param {Number} opts.pageNum (default to 1)
1050
1105
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
1051
1106
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
1107
+ * @param {Boolean} opts.firstSync When true, filters results to only show first sync sessions (default to false)
1052
1108
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceSessions200Response}
1053
1109
  */
1054
1110
  }, {
@@ -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
33
+ * @version 6.1.0
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
32
+ * @version 6.1.0
33
33
  */
34
34
  var ExternalDevicesApi = exports["default"] = /*#__PURE__*/function () {
35
35
  /**
@@ -0,0 +1,438 @@
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.1.0
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
+ * Get a specific batch job definition
200
+ * @param {String} projectOrProductUID
201
+ * @param {String} jobUID Unique identifier for a batch job
202
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Job} and HTTP response
203
+ */
204
+ }, {
205
+ key: "getJobWithHttpInfo",
206
+ value: function getJobWithHttpInfo(projectOrProductUID, jobUID) {
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 getJob");
211
+ }
212
+ // verify the required parameter 'jobUID' is set
213
+ if (jobUID === undefined || jobUID === null) {
214
+ throw new _Error["default"]("Missing the required parameter 'jobUID' when calling getJob");
215
+ }
216
+ var pathParams = {
217
+ projectOrProductUID: projectOrProductUID,
218
+ jobUID: jobUID
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 = _Job["default"];
227
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/jobs/{jobUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
228
+ }
229
+
230
+ /**
231
+ * Get a specific batch job definition
232
+ * @param {String} projectOrProductUID
233
+ * @param {String} jobUID Unique identifier for a batch job
234
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Job}
235
+ */
236
+ }, {
237
+ key: "getJob",
238
+ value: function getJob(projectOrProductUID, jobUID) {
239
+ return this.getJobWithHttpInfo(projectOrProductUID, jobUID).then(function (response_and_data) {
240
+ return response_and_data.data;
241
+ });
242
+ }
243
+
244
+ /**
245
+ * Get the result of a job execution
246
+ * @param {String} projectOrProductUID
247
+ * @param {String} reportUID Unique identifier for a job run report
248
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/JobRun} and HTTP response
249
+ */
250
+ }, {
251
+ key: "getJobRunWithHttpInfo",
252
+ value: function getJobRunWithHttpInfo(projectOrProductUID, reportUID) {
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 getJobRun");
257
+ }
258
+ // verify the required parameter 'reportUID' is set
259
+ if (reportUID === undefined || reportUID === null) {
260
+ throw new _Error["default"]("Missing the required parameter 'reportUID' when calling getJobRun");
261
+ }
262
+ var pathParams = {
263
+ projectOrProductUID: projectOrProductUID,
264
+ reportUID: reportUID
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 = _JobRun["default"];
273
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/jobs/runs/{reportUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
274
+ }
275
+
276
+ /**
277
+ * Get the result of a job execution
278
+ * @param {String} projectOrProductUID
279
+ * @param {String} reportUID Unique identifier for a job run report
280
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/JobRun}
281
+ */
282
+ }, {
283
+ key: "getJobRun",
284
+ value: function getJobRun(projectOrProductUID, reportUID) {
285
+ return this.getJobRunWithHttpInfo(projectOrProductUID, reportUID).then(function (response_and_data) {
286
+ return response_and_data.data;
287
+ });
288
+ }
289
+
290
+ /**
291
+ * List all runs for a specific job
292
+ * @param {String} projectOrProductUID
293
+ * @param {String} jobUID Unique identifier for a batch job
294
+ * @param {Object} opts Optional parameters
295
+ * @param {String} opts.status Filter runs by status
296
+ * @param {Boolean} opts.dryRun Filter runs by dry run flag
297
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetJobRuns200Response} and HTTP response
298
+ */
299
+ }, {
300
+ key: "getJobRunsWithHttpInfo",
301
+ value: function getJobRunsWithHttpInfo(projectOrProductUID, jobUID, opts) {
302
+ opts = opts || {};
303
+ var postBody = null;
304
+ // verify the required parameter 'projectOrProductUID' is set
305
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
306
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getJobRuns");
307
+ }
308
+ // verify the required parameter 'jobUID' is set
309
+ if (jobUID === undefined || jobUID === null) {
310
+ throw new _Error["default"]("Missing the required parameter 'jobUID' when calling getJobRuns");
311
+ }
312
+ var pathParams = {
313
+ projectOrProductUID: projectOrProductUID,
314
+ jobUID: jobUID
315
+ };
316
+ var queryParams = {
317
+ status: opts["status"],
318
+ dry_run: opts["dryRun"]
319
+ };
320
+ var headerParams = {};
321
+ var formParams = {};
322
+ var authNames = ["personalAccessToken"];
323
+ var contentTypes = [];
324
+ var accepts = ["application/json"];
325
+ 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);
327
+ }
328
+
329
+ /**
330
+ * List all runs for a specific job
331
+ * @param {String} projectOrProductUID
332
+ * @param {String} jobUID Unique identifier for a batch job
333
+ * @param {Object} opts Optional parameters
334
+ * @param {String} opts.status Filter runs by status
335
+ * @param {Boolean} opts.dryRun Filter runs by dry run flag
336
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetJobRuns200Response}
337
+ */
338
+ }, {
339
+ key: "getJobRuns",
340
+ value: function getJobRuns(projectOrProductUID, jobUID, opts) {
341
+ return this.getJobRunsWithHttpInfo(projectOrProductUID, jobUID, opts).then(function (response_and_data) {
342
+ return response_and_data.data;
343
+ });
344
+ }
345
+
346
+ /**
347
+ * List all batch jobs for a project
348
+ * @param {String} projectOrProductUID
349
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetJobs200Response} and HTTP response
350
+ */
351
+ }, {
352
+ key: "getJobsWithHttpInfo",
353
+ value: function getJobsWithHttpInfo(projectOrProductUID) {
354
+ var postBody = null;
355
+ // verify the required parameter 'projectOrProductUID' is set
356
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
357
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getJobs");
358
+ }
359
+ var pathParams = {
360
+ projectOrProductUID: projectOrProductUID
361
+ };
362
+ var queryParams = {};
363
+ var headerParams = {};
364
+ var formParams = {};
365
+ var authNames = ["personalAccessToken"];
366
+ var contentTypes = [];
367
+ var accepts = ["application/json"];
368
+ var returnType = _GetJobs200Response["default"];
369
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/jobs", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
370
+ }
371
+
372
+ /**
373
+ * List all batch jobs for a project
374
+ * @param {String} projectOrProductUID
375
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetJobs200Response}
376
+ */
377
+ }, {
378
+ key: "getJobs",
379
+ value: function getJobs(projectOrProductUID) {
380
+ return this.getJobsWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
381
+ return response_and_data.data;
382
+ });
383
+ }
384
+
385
+ /**
386
+ * Execute a batch job
387
+ * @param {String} projectOrProductUID
388
+ * @param {String} jobUID Unique identifier for a batch job
389
+ * @param {Object} opts Optional parameters
390
+ * @param {Boolean} opts.dryRun Run job in dry-run mode without making actual changes (default to false)
391
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RunJob200Response} and HTTP response
392
+ */
393
+ }, {
394
+ key: "runJobWithHttpInfo",
395
+ value: function runJobWithHttpInfo(projectOrProductUID, jobUID, opts) {
396
+ opts = opts || {};
397
+ var postBody = null;
398
+ // verify the required parameter 'projectOrProductUID' is set
399
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
400
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling runJob");
401
+ }
402
+ // verify the required parameter 'jobUID' is set
403
+ if (jobUID === undefined || jobUID === null) {
404
+ throw new _Error["default"]("Missing the required parameter 'jobUID' when calling runJob");
405
+ }
406
+ var pathParams = {
407
+ projectOrProductUID: projectOrProductUID,
408
+ jobUID: jobUID
409
+ };
410
+ var queryParams = {
411
+ dry_run: opts["dryRun"]
412
+ };
413
+ var headerParams = {};
414
+ var formParams = {};
415
+ var authNames = ["personalAccessToken"];
416
+ var contentTypes = [];
417
+ var accepts = ["application/json"];
418
+ 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);
420
+ }
421
+
422
+ /**
423
+ * Execute a batch job
424
+ * @param {String} projectOrProductUID
425
+ * @param {String} jobUID Unique identifier for a batch job
426
+ * @param {Object} opts Optional parameters
427
+ * @param {Boolean} opts.dryRun Run job in dry-run mode without making actual changes (default to false)
428
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RunJob200Response}
429
+ */
430
+ }, {
431
+ key: "runJob",
432
+ value: function runJob(projectOrProductUID, jobUID, opts) {
433
+ return this.runJobWithHttpInfo(projectOrProductUID, jobUID, opts).then(function (response_and_data) {
434
+ return response_and_data.data;
435
+ });
436
+ }
437
+ }]);
438
+ }();
@@ -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
32
+ * @version 6.1.0
33
33
  */
34
34
  var MonitorApi = exports["default"] = /*#__PURE__*/function () {
35
35
  /**
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _AWSRoleConfig = _interopRequireDefault(require("../model/AWSRoleConfig"));
8
9
  var _AddDeviceToFleetsRequest = _interopRequireDefault(require("../model/AddDeviceToFleetsRequest"));
9
10
  var _CloneProjectRequest = _interopRequireDefault(require("../model/CloneProjectRequest"));
10
11
  var _CreateFleetRequest = _interopRequireDefault(require("../model/CreateFleetRequest"));
@@ -50,7 +51,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
50
51
  /**
51
52
  * Project service.
52
53
  * @module api/ProjectApi
53
- * @version 6.0.0
54
+ * @version 6.1.0
54
55
  */
55
56
  var ProjectApi = exports["default"] = /*#__PURE__*/function () {
56
57
  /**
@@ -702,6 +703,47 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
702
703
  });
703
704
  }
704
705
 
706
+ /**
707
+ * Get AWS role configuration for role-based authentication
708
+ * Returns the AWS Account ID and External ID needed to configure an IAM role trust policy for role-based authentication on AWS routes.
709
+ * @param {String} projectOrProductUID
710
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AWSRoleConfig} and HTTP response
711
+ */
712
+ }, {
713
+ key: "getAWSRoleConfigWithHttpInfo",
714
+ value: function getAWSRoleConfigWithHttpInfo(projectOrProductUID) {
715
+ var postBody = null;
716
+ // verify the required parameter 'projectOrProductUID' is set
717
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
718
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getAWSRoleConfig");
719
+ }
720
+ var pathParams = {
721
+ projectOrProductUID: projectOrProductUID
722
+ };
723
+ var queryParams = {};
724
+ var headerParams = {};
725
+ var formParams = {};
726
+ var authNames = ["personalAccessToken"];
727
+ var contentTypes = [];
728
+ var accepts = ["application/json"];
729
+ var returnType = _AWSRoleConfig["default"];
730
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/aws-role-config", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
731
+ }
732
+
733
+ /**
734
+ * Get AWS role configuration for role-based authentication
735
+ * Returns the AWS Account ID and External ID needed to configure an IAM role trust policy for role-based authentication on AWS routes.
736
+ * @param {String} projectOrProductUID
737
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AWSRoleConfig}
738
+ */
739
+ }, {
740
+ key: "getAWSRoleConfig",
741
+ value: function getAWSRoleConfig(projectOrProductUID) {
742
+ return this.getAWSRoleConfigWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
743
+ return response_and_data.data;
744
+ });
745
+ }
746
+
705
747
  /**
706
748
  * Get device DFU history for host or Notecard firmware
707
749
  * @param {String} projectOrProductUID
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * Route service.
32
32
  * @module api/RouteApi
33
- * @version 6.0.0
33
+ * @version 6.1.0
34
34
  */
35
35
  var RouteApi = exports["default"] = /*#__PURE__*/function () {
36
36
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * Usage service.
33
33
  * @module api/UsageApi
34
- * @version 6.0.0
34
+ * @version 6.1.0
35
35
  */
36
36
  var UsageApi = exports["default"] = /*#__PURE__*/function () {
37
37
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * Webhook service.
31
31
  * @module api/WebhookApi
32
- * @version 6.0.0
32
+ * @version 6.1.0
33
33
  */
34
34
  var WebhookApi = exports["default"] = /*#__PURE__*/function () {
35
35
  /**