@blues-inc/notehub-js 1.0.19 → 1.0.20
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 +86 -96
- package/dist/ApiClient.js +18 -9
- package/dist/api/AlertApi.js +95 -0
- package/dist/api/AuthorizationApi.js +18 -9
- package/dist/api/BillingAccountApi.js +18 -9
- package/dist/api/DeviceApi.js +904 -182
- package/dist/api/EventApi.js +68 -9
- package/dist/api/FirmwareApi.js +109 -0
- package/dist/api/MonitorApi.js +275 -0
- package/dist/api/ProjectApi.js +435 -286
- package/dist/api/RouteApi.js +96 -9
- package/dist/index.js +76 -41
- package/dist/model/Alert.js +259 -0
- package/dist/model/AlertDataInner.js +184 -0
- package/dist/model/AlertNotificationsInner.js +132 -0
- package/dist/model/Aws.js +17 -8
- package/dist/model/Azure.js +17 -8
- package/dist/model/BillingAccount.js +17 -8
- package/dist/model/BillingAccountRole.js +29 -8
- package/dist/model/Body.js +17 -8
- package/dist/model/CloneProjectRequest.js +17 -8
- package/dist/model/Contact.js +17 -8
- package/dist/model/CreateFleetRequest.js +17 -8
- package/dist/model/CreateMonitor.js +428 -0
- package/dist/model/CreateProductRequest.js +17 -8
- package/dist/model/CreateProjectRequest.js +17 -8
- package/dist/model/DFUEnv.js +17 -8
- package/dist/model/DFUState.js +17 -8
- package/dist/model/DeleteDeviceFleetsRequest.js +17 -8
- package/dist/model/Device.js +21 -14
- package/dist/model/DeviceSession.js +17 -8
- package/dist/model/DeviceTowerInfo.js +17 -8
- package/dist/model/DeviceUsage.js +17 -8
- package/dist/model/EnvironmentVariables.js +17 -8
- package/dist/model/Error.js +17 -8
- package/dist/model/Event.js +17 -8
- package/dist/model/FirmwareInfo.js +231 -0
- package/dist/model/Fleet.js +17 -8
- package/dist/model/GetAlerts200Response.js +143 -0
- package/dist/model/GetBillingAccounts200Response.js +17 -8
- package/dist/model/GetDeviceEnvironmentVariables200Response.js +17 -8
- package/dist/model/GetDeviceHealthLog200Response.js +17 -8
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +17 -8
- package/dist/model/GetDeviceLatest200Response.js +17 -8
- package/dist/model/GetDevicePublicKey200Response.js +17 -8
- package/dist/model/GetDeviceSessions200Response.js +17 -8
- package/dist/model/GetProjectDevicePublicKeys200Response.js +17 -8
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +17 -8
- package/dist/model/GetProjectDevices200Response.js +17 -8
- package/dist/model/GetProjectEvents200Response.js +21 -27
- package/dist/model/GetProjectEventsByCursor200Response.js +17 -8
- package/dist/model/GetProjectFleets200Response.js +17 -8
- package/dist/model/GetProjectMembers200Response.js +17 -8
- package/dist/model/GetProjectProducts200Response.js +17 -8
- package/dist/model/GetProjects200Response.js +17 -8
- package/dist/model/GetRouteLogsByRoute200ResponseInner.js +17 -8
- package/dist/model/Google.js +17 -8
- package/dist/model/HandleNoteChanges200Response.js +17 -8
- package/dist/model/HandleNoteGet200Response.js +17 -8
- package/dist/model/HandleNoteSignal200Response.js +17 -8
- package/dist/model/HandleNotefileChanges200Response.js +17 -8
- package/dist/model/HandleNotefileChangesPending200Response.js +17 -8
- package/dist/model/HandleNotefileDeleteRequest.js +17 -8
- package/dist/model/Http.js +17 -8
- package/dist/model/HttpFilter.js +17 -8
- package/dist/model/HttpTransform.js +17 -8
- package/dist/model/Location.js +17 -8
- package/dist/model/Login200Response.js +17 -8
- package/dist/model/LoginRequest.js +17 -8
- package/dist/model/Monitor.js +328 -0
- package/dist/model/MonitorAlertRoutesInner.js +92 -0
- package/dist/model/MonitorThresholds.js +88 -0
- package/dist/model/Mqtt.js +17 -8
- package/dist/model/Note.js +17 -8
- package/dist/model/PostProvisionProjectDeviceRequest.js +17 -8
- package/dist/model/Product.js +17 -8
- package/dist/model/Project.js +17 -8
- package/dist/model/ProjectMember.js +17 -8
- package/dist/model/Proxy.js +17 -8
- package/dist/model/PutDeviceFleetsRequest.js +17 -8
- package/dist/model/Radresponder.js +17 -8
- package/dist/model/Role.js +37 -8
- package/dist/model/Route.js +17 -8
- package/dist/model/RouteSchema.js +29 -14
- package/dist/model/Slack.js +17 -8
- package/dist/model/Snowflake.js +17 -8
- package/dist/model/SnowflakeTransform.js +17 -8
- package/dist/model/Thingworx.js +17 -8
- package/dist/model/TowerLocation.js +17 -8
- package/dist/model/Twilio.js +17 -8
- package/dist/model/UpdateFleetRequest.js +17 -8
- package/dist/model/UserDbRoute.js +17 -8
- package/package.json +1 -1
- package/dist/api/DevicesApi.js +0 -346
- package/dist/api/EnvironmentVariablesApi.js +0 -567
- package/dist/api/FilesApi.js +0 -193
- package/dist/api/FleetApi.js +0 -736
- package/dist/api/NotesApi.js +0 -435
- package/dist/api/ProductApi.js +0 -163
- package/dist/api/RouteLogsApi.js +0 -160
package/dist/api/ProjectApi.js
CHANGED
|
@@ -6,33 +6,45 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
var _CloneProjectRequest = _interopRequireDefault(require("../model/CloneProjectRequest"));
|
|
9
|
+
var _CreateFleetRequest = _interopRequireDefault(require("../model/CreateFleetRequest"));
|
|
9
10
|
var _CreateProductRequest = _interopRequireDefault(require("../model/CreateProductRequest"));
|
|
10
11
|
var _CreateProjectRequest = _interopRequireDefault(require("../model/CreateProjectRequest"));
|
|
12
|
+
var _DeleteDeviceFleetsRequest = _interopRequireDefault(require("../model/DeleteDeviceFleetsRequest"));
|
|
11
13
|
var _EnvironmentVariables = _interopRequireDefault(require("../model/EnvironmentVariables"));
|
|
12
14
|
var _Error = _interopRequireDefault(require("../model/Error"));
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var _GetProjectEvents200Response = _interopRequireDefault(require("../model/GetProjectEvents200Response"));
|
|
16
|
-
var _GetProjectEventsByCursor200Response = _interopRequireDefault(require("../model/GetProjectEventsByCursor200Response"));
|
|
15
|
+
var _Fleet = _interopRequireDefault(require("../model/Fleet"));
|
|
16
|
+
var _GetProjectFleets200Response = _interopRequireDefault(require("../model/GetProjectFleets200Response"));
|
|
17
17
|
var _GetProjectMembers200Response = _interopRequireDefault(require("../model/GetProjectMembers200Response"));
|
|
18
18
|
var _GetProjectProducts200Response = _interopRequireDefault(require("../model/GetProjectProducts200Response"));
|
|
19
19
|
var _GetProjects200Response = _interopRequireDefault(require("../model/GetProjects200Response"));
|
|
20
|
-
var _PostProvisionProjectDeviceRequest = _interopRequireDefault(require("../model/PostProvisionProjectDeviceRequest"));
|
|
21
20
|
var _Product = _interopRequireDefault(require("../model/Product"));
|
|
22
21
|
var _Project = _interopRequireDefault(require("../model/Project"));
|
|
22
|
+
var _PutDeviceFleetsRequest = _interopRequireDefault(require("../model/PutDeviceFleetsRequest"));
|
|
23
|
+
var _UpdateFleetRequest = _interopRequireDefault(require("../model/UpdateFleetRequest"));
|
|
23
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
24
|
-
function _typeof(
|
|
25
|
+
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); }
|
|
25
26
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
26
27
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
27
28
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
28
|
-
function _toPropertyKey(
|
|
29
|
-
function _toPrimitive(
|
|
29
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
30
|
+
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); } /**
|
|
31
|
+
* Notehub API
|
|
32
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
33
|
+
*
|
|
34
|
+
* The version of the OpenAPI document: 1.0.0
|
|
35
|
+
* Contact: engineering@blues.io
|
|
36
|
+
*
|
|
37
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
38
|
+
* https://openapi-generator.tech
|
|
39
|
+
* Do not edit the class manually.
|
|
40
|
+
*
|
|
41
|
+
*/
|
|
30
42
|
/**
|
|
31
43
|
* Project service.
|
|
32
44
|
* @module api/ProjectApi
|
|
33
|
-
* @version 1.0.
|
|
45
|
+
* @version 1.0.20
|
|
34
46
|
*/
|
|
35
|
-
var ProjectApi = /*#__PURE__*/function () {
|
|
47
|
+
var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
48
|
/**
|
|
37
49
|
* Constructs a new ProjectApi.
|
|
38
50
|
* @alias module:api/ProjectApi
|
|
@@ -51,7 +63,7 @@ var ProjectApi = /*#__PURE__*/function () {
|
|
|
51
63
|
* @param {module:model/CloneProjectRequest} cloneProjectRequest Project to be cloned
|
|
52
64
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
53
65
|
*/
|
|
54
|
-
_createClass(ProjectApi, [{
|
|
66
|
+
return _createClass(ProjectApi, [{
|
|
55
67
|
key: "cloneProjectWithHttpInfo",
|
|
56
68
|
value: function cloneProjectWithHttpInfo(projectUID, cloneProjectRequest) {
|
|
57
69
|
var postBody = cloneProjectRequest;
|
|
@@ -90,6 +102,51 @@ var ProjectApi = /*#__PURE__*/function () {
|
|
|
90
102
|
});
|
|
91
103
|
}
|
|
92
104
|
|
|
105
|
+
/**
|
|
106
|
+
* Create Fleet
|
|
107
|
+
* @param {String} projectUID
|
|
108
|
+
* @param {module:model/CreateFleetRequest} createFleetRequest Fleet to be added
|
|
109
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
110
|
+
*/
|
|
111
|
+
}, {
|
|
112
|
+
key: "createFleetWithHttpInfo",
|
|
113
|
+
value: function createFleetWithHttpInfo(projectUID, createFleetRequest) {
|
|
114
|
+
var postBody = createFleetRequest;
|
|
115
|
+
// verify the required parameter 'projectUID' is set
|
|
116
|
+
if (projectUID === undefined || projectUID === null) {
|
|
117
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling createFleet");
|
|
118
|
+
}
|
|
119
|
+
// verify the required parameter 'createFleetRequest' is set
|
|
120
|
+
if (createFleetRequest === undefined || createFleetRequest === null) {
|
|
121
|
+
throw new _Error["default"]("Missing the required parameter 'createFleetRequest' when calling createFleet");
|
|
122
|
+
}
|
|
123
|
+
var pathParams = {
|
|
124
|
+
projectUID: projectUID
|
|
125
|
+
};
|
|
126
|
+
var queryParams = {};
|
|
127
|
+
var headerParams = {};
|
|
128
|
+
var formParams = {};
|
|
129
|
+
var authNames = ["api_key"];
|
|
130
|
+
var contentTypes = ["application/json"];
|
|
131
|
+
var accepts = ["application/json"];
|
|
132
|
+
var returnType = _Fleet["default"];
|
|
133
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/fleets", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Create Fleet
|
|
138
|
+
* @param {String} projectUID
|
|
139
|
+
* @param {module:model/CreateFleetRequest} createFleetRequest Fleet to be added
|
|
140
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
141
|
+
*/
|
|
142
|
+
}, {
|
|
143
|
+
key: "createFleet",
|
|
144
|
+
value: function createFleet(projectUID, createFleetRequest) {
|
|
145
|
+
return this.createFleetWithHttpInfo(projectUID, createFleetRequest).then(function (response_and_data) {
|
|
146
|
+
return response_and_data.data;
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
|
|
93
150
|
/**
|
|
94
151
|
* Create Product within a Project
|
|
95
152
|
* @param {String} projectUID
|
|
@@ -172,17 +229,165 @@ var ProjectApi = /*#__PURE__*/function () {
|
|
|
172
229
|
});
|
|
173
230
|
}
|
|
174
231
|
|
|
232
|
+
/**
|
|
233
|
+
* Remove Device from Fleets
|
|
234
|
+
* @param {String} projectUID
|
|
235
|
+
* @param {String} deviceUID
|
|
236
|
+
* @param {module:model/DeleteDeviceFleetsRequest} deleteDeviceFleetsRequest The fleets to remove from the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
237
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectFleets200Response} and HTTP response
|
|
238
|
+
*/
|
|
239
|
+
}, {
|
|
240
|
+
key: "deleteDeviceFleetsWithHttpInfo",
|
|
241
|
+
value: function deleteDeviceFleetsWithHttpInfo(projectUID, deviceUID, deleteDeviceFleetsRequest) {
|
|
242
|
+
var postBody = deleteDeviceFleetsRequest;
|
|
243
|
+
// verify the required parameter 'projectUID' is set
|
|
244
|
+
if (projectUID === undefined || projectUID === null) {
|
|
245
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling deleteDeviceFleets");
|
|
246
|
+
}
|
|
247
|
+
// verify the required parameter 'deviceUID' is set
|
|
248
|
+
if (deviceUID === undefined || deviceUID === null) {
|
|
249
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling deleteDeviceFleets");
|
|
250
|
+
}
|
|
251
|
+
// verify the required parameter 'deleteDeviceFleetsRequest' is set
|
|
252
|
+
if (deleteDeviceFleetsRequest === undefined || deleteDeviceFleetsRequest === null) {
|
|
253
|
+
throw new _Error["default"]("Missing the required parameter 'deleteDeviceFleetsRequest' when calling deleteDeviceFleets");
|
|
254
|
+
}
|
|
255
|
+
var pathParams = {
|
|
256
|
+
projectUID: projectUID,
|
|
257
|
+
deviceUID: deviceUID
|
|
258
|
+
};
|
|
259
|
+
var queryParams = {};
|
|
260
|
+
var headerParams = {};
|
|
261
|
+
var formParams = {};
|
|
262
|
+
var authNames = ["api_key"];
|
|
263
|
+
var contentTypes = ["application/json"];
|
|
264
|
+
var accepts = ["application/json"];
|
|
265
|
+
var returnType = _GetProjectFleets200Response["default"];
|
|
266
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/fleets", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* Remove Device from Fleets
|
|
271
|
+
* @param {String} projectUID
|
|
272
|
+
* @param {String} deviceUID
|
|
273
|
+
* @param {module:model/DeleteDeviceFleetsRequest} deleteDeviceFleetsRequest The fleets to remove from the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
274
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectFleets200Response}
|
|
275
|
+
*/
|
|
276
|
+
}, {
|
|
277
|
+
key: "deleteDeviceFleets",
|
|
278
|
+
value: function deleteDeviceFleets(projectUID, deviceUID, deleteDeviceFleetsRequest) {
|
|
279
|
+
return this.deleteDeviceFleetsWithHttpInfo(projectUID, deviceUID, deleteDeviceFleetsRequest).then(function (response_and_data) {
|
|
280
|
+
return response_and_data.data;
|
|
281
|
+
});
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* Delete Fleet
|
|
286
|
+
* @param {String} projectUID
|
|
287
|
+
* @param {String} fleetUID
|
|
288
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
289
|
+
*/
|
|
290
|
+
}, {
|
|
291
|
+
key: "deleteFleetWithHttpInfo",
|
|
292
|
+
value: function deleteFleetWithHttpInfo(projectUID, fleetUID) {
|
|
293
|
+
var postBody = null;
|
|
294
|
+
// verify the required parameter 'projectUID' is set
|
|
295
|
+
if (projectUID === undefined || projectUID === null) {
|
|
296
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling deleteFleet");
|
|
297
|
+
}
|
|
298
|
+
// verify the required parameter 'fleetUID' is set
|
|
299
|
+
if (fleetUID === undefined || fleetUID === null) {
|
|
300
|
+
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling deleteFleet");
|
|
301
|
+
}
|
|
302
|
+
var pathParams = {
|
|
303
|
+
projectUID: projectUID,
|
|
304
|
+
fleetUID: fleetUID
|
|
305
|
+
};
|
|
306
|
+
var queryParams = {};
|
|
307
|
+
var headerParams = {};
|
|
308
|
+
var formParams = {};
|
|
309
|
+
var authNames = ["api_key"];
|
|
310
|
+
var contentTypes = [];
|
|
311
|
+
var accepts = ["application/json"];
|
|
312
|
+
var returnType = null;
|
|
313
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/fleets/{fleetUID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* Delete Fleet
|
|
318
|
+
* @param {String} projectUID
|
|
319
|
+
* @param {String} fleetUID
|
|
320
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
321
|
+
*/
|
|
322
|
+
}, {
|
|
323
|
+
key: "deleteFleet",
|
|
324
|
+
value: function deleteFleet(projectUID, fleetUID) {
|
|
325
|
+
return this.deleteFleetWithHttpInfo(projectUID, fleetUID).then(function (response_and_data) {
|
|
326
|
+
return response_and_data.data;
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* Delete environment variables of a fleet
|
|
332
|
+
* @param {String} projectUID
|
|
333
|
+
* @param {String} fleetUID
|
|
334
|
+
* @param {String} key The environment variable key to delete.
|
|
335
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
336
|
+
*/
|
|
337
|
+
}, {
|
|
338
|
+
key: "deleteFleetEnvironmentVariableWithHttpInfo",
|
|
339
|
+
value: function deleteFleetEnvironmentVariableWithHttpInfo(projectUID, fleetUID, key) {
|
|
340
|
+
var postBody = null;
|
|
341
|
+
// verify the required parameter 'projectUID' is set
|
|
342
|
+
if (projectUID === undefined || projectUID === null) {
|
|
343
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling deleteFleetEnvironmentVariable");
|
|
344
|
+
}
|
|
345
|
+
// verify the required parameter 'fleetUID' is set
|
|
346
|
+
if (fleetUID === undefined || fleetUID === null) {
|
|
347
|
+
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling deleteFleetEnvironmentVariable");
|
|
348
|
+
}
|
|
349
|
+
// verify the required parameter 'key' is set
|
|
350
|
+
if (key === undefined || key === null) {
|
|
351
|
+
throw new _Error["default"]("Missing the required parameter 'key' when calling deleteFleetEnvironmentVariable");
|
|
352
|
+
}
|
|
353
|
+
var pathParams = {
|
|
354
|
+
projectUID: projectUID,
|
|
355
|
+
fleetUID: fleetUID,
|
|
356
|
+
key: key
|
|
357
|
+
};
|
|
358
|
+
var queryParams = {};
|
|
359
|
+
var headerParams = {};
|
|
360
|
+
var formParams = {};
|
|
361
|
+
var authNames = ["api_key"];
|
|
362
|
+
var contentTypes = [];
|
|
363
|
+
var accepts = ["application/json"];
|
|
364
|
+
var returnType = _EnvironmentVariables["default"];
|
|
365
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/fleets/{fleetUID}/environment_variables/{key}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* Delete environment variables of a fleet
|
|
370
|
+
* @param {String} projectUID
|
|
371
|
+
* @param {String} fleetUID
|
|
372
|
+
* @param {String} key The environment variable key to delete.
|
|
373
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
374
|
+
*/
|
|
375
|
+
}, {
|
|
376
|
+
key: "deleteFleetEnvironmentVariable",
|
|
377
|
+
value: function deleteFleetEnvironmentVariable(projectUID, fleetUID, key) {
|
|
378
|
+
return this.deleteFleetEnvironmentVariableWithHttpInfo(projectUID, fleetUID, key).then(function (response_and_data) {
|
|
379
|
+
return response_and_data.data;
|
|
380
|
+
});
|
|
381
|
+
}
|
|
382
|
+
|
|
175
383
|
/**
|
|
176
384
|
* Delete a Project by ProjectUID
|
|
177
385
|
* @param {String} projectUID
|
|
178
|
-
* @param {Object} opts Optional parameters
|
|
179
|
-
* @param {Boolean} opts.db (default to false)
|
|
180
386
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
181
387
|
*/
|
|
182
388
|
}, {
|
|
183
389
|
key: "deleteProjectWithHttpInfo",
|
|
184
|
-
value: function deleteProjectWithHttpInfo(projectUID
|
|
185
|
-
opts = opts || {};
|
|
390
|
+
value: function deleteProjectWithHttpInfo(projectUID) {
|
|
186
391
|
var postBody = null;
|
|
187
392
|
// verify the required parameter 'projectUID' is set
|
|
188
393
|
if (projectUID === undefined || projectUID === null) {
|
|
@@ -191,9 +396,7 @@ var ProjectApi = /*#__PURE__*/function () {
|
|
|
191
396
|
var pathParams = {
|
|
192
397
|
projectUID: projectUID
|
|
193
398
|
};
|
|
194
|
-
var queryParams = {
|
|
195
|
-
db: opts["db"]
|
|
196
|
-
};
|
|
399
|
+
var queryParams = {};
|
|
197
400
|
var headerParams = {};
|
|
198
401
|
var formParams = {};
|
|
199
402
|
var authNames = ["api_key"];
|
|
@@ -206,14 +409,12 @@ var ProjectApi = /*#__PURE__*/function () {
|
|
|
206
409
|
/**
|
|
207
410
|
* Delete a Project by ProjectUID
|
|
208
411
|
* @param {String} projectUID
|
|
209
|
-
* @param {Object} opts Optional parameters
|
|
210
|
-
* @param {Boolean} opts.db (default to false)
|
|
211
412
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
212
413
|
*/
|
|
213
414
|
}, {
|
|
214
415
|
key: "deleteProject",
|
|
215
|
-
value: function deleteProject(projectUID
|
|
216
|
-
return this.deleteProjectWithHttpInfo(projectUID
|
|
416
|
+
value: function deleteProject(projectUID) {
|
|
417
|
+
return this.deleteProjectWithHttpInfo(projectUID).then(function (response_and_data) {
|
|
217
418
|
return response_and_data.data;
|
|
218
419
|
});
|
|
219
420
|
}
|
|
@@ -343,20 +544,26 @@ var ProjectApi = /*#__PURE__*/function () {
|
|
|
343
544
|
}
|
|
344
545
|
|
|
345
546
|
/**
|
|
346
|
-
* Get
|
|
547
|
+
* Get Device Fleets
|
|
347
548
|
* @param {String} projectUID
|
|
348
|
-
* @
|
|
549
|
+
* @param {String} deviceUID
|
|
550
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectFleets200Response} and HTTP response
|
|
349
551
|
*/
|
|
350
552
|
}, {
|
|
351
|
-
key: "
|
|
352
|
-
value: function
|
|
553
|
+
key: "getDeviceFleetsWithHttpInfo",
|
|
554
|
+
value: function getDeviceFleetsWithHttpInfo(projectUID, deviceUID) {
|
|
353
555
|
var postBody = null;
|
|
354
556
|
// verify the required parameter 'projectUID' is set
|
|
355
557
|
if (projectUID === undefined || projectUID === null) {
|
|
356
|
-
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling
|
|
558
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getDeviceFleets");
|
|
559
|
+
}
|
|
560
|
+
// verify the required parameter 'deviceUID' is set
|
|
561
|
+
if (deviceUID === undefined || deviceUID === null) {
|
|
562
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceFleets");
|
|
357
563
|
}
|
|
358
564
|
var pathParams = {
|
|
359
|
-
projectUID: projectUID
|
|
565
|
+
projectUID: projectUID,
|
|
566
|
+
deviceUID: deviceUID
|
|
360
567
|
};
|
|
361
568
|
var queryParams = {};
|
|
362
569
|
var headerParams = {};
|
|
@@ -364,38 +571,45 @@ var ProjectApi = /*#__PURE__*/function () {
|
|
|
364
571
|
var authNames = ["api_key"];
|
|
365
572
|
var contentTypes = [];
|
|
366
573
|
var accepts = ["application/json"];
|
|
367
|
-
var returnType =
|
|
368
|
-
return this.apiClient.callApi("/v1/projects/{projectUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
574
|
+
var returnType = _GetProjectFleets200Response["default"];
|
|
575
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/fleets", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
369
576
|
}
|
|
370
577
|
|
|
371
578
|
/**
|
|
372
|
-
* Get
|
|
579
|
+
* Get Device Fleets
|
|
373
580
|
* @param {String} projectUID
|
|
374
|
-
* @
|
|
581
|
+
* @param {String} deviceUID
|
|
582
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectFleets200Response}
|
|
375
583
|
*/
|
|
376
584
|
}, {
|
|
377
|
-
key: "
|
|
378
|
-
value: function
|
|
379
|
-
return this.
|
|
585
|
+
key: "getDeviceFleets",
|
|
586
|
+
value: function getDeviceFleets(projectUID, deviceUID) {
|
|
587
|
+
return this.getDeviceFleetsWithHttpInfo(projectUID, deviceUID).then(function (response_and_data) {
|
|
380
588
|
return response_and_data.data;
|
|
381
589
|
});
|
|
382
590
|
}
|
|
383
591
|
|
|
384
592
|
/**
|
|
385
|
-
* Get
|
|
386
|
-
* @param {String}
|
|
387
|
-
* @
|
|
593
|
+
* Get environment variables of a fleet
|
|
594
|
+
* @param {String} projectUID
|
|
595
|
+
* @param {String} fleetUID
|
|
596
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
388
597
|
*/
|
|
389
598
|
}, {
|
|
390
|
-
key: "
|
|
391
|
-
value: function
|
|
599
|
+
key: "getFleetEnvironmentVariablesWithHttpInfo",
|
|
600
|
+
value: function getFleetEnvironmentVariablesWithHttpInfo(projectUID, fleetUID) {
|
|
392
601
|
var postBody = null;
|
|
393
|
-
// verify the required parameter '
|
|
394
|
-
if (
|
|
395
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
602
|
+
// verify the required parameter 'projectUID' is set
|
|
603
|
+
if (projectUID === undefined || projectUID === null) {
|
|
604
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getFleetEnvironmentVariables");
|
|
605
|
+
}
|
|
606
|
+
// verify the required parameter 'fleetUID' is set
|
|
607
|
+
if (fleetUID === undefined || fleetUID === null) {
|
|
608
|
+
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEnvironmentVariables");
|
|
396
609
|
}
|
|
397
610
|
var pathParams = {
|
|
398
|
-
|
|
611
|
+
projectUID: projectUID,
|
|
612
|
+
fleetUID: fleetUID
|
|
399
613
|
};
|
|
400
614
|
var queryParams = {};
|
|
401
615
|
var headerParams = {};
|
|
@@ -403,117 +617,98 @@ var ProjectApi = /*#__PURE__*/function () {
|
|
|
403
617
|
var authNames = ["api_key"];
|
|
404
618
|
var contentTypes = [];
|
|
405
619
|
var accepts = ["application/json"];
|
|
406
|
-
var returnType =
|
|
407
|
-
return this.apiClient.callApi("/v1/
|
|
620
|
+
var returnType = _EnvironmentVariables["default"];
|
|
621
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/fleets/{fleetUID}/environment_variables", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
408
622
|
}
|
|
409
623
|
|
|
410
624
|
/**
|
|
411
|
-
* Get
|
|
412
|
-
* @param {String}
|
|
413
|
-
* @
|
|
625
|
+
* Get environment variables of a fleet
|
|
626
|
+
* @param {String} projectUID
|
|
627
|
+
* @param {String} fleetUID
|
|
628
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
414
629
|
*/
|
|
415
630
|
}, {
|
|
416
|
-
key: "
|
|
417
|
-
value: function
|
|
418
|
-
return this.
|
|
631
|
+
key: "getFleetEnvironmentVariables",
|
|
632
|
+
value: function getFleetEnvironmentVariables(projectUID, fleetUID) {
|
|
633
|
+
return this.getFleetEnvironmentVariablesWithHttpInfo(projectUID, fleetUID).then(function (response_and_data) {
|
|
419
634
|
return response_and_data.data;
|
|
420
635
|
});
|
|
421
636
|
}
|
|
422
637
|
|
|
423
638
|
/**
|
|
424
|
-
* Get
|
|
639
|
+
* Get a Project by ProjectUID
|
|
425
640
|
* @param {String} projectUID
|
|
426
|
-
* @
|
|
427
|
-
* @param {Number} opts.pageSize (default to 50)
|
|
428
|
-
* @param {Number} opts.pageNum (default to 1)
|
|
429
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectDevicePublicKeys200Response} and HTTP response
|
|
641
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
430
642
|
*/
|
|
431
643
|
}, {
|
|
432
|
-
key: "
|
|
433
|
-
value: function
|
|
434
|
-
opts = opts || {};
|
|
644
|
+
key: "getProjectWithHttpInfo",
|
|
645
|
+
value: function getProjectWithHttpInfo(projectUID) {
|
|
435
646
|
var postBody = null;
|
|
436
647
|
// verify the required parameter 'projectUID' is set
|
|
437
648
|
if (projectUID === undefined || projectUID === null) {
|
|
438
|
-
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling
|
|
649
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProject");
|
|
439
650
|
}
|
|
440
651
|
var pathParams = {
|
|
441
652
|
projectUID: projectUID
|
|
442
653
|
};
|
|
443
|
-
var queryParams = {
|
|
444
|
-
pageSize: opts["pageSize"],
|
|
445
|
-
pageNum: opts["pageNum"]
|
|
446
|
-
};
|
|
654
|
+
var queryParams = {};
|
|
447
655
|
var headerParams = {};
|
|
448
656
|
var formParams = {};
|
|
449
657
|
var authNames = ["api_key"];
|
|
450
658
|
var contentTypes = [];
|
|
451
659
|
var accepts = ["application/json"];
|
|
452
|
-
var returnType =
|
|
453
|
-
return this.apiClient.callApi("/v1/projects/{projectUID}
|
|
660
|
+
var returnType = _Project["default"];
|
|
661
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
454
662
|
}
|
|
455
663
|
|
|
456
664
|
/**
|
|
457
|
-
* Get
|
|
665
|
+
* Get a Project by ProjectUID
|
|
458
666
|
* @param {String} projectUID
|
|
459
|
-
* @
|
|
460
|
-
* @param {Number} opts.pageSize (default to 50)
|
|
461
|
-
* @param {Number} opts.pageNum (default to 1)
|
|
462
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectDevicePublicKeys200Response}
|
|
667
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
463
668
|
*/
|
|
464
669
|
}, {
|
|
465
|
-
key: "
|
|
466
|
-
value: function
|
|
467
|
-
return this.
|
|
670
|
+
key: "getProject",
|
|
671
|
+
value: function getProject(projectUID) {
|
|
672
|
+
return this.getProjectWithHttpInfo(projectUID).then(function (response_and_data) {
|
|
468
673
|
return response_and_data.data;
|
|
469
674
|
});
|
|
470
675
|
}
|
|
471
676
|
|
|
472
677
|
/**
|
|
473
|
-
* Get
|
|
474
|
-
* @param {String}
|
|
475
|
-
* @
|
|
476
|
-
* @param {Number} opts.pageSize (default to 50)
|
|
477
|
-
* @param {Number} opts.pageNum (default to 1)
|
|
478
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectDevices200Response} and HTTP response
|
|
678
|
+
* Get a Project by ProductUID
|
|
679
|
+
* @param {String} productUID
|
|
680
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
479
681
|
*/
|
|
480
682
|
}, {
|
|
481
|
-
key: "
|
|
482
|
-
value: function
|
|
483
|
-
opts = opts || {};
|
|
683
|
+
key: "getProjectByProductWithHttpInfo",
|
|
684
|
+
value: function getProjectByProductWithHttpInfo(productUID) {
|
|
484
685
|
var postBody = null;
|
|
485
|
-
// verify the required parameter '
|
|
486
|
-
if (
|
|
487
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
686
|
+
// verify the required parameter 'productUID' is set
|
|
687
|
+
if (productUID === undefined || productUID === null) {
|
|
688
|
+
throw new _Error["default"]("Missing the required parameter 'productUID' when calling getProjectByProduct");
|
|
488
689
|
}
|
|
489
690
|
var pathParams = {
|
|
490
|
-
|
|
491
|
-
};
|
|
492
|
-
var queryParams = {
|
|
493
|
-
pageSize: opts["pageSize"],
|
|
494
|
-
pageNum: opts["pageNum"]
|
|
691
|
+
productUID: productUID
|
|
495
692
|
};
|
|
693
|
+
var queryParams = {};
|
|
496
694
|
var headerParams = {};
|
|
497
695
|
var formParams = {};
|
|
498
696
|
var authNames = ["api_key"];
|
|
499
697
|
var contentTypes = [];
|
|
500
698
|
var accepts = ["application/json"];
|
|
501
|
-
var returnType =
|
|
502
|
-
return this.apiClient.callApi("/v1/
|
|
699
|
+
var returnType = _Project["default"];
|
|
700
|
+
return this.apiClient.callApi("/v1/products/{productUID}/project", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
503
701
|
}
|
|
504
702
|
|
|
505
703
|
/**
|
|
506
|
-
* Get
|
|
507
|
-
* @param {String}
|
|
508
|
-
* @
|
|
509
|
-
* @param {Number} opts.pageSize (default to 50)
|
|
510
|
-
* @param {Number} opts.pageNum (default to 1)
|
|
511
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectDevices200Response}
|
|
704
|
+
* Get a Project by ProductUID
|
|
705
|
+
* @param {String} productUID
|
|
706
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
512
707
|
*/
|
|
513
708
|
}, {
|
|
514
|
-
key: "
|
|
515
|
-
value: function
|
|
516
|
-
return this.
|
|
709
|
+
key: "getProjectByProduct",
|
|
710
|
+
value: function getProjectByProduct(productUID) {
|
|
711
|
+
return this.getProjectByProductWithHttpInfo(productUID).then(function (response_and_data) {
|
|
517
712
|
return response_and_data.data;
|
|
518
713
|
});
|
|
519
714
|
}
|
|
@@ -558,188 +753,40 @@ var ProjectApi = /*#__PURE__*/function () {
|
|
|
558
753
|
}
|
|
559
754
|
|
|
560
755
|
/**
|
|
561
|
-
* Get
|
|
562
|
-
* @param {String} projectUID
|
|
563
|
-
* @param {Object} opts Optional parameters
|
|
564
|
-
* @param {Number} opts.pageSize (default to 50)
|
|
565
|
-
* @param {Number} opts.pageNum (default to 1)
|
|
566
|
-
* @param {String} opts.deviceUID A Device UID.
|
|
567
|
-
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
568
|
-
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
569
|
-
* @param {Number} opts.startDate Unix timestamp
|
|
570
|
-
* @param {Number} opts.endDate Unix timestamp
|
|
571
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
572
|
-
* @param {String} opts.files
|
|
573
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectEvents200Response} and HTTP response
|
|
574
|
-
*/
|
|
575
|
-
}, {
|
|
576
|
-
key: "getProjectEventsWithHttpInfo",
|
|
577
|
-
value: function getProjectEventsWithHttpInfo(projectUID, opts) {
|
|
578
|
-
opts = opts || {};
|
|
579
|
-
var postBody = null;
|
|
580
|
-
// verify the required parameter 'projectUID' is set
|
|
581
|
-
if (projectUID === undefined || projectUID === null) {
|
|
582
|
-
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectEvents");
|
|
583
|
-
}
|
|
584
|
-
var pathParams = {
|
|
585
|
-
projectUID: projectUID
|
|
586
|
-
};
|
|
587
|
-
var queryParams = {
|
|
588
|
-
pageSize: opts["pageSize"],
|
|
589
|
-
pageNum: opts["pageNum"],
|
|
590
|
-
deviceUID: opts["deviceUID"],
|
|
591
|
-
sortBy: opts["sortBy"],
|
|
592
|
-
sortOrder: opts["sortOrder"],
|
|
593
|
-
startDate: opts["startDate"],
|
|
594
|
-
endDate: opts["endDate"],
|
|
595
|
-
systemFilesOnly: opts["systemFilesOnly"],
|
|
596
|
-
files: opts["files"]
|
|
597
|
-
};
|
|
598
|
-
var headerParams = {};
|
|
599
|
-
var formParams = {};
|
|
600
|
-
var authNames = ["api_key"];
|
|
601
|
-
var contentTypes = [];
|
|
602
|
-
var accepts = ["application/json"];
|
|
603
|
-
var returnType = _GetProjectEvents200Response["default"];
|
|
604
|
-
return this.apiClient.callApi("/v1/projects/{projectUID}/events", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
605
|
-
}
|
|
606
|
-
|
|
607
|
-
/**
|
|
608
|
-
* Get Events of a Project
|
|
609
|
-
* @param {String} projectUID
|
|
610
|
-
* @param {Object} opts Optional parameters
|
|
611
|
-
* @param {Number} opts.pageSize (default to 50)
|
|
612
|
-
* @param {Number} opts.pageNum (default to 1)
|
|
613
|
-
* @param {String} opts.deviceUID A Device UID.
|
|
614
|
-
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
615
|
-
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
616
|
-
* @param {Number} opts.startDate Unix timestamp
|
|
617
|
-
* @param {Number} opts.endDate Unix timestamp
|
|
618
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
619
|
-
* @param {String} opts.files
|
|
620
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectEvents200Response}
|
|
621
|
-
*/
|
|
622
|
-
}, {
|
|
623
|
-
key: "getProjectEvents",
|
|
624
|
-
value: function getProjectEvents(projectUID, opts) {
|
|
625
|
-
return this.getProjectEventsWithHttpInfo(projectUID, opts).then(function (response_and_data) {
|
|
626
|
-
return response_and_data.data;
|
|
627
|
-
});
|
|
628
|
-
}
|
|
629
|
-
|
|
630
|
-
/**
|
|
631
|
-
* Get Events of a Project by cursor
|
|
756
|
+
* Get Project Fleets
|
|
632
757
|
* @param {String} projectUID
|
|
633
|
-
* @
|
|
634
|
-
* @param {Number} opts.limit (default to 50)
|
|
635
|
-
* @param {String} opts.cursor A cursor, which can be obtained from the `next_cursor` value from a previous call to this endpoint. The results set returned will include this event as its first result if the given identifier is actually the UID of an event. If this event UID is not found, the parameter is ignored and the results set is the same as if the parameter was not included.
|
|
636
|
-
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
637
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
638
|
-
* @param {String} opts.files
|
|
639
|
-
* @param {String} opts.deviceUID A Device UID.
|
|
640
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectEventsByCursor200Response} and HTTP response
|
|
758
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectFleets200Response} and HTTP response
|
|
641
759
|
*/
|
|
642
760
|
}, {
|
|
643
|
-
key: "
|
|
644
|
-
value: function
|
|
645
|
-
opts = opts || {};
|
|
761
|
+
key: "getProjectFleetsWithHttpInfo",
|
|
762
|
+
value: function getProjectFleetsWithHttpInfo(projectUID) {
|
|
646
763
|
var postBody = null;
|
|
647
764
|
// verify the required parameter 'projectUID' is set
|
|
648
765
|
if (projectUID === undefined || projectUID === null) {
|
|
649
|
-
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling
|
|
766
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectFleets");
|
|
650
767
|
}
|
|
651
768
|
var pathParams = {
|
|
652
769
|
projectUID: projectUID
|
|
653
770
|
};
|
|
654
|
-
var queryParams = {
|
|
655
|
-
limit: opts["limit"],
|
|
656
|
-
cursor: opts["cursor"],
|
|
657
|
-
sortOrder: opts["sortOrder"],
|
|
658
|
-
systemFilesOnly: opts["systemFilesOnly"],
|
|
659
|
-
files: opts["files"],
|
|
660
|
-
deviceUID: opts["deviceUID"]
|
|
661
|
-
};
|
|
662
|
-
var headerParams = {};
|
|
663
|
-
var formParams = {};
|
|
664
|
-
var authNames = ["api_key"];
|
|
665
|
-
var contentTypes = [];
|
|
666
|
-
var accepts = ["application/json"];
|
|
667
|
-
var returnType = _GetProjectEventsByCursor200Response["default"];
|
|
668
|
-
return this.apiClient.callApi("/v1/projects/{projectUID}/events-cursor", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
669
|
-
}
|
|
670
|
-
|
|
671
|
-
/**
|
|
672
|
-
* Get Events of a Project by cursor
|
|
673
|
-
* @param {String} projectUID
|
|
674
|
-
* @param {Object} opts Optional parameters
|
|
675
|
-
* @param {Number} opts.limit (default to 50)
|
|
676
|
-
* @param {String} opts.cursor A cursor, which can be obtained from the `next_cursor` value from a previous call to this endpoint. The results set returned will include this event as its first result if the given identifier is actually the UID of an event. If this event UID is not found, the parameter is ignored and the results set is the same as if the parameter was not included.
|
|
677
|
-
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
678
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
679
|
-
* @param {String} opts.files
|
|
680
|
-
* @param {String} opts.deviceUID A Device UID.
|
|
681
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectEventsByCursor200Response}
|
|
682
|
-
*/
|
|
683
|
-
}, {
|
|
684
|
-
key: "getProjectEventsByCursor",
|
|
685
|
-
value: function getProjectEventsByCursor(projectUID, opts) {
|
|
686
|
-
return this.getProjectEventsByCursorWithHttpInfo(projectUID, opts).then(function (response_and_data) {
|
|
687
|
-
return response_and_data.data;
|
|
688
|
-
});
|
|
689
|
-
}
|
|
690
|
-
|
|
691
|
-
/**
|
|
692
|
-
* Get Devices of a Fleet within a Project
|
|
693
|
-
* @param {String} projectUID
|
|
694
|
-
* @param {String} fleetUID
|
|
695
|
-
* @param {Object} opts Optional parameters
|
|
696
|
-
* @param {Number} opts.pageSize (default to 50)
|
|
697
|
-
* @param {Number} opts.pageNum (default to 1)
|
|
698
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectDevices200Response} and HTTP response
|
|
699
|
-
*/
|
|
700
|
-
}, {
|
|
701
|
-
key: "getProjectFleetDevicesWithHttpInfo",
|
|
702
|
-
value: function getProjectFleetDevicesWithHttpInfo(projectUID, fleetUID, opts) {
|
|
703
|
-
opts = opts || {};
|
|
704
|
-
var postBody = null;
|
|
705
|
-
// verify the required parameter 'projectUID' is set
|
|
706
|
-
if (projectUID === undefined || projectUID === null) {
|
|
707
|
-
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectFleetDevices");
|
|
708
|
-
}
|
|
709
|
-
// verify the required parameter 'fleetUID' is set
|
|
710
|
-
if (fleetUID === undefined || fleetUID === null) {
|
|
711
|
-
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getProjectFleetDevices");
|
|
712
|
-
}
|
|
713
|
-
var pathParams = {
|
|
714
|
-
projectUID: projectUID,
|
|
715
|
-
fleetUID: fleetUID
|
|
716
|
-
};
|
|
717
|
-
var queryParams = {
|
|
718
|
-
pageSize: opts["pageSize"],
|
|
719
|
-
pageNum: opts["pageNum"]
|
|
720
|
-
};
|
|
771
|
+
var queryParams = {};
|
|
721
772
|
var headerParams = {};
|
|
722
773
|
var formParams = {};
|
|
723
774
|
var authNames = ["api_key"];
|
|
724
775
|
var contentTypes = [];
|
|
725
776
|
var accepts = ["application/json"];
|
|
726
|
-
var returnType =
|
|
727
|
-
return this.apiClient.callApi("/v1/projects/{projectUID}/fleets
|
|
777
|
+
var returnType = _GetProjectFleets200Response["default"];
|
|
778
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/fleets", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
728
779
|
}
|
|
729
780
|
|
|
730
781
|
/**
|
|
731
|
-
* Get
|
|
782
|
+
* Get Project Fleets
|
|
732
783
|
* @param {String} projectUID
|
|
733
|
-
* @
|
|
734
|
-
* @param {Object} opts Optional parameters
|
|
735
|
-
* @param {Number} opts.pageSize (default to 50)
|
|
736
|
-
* @param {Number} opts.pageNum (default to 1)
|
|
737
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectDevices200Response}
|
|
784
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectFleets200Response}
|
|
738
785
|
*/
|
|
739
786
|
}, {
|
|
740
|
-
key: "
|
|
741
|
-
value: function
|
|
742
|
-
return this.
|
|
787
|
+
key: "getProjectFleets",
|
|
788
|
+
value: function getProjectFleets(projectUID) {
|
|
789
|
+
return this.getProjectFleetsWithHttpInfo(projectUID).then(function (response_and_data) {
|
|
743
790
|
return response_and_data.data;
|
|
744
791
|
});
|
|
745
792
|
}
|
|
@@ -854,27 +901,27 @@ var ProjectApi = /*#__PURE__*/function () {
|
|
|
854
901
|
}
|
|
855
902
|
|
|
856
903
|
/**
|
|
857
|
-
*
|
|
904
|
+
* Add Device to Fleets
|
|
858
905
|
* @param {String} projectUID
|
|
859
906
|
* @param {String} deviceUID
|
|
860
|
-
* @param {module:model/
|
|
861
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link
|
|
907
|
+
* @param {module:model/PutDeviceFleetsRequest} putDeviceFleetsRequest The fleets to add to the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
908
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectFleets200Response} and HTTP response
|
|
862
909
|
*/
|
|
863
910
|
}, {
|
|
864
|
-
key: "
|
|
865
|
-
value: function
|
|
866
|
-
var postBody =
|
|
911
|
+
key: "putDeviceFleetsWithHttpInfo",
|
|
912
|
+
value: function putDeviceFleetsWithHttpInfo(projectUID, deviceUID, putDeviceFleetsRequest) {
|
|
913
|
+
var postBody = putDeviceFleetsRequest;
|
|
867
914
|
// verify the required parameter 'projectUID' is set
|
|
868
915
|
if (projectUID === undefined || projectUID === null) {
|
|
869
|
-
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling
|
|
916
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling putDeviceFleets");
|
|
870
917
|
}
|
|
871
918
|
// verify the required parameter 'deviceUID' is set
|
|
872
919
|
if (deviceUID === undefined || deviceUID === null) {
|
|
873
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling
|
|
920
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling putDeviceFleets");
|
|
874
921
|
}
|
|
875
|
-
// verify the required parameter '
|
|
876
|
-
if (
|
|
877
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
922
|
+
// verify the required parameter 'putDeviceFleetsRequest' is set
|
|
923
|
+
if (putDeviceFleetsRequest === undefined || putDeviceFleetsRequest === null) {
|
|
924
|
+
throw new _Error["default"]("Missing the required parameter 'putDeviceFleetsRequest' when calling putDeviceFleets");
|
|
878
925
|
}
|
|
879
926
|
var pathParams = {
|
|
880
927
|
projectUID: projectUID,
|
|
@@ -886,21 +933,73 @@ var ProjectApi = /*#__PURE__*/function () {
|
|
|
886
933
|
var authNames = ["api_key"];
|
|
887
934
|
var contentTypes = ["application/json"];
|
|
888
935
|
var accepts = ["application/json"];
|
|
889
|
-
var returnType =
|
|
890
|
-
return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/
|
|
936
|
+
var returnType = _GetProjectFleets200Response["default"];
|
|
937
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/fleets", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
891
938
|
}
|
|
892
939
|
|
|
893
940
|
/**
|
|
894
|
-
*
|
|
941
|
+
* Add Device to Fleets
|
|
895
942
|
* @param {String} projectUID
|
|
896
943
|
* @param {String} deviceUID
|
|
897
|
-
* @param {module:model/
|
|
898
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link
|
|
944
|
+
* @param {module:model/PutDeviceFleetsRequest} putDeviceFleetsRequest The fleets to add to the device. Note that the endpoint takes an array of fleetUIDs, to facilitate multi-fleet devices. Multi-fleet is not yet enabled on all SaaS plans - unless it is supported by the SaaS plan of the project, passing more than a single fleetUID in the array is an error.
|
|
945
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectFleets200Response}
|
|
899
946
|
*/
|
|
900
947
|
}, {
|
|
901
|
-
key: "
|
|
902
|
-
value: function
|
|
903
|
-
return this.
|
|
948
|
+
key: "putDeviceFleets",
|
|
949
|
+
value: function putDeviceFleets(projectUID, deviceUID, putDeviceFleetsRequest) {
|
|
950
|
+
return this.putDeviceFleetsWithHttpInfo(projectUID, deviceUID, putDeviceFleetsRequest).then(function (response_and_data) {
|
|
951
|
+
return response_and_data.data;
|
|
952
|
+
});
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
/**
|
|
956
|
+
* Put environment variables of a fleet
|
|
957
|
+
* @param {String} projectUID
|
|
958
|
+
* @param {String} fleetUID
|
|
959
|
+
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
960
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
961
|
+
*/
|
|
962
|
+
}, {
|
|
963
|
+
key: "putFleetEnvironmentVariablesWithHttpInfo",
|
|
964
|
+
value: function putFleetEnvironmentVariablesWithHttpInfo(projectUID, fleetUID, environmentVariables) {
|
|
965
|
+
var postBody = environmentVariables;
|
|
966
|
+
// verify the required parameter 'projectUID' is set
|
|
967
|
+
if (projectUID === undefined || projectUID === null) {
|
|
968
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling putFleetEnvironmentVariables");
|
|
969
|
+
}
|
|
970
|
+
// verify the required parameter 'fleetUID' is set
|
|
971
|
+
if (fleetUID === undefined || fleetUID === null) {
|
|
972
|
+
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling putFleetEnvironmentVariables");
|
|
973
|
+
}
|
|
974
|
+
// verify the required parameter 'environmentVariables' is set
|
|
975
|
+
if (environmentVariables === undefined || environmentVariables === null) {
|
|
976
|
+
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling putFleetEnvironmentVariables");
|
|
977
|
+
}
|
|
978
|
+
var pathParams = {
|
|
979
|
+
projectUID: projectUID,
|
|
980
|
+
fleetUID: fleetUID
|
|
981
|
+
};
|
|
982
|
+
var queryParams = {};
|
|
983
|
+
var headerParams = {};
|
|
984
|
+
var formParams = {};
|
|
985
|
+
var authNames = ["api_key"];
|
|
986
|
+
var contentTypes = ["application/json"];
|
|
987
|
+
var accepts = ["application/json"];
|
|
988
|
+
var returnType = _EnvironmentVariables["default"];
|
|
989
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/fleets/{fleetUID}/environment_variables", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
/**
|
|
993
|
+
* Put environment variables of a fleet
|
|
994
|
+
* @param {String} projectUID
|
|
995
|
+
* @param {String} fleetUID
|
|
996
|
+
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
997
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
998
|
+
*/
|
|
999
|
+
}, {
|
|
1000
|
+
key: "putFleetEnvironmentVariables",
|
|
1001
|
+
value: function putFleetEnvironmentVariables(projectUID, fleetUID, environmentVariables) {
|
|
1002
|
+
return this.putFleetEnvironmentVariablesWithHttpInfo(projectUID, fleetUID, environmentVariables).then(function (response_and_data) {
|
|
904
1003
|
return response_and_data.data;
|
|
905
1004
|
});
|
|
906
1005
|
}
|
|
@@ -993,7 +1092,57 @@ var ProjectApi = /*#__PURE__*/function () {
|
|
|
993
1092
|
return response_and_data.data;
|
|
994
1093
|
});
|
|
995
1094
|
}
|
|
1095
|
+
|
|
1096
|
+
/**
|
|
1097
|
+
* Update Fleet
|
|
1098
|
+
* @param {String} projectUID
|
|
1099
|
+
* @param {String} fleetUID
|
|
1100
|
+
* @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
|
|
1101
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
1102
|
+
*/
|
|
1103
|
+
}, {
|
|
1104
|
+
key: "updateFleetWithHttpInfo",
|
|
1105
|
+
value: function updateFleetWithHttpInfo(projectUID, fleetUID, updateFleetRequest) {
|
|
1106
|
+
var postBody = updateFleetRequest;
|
|
1107
|
+
// verify the required parameter 'projectUID' is set
|
|
1108
|
+
if (projectUID === undefined || projectUID === null) {
|
|
1109
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling updateFleet");
|
|
1110
|
+
}
|
|
1111
|
+
// verify the required parameter 'fleetUID' is set
|
|
1112
|
+
if (fleetUID === undefined || fleetUID === null) {
|
|
1113
|
+
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling updateFleet");
|
|
1114
|
+
}
|
|
1115
|
+
// verify the required parameter 'updateFleetRequest' is set
|
|
1116
|
+
if (updateFleetRequest === undefined || updateFleetRequest === null) {
|
|
1117
|
+
throw new _Error["default"]("Missing the required parameter 'updateFleetRequest' when calling updateFleet");
|
|
1118
|
+
}
|
|
1119
|
+
var pathParams = {
|
|
1120
|
+
projectUID: projectUID,
|
|
1121
|
+
fleetUID: fleetUID
|
|
1122
|
+
};
|
|
1123
|
+
var queryParams = {};
|
|
1124
|
+
var headerParams = {};
|
|
1125
|
+
var formParams = {};
|
|
1126
|
+
var authNames = ["api_key"];
|
|
1127
|
+
var contentTypes = ["application/json"];
|
|
1128
|
+
var accepts = ["application/json"];
|
|
1129
|
+
var returnType = _Fleet["default"];
|
|
1130
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/fleets/{fleetUID}", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
/**
|
|
1134
|
+
* Update Fleet
|
|
1135
|
+
* @param {String} projectUID
|
|
1136
|
+
* @param {String} fleetUID
|
|
1137
|
+
* @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
|
|
1138
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
1139
|
+
*/
|
|
1140
|
+
}, {
|
|
1141
|
+
key: "updateFleet",
|
|
1142
|
+
value: function updateFleet(projectUID, fleetUID, updateFleetRequest) {
|
|
1143
|
+
return this.updateFleetWithHttpInfo(projectUID, fleetUID, updateFleetRequest).then(function (response_and_data) {
|
|
1144
|
+
return response_and_data.data;
|
|
1145
|
+
});
|
|
1146
|
+
}
|
|
996
1147
|
}]);
|
|
997
|
-
|
|
998
|
-
}();
|
|
999
|
-
exports["default"] = ProjectApi;
|
|
1148
|
+
}();
|