@blues-inc/notehub-js 1.0.15 → 1.0.17
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 +8 -7
- 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 +21 -21
- package/dist/api/DevicesApi.js +1 -1
- package/dist/api/EnvironmentVariablesApi.js +21 -21
- package/dist/api/EventApi.js +1 -1
- 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 +51 -5
- package/dist/api/RouteApi.js +1 -1
- package/dist/api/RouteLogsApi.js +1 -1
- package/dist/index.js +14 -14
- 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 +139 -0
- 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 +7 -5
- 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/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 +8 -3
- package/dist/model/RouteSchema.js +57 -9
- package/dist/model/Slack.js +209 -0
- 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/dist/model/Edgeimpulse.js +0 -214
- package/dist/model/EdgeimpulseSensorsInner.js +0 -106
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.17
|
|
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
|
|
|
@@ -131,7 +131,7 @@ All URIs are relative to *https://api.notefile.net*
|
|
|
131
131
|
| _NotehubJs.DeviceApi_ | [**enableDevice**](docs/DeviceApi.md#enableDevice) | **POST** /v1/projects/{projectUID}/devices/{deviceUID}/enable |
|
|
132
132
|
| _NotehubJs.DeviceApi_ | [**enableDeviceConnectivityAssurance**](docs/DeviceApi.md#enableDeviceConnectivityAssurance) | **POST** /v1/projects/{projectUID}/devices/{deviceUID}/enable-connectivity-assurance |
|
|
133
133
|
| _NotehubJs.DeviceApi_ | [**getDeviceEnvironmentVariables**](docs/DeviceApi.md#getDeviceEnvironmentVariables) | **GET** /v1/projects/{projectUID}/devices/{deviceUID}/environment_variables |
|
|
134
|
-
| _NotehubJs.DeviceApi_ | [**getDeviceEnvironmentVariablesByPin**](docs/DeviceApi.md#getDeviceEnvironmentVariablesByPin) | **GET** /v1/
|
|
134
|
+
| _NotehubJs.DeviceApi_ | [**getDeviceEnvironmentVariablesByPin**](docs/DeviceApi.md#getDeviceEnvironmentVariablesByPin) | **GET** /v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin |
|
|
135
135
|
| _NotehubJs.DeviceApi_ | [**getDeviceFleets**](docs/DeviceApi.md#getDeviceFleets) | **GET** /v1/projects/{projectUID}/devices/{deviceUID}/fleets |
|
|
136
136
|
| _NotehubJs.DeviceApi_ | [**getDeviceHealthLog**](docs/DeviceApi.md#getDeviceHealthLog) | **GET** /v1/projects/{projectUID}/devices/{deviceUID}/health-log |
|
|
137
137
|
| _NotehubJs.DeviceApi_ | [**getDeviceLatest**](docs/DeviceApi.md#getDeviceLatest) | **GET** /v1/projects/{projectUID}/devices/{deviceUID}/latest |
|
|
@@ -139,7 +139,7 @@ All URIs are relative to *https://api.notefile.net*
|
|
|
139
139
|
| _NotehubJs.DeviceApi_ | [**getDeviceSessions**](docs/DeviceApi.md#getDeviceSessions) | **GET** /v1/projects/{projectUID}/devices/{deviceUID}/sessions |
|
|
140
140
|
| _NotehubJs.DeviceApi_ | [**handleNoteSignal**](docs/DeviceApi.md#handleNoteSignal) | **POST** /v1/projects/{projectUID}/devices/{deviceUID}/signal |
|
|
141
141
|
| _NotehubJs.DeviceApi_ | [**putDeviceEnvironmentVariables**](docs/DeviceApi.md#putDeviceEnvironmentVariables) | **PUT** /v1/projects/{projectUID}/devices/{deviceUID}/environment_variables |
|
|
142
|
-
| _NotehubJs.DeviceApi_ | [**putDeviceEnvironmentVariablesByPin**](docs/DeviceApi.md#putDeviceEnvironmentVariablesByPin) | **PUT** /v1/
|
|
142
|
+
| _NotehubJs.DeviceApi_ | [**putDeviceEnvironmentVariablesByPin**](docs/DeviceApi.md#putDeviceEnvironmentVariablesByPin) | **PUT** /v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin |
|
|
143
143
|
| _NotehubJs.DeviceApi_ | [**putDeviceFleets**](docs/DeviceApi.md#putDeviceFleets) | **PUT** /v1/projects/{projectUID}/devices/{deviceUID}/fleets |
|
|
144
144
|
| _NotehubJs.DevicesApi_ | [**deleteProjectDevice**](docs/DevicesApi.md#deleteProjectDevice) | **DELETE** /v1/projects/{projectUID}/devices/{deviceUID} |
|
|
145
145
|
| _NotehubJs.DevicesApi_ | [**getDevice**](docs/DevicesApi.md#getDevice) | **GET** /v1/projects/{projectUID}/devices/{deviceUID} |
|
|
@@ -150,11 +150,11 @@ All URIs are relative to *https://api.notefile.net*
|
|
|
150
150
|
| _NotehubJs.EnvironmentVariablesApi_ | [**deleteFleetEnvironmentVariable**](docs/EnvironmentVariablesApi.md#deleteFleetEnvironmentVariable) | **DELETE** /v1/projects/{projectUID}/fleets/{fleetUID}/environment_variables/{key} |
|
|
151
151
|
| _NotehubJs.EnvironmentVariablesApi_ | [**deleteProjectEnvironmentVariable**](docs/EnvironmentVariablesApi.md#deleteProjectEnvironmentVariable) | **DELETE** /v1/projects/{projectUID}/environment_variables/{key} |
|
|
152
152
|
| _NotehubJs.EnvironmentVariablesApi_ | [**getDeviceEnvironmentVariables**](docs/EnvironmentVariablesApi.md#getDeviceEnvironmentVariables) | **GET** /v1/projects/{projectUID}/devices/{deviceUID}/environment_variables |
|
|
153
|
-
| _NotehubJs.EnvironmentVariablesApi_ | [**getDeviceEnvironmentVariablesByPin**](docs/EnvironmentVariablesApi.md#getDeviceEnvironmentVariablesByPin) | **GET** /v1/
|
|
153
|
+
| _NotehubJs.EnvironmentVariablesApi_ | [**getDeviceEnvironmentVariablesByPin**](docs/EnvironmentVariablesApi.md#getDeviceEnvironmentVariablesByPin) | **GET** /v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin |
|
|
154
154
|
| _NotehubJs.EnvironmentVariablesApi_ | [**getFleetEnvironmentVariables**](docs/EnvironmentVariablesApi.md#getFleetEnvironmentVariables) | **GET** /v1/projects/{projectUID}/fleets/{fleetUID}/environment_variables |
|
|
155
155
|
| _NotehubJs.EnvironmentVariablesApi_ | [**getProjectEnvironmentVariables**](docs/EnvironmentVariablesApi.md#getProjectEnvironmentVariables) | **GET** /v1/projects/{projectUID}/environment_variables |
|
|
156
156
|
| _NotehubJs.EnvironmentVariablesApi_ | [**putDeviceEnvironmentVariables**](docs/EnvironmentVariablesApi.md#putDeviceEnvironmentVariables) | **PUT** /v1/projects/{projectUID}/devices/{deviceUID}/environment_variables |
|
|
157
|
-
| _NotehubJs.EnvironmentVariablesApi_ | [**putDeviceEnvironmentVariablesByPin**](docs/EnvironmentVariablesApi.md#putDeviceEnvironmentVariablesByPin) | **PUT** /v1/
|
|
157
|
+
| _NotehubJs.EnvironmentVariablesApi_ | [**putDeviceEnvironmentVariablesByPin**](docs/EnvironmentVariablesApi.md#putDeviceEnvironmentVariablesByPin) | **PUT** /v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin |
|
|
158
158
|
| _NotehubJs.EnvironmentVariablesApi_ | [**putFleetEnvironmentVariables**](docs/EnvironmentVariablesApi.md#putFleetEnvironmentVariables) | **PUT** /v1/projects/{projectUID}/fleets/{fleetUID}/environment_variables |
|
|
159
159
|
| _NotehubJs.EnvironmentVariablesApi_ | [**putProjectEnvironmentVariables**](docs/EnvironmentVariablesApi.md#putProjectEnvironmentVariables) | **PUT** /v1/projects/{projectUID}/environment_variables |
|
|
160
160
|
| _NotehubJs.EventApi_ | [**getFleetEvents**](docs/EventApi.md#getFleetEvents) | **GET** /v1/projects/{projectUID}/fleets/{fleetUID}/events |
|
|
@@ -186,6 +186,7 @@ All URIs are relative to *https://api.notefile.net*
|
|
|
186
186
|
| _NotehubJs.ProductApi_ | [**createProduct**](docs/ProductApi.md#createProduct) | **POST** /v1/projects/{projectUID}/products |
|
|
187
187
|
| _NotehubJs.ProductApi_ | [**getProjectByProduct**](docs/ProductApi.md#getProjectByProduct) | **GET** /v1/products/{productUID}/project |
|
|
188
188
|
| _NotehubJs.ProductApi_ | [**getProjectProducts**](docs/ProductApi.md#getProjectProducts) | **GET** /v1/projects/{projectUID}/products |
|
|
189
|
+
| _NotehubJs.ProjectApi_ | [**cloneProject**](docs/ProjectApi.md#cloneProject) | **POST** /v1/projects/{projectUID}/clone |
|
|
189
190
|
| _NotehubJs.ProjectApi_ | [**createProduct**](docs/ProjectApi.md#createProduct) | **POST** /v1/projects/{projectUID}/products |
|
|
190
191
|
| _NotehubJs.ProjectApi_ | [**createProject**](docs/ProjectApi.md#createProject) | **POST** /v1/projects |
|
|
191
192
|
| _NotehubJs.ProjectApi_ | [**deleteProjectEnvironmentVariable**](docs/ProjectApi.md#deleteProjectEnvironmentVariable) | **DELETE** /v1/projects/{projectUID}/environment_variables/{key} |
|
|
@@ -219,6 +220,7 @@ All URIs are relative to *https://api.notefile.net*
|
|
|
219
220
|
- [NotehubJs.BillingAccount](docs/BillingAccount.md)
|
|
220
221
|
- [NotehubJs.BillingAccountRole](docs/BillingAccountRole.md)
|
|
221
222
|
- [NotehubJs.Body](docs/Body.md)
|
|
223
|
+
- [NotehubJs.CloneProjectRequest](docs/CloneProjectRequest.md)
|
|
222
224
|
- [NotehubJs.Contact](docs/Contact.md)
|
|
223
225
|
- [NotehubJs.CreateFleetRequest](docs/CreateFleetRequest.md)
|
|
224
226
|
- [NotehubJs.CreateProductRequest](docs/CreateProductRequest.md)
|
|
@@ -230,8 +232,6 @@ All URIs are relative to *https://api.notefile.net*
|
|
|
230
232
|
- [NotehubJs.DeviceSession](docs/DeviceSession.md)
|
|
231
233
|
- [NotehubJs.DeviceTowerInfo](docs/DeviceTowerInfo.md)
|
|
232
234
|
- [NotehubJs.DeviceUsage](docs/DeviceUsage.md)
|
|
233
|
-
- [NotehubJs.Edgeimpulse](docs/Edgeimpulse.md)
|
|
234
|
-
- [NotehubJs.EdgeimpulseSensorsInner](docs/EdgeimpulseSensorsInner.md)
|
|
235
235
|
- [NotehubJs.EnvironmentVariables](docs/EnvironmentVariables.md)
|
|
236
236
|
- [NotehubJs.Error](docs/Error.md)
|
|
237
237
|
- [NotehubJs.Event](docs/Event.md)
|
|
@@ -277,6 +277,7 @@ All URIs are relative to *https://api.notefile.net*
|
|
|
277
277
|
- [NotehubJs.Role](docs/Role.md)
|
|
278
278
|
- [NotehubJs.Route](docs/Route.md)
|
|
279
279
|
- [NotehubJs.RouteSchema](docs/RouteSchema.md)
|
|
280
|
+
- [NotehubJs.Slack](docs/Slack.md)
|
|
280
281
|
- [NotehubJs.Snowflake](docs/Snowflake.md)
|
|
281
282
|
- [NotehubJs.SnowflakeTransform](docs/SnowflakeTransform.md)
|
|
282
283
|
- [NotehubJs.Thingworx](docs/Thingworx.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.17
|
|
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.17/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.17
|
|
21
21
|
*/
|
|
22
22
|
var BillingAccountApi = /*#__PURE__*/function () {
|
|
23
23
|
/**
|
package/dist/api/DeviceApi.js
CHANGED
|
@@ -27,7 +27,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
27
27
|
/**
|
|
28
28
|
* Device service.
|
|
29
29
|
* @module api/DeviceApi
|
|
30
|
-
* @version 1.0.
|
|
30
|
+
* @version 1.0.17
|
|
31
31
|
*/
|
|
32
32
|
var DeviceApi = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
|
@@ -379,24 +379,24 @@ var DeviceApi = /*#__PURE__*/function () {
|
|
|
379
379
|
|
|
380
380
|
/**
|
|
381
381
|
* Get environment variables of a device with device pin authorization
|
|
382
|
-
* @param {String}
|
|
382
|
+
* @param {String} productUID
|
|
383
383
|
* @param {String} deviceUID
|
|
384
384
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariables200Response} and HTTP response
|
|
385
385
|
*/
|
|
386
386
|
}, {
|
|
387
387
|
key: "getDeviceEnvironmentVariablesByPinWithHttpInfo",
|
|
388
|
-
value: function getDeviceEnvironmentVariablesByPinWithHttpInfo(
|
|
388
|
+
value: function getDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID) {
|
|
389
389
|
var postBody = null;
|
|
390
|
-
// verify the required parameter '
|
|
391
|
-
if (
|
|
392
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
390
|
+
// verify the required parameter 'productUID' is set
|
|
391
|
+
if (productUID === undefined || productUID === null) {
|
|
392
|
+
throw new _Error["default"]("Missing the required parameter 'productUID' when calling getDeviceEnvironmentVariablesByPin");
|
|
393
393
|
}
|
|
394
394
|
// verify the required parameter 'deviceUID' is set
|
|
395
395
|
if (deviceUID === undefined || deviceUID === null) {
|
|
396
396
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentVariablesByPin");
|
|
397
397
|
}
|
|
398
398
|
var pathParams = {
|
|
399
|
-
|
|
399
|
+
productUID: productUID,
|
|
400
400
|
deviceUID: deviceUID
|
|
401
401
|
};
|
|
402
402
|
var queryParams = {};
|
|
@@ -406,19 +406,19 @@ var DeviceApi = /*#__PURE__*/function () {
|
|
|
406
406
|
var contentTypes = [];
|
|
407
407
|
var accepts = ["application/json"];
|
|
408
408
|
var returnType = _GetDeviceEnvironmentVariables200Response["default"];
|
|
409
|
-
return this.apiClient.callApi("/v1/
|
|
409
|
+
return this.apiClient.callApi("/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
410
410
|
}
|
|
411
411
|
|
|
412
412
|
/**
|
|
413
413
|
* Get environment variables of a device with device pin authorization
|
|
414
|
-
* @param {String}
|
|
414
|
+
* @param {String} productUID
|
|
415
415
|
* @param {String} deviceUID
|
|
416
416
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariables200Response}
|
|
417
417
|
*/
|
|
418
418
|
}, {
|
|
419
419
|
key: "getDeviceEnvironmentVariablesByPin",
|
|
420
|
-
value: function getDeviceEnvironmentVariablesByPin(
|
|
421
|
-
return this.getDeviceEnvironmentVariablesByPinWithHttpInfo(
|
|
420
|
+
value: function getDeviceEnvironmentVariablesByPin(productUID, deviceUID) {
|
|
421
|
+
return this.getDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID).then(function (response_and_data) {
|
|
422
422
|
return response_and_data.data;
|
|
423
423
|
});
|
|
424
424
|
}
|
|
@@ -769,18 +769,18 @@ var DeviceApi = /*#__PURE__*/function () {
|
|
|
769
769
|
|
|
770
770
|
/**
|
|
771
771
|
* Put environment variables of a device with device pin authorization
|
|
772
|
-
* @param {String}
|
|
772
|
+
* @param {String} productUID
|
|
773
773
|
* @param {String} deviceUID
|
|
774
774
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
775
775
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
776
776
|
*/
|
|
777
777
|
}, {
|
|
778
778
|
key: "putDeviceEnvironmentVariablesByPinWithHttpInfo",
|
|
779
|
-
value: function putDeviceEnvironmentVariablesByPinWithHttpInfo(
|
|
779
|
+
value: function putDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables) {
|
|
780
780
|
var postBody = environmentVariables;
|
|
781
|
-
// verify the required parameter '
|
|
782
|
-
if (
|
|
783
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
781
|
+
// verify the required parameter 'productUID' is set
|
|
782
|
+
if (productUID === undefined || productUID === null) {
|
|
783
|
+
throw new _Error["default"]("Missing the required parameter 'productUID' when calling putDeviceEnvironmentVariablesByPin");
|
|
784
784
|
}
|
|
785
785
|
// verify the required parameter 'deviceUID' is set
|
|
786
786
|
if (deviceUID === undefined || deviceUID === null) {
|
|
@@ -791,7 +791,7 @@ var DeviceApi = /*#__PURE__*/function () {
|
|
|
791
791
|
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling putDeviceEnvironmentVariablesByPin");
|
|
792
792
|
}
|
|
793
793
|
var pathParams = {
|
|
794
|
-
|
|
794
|
+
productUID: productUID,
|
|
795
795
|
deviceUID: deviceUID
|
|
796
796
|
};
|
|
797
797
|
var queryParams = {};
|
|
@@ -801,20 +801,20 @@ var DeviceApi = /*#__PURE__*/function () {
|
|
|
801
801
|
var contentTypes = ["application/json"];
|
|
802
802
|
var accepts = ["application/json"];
|
|
803
803
|
var returnType = _EnvironmentVariables["default"];
|
|
804
|
-
return this.apiClient.callApi("/v1/
|
|
804
|
+
return this.apiClient.callApi("/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
805
805
|
}
|
|
806
806
|
|
|
807
807
|
/**
|
|
808
808
|
* Put environment variables of a device with device pin authorization
|
|
809
|
-
* @param {String}
|
|
809
|
+
* @param {String} productUID
|
|
810
810
|
* @param {String} deviceUID
|
|
811
811
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
812
812
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
813
813
|
*/
|
|
814
814
|
}, {
|
|
815
815
|
key: "putDeviceEnvironmentVariablesByPin",
|
|
816
|
-
value: function putDeviceEnvironmentVariablesByPin(
|
|
817
|
-
return this.putDeviceEnvironmentVariablesByPinWithHttpInfo(
|
|
816
|
+
value: function putDeviceEnvironmentVariablesByPin(productUID, deviceUID, environmentVariables) {
|
|
817
|
+
return this.putDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables).then(function (response_and_data) {
|
|
818
818
|
return response_and_data.data;
|
|
819
819
|
});
|
|
820
820
|
}
|
package/dist/api/DevicesApi.js
CHANGED
|
@@ -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.17
|
|
22
22
|
*/
|
|
23
23
|
var EnvironmentVariablesApi = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
|
@@ -233,24 +233,24 @@ var EnvironmentVariablesApi = /*#__PURE__*/function () {
|
|
|
233
233
|
|
|
234
234
|
/**
|
|
235
235
|
* Get environment variables of a device with device pin authorization
|
|
236
|
-
* @param {String}
|
|
236
|
+
* @param {String} productUID
|
|
237
237
|
* @param {String} deviceUID
|
|
238
238
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceEnvironmentVariables200Response} and HTTP response
|
|
239
239
|
*/
|
|
240
240
|
}, {
|
|
241
241
|
key: "getDeviceEnvironmentVariablesByPinWithHttpInfo",
|
|
242
|
-
value: function getDeviceEnvironmentVariablesByPinWithHttpInfo(
|
|
242
|
+
value: function getDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID) {
|
|
243
243
|
var postBody = null;
|
|
244
|
-
// verify the required parameter '
|
|
245
|
-
if (
|
|
246
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
244
|
+
// verify the required parameter 'productUID' is set
|
|
245
|
+
if (productUID === undefined || productUID === null) {
|
|
246
|
+
throw new _Error["default"]("Missing the required parameter 'productUID' when calling getDeviceEnvironmentVariablesByPin");
|
|
247
247
|
}
|
|
248
248
|
// verify the required parameter 'deviceUID' is set
|
|
249
249
|
if (deviceUID === undefined || deviceUID === null) {
|
|
250
250
|
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceEnvironmentVariablesByPin");
|
|
251
251
|
}
|
|
252
252
|
var pathParams = {
|
|
253
|
-
|
|
253
|
+
productUID: productUID,
|
|
254
254
|
deviceUID: deviceUID
|
|
255
255
|
};
|
|
256
256
|
var queryParams = {};
|
|
@@ -260,19 +260,19 @@ var EnvironmentVariablesApi = /*#__PURE__*/function () {
|
|
|
260
260
|
var contentTypes = [];
|
|
261
261
|
var accepts = ["application/json"];
|
|
262
262
|
var returnType = _GetDeviceEnvironmentVariables200Response["default"];
|
|
263
|
-
return this.apiClient.callApi("/v1/
|
|
263
|
+
return this.apiClient.callApi("/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
264
264
|
}
|
|
265
265
|
|
|
266
266
|
/**
|
|
267
267
|
* Get environment variables of a device with device pin authorization
|
|
268
|
-
* @param {String}
|
|
268
|
+
* @param {String} productUID
|
|
269
269
|
* @param {String} deviceUID
|
|
270
270
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceEnvironmentVariables200Response}
|
|
271
271
|
*/
|
|
272
272
|
}, {
|
|
273
273
|
key: "getDeviceEnvironmentVariablesByPin",
|
|
274
|
-
value: function getDeviceEnvironmentVariablesByPin(
|
|
275
|
-
return this.getDeviceEnvironmentVariablesByPinWithHttpInfo(
|
|
274
|
+
value: function getDeviceEnvironmentVariablesByPin(productUID, deviceUID) {
|
|
275
|
+
return this.getDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID).then(function (response_and_data) {
|
|
276
276
|
return response_and_data.data;
|
|
277
277
|
});
|
|
278
278
|
}
|
|
@@ -416,18 +416,18 @@ var EnvironmentVariablesApi = /*#__PURE__*/function () {
|
|
|
416
416
|
|
|
417
417
|
/**
|
|
418
418
|
* Put environment variables of a device with device pin authorization
|
|
419
|
-
* @param {String}
|
|
419
|
+
* @param {String} productUID
|
|
420
420
|
* @param {String} deviceUID
|
|
421
421
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
422
422
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnvironmentVariables} and HTTP response
|
|
423
423
|
*/
|
|
424
424
|
}, {
|
|
425
425
|
key: "putDeviceEnvironmentVariablesByPinWithHttpInfo",
|
|
426
|
-
value: function putDeviceEnvironmentVariablesByPinWithHttpInfo(
|
|
426
|
+
value: function putDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables) {
|
|
427
427
|
var postBody = environmentVariables;
|
|
428
|
-
// verify the required parameter '
|
|
429
|
-
if (
|
|
430
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
428
|
+
// verify the required parameter 'productUID' is set
|
|
429
|
+
if (productUID === undefined || productUID === null) {
|
|
430
|
+
throw new _Error["default"]("Missing the required parameter 'productUID' when calling putDeviceEnvironmentVariablesByPin");
|
|
431
431
|
}
|
|
432
432
|
// verify the required parameter 'deviceUID' is set
|
|
433
433
|
if (deviceUID === undefined || deviceUID === null) {
|
|
@@ -438,7 +438,7 @@ var EnvironmentVariablesApi = /*#__PURE__*/function () {
|
|
|
438
438
|
throw new _Error["default"]("Missing the required parameter 'environmentVariables' when calling putDeviceEnvironmentVariablesByPin");
|
|
439
439
|
}
|
|
440
440
|
var pathParams = {
|
|
441
|
-
|
|
441
|
+
productUID: productUID,
|
|
442
442
|
deviceUID: deviceUID
|
|
443
443
|
};
|
|
444
444
|
var queryParams = {};
|
|
@@ -448,20 +448,20 @@ var EnvironmentVariablesApi = /*#__PURE__*/function () {
|
|
|
448
448
|
var contentTypes = ["application/json"];
|
|
449
449
|
var accepts = ["application/json"];
|
|
450
450
|
var returnType = _EnvironmentVariables["default"];
|
|
451
|
-
return this.apiClient.callApi("/v1/
|
|
451
|
+
return this.apiClient.callApi("/v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
452
452
|
}
|
|
453
453
|
|
|
454
454
|
/**
|
|
455
455
|
* Put environment variables of a device with device pin authorization
|
|
456
|
-
* @param {String}
|
|
456
|
+
* @param {String} productUID
|
|
457
457
|
* @param {String} deviceUID
|
|
458
458
|
* @param {module:model/EnvironmentVariables} environmentVariables Environment variables to be added to the device
|
|
459
459
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnvironmentVariables}
|
|
460
460
|
*/
|
|
461
461
|
}, {
|
|
462
462
|
key: "putDeviceEnvironmentVariablesByPin",
|
|
463
|
-
value: function putDeviceEnvironmentVariablesByPin(
|
|
464
|
-
return this.putDeviceEnvironmentVariablesByPinWithHttpInfo(
|
|
463
|
+
value: function putDeviceEnvironmentVariablesByPin(productUID, deviceUID, environmentVariables) {
|
|
464
|
+
return this.putDeviceEnvironmentVariablesByPinWithHttpInfo(productUID, deviceUID, environmentVariables).then(function (response_and_data) {
|
|
465
465
|
return response_and_data.data;
|
|
466
466
|
});
|
|
467
467
|
}
|
package/dist/api/EventApi.js
CHANGED
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
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _CloneProjectRequest = _interopRequireDefault(require("../model/CloneProjectRequest"));
|
|
8
9
|
var _CreateProductRequest = _interopRequireDefault(require("../model/CreateProductRequest"));
|
|
9
10
|
var _CreateProjectRequest = _interopRequireDefault(require("../model/CreateProjectRequest"));
|
|
10
11
|
var _EnvironmentVariables = _interopRequireDefault(require("../model/EnvironmentVariables"));
|
|
@@ -28,7 +29,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
28
29
|
/**
|
|
29
30
|
* Project service.
|
|
30
31
|
* @module api/ProjectApi
|
|
31
|
-
* @version 1.0.
|
|
32
|
+
* @version 1.0.17
|
|
32
33
|
*/
|
|
33
34
|
var ProjectApi = /*#__PURE__*/function () {
|
|
34
35
|
/**
|
|
@@ -44,12 +45,57 @@ var ProjectApi = /*#__PURE__*/function () {
|
|
|
44
45
|
}
|
|
45
46
|
|
|
46
47
|
/**
|
|
47
|
-
*
|
|
48
|
-
* @param {String} projectUID
|
|
49
|
-
* @param {module:model/
|
|
50
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/
|
|
48
|
+
* Clone a Project
|
|
49
|
+
* @param {String} projectUID The project UID to be cloned.
|
|
50
|
+
* @param {module:model/CloneProjectRequest} cloneProjectRequest Project to be cloned
|
|
51
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
51
52
|
*/
|
|
52
53
|
_createClass(ProjectApi, [{
|
|
54
|
+
key: "cloneProjectWithHttpInfo",
|
|
55
|
+
value: function cloneProjectWithHttpInfo(projectUID, cloneProjectRequest) {
|
|
56
|
+
var postBody = cloneProjectRequest;
|
|
57
|
+
// verify the required parameter 'projectUID' is set
|
|
58
|
+
if (projectUID === undefined || projectUID === null) {
|
|
59
|
+
throw new _Error["default"]("Missing the required parameter 'projectUID' when calling cloneProject");
|
|
60
|
+
}
|
|
61
|
+
// verify the required parameter 'cloneProjectRequest' is set
|
|
62
|
+
if (cloneProjectRequest === undefined || cloneProjectRequest === null) {
|
|
63
|
+
throw new _Error["default"]("Missing the required parameter 'cloneProjectRequest' when calling cloneProject");
|
|
64
|
+
}
|
|
65
|
+
var pathParams = {
|
|
66
|
+
projectUID: projectUID
|
|
67
|
+
};
|
|
68
|
+
var queryParams = {};
|
|
69
|
+
var headerParams = {};
|
|
70
|
+
var formParams = {};
|
|
71
|
+
var authNames = ["api_key"];
|
|
72
|
+
var contentTypes = ["application/json"];
|
|
73
|
+
var accepts = ["application/json"];
|
|
74
|
+
var returnType = _Project["default"];
|
|
75
|
+
return this.apiClient.callApi("/v1/projects/{projectUID}/clone", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Clone a Project
|
|
80
|
+
* @param {String} projectUID The project UID to be cloned.
|
|
81
|
+
* @param {module:model/CloneProjectRequest} cloneProjectRequest Project to be cloned
|
|
82
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
83
|
+
*/
|
|
84
|
+
}, {
|
|
85
|
+
key: "cloneProject",
|
|
86
|
+
value: function cloneProject(projectUID, cloneProjectRequest) {
|
|
87
|
+
return this.cloneProjectWithHttpInfo(projectUID, cloneProjectRequest).then(function (response_and_data) {
|
|
88
|
+
return response_and_data.data;
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Create Product within a Project
|
|
94
|
+
* @param {String} projectUID
|
|
95
|
+
* @param {module:model/CreateProductRequest} createProductRequest Product to be created
|
|
96
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Product} and HTTP response
|
|
97
|
+
*/
|
|
98
|
+
}, {
|
|
53
99
|
key: "createProductWithHttpInfo",
|
|
54
100
|
value: function createProductWithHttpInfo(projectUID, createProductRequest) {
|
|
55
101
|
var postBody = createProductRequest;
|
package/dist/api/RouteApi.js
CHANGED
package/dist/api/RouteLogsApi.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -51,6 +51,12 @@ Object.defineProperty(exports, "Body", {
|
|
|
51
51
|
return _Body["default"];
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
|
+
Object.defineProperty(exports, "CloneProjectRequest", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function get() {
|
|
57
|
+
return _CloneProjectRequest["default"];
|
|
58
|
+
}
|
|
59
|
+
});
|
|
54
60
|
Object.defineProperty(exports, "Contact", {
|
|
55
61
|
enumerable: true,
|
|
56
62
|
get: function get() {
|
|
@@ -129,18 +135,6 @@ Object.defineProperty(exports, "DevicesApi", {
|
|
|
129
135
|
return _DevicesApi["default"];
|
|
130
136
|
}
|
|
131
137
|
});
|
|
132
|
-
Object.defineProperty(exports, "Edgeimpulse", {
|
|
133
|
-
enumerable: true,
|
|
134
|
-
get: function get() {
|
|
135
|
-
return _Edgeimpulse["default"];
|
|
136
|
-
}
|
|
137
|
-
});
|
|
138
|
-
Object.defineProperty(exports, "EdgeimpulseSensorsInner", {
|
|
139
|
-
enumerable: true,
|
|
140
|
-
get: function get() {
|
|
141
|
-
return _EdgeimpulseSensorsInner["default"];
|
|
142
|
-
}
|
|
143
|
-
});
|
|
144
138
|
Object.defineProperty(exports, "EnvironmentVariables", {
|
|
145
139
|
enumerable: true,
|
|
146
140
|
get: function get() {
|
|
@@ -465,6 +459,12 @@ Object.defineProperty(exports, "RouteSchema", {
|
|
|
465
459
|
return _RouteSchema["default"];
|
|
466
460
|
}
|
|
467
461
|
});
|
|
462
|
+
Object.defineProperty(exports, "Slack", {
|
|
463
|
+
enumerable: true,
|
|
464
|
+
get: function get() {
|
|
465
|
+
return _Slack["default"];
|
|
466
|
+
}
|
|
467
|
+
});
|
|
468
468
|
Object.defineProperty(exports, "Snowflake", {
|
|
469
469
|
enumerable: true,
|
|
470
470
|
get: function get() {
|
|
@@ -513,6 +513,7 @@ var _Azure = _interopRequireDefault(require("./model/Azure"));
|
|
|
513
513
|
var _BillingAccount = _interopRequireDefault(require("./model/BillingAccount"));
|
|
514
514
|
var _BillingAccountRole = _interopRequireDefault(require("./model/BillingAccountRole"));
|
|
515
515
|
var _Body = _interopRequireDefault(require("./model/Body"));
|
|
516
|
+
var _CloneProjectRequest = _interopRequireDefault(require("./model/CloneProjectRequest"));
|
|
516
517
|
var _Contact = _interopRequireDefault(require("./model/Contact"));
|
|
517
518
|
var _CreateFleetRequest = _interopRequireDefault(require("./model/CreateFleetRequest"));
|
|
518
519
|
var _CreateProductRequest = _interopRequireDefault(require("./model/CreateProductRequest"));
|
|
@@ -524,8 +525,6 @@ var _Device = _interopRequireDefault(require("./model/Device"));
|
|
|
524
525
|
var _DeviceSession = _interopRequireDefault(require("./model/DeviceSession"));
|
|
525
526
|
var _DeviceTowerInfo = _interopRequireDefault(require("./model/DeviceTowerInfo"));
|
|
526
527
|
var _DeviceUsage = _interopRequireDefault(require("./model/DeviceUsage"));
|
|
527
|
-
var _Edgeimpulse = _interopRequireDefault(require("./model/Edgeimpulse"));
|
|
528
|
-
var _EdgeimpulseSensorsInner = _interopRequireDefault(require("./model/EdgeimpulseSensorsInner"));
|
|
529
528
|
var _EnvironmentVariables = _interopRequireDefault(require("./model/EnvironmentVariables"));
|
|
530
529
|
var _Error = _interopRequireDefault(require("./model/Error"));
|
|
531
530
|
var _Event = _interopRequireDefault(require("./model/Event"));
|
|
@@ -571,6 +570,7 @@ var _Radresponder = _interopRequireDefault(require("./model/Radresponder"));
|
|
|
571
570
|
var _Role = _interopRequireDefault(require("./model/Role"));
|
|
572
571
|
var _Route = _interopRequireDefault(require("./model/Route"));
|
|
573
572
|
var _RouteSchema = _interopRequireDefault(require("./model/RouteSchema"));
|
|
573
|
+
var _Slack = _interopRequireDefault(require("./model/Slack"));
|
|
574
574
|
var _Snowflake = _interopRequireDefault(require("./model/Snowflake"));
|
|
575
575
|
var _SnowflakeTransform = _interopRequireDefault(require("./model/SnowflakeTransform"));
|
|
576
576
|
var _Thingworx = _interopRequireDefault(require("./model/Thingworx"));
|
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.17
|
|
23
23
|
*/
|
|
24
24
|
var BillingAccount = /*#__PURE__*/function () {
|
|
25
25
|
/**
|
package/dist/model/Body.js
CHANGED