@blues-inc/notehub-js 6.7.0-beta.8 → 6.7.0-beta.80
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 +148 -157
- package/dist/ApiClient.js +2 -2
- package/dist/api/AlertApi.js +11 -9
- package/dist/api/AuthorizationApi.js +11 -50
- package/dist/api/DescriptionApi.js +49 -33
- package/dist/api/DeviceApi.js +272 -141
- package/dist/api/EventApi.js +65 -204
- package/dist/api/ExternalDevicesApi.js +19 -13
- package/dist/api/JobsApi.js +57 -39
- package/dist/api/MonitorApi.js +27 -17
- package/dist/api/OrganizationApi.js +25 -19
- package/dist/api/ProjectApi.js +257 -169
- package/dist/api/RouteApi.js +53 -41
- package/dist/api/SkillsApi.js +58 -106
- package/dist/api/UsageApi.js +73 -63
- package/dist/api/WebhookApi.js +67 -45
- package/dist/index.js +42 -70
- package/dist/model/AWSRoleConfig.js +1 -1
- package/dist/model/AddDeviceToFleetsRequest.js +3 -3
- package/dist/model/Alert.js +14 -9
- package/dist/model/AlertDataInner.js +9 -4
- package/dist/model/AlertNotificationsInner.js +14 -4
- package/dist/model/ArchiveStats.js +1 -1
- package/dist/model/AwsRoute.js +1 -1
- package/dist/model/AzureRoute.js +1 -1
- package/dist/model/BatchJobNoteRequest.js +1 -1
- package/dist/model/BatchJobRequests.js +5 -5
- package/dist/model/BillingAccount.js +1 -1
- package/dist/model/BlynkRoute.js +1 -1
- package/dist/model/Body.js +2 -1
- package/dist/model/CancelJobRun200Response.js +1 -1
- package/dist/model/CellularPlan.js +3 -2
- package/dist/model/CloneProjectRequest.js +7 -7
- package/dist/model/Contact.js +1 -1
- package/dist/model/CreateFleetRequest.js +4 -3
- package/dist/model/CreateJob201Response.js +1 -1
- package/dist/model/CreateMonitor.js +37 -25
- package/dist/model/CreateProductRequest.js +7 -6
- package/dist/model/CreateProjectRequest.js +5 -5
- package/dist/model/CreateProjectSecretRequest.js +5 -5
- package/dist/model/CreateUpdateRepository.js +3 -1
- package/dist/model/CreatedRepository.js +5 -5
- 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/DataSet.js +4 -4
- package/dist/model/DataSetField.js +2 -2
- package/dist/model/DataUsage.js +1 -1
- package/dist/model/DatacakeRoute.js +1 -1
- package/dist/model/DatasetReloadProgress.js +1 -1
- package/dist/model/DeleteDeviceFromFleetsRequest.js +3 -3
- package/dist/model/DeleteJob200Response.js +1 -1
- package/dist/model/DeleteNotefilesRequest.js +2 -2
- package/dist/model/DescriptionRecord.js +6 -6
- package/dist/model/DescriptionRecordList.js +1 -1
- package/dist/model/Device.js +27 -8
- package/dist/model/DeviceDfuHistory.js +3 -2
- package/dist/model/DeviceDfuHistoryCurrent.js +2 -2
- package/dist/model/DeviceDfuHistoryPage.js +2 -2
- package/dist/model/DeviceDfuStateMachine.js +2 -1
- package/dist/model/DeviceDfuStateMachineNode.js +2 -2
- package/dist/model/DeviceDfuStatus.js +3 -3
- package/dist/model/DeviceDfuStatusPage.js +2 -2
- package/dist/model/DeviceSensor.js +1 -1
- package/dist/model/DeviceSession.js +5 -5
- package/dist/model/DeviceTowerInfo.js +6 -1
- package/dist/model/DeviceUsage.js +1 -1
- package/dist/model/DfuActionRequest.js +2 -2
- package/dist/model/EmailNotification.js +29 -6
- package/dist/model/EnvTreeJsonNode.js +1 -1
- package/dist/model/EnvVar.js +1 -1
- package/dist/model/EnvironmentVariables.js +1 -1
- package/dist/model/Error.js +1 -1
- package/dist/model/Event.js +7 -7
- package/dist/model/Filter.js +1 -1
- package/dist/model/Firmware.js +1 -1
- package/dist/model/FirmwareInfo.js +6 -6
- package/dist/model/Fleet.js +11 -10
- package/dist/model/FleetConnectivityAssurance.js +1 -1
- package/dist/model/GetAlerts200Response.js +2 -2
- package/dist/model/GetApiUsage200Response.js +2 -2
- package/dist/model/GetDataUsage200Response.js +2 -2
- package/dist/model/GetDataUsage200ResponseDataInner.js +3 -3
- 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/GetDeviceJourney200Response.js +1 -1
- package/dist/model/GetDeviceJourney200ResponseJourney.js +1 -1
- package/dist/model/GetDeviceJourneys200Response.js +1 -1
- package/dist/model/GetDeviceJourneys200ResponseJourneysInner.js +1 -1
- package/dist/model/GetDeviceLatestEvents200Response.js +2 -2
- package/dist/model/GetDevicePlans200Response.js +2 -1
- package/dist/model/GetDevicePublicKey200Response.js +5 -3
- package/dist/model/GetDevicePublicKeys200Response.js +2 -2
- package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +3 -1
- package/dist/model/GetDeviceSessions200Response.js +2 -2
- package/dist/model/GetDevices200Response.js +2 -2
- package/dist/model/GetEvents200Response.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/{GetBillingAccount200Response.js → GetOrganization200Response.js} +28 -28
- package/dist/model/{GetBillingAccount200ResponsePlan.js → GetOrganization200ResponsePlan.js} +24 -24
- package/dist/model/{GetBillingAccountBalanceHistory200Response.js → GetOrganizationBalanceHistory200Response.js} +22 -22
- package/dist/model/{GetBillingAccountBalanceHistory200ResponseDataInner.js → GetOrganizationBalanceHistory200ResponseDataInner.js} +22 -22
- package/dist/model/GetOrganizations200Response.js +1 -1
- 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 +2 -2
- package/dist/model/GetSessionsUsage200Response.js +3 -3
- package/dist/model/GetWebhooks200Response.js +1 -1
- package/dist/model/GoogleRoute.js +1 -1
- package/dist/model/HealthLog.js +7 -4
- package/dist/model/HttpRoute.js +1 -1
- package/dist/model/Job.js +1 -1
- package/dist/model/JobDefinition.js +2 -2
- package/dist/model/JobDefinitionReportOptions.js +1 -1
- package/dist/model/JobDefinitionSelect.js +3 -3
- 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 +13 -7
- package/dist/model/Monitor.js +18 -12
- package/dist/model/MonitorAlertRoutesInner.js +60 -14
- package/dist/model/MqttRoute.js +1 -1
- package/dist/model/Note.js +2 -2
- package/dist/model/NoteInput.js +1 -1
- package/dist/model/Notefile.js +2 -1
- package/dist/model/NotefileSchema.js +5 -3
- package/dist/model/NotehubRoute.js +7 -3
- package/dist/model/NotehubRouteSummary.js +6 -1
- package/dist/model/OAuth2Error.js +1 -1
- package/dist/model/OAuth2TokenResponse.js +1 -1
- package/dist/model/Organization.js +5 -3
- package/dist/model/Product.js +8 -4
- package/dist/model/Project.js +7 -4
- package/dist/model/ProjectMember.js +5 -4
- package/dist/model/ProjectSecret.js +7 -7
- package/dist/model/ProvisionDeviceRequest.js +5 -5
- 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 +3 -3
- package/dist/model/RepositoryListResponse.js +1 -1
- package/dist/model/{Login200Response.js → RepositoryRecord.js} +52 -24
- package/dist/model/RepositoryTokenRequest.js +1 -1
- package/dist/model/RepositoryTokenResponse.js +1 -1
- package/dist/model/RouteLog.js +9 -9
- 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 +6 -4
- package/dist/model/SignalDevice200Response.js +2 -2
- package/dist/model/SimUsage.js +1 -1
- package/dist/model/Skill.js +1 -1
- package/dist/model/SkillLinks.js +1 -1
- package/dist/model/SkillSet.js +7 -7
- package/dist/model/SkillSummary.js +16 -3
- package/dist/model/SkillWrite.js +1 -1
- package/dist/model/SkillWriteResult.js +1 -1
- package/dist/model/SlackBearerNotification.js +31 -8
- package/dist/model/SlackRoute.js +1 -1
- package/dist/model/SlackWebHookNotification.js +31 -8
- 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/{SkillCatalog.js → TwilioNotification.js} +66 -69
- package/dist/model/TwilioRoute.js +1 -1
- package/dist/model/UpdateFleetRequest.js +7 -6
- package/dist/model/UpdateHostFirmwareRequest.js +4 -4
- package/dist/model/UpdateProjectSecretRequest.js +3 -3
- package/dist/model/UploadMetadata.js +1 -1
- package/dist/model/UsageApiData.js +1 -1
- package/dist/model/UsageData.js +1 -1
- package/dist/model/UsageEventsData.js +1 -1
- package/dist/model/UsageEventsResponse.js +2 -2
- package/dist/model/UsageRouteLogsData.js +2 -2
- 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 +4 -4
- package/package.json +1 -1
- package/dist/api/BillingAccountApi.js +0 -167
- package/dist/model/GetBillingAccounts200Response.js +0 -111
- package/dist/model/GetEventsByCursor200Response.js +0 -157
- package/dist/model/LoginRequest.js +0 -103
package/dist/api/EventApi.js
CHANGED
|
@@ -7,7 +7,6 @@ exports["default"] = void 0;
|
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
var _Error = _interopRequireDefault(require("../model/Error"));
|
|
9
9
|
var _GetEvents200Response = _interopRequireDefault(require("../model/GetEvents200Response"));
|
|
10
|
-
var _GetEventsByCursor200Response = _interopRequireDefault(require("../model/GetEventsByCursor200Response"));
|
|
11
10
|
var _RouteLog = _interopRequireDefault(require("../model/RouteLog"));
|
|
12
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
13
12
|
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); }
|
|
@@ -30,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
30
29
|
/**
|
|
31
30
|
* Event service.
|
|
32
31
|
* @module api/EventApi
|
|
33
|
-
* @version 6.7.0-beta.
|
|
32
|
+
* @version 6.7.0-beta.80
|
|
34
33
|
*/
|
|
35
34
|
var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
35
|
/**
|
|
@@ -46,27 +45,28 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
46
45
|
}
|
|
47
46
|
|
|
48
47
|
/**
|
|
49
|
-
*
|
|
48
|
+
* List events in a project
|
|
49
|
+
* List a project's events, filtered by device, notefile, date, fleet, session and more. Use `cursor` to read events in the order Notehub stored them and to poll for new ones. Set `format=csv` for CSV. For one fleet, use `GetFleetEvents`. Paginated. Returns 403 if the organization is suspended, and 500 if the query times out; narrow the filters and retry.
|
|
50
50
|
* @param {String} projectOrProductUID
|
|
51
51
|
* @param {Object} opts Optional parameters
|
|
52
|
-
* @param {Number} opts.pageSize (default to
|
|
52
|
+
* @param {Number} opts.pageSize (default to 1000)
|
|
53
53
|
* @param {Number} opts.pageNum (default to 1)
|
|
54
|
-
* @param {String} opts.cursor If supplied,
|
|
55
|
-
* @param {Array.<String>} opts.deviceUID A
|
|
56
|
-
* @param {Array.<String>} opts.sensorUID
|
|
54
|
+
* @param {String} opts.cursor If supplied, results are returned in ascending order of modification time. A cursor is a timestamp: Unix epoch microseconds (UTC), optionally followed by `.N`. To start at a time, pass the bare microsecond value (inclusive; e.g. now minus 30 days); 0 starts from the beginning. To resume, pass next_cursor (or X-Next-Cursor) back unchanged; `.N` is the serial of the last row read at that microsecond, so nothing repeats or is skipped.
|
|
55
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
56
|
+
* @param {Array.<String>} opts.sensorUID SensorUID to filter by, matched exactly. Repeat for more than one.
|
|
57
57
|
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
58
58
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
59
59
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
60
60
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
61
|
-
* @param {module:model/String} opts.dateType Which
|
|
62
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
63
|
-
* @param {String} opts.files
|
|
64
|
-
* @param {module:model/String} opts.format Response format
|
|
65
|
-
* @param {Array.<String>} opts.serialNumber
|
|
66
|
-
* @param {Array.<String>} opts.fleetUID Filter by
|
|
67
|
-
* @param {Array.<String>} opts.sessionUID
|
|
68
|
-
* @param {Array.<String>} opts.eventUID
|
|
69
|
-
* @param {String} opts.selectFields Comma-separated
|
|
61
|
+
* @param {module:model/String} opts.dateType Which time `startDate` and `endDate` filter on. - `captured`: when the Notecard created the event - `uploaded`: when Notehub received it (default to 'captured')
|
|
62
|
+
* @param {Boolean} opts.systemFilesOnly If true, return only events from system notefiles, such as `_session.qo` and `_health.qo`.
|
|
63
|
+
* @param {String} opts.files Comma-separated notefiles, e.g. `data.qo,_health.qo`. Don't combine with `systemFilesOnly`.
|
|
64
|
+
* @param {module:model/String} opts.format Response format. - `json`: a JSON object with `events` - `csv`: CSV, with the columns in `selectFields` (default to 'json')
|
|
65
|
+
* @param {Array.<String>} opts.serialNumber Serial number to filter by. Repeat for more than one.
|
|
66
|
+
* @param {Array.<String>} opts.fleetUID Filter by FleetUID
|
|
67
|
+
* @param {Array.<String>} opts.sessionUID SessionUID to filter by. Repeat for more than one.
|
|
68
|
+
* @param {Array.<String>} opts.eventUID EventUID to filter by. Repeat for more than one.
|
|
69
|
+
* @param {String} opts.selectFields Comma-separated event fields to return, e.g. `device,when,body.temp`. Also sets the CSV columns.
|
|
70
70
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetEvents200Response} and HTTP response
|
|
71
71
|
*/
|
|
72
72
|
return _createClass(EventApi, [{
|
|
@@ -111,27 +111,28 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
/**
|
|
114
|
-
*
|
|
114
|
+
* List events in a project
|
|
115
|
+
* List a project's events, filtered by device, notefile, date, fleet, session and more. Use `cursor` to read events in the order Notehub stored them and to poll for new ones. Set `format=csv` for CSV. For one fleet, use `GetFleetEvents`. Paginated. Returns 403 if the organization is suspended, and 500 if the query times out; narrow the filters and retry.
|
|
115
116
|
* @param {String} projectOrProductUID
|
|
116
117
|
* @param {Object} opts Optional parameters
|
|
117
|
-
* @param {Number} opts.pageSize (default to
|
|
118
|
+
* @param {Number} opts.pageSize (default to 1000)
|
|
118
119
|
* @param {Number} opts.pageNum (default to 1)
|
|
119
|
-
* @param {String} opts.cursor If supplied,
|
|
120
|
-
* @param {Array.<String>} opts.deviceUID A
|
|
121
|
-
* @param {Array.<String>} opts.sensorUID
|
|
120
|
+
* @param {String} opts.cursor If supplied, results are returned in ascending order of modification time. A cursor is a timestamp: Unix epoch microseconds (UTC), optionally followed by `.N`. To start at a time, pass the bare microsecond value (inclusive; e.g. now minus 30 days); 0 starts from the beginning. To resume, pass next_cursor (or X-Next-Cursor) back unchanged; `.N` is the serial of the last row read at that microsecond, so nothing repeats or is skipped.
|
|
121
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
122
|
+
* @param {Array.<String>} opts.sensorUID SensorUID to filter by, matched exactly. Repeat for more than one.
|
|
122
123
|
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
123
124
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
124
125
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
125
126
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
126
|
-
* @param {module:model/String} opts.dateType Which
|
|
127
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
128
|
-
* @param {String} opts.files
|
|
129
|
-
* @param {module:model/String} opts.format Response format
|
|
130
|
-
* @param {Array.<String>} opts.serialNumber
|
|
131
|
-
* @param {Array.<String>} opts.fleetUID Filter by
|
|
132
|
-
* @param {Array.<String>} opts.sessionUID
|
|
133
|
-
* @param {Array.<String>} opts.eventUID
|
|
134
|
-
* @param {String} opts.selectFields Comma-separated
|
|
127
|
+
* @param {module:model/String} opts.dateType Which time `startDate` and `endDate` filter on. - `captured`: when the Notecard created the event - `uploaded`: when Notehub received it (default to 'captured')
|
|
128
|
+
* @param {Boolean} opts.systemFilesOnly If true, return only events from system notefiles, such as `_session.qo` and `_health.qo`.
|
|
129
|
+
* @param {String} opts.files Comma-separated notefiles, e.g. `data.qo,_health.qo`. Don't combine with `systemFilesOnly`.
|
|
130
|
+
* @param {module:model/String} opts.format Response format. - `json`: a JSON object with `events` - `csv`: CSV, with the columns in `selectFields` (default to 'json')
|
|
131
|
+
* @param {Array.<String>} opts.serialNumber Serial number to filter by. Repeat for more than one.
|
|
132
|
+
* @param {Array.<String>} opts.fleetUID Filter by FleetUID
|
|
133
|
+
* @param {Array.<String>} opts.sessionUID SessionUID to filter by. Repeat for more than one.
|
|
134
|
+
* @param {Array.<String>} opts.eventUID EventUID to filter by. Repeat for more than one.
|
|
135
|
+
* @param {String} opts.selectFields Comma-separated event fields to return, e.g. `device,when,body.temp`. Also sets the CSV columns.
|
|
135
136
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetEvents200Response}
|
|
136
137
|
*/
|
|
137
138
|
}, {
|
|
@@ -143,94 +144,28 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
143
144
|
}
|
|
144
145
|
|
|
145
146
|
/**
|
|
146
|
-
*
|
|
147
|
-
*
|
|
148
|
-
* @param {Object} opts Optional parameters
|
|
149
|
-
* @param {Number} opts.limit Maximum number of events to return. (default to 50)
|
|
150
|
-
* @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
|
|
151
|
-
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
152
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
153
|
-
* @param {String} opts.files
|
|
154
|
-
* @param {String} opts.fleetUID
|
|
155
|
-
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
156
|
-
* @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.
|
|
157
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetEventsByCursor200Response} and HTTP response
|
|
158
|
-
*/
|
|
159
|
-
}, {
|
|
160
|
-
key: "getEventsByCursorWithHttpInfo",
|
|
161
|
-
value: function getEventsByCursorWithHttpInfo(projectOrProductUID, opts) {
|
|
162
|
-
opts = opts || {};
|
|
163
|
-
var postBody = null;
|
|
164
|
-
// verify the required parameter 'projectOrProductUID' is set
|
|
165
|
-
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
166
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getEventsByCursor");
|
|
167
|
-
}
|
|
168
|
-
var pathParams = {
|
|
169
|
-
projectOrProductUID: projectOrProductUID
|
|
170
|
-
};
|
|
171
|
-
var queryParams = {
|
|
172
|
-
limit: opts["limit"],
|
|
173
|
-
cursor: opts["cursor"],
|
|
174
|
-
sortOrder: opts["sortOrder"],
|
|
175
|
-
systemFilesOnly: opts["systemFilesOnly"],
|
|
176
|
-
files: opts["files"],
|
|
177
|
-
fleetUID: opts["fleetUID"],
|
|
178
|
-
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
179
|
-
sensorUID: this.apiClient.buildCollectionParam(opts["sensorUID"], "multi")
|
|
180
|
-
};
|
|
181
|
-
var headerParams = {};
|
|
182
|
-
var formParams = {};
|
|
183
|
-
var authNames = ["personalAccessToken"];
|
|
184
|
-
var contentTypes = [];
|
|
185
|
-
var accepts = ["application/json"];
|
|
186
|
-
var returnType = _GetEventsByCursor200Response["default"];
|
|
187
|
-
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/events-cursor", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* DEPRECATED: Use Get Events of a Project instead with the cursor parameter.
|
|
192
|
-
* @param {String} projectOrProductUID
|
|
193
|
-
* @param {Object} opts Optional parameters
|
|
194
|
-
* @param {Number} opts.limit Maximum number of events to return. (default to 50)
|
|
195
|
-
* @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
|
|
196
|
-
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
197
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
198
|
-
* @param {String} opts.files
|
|
199
|
-
* @param {String} opts.fleetUID
|
|
200
|
-
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
201
|
-
* @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.
|
|
202
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetEventsByCursor200Response}
|
|
203
|
-
*/
|
|
204
|
-
}, {
|
|
205
|
-
key: "getEventsByCursor",
|
|
206
|
-
value: function getEventsByCursor(projectOrProductUID, opts) {
|
|
207
|
-
return this.getEventsByCursorWithHttpInfo(projectOrProductUID, opts).then(function (response_and_data) {
|
|
208
|
-
return response_and_data.data;
|
|
209
|
-
});
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
/**
|
|
213
|
-
* Get Events of a Fleet
|
|
147
|
+
* List events in a fleet
|
|
148
|
+
* List the events from one fleet, with the same filters, `cursor` and CSV output as `GetEvents`. Paginated. Returns 403 if the organization is suspended, and 500 if the query times out; narrow the filters and retry.
|
|
214
149
|
* @param {String} projectOrProductUID
|
|
215
150
|
* @param {String} fleetUID
|
|
216
151
|
* @param {Object} opts Optional parameters
|
|
217
|
-
* @param {Number} opts.pageSize (default to
|
|
152
|
+
* @param {Number} opts.pageSize (default to 1000)
|
|
218
153
|
* @param {Number} opts.pageNum (default to 1)
|
|
219
|
-
* @param {String} opts.cursor If supplied,
|
|
220
|
-
* @param {Array.<String>} opts.deviceUID A
|
|
221
|
-
* @param {Array.<String>} opts.sensorUID
|
|
154
|
+
* @param {String} opts.cursor If supplied, results are returned in ascending order of modification time. A cursor is a timestamp: Unix epoch microseconds (UTC), optionally followed by `.N`. To start at a time, pass the bare microsecond value (inclusive; e.g. now minus 30 days); 0 starts from the beginning. To resume, pass next_cursor (or X-Next-Cursor) back unchanged; `.N` is the serial of the last row read at that microsecond, so nothing repeats or is skipped.
|
|
155
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
156
|
+
* @param {Array.<String>} opts.sensorUID SensorUID to filter by, matched exactly. Repeat for more than one.
|
|
222
157
|
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
223
158
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
224
159
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
225
160
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
226
|
-
* @param {module:model/String} opts.dateType Which
|
|
227
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
228
|
-
* @param {String} opts.files
|
|
229
|
-
* @param {module:model/String} opts.format Response format
|
|
230
|
-
* @param {Array.<String>} opts.serialNumber
|
|
231
|
-
* @param {Array.<String>} opts.sessionUID
|
|
232
|
-
* @param {Array.<String>} opts.eventUID
|
|
233
|
-
* @param {String} opts.selectFields Comma-separated
|
|
161
|
+
* @param {module:model/String} opts.dateType Which time `startDate` and `endDate` filter on. - `captured`: when the Notecard created the event - `uploaded`: when Notehub received it (default to 'captured')
|
|
162
|
+
* @param {Boolean} opts.systemFilesOnly If true, return only events from system notefiles, such as `_session.qo` and `_health.qo`.
|
|
163
|
+
* @param {String} opts.files Comma-separated notefiles, e.g. `data.qo,_health.qo`. Don't combine with `systemFilesOnly`.
|
|
164
|
+
* @param {module:model/String} opts.format Response format. - `json`: a JSON object with `events` - `csv`: CSV, with the columns in `selectFields` (default to 'json')
|
|
165
|
+
* @param {Array.<String>} opts.serialNumber Serial number to filter by. Repeat for more than one.
|
|
166
|
+
* @param {Array.<String>} opts.sessionUID SessionUID to filter by. Repeat for more than one.
|
|
167
|
+
* @param {Array.<String>} opts.eventUID EventUID to filter by. Repeat for more than one.
|
|
168
|
+
* @param {String} opts.selectFields Comma-separated event fields to return, e.g. `device,when,body.temp`. Also sets the CSV columns.
|
|
234
169
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetEvents200Response} and HTTP response
|
|
235
170
|
*/
|
|
236
171
|
}, {
|
|
@@ -279,27 +214,28 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
279
214
|
}
|
|
280
215
|
|
|
281
216
|
/**
|
|
282
|
-
*
|
|
217
|
+
* List events in a fleet
|
|
218
|
+
* List the events from one fleet, with the same filters, `cursor` and CSV output as `GetEvents`. Paginated. Returns 403 if the organization is suspended, and 500 if the query times out; narrow the filters and retry.
|
|
283
219
|
* @param {String} projectOrProductUID
|
|
284
220
|
* @param {String} fleetUID
|
|
285
221
|
* @param {Object} opts Optional parameters
|
|
286
|
-
* @param {Number} opts.pageSize (default to
|
|
222
|
+
* @param {Number} opts.pageSize (default to 1000)
|
|
287
223
|
* @param {Number} opts.pageNum (default to 1)
|
|
288
|
-
* @param {String} opts.cursor If supplied,
|
|
289
|
-
* @param {Array.<String>} opts.deviceUID A
|
|
290
|
-
* @param {Array.<String>} opts.sensorUID
|
|
224
|
+
* @param {String} opts.cursor If supplied, results are returned in ascending order of modification time. A cursor is a timestamp: Unix epoch microseconds (UTC), optionally followed by `.N`. To start at a time, pass the bare microsecond value (inclusive; e.g. now minus 30 days); 0 starts from the beginning. To resume, pass next_cursor (or X-Next-Cursor) back unchanged; `.N` is the serial of the last row read at that microsecond, so nothing repeats or is skipped.
|
|
225
|
+
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
226
|
+
* @param {Array.<String>} opts.sensorUID SensorUID to filter by, matched exactly. Repeat for more than one.
|
|
291
227
|
* @param {module:model/String} opts.sortBy (default to 'captured')
|
|
292
228
|
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
293
229
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
294
230
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
295
|
-
* @param {module:model/String} opts.dateType Which
|
|
296
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
297
|
-
* @param {String} opts.files
|
|
298
|
-
* @param {module:model/String} opts.format Response format
|
|
299
|
-
* @param {Array.<String>} opts.serialNumber
|
|
300
|
-
* @param {Array.<String>} opts.sessionUID
|
|
301
|
-
* @param {Array.<String>} opts.eventUID
|
|
302
|
-
* @param {String} opts.selectFields Comma-separated
|
|
231
|
+
* @param {module:model/String} opts.dateType Which time `startDate` and `endDate` filter on. - `captured`: when the Notecard created the event - `uploaded`: when Notehub received it (default to 'captured')
|
|
232
|
+
* @param {Boolean} opts.systemFilesOnly If true, return only events from system notefiles, such as `_session.qo` and `_health.qo`.
|
|
233
|
+
* @param {String} opts.files Comma-separated notefiles, e.g. `data.qo,_health.qo`. Don't combine with `systemFilesOnly`.
|
|
234
|
+
* @param {module:model/String} opts.format Response format. - `json`: a JSON object with `events` - `csv`: CSV, with the columns in `selectFields` (default to 'json')
|
|
235
|
+
* @param {Array.<String>} opts.serialNumber Serial number to filter by. Repeat for more than one.
|
|
236
|
+
* @param {Array.<String>} opts.sessionUID SessionUID to filter by. Repeat for more than one.
|
|
237
|
+
* @param {Array.<String>} opts.eventUID EventUID to filter by. Repeat for more than one.
|
|
238
|
+
* @param {String} opts.selectFields Comma-separated event fields to return, e.g. `device,when,body.temp`. Also sets the CSV columns.
|
|
303
239
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetEvents200Response}
|
|
304
240
|
*/
|
|
305
241
|
}, {
|
|
@@ -311,86 +247,10 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
311
247
|
}
|
|
312
248
|
|
|
313
249
|
/**
|
|
314
|
-
*
|
|
315
|
-
*
|
|
316
|
-
* @param {String} fleetUID
|
|
317
|
-
* @param {Object} opts Optional parameters
|
|
318
|
-
* @param {Number} opts.limit Maximum number of events to return. (default to 50)
|
|
319
|
-
* @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
|
|
320
|
-
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
321
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
322
|
-
* @param {String} opts.files
|
|
323
|
-
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
324
|
-
* @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.
|
|
325
|
-
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
326
|
-
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
327
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetEventsByCursor200Response} and HTTP response
|
|
328
|
-
*/
|
|
329
|
-
}, {
|
|
330
|
-
key: "getFleetEventsByCursorWithHttpInfo",
|
|
331
|
-
value: function getFleetEventsByCursorWithHttpInfo(projectOrProductUID, fleetUID, opts) {
|
|
332
|
-
opts = opts || {};
|
|
333
|
-
var postBody = null;
|
|
334
|
-
// verify the required parameter 'projectOrProductUID' is set
|
|
335
|
-
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
336
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getFleetEventsByCursor");
|
|
337
|
-
}
|
|
338
|
-
// verify the required parameter 'fleetUID' is set
|
|
339
|
-
if (fleetUID === undefined || fleetUID === null) {
|
|
340
|
-
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEventsByCursor");
|
|
341
|
-
}
|
|
342
|
-
var pathParams = {
|
|
343
|
-
projectOrProductUID: projectOrProductUID,
|
|
344
|
-
fleetUID: fleetUID
|
|
345
|
-
};
|
|
346
|
-
var queryParams = {
|
|
347
|
-
limit: opts["limit"],
|
|
348
|
-
cursor: opts["cursor"],
|
|
349
|
-
sortOrder: opts["sortOrder"],
|
|
350
|
-
systemFilesOnly: opts["systemFilesOnly"],
|
|
351
|
-
files: opts["files"],
|
|
352
|
-
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
353
|
-
sensorUID: this.apiClient.buildCollectionParam(opts["sensorUID"], "multi"),
|
|
354
|
-
startDate: opts["startDate"],
|
|
355
|
-
endDate: opts["endDate"]
|
|
356
|
-
};
|
|
357
|
-
var headerParams = {};
|
|
358
|
-
var formParams = {};
|
|
359
|
-
var authNames = ["personalAccessToken"];
|
|
360
|
-
var contentTypes = [];
|
|
361
|
-
var accepts = ["application/json"];
|
|
362
|
-
var returnType = _GetEventsByCursor200Response["default"];
|
|
363
|
-
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/events-cursor", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
/**
|
|
367
|
-
* DEPRECATED: Use Get Events of a Fleet instead with the cursor parameter.
|
|
368
|
-
* @param {String} projectOrProductUID
|
|
369
|
-
* @param {String} fleetUID
|
|
370
|
-
* @param {Object} opts Optional parameters
|
|
371
|
-
* @param {Number} opts.limit Maximum number of events to return. (default to 50)
|
|
372
|
-
* @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
|
|
373
|
-
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
374
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
375
|
-
* @param {String} opts.files
|
|
376
|
-
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
377
|
-
* @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.
|
|
378
|
-
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
379
|
-
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
380
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetEventsByCursor200Response}
|
|
381
|
-
*/
|
|
382
|
-
}, {
|
|
383
|
-
key: "getFleetEventsByCursor",
|
|
384
|
-
value: function getFleetEventsByCursor(projectOrProductUID, fleetUID, opts) {
|
|
385
|
-
return this.getFleetEventsByCursorWithHttpInfo(projectOrProductUID, fleetUID, opts).then(function (response_and_data) {
|
|
386
|
-
return response_and_data.data;
|
|
387
|
-
});
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
/**
|
|
391
|
-
* Get Route Logs by Event UID
|
|
250
|
+
* Get an event's route logs
|
|
251
|
+
* Get the log of every attempt to send one event to each route, with the response status, body and duration. For a route's logs across events, use `GetRouteLogsByRoute`. Returns 404 if the event doesn't exist.
|
|
392
252
|
* @param {String} projectOrProductUID
|
|
393
|
-
* @param {String} eventUID
|
|
253
|
+
* @param {String} eventUID EventUID, e.g. `4506f411-dea6-44a0-9743-1130f57d7747`.
|
|
394
254
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/RouteLog>} and HTTP response
|
|
395
255
|
*/
|
|
396
256
|
}, {
|
|
@@ -420,9 +280,10 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
420
280
|
}
|
|
421
281
|
|
|
422
282
|
/**
|
|
423
|
-
* Get
|
|
283
|
+
* Get an event's route logs
|
|
284
|
+
* Get the log of every attempt to send one event to each route, with the response status, body and duration. For a route's logs across events, use `GetRouteLogsByRoute`. Returns 404 if the event doesn't exist.
|
|
424
285
|
* @param {String} projectOrProductUID
|
|
425
|
-
* @param {String} eventUID
|
|
286
|
+
* @param {String} eventUID EventUID, e.g. `4506f411-dea6-44a0-9743-1130f57d7747`.
|
|
426
287
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/RouteLog>}
|
|
427
288
|
*/
|
|
428
289
|
}, {
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* ExternalDevices service.
|
|
31
31
|
* @module api/ExternalDevicesApi
|
|
32
|
-
* @version 6.7.0-beta.
|
|
32
|
+
* @version 6.7.0-beta.80
|
|
33
33
|
*/
|
|
34
34
|
var ExternalDevicesApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -45,10 +45,11 @@ var ExternalDevicesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* Add an event from an external device
|
|
49
|
+
* Add an event from a device that isn't a Notecard, adding the device to the project if it's new. The DeviceUID is lower-cased and gets `dev:ext:` unless it has its own sub-prefix, so `dev:123` becomes `dev:ext:123`. Notehub sets `when` to the current time and adds `.qo` to a `file` with no extension. Requires the Owner or Developer role.
|
|
49
50
|
* @param {String} productUID
|
|
50
51
|
* @param {String} deviceUID
|
|
51
|
-
* @param {module:model/Event} event
|
|
52
|
+
* @param {module:model/Event} event The event. `file`, `body` and `payload` are the usual fields.
|
|
52
53
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
53
54
|
*/
|
|
54
55
|
return _createClass(ExternalDevicesApi, [{
|
|
@@ -82,10 +83,11 @@ var ExternalDevicesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
82
83
|
}
|
|
83
84
|
|
|
84
85
|
/**
|
|
85
|
-
*
|
|
86
|
+
* Add an event from an external device
|
|
87
|
+
* Add an event from a device that isn't a Notecard, adding the device to the project if it's new. The DeviceUID is lower-cased and gets `dev:ext:` unless it has its own sub-prefix, so `dev:123` becomes `dev:ext:123`. Notehub sets `when` to the current time and adds `.qo` to a `file` with no extension. Requires the Owner or Developer role.
|
|
86
88
|
* @param {String} productUID
|
|
87
89
|
* @param {String} deviceUID
|
|
88
|
-
* @param {module:model/Event} event
|
|
90
|
+
* @param {module:model/Event} event The event. `file`, `body` and `payload` are the usual fields.
|
|
89
91
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
90
92
|
*/
|
|
91
93
|
}, {
|
|
@@ -97,10 +99,11 @@ var ExternalDevicesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
97
99
|
}
|
|
98
100
|
|
|
99
101
|
/**
|
|
100
|
-
*
|
|
102
|
+
* Close an external device's session
|
|
103
|
+
* Close an external device's session, if one is open, adding the device if it's new. The DeviceUID gets `dev:ext:` as in `CreateEventExtDevice`. Requires the Owner or Developer role.
|
|
101
104
|
* @param {String} productUID
|
|
102
105
|
* @param {String} deviceUID
|
|
103
|
-
* @param {module:model/DeviceSession} deviceSession Session
|
|
106
|
+
* @param {module:model/DeviceSession} deviceSession Session fields, such as `why_session_opened` or `why_session_closed`.
|
|
104
107
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
105
108
|
*/
|
|
106
109
|
}, {
|
|
@@ -134,10 +137,11 @@ var ExternalDevicesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
134
137
|
}
|
|
135
138
|
|
|
136
139
|
/**
|
|
137
|
-
*
|
|
140
|
+
* Close an external device's session
|
|
141
|
+
* Close an external device's session, if one is open, adding the device if it's new. The DeviceUID gets `dev:ext:` as in `CreateEventExtDevice`. Requires the Owner or Developer role.
|
|
138
142
|
* @param {String} productUID
|
|
139
143
|
* @param {String} deviceUID
|
|
140
|
-
* @param {module:model/DeviceSession} deviceSession Session
|
|
144
|
+
* @param {module:model/DeviceSession} deviceSession Session fields, such as `why_session_opened` or `why_session_closed`.
|
|
141
145
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
142
146
|
*/
|
|
143
147
|
}, {
|
|
@@ -149,10 +153,11 @@ var ExternalDevicesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
149
153
|
}
|
|
150
154
|
|
|
151
155
|
/**
|
|
152
|
-
*
|
|
156
|
+
* Open an external device's session
|
|
157
|
+
* Open a session for an external device, adding the device if it's new. An open session is closed first, with `why_session_closed` as the reason. The DeviceUID gets `dev:ext:` as in `CreateEventExtDevice`. Requires the Owner or Developer role. Returns 500 if webhooks are disabled for the project.
|
|
153
158
|
* @param {String} productUID
|
|
154
159
|
* @param {String} deviceUID
|
|
155
|
-
* @param {module:model/DeviceSession} deviceSession Session
|
|
160
|
+
* @param {module:model/DeviceSession} deviceSession Session fields, such as `why_session_opened` or `why_session_closed`.
|
|
156
161
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
157
162
|
*/
|
|
158
163
|
}, {
|
|
@@ -186,10 +191,11 @@ var ExternalDevicesApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
186
191
|
}
|
|
187
192
|
|
|
188
193
|
/**
|
|
189
|
-
*
|
|
194
|
+
* Open an external device's session
|
|
195
|
+
* Open a session for an external device, adding the device if it's new. An open session is closed first, with `why_session_closed` as the reason. The DeviceUID gets `dev:ext:` as in `CreateEventExtDevice`. Requires the Owner or Developer role. Returns 500 if webhooks are disabled for the project.
|
|
190
196
|
* @param {String} productUID
|
|
191
197
|
* @param {String} deviceUID
|
|
192
|
-
* @param {module:model/DeviceSession} deviceSession Session
|
|
198
|
+
* @param {module:model/DeviceSession} deviceSession Session fields, such as `why_session_opened` or `why_session_closed`.
|
|
193
199
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
194
200
|
*/
|
|
195
201
|
}, {
|