@blues-inc/notehub-js 6.4.0-beta.3 → 6.4.0-beta.30
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 -2
- package/dist/ApiClient.js +2 -2
- package/dist/api/AlertApi.js +1 -1
- package/dist/api/AuthorizationApi.js +1 -1
- package/dist/api/BillingAccountApi.js +1 -1
- package/dist/api/DeviceApi.js +7 -7
- package/dist/api/EventApi.js +14 -2
- package/dist/api/ExternalDevicesApi.js +1 -1
- package/dist/api/JobsApi.js +1 -1
- package/dist/api/MonitorApi.js +1 -1
- package/dist/api/OrganizationApi.js +167 -0
- package/dist/api/ProjectApi.js +1 -1
- package/dist/api/RouteApi.js +1 -1
- package/dist/api/UsageApi.js +1 -1
- package/dist/api/WebhookApi.js +3 -4
- package/dist/index.js +35 -7
- package/dist/model/AWSRoleConfig.js +1 -1
- package/dist/model/AddDeviceToFleetsRequest.js +1 -1
- package/dist/model/Alert.js +1 -1
- package/dist/model/AlertDataInner.js +1 -1
- package/dist/model/AlertNotificationsInner.js +1 -1
- package/dist/model/AwsRoute.js +1 -1
- package/dist/model/AzureRoute.js +1 -1
- package/dist/model/BatchJobRequests.js +1 -1
- package/dist/model/BillingAccount.js +1 -1
- package/dist/model/BlynkRoute.js +1 -1
- package/dist/model/Body.js +1 -1
- package/dist/model/CancelJobRun200Response.js +1 -1
- package/dist/model/CellularPlan.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/CreateJob201Response.js +1 -1
- package/dist/model/CreateMonitor.js +1 -1
- package/dist/model/CreateProductRequest.js +1 -1
- package/dist/model/CreateProjectRequest.js +1 -1
- package/dist/model/CreateProjectSecretRequest.js +1 -1
- package/dist/model/CreateUpdateRepository.js +1 -1
- package/dist/model/CreatedRepository.js +155 -0
- package/dist/model/CurrentFirmware.js +1 -1
- package/dist/model/DFUEnv.js +1 -1
- package/dist/model/DFUState.js +1 -1
- package/dist/model/DataField.js +1 -1
- package/dist/model/DataSetField.js +1 -1
- package/dist/model/DataUsage.js +1 -1
- package/dist/model/DatacakeRoute.js +1 -1
- package/dist/model/DeleteDeviceFromFleetsRequest.js +1 -1
- package/dist/model/DeleteJob200Response.js +1 -1
- package/dist/model/DeleteNotefilesRequest.js +1 -1
- package/dist/model/Device.js +15 -2
- package/dist/model/DeviceDfuHistory.js +1 -1
- package/dist/model/DeviceDfuHistoryCurrent.js +1 -1
- package/dist/model/DeviceDfuHistoryPage.js +1 -1
- package/dist/model/DeviceDfuStateMachine.js +1 -1
- package/dist/model/DeviceDfuStateMachineNode.js +1 -1
- package/dist/model/DeviceDfuStatus.js +1 -1
- package/dist/model/DeviceDfuStatusPage.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/DfuActionRequest.js +1 -1
- package/dist/model/EmailNotification.js +1 -1
- package/dist/model/EnvTreeJsonNode.js +1 -1
- package/dist/model/EnvVar.js +1 -1
- package/dist/model/EnvironmentVariables.js +2 -2
- package/dist/model/Error.js +1 -1
- package/dist/model/Event.js +23 -1
- package/dist/model/Filter.js +1 -1
- package/dist/model/Firmware.js +1 -1
- package/dist/model/FirmwareInfo.js +1 -1
- package/dist/model/Fleet.js +1 -1
- package/dist/model/FleetConnectivityAssurance.js +1 -1
- package/dist/model/GetAlerts200Response.js +1 -1
- package/dist/model/GetBillingAccount200Response.js +25 -1
- package/dist/model/GetBillingAccount200ResponsePlan.js +1 -1
- package/dist/model/GetBillingAccountBalanceHistory200Response.js +1 -1
- package/dist/model/GetBillingAccountBalanceHistory200ResponseDataInner.js +1 -1
- package/dist/model/GetBillingAccounts200Response.js +1 -1
- package/dist/model/GetDataUsage200Response.js +1 -1
- package/dist/model/GetDataUsage200ResponseDataInner.js +1 -1
- package/dist/model/GetDbNote200Response.js +1 -1
- package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +1 -1
- package/dist/model/GetDeviceFleets200Response.js +1 -1
- package/dist/model/GetDeviceHealthLog200Response.js +1 -1
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +1 -1
- package/dist/model/GetDeviceJourney200Response.js +1 -1
- package/dist/model/GetDeviceJourney200ResponseJourney.js +2 -2
- package/dist/model/GetDeviceJourneys200Response.js +1 -1
- package/dist/model/GetDeviceJourneys200ResponseJourneysInner.js +5 -5
- package/dist/model/GetDeviceLatestEvents200Response.js +1 -1
- package/dist/model/GetDevicePlans200Response.js +1 -1
- package/dist/model/GetDevicePublicKey200Response.js +1 -1
- package/dist/model/GetDevicePublicKeys200Response.js +1 -1
- package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +1 -1
- package/dist/model/GetDeviceSessions200Response.js +1 -1
- package/dist/model/GetDevices200Response.js +1 -1
- package/dist/model/GetEvents200Response.js +1 -1
- package/dist/model/GetEventsByCursor200Response.js +1 -1
- package/dist/model/GetJobRuns200Response.js +1 -1
- package/dist/model/GetJobs200Response.js +1 -1
- package/dist/model/GetNotefile200Response.js +1 -1
- package/dist/model/GetOrganizations200Response.js +111 -0
- package/dist/model/GetProducts200Response.js +1 -1
- package/dist/model/GetProjectMembers200Response.js +1 -1
- package/dist/model/GetProjectSecretsResponse.js +1 -1
- package/dist/model/GetProjects200Response.js +1 -1
- package/dist/model/GetRouteLogsUsage200Response.js +1 -1
- package/dist/model/GetSessionsUsage200Response.js +1 -1
- package/dist/model/GetWebhooks200Response.js +1 -1
- package/dist/model/GoogleRoute.js +1 -1
- package/dist/model/HttpRoute.js +1 -1
- package/dist/model/Job.js +1 -1
- package/dist/model/JobDefinition.js +1 -1
- package/dist/model/JobDefinitionReportOptions.js +1 -1
- package/dist/model/JobDefinitionSelect.js +1 -1
- package/dist/model/JobDetail.js +1 -1
- package/dist/model/JobDetailAllOf.js +1 -1
- package/dist/model/JobRun.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/Monitor.js +1 -1
- package/dist/model/MonitorAlertRoutesInner.js +1 -1
- package/dist/model/MqttRoute.js +13 -1
- package/dist/model/Note.js +1 -1
- package/dist/model/NoteInput.js +1 -1
- package/dist/model/Notefile.js +1 -1
- package/dist/model/NotefileSchema.js +1 -1
- package/dist/model/NotehubRoute.js +14 -1
- package/dist/model/NotehubRouteSummary.js +1 -1
- package/dist/model/OAuth2Error.js +1 -1
- package/dist/model/OAuth2TokenResponse.js +1 -1
- package/dist/model/Organization.js +139 -0
- package/dist/model/OrganizationRole.js +68 -0
- package/dist/model/PersonalAccessToken.js +1 -1
- package/dist/model/PersonalAccessTokenCreatedBy.js +1 -1
- package/dist/model/PersonalAccessTokenInfo.js +1 -1
- package/dist/model/PersonalAccessTokenSecret.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/ProjectSecret.js +1 -1
- package/dist/model/ProvisionDeviceRequest.js +1 -1
- package/dist/model/ProxyRoute.js +1 -1
- package/dist/model/QubitroRoute.js +1 -1
- package/dist/model/RadRoute.js +1 -1
- package/dist/model/Repository.js +1 -1
- package/dist/model/RepositoryListResponse.js +1 -1
- package/dist/model/RepositoryTokenRequest.js +1 -1
- package/dist/model/RepositoryTokenResponse.js +1 -1
- package/dist/model/RouteLog.js +1 -1
- package/dist/model/RouteTransformSettings.js +1 -1
- package/dist/model/RunJob200Response.js +1 -1
- package/dist/model/S3ArchiveRoute.js +1 -1
- package/dist/model/SatelliteDataUsage.js +1 -1
- package/dist/model/SatellitePlan.js +1 -1
- package/dist/model/SchemaProperty.js +1 -1
- package/dist/model/SignalDevice200Response.js +1 -1
- package/dist/model/SimUsage.js +1 -1
- package/dist/model/SlackBearerNotification.js +1 -1
- package/dist/model/SlackRoute.js +1 -1
- package/dist/model/SlackWebHookNotification.js +1 -1
- package/dist/model/SnowflakeRoute.js +1 -1
- package/dist/model/SnowpipeStreamingRoute.js +1 -1
- package/dist/model/ThingworxRoute.js +1 -1
- package/dist/model/TowerLocation.js +1 -1
- package/dist/model/TwilioRoute.js +1 -1
- package/dist/model/UpdateFleetRequest.js +1 -1
- package/dist/model/UpdateHostFirmwareRequest.js +1 -1
- package/dist/model/UpdateProjectSecretRequest.js +1 -1
- package/dist/model/UploadMetadata.js +1 -1
- package/dist/model/UsageData.js +1 -1
- package/dist/model/UsageEventsData.js +1 -1
- package/dist/model/UsageEventsResponse.js +1 -1
- package/dist/model/UsageRouteLogsData.js +1 -1
- package/dist/model/UsageSessionsData.js +1 -1
- package/dist/model/UserDfuStateMachine.js +1 -1
- package/dist/model/UserDfuStateMachineStatus.js +1 -1
- package/dist/model/UserFirmwareInfo.js +1 -1
- package/dist/model/WebhookSettings.js +1 -1
- package/package.json +1 -1
- package/dist/model/CreateLegacyWebhookEventRequest.js +0 -118
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.2.0
|
|
9
|
-
- Package version: 6.4.0-beta.
|
|
9
|
+
- Package version: 6.4.0-beta.30
|
|
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
|
|
|
@@ -191,6 +191,9 @@ All URIs are relative to *https://api.notefile.net*
|
|
|
191
191
|
| _NotehubJs.MonitorApi_ | [**getMonitor**](docs/MonitorApi.md#getMonitor) | **GET** /v1/projects/{projectOrProductUID}/monitors/{monitorUID} |
|
|
192
192
|
| _NotehubJs.MonitorApi_ | [**getMonitors**](docs/MonitorApi.md#getMonitors) | **GET** /v1/projects/{projectOrProductUID}/monitors |
|
|
193
193
|
| _NotehubJs.MonitorApi_ | [**updateMonitor**](docs/MonitorApi.md#updateMonitor) | **PUT** /v1/projects/{projectOrProductUID}/monitors/{monitorUID} |
|
|
194
|
+
| _NotehubJs.OrganizationApi_ | [**getOrganization**](docs/OrganizationApi.md#getOrganization) | **GET** /v1/organizations/{organizationUID} |
|
|
195
|
+
| _NotehubJs.OrganizationApi_ | [**getOrganizationBalanceHistory**](docs/OrganizationApi.md#getOrganizationBalanceHistory) | **GET** /v1/organizations/{organizationUID}/balance-history |
|
|
196
|
+
| _NotehubJs.OrganizationApi_ | [**getOrganizations**](docs/OrganizationApi.md#getOrganizations) | **GET** /v1/organizations |
|
|
194
197
|
| _NotehubJs.ProjectApi_ | [**addDeviceToFleets**](docs/ProjectApi.md#addDeviceToFleets) | **PUT** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/fleets |
|
|
195
198
|
| _NotehubJs.ProjectApi_ | [**cloneProject**](docs/ProjectApi.md#cloneProject) | **POST** /v1/projects/{projectOrProductUID}/clone |
|
|
196
199
|
| _NotehubJs.ProjectApi_ | [**createFleet**](docs/ProjectApi.md#createFleet) | **POST** /v1/projects/{projectOrProductUID}/fleets |
|
|
@@ -278,12 +281,12 @@ All URIs are relative to *https://api.notefile.net*
|
|
|
278
281
|
- [NotehubJs.Contact](docs/Contact.md)
|
|
279
282
|
- [NotehubJs.CreateFleetRequest](docs/CreateFleetRequest.md)
|
|
280
283
|
- [NotehubJs.CreateJob201Response](docs/CreateJob201Response.md)
|
|
281
|
-
- [NotehubJs.CreateLegacyWebhookEventRequest](docs/CreateLegacyWebhookEventRequest.md)
|
|
282
284
|
- [NotehubJs.CreateMonitor](docs/CreateMonitor.md)
|
|
283
285
|
- [NotehubJs.CreateProductRequest](docs/CreateProductRequest.md)
|
|
284
286
|
- [NotehubJs.CreateProjectRequest](docs/CreateProjectRequest.md)
|
|
285
287
|
- [NotehubJs.CreateProjectSecretRequest](docs/CreateProjectSecretRequest.md)
|
|
286
288
|
- [NotehubJs.CreateUpdateRepository](docs/CreateUpdateRepository.md)
|
|
289
|
+
- [NotehubJs.CreatedRepository](docs/CreatedRepository.md)
|
|
287
290
|
- [NotehubJs.CurrentFirmware](docs/CurrentFirmware.md)
|
|
288
291
|
- [NotehubJs.DFUEnv](docs/DFUEnv.md)
|
|
289
292
|
- [NotehubJs.DFUState](docs/DFUState.md)
|
|
@@ -346,6 +349,7 @@ All URIs are relative to *https://api.notefile.net*
|
|
|
346
349
|
- [NotehubJs.GetJobRuns200Response](docs/GetJobRuns200Response.md)
|
|
347
350
|
- [NotehubJs.GetJobs200Response](docs/GetJobs200Response.md)
|
|
348
351
|
- [NotehubJs.GetNotefile200Response](docs/GetNotefile200Response.md)
|
|
352
|
+
- [NotehubJs.GetOrganizations200Response](docs/GetOrganizations200Response.md)
|
|
349
353
|
- [NotehubJs.GetProducts200Response](docs/GetProducts200Response.md)
|
|
350
354
|
- [NotehubJs.GetProjectMembers200Response](docs/GetProjectMembers200Response.md)
|
|
351
355
|
- [NotehubJs.GetProjectSecretsResponse](docs/GetProjectSecretsResponse.md)
|
|
@@ -376,6 +380,8 @@ All URIs are relative to *https://api.notefile.net*
|
|
|
376
380
|
- [NotehubJs.NotehubRouteSummary](docs/NotehubRouteSummary.md)
|
|
377
381
|
- [NotehubJs.OAuth2Error](docs/OAuth2Error.md)
|
|
378
382
|
- [NotehubJs.OAuth2TokenResponse](docs/OAuth2TokenResponse.md)
|
|
383
|
+
- [NotehubJs.Organization](docs/Organization.md)
|
|
384
|
+
- [NotehubJs.OrganizationRole](docs/OrganizationRole.md)
|
|
379
385
|
- [NotehubJs.PersonalAccessToken](docs/PersonalAccessToken.md)
|
|
380
386
|
- [NotehubJs.PersonalAccessTokenCreatedBy](docs/PersonalAccessTokenCreatedBy.md)
|
|
381
387
|
- [NotehubJs.PersonalAccessTokenInfo](docs/PersonalAccessTokenInfo.md)
|
package/dist/ApiClient.js
CHANGED
|
@@ -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.4.0-beta.
|
|
29
|
+
* @version 6.4.0-beta.30
|
|
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.4.0-beta.
|
|
71
|
+
this.defaultHeaders["User-Agent"] = "OpenAPI-Generator/6.4.0-beta.30/Javascript";
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
/**
|
package/dist/api/AlertApi.js
CHANGED
|
@@ -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.4.0-beta.
|
|
31
|
+
* @version 6.4.0-beta.30
|
|
32
32
|
*/
|
|
33
33
|
var AlertApi = exports["default"] = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -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.4.0-beta.
|
|
33
|
+
* @version 6.4.0-beta.30
|
|
34
34
|
*/
|
|
35
35
|
var AuthorizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -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.4.0-beta.
|
|
33
|
+
* @version 6.4.0-beta.30
|
|
34
34
|
*/
|
|
35
35
|
var BillingAccountApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
package/dist/api/DeviceApi.js
CHANGED
|
@@ -48,7 +48,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
48
48
|
/**
|
|
49
49
|
* Device service.
|
|
50
50
|
* @module api/DeviceApi
|
|
51
|
-
* @version 6.4.0-beta.
|
|
51
|
+
* @version 6.4.0-beta.30
|
|
52
52
|
*/
|
|
53
53
|
var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
54
54
|
/**
|
|
@@ -866,10 +866,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
866
866
|
}
|
|
867
867
|
|
|
868
868
|
/**
|
|
869
|
-
* Get a single journey for a device along with its
|
|
869
|
+
* Get a single journey for a device along with its events. The events array is paginated via `pageSize` / `pageNum`; use `journey.has_more` to detect additional pages.
|
|
870
870
|
* @param {String} projectOrProductUID
|
|
871
871
|
* @param {String} deviceUID
|
|
872
|
-
* @param {Number} journeyID Identifier of the journey, taken from the `journey` field
|
|
872
|
+
* @param {Number} journeyID Identifier of the journey, taken from the numeric `journey` field in the event body (a Unix timestamp marking the start of the journey).
|
|
873
873
|
* @param {Object} opts Optional parameters
|
|
874
874
|
* @param {Number} opts.pageSize (default to 50)
|
|
875
875
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -911,10 +911,10 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
911
911
|
}
|
|
912
912
|
|
|
913
913
|
/**
|
|
914
|
-
* Get a single journey for a device along with its
|
|
914
|
+
* Get a single journey for a device along with its events. The events array is paginated via `pageSize` / `pageNum`; use `journey.has_more` to detect additional pages.
|
|
915
915
|
* @param {String} projectOrProductUID
|
|
916
916
|
* @param {String} deviceUID
|
|
917
|
-
* @param {Number} journeyID Identifier of the journey, taken from the `journey` field
|
|
917
|
+
* @param {Number} journeyID Identifier of the journey, taken from the numeric `journey` field in the event body (a Unix timestamp marking the start of the journey).
|
|
918
918
|
* @param {Object} opts Optional parameters
|
|
919
919
|
* @param {Number} opts.pageSize (default to 50)
|
|
920
920
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -929,7 +929,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
929
929
|
}
|
|
930
930
|
|
|
931
931
|
/**
|
|
932
|
-
* Get the list of journeys for a device, derived from `
|
|
932
|
+
* Get the list of journeys for a device, derived from events whose body contains `journey` and `jcount` fields. Returns journey metadata only (no event payloads). Capped at 100 most recent journeys; `has_more` is true when the cap is hit.
|
|
933
933
|
* @param {String} projectOrProductUID
|
|
934
934
|
* @param {String} deviceUID
|
|
935
935
|
* @param {Object} opts Optional parameters
|
|
@@ -968,7 +968,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
968
968
|
}
|
|
969
969
|
|
|
970
970
|
/**
|
|
971
|
-
* Get the list of journeys for a device, derived from `
|
|
971
|
+
* Get the list of journeys for a device, derived from events whose body contains `journey` and `jcount` fields. Returns journey metadata only (no event payloads). Capped at 100 most recent journeys; `has_more` is true when the cap is hit.
|
|
972
972
|
* @param {String} projectOrProductUID
|
|
973
973
|
* @param {String} deviceUID
|
|
974
974
|
* @param {Object} opts Optional parameters
|
package/dist/api/EventApi.js
CHANGED
|
@@ -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.4.0-beta.
|
|
33
|
+
* @version 6.4.0-beta.30
|
|
34
34
|
*/
|
|
35
35
|
var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -52,6 +52,7 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
52
52
|
* @param {Number} opts.pageSize (default to 50)
|
|
53
53
|
* @param {Number} opts.pageNum (default to 1)
|
|
54
54
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
55
|
+
* @param {Array.<String>} opts.sensorUID A sensor UID to filter events by, matched exactly against the event sensor field. The value may carry any prefix.
|
|
55
56
|
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
56
57
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
57
58
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
@@ -83,6 +84,7 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
83
84
|
pageSize: opts["pageSize"],
|
|
84
85
|
pageNum: opts["pageNum"],
|
|
85
86
|
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
87
|
+
sensorUID: this.apiClient.buildCollectionParam(opts["sensorUID"], "multi"),
|
|
86
88
|
sortBy: opts["sortBy"],
|
|
87
89
|
sortOrder: opts["sortOrder"],
|
|
88
90
|
startDate: opts["startDate"],
|
|
@@ -113,6 +115,7 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
113
115
|
* @param {Number} opts.pageSize (default to 50)
|
|
114
116
|
* @param {Number} opts.pageNum (default to 1)
|
|
115
117
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
118
|
+
* @param {Array.<String>} opts.sensorUID A sensor UID to filter events by, matched exactly against the event sensor field. The value may carry any prefix.
|
|
116
119
|
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
117
120
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
118
121
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
@@ -147,6 +150,7 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
147
150
|
* @param {String} opts.files
|
|
148
151
|
* @param {String} opts.fleetUID
|
|
149
152
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
153
|
+
* @param {Array.<String>} opts.sensorUID A sensor UID to filter events by, matched exactly against the event sensor field. The value may carry any prefix.
|
|
150
154
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetEventsByCursor200Response} and HTTP response
|
|
151
155
|
*/
|
|
152
156
|
}, {
|
|
@@ -168,7 +172,8 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
168
172
|
systemFilesOnly: opts["systemFilesOnly"],
|
|
169
173
|
files: opts["files"],
|
|
170
174
|
fleetUID: opts["fleetUID"],
|
|
171
|
-
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi")
|
|
175
|
+
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
176
|
+
sensorUID: this.apiClient.buildCollectionParam(opts["sensorUID"], "multi")
|
|
172
177
|
};
|
|
173
178
|
var headerParams = {};
|
|
174
179
|
var formParams = {};
|
|
@@ -190,6 +195,7 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
190
195
|
* @param {String} opts.files
|
|
191
196
|
* @param {String} opts.fleetUID
|
|
192
197
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
198
|
+
* @param {Array.<String>} opts.sensorUID A sensor UID to filter events by, matched exactly against the event sensor field. The value may carry any prefix.
|
|
193
199
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetEventsByCursor200Response}
|
|
194
200
|
*/
|
|
195
201
|
}, {
|
|
@@ -208,6 +214,7 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
208
214
|
* @param {Number} opts.pageSize (default to 50)
|
|
209
215
|
* @param {Number} opts.pageNum (default to 1)
|
|
210
216
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
217
|
+
* @param {Array.<String>} opts.sensorUID A sensor UID to filter events by, matched exactly against the event sensor field. The value may carry any prefix.
|
|
211
218
|
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
212
219
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
213
220
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
@@ -243,6 +250,7 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
243
250
|
pageSize: opts["pageSize"],
|
|
244
251
|
pageNum: opts["pageNum"],
|
|
245
252
|
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
253
|
+
sensorUID: this.apiClient.buildCollectionParam(opts["sensorUID"], "multi"),
|
|
246
254
|
sortBy: opts["sortBy"],
|
|
247
255
|
sortOrder: opts["sortOrder"],
|
|
248
256
|
startDate: opts["startDate"],
|
|
@@ -273,6 +281,7 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
273
281
|
* @param {Number} opts.pageSize (default to 50)
|
|
274
282
|
* @param {Number} opts.pageNum (default to 1)
|
|
275
283
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
284
|
+
* @param {Array.<String>} opts.sensorUID A sensor UID to filter events by, matched exactly against the event sensor field. The value may carry any prefix.
|
|
276
285
|
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
277
286
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
278
287
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
@@ -306,6 +315,7 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
306
315
|
* @param {Boolean} opts.systemFilesOnly
|
|
307
316
|
* @param {String} opts.files
|
|
308
317
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
318
|
+
* @param {Array.<String>} opts.sensorUID A sensor UID to filter events by, matched exactly against the event sensor field. The value may carry any prefix.
|
|
309
319
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
310
320
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
311
321
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetEventsByCursor200Response} and HTTP response
|
|
@@ -334,6 +344,7 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
334
344
|
systemFilesOnly: opts["systemFilesOnly"],
|
|
335
345
|
files: opts["files"],
|
|
336
346
|
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
347
|
+
sensorUID: this.apiClient.buildCollectionParam(opts["sensorUID"], "multi"),
|
|
337
348
|
startDate: opts["startDate"],
|
|
338
349
|
endDate: opts["endDate"]
|
|
339
350
|
};
|
|
@@ -357,6 +368,7 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
357
368
|
* @param {Boolean} opts.systemFilesOnly
|
|
358
369
|
* @param {String} opts.files
|
|
359
370
|
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
371
|
+
* @param {Array.<String>} opts.sensorUID A sensor UID to filter events by, matched exactly against the event sensor field. The value may carry any prefix.
|
|
360
372
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
361
373
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
362
374
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetEventsByCursor200Response}
|
|
@@ -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.4.0-beta.
|
|
32
|
+
* @version 6.4.0-beta.30
|
|
33
33
|
*/
|
|
34
34
|
var ExternalDevicesApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/api/JobsApi.js
CHANGED
|
@@ -36,7 +36,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
36
36
|
/**
|
|
37
37
|
* Jobs service.
|
|
38
38
|
* @module api/JobsApi
|
|
39
|
-
* @version 6.4.0-beta.
|
|
39
|
+
* @version 6.4.0-beta.30
|
|
40
40
|
*/
|
|
41
41
|
var JobsApi = exports["default"] = /*#__PURE__*/function () {
|
|
42
42
|
/**
|
package/dist/api/MonitorApi.js
CHANGED
|
@@ -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.4.0-beta.
|
|
32
|
+
* @version 6.4.0-beta.30
|
|
33
33
|
*/
|
|
34
34
|
var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -0,0 +1,167 @@
|
|
|
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
|
+
var _Error = _interopRequireDefault(require("../model/Error"));
|
|
9
|
+
var _GetBillingAccount200Response = _interopRequireDefault(require("../model/GetBillingAccount200Response"));
|
|
10
|
+
var _GetBillingAccountBalanceHistory200Response = _interopRequireDefault(require("../model/GetBillingAccountBalanceHistory200Response"));
|
|
11
|
+
var _GetOrganizations200Response = _interopRequireDefault(require("../model/GetOrganizations200Response"));
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
13
|
+
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); }
|
|
14
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
15
|
+
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); } }
|
|
16
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
17
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
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
|
+
* Notehub API
|
|
20
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
21
|
+
*
|
|
22
|
+
* The version of the OpenAPI document: 1.2.0
|
|
23
|
+
* Contact: engineering@blues.io
|
|
24
|
+
*
|
|
25
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
26
|
+
* https://openapi-generator.tech
|
|
27
|
+
* Do not edit the class manually.
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* Organization service.
|
|
32
|
+
* @module api/OrganizationApi
|
|
33
|
+
* @version 6.4.0-beta.30
|
|
34
|
+
*/
|
|
35
|
+
var OrganizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
|
+
/**
|
|
37
|
+
* Constructs a new OrganizationApi.
|
|
38
|
+
* @alias module:api/OrganizationApi
|
|
39
|
+
* @class
|
|
40
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
41
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
42
|
+
*/
|
|
43
|
+
function OrganizationApi(apiClient) {
|
|
44
|
+
_classCallCheck(this, OrganizationApi);
|
|
45
|
+
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Get Organization Information
|
|
50
|
+
* @param {String} organizationUID
|
|
51
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetBillingAccount200Response} and HTTP response
|
|
52
|
+
*/
|
|
53
|
+
return _createClass(OrganizationApi, [{
|
|
54
|
+
key: "getOrganizationWithHttpInfo",
|
|
55
|
+
value: function getOrganizationWithHttpInfo(organizationUID) {
|
|
56
|
+
var postBody = null;
|
|
57
|
+
// verify the required parameter 'organizationUID' is set
|
|
58
|
+
if (organizationUID === undefined || organizationUID === null) {
|
|
59
|
+
throw new _Error["default"]("Missing the required parameter 'organizationUID' when calling getOrganization");
|
|
60
|
+
}
|
|
61
|
+
var pathParams = {
|
|
62
|
+
organizationUID: organizationUID
|
|
63
|
+
};
|
|
64
|
+
var queryParams = {};
|
|
65
|
+
var headerParams = {};
|
|
66
|
+
var formParams = {};
|
|
67
|
+
var authNames = ["personalAccessToken"];
|
|
68
|
+
var contentTypes = [];
|
|
69
|
+
var accepts = ["application/json"];
|
|
70
|
+
var returnType = _GetBillingAccount200Response["default"];
|
|
71
|
+
return this.apiClient.callApi("/v1/organizations/{organizationUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Get Organization Information
|
|
76
|
+
* @param {String} organizationUID
|
|
77
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetBillingAccount200Response}
|
|
78
|
+
*/
|
|
79
|
+
}, {
|
|
80
|
+
key: "getOrganization",
|
|
81
|
+
value: function getOrganization(organizationUID) {
|
|
82
|
+
return this.getOrganizationWithHttpInfo(organizationUID).then(function (response_and_data) {
|
|
83
|
+
return response_and_data.data;
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Get Organization Balance history
|
|
89
|
+
* @param {String} organizationUID
|
|
90
|
+
* @param {Object} opts Optional parameters
|
|
91
|
+
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
92
|
+
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
93
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetBillingAccountBalanceHistory200Response} and HTTP response
|
|
94
|
+
*/
|
|
95
|
+
}, {
|
|
96
|
+
key: "getOrganizationBalanceHistoryWithHttpInfo",
|
|
97
|
+
value: function getOrganizationBalanceHistoryWithHttpInfo(organizationUID, opts) {
|
|
98
|
+
opts = opts || {};
|
|
99
|
+
var postBody = null;
|
|
100
|
+
// verify the required parameter 'organizationUID' is set
|
|
101
|
+
if (organizationUID === undefined || organizationUID === null) {
|
|
102
|
+
throw new _Error["default"]("Missing the required parameter 'organizationUID' when calling getOrganizationBalanceHistory");
|
|
103
|
+
}
|
|
104
|
+
var pathParams = {
|
|
105
|
+
organizationUID: organizationUID
|
|
106
|
+
};
|
|
107
|
+
var queryParams = {
|
|
108
|
+
startDate: opts["startDate"],
|
|
109
|
+
endDate: opts["endDate"]
|
|
110
|
+
};
|
|
111
|
+
var headerParams = {};
|
|
112
|
+
var formParams = {};
|
|
113
|
+
var authNames = ["personalAccessToken"];
|
|
114
|
+
var contentTypes = [];
|
|
115
|
+
var accepts = ["application/json"];
|
|
116
|
+
var returnType = _GetBillingAccountBalanceHistory200Response["default"];
|
|
117
|
+
return this.apiClient.callApi("/v1/organizations/{organizationUID}/balance-history", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Get Organization Balance history
|
|
122
|
+
* @param {String} organizationUID
|
|
123
|
+
* @param {Object} opts Optional parameters
|
|
124
|
+
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
125
|
+
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
126
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetBillingAccountBalanceHistory200Response}
|
|
127
|
+
*/
|
|
128
|
+
}, {
|
|
129
|
+
key: "getOrganizationBalanceHistory",
|
|
130
|
+
value: function getOrganizationBalanceHistory(organizationUID, opts) {
|
|
131
|
+
return this.getOrganizationBalanceHistoryWithHttpInfo(organizationUID, opts).then(function (response_and_data) {
|
|
132
|
+
return response_and_data.data;
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Get Organizations accessible by the api_key
|
|
138
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetOrganizations200Response} and HTTP response
|
|
139
|
+
*/
|
|
140
|
+
}, {
|
|
141
|
+
key: "getOrganizationsWithHttpInfo",
|
|
142
|
+
value: function getOrganizationsWithHttpInfo() {
|
|
143
|
+
var postBody = null;
|
|
144
|
+
var pathParams = {};
|
|
145
|
+
var queryParams = {};
|
|
146
|
+
var headerParams = {};
|
|
147
|
+
var formParams = {};
|
|
148
|
+
var authNames = ["personalAccessToken"];
|
|
149
|
+
var contentTypes = [];
|
|
150
|
+
var accepts = ["application/json"];
|
|
151
|
+
var returnType = _GetOrganizations200Response["default"];
|
|
152
|
+
return this.apiClient.callApi("/v1/organizations", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Get Organizations accessible by the api_key
|
|
157
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetOrganizations200Response}
|
|
158
|
+
*/
|
|
159
|
+
}, {
|
|
160
|
+
key: "getOrganizations",
|
|
161
|
+
value: function getOrganizations() {
|
|
162
|
+
return this.getOrganizationsWithHttpInfo().then(function (response_and_data) {
|
|
163
|
+
return response_and_data.data;
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
}]);
|
|
167
|
+
}();
|
package/dist/api/ProjectApi.js
CHANGED
|
@@ -56,7 +56,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
56
56
|
/**
|
|
57
57
|
* Project service.
|
|
58
58
|
* @module api/ProjectApi
|
|
59
|
-
* @version 6.4.0-beta.
|
|
59
|
+
* @version 6.4.0-beta.30
|
|
60
60
|
*/
|
|
61
61
|
var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
62
62
|
/**
|
package/dist/api/RouteApi.js
CHANGED
|
@@ -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.4.0-beta.
|
|
33
|
+
* @version 6.4.0-beta.30
|
|
34
34
|
*/
|
|
35
35
|
var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
package/dist/api/UsageApi.js
CHANGED
|
@@ -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.4.0-beta.
|
|
34
|
+
* @version 6.4.0-beta.30
|
|
35
35
|
*/
|
|
36
36
|
var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
37
37
|
/**
|
package/dist/api/WebhookApi.js
CHANGED
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
-
var _CreateLegacyWebhookEventRequest = _interopRequireDefault(require("../model/CreateLegacyWebhookEventRequest"));
|
|
9
8
|
var _Error = _interopRequireDefault(require("../model/Error"));
|
|
10
9
|
var _GetWebhooks200Response = _interopRequireDefault(require("../model/GetWebhooks200Response"));
|
|
11
10
|
var _WebhookSettings = _interopRequireDefault(require("../model/WebhookSettings"));
|
|
@@ -30,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
29
|
/**
|
|
31
30
|
* Webhook service.
|
|
32
31
|
* @module api/WebhookApi
|
|
33
|
-
* @version 6.4.0-beta.
|
|
32
|
+
* @version 6.4.0-beta.30
|
|
34
33
|
*/
|
|
35
34
|
var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
35
|
/**
|
|
@@ -49,7 +48,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
49
48
|
* Legacy endpoint for sending an event from a webhook, associated with the given device (provisioning it if necessary). The request body is a Note-shaped object containing the notefile name, body, and optional payload.
|
|
50
49
|
* @param {String} productUID
|
|
51
50
|
* @param {String} deviceUID
|
|
52
|
-
* @param {Object.<String, {String: Object}>} requestBody A Note-shaped event
|
|
51
|
+
* @param {Object.<String, {String: Object}>} requestBody A Note-shaped event. Typically contains the notefile name (file), a JSON body, and an optional base64-encoded payload, but any additional Note fields (e.g. when, sn, where_lat, where_lon) are accepted and honored.
|
|
53
52
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
54
53
|
*/
|
|
55
54
|
return _createClass(WebhookApi, [{
|
|
@@ -86,7 +85,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
86
85
|
* Legacy endpoint for sending an event from a webhook, associated with the given device (provisioning it if necessary). The request body is a Note-shaped object containing the notefile name, body, and optional payload.
|
|
87
86
|
* @param {String} productUID
|
|
88
87
|
* @param {String} deviceUID
|
|
89
|
-
* @param {Object.<String, {String: Object}>} requestBody A Note-shaped event
|
|
88
|
+
* @param {Object.<String, {String: Object}>} requestBody A Note-shaped event. Typically contains the notefile name (file), a JSON body, and an optional base64-encoded payload, but any additional Note fields (e.g. when, sn, where_lat, where_lon) are accepted and honored.
|
|
90
89
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
91
90
|
*/
|
|
92
91
|
}, {
|
package/dist/index.js
CHANGED
|
@@ -135,12 +135,6 @@ Object.defineProperty(exports, "CreateJob201Response", {
|
|
|
135
135
|
return _CreateJob201Response["default"];
|
|
136
136
|
}
|
|
137
137
|
});
|
|
138
|
-
Object.defineProperty(exports, "CreateLegacyWebhookEventRequest", {
|
|
139
|
-
enumerable: true,
|
|
140
|
-
get: function get() {
|
|
141
|
-
return _CreateLegacyWebhookEventRequest["default"];
|
|
142
|
-
}
|
|
143
|
-
});
|
|
144
138
|
Object.defineProperty(exports, "CreateMonitor", {
|
|
145
139
|
enumerable: true,
|
|
146
140
|
get: function get() {
|
|
@@ -171,6 +165,12 @@ Object.defineProperty(exports, "CreateUpdateRepository", {
|
|
|
171
165
|
return _CreateUpdateRepository["default"];
|
|
172
166
|
}
|
|
173
167
|
});
|
|
168
|
+
Object.defineProperty(exports, "CreatedRepository", {
|
|
169
|
+
enumerable: true,
|
|
170
|
+
get: function get() {
|
|
171
|
+
return _CreatedRepository["default"];
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
174
|
Object.defineProperty(exports, "CurrentFirmware", {
|
|
175
175
|
enumerable: true,
|
|
176
176
|
get: function get() {
|
|
@@ -561,6 +561,12 @@ Object.defineProperty(exports, "GetNotefile200Response", {
|
|
|
561
561
|
return _GetNotefile200Response["default"];
|
|
562
562
|
}
|
|
563
563
|
});
|
|
564
|
+
Object.defineProperty(exports, "GetOrganizations200Response", {
|
|
565
|
+
enumerable: true,
|
|
566
|
+
get: function get() {
|
|
567
|
+
return _GetOrganizations200Response["default"];
|
|
568
|
+
}
|
|
569
|
+
});
|
|
564
570
|
Object.defineProperty(exports, "GetProducts200Response", {
|
|
565
571
|
enumerable: true,
|
|
566
572
|
get: function get() {
|
|
@@ -753,6 +759,24 @@ Object.defineProperty(exports, "OAuth2TokenResponse", {
|
|
|
753
759
|
return _OAuth2TokenResponse["default"];
|
|
754
760
|
}
|
|
755
761
|
});
|
|
762
|
+
Object.defineProperty(exports, "Organization", {
|
|
763
|
+
enumerable: true,
|
|
764
|
+
get: function get() {
|
|
765
|
+
return _Organization["default"];
|
|
766
|
+
}
|
|
767
|
+
});
|
|
768
|
+
Object.defineProperty(exports, "OrganizationApi", {
|
|
769
|
+
enumerable: true,
|
|
770
|
+
get: function get() {
|
|
771
|
+
return _OrganizationApi["default"];
|
|
772
|
+
}
|
|
773
|
+
});
|
|
774
|
+
Object.defineProperty(exports, "OrganizationRole", {
|
|
775
|
+
enumerable: true,
|
|
776
|
+
get: function get() {
|
|
777
|
+
return _OrganizationRole["default"];
|
|
778
|
+
}
|
|
779
|
+
});
|
|
756
780
|
Object.defineProperty(exports, "PersonalAccessToken", {
|
|
757
781
|
enumerable: true,
|
|
758
782
|
get: function get() {
|
|
@@ -1078,12 +1102,12 @@ var _CloneProjectRequest = _interopRequireDefault(require("./model/CloneProjectR
|
|
|
1078
1102
|
var _Contact = _interopRequireDefault(require("./model/Contact"));
|
|
1079
1103
|
var _CreateFleetRequest = _interopRequireDefault(require("./model/CreateFleetRequest"));
|
|
1080
1104
|
var _CreateJob201Response = _interopRequireDefault(require("./model/CreateJob201Response"));
|
|
1081
|
-
var _CreateLegacyWebhookEventRequest = _interopRequireDefault(require("./model/CreateLegacyWebhookEventRequest"));
|
|
1082
1105
|
var _CreateMonitor = _interopRequireDefault(require("./model/CreateMonitor"));
|
|
1083
1106
|
var _CreateProductRequest = _interopRequireDefault(require("./model/CreateProductRequest"));
|
|
1084
1107
|
var _CreateProjectRequest = _interopRequireDefault(require("./model/CreateProjectRequest"));
|
|
1085
1108
|
var _CreateProjectSecretRequest = _interopRequireDefault(require("./model/CreateProjectSecretRequest"));
|
|
1086
1109
|
var _CreateUpdateRepository = _interopRequireDefault(require("./model/CreateUpdateRepository"));
|
|
1110
|
+
var _CreatedRepository = _interopRequireDefault(require("./model/CreatedRepository"));
|
|
1087
1111
|
var _CurrentFirmware = _interopRequireDefault(require("./model/CurrentFirmware"));
|
|
1088
1112
|
var _DFUEnv = _interopRequireDefault(require("./model/DFUEnv"));
|
|
1089
1113
|
var _DFUState = _interopRequireDefault(require("./model/DFUState"));
|
|
@@ -1146,6 +1170,7 @@ var _GetEventsByCursor200Response = _interopRequireDefault(require("./model/GetE
|
|
|
1146
1170
|
var _GetJobRuns200Response = _interopRequireDefault(require("./model/GetJobRuns200Response"));
|
|
1147
1171
|
var _GetJobs200Response = _interopRequireDefault(require("./model/GetJobs200Response"));
|
|
1148
1172
|
var _GetNotefile200Response = _interopRequireDefault(require("./model/GetNotefile200Response"));
|
|
1173
|
+
var _GetOrganizations200Response = _interopRequireDefault(require("./model/GetOrganizations200Response"));
|
|
1149
1174
|
var _GetProducts200Response = _interopRequireDefault(require("./model/GetProducts200Response"));
|
|
1150
1175
|
var _GetProjectMembers200Response = _interopRequireDefault(require("./model/GetProjectMembers200Response"));
|
|
1151
1176
|
var _GetProjectSecretsResponse = _interopRequireDefault(require("./model/GetProjectSecretsResponse"));
|
|
@@ -1176,6 +1201,8 @@ var _NotehubRoute = _interopRequireDefault(require("./model/NotehubRoute"));
|
|
|
1176
1201
|
var _NotehubRouteSummary = _interopRequireDefault(require("./model/NotehubRouteSummary"));
|
|
1177
1202
|
var _OAuth2Error = _interopRequireDefault(require("./model/OAuth2Error"));
|
|
1178
1203
|
var _OAuth2TokenResponse = _interopRequireDefault(require("./model/OAuth2TokenResponse"));
|
|
1204
|
+
var _Organization = _interopRequireDefault(require("./model/Organization"));
|
|
1205
|
+
var _OrganizationRole = _interopRequireDefault(require("./model/OrganizationRole"));
|
|
1179
1206
|
var _PersonalAccessToken = _interopRequireDefault(require("./model/PersonalAccessToken"));
|
|
1180
1207
|
var _PersonalAccessTokenCreatedBy = _interopRequireDefault(require("./model/PersonalAccessTokenCreatedBy"));
|
|
1181
1208
|
var _PersonalAccessTokenInfo = _interopRequireDefault(require("./model/PersonalAccessTokenInfo"));
|
|
@@ -1231,6 +1258,7 @@ var _EventApi = _interopRequireDefault(require("./api/EventApi"));
|
|
|
1231
1258
|
var _ExternalDevicesApi = _interopRequireDefault(require("./api/ExternalDevicesApi"));
|
|
1232
1259
|
var _JobsApi = _interopRequireDefault(require("./api/JobsApi"));
|
|
1233
1260
|
var _MonitorApi = _interopRequireDefault(require("./api/MonitorApi"));
|
|
1261
|
+
var _OrganizationApi = _interopRequireDefault(require("./api/OrganizationApi"));
|
|
1234
1262
|
var _ProjectApi = _interopRequireDefault(require("./api/ProjectApi"));
|
|
1235
1263
|
var _RouteApi = _interopRequireDefault(require("./api/RouteApi"));
|
|
1236
1264
|
var _UsageApi = _interopRequireDefault(require("./api/UsageApi"));
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The AWSRoleConfig model module.
|
|
31
31
|
* @module model/AWSRoleConfig
|
|
32
|
-
* @version 6.4.0-beta.
|
|
32
|
+
* @version 6.4.0-beta.30
|
|
33
33
|
*/
|
|
34
34
|
var AWSRoleConfig = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -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.4.0-beta.
|
|
32
|
+
* @version 6.4.0-beta.30
|
|
33
33
|
*/
|
|
34
34
|
var AddDeviceToFleetsRequest = /*#__PURE__*/function () {
|
|
35
35
|
/**
|