@blues-inc/notehub-js 1.0.17 → 1.0.19
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 +5 -1
- package/dist/ApiClient.js +2 -2
- package/dist/api/AuthorizationApi.js +1 -1
- package/dist/api/BillingAccountApi.js +1 -1
- package/dist/api/DeviceApi.js +1 -1
- package/dist/api/DevicesApi.js +54 -1
- package/dist/api/EnvironmentVariablesApi.js +1 -1
- package/dist/api/EventApi.js +2 -8
- package/dist/api/FilesApi.js +1 -1
- package/dist/api/FleetApi.js +1 -1
- package/dist/api/NotesApi.js +1 -1
- package/dist/api/ProductApi.js +1 -1
- package/dist/api/ProjectApi.js +101 -8
- package/dist/api/RouteApi.js +1 -1
- package/dist/api/RouteLogsApi.js +1 -1
- package/dist/index.js +7 -0
- package/dist/model/Aws.js +1 -1
- package/dist/model/Azure.js +1 -1
- package/dist/model/BillingAccount.js +1 -1
- package/dist/model/Body.js +1 -1
- package/dist/model/CloneProjectRequest.js +1 -1
- package/dist/model/Contact.js +1 -1
- package/dist/model/CreateFleetRequest.js +1 -1
- package/dist/model/CreateProductRequest.js +1 -1
- package/dist/model/CreateProjectRequest.js +1 -1
- package/dist/model/DFUEnv.js +1 -1
- package/dist/model/DFUState.js +1 -1
- package/dist/model/DeleteDeviceFleetsRequest.js +1 -1
- package/dist/model/Device.js +1 -1
- package/dist/model/DeviceSession.js +1 -1
- package/dist/model/DeviceTowerInfo.js +1 -1
- package/dist/model/DeviceUsage.js +1 -1
- package/dist/model/EnvironmentVariables.js +1 -1
- package/dist/model/Error.js +1 -1
- package/dist/model/Event.js +1 -1
- package/dist/model/Fleet.js +1 -1
- package/dist/model/GetBillingAccounts200Response.js +1 -1
- package/dist/model/GetDeviceEnvironmentVariables200Response.js +1 -1
- package/dist/model/GetDeviceHealthLog200Response.js +1 -1
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +1 -1
- package/dist/model/GetDeviceLatest200Response.js +1 -1
- package/dist/model/GetDevicePublicKey200Response.js +1 -1
- package/dist/model/GetDeviceSessions200Response.js +1 -1
- package/dist/model/GetProjectDevicePublicKeys200Response.js +1 -1
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +1 -1
- package/dist/model/GetProjectDevices200Response.js +1 -1
- package/dist/model/GetProjectEvents200Response.js +1 -1
- package/dist/model/GetProjectEventsByCursor200Response.js +1 -1
- package/dist/model/GetProjectFleets200Response.js +1 -1
- package/dist/model/GetProjectMembers200Response.js +1 -1
- package/dist/model/GetProjectProducts200Response.js +1 -1
- package/dist/model/GetProjects200Response.js +1 -1
- package/dist/model/GetRouteLogsByRoute200ResponseInner.js +1 -1
- package/dist/model/Google.js +1 -1
- package/dist/model/HandleNoteChanges200Response.js +1 -1
- package/dist/model/HandleNoteGet200Response.js +1 -1
- package/dist/model/HandleNoteSignal200Response.js +1 -1
- package/dist/model/HandleNotefileChanges200Response.js +1 -1
- package/dist/model/HandleNotefileChangesPending200Response.js +1 -1
- package/dist/model/HandleNotefileDeleteRequest.js +1 -1
- package/dist/model/Http.js +1 -1
- package/dist/model/HttpFilter.js +1 -1
- package/dist/model/HttpTransform.js +1 -1
- package/dist/model/Location.js +1 -1
- package/dist/model/Login200Response.js +1 -1
- package/dist/model/LoginRequest.js +1 -1
- package/dist/model/Mqtt.js +1 -1
- package/dist/model/Note.js +1 -1
- package/dist/model/PostProvisionProjectDeviceRequest.js +119 -0
- package/dist/model/Product.js +1 -1
- package/dist/model/Project.js +1 -1
- package/dist/model/ProjectMember.js +1 -1
- package/dist/model/Proxy.js +1 -1
- package/dist/model/PutDeviceFleetsRequest.js +1 -1
- package/dist/model/Radresponder.js +1 -1
- package/dist/model/Route.js +1 -1
- package/dist/model/RouteSchema.js +1 -1
- package/dist/model/Slack.js +1 -1
- package/dist/model/Snowflake.js +1 -1
- package/dist/model/SnowflakeTransform.js +1 -1
- package/dist/model/Thingworx.js +1 -1
- package/dist/model/TowerLocation.js +1 -1
- package/dist/model/Twilio.js +1 -1
- package/dist/model/UpdateFleetRequest.js +1 -1
- package/dist/model/UserDbRoute.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ The OpenAPI definition for the Notehub.io API.
|
|
|
6
6
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
7
7
|
|
|
8
8
|
- API version: 1.0.0
|
|
9
|
-
- Package version: 1.0.
|
|
9
|
+
- Package version: 1.0.19
|
|
10
10
|
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
|
|
11
11
|
For more information, please visit [https://dev.blues.io/support/](https://dev.blues.io/support/)
|
|
12
12
|
|
|
@@ -146,6 +146,7 @@ All URIs are relative to *https://api.notefile.net*
|
|
|
146
146
|
| _NotehubJs.DevicesApi_ | [**getProjectDevicePublicKeys**](docs/DevicesApi.md#getProjectDevicePublicKeys) | **GET** /v1/projects/{projectUID}/devices/public-keys |
|
|
147
147
|
| _NotehubJs.DevicesApi_ | [**getProjectDevices**](docs/DevicesApi.md#getProjectDevices) | **GET** /v1/projects/{projectUID}/devices |
|
|
148
148
|
| _NotehubJs.DevicesApi_ | [**getProjectFleetDevices**](docs/DevicesApi.md#getProjectFleetDevices) | **GET** /v1/projects/{projectUID}/fleets/{fleetUID}/devices |
|
|
149
|
+
| _NotehubJs.DevicesApi_ | [**postProvisionProjectDevice**](docs/DevicesApi.md#postProvisionProjectDevice) | **POST** /v1/projects/{projectUID}/devices/{deviceUID}/provision |
|
|
149
150
|
| _NotehubJs.EnvironmentVariablesApi_ | [**deleteDeviceEnvironmentVariable**](docs/EnvironmentVariablesApi.md#deleteDeviceEnvironmentVariable) | **DELETE** /v1/projects/{projectUID}/devices/{deviceUID}/environment_variables/{key} |
|
|
150
151
|
| _NotehubJs.EnvironmentVariablesApi_ | [**deleteFleetEnvironmentVariable**](docs/EnvironmentVariablesApi.md#deleteFleetEnvironmentVariable) | **DELETE** /v1/projects/{projectUID}/fleets/{fleetUID}/environment_variables/{key} |
|
|
151
152
|
| _NotehubJs.EnvironmentVariablesApi_ | [**deleteProjectEnvironmentVariable**](docs/EnvironmentVariablesApi.md#deleteProjectEnvironmentVariable) | **DELETE** /v1/projects/{projectUID}/environment_variables/{key} |
|
|
@@ -189,6 +190,7 @@ All URIs are relative to *https://api.notefile.net*
|
|
|
189
190
|
| _NotehubJs.ProjectApi_ | [**cloneProject**](docs/ProjectApi.md#cloneProject) | **POST** /v1/projects/{projectUID}/clone |
|
|
190
191
|
| _NotehubJs.ProjectApi_ | [**createProduct**](docs/ProjectApi.md#createProduct) | **POST** /v1/projects/{projectUID}/products |
|
|
191
192
|
| _NotehubJs.ProjectApi_ | [**createProject**](docs/ProjectApi.md#createProject) | **POST** /v1/projects |
|
|
193
|
+
| _NotehubJs.ProjectApi_ | [**deleteProject**](docs/ProjectApi.md#deleteProject) | **DELETE** /v1/projects/{projectUID} |
|
|
192
194
|
| _NotehubJs.ProjectApi_ | [**deleteProjectEnvironmentVariable**](docs/ProjectApi.md#deleteProjectEnvironmentVariable) | **DELETE** /v1/projects/{projectUID}/environment_variables/{key} |
|
|
193
195
|
| _NotehubJs.ProjectApi_ | [**disableGlobalTransformation**](docs/ProjectApi.md#disableGlobalTransformation) | **POST** /v1/projects/{projectUID}/global-transformation/disable |
|
|
194
196
|
| _NotehubJs.ProjectApi_ | [**enableGlobalTransformation**](docs/ProjectApi.md#enableGlobalTransformation) | **POST** /v1/projects/{projectUID}/global-transformation/enable |
|
|
@@ -203,6 +205,7 @@ All URIs are relative to *https://api.notefile.net*
|
|
|
203
205
|
| _NotehubJs.ProjectApi_ | [**getProjectMembers**](docs/ProjectApi.md#getProjectMembers) | **GET** /v1/projects/{projectUID}/members |
|
|
204
206
|
| _NotehubJs.ProjectApi_ | [**getProjectProducts**](docs/ProjectApi.md#getProjectProducts) | **GET** /v1/projects/{projectUID}/products |
|
|
205
207
|
| _NotehubJs.ProjectApi_ | [**getProjects**](docs/ProjectApi.md#getProjects) | **GET** /v1/projects |
|
|
208
|
+
| _NotehubJs.ProjectApi_ | [**postProvisionProjectDevice**](docs/ProjectApi.md#postProvisionProjectDevice) | **POST** /v1/projects/{projectUID}/devices/{deviceUID}/provision |
|
|
206
209
|
| _NotehubJs.ProjectApi_ | [**putProjectEnvironmentVariables**](docs/ProjectApi.md#putProjectEnvironmentVariables) | **PUT** /v1/projects/{projectUID}/environment_variables |
|
|
207
210
|
| _NotehubJs.ProjectApi_ | [**setGlobalTransformation**](docs/ProjectApi.md#setGlobalTransformation) | **POST** /v1/projects/{projectUID}/global-transformation |
|
|
208
211
|
| _NotehubJs.RouteApi_ | [**createRoute**](docs/RouteApi.md#createRoute) | **POST** /v1/projects/{projectUID}/routes |
|
|
@@ -268,6 +271,7 @@ All URIs are relative to *https://api.notefile.net*
|
|
|
268
271
|
- [NotehubJs.LoginRequest](docs/LoginRequest.md)
|
|
269
272
|
- [NotehubJs.Mqtt](docs/Mqtt.md)
|
|
270
273
|
- [NotehubJs.Note](docs/Note.md)
|
|
274
|
+
- [NotehubJs.PostProvisionProjectDeviceRequest](docs/PostProvisionProjectDeviceRequest.md)
|
|
271
275
|
- [NotehubJs.Product](docs/Product.md)
|
|
272
276
|
- [NotehubJs.Project](docs/Project.md)
|
|
273
277
|
- [NotehubJs.ProjectMember](docs/ProjectMember.md)
|
package/dist/ApiClient.js
CHANGED
|
@@ -15,7 +15,7 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
|
|
|
15
15
|
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); }
|
|
16
16
|
/**
|
|
17
17
|
* @module ApiClient
|
|
18
|
-
* @version 1.0.
|
|
18
|
+
* @version 1.0.19
|
|
19
19
|
*/
|
|
20
20
|
/**
|
|
21
21
|
* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
|
|
@@ -63,7 +63,7 @@ var ApiClient = /*#__PURE__*/function () {
|
|
|
63
63
|
* @default {}
|
|
64
64
|
*/
|
|
65
65
|
this.defaultHeaders = {
|
|
66
|
-
"User-Agent": "OpenAPI-Generator/1.0.
|
|
66
|
+
"User-Agent": "OpenAPI-Generator/1.0.19/Javascript"
|
|
67
67
|
};
|
|
68
68
|
|
|
69
69
|
/**
|
|
@@ -17,7 +17,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
17
17
|
/**
|
|
18
18
|
* BillingAccount service.
|
|
19
19
|
* @module api/BillingAccountApi
|
|
20
|
-
* @version 1.0.
|
|
20
|
+
* @version 1.0.19
|
|
21
21
|
*/
|
|
22
22
|
var BillingAccountApi = /*#__PURE__*/function () {
|
|
23
23
|
/**
|
package/dist/api/DeviceApi.js
CHANGED
package/dist/api/DevicesApi.js
CHANGED
|
@@ -9,6 +9,7 @@ var _Device = _interopRequireDefault(require("../model/Device"));
|
|
|
9
9
|
var _Error = _interopRequireDefault(require("../model/Error"));
|
|
10
10
|
var _GetProjectDevicePublicKeys200Response = _interopRequireDefault(require("../model/GetProjectDevicePublicKeys200Response"));
|
|
11
11
|
var _GetProjectDevices200Response = _interopRequireDefault(require("../model/GetProjectDevices200Response"));
|
|
12
|
+
var _PostProvisionProjectDeviceRequest = _interopRequireDefault(require("../model/PostProvisionProjectDeviceRequest"));
|
|
12
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
14
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
14
15
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -19,7 +20,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
19
20
|
/**
|
|
20
21
|
* Devices service.
|
|
21
22
|
* @module api/DevicesApi
|
|
22
|
-
* @version 1.0.
|
|
23
|
+
* @version 1.0.19
|
|
23
24
|
*/
|
|
24
25
|
var DevicesApi = /*#__PURE__*/function () {
|
|
25
26
|
/**
|
|
@@ -287,6 +288,58 @@ var DevicesApi = /*#__PURE__*/function () {
|
|
|
287
288
|
return response_and_data.data;
|
|
288
289
|
});
|
|
289
290
|
}
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* Provision Device for a Project
|
|
294
|
+
* @param {String} projectUID
|
|
295
|
+
* @param {String} deviceUID
|
|
296
|
+
* @param {module:model/PostProvisionProjectDeviceRequest} postProvisionProjectDeviceRequest Provision a device to a specific ProductUID
|
|
297
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response
|
|
298
|
+
*/
|
|
299
|
+
}, {
|
|
300
|
+
key: "postProvisionProjectDeviceWithHttpInfo",
|
|
301
|
+
value: function postProvisionProjectDeviceWithHttpInfo(projectUID, deviceUID, postProvisionProjectDeviceRequest) {
|
|
302
|
+
var postBody = postProvisionProjectDeviceRequest;
|
|
303
|
+
// verify the required parameter 'projectUID' is set
|
|
304
|
+
if (projectUID === undefined || projectUID === null) {
|
|
305
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling postProvisionProjectDevice");
|
|
306
|
+
}
|
|
307
|
+
// verify the required parameter 'deviceUID' is set
|
|
308
|
+
if (deviceUID === undefined || deviceUID === null) {
|
|
309
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling postProvisionProjectDevice");
|
|
310
|
+
}
|
|
311
|
+
// verify the required parameter 'postProvisionProjectDeviceRequest' is set
|
|
312
|
+
if (postProvisionProjectDeviceRequest === undefined || postProvisionProjectDeviceRequest === null) {
|
|
313
|
+
throw new _Error["default"]("Missing the required parameter 'postProvisionProjectDeviceRequest' when calling postProvisionProjectDevice");
|
|
314
|
+
}
|
|
315
|
+
var pathParams = {
|
|
316
|
+
projectUID: projectUID,
|
|
317
|
+
deviceUID: deviceUID
|
|
318
|
+
};
|
|
319
|
+
var queryParams = {};
|
|
320
|
+
var headerParams = {};
|
|
321
|
+
var formParams = {};
|
|
322
|
+
var authNames = ["api_key"];
|
|
323
|
+
var contentTypes = ["application/json"];
|
|
324
|
+
var accepts = ["application/json"];
|
|
325
|
+
var returnType = Object;
|
|
326
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/provision", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* Provision Device for a Project
|
|
331
|
+
* @param {String} projectUID
|
|
332
|
+
* @param {String} deviceUID
|
|
333
|
+
* @param {module:model/PostProvisionProjectDeviceRequest} postProvisionProjectDeviceRequest Provision a device to a specific ProductUID
|
|
334
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
|
|
335
|
+
*/
|
|
336
|
+
}, {
|
|
337
|
+
key: "postProvisionProjectDevice",
|
|
338
|
+
value: function postProvisionProjectDevice(projectUID, deviceUID, postProvisionProjectDeviceRequest) {
|
|
339
|
+
return this.postProvisionProjectDeviceWithHttpInfo(projectUID, deviceUID, postProvisionProjectDeviceRequest).then(function (response_and_data) {
|
|
340
|
+
return response_and_data.data;
|
|
341
|
+
});
|
|
342
|
+
}
|
|
290
343
|
}]);
|
|
291
344
|
return DevicesApi;
|
|
292
345
|
}();
|
|
@@ -18,7 +18,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
18
18
|
/**
|
|
19
19
|
* EnvironmentVariables service.
|
|
20
20
|
* @module api/EnvironmentVariablesApi
|
|
21
|
-
* @version 1.0.
|
|
21
|
+
* @version 1.0.19
|
|
22
22
|
*/
|
|
23
23
|
var EnvironmentVariablesApi = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
package/dist/api/EventApi.js
CHANGED
|
@@ -18,7 +18,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
18
18
|
/**
|
|
19
19
|
* Event service.
|
|
20
20
|
* @module api/EventApi
|
|
21
|
-
* @version 1.0.
|
|
21
|
+
* @version 1.0.19
|
|
22
22
|
*/
|
|
23
23
|
var EventApi = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
|
@@ -264,8 +264,6 @@ var EventApi = /*#__PURE__*/function () {
|
|
|
264
264
|
* @param {Boolean} opts.systemFilesOnly
|
|
265
265
|
* @param {String} opts.files
|
|
266
266
|
* @param {String} opts.deviceUID A Device UID.
|
|
267
|
-
* @param {Number} opts.startDate Unix timestamp
|
|
268
|
-
* @param {Number} opts.endDate Unix timestamp
|
|
269
267
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectEventsByCursor200Response} and HTTP response
|
|
270
268
|
*/
|
|
271
269
|
}, {
|
|
@@ -286,9 +284,7 @@ var EventApi = /*#__PURE__*/function () {
|
|
|
286
284
|
sortOrder: opts["sortOrder"],
|
|
287
285
|
systemFilesOnly: opts["systemFilesOnly"],
|
|
288
286
|
files: opts["files"],
|
|
289
|
-
deviceUID: opts["deviceUID"]
|
|
290
|
-
startDate: opts["startDate"],
|
|
291
|
-
endDate: opts["endDate"]
|
|
287
|
+
deviceUID: opts["deviceUID"]
|
|
292
288
|
};
|
|
293
289
|
var headerParams = {};
|
|
294
290
|
var formParams = {};
|
|
@@ -309,8 +305,6 @@ var EventApi = /*#__PURE__*/function () {
|
|
|
309
305
|
* @param {Boolean} opts.systemFilesOnly
|
|
310
306
|
* @param {String} opts.files
|
|
311
307
|
* @param {String} opts.deviceUID A Device UID.
|
|
312
|
-
* @param {Number} opts.startDate Unix timestamp
|
|
313
|
-
* @param {Number} opts.endDate Unix timestamp
|
|
314
308
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectEventsByCursor200Response}
|
|
315
309
|
*/
|
|
316
310
|
}, {
|
package/dist/api/FilesApi.js
CHANGED
package/dist/api/FleetApi.js
CHANGED
package/dist/api/NotesApi.js
CHANGED
package/dist/api/ProductApi.js
CHANGED
package/dist/api/ProjectApi.js
CHANGED
|
@@ -17,6 +17,7 @@ var _GetProjectEventsByCursor200Response = _interopRequireDefault(require("../mo
|
|
|
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"));
|
|
20
21
|
var _Product = _interopRequireDefault(require("../model/Product"));
|
|
21
22
|
var _Project = _interopRequireDefault(require("../model/Project"));
|
|
22
23
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -29,7 +30,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
29
30
|
/**
|
|
30
31
|
* Project service.
|
|
31
32
|
* @module api/ProjectApi
|
|
32
|
-
* @version 1.0.
|
|
33
|
+
* @version 1.0.19
|
|
33
34
|
*/
|
|
34
35
|
var ProjectApi = /*#__PURE__*/function () {
|
|
35
36
|
/**
|
|
@@ -171,6 +172,52 @@ var ProjectApi = /*#__PURE__*/function () {
|
|
|
171
172
|
});
|
|
172
173
|
}
|
|
173
174
|
|
|
175
|
+
/**
|
|
176
|
+
* Delete a Project by ProjectUID
|
|
177
|
+
* @param {String} projectUID
|
|
178
|
+
* @param {Object} opts Optional parameters
|
|
179
|
+
* @param {Boolean} opts.db (default to false)
|
|
180
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
181
|
+
*/
|
|
182
|
+
}, {
|
|
183
|
+
key: "deleteProjectWithHttpInfo",
|
|
184
|
+
value: function deleteProjectWithHttpInfo(projectUID, opts) {
|
|
185
|
+
opts = opts || {};
|
|
186
|
+
var postBody = null;
|
|
187
|
+
// verify the required parameter 'projectUID' is set
|
|
188
|
+
if (projectUID === undefined || projectUID === null) {
|
|
189
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling deleteProject");
|
|
190
|
+
}
|
|
191
|
+
var pathParams = {
|
|
192
|
+
projectUID: projectUID
|
|
193
|
+
};
|
|
194
|
+
var queryParams = {
|
|
195
|
+
db: opts["db"]
|
|
196
|
+
};
|
|
197
|
+
var headerParams = {};
|
|
198
|
+
var formParams = {};
|
|
199
|
+
var authNames = ["api_key"];
|
|
200
|
+
var contentTypes = [];
|
|
201
|
+
var accepts = ["application/json"];
|
|
202
|
+
var returnType = null;
|
|
203
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Delete a Project by ProjectUID
|
|
208
|
+
* @param {String} projectUID
|
|
209
|
+
* @param {Object} opts Optional parameters
|
|
210
|
+
* @param {Boolean} opts.db (default to false)
|
|
211
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
212
|
+
*/
|
|
213
|
+
}, {
|
|
214
|
+
key: "deleteProject",
|
|
215
|
+
value: function deleteProject(projectUID, opts) {
|
|
216
|
+
return this.deleteProjectWithHttpInfo(projectUID, opts).then(function (response_and_data) {
|
|
217
|
+
return response_and_data.data;
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
|
|
174
221
|
/**
|
|
175
222
|
* Delete an environment variable of a project by key
|
|
176
223
|
* @param {String} projectUID
|
|
@@ -590,8 +637,6 @@ var ProjectApi = /*#__PURE__*/function () {
|
|
|
590
637
|
* @param {Boolean} opts.systemFilesOnly
|
|
591
638
|
* @param {String} opts.files
|
|
592
639
|
* @param {String} opts.deviceUID A Device UID.
|
|
593
|
-
* @param {Number} opts.startDate Unix timestamp
|
|
594
|
-
* @param {Number} opts.endDate Unix timestamp
|
|
595
640
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectEventsByCursor200Response} and HTTP response
|
|
596
641
|
*/
|
|
597
642
|
}, {
|
|
@@ -612,9 +657,7 @@ var ProjectApi = /*#__PURE__*/function () {
|
|
|
612
657
|
sortOrder: opts["sortOrder"],
|
|
613
658
|
systemFilesOnly: opts["systemFilesOnly"],
|
|
614
659
|
files: opts["files"],
|
|
615
|
-
deviceUID: opts["deviceUID"]
|
|
616
|
-
startDate: opts["startDate"],
|
|
617
|
-
endDate: opts["endDate"]
|
|
660
|
+
deviceUID: opts["deviceUID"]
|
|
618
661
|
};
|
|
619
662
|
var headerParams = {};
|
|
620
663
|
var formParams = {};
|
|
@@ -635,8 +678,6 @@ var ProjectApi = /*#__PURE__*/function () {
|
|
|
635
678
|
* @param {Boolean} opts.systemFilesOnly
|
|
636
679
|
* @param {String} opts.files
|
|
637
680
|
* @param {String} opts.deviceUID A Device UID.
|
|
638
|
-
* @param {Number} opts.startDate Unix timestamp
|
|
639
|
-
* @param {Number} opts.endDate Unix timestamp
|
|
640
681
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectEventsByCursor200Response}
|
|
641
682
|
*/
|
|
642
683
|
}, {
|
|
@@ -812,6 +853,58 @@ var ProjectApi = /*#__PURE__*/function () {
|
|
|
812
853
|
});
|
|
813
854
|
}
|
|
814
855
|
|
|
856
|
+
/**
|
|
857
|
+
* Provision Device for a Project
|
|
858
|
+
* @param {String} projectUID
|
|
859
|
+
* @param {String} deviceUID
|
|
860
|
+
* @param {module:model/PostProvisionProjectDeviceRequest} postProvisionProjectDeviceRequest Provision a device to a specific ProductUID
|
|
861
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response
|
|
862
|
+
*/
|
|
863
|
+
}, {
|
|
864
|
+
key: "postProvisionProjectDeviceWithHttpInfo",
|
|
865
|
+
value: function postProvisionProjectDeviceWithHttpInfo(projectUID, deviceUID, postProvisionProjectDeviceRequest) {
|
|
866
|
+
var postBody = postProvisionProjectDeviceRequest;
|
|
867
|
+
// verify the required parameter 'projectUID' is set
|
|
868
|
+
if (projectUID === undefined || projectUID === null) {
|
|
869
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling postProvisionProjectDevice");
|
|
870
|
+
}
|
|
871
|
+
// verify the required parameter 'deviceUID' is set
|
|
872
|
+
if (deviceUID === undefined || deviceUID === null) {
|
|
873
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling postProvisionProjectDevice");
|
|
874
|
+
}
|
|
875
|
+
// verify the required parameter 'postProvisionProjectDeviceRequest' is set
|
|
876
|
+
if (postProvisionProjectDeviceRequest === undefined || postProvisionProjectDeviceRequest === null) {
|
|
877
|
+
throw new _Error["default"]("Missing the required parameter 'postProvisionProjectDeviceRequest' when calling postProvisionProjectDevice");
|
|
878
|
+
}
|
|
879
|
+
var pathParams = {
|
|
880
|
+
projectUID: projectUID,
|
|
881
|
+
deviceUID: deviceUID
|
|
882
|
+
};
|
|
883
|
+
var queryParams = {};
|
|
884
|
+
var headerParams = {};
|
|
885
|
+
var formParams = {};
|
|
886
|
+
var authNames = ["api_key"];
|
|
887
|
+
var contentTypes = ["application/json"];
|
|
888
|
+
var accepts = ["application/json"];
|
|
889
|
+
var returnType = Object;
|
|
890
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/devices/{deviceUID}/provision", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
/**
|
|
894
|
+
* Provision Device for a Project
|
|
895
|
+
* @param {String} projectUID
|
|
896
|
+
* @param {String} deviceUID
|
|
897
|
+
* @param {module:model/PostProvisionProjectDeviceRequest} postProvisionProjectDeviceRequest Provision a device to a specific ProductUID
|
|
898
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
|
|
899
|
+
*/
|
|
900
|
+
}, {
|
|
901
|
+
key: "postProvisionProjectDevice",
|
|
902
|
+
value: function postProvisionProjectDevice(projectUID, deviceUID, postProvisionProjectDeviceRequest) {
|
|
903
|
+
return this.postProvisionProjectDeviceWithHttpInfo(projectUID, deviceUID, postProvisionProjectDeviceRequest).then(function (response_and_data) {
|
|
904
|
+
return response_and_data.data;
|
|
905
|
+
});
|
|
906
|
+
}
|
|
907
|
+
|
|
815
908
|
/**
|
|
816
909
|
* Put environment variables of a project
|
|
817
910
|
* @param {String} projectUID
|
package/dist/api/RouteApi.js
CHANGED
package/dist/api/RouteLogsApi.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -381,6 +381,12 @@ Object.defineProperty(exports, "NotesApi", {
|
|
|
381
381
|
return _NotesApi["default"];
|
|
382
382
|
}
|
|
383
383
|
});
|
|
384
|
+
Object.defineProperty(exports, "PostProvisionProjectDeviceRequest", {
|
|
385
|
+
enumerable: true,
|
|
386
|
+
get: function get() {
|
|
387
|
+
return _PostProvisionProjectDeviceRequest["default"];
|
|
388
|
+
}
|
|
389
|
+
});
|
|
384
390
|
Object.defineProperty(exports, "Product", {
|
|
385
391
|
enumerable: true,
|
|
386
392
|
get: function get() {
|
|
@@ -561,6 +567,7 @@ var _Login200Response = _interopRequireDefault(require("./model/Login200Response
|
|
|
561
567
|
var _LoginRequest = _interopRequireDefault(require("./model/LoginRequest"));
|
|
562
568
|
var _Mqtt = _interopRequireDefault(require("./model/Mqtt"));
|
|
563
569
|
var _Note = _interopRequireDefault(require("./model/Note"));
|
|
570
|
+
var _PostProvisionProjectDeviceRequest = _interopRequireDefault(require("./model/PostProvisionProjectDeviceRequest"));
|
|
564
571
|
var _Product = _interopRequireDefault(require("./model/Product"));
|
|
565
572
|
var _Project = _interopRequireDefault(require("./model/Project"));
|
|
566
573
|
var _ProjectMember = _interopRequireDefault(require("./model/ProjectMember"));
|
package/dist/model/Aws.js
CHANGED
package/dist/model/Azure.js
CHANGED
|
@@ -19,7 +19,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
19
19
|
/**
|
|
20
20
|
* The BillingAccount model module.
|
|
21
21
|
* @module model/BillingAccount
|
|
22
|
-
* @version 1.0.
|
|
22
|
+
* @version 1.0.19
|
|
23
23
|
*/
|
|
24
24
|
var BillingAccount = /*#__PURE__*/function () {
|
|
25
25
|
/**
|
package/dist/model/Body.js
CHANGED
|
@@ -18,7 +18,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
18
18
|
/**
|
|
19
19
|
* The CloneProjectRequest model module.
|
|
20
20
|
* @module model/CloneProjectRequest
|
|
21
|
-
* @version 1.0.
|
|
21
|
+
* @version 1.0.19
|
|
22
22
|
*/
|
|
23
23
|
var CloneProjectRequest = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
package/dist/model/Contact.js
CHANGED
|
@@ -15,7 +15,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
15
15
|
/**
|
|
16
16
|
* The CreateFleetRequest model module.
|
|
17
17
|
* @module model/CreateFleetRequest
|
|
18
|
-
* @version 1.0.
|
|
18
|
+
* @version 1.0.19
|
|
19
19
|
*/
|
|
20
20
|
var CreateFleetRequest = /*#__PURE__*/function () {
|
|
21
21
|
/**
|
|
@@ -18,7 +18,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
18
18
|
/**
|
|
19
19
|
* The CreateProductRequest model module.
|
|
20
20
|
* @module model/CreateProductRequest
|
|
21
|
-
* @version 1.0.
|
|
21
|
+
* @version 1.0.19
|
|
22
22
|
*/
|
|
23
23
|
var CreateProductRequest = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
|
@@ -18,7 +18,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
18
18
|
/**
|
|
19
19
|
* The CreateProjectRequest model module.
|
|
20
20
|
* @module model/CreateProjectRequest
|
|
21
|
-
* @version 1.0.
|
|
21
|
+
* @version 1.0.19
|
|
22
22
|
*/
|
|
23
23
|
var CreateProjectRequest = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
package/dist/model/DFUEnv.js
CHANGED
package/dist/model/DFUState.js
CHANGED
|
@@ -18,7 +18,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
18
18
|
/**
|
|
19
19
|
* The DeleteDeviceFleetsRequest model module.
|
|
20
20
|
* @module model/DeleteDeviceFleetsRequest
|
|
21
|
-
* @version 1.0.
|
|
21
|
+
* @version 1.0.19
|
|
22
22
|
*/
|
|
23
23
|
var DeleteDeviceFleetsRequest = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
package/dist/model/Device.js
CHANGED
|
@@ -17,7 +17,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
17
17
|
/**
|
|
18
18
|
* The DeviceSession model module.
|
|
19
19
|
* @module model/DeviceSession
|
|
20
|
-
* @version 1.0.
|
|
20
|
+
* @version 1.0.19
|
|
21
21
|
*/
|
|
22
22
|
var DeviceSession = /*#__PURE__*/function () {
|
|
23
23
|
/**
|
|
@@ -15,7 +15,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
15
15
|
/**
|
|
16
16
|
* The DeviceTowerInfo model module.
|
|
17
17
|
* @module model/DeviceTowerInfo
|
|
18
|
-
* @version 1.0.
|
|
18
|
+
* @version 1.0.19
|
|
19
19
|
*/
|
|
20
20
|
var DeviceTowerInfo = /*#__PURE__*/function () {
|
|
21
21
|
/**
|
|
@@ -18,7 +18,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
18
18
|
/**
|
|
19
19
|
* The EnvironmentVariables model module.
|
|
20
20
|
* @module model/EnvironmentVariables
|
|
21
|
-
* @version 1.0.
|
|
21
|
+
* @version 1.0.19
|
|
22
22
|
*/
|
|
23
23
|
var EnvironmentVariables = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
package/dist/model/Error.js
CHANGED