@blues-inc/notehub-js 6.0.0-beta.4 → 6.0.0-beta.40
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 +3 -3
- package/dist/api/AlertApi.js +2 -2
- package/dist/api/AuthorizationApi.js +2 -2
- package/dist/api/BillingAccountApi.js +2 -2
- package/dist/api/DeviceApi.js +59 -3
- package/dist/api/EventApi.js +2 -2
- package/dist/api/ExternalDevicesApi.js +2 -2
- package/dist/api/MonitorApi.js +2 -2
- package/dist/api/ProjectApi.js +44 -2
- package/dist/api/RouteApi.js +2 -2
- package/dist/api/UsageApi.js +2 -2
- package/dist/api/WebhookApi.js +2 -2
- package/dist/index.js +7 -0
- package/dist/model/AWSRoleConfig.js +131 -0
- package/dist/model/AddDeviceToFleetsRequest.js +2 -2
- package/dist/model/Alert.js +2 -2
- package/dist/model/AlertDataInner.js +2 -2
- package/dist/model/AlertNotificationsInner.js +2 -2
- package/dist/model/AwsRoute.js +15 -2
- package/dist/model/AzureRoute.js +2 -2
- package/dist/model/BillingAccount.js +2 -2
- package/dist/model/BillingAccountRole.js +1 -1
- package/dist/model/BlynkRoute.js +2 -2
- package/dist/model/Body.js +2 -2
- package/dist/model/CellularPlan.js +2 -2
- package/dist/model/CloneProjectRequest.js +2 -2
- package/dist/model/Contact.js +2 -2
- package/dist/model/CreateFleetRequest.js +2 -2
- package/dist/model/CreateMonitor.js +8 -3
- package/dist/model/CreateProductRequest.js +2 -2
- package/dist/model/CreateProjectRequest.js +2 -2
- package/dist/model/CreateUpdateRepository.js +2 -2
- package/dist/model/CurrentFirmware.js +2 -2
- package/dist/model/DFUEnv.js +2 -2
- package/dist/model/DFUState.js +2 -2
- package/dist/model/DataField.js +2 -2
- package/dist/model/DataSetField.js +2 -2
- package/dist/model/DataUsage.js +2 -2
- package/dist/model/DatacakeRoute.js +2 -2
- package/dist/model/DeleteDeviceFromFleetsRequest.js +2 -2
- package/dist/model/DeleteNotefilesRequest.js +2 -2
- package/dist/model/Device.js +2 -2
- package/dist/model/DeviceDfuHistory.js +2 -2
- package/dist/model/DeviceDfuHistoryCurrent.js +2 -2
- package/dist/model/DeviceDfuHistoryPage.js +2 -2
- package/dist/model/DeviceDfuStateMachine.js +2 -2
- package/dist/model/DeviceDfuStateMachineNode.js +2 -2
- package/dist/model/DeviceDfuStatus.js +2 -2
- package/dist/model/DeviceDfuStatusPage.js +2 -2
- package/dist/model/DeviceSession.js +2 -2
- package/dist/model/DeviceTowerInfo.js +2 -2
- package/dist/model/DeviceUsage.js +2 -2
- package/dist/model/DfuActionRequest.js +2 -2
- package/dist/model/EmailNotification.js +2 -2
- package/dist/model/EnvTreeJsonNode.js +2 -2
- package/dist/model/EnvVar.js +2 -2
- package/dist/model/EnvironmentVariables.js +2 -2
- package/dist/model/Error.js +2 -2
- package/dist/model/Event.js +2 -2
- package/dist/model/Filter.js +2 -2
- package/dist/model/Firmware.js +2 -2
- package/dist/model/FirmwareInfo.js +24 -2
- package/dist/model/Fleet.js +2 -2
- package/dist/model/FleetConnectivityAssurance.js +2 -2
- package/dist/model/GetAlerts200Response.js +2 -2
- package/dist/model/GetBillingAccount200Response.js +2 -2
- package/dist/model/GetBillingAccount200ResponsePlan.js +2 -2
- package/dist/model/GetBillingAccountBalanceHistory200Response.js +2 -2
- package/dist/model/GetBillingAccountBalanceHistory200ResponseDataInner.js +2 -2
- package/dist/model/GetBillingAccounts200Response.js +2 -2
- package/dist/model/GetDataUsage200Response.js +2 -2
- package/dist/model/GetDataUsage200ResponseDataInner.js +2 -2
- package/dist/model/GetDbNote200Response.js +2 -2
- package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +2 -2
- package/dist/model/GetDeviceFleets200Response.js +2 -2
- package/dist/model/GetDeviceHealthLog200Response.js +2 -2
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +2 -2
- package/dist/model/GetDeviceLatestEvents200Response.js +2 -2
- package/dist/model/GetDevicePlans200Response.js +2 -2
- package/dist/model/GetDevicePublicKey200Response.js +2 -2
- package/dist/model/GetDevicePublicKeys200Response.js +2 -2
- package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +2 -2
- package/dist/model/GetDeviceSessions200Response.js +2 -2
- package/dist/model/GetDevices200Response.js +2 -2
- package/dist/model/GetEvents200Response.js +2 -2
- package/dist/model/GetEventsByCursor200Response.js +2 -2
- package/dist/model/GetNotefile200Response.js +2 -2
- package/dist/model/GetProducts200Response.js +2 -2
- package/dist/model/GetProjectMembers200Response.js +2 -2
- package/dist/model/GetProjects200Response.js +2 -2
- package/dist/model/GetRouteLogsUsage200Response.js +2 -2
- package/dist/model/GetSessionsUsage200Response.js +2 -2
- package/dist/model/GetWebhooks200Response.js +2 -2
- package/dist/model/GoogleRoute.js +2 -2
- package/dist/model/HttpRoute.js +2 -2
- package/dist/model/Location.js +2 -2
- package/dist/model/Login200Response.js +2 -2
- package/dist/model/LoginRequest.js +2 -2
- package/dist/model/Monitor.js +8 -3
- package/dist/model/MonitorAlertRoutesInner.js +2 -2
- package/dist/model/MqttRoute.js +2 -2
- package/dist/model/Note.js +2 -2
- package/dist/model/NoteInput.js +2 -2
- package/dist/model/Notefile.js +2 -2
- package/dist/model/NotefileSchema.js +2 -2
- package/dist/model/NotehubRoute.js +2 -2
- package/dist/model/NotehubRouteSummary.js +2 -2
- package/dist/model/OAuth2Error.js +2 -2
- package/dist/model/OAuth2TokenResponse.js +2 -2
- package/dist/model/PersonalAccessToken.js +2 -2
- package/dist/model/PersonalAccessTokenCreatedBy.js +2 -2
- package/dist/model/PersonalAccessTokenInfo.js +2 -2
- package/dist/model/PersonalAccessTokenSecret.js +2 -2
- package/dist/model/Product.js +2 -2
- package/dist/model/Project.js +2 -2
- package/dist/model/ProjectMember.js +2 -2
- package/dist/model/ProvisionDeviceRequest.js +2 -2
- package/dist/model/ProxyRoute.js +2 -2
- package/dist/model/QubitroRoute.js +2 -2
- package/dist/model/RadRoute.js +2 -2
- package/dist/model/Repository.js +2 -2
- package/dist/model/Role.js +1 -1
- package/dist/model/RouteLog.js +2 -2
- package/dist/model/RouteTransformSettings.js +2 -2
- package/dist/model/S3ArchiveRoute.js +2 -2
- package/dist/model/SatelliteDataUsage.js +2 -2
- package/dist/model/SatellitePlan.js +2 -2
- package/dist/model/SchemaProperty.js +2 -2
- package/dist/model/SignalDevice200Response.js +2 -2
- package/dist/model/SimUsage.js +2 -2
- package/dist/model/SlackBearerNotification.js +2 -2
- package/dist/model/SlackRoute.js +2 -2
- package/dist/model/SlackWebHookNotification.js +2 -2
- package/dist/model/SnowflakeRoute.js +2 -2
- package/dist/model/SnowpipeStreamingRoute.js +2 -2
- package/dist/model/ThingworxRoute.js +2 -2
- package/dist/model/TowerLocation.js +2 -2
- package/dist/model/TwilioRoute.js +2 -2
- package/dist/model/UpdateFleetRequest.js +2 -2
- package/dist/model/UploadMetadata.js +2 -2
- package/dist/model/UsageData.js +2 -2
- package/dist/model/UsageEventsData.js +20 -2
- package/dist/model/UsageEventsResponse.js +2 -2
- package/dist/model/UsageRouteLogsData.js +11 -2
- package/dist/model/UsageSessionsData.js +37 -6
- package/dist/model/UserDfuStateMachine.js +2 -2
- package/dist/model/UserDfuStateMachineStatus.js +2 -2
- package/dist/model/UserFirmwareInfo.js +2 -2
- package/dist/model/WebhookSettings.js +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
NotehubJs - JavaScript client for @blues-inc/notehub-js
|
|
4
4
|
The OpenAPI definition for the Notehub.io API.
|
|
5
|
+
# test: trigger workflow
|
|
5
6
|
|
|
6
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
7
8
|
|
|
8
9
|
- API version: 1.2.0
|
|
9
|
-
- Package version: 6.0.0-beta.
|
|
10
|
+
- Package version: 6.0.0-beta.40
|
|
10
11
|
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
|
|
11
12
|
For more information, please visit [https://dev.blues.io/support/](https://dev.blues.io/support/)
|
|
12
13
|
|
|
@@ -137,6 +138,7 @@ Class | Method | HTTP request | Description
|
|
|
137
138
|
*NotehubJs.BillingAccountApi* | [**getBillingAccounts**](docs/BillingAccountApi.md#getBillingAccounts) | **GET** /v1/billing-accounts |
|
|
138
139
|
*NotehubJs.DeviceApi* | [**addDbNote**](docs/DeviceApi.md#addDbNote) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID} |
|
|
139
140
|
*NotehubJs.DeviceApi* | [**addQiNote**](docs/DeviceApi.md#addQiNote) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID} |
|
|
141
|
+
*NotehubJs.DeviceApi* | [**createNotefile**](docs/DeviceApi.md#createNotefile) | **POST** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/notefiles/{notefileID} |
|
|
140
142
|
*NotehubJs.DeviceApi* | [**deleteDevice**](docs/DeviceApi.md#deleteDevice) | **DELETE** /v1/projects/{projectOrProductUID}/devices/{deviceUID} |
|
|
141
143
|
*NotehubJs.DeviceApi* | [**deleteDeviceEnvironmentVariable**](docs/DeviceApi.md#deleteDeviceEnvironmentVariable) | **DELETE** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables/{key} |
|
|
142
144
|
*NotehubJs.DeviceApi* | [**deleteNote**](docs/DeviceApi.md#deleteNote) | **DELETE** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/notes/{notefileID}/{noteID} |
|
|
@@ -190,6 +192,7 @@ Class | Method | HTTP request | Description
|
|
|
190
192
|
*NotehubJs.ProjectApi* | [**disableGlobalEventTransformation**](docs/ProjectApi.md#disableGlobalEventTransformation) | **POST** /v1/projects/{projectOrProductUID}/global-transformation/disable |
|
|
191
193
|
*NotehubJs.ProjectApi* | [**downloadFirmware**](docs/ProjectApi.md#downloadFirmware) | **GET** /v1/projects/{projectOrProductUID}/firmware/{firmwareType}/{filename} |
|
|
192
194
|
*NotehubJs.ProjectApi* | [**enableGlobalEventTransformation**](docs/ProjectApi.md#enableGlobalEventTransformation) | **POST** /v1/projects/{projectOrProductUID}/global-transformation/enable |
|
|
195
|
+
*NotehubJs.ProjectApi* | [**getAWSRoleConfig**](docs/ProjectApi.md#getAWSRoleConfig) | **GET** /v1/projects/{projectOrProductUID}/aws-role-config | Get AWS role configuration for role-based authentication
|
|
193
196
|
*NotehubJs.ProjectApi* | [**getDeviceDfuHistory**](docs/ProjectApi.md#getDeviceDfuHistory) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/dfu/{firmwareType}/history |
|
|
194
197
|
*NotehubJs.ProjectApi* | [**getDeviceDfuStatus**](docs/ProjectApi.md#getDeviceDfuStatus) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/dfu/{firmwareType}/status |
|
|
195
198
|
*NotehubJs.ProjectApi* | [**getDeviceFleets**](docs/ProjectApi.md#getDeviceFleets) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/fleets |
|
|
@@ -233,6 +236,7 @@ Class | Method | HTTP request | Description
|
|
|
233
236
|
|
|
234
237
|
## Documentation for Models
|
|
235
238
|
|
|
239
|
+
- [NotehubJs.AWSRoleConfig](docs/AWSRoleConfig.md)
|
|
236
240
|
- [NotehubJs.AddDeviceToFleetsRequest](docs/AddDeviceToFleetsRequest.md)
|
|
237
241
|
- [NotehubJs.Alert](docs/Alert.md)
|
|
238
242
|
- [NotehubJs.AlertDataInner](docs/AlertDataInner.md)
|
package/dist/ApiClient.js
CHANGED
|
@@ -14,7 +14,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
14
14
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
15
15
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
16
16
|
* Notehub API
|
|
17
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
17
|
+
* The OpenAPI definition for the Notehub.io API. # test: trigger workflow
|
|
18
18
|
*
|
|
19
19
|
* The version of the OpenAPI document: 1.2.0
|
|
20
20
|
* Contact: engineering@blues.io
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
*/
|
|
27
27
|
/**
|
|
28
28
|
* @module ApiClient
|
|
29
|
-
* @version 6.0.0-beta.
|
|
29
|
+
* @version 6.0.0-beta.40
|
|
30
30
|
*/
|
|
31
31
|
/**
|
|
32
32
|
* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
|
|
@@ -68,7 +68,7 @@ var ApiClient = /*#__PURE__*/function () {
|
|
|
68
68
|
*/
|
|
69
69
|
this.defaultHeaders = {};
|
|
70
70
|
if (typeof window === 'undefined') {
|
|
71
|
-
this.defaultHeaders['User-Agent'] = 'OpenAPI-Generator/6.0.0-beta.
|
|
71
|
+
this.defaultHeaders['User-Agent'] = 'OpenAPI-Generator/6.0.0-beta.40/Javascript';
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
/**
|
package/dist/api/AlertApi.js
CHANGED
|
@@ -15,7 +15,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
15
15
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
16
16
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
17
17
|
* Notehub API
|
|
18
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
18
|
+
* The OpenAPI definition for the Notehub.io API. # test: trigger workflow
|
|
19
19
|
*
|
|
20
20
|
* The version of the OpenAPI document: 1.2.0
|
|
21
21
|
* Contact: engineering@blues.io
|
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* Alert service.
|
|
30
30
|
* @module api/AlertApi
|
|
31
|
-
* @version 6.0.0-beta.
|
|
31
|
+
* @version 6.0.0-beta.40
|
|
32
32
|
*/
|
|
33
33
|
var AlertApi = exports["default"] = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -17,7 +17,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
17
17
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
18
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
19
19
|
* Notehub API
|
|
20
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
20
|
+
* The OpenAPI definition for the Notehub.io API. # test: trigger workflow
|
|
21
21
|
*
|
|
22
22
|
* The version of the OpenAPI document: 1.2.0
|
|
23
23
|
* Contact: engineering@blues.io
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* Authorization service.
|
|
32
32
|
* @module api/AuthorizationApi
|
|
33
|
-
* @version 6.0.0-beta.
|
|
33
|
+
* @version 6.0.0-beta.40
|
|
34
34
|
*/
|
|
35
35
|
var AuthorizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -17,7 +17,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
17
17
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
18
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
19
19
|
* Notehub API
|
|
20
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
20
|
+
* The OpenAPI definition for the Notehub.io API. # test: trigger workflow
|
|
21
21
|
*
|
|
22
22
|
* The version of the OpenAPI document: 1.2.0
|
|
23
23
|
* Contact: engineering@blues.io
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* BillingAccount service.
|
|
32
32
|
* @module api/BillingAccountApi
|
|
33
|
-
* @version 6.0.0-beta.
|
|
33
|
+
* @version 6.0.0-beta.40
|
|
34
34
|
*/
|
|
35
35
|
var BillingAccountApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
package/dist/api/DeviceApi.js
CHANGED
|
@@ -33,7 +33,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
33
33
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
34
34
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
35
35
|
* Notehub API
|
|
36
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
36
|
+
* The OpenAPI definition for the Notehub.io API. # test: trigger workflow
|
|
37
37
|
*
|
|
38
38
|
* The version of the OpenAPI document: 1.2.0
|
|
39
39
|
* Contact: engineering@blues.io
|
|
@@ -46,7 +46,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
46
46
|
/**
|
|
47
47
|
* Device service.
|
|
48
48
|
* @module api/DeviceApi
|
|
49
|
-
* @version 6.0.0-beta.
|
|
49
|
+
* @version 6.0.0-beta.40
|
|
50
50
|
*/
|
|
51
51
|
var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
52
52
|
/**
|
|
@@ -186,6 +186,59 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
188
|
|
|
189
|
+
/**
|
|
190
|
+
* Creates an empty Notefile on the device.
|
|
191
|
+
* @param {String} projectOrProductUID
|
|
192
|
+
* @param {String} deviceUID
|
|
193
|
+
* @param {String} notefileID
|
|
194
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
195
|
+
*/
|
|
196
|
+
}, {
|
|
197
|
+
key: "createNotefileWithHttpInfo",
|
|
198
|
+
value: function createNotefileWithHttpInfo(projectOrProductUID, deviceUID, notefileID) {
|
|
199
|
+
var postBody = null;
|
|
200
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
201
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
202
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling createNotefile");
|
|
203
|
+
}
|
|
204
|
+
// verify the required parameter 'deviceUID' is set
|
|
205
|
+
if (deviceUID === undefined || deviceUID === null) {
|
|
206
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling createNotefile");
|
|
207
|
+
}
|
|
208
|
+
// verify the required parameter 'notefileID' is set
|
|
209
|
+
if (notefileID === undefined || notefileID === null) {
|
|
210
|
+
throw new _Error["default"]("Missing the required parameter 'notefileID' when calling createNotefile");
|
|
211
|
+
}
|
|
212
|
+
var pathParams = {
|
|
213
|
+
'projectOrProductUID': projectOrProductUID,
|
|
214
|
+
'deviceUID': deviceUID,
|
|
215
|
+
'notefileID': notefileID
|
|
216
|
+
};
|
|
217
|
+
var queryParams = {};
|
|
218
|
+
var headerParams = {};
|
|
219
|
+
var formParams = {};
|
|
220
|
+
var authNames = ['personalAccessToken'];
|
|
221
|
+
var contentTypes = [];
|
|
222
|
+
var accepts = ['application/json'];
|
|
223
|
+
var returnType = null;
|
|
224
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/devices/{deviceUID}/notefiles/{notefileID}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Creates an empty Notefile on the device.
|
|
229
|
+
* @param {String} projectOrProductUID
|
|
230
|
+
* @param {String} deviceUID
|
|
231
|
+
* @param {String} notefileID
|
|
232
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
233
|
+
*/
|
|
234
|
+
}, {
|
|
235
|
+
key: "createNotefile",
|
|
236
|
+
value: function createNotefile(projectOrProductUID, deviceUID, notefileID) {
|
|
237
|
+
return this.createNotefileWithHttpInfo(projectOrProductUID, deviceUID, notefileID).then(function (response_and_data) {
|
|
238
|
+
return response_and_data.data;
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
|
|
189
242
|
/**
|
|
190
243
|
* Delete Device
|
|
191
244
|
* @param {String} projectOrProductUID
|
|
@@ -1006,6 +1059,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1006
1059
|
* @param {Number} opts.pageNum (default to 1)
|
|
1007
1060
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
1008
1061
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
1062
|
+
* @param {Boolean} opts.firstSync When true, filters results to only show first sync sessions (default to false)
|
|
1009
1063
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceSessions200Response} and HTTP response
|
|
1010
1064
|
*/
|
|
1011
1065
|
}, {
|
|
@@ -1029,7 +1083,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1029
1083
|
'pageSize': opts['pageSize'],
|
|
1030
1084
|
'pageNum': opts['pageNum'],
|
|
1031
1085
|
'startDate': opts['startDate'],
|
|
1032
|
-
'endDate': opts['endDate']
|
|
1086
|
+
'endDate': opts['endDate'],
|
|
1087
|
+
'firstSync': opts['firstSync']
|
|
1033
1088
|
};
|
|
1034
1089
|
var headerParams = {};
|
|
1035
1090
|
var formParams = {};
|
|
@@ -1049,6 +1104,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1049
1104
|
* @param {Number} opts.pageNum (default to 1)
|
|
1050
1105
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
1051
1106
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
1107
|
+
* @param {Boolean} opts.firstSync When true, filters results to only show first sync sessions (default to false)
|
|
1052
1108
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceSessions200Response}
|
|
1053
1109
|
*/
|
|
1054
1110
|
}, {
|
package/dist/api/EventApi.js
CHANGED
|
@@ -17,7 +17,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
17
17
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
18
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
19
19
|
* Notehub API
|
|
20
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
20
|
+
* The OpenAPI definition for the Notehub.io API. # test: trigger workflow
|
|
21
21
|
*
|
|
22
22
|
* The version of the OpenAPI document: 1.2.0
|
|
23
23
|
* Contact: engineering@blues.io
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* Event service.
|
|
32
32
|
* @module api/EventApi
|
|
33
|
-
* @version 6.0.0-beta.
|
|
33
|
+
* @version 6.0.0-beta.40
|
|
34
34
|
*/
|
|
35
35
|
var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -16,7 +16,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
17
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
18
18
|
* Notehub API
|
|
19
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
19
|
+
* The OpenAPI definition for the Notehub.io API. # test: trigger workflow
|
|
20
20
|
*
|
|
21
21
|
* The version of the OpenAPI document: 1.2.0
|
|
22
22
|
* Contact: engineering@blues.io
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* ExternalDevices service.
|
|
31
31
|
* @module api/ExternalDevicesApi
|
|
32
|
-
* @version 6.0.0-beta.
|
|
32
|
+
* @version 6.0.0-beta.40
|
|
33
33
|
*/
|
|
34
34
|
var ExternalDevicesApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/api/MonitorApi.js
CHANGED
|
@@ -16,7 +16,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
17
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
18
18
|
* Notehub API
|
|
19
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
19
|
+
* The OpenAPI definition for the Notehub.io API. # test: trigger workflow
|
|
20
20
|
*
|
|
21
21
|
* The version of the OpenAPI document: 1.2.0
|
|
22
22
|
* Contact: engineering@blues.io
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* Monitor service.
|
|
31
31
|
* @module api/MonitorApi
|
|
32
|
-
* @version 6.0.0-beta.
|
|
32
|
+
* @version 6.0.0-beta.40
|
|
33
33
|
*/
|
|
34
34
|
var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
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 _AWSRoleConfig = _interopRequireDefault(require("../model/AWSRoleConfig"));
|
|
8
9
|
var _AddDeviceToFleetsRequest = _interopRequireDefault(require("../model/AddDeviceToFleetsRequest"));
|
|
9
10
|
var _CloneProjectRequest = _interopRequireDefault(require("../model/CloneProjectRequest"));
|
|
10
11
|
var _CreateFleetRequest = _interopRequireDefault(require("../model/CreateFleetRequest"));
|
|
@@ -37,7 +38,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
37
38
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
38
39
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
39
40
|
* Notehub API
|
|
40
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
41
|
+
* The OpenAPI definition for the Notehub.io API. # test: trigger workflow
|
|
41
42
|
*
|
|
42
43
|
* The version of the OpenAPI document: 1.2.0
|
|
43
44
|
* Contact: engineering@blues.io
|
|
@@ -50,7 +51,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
50
51
|
/**
|
|
51
52
|
* Project service.
|
|
52
53
|
* @module api/ProjectApi
|
|
53
|
-
* @version 6.0.0-beta.
|
|
54
|
+
* @version 6.0.0-beta.40
|
|
54
55
|
*/
|
|
55
56
|
var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
56
57
|
/**
|
|
@@ -702,6 +703,47 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
702
703
|
});
|
|
703
704
|
}
|
|
704
705
|
|
|
706
|
+
/**
|
|
707
|
+
* Get AWS role configuration for role-based authentication
|
|
708
|
+
* Returns the AWS Account ID and External ID needed to configure an IAM role trust policy for role-based authentication on AWS routes.
|
|
709
|
+
* @param {String} projectOrProductUID
|
|
710
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AWSRoleConfig} and HTTP response
|
|
711
|
+
*/
|
|
712
|
+
}, {
|
|
713
|
+
key: "getAWSRoleConfigWithHttpInfo",
|
|
714
|
+
value: function getAWSRoleConfigWithHttpInfo(projectOrProductUID) {
|
|
715
|
+
var postBody = null;
|
|
716
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
717
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
718
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getAWSRoleConfig");
|
|
719
|
+
}
|
|
720
|
+
var pathParams = {
|
|
721
|
+
'projectOrProductUID': projectOrProductUID
|
|
722
|
+
};
|
|
723
|
+
var queryParams = {};
|
|
724
|
+
var headerParams = {};
|
|
725
|
+
var formParams = {};
|
|
726
|
+
var authNames = ['personalAccessToken'];
|
|
727
|
+
var contentTypes = [];
|
|
728
|
+
var accepts = ['application/json'];
|
|
729
|
+
var returnType = _AWSRoleConfig["default"];
|
|
730
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/aws-role-config', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
/**
|
|
734
|
+
* Get AWS role configuration for role-based authentication
|
|
735
|
+
* Returns the AWS Account ID and External ID needed to configure an IAM role trust policy for role-based authentication on AWS routes.
|
|
736
|
+
* @param {String} projectOrProductUID
|
|
737
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AWSRoleConfig}
|
|
738
|
+
*/
|
|
739
|
+
}, {
|
|
740
|
+
key: "getAWSRoleConfig",
|
|
741
|
+
value: function getAWSRoleConfig(projectOrProductUID) {
|
|
742
|
+
return this.getAWSRoleConfigWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
|
|
743
|
+
return response_and_data.data;
|
|
744
|
+
});
|
|
745
|
+
}
|
|
746
|
+
|
|
705
747
|
/**
|
|
706
748
|
* Get device DFU history for host or Notecard firmware
|
|
707
749
|
* @param {String} projectOrProductUID
|
package/dist/api/RouteApi.js
CHANGED
|
@@ -17,7 +17,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
17
17
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
18
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
19
19
|
* Notehub API
|
|
20
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
20
|
+
* The OpenAPI definition for the Notehub.io API. # test: trigger workflow
|
|
21
21
|
*
|
|
22
22
|
* The version of the OpenAPI document: 1.2.0
|
|
23
23
|
* Contact: engineering@blues.io
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* Route service.
|
|
32
32
|
* @module api/RouteApi
|
|
33
|
-
* @version 6.0.0-beta.
|
|
33
|
+
* @version 6.0.0-beta.40
|
|
34
34
|
*/
|
|
35
35
|
var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
package/dist/api/UsageApi.js
CHANGED
|
@@ -18,7 +18,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
18
18
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
19
19
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
20
20
|
* Notehub API
|
|
21
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
21
|
+
* The OpenAPI definition for the Notehub.io API. # test: trigger workflow
|
|
22
22
|
*
|
|
23
23
|
* The version of the OpenAPI document: 1.2.0
|
|
24
24
|
* Contact: engineering@blues.io
|
|
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
31
31
|
/**
|
|
32
32
|
* Usage service.
|
|
33
33
|
* @module api/UsageApi
|
|
34
|
-
* @version 6.0.0-beta.
|
|
34
|
+
* @version 6.0.0-beta.40
|
|
35
35
|
*/
|
|
36
36
|
var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
37
37
|
/**
|
package/dist/api/WebhookApi.js
CHANGED
|
@@ -16,7 +16,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
17
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
18
18
|
* Notehub API
|
|
19
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
19
|
+
* The OpenAPI definition for the Notehub.io API. # test: trigger workflow
|
|
20
20
|
*
|
|
21
21
|
* The version of the OpenAPI document: 1.2.0
|
|
22
22
|
* Contact: engineering@blues.io
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* Webhook service.
|
|
31
31
|
* @module api/WebhookApi
|
|
32
|
-
* @version 6.0.0-beta.
|
|
32
|
+
* @version 6.0.0-beta.40
|
|
33
33
|
*/
|
|
34
34
|
var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/index.js
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
Object.defineProperty(exports, "AWSRoleConfig", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _AWSRoleConfig["default"];
|
|
10
|
+
}
|
|
11
|
+
});
|
|
6
12
|
Object.defineProperty(exports, "AddDeviceToFleetsRequest", {
|
|
7
13
|
enumerable: true,
|
|
8
14
|
get: function get() {
|
|
@@ -886,6 +892,7 @@ Object.defineProperty(exports, "WebhookSettings", {
|
|
|
886
892
|
}
|
|
887
893
|
});
|
|
888
894
|
var _ApiClient = _interopRequireDefault(require("./ApiClient"));
|
|
895
|
+
var _AWSRoleConfig = _interopRequireDefault(require("./model/AWSRoleConfig"));
|
|
889
896
|
var _AddDeviceToFleetsRequest = _interopRequireDefault(require("./model/AddDeviceToFleetsRequest"));
|
|
890
897
|
var _Alert = _interopRequireDefault(require("./model/Alert"));
|
|
891
898
|
var _AlertDataInner = _interopRequireDefault(require("./model/AlertDataInner"));
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
11
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
12
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
13
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
14
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
15
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
16
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
18
|
+
* Notehub API
|
|
19
|
+
* The OpenAPI definition for the Notehub.io API. # test: trigger workflow
|
|
20
|
+
*
|
|
21
|
+
* The version of the OpenAPI document: 1.2.0
|
|
22
|
+
* Contact: engineering@blues.io
|
|
23
|
+
*
|
|
24
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
25
|
+
* https://openapi-generator.tech
|
|
26
|
+
* Do not edit the class manually.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* The AWSRoleConfig model module.
|
|
31
|
+
* @module model/AWSRoleConfig
|
|
32
|
+
* @version 6.0.0-beta.40
|
|
33
|
+
*/
|
|
34
|
+
var AWSRoleConfig = /*#__PURE__*/function () {
|
|
35
|
+
/**
|
|
36
|
+
* Constructs a new <code>AWSRoleConfig</code>.
|
|
37
|
+
* Configuration needed to set up an IAM role trust policy for role-based authentication on AWS routes
|
|
38
|
+
* @alias module:model/AWSRoleConfig
|
|
39
|
+
* @param awsAccountId {String} The Blues AWS Account ID to trust in your IAM role's trust policy
|
|
40
|
+
* @param externalId {String} The External ID to use in your IAM role's trust policy condition
|
|
41
|
+
*/
|
|
42
|
+
function AWSRoleConfig(awsAccountId, externalId) {
|
|
43
|
+
_classCallCheck(this, AWSRoleConfig);
|
|
44
|
+
AWSRoleConfig.initialize(this, awsAccountId, externalId);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Initializes the fields of this object.
|
|
49
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
50
|
+
* Only for internal use.
|
|
51
|
+
*/
|
|
52
|
+
return _createClass(AWSRoleConfig, null, [{
|
|
53
|
+
key: "initialize",
|
|
54
|
+
value: function initialize(obj, awsAccountId, externalId) {
|
|
55
|
+
obj['aws_account_id'] = awsAccountId;
|
|
56
|
+
obj['external_id'] = externalId;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Constructs a <code>AWSRoleConfig</code> from a plain JavaScript object, optionally creating a new instance.
|
|
61
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
62
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
63
|
+
* @param {module:model/AWSRoleConfig} obj Optional instance to populate.
|
|
64
|
+
* @return {module:model/AWSRoleConfig} The populated <code>AWSRoleConfig</code> instance.
|
|
65
|
+
*/
|
|
66
|
+
}, {
|
|
67
|
+
key: "constructFromObject",
|
|
68
|
+
value: function constructFromObject(data, obj) {
|
|
69
|
+
if (data) {
|
|
70
|
+
obj = obj || new AWSRoleConfig();
|
|
71
|
+
if (data.hasOwnProperty('aws_account_id')) {
|
|
72
|
+
obj['aws_account_id'] = _ApiClient["default"].convertToType(data['aws_account_id'], 'String');
|
|
73
|
+
}
|
|
74
|
+
if (data.hasOwnProperty('external_id')) {
|
|
75
|
+
obj['external_id'] = _ApiClient["default"].convertToType(data['external_id'], 'String');
|
|
76
|
+
}
|
|
77
|
+
} else if (data === null) {
|
|
78
|
+
return null;
|
|
79
|
+
}
|
|
80
|
+
return obj;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Validates the JSON data with respect to <code>AWSRoleConfig</code>.
|
|
85
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
86
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>AWSRoleConfig</code>.
|
|
87
|
+
*/
|
|
88
|
+
}, {
|
|
89
|
+
key: "validateJSON",
|
|
90
|
+
value: function validateJSON(data) {
|
|
91
|
+
// check to make sure all required properties are present in the JSON string
|
|
92
|
+
var _iterator = _createForOfIteratorHelper(AWSRoleConfig.RequiredProperties),
|
|
93
|
+
_step;
|
|
94
|
+
try {
|
|
95
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
96
|
+
var property = _step.value;
|
|
97
|
+
if (!data[property]) {
|
|
98
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
// ensure the json data is a string
|
|
102
|
+
} catch (err) {
|
|
103
|
+
_iterator.e(err);
|
|
104
|
+
} finally {
|
|
105
|
+
_iterator.f();
|
|
106
|
+
}
|
|
107
|
+
if (data['aws_account_id'] && !(typeof data['aws_account_id'] === 'string' || data['aws_account_id'] instanceof String)) {
|
|
108
|
+
throw new Error("Expected the field `aws_account_id` to be a primitive type in the JSON string but got " + data['aws_account_id']);
|
|
109
|
+
}
|
|
110
|
+
// ensure the json data is a string
|
|
111
|
+
if (data['external_id'] && !(typeof data['external_id'] === 'string' || data['external_id'] instanceof String)) {
|
|
112
|
+
throw new Error("Expected the field `external_id` to be a primitive type in the JSON string but got " + data['external_id']);
|
|
113
|
+
}
|
|
114
|
+
return true;
|
|
115
|
+
}
|
|
116
|
+
}]);
|
|
117
|
+
}();
|
|
118
|
+
AWSRoleConfig.RequiredProperties = ["aws_account_id", "external_id"];
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* The Blues AWS Account ID to trust in your IAM role's trust policy
|
|
122
|
+
* @member {String} aws_account_id
|
|
123
|
+
*/
|
|
124
|
+
AWSRoleConfig.prototype['aws_account_id'] = undefined;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* The External ID to use in your IAM role's trust policy condition
|
|
128
|
+
* @member {String} external_id
|
|
129
|
+
*/
|
|
130
|
+
AWSRoleConfig.prototype['external_id'] = undefined;
|
|
131
|
+
var _default = exports["default"] = AWSRoleConfig;
|
|
@@ -16,7 +16,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
17
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
18
18
|
* Notehub API
|
|
19
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
19
|
+
* The OpenAPI definition for the Notehub.io API. # test: trigger workflow
|
|
20
20
|
*
|
|
21
21
|
* The version of the OpenAPI document: 1.2.0
|
|
22
22
|
* Contact: engineering@blues.io
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The AddDeviceToFleetsRequest model module.
|
|
31
31
|
* @module model/AddDeviceToFleetsRequest
|
|
32
|
-
* @version 6.0.0-beta.
|
|
32
|
+
* @version 6.0.0-beta.40
|
|
33
33
|
*/
|
|
34
34
|
var AddDeviceToFleetsRequest = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/model/Alert.js
CHANGED
|
@@ -18,7 +18,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
18
18
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
19
19
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
20
20
|
* Notehub API
|
|
21
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
21
|
+
* The OpenAPI definition for the Notehub.io API. # test: trigger workflow
|
|
22
22
|
*
|
|
23
23
|
* The version of the OpenAPI document: 1.2.0
|
|
24
24
|
* Contact: engineering@blues.io
|
|
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
31
31
|
/**
|
|
32
32
|
* The Alert model module.
|
|
33
33
|
* @module model/Alert
|
|
34
|
-
* @version 6.0.0-beta.
|
|
34
|
+
* @version 6.0.0-beta.40
|
|
35
35
|
*/
|
|
36
36
|
var Alert = /*#__PURE__*/function () {
|
|
37
37
|
/**
|
|
@@ -13,7 +13,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
13
13
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
14
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
15
15
|
* Notehub API
|
|
16
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
16
|
+
* The OpenAPI definition for the Notehub.io API. # test: trigger workflow
|
|
17
17
|
*
|
|
18
18
|
* The version of the OpenAPI document: 1.2.0
|
|
19
19
|
* Contact: engineering@blues.io
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The AlertDataInner model module.
|
|
28
28
|
* @module model/AlertDataInner
|
|
29
|
-
* @version 6.0.0-beta.
|
|
29
|
+
* @version 6.0.0-beta.40
|
|
30
30
|
*/
|
|
31
31
|
var AlertDataInner = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -13,7 +13,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
13
13
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
14
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
15
15
|
* Notehub API
|
|
16
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
16
|
+
* The OpenAPI definition for the Notehub.io API. # test: trigger workflow
|
|
17
17
|
*
|
|
18
18
|
* The version of the OpenAPI document: 1.2.0
|
|
19
19
|
* Contact: engineering@blues.io
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The AlertNotificationsInner model module.
|
|
28
28
|
* @module model/AlertNotificationsInner
|
|
29
|
-
* @version 6.0.0-beta.
|
|
29
|
+
* @version 6.0.0-beta.40
|
|
30
30
|
*/
|
|
31
31
|
var AlertNotificationsInner = /*#__PURE__*/function () {
|
|
32
32
|
/**
|