@blues-inc/notehub-js 1.0.10 → 1.0.11
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 +181 -178
- package/dist/ApiClient.js +157 -154
- package/dist/api/AuthorizationApi.js +63 -18
- package/dist/api/BillingAccountApi.js +15 -15
- package/dist/api/DeviceApi.js +159 -159
- package/dist/api/DevicesApi.js +58 -58
- package/dist/api/EnvironmentVariablesApi.js +110 -110
- package/dist/api/EventApi.js +94 -94
- package/dist/api/FilesApi.js +42 -42
- package/dist/api/FleetApi.js +160 -160
- package/dist/api/NotesApi.js +105 -105
- package/dist/api/ProductApi.js +29 -29
- package/dist/api/ProjectApi.js +139 -139
- package/dist/api/RouteApi.js +51 -51
- package/dist/index.js +7 -0
- package/dist/model/Aws.js +64 -64
- package/dist/model/Azure.js +42 -42
- package/dist/model/BillingAccount.js +20 -20
- package/dist/model/Body.js +4 -4
- package/dist/model/Contact.js +21 -21
- package/dist/model/CreateFleetRequest.js +6 -6
- package/dist/model/CreateProductRequest.js +21 -21
- package/dist/model/CreateProjectRequest.js +13 -13
- package/dist/model/DFUEnv.js +11 -11
- package/dist/model/DFUState.js +64 -64
- package/dist/model/DeleteDeviceFleetsRequest.js +7 -7
- package/dist/model/Device.js +82 -82
- package/dist/model/DeviceSession.js +181 -181
- package/dist/model/DeviceTowerInfo.js +13 -13
- package/dist/model/DeviceUsage.js +31 -31
- package/dist/model/EnvironmentVariables.js +7 -7
- package/dist/model/Error.js +30 -30
- package/dist/model/Event.js +222 -222
- package/dist/model/Fleet.js +20 -20
- package/dist/model/GenerateAuthToken200Response.js +114 -0
- package/dist/model/GetBillingAccounts200Response.js +8 -9
- package/dist/model/GetDeviceEnvironmentVariables200Response.js +11 -11
- package/dist/model/GetDeviceHealthLog200Response.js +10 -11
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +18 -18
- package/dist/model/GetDeviceLatest200Response.js +8 -9
- package/dist/model/GetDevicePublicKey200Response.js +15 -15
- package/dist/model/GetDeviceSessions200Response.js +15 -16
- package/dist/model/GetProjectDevicePublicKeys200Response.js +15 -16
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +11 -11
- package/dist/model/GetProjectDevices200Response.js +15 -16
- package/dist/model/GetProjectEvents200Response.js +20 -21
- package/dist/model/GetProjectEventsByCursor200Response.js +22 -23
- package/dist/model/GetProjectFleets200Response.js +10 -11
- package/dist/model/GetProjectMembers200Response.js +10 -11
- package/dist/model/GetProjectProducts200Response.js +8 -9
- package/dist/model/GetProjects200Response.js +8 -9
- package/dist/model/Google.js +27 -27
- package/dist/model/HandleNoteChanges200Response.js +10 -10
- package/dist/model/HandleNoteGet200Response.js +12 -12
- package/dist/model/HandleNoteSignal200Response.js +4 -4
- package/dist/model/HandleNotefileChanges200Response.js +10 -10
- package/dist/model/HandleNotefileChangesPending200Response.js +13 -13
- package/dist/model/HandleNotefileDeleteRequest.js +6 -6
- package/dist/model/Http.js +34 -34
- package/dist/model/HttpFilter.js +18 -18
- package/dist/model/HttpTransform.js +19 -19
- package/dist/model/Location.js +39 -39
- package/dist/model/Login200Response.js +6 -6
- package/dist/model/LoginRequest.js +11 -11
- package/dist/model/Mqtt.js +65 -65
- package/dist/model/Note.js +9 -9
- package/dist/model/Product.js +25 -25
- package/dist/model/Project.js +33 -33
- package/dist/model/ProjectMember.js +21 -21
- package/dist/model/Proxy.js +23 -23
- package/dist/model/PutDeviceFleetsRequest.js +7 -7
- package/dist/model/Radresponder.js +24 -24
- package/dist/model/Route.js +35 -35
- package/dist/model/RouteSchema.js +39 -38
- package/dist/model/Snowflake.js +44 -44
- package/dist/model/SnowflakeTransform.js +11 -11
- package/dist/model/Thingworx.js +32 -32
- package/dist/model/TowerLocation.js +51 -51
- package/dist/model/Twilio.js +42 -42
- package/dist/model/UpdateFleetRequest.js +16 -16
- package/dist/model/UserDbRoute.js +24 -24
- package/package.json +3 -3
package/dist/api/FleetApi.js
CHANGED
|
@@ -24,18 +24,18 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
24
24
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
25
25
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
26
26
|
/**
|
|
27
|
-
* Fleet service.
|
|
28
|
-
* @module api/FleetApi
|
|
29
|
-
* @version 1.0.
|
|
30
|
-
*/
|
|
27
|
+
* Fleet service.
|
|
28
|
+
* @module api/FleetApi
|
|
29
|
+
* @version 1.0.11
|
|
30
|
+
*/
|
|
31
31
|
var FleetApi = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
33
|
+
* Constructs a new FleetApi.
|
|
34
|
+
* @alias module:api/FleetApi
|
|
35
|
+
* @class
|
|
36
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
37
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
38
|
+
*/
|
|
39
39
|
function FleetApi(apiClient) {
|
|
40
40
|
_classCallCheck(this, FleetApi);
|
|
41
41
|
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
@@ -43,7 +43,7 @@ var FleetApi = /*#__PURE__*/function () {
|
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* Create Fleet
|
|
46
|
-
* @param {String} projectUID
|
|
46
|
+
* @param {String} projectUID
|
|
47
47
|
* @param {module:model/CreateFleetRequest} createFleetRequest Fleet to be added
|
|
48
48
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
49
49
|
*/
|
|
@@ -60,21 +60,21 @@ var FleetApi = /*#__PURE__*/function () {
|
|
|
60
60
|
throw new _Error["default"]("Missing the required parameter 'createFleetRequest' when calling createFleet");
|
|
61
61
|
}
|
|
62
62
|
var pathParams = {
|
|
63
|
-
|
|
63
|
+
projectUID: projectUID
|
|
64
64
|
};
|
|
65
65
|
var queryParams = {};
|
|
66
66
|
var headerParams = {};
|
|
67
67
|
var formParams = {};
|
|
68
|
-
var authNames = [
|
|
69
|
-
var contentTypes = [
|
|
70
|
-
var accepts = [
|
|
68
|
+
var authNames = ["bearer_access_token"];
|
|
69
|
+
var contentTypes = ["application/json"];
|
|
70
|
+
var accepts = ["application/json"];
|
|
71
71
|
var returnType = _Fleet["default"];
|
|
72
|
-
return this.apiClient.callApi(
|
|
72
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/fleets", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
76
|
* Create Fleet
|
|
77
|
-
* @param {String} projectUID
|
|
77
|
+
* @param {String} projectUID
|
|
78
78
|
* @param {module:model/CreateFleetRequest} createFleetRequest Fleet to be added
|
|
79
79
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
80
80
|
*/
|
|
@@ -88,9 +88,9 @@ var FleetApi = /*#__PURE__*/function () {
|
|
|
88
88
|
|
|
89
89
|
/**
|
|
90
90
|
* Remove Device from Fleets
|
|
91
|
-
* @param {String} projectUID
|
|
92
|
-
* @param {String} deviceUID
|
|
93
|
-
* @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.
|
|
91
|
+
* @param {String} projectUID
|
|
92
|
+
* @param {String} deviceUID
|
|
93
|
+
* @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.
|
|
94
94
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectFleets200Response} and HTTP response
|
|
95
95
|
*/
|
|
96
96
|
}, {
|
|
@@ -110,24 +110,24 @@ var FleetApi = /*#__PURE__*/function () {
|
|
|
110
110
|
throw new _Error["default"]("Missing the required parameter 'deleteDeviceFleetsRequest' when calling deleteDeviceFleets");
|
|
111
111
|
}
|
|
112
112
|
var pathParams = {
|
|
113
|
-
|
|
114
|
-
|
|
113
|
+
projectUID: projectUID,
|
|
114
|
+
deviceUID: deviceUID
|
|
115
115
|
};
|
|
116
116
|
var queryParams = {};
|
|
117
117
|
var headerParams = {};
|
|
118
118
|
var formParams = {};
|
|
119
|
-
var authNames = [
|
|
120
|
-
var contentTypes = [
|
|
121
|
-
var accepts = [
|
|
119
|
+
var authNames = ["bearer_access_token"];
|
|
120
|
+
var contentTypes = ["application/json"];
|
|
121
|
+
var accepts = ["application/json"];
|
|
122
122
|
var returnType = _GetProjectFleets200Response["default"];
|
|
123
|
-
return this.apiClient.callApi(
|
|
123
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/fleets", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
/**
|
|
127
127
|
* Remove Device from Fleets
|
|
128
|
-
* @param {String} projectUID
|
|
129
|
-
* @param {String} deviceUID
|
|
130
|
-
* @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.
|
|
128
|
+
* @param {String} projectUID
|
|
129
|
+
* @param {String} deviceUID
|
|
130
|
+
* @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.
|
|
131
131
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectFleets200Response}
|
|
132
132
|
*/
|
|
133
133
|
}, {
|
|
@@ -140,8 +140,8 @@ var FleetApi = /*#__PURE__*/function () {
|
|
|
140
140
|
|
|
141
141
|
/**
|
|
142
142
|
* Delete Fleet
|
|
143
|
-
* @param {String} projectUID
|
|
144
|
-
* @param {String} fleetUID
|
|
143
|
+
* @param {String} projectUID
|
|
144
|
+
* @param {String} fleetUID
|
|
145
145
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
146
146
|
*/
|
|
147
147
|
}, {
|
|
@@ -157,23 +157,23 @@ var FleetApi = /*#__PURE__*/function () {
|
|
|
157
157
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling deleteFleet");
|
|
158
158
|
}
|
|
159
159
|
var pathParams = {
|
|
160
|
-
|
|
161
|
-
|
|
160
|
+
projectUID: projectUID,
|
|
161
|
+
fleetUID: fleetUID
|
|
162
162
|
};
|
|
163
163
|
var queryParams = {};
|
|
164
164
|
var headerParams = {};
|
|
165
165
|
var formParams = {};
|
|
166
|
-
var authNames = [
|
|
166
|
+
var authNames = ["bearer_access_token"];
|
|
167
167
|
var contentTypes = [];
|
|
168
|
-
var accepts = [
|
|
168
|
+
var accepts = ["application/json"];
|
|
169
169
|
var returnType = null;
|
|
170
|
-
return this.apiClient.callApi(
|
|
170
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/fleets/{fleetUID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
/**
|
|
174
174
|
* Delete Fleet
|
|
175
|
-
* @param {String} projectUID
|
|
176
|
-
* @param {String} fleetUID
|
|
175
|
+
* @param {String} projectUID
|
|
176
|
+
* @param {String} fleetUID
|
|
177
177
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
178
178
|
*/
|
|
179
179
|
}, {
|
|
@@ -186,8 +186,8 @@ var FleetApi = /*#__PURE__*/function () {
|
|
|
186
186
|
|
|
187
187
|
/**
|
|
188
188
|
* Delete environment variables of a fleet
|
|
189
|
-
* @param {String} projectUID
|
|
190
|
-
* @param {String} fleetUID
|
|
189
|
+
* @param {String} projectUID
|
|
190
|
+
* @param {String} fleetUID
|
|
191
191
|
* @param {String} key The environment variable key to delete.
|
|
192
192
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
193
193
|
*/
|
|
@@ -208,24 +208,24 @@ var FleetApi = /*#__PURE__*/function () {
|
|
|
208
208
|
throw new _Error["default"]("Missing the required parameter 'key' when calling deleteFleetEnvironmentVariable");
|
|
209
209
|
}
|
|
210
210
|
var pathParams = {
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
211
|
+
projectUID: projectUID,
|
|
212
|
+
fleetUID: fleetUID,
|
|
213
|
+
key: key
|
|
214
214
|
};
|
|
215
215
|
var queryParams = {};
|
|
216
216
|
var headerParams = {};
|
|
217
217
|
var formParams = {};
|
|
218
|
-
var authNames = [
|
|
218
|
+
var authNames = ["bearer_access_token"];
|
|
219
219
|
var contentTypes = [];
|
|
220
|
-
var accepts = [
|
|
220
|
+
var accepts = ["application/json"];
|
|
221
221
|
var returnType = _EnvironmentVariables["default"];
|
|
222
|
-
return this.apiClient.callApi(
|
|
222
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/fleets/{fleetUID}/environment_variables/{key}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
223
223
|
}
|
|
224
224
|
|
|
225
225
|
/**
|
|
226
226
|
* Delete environment variables of a fleet
|
|
227
|
-
* @param {String} projectUID
|
|
228
|
-
* @param {String} fleetUID
|
|
227
|
+
* @param {String} projectUID
|
|
228
|
+
* @param {String} fleetUID
|
|
229
229
|
* @param {String} key The environment variable key to delete.
|
|
230
230
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
231
231
|
*/
|
|
@@ -239,8 +239,8 @@ var FleetApi = /*#__PURE__*/function () {
|
|
|
239
239
|
|
|
240
240
|
/**
|
|
241
241
|
* Get Device Fleets
|
|
242
|
-
* @param {String} projectUID
|
|
243
|
-
* @param {String} deviceUID
|
|
242
|
+
* @param {String} projectUID
|
|
243
|
+
* @param {String} deviceUID
|
|
244
244
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectFleets200Response} and HTTP response
|
|
245
245
|
*/
|
|
246
246
|
}, {
|
|
@@ -256,23 +256,23 @@ var FleetApi = /*#__PURE__*/function () {
|
|
|
256
256
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceFleets");
|
|
257
257
|
}
|
|
258
258
|
var pathParams = {
|
|
259
|
-
|
|
260
|
-
|
|
259
|
+
projectUID: projectUID,
|
|
260
|
+
deviceUID: deviceUID
|
|
261
261
|
};
|
|
262
262
|
var queryParams = {};
|
|
263
263
|
var headerParams = {};
|
|
264
264
|
var formParams = {};
|
|
265
|
-
var authNames = [
|
|
265
|
+
var authNames = ["bearer_access_token"];
|
|
266
266
|
var contentTypes = [];
|
|
267
|
-
var accepts = [
|
|
267
|
+
var accepts = ["application/json"];
|
|
268
268
|
var returnType = _GetProjectFleets200Response["default"];
|
|
269
|
-
return this.apiClient.callApi(
|
|
269
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/fleets", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
270
270
|
}
|
|
271
271
|
|
|
272
272
|
/**
|
|
273
273
|
* Get Device Fleets
|
|
274
|
-
* @param {String} projectUID
|
|
275
|
-
* @param {String} deviceUID
|
|
274
|
+
* @param {String} projectUID
|
|
275
|
+
* @param {String} deviceUID
|
|
276
276
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectFleets200Response}
|
|
277
277
|
*/
|
|
278
278
|
}, {
|
|
@@ -285,8 +285,8 @@ var FleetApi = /*#__PURE__*/function () {
|
|
|
285
285
|
|
|
286
286
|
/**
|
|
287
287
|
* Get environment variables of a fleet
|
|
288
|
-
* @param {String} projectUID
|
|
289
|
-
* @param {String} fleetUID
|
|
288
|
+
* @param {String} projectUID
|
|
289
|
+
* @param {String} fleetUID
|
|
290
290
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
291
291
|
*/
|
|
292
292
|
}, {
|
|
@@ -302,23 +302,23 @@ var FleetApi = /*#__PURE__*/function () {
|
|
|
302
302
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEnvironmentVariables");
|
|
303
303
|
}
|
|
304
304
|
var pathParams = {
|
|
305
|
-
|
|
306
|
-
|
|
305
|
+
projectUID: projectUID,
|
|
306
|
+
fleetUID: fleetUID
|
|
307
307
|
};
|
|
308
308
|
var queryParams = {};
|
|
309
309
|
var headerParams = {};
|
|
310
310
|
var formParams = {};
|
|
311
|
-
var authNames = [
|
|
311
|
+
var authNames = ["bearer_access_token"];
|
|
312
312
|
var contentTypes = [];
|
|
313
|
-
var accepts = [
|
|
313
|
+
var accepts = ["application/json"];
|
|
314
314
|
var returnType = _EnvironmentVariables["default"];
|
|
315
|
-
return this.apiClient.callApi(
|
|
315
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/fleets/{fleetUID}/environment_variables", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
316
316
|
}
|
|
317
317
|
|
|
318
318
|
/**
|
|
319
319
|
* Get environment variables of a fleet
|
|
320
|
-
* @param {String} projectUID
|
|
321
|
-
* @param {String} fleetUID
|
|
320
|
+
* @param {String} projectUID
|
|
321
|
+
* @param {String} fleetUID
|
|
322
322
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
323
323
|
*/
|
|
324
324
|
}, {
|
|
@@ -331,8 +331,8 @@ var FleetApi = /*#__PURE__*/function () {
|
|
|
331
331
|
|
|
332
332
|
/**
|
|
333
333
|
* Get Events of a Fleet
|
|
334
|
-
* @param {String} projectUID
|
|
335
|
-
* @param {String} fleetUID
|
|
334
|
+
* @param {String} projectUID
|
|
335
|
+
* @param {String} fleetUID
|
|
336
336
|
* @param {Object} opts Optional parameters
|
|
337
337
|
* @param {Number} opts.pageSize (default to 50)
|
|
338
338
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -341,8 +341,8 @@ var FleetApi = /*#__PURE__*/function () {
|
|
|
341
341
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
342
342
|
* @param {Number} opts.startDate Unix timestamp
|
|
343
343
|
* @param {Number} opts.endDate Unix timestamp
|
|
344
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
345
|
-
* @param {String} opts.files
|
|
344
|
+
* @param {Boolean} opts.systemFilesOnly
|
|
345
|
+
* @param {String} opts.files
|
|
346
346
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectEvents200Response} and HTTP response
|
|
347
347
|
*/
|
|
348
348
|
}, {
|
|
@@ -359,33 +359,33 @@ var FleetApi = /*#__PURE__*/function () {
|
|
|
359
359
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEvents");
|
|
360
360
|
}
|
|
361
361
|
var pathParams = {
|
|
362
|
-
|
|
363
|
-
|
|
362
|
+
projectUID: projectUID,
|
|
363
|
+
fleetUID: fleetUID
|
|
364
364
|
};
|
|
365
365
|
var queryParams = {
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
366
|
+
pageSize: opts["pageSize"],
|
|
367
|
+
pageNum: opts["pageNum"],
|
|
368
|
+
deviceUID: opts["deviceUID"],
|
|
369
|
+
sortBy: opts["sortBy"],
|
|
370
|
+
sortOrder: opts["sortOrder"],
|
|
371
|
+
startDate: opts["startDate"],
|
|
372
|
+
endDate: opts["endDate"],
|
|
373
|
+
systemFilesOnly: opts["systemFilesOnly"],
|
|
374
|
+
files: opts["files"]
|
|
375
375
|
};
|
|
376
376
|
var headerParams = {};
|
|
377
377
|
var formParams = {};
|
|
378
|
-
var authNames = [
|
|
378
|
+
var authNames = ["bearer_access_token"];
|
|
379
379
|
var contentTypes = [];
|
|
380
|
-
var accepts = [
|
|
380
|
+
var accepts = ["application/json"];
|
|
381
381
|
var returnType = _GetProjectEvents200Response["default"];
|
|
382
|
-
return this.apiClient.callApi(
|
|
382
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/fleets/{fleetUID}/events", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
383
383
|
}
|
|
384
384
|
|
|
385
385
|
/**
|
|
386
386
|
* Get Events of a Fleet
|
|
387
|
-
* @param {String} projectUID
|
|
388
|
-
* @param {String} fleetUID
|
|
387
|
+
* @param {String} projectUID
|
|
388
|
+
* @param {String} fleetUID
|
|
389
389
|
* @param {Object} opts Optional parameters
|
|
390
390
|
* @param {Number} opts.pageSize (default to 50)
|
|
391
391
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -394,8 +394,8 @@ var FleetApi = /*#__PURE__*/function () {
|
|
|
394
394
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
395
395
|
* @param {Number} opts.startDate Unix timestamp
|
|
396
396
|
* @param {Number} opts.endDate Unix timestamp
|
|
397
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
398
|
-
* @param {String} opts.files
|
|
397
|
+
* @param {Boolean} opts.systemFilesOnly
|
|
398
|
+
* @param {String} opts.files
|
|
399
399
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectEvents200Response}
|
|
400
400
|
*/
|
|
401
401
|
}, {
|
|
@@ -408,14 +408,14 @@ var FleetApi = /*#__PURE__*/function () {
|
|
|
408
408
|
|
|
409
409
|
/**
|
|
410
410
|
* Get Events of a Fleet by cursor
|
|
411
|
-
* @param {String} projectUID
|
|
412
|
-
* @param {String} fleetUID
|
|
411
|
+
* @param {String} projectUID
|
|
412
|
+
* @param {String} fleetUID
|
|
413
413
|
* @param {Object} opts Optional parameters
|
|
414
414
|
* @param {Number} opts.limit (default to 50)
|
|
415
|
-
* @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.
|
|
415
|
+
* @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.
|
|
416
416
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
417
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
418
|
-
* @param {String} opts.files
|
|
417
|
+
* @param {Boolean} opts.systemFilesOnly
|
|
418
|
+
* @param {String} opts.files
|
|
419
419
|
* @param {String} opts.deviceUID A Device UID.
|
|
420
420
|
* @param {Number} opts.startDate Unix timestamp
|
|
421
421
|
* @param {Number} opts.endDate Unix timestamp
|
|
@@ -435,38 +435,38 @@ var FleetApi = /*#__PURE__*/function () {
|
|
|
435
435
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEventsByCursor");
|
|
436
436
|
}
|
|
437
437
|
var pathParams = {
|
|
438
|
-
|
|
439
|
-
|
|
438
|
+
projectUID: projectUID,
|
|
439
|
+
fleetUID: fleetUID
|
|
440
440
|
};
|
|
441
441
|
var queryParams = {
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
442
|
+
limit: opts["limit"],
|
|
443
|
+
cursor: opts["cursor"],
|
|
444
|
+
sortOrder: opts["sortOrder"],
|
|
445
|
+
systemFilesOnly: opts["systemFilesOnly"],
|
|
446
|
+
files: opts["files"],
|
|
447
|
+
deviceUID: opts["deviceUID"],
|
|
448
|
+
startDate: opts["startDate"],
|
|
449
|
+
endDate: opts["endDate"]
|
|
450
450
|
};
|
|
451
451
|
var headerParams = {};
|
|
452
452
|
var formParams = {};
|
|
453
|
-
var authNames = [
|
|
453
|
+
var authNames = ["bearer_access_token"];
|
|
454
454
|
var contentTypes = [];
|
|
455
|
-
var accepts = [
|
|
455
|
+
var accepts = ["application/json"];
|
|
456
456
|
var returnType = _GetProjectEventsByCursor200Response["default"];
|
|
457
|
-
return this.apiClient.callApi(
|
|
457
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/fleets/{fleetUID}/events-cursor", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
458
458
|
}
|
|
459
459
|
|
|
460
460
|
/**
|
|
461
461
|
* Get Events of a Fleet by cursor
|
|
462
|
-
* @param {String} projectUID
|
|
463
|
-
* @param {String} fleetUID
|
|
462
|
+
* @param {String} projectUID
|
|
463
|
+
* @param {String} fleetUID
|
|
464
464
|
* @param {Object} opts Optional parameters
|
|
465
465
|
* @param {Number} opts.limit (default to 50)
|
|
466
|
-
* @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.
|
|
466
|
+
* @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.
|
|
467
467
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
468
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
469
|
-
* @param {String} opts.files
|
|
468
|
+
* @param {Boolean} opts.systemFilesOnly
|
|
469
|
+
* @param {String} opts.files
|
|
470
470
|
* @param {String} opts.deviceUID A Device UID.
|
|
471
471
|
* @param {Number} opts.startDate Unix timestamp
|
|
472
472
|
* @param {Number} opts.endDate Unix timestamp
|
|
@@ -482,8 +482,8 @@ var FleetApi = /*#__PURE__*/function () {
|
|
|
482
482
|
|
|
483
483
|
/**
|
|
484
484
|
* Get Devices of a Fleet within a Project
|
|
485
|
-
* @param {String} projectUID
|
|
486
|
-
* @param {String} fleetUID
|
|
485
|
+
* @param {String} projectUID
|
|
486
|
+
* @param {String} fleetUID
|
|
487
487
|
* @param {Object} opts Optional parameters
|
|
488
488
|
* @param {Number} opts.pageSize (default to 50)
|
|
489
489
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -503,26 +503,26 @@ var FleetApi = /*#__PURE__*/function () {
|
|
|
503
503
|
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getProjectFleetDevices");
|
|
504
504
|
}
|
|
505
505
|
var pathParams = {
|
|
506
|
-
|
|
507
|
-
|
|
506
|
+
projectUID: projectUID,
|
|
507
|
+
fleetUID: fleetUID
|
|
508
508
|
};
|
|
509
509
|
var queryParams = {
|
|
510
|
-
|
|
511
|
-
|
|
510
|
+
pageSize: opts["pageSize"],
|
|
511
|
+
pageNum: opts["pageNum"]
|
|
512
512
|
};
|
|
513
513
|
var headerParams = {};
|
|
514
514
|
var formParams = {};
|
|
515
|
-
var authNames = [
|
|
515
|
+
var authNames = ["bearer_access_token"];
|
|
516
516
|
var contentTypes = [];
|
|
517
|
-
var accepts = [
|
|
517
|
+
var accepts = ["application/json"];
|
|
518
518
|
var returnType = _GetProjectDevices200Response["default"];
|
|
519
|
-
return this.apiClient.callApi(
|
|
519
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/fleets/{fleetUID}/devices", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
520
520
|
}
|
|
521
521
|
|
|
522
522
|
/**
|
|
523
523
|
* Get Devices of a Fleet within a Project
|
|
524
|
-
* @param {String} projectUID
|
|
525
|
-
* @param {String} fleetUID
|
|
524
|
+
* @param {String} projectUID
|
|
525
|
+
* @param {String} fleetUID
|
|
526
526
|
* @param {Object} opts Optional parameters
|
|
527
527
|
* @param {Number} opts.pageSize (default to 50)
|
|
528
528
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -538,7 +538,7 @@ var FleetApi = /*#__PURE__*/function () {
|
|
|
538
538
|
|
|
539
539
|
/**
|
|
540
540
|
* Get Project Fleets
|
|
541
|
-
* @param {String} projectUID
|
|
541
|
+
* @param {String} projectUID
|
|
542
542
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectFleets200Response} and HTTP response
|
|
543
543
|
*/
|
|
544
544
|
}, {
|
|
@@ -550,21 +550,21 @@ var FleetApi = /*#__PURE__*/function () {
|
|
|
550
550
|
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling getProjectFleets");
|
|
551
551
|
}
|
|
552
552
|
var pathParams = {
|
|
553
|
-
|
|
553
|
+
projectUID: projectUID
|
|
554
554
|
};
|
|
555
555
|
var queryParams = {};
|
|
556
556
|
var headerParams = {};
|
|
557
557
|
var formParams = {};
|
|
558
|
-
var authNames = [
|
|
558
|
+
var authNames = ["bearer_access_token"];
|
|
559
559
|
var contentTypes = [];
|
|
560
|
-
var accepts = [
|
|
560
|
+
var accepts = ["application/json"];
|
|
561
561
|
var returnType = _GetProjectFleets200Response["default"];
|
|
562
|
-
return this.apiClient.callApi(
|
|
562
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/fleets", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
563
563
|
}
|
|
564
564
|
|
|
565
565
|
/**
|
|
566
566
|
* Get Project Fleets
|
|
567
|
-
* @param {String} projectUID
|
|
567
|
+
* @param {String} projectUID
|
|
568
568
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectFleets200Response}
|
|
569
569
|
*/
|
|
570
570
|
}, {
|
|
@@ -577,9 +577,9 @@ var FleetApi = /*#__PURE__*/function () {
|
|
|
577
577
|
|
|
578
578
|
/**
|
|
579
579
|
* Add Device to Fleets
|
|
580
|
-
* @param {String} projectUID
|
|
581
|
-
* @param {String} deviceUID
|
|
582
|
-
* @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.
|
|
580
|
+
* @param {String} projectUID
|
|
581
|
+
* @param {String} deviceUID
|
|
582
|
+
* @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.
|
|
583
583
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectFleets200Response} and HTTP response
|
|
584
584
|
*/
|
|
585
585
|
}, {
|
|
@@ -599,24 +599,24 @@ var FleetApi = /*#__PURE__*/function () {
|
|
|
599
599
|
throw new _Error["default"]("Missing the required parameter 'putDeviceFleetsRequest' when calling putDeviceFleets");
|
|
600
600
|
}
|
|
601
601
|
var pathParams = {
|
|
602
|
-
|
|
603
|
-
|
|
602
|
+
projectUID: projectUID,
|
|
603
|
+
deviceUID: deviceUID
|
|
604
604
|
};
|
|
605
605
|
var queryParams = {};
|
|
606
606
|
var headerParams = {};
|
|
607
607
|
var formParams = {};
|
|
608
|
-
var authNames = [
|
|
609
|
-
var contentTypes = [
|
|
610
|
-
var accepts = [
|
|
608
|
+
var authNames = ["bearer_access_token"];
|
|
609
|
+
var contentTypes = ["application/json"];
|
|
610
|
+
var accepts = ["application/json"];
|
|
611
611
|
var returnType = _GetProjectFleets200Response["default"];
|
|
612
|
-
return this.apiClient.callApi(
|
|
612
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/fleets", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
613
613
|
}
|
|
614
614
|
|
|
615
615
|
/**
|
|
616
616
|
* Add Device to Fleets
|
|
617
|
-
* @param {String} projectUID
|
|
618
|
-
* @param {String} deviceUID
|
|
619
|
-
* @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.
|
|
617
|
+
* @param {String} projectUID
|
|
618
|
+
* @param {String} deviceUID
|
|
619
|
+
* @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.
|
|
620
620
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectFleets200Response}
|
|
621
621
|
*/
|
|
622
622
|
}, {
|
|
@@ -629,8 +629,8 @@ var FleetApi = /*#__PURE__*/function () {
|
|
|
629
629
|
|
|
630
630
|
/**
|
|
631
631
|
* Put environment variables of a fleet
|
|
632
|
-
* @param {String} projectUID
|
|
633
|
-
* @param {String} fleetUID
|
|
632
|
+
* @param {String} projectUID
|
|
633
|
+
* @param {String} fleetUID
|
|
634
634
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
635
635
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
636
636
|
*/
|
|
@@ -651,23 +651,23 @@ var FleetApi = /*#__PURE__*/function () {
|
|
|
651
651
|
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling putFleetEnvironmentVariables");
|
|
652
652
|
}
|
|
653
653
|
var pathParams = {
|
|
654
|
-
|
|
655
|
-
|
|
654
|
+
projectUID: projectUID,
|
|
655
|
+
fleetUID: fleetUID
|
|
656
656
|
};
|
|
657
657
|
var queryParams = {};
|
|
658
658
|
var headerParams = {};
|
|
659
659
|
var formParams = {};
|
|
660
|
-
var authNames = [
|
|
661
|
-
var contentTypes = [
|
|
662
|
-
var accepts = [
|
|
660
|
+
var authNames = ["bearer_access_token"];
|
|
661
|
+
var contentTypes = ["application/json"];
|
|
662
|
+
var accepts = ["application/json"];
|
|
663
663
|
var returnType = _EnvironmentVariables["default"];
|
|
664
|
-
return this.apiClient.callApi(
|
|
664
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/fleets/{fleetUID}/environment_variables", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
665
665
|
}
|
|
666
666
|
|
|
667
667
|
/**
|
|
668
668
|
* Put environment variables of a fleet
|
|
669
|
-
* @param {String} projectUID
|
|
670
|
-
* @param {String} fleetUID
|
|
669
|
+
* @param {String} projectUID
|
|
670
|
+
* @param {String} fleetUID
|
|
671
671
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the fleet
|
|
672
672
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
673
673
|
*/
|
|
@@ -681,8 +681,8 @@ var FleetApi = /*#__PURE__*/function () {
|
|
|
681
681
|
|
|
682
682
|
/**
|
|
683
683
|
* Update Fleet
|
|
684
|
-
* @param {String} projectUID
|
|
685
|
-
* @param {String} fleetUID
|
|
684
|
+
* @param {String} projectUID
|
|
685
|
+
* @param {String} fleetUID
|
|
686
686
|
* @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
|
|
687
687
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Fleet} and HTTP response
|
|
688
688
|
*/
|
|
@@ -703,23 +703,23 @@ var FleetApi = /*#__PURE__*/function () {
|
|
|
703
703
|
throw new _Error["default"]("Missing the required parameter 'updateFleetRequest' when calling updateFleet");
|
|
704
704
|
}
|
|
705
705
|
var pathParams = {
|
|
706
|
-
|
|
707
|
-
|
|
706
|
+
projectUID: projectUID,
|
|
707
|
+
fleetUID: fleetUID
|
|
708
708
|
};
|
|
709
709
|
var queryParams = {};
|
|
710
710
|
var headerParams = {};
|
|
711
711
|
var formParams = {};
|
|
712
|
-
var authNames = [
|
|
713
|
-
var contentTypes = [
|
|
714
|
-
var accepts = [
|
|
712
|
+
var authNames = ["bearer_access_token"];
|
|
713
|
+
var contentTypes = ["application/json"];
|
|
714
|
+
var accepts = ["application/json"];
|
|
715
715
|
var returnType = _Fleet["default"];
|
|
716
|
-
return this.apiClient.callApi(
|
|
716
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/fleets/{fleetUID}", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
717
717
|
}
|
|
718
718
|
|
|
719
719
|
/**
|
|
720
720
|
* Update Fleet
|
|
721
|
-
* @param {String} projectUID
|
|
722
|
-
* @param {String} fleetUID
|
|
721
|
+
* @param {String} projectUID
|
|
722
|
+
* @param {String} fleetUID
|
|
723
723
|
* @param {module:model/UpdateFleetRequest} updateFleetRequest Fleet details to update
|
|
724
724
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Fleet}
|
|
725
725
|
*/
|