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