@blues-inc/notehub-js 6.7.0 → 7.0.0-beta.1
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 +156 -152
- package/dist/ApiClient.js +3 -3
- package/dist/api/AlertApi.js +17 -12
- package/dist/api/AuthorizationApi.js +12 -51
- package/dist/api/DescriptionApi.js +58 -42
- package/dist/api/DeviceApi.js +434 -291
- package/dist/api/EventApi.js +88 -221
- package/dist/api/ExternalDevicesApi.js +32 -26
- package/dist/api/JobsApi.js +76 -58
- package/dist/api/MonitorApi.js +38 -28
- package/dist/api/OrganizationApi.js +26 -20
- package/dist/api/ProjectApi.js +424 -330
- package/dist/api/RouteApi.js +69 -54
- package/dist/api/SkillsApi.js +279 -0
- package/dist/api/UsageApi.js +84 -74
- package/dist/api/WebhookApi.js +96 -74
- package/dist/index.js +91 -63
- package/dist/model/AWSRoleConfig.js +2 -2
- package/dist/model/AddDeviceToFleetsRequest.js +4 -4
- package/dist/model/Alert.js +17 -10
- package/dist/model/AlertDataInner.js +10 -5
- package/dist/model/AlertNotificationsInner.js +15 -5
- package/dist/model/ArchiveStats.js +2 -2
- package/dist/model/AwsRoute.js +15 -3
- package/dist/model/AzureRoute.js +9 -2
- package/dist/model/BatchJobNoteRequest.js +2 -2
- package/dist/model/BatchJobRequests.js +7 -6
- package/dist/model/BillingAccount.js +6 -4
- package/dist/model/BillingAccountRole.js +1 -1
- package/dist/model/BlynkRoute.js +7 -2
- package/dist/model/Body.js +3 -2
- package/dist/model/CancelJobRun200Response.js +2 -2
- package/dist/model/CellularPlan.js +4 -3
- package/dist/model/CloneProjectRequest.js +8 -8
- package/dist/model/Contact.js +6 -2
- package/dist/model/CreateFleetRequest.js +5 -4
- package/dist/model/CreateJob201Response.js +2 -2
- package/dist/model/CreateMonitor.js +38 -26
- package/dist/model/CreateProductRequest.js +8 -7
- package/dist/model/CreateProjectRequest.js +6 -6
- package/dist/model/CreateProjectSecretRequest.js +6 -6
- package/dist/model/CreateUpdateRepository.js +4 -2
- package/dist/model/CreatedRepository.js +6 -6
- package/dist/model/CurrentFirmware.js +2 -2
- package/dist/model/DFUEnv.js +2 -2
- package/dist/model/DFUState.js +3 -2
- package/dist/model/DataField.js +2 -2
- package/dist/model/DataSet.js +6 -5
- package/dist/model/DataSetField.js +3 -3
- package/dist/model/DataUsage.js +2 -2
- package/dist/model/DatacakeRoute.js +8 -2
- package/dist/model/DatasetReloadProgress.js +2 -2
- package/dist/model/DeleteDeviceFromFleetsRequest.js +4 -4
- package/dist/model/DeleteJob200Response.js +2 -2
- package/dist/model/DeleteNotefilesRequest.js +3 -3
- package/dist/model/DescriptionRecord.js +7 -7
- package/dist/model/DescriptionRecordList.js +4 -3
- package/dist/model/Device.js +37 -9
- package/dist/model/DeviceDfuHistory.js +13 -3
- package/dist/model/DeviceDfuHistoryCurrent.js +3 -3
- package/dist/model/DeviceDfuHistoryPage.js +17 -2
- package/dist/model/DeviceDfuStateMachine.js +3 -2
- package/dist/model/DeviceDfuStateMachineNode.js +3 -3
- package/dist/model/DeviceDfuStatus.js +13 -4
- package/dist/model/DeviceDfuStatusPage.js +17 -2
- package/dist/model/DeviceSensor.js +2 -2
- package/dist/model/DeviceSession.js +38 -6
- package/dist/model/DeviceTowerInfo.js +7 -2
- package/dist/model/DeviceUsage.js +8 -2
- package/dist/model/DfuActionRequest.js +3 -3
- package/dist/model/EmailNotification.js +30 -7
- package/dist/model/EnvTreeJsonNode.js +18 -7
- package/dist/model/EnvVar.js +6 -2
- package/dist/model/EnvironmentVariables.js +4 -3
- package/dist/model/Error.js +5 -2
- package/dist/model/Event.js +17 -8
- package/dist/model/Filter.js +6 -6
- package/dist/model/Firmware.js +2 -2
- package/dist/model/FirmwareInfo.js +7 -7
- package/dist/model/Fleet.js +12 -11
- package/dist/model/FleetConnectivityAssurance.js +2 -2
- package/dist/model/GetAlerts200Response.js +15 -2
- package/dist/model/GetApiUsage200Response.js +3 -3
- package/dist/model/GetDataUsage200Response.js +3 -3
- package/dist/model/GetDataUsage200ResponseDataInner.js +4 -4
- package/dist/model/GetDbNote200Response.js +2 -2
- package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +2 -2
- package/dist/model/GetDeviceFleets200Response.js +2 -2
- package/dist/model/GetDeviceHealthLog200Response.js +2 -2
- package/dist/model/GetDeviceJourney200Response.js +2 -2
- package/dist/model/GetDeviceJourney200ResponseJourney.js +2 -2
- package/dist/model/GetDeviceJourneys200Response.js +2 -2
- package/dist/model/GetDeviceJourneys200ResponseJourneysInner.js +2 -2
- package/dist/model/GetDeviceLatestEvents200Response.js +3 -3
- package/dist/model/GetDevicePlans200Response.js +3 -2
- package/dist/model/GetDevicePublicKey200Response.js +6 -4
- package/dist/model/GetDevicePublicKeys200Response.js +15 -2
- package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +13 -2
- package/dist/model/GetDeviceSessions200Response.js +15 -2
- package/dist/model/GetDevices200Response.js +15 -2
- package/dist/model/GetEvents200Response.js +15 -2
- package/dist/model/GetJobRuns200Response.js +2 -2
- package/dist/model/GetJobs200Response.js +2 -2
- package/dist/model/GetNotefile200Response.js +2 -2
- package/dist/model/{GetBillingAccount200Response.js → GetOrganization200Response.js} +29 -29
- package/dist/model/{GetBillingAccount200ResponsePlan.js → GetOrganization200ResponsePlan.js} +25 -25
- package/dist/model/{GetBillingAccountBalanceHistory200Response.js → GetOrganizationBalanceHistory200Response.js} +23 -23
- package/dist/model/{GetBillingAccountBalanceHistory200ResponseDataInner.js → GetOrganizationBalanceHistory200ResponseDataInner.js} +23 -23
- package/dist/model/GetOrganizations200Response.js +2 -2
- package/dist/model/GetProducts200Response.js +2 -2
- package/dist/model/GetProjectMembers200Response.js +2 -2
- package/dist/model/GetProjectSecretsResponse.js +4 -3
- package/dist/model/GetProjects200Response.js +2 -2
- package/dist/model/GetRouteLogsUsage200Response.js +3 -3
- package/dist/model/GetSessionsUsage200Response.js +4 -4
- package/dist/model/GetWebhooks200Response.js +2 -2
- package/dist/model/GoogleRoute.js +7 -2
- package/dist/model/HealthLog.js +8 -5
- package/dist/model/HttpRoute.js +8 -3
- package/dist/model/Job.js +2 -2
- package/dist/model/JobDefinition.js +3 -3
- package/dist/model/JobDefinitionReportOptions.js +3 -2
- package/dist/model/JobDefinitionSelect.js +5 -4
- package/dist/model/JobDetail.js +2 -2
- package/dist/model/JobDetailAllOf.js +2 -2
- package/dist/model/JobRun.js +2 -2
- package/dist/model/Location.js +14 -8
- package/dist/model/Monitor.js +19 -13
- package/dist/model/MonitorAlertRoutesInner.js +61 -15
- package/dist/model/MqttRoute.js +15 -2
- package/dist/model/Note.js +3 -3
- package/dist/model/NoteInput.js +2 -2
- package/dist/model/Notefile.js +5 -3
- package/dist/model/NotefileSchema.js +6 -4
- package/dist/model/NotehubRoute.js +8 -4
- package/dist/model/NotehubRouteSummary.js +7 -2
- package/dist/model/OAuth2Error.js +2 -2
- package/dist/model/OAuth2TokenResponse.js +2 -2
- package/dist/model/Organization.js +6 -4
- package/dist/model/OrganizationRole.js +1 -1
- package/dist/model/Product.js +9 -5
- package/dist/model/Project.js +8 -5
- package/dist/model/ProjectMember.js +6 -5
- package/dist/model/ProjectSecret.js +8 -8
- package/dist/model/ProvisionDeviceRequest.js +6 -6
- package/dist/model/ProxyRoute.js +7 -2
- package/dist/model/QubitroRoute.js +8 -2
- package/dist/model/RadRoute.js +10 -2
- package/dist/model/Repository.js +4 -4
- package/dist/model/RepositoryListResponse.js +4 -3
- package/dist/model/RepositoryRecord.js +119 -0
- package/dist/model/RepositoryTokenRequest.js +2 -2
- package/dist/model/RepositoryTokenResponse.js +2 -2
- package/dist/model/Role.js +1 -1
- package/dist/model/RouteLog.js +10 -10
- package/dist/model/RouteTransformSettings.js +6 -6
- package/dist/model/RunJob200Response.js +2 -2
- package/dist/model/S3ArchiveRoute.js +17 -2
- package/dist/model/SatelliteDataUsage.js +2 -2
- package/dist/model/SatellitePlan.js +2 -2
- package/dist/model/SchemaProperty.js +7 -5
- package/dist/model/SignalDevice200Response.js +3 -3
- package/dist/model/SimUsage.js +2 -2
- package/dist/model/Skill.js +210 -0
- package/dist/model/{GetBillingAccounts200Response.js → SkillLinks.js} +60 -41
- package/dist/model/SkillSet.js +185 -0
- package/dist/model/SkillSummary.js +208 -0
- package/dist/model/SkillWrite.js +128 -0
- package/dist/model/{GetEventsByCursor200Response.js → SkillWriteResult.js} +62 -65
- package/dist/model/SlackBearerNotification.js +32 -9
- package/dist/model/SlackRoute.js +10 -2
- package/dist/model/SlackWebHookNotification.js +32 -9
- package/dist/model/SnowflakeRoute.js +10 -2
- package/dist/model/SnowpipeStreamingRoute.js +13 -2
- package/dist/model/ThingworxRoute.js +7 -2
- package/dist/model/TowerLocation.js +2 -2
- package/dist/model/TwilioNotification.js +167 -0
- package/dist/model/TwilioRoute.js +10 -2
- package/dist/model/UpdateFleetRequest.js +8 -7
- package/dist/model/UpdateHostFirmwareRequest.js +5 -5
- package/dist/model/UpdateProjectSecretRequest.js +4 -4
- package/dist/model/UploadMetadata.js +2 -2
- package/dist/model/UsageApiData.js +4 -3
- package/dist/model/UsageData.js +8 -4
- package/dist/model/UsageEventsData.js +6 -3
- package/dist/model/UsageEventsResponse.js +5 -4
- package/dist/model/UsageRouteLogsData.js +11 -7
- package/dist/model/UsageSessionsData.js +12 -6
- package/dist/model/UserDfuStateMachine.js +2 -2
- package/dist/model/UserDfuStateMachineStatus.js +2 -2
- package/dist/model/UserFirmwareInfo.js +2 -2
- package/dist/model/WebhookSettings.js +5 -5
- package/package.json +1 -1
- package/dist/api/BillingAccountApi.js +0 -167
- package/dist/model/Login200Response.js +0 -91
- package/dist/model/LoginRequest.js +0 -103
package/dist/api/UsageApi.js
CHANGED
|
@@ -17,7 +17,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
|
|
|
17
17
|
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); } }
|
|
18
18
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
19
19
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
20
|
-
function _toPrimitive(t,
|
|
20
|
+
function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
|
|
21
21
|
* Notehub API
|
|
22
22
|
* The OpenAPI definition for the Notehub.io API.
|
|
23
23
|
*
|
|
@@ -32,7 +32,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
32
32
|
/**
|
|
33
33
|
* Usage service.
|
|
34
34
|
* @module api/UsageApi
|
|
35
|
-
* @version
|
|
35
|
+
* @version 7.0.0-beta.1
|
|
36
36
|
*/
|
|
37
37
|
var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
38
38
|
/**
|
|
@@ -48,13 +48,14 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
|
-
* Get billable
|
|
52
|
-
*
|
|
53
|
-
* @param {
|
|
51
|
+
* Get billable API usage
|
|
52
|
+
* Count a project's billable Notehub API requests per day, week or month, by endpoint. Only requests billed against the project's plan are counted. Returns 400 if `startDate` is after `endDate`.
|
|
53
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
54
|
+
* @param {module:model/String} period The length of time each data point covers.
|
|
54
55
|
* @param {Object} opts Optional parameters
|
|
55
56
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
56
57
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
57
|
-
* @param {Number} opts.limit
|
|
58
|
+
* @param {Number} opts.limit The most data points to return. If there are more, `truncated` is true. (default to 200000)
|
|
58
59
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetApiUsage200Response} and HTTP response
|
|
59
60
|
*/
|
|
60
61
|
return _createClass(UsageApi, [{
|
|
@@ -89,13 +90,14 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
89
90
|
}
|
|
90
91
|
|
|
91
92
|
/**
|
|
92
|
-
* Get billable
|
|
93
|
-
*
|
|
94
|
-
* @param {
|
|
93
|
+
* Get billable API usage
|
|
94
|
+
* Count a project's billable Notehub API requests per day, week or month, by endpoint. Only requests billed against the project's plan are counted. Returns 400 if `startDate` is after `endDate`.
|
|
95
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
96
|
+
* @param {module:model/String} period The length of time each data point covers.
|
|
95
97
|
* @param {Object} opts Optional parameters
|
|
96
98
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
97
99
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
98
|
-
* @param {Number} opts.limit
|
|
100
|
+
* @param {Number} opts.limit The most data points to return. If there are more, `truncated` is true. (default to 200000)
|
|
99
101
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetApiUsage200Response}
|
|
100
102
|
*/
|
|
101
103
|
}, {
|
|
@@ -107,16 +109,17 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
107
109
|
}
|
|
108
110
|
|
|
109
111
|
/**
|
|
110
|
-
* Get
|
|
111
|
-
*
|
|
112
|
-
* @param {
|
|
112
|
+
* Get cellular and satellite data usage
|
|
113
|
+
* Get the cellular and satellite data a project's devices used, in bytes. It's counted per day, week or month, by device, fleet or the whole project. If there are more data points than `limit`, the rest are dropped and `truncated` is true. Returns 400 for an unknown device, or if `endDate` is before `startDate`.
|
|
114
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
115
|
+
* @param {module:model/String} period The length of time each data point covers.
|
|
113
116
|
* @param {Object} opts Optional parameters
|
|
114
117
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
115
118
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
116
|
-
* @param {Array.<String>} opts.deviceUID
|
|
117
|
-
* @param {Array.<String>} opts.fleetUID Filter by
|
|
118
|
-
* @param {Number} opts.limit
|
|
119
|
-
* @param {module:model/String} opts.aggregate
|
|
119
|
+
* @param {Array.<String>} opts.deviceUID DeviceUIDs to filter by. Device and DFU calls match substrings, any case.
|
|
120
|
+
* @param {Array.<String>} opts.fleetUID Filter by FleetUID
|
|
121
|
+
* @param {Number} opts.limit The most data points to return. If there are more, `truncated` is true. (default to 200000)
|
|
122
|
+
* @param {module:model/String} opts.aggregate How to group the counts, such as per device or one total for the project. (default to 'device')
|
|
120
123
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDataUsage200Response} and HTTP response
|
|
121
124
|
*/
|
|
122
125
|
}, {
|
|
@@ -154,16 +157,17 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
154
157
|
}
|
|
155
158
|
|
|
156
159
|
/**
|
|
157
|
-
* Get
|
|
158
|
-
*
|
|
159
|
-
* @param {
|
|
160
|
+
* Get cellular and satellite data usage
|
|
161
|
+
* Get the cellular and satellite data a project's devices used, in bytes. It's counted per day, week or month, by device, fleet or the whole project. If there are more data points than `limit`, the rest are dropped and `truncated` is true. Returns 400 for an unknown device, or if `endDate` is before `startDate`.
|
|
162
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
163
|
+
* @param {module:model/String} period The length of time each data point covers.
|
|
160
164
|
* @param {Object} opts Optional parameters
|
|
161
165
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
162
166
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
163
|
-
* @param {Array.<String>} opts.deviceUID
|
|
164
|
-
* @param {Array.<String>} opts.fleetUID Filter by
|
|
165
|
-
* @param {Number} opts.limit
|
|
166
|
-
* @param {module:model/String} opts.aggregate
|
|
167
|
+
* @param {Array.<String>} opts.deviceUID DeviceUIDs to filter by. Device and DFU calls match substrings, any case.
|
|
168
|
+
* @param {Array.<String>} opts.fleetUID Filter by FleetUID
|
|
169
|
+
* @param {Number} opts.limit The most data points to return. If there are more, `truncated` is true. (default to 200000)
|
|
170
|
+
* @param {module:model/String} opts.aggregate How to group the counts, such as per device or one total for the project. (default to 'device')
|
|
167
171
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDataUsage200Response}
|
|
168
172
|
*/
|
|
169
173
|
}, {
|
|
@@ -175,19 +179,20 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
175
179
|
}
|
|
176
180
|
|
|
177
181
|
/**
|
|
178
|
-
* Get
|
|
179
|
-
*
|
|
180
|
-
* @param {
|
|
182
|
+
* Get event usage
|
|
183
|
+
* Count a project's events per day, week or month, by device, fleet or the whole project, optionally per notefile. Summaries lag; with `period=day` and no `endDate`, the latest day is filled in from recent events unless `skipRecentData` is true. Returns 400 if `startDate` is after `endDate`.
|
|
184
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
185
|
+
* @param {module:model/String} period The length of time each data point covers.
|
|
181
186
|
* @param {Object} opts Optional parameters
|
|
182
187
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
183
188
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
184
|
-
* @param {Array.<String>} opts.deviceUID
|
|
185
|
-
* @param {Array.<String>} opts.fleetUID Filter by
|
|
186
|
-
* @param {Number} opts.limit
|
|
187
|
-
* @param {module:model/String} opts.aggregate
|
|
188
|
-
* @param {Array.<String>} opts.notefile
|
|
189
|
-
* @param {Boolean} opts.skipRecentData
|
|
190
|
-
* @param {Boolean} opts.includeNotefiles
|
|
189
|
+
* @param {Array.<String>} opts.deviceUID DeviceUIDs to filter by. Device and DFU calls match substrings, any case.
|
|
190
|
+
* @param {Array.<String>} opts.fleetUID Filter by FleetUID
|
|
191
|
+
* @param {Number} opts.limit The most data points to return. If there are more, `truncated` is true. (default to 200000)
|
|
192
|
+
* @param {module:model/String} opts.aggregate How to group the counts, such as per device or one total for the project. (default to 'device')
|
|
193
|
+
* @param {Array.<String>} opts.notefile Count only events from these notefiles.
|
|
194
|
+
* @param {Boolean} opts.skipRecentData If true, return only summarized data, without filling in the latest day. Faster for large projects. (default to false)
|
|
195
|
+
* @param {Boolean} opts.includeNotefiles If true, include event counts for each notefile. (default to false)
|
|
191
196
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UsageEventsResponse} and HTTP response
|
|
192
197
|
*/
|
|
193
198
|
}, {
|
|
@@ -228,19 +233,20 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
228
233
|
}
|
|
229
234
|
|
|
230
235
|
/**
|
|
231
|
-
* Get
|
|
232
|
-
*
|
|
233
|
-
* @param {
|
|
236
|
+
* Get event usage
|
|
237
|
+
* Count a project's events per day, week or month, by device, fleet or the whole project, optionally per notefile. Summaries lag; with `period=day` and no `endDate`, the latest day is filled in from recent events unless `skipRecentData` is true. Returns 400 if `startDate` is after `endDate`.
|
|
238
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
239
|
+
* @param {module:model/String} period The length of time each data point covers.
|
|
234
240
|
* @param {Object} opts Optional parameters
|
|
235
241
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
236
242
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
237
|
-
* @param {Array.<String>} opts.deviceUID
|
|
238
|
-
* @param {Array.<String>} opts.fleetUID Filter by
|
|
239
|
-
* @param {Number} opts.limit
|
|
240
|
-
* @param {module:model/String} opts.aggregate
|
|
241
|
-
* @param {Array.<String>} opts.notefile
|
|
242
|
-
* @param {Boolean} opts.skipRecentData
|
|
243
|
-
* @param {Boolean} opts.includeNotefiles
|
|
243
|
+
* @param {Array.<String>} opts.deviceUID DeviceUIDs to filter by. Device and DFU calls match substrings, any case.
|
|
244
|
+
* @param {Array.<String>} opts.fleetUID Filter by FleetUID
|
|
245
|
+
* @param {Number} opts.limit The most data points to return. If there are more, `truncated` is true. (default to 200000)
|
|
246
|
+
* @param {module:model/String} opts.aggregate How to group the counts, such as per device or one total for the project. (default to 'device')
|
|
247
|
+
* @param {Array.<String>} opts.notefile Count only events from these notefiles.
|
|
248
|
+
* @param {Boolean} opts.skipRecentData If true, return only summarized data, without filling in the latest day. Faster for large projects. (default to false)
|
|
249
|
+
* @param {Boolean} opts.includeNotefiles If true, include event counts for each notefile. (default to false)
|
|
244
250
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UsageEventsResponse}
|
|
245
251
|
*/
|
|
246
252
|
}, {
|
|
@@ -252,16 +258,17 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
252
258
|
}
|
|
253
259
|
|
|
254
260
|
/**
|
|
255
|
-
* Get route
|
|
256
|
-
*
|
|
257
|
-
* @param {
|
|
261
|
+
* Get route log usage
|
|
262
|
+
* Count a project's attempts to send events to routes per day, week or month, by route or for the whole project. If there are more data points than `limit`, the rest are dropped and `truncated` is true.
|
|
263
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
264
|
+
* @param {module:model/String} period The length of time each data point covers.
|
|
258
265
|
* @param {Object} opts Optional parameters
|
|
259
266
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
260
267
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
261
|
-
* @param {Array.<String>} opts.routeUID A
|
|
262
|
-
* @param {Number} opts.limit
|
|
263
|
-
* @param {module:model/String} opts.aggregate
|
|
264
|
-
* @param {Boolean} opts.skipRecentData
|
|
268
|
+
* @param {Array.<String>} opts.routeUID A RouteUID.
|
|
269
|
+
* @param {Number} opts.limit The most data points to return. If there are more, `truncated` is true. (default to 200000)
|
|
270
|
+
* @param {module:model/String} opts.aggregate How to group the counts, per route or one total for the project. (default to 'route')
|
|
271
|
+
* @param {Boolean} opts.skipRecentData If true, return only summarized data, without filling in the latest day. Faster for large projects. (default to false)
|
|
265
272
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetRouteLogsUsage200Response} and HTTP response
|
|
266
273
|
*/
|
|
267
274
|
}, {
|
|
@@ -299,16 +306,17 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
299
306
|
}
|
|
300
307
|
|
|
301
308
|
/**
|
|
302
|
-
* Get route
|
|
303
|
-
*
|
|
304
|
-
* @param {
|
|
309
|
+
* Get route log usage
|
|
310
|
+
* Count a project's attempts to send events to routes per day, week or month, by route or for the whole project. If there are more data points than `limit`, the rest are dropped and `truncated` is true.
|
|
311
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
312
|
+
* @param {module:model/String} period The length of time each data point covers.
|
|
305
313
|
* @param {Object} opts Optional parameters
|
|
306
314
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
307
315
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
308
|
-
* @param {Array.<String>} opts.routeUID A
|
|
309
|
-
* @param {Number} opts.limit
|
|
310
|
-
* @param {module:model/String} opts.aggregate
|
|
311
|
-
* @param {Boolean} opts.skipRecentData
|
|
316
|
+
* @param {Array.<String>} opts.routeUID A RouteUID.
|
|
317
|
+
* @param {Number} opts.limit The most data points to return. If there are more, `truncated` is true. (default to 200000)
|
|
318
|
+
* @param {module:model/String} opts.aggregate How to group the counts, per route or one total for the project. (default to 'route')
|
|
319
|
+
* @param {Boolean} opts.skipRecentData If true, return only summarized data, without filling in the latest day. Faster for large projects. (default to false)
|
|
312
320
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetRouteLogsUsage200Response}
|
|
313
321
|
*/
|
|
314
322
|
}, {
|
|
@@ -320,17 +328,18 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
320
328
|
}
|
|
321
329
|
|
|
322
330
|
/**
|
|
323
|
-
* Get
|
|
324
|
-
*
|
|
325
|
-
* @param {
|
|
331
|
+
* Get session usage
|
|
332
|
+
* Count a project's device sessions per day, week or month, by device, fleet or the whole project. If there are more data points than `limit`, the rest are dropped and `truncated` is true. Returns 400 if `startDate` is after `endDate`.
|
|
333
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
334
|
+
* @param {module:model/String} period The length of time each data point covers.
|
|
326
335
|
* @param {Object} opts Optional parameters
|
|
327
336
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
328
337
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
329
|
-
* @param {Array.<String>} opts.deviceUID
|
|
330
|
-
* @param {Array.<String>} opts.fleetUID Filter by
|
|
331
|
-
* @param {Number} opts.limit
|
|
332
|
-
* @param {module:model/String} opts.aggregate
|
|
333
|
-
* @param {Boolean} opts.skipRecentData
|
|
338
|
+
* @param {Array.<String>} opts.deviceUID DeviceUIDs to filter by. Device and DFU calls match substrings, any case.
|
|
339
|
+
* @param {Array.<String>} opts.fleetUID Filter by FleetUID
|
|
340
|
+
* @param {Number} opts.limit The most data points to return. If there are more, `truncated` is true. (default to 200000)
|
|
341
|
+
* @param {module:model/String} opts.aggregate How to group the counts, such as per device or one total for the project. (default to 'device')
|
|
342
|
+
* @param {Boolean} opts.skipRecentData If true, return only summarized data, without filling in the latest day. Faster for large projects. (default to false)
|
|
334
343
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetSessionsUsage200Response} and HTTP response
|
|
335
344
|
*/
|
|
336
345
|
}, {
|
|
@@ -369,17 +378,18 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
369
378
|
}
|
|
370
379
|
|
|
371
380
|
/**
|
|
372
|
-
* Get
|
|
373
|
-
*
|
|
374
|
-
* @param {
|
|
381
|
+
* Get session usage
|
|
382
|
+
* Count a project's device sessions per day, week or month, by device, fleet or the whole project. If there are more data points than `limit`, the rest are dropped and `truncated` is true. Returns 400 if `startDate` is after `endDate`.
|
|
383
|
+
* @param {String} projectOrProductUID ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`, or one of the project's ProductUIDs.
|
|
384
|
+
* @param {module:model/String} period The length of time each data point covers.
|
|
375
385
|
* @param {Object} opts Optional parameters
|
|
376
386
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
377
387
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
378
|
-
* @param {Array.<String>} opts.deviceUID
|
|
379
|
-
* @param {Array.<String>} opts.fleetUID Filter by
|
|
380
|
-
* @param {Number} opts.limit
|
|
381
|
-
* @param {module:model/String} opts.aggregate
|
|
382
|
-
* @param {Boolean} opts.skipRecentData
|
|
388
|
+
* @param {Array.<String>} opts.deviceUID DeviceUIDs to filter by. Device and DFU calls match substrings, any case.
|
|
389
|
+
* @param {Array.<String>} opts.fleetUID Filter by FleetUID
|
|
390
|
+
* @param {Number} opts.limit The most data points to return. If there are more, `truncated` is true. (default to 200000)
|
|
391
|
+
* @param {module:model/String} opts.aggregate How to group the counts, such as per device or one total for the project. (default to 'device')
|
|
392
|
+
* @param {Boolean} opts.skipRecentData If true, return only summarized data, without filling in the latest day. Faster for large projects. (default to false)
|
|
383
393
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetSessionsUsage200Response}
|
|
384
394
|
*/
|
|
385
395
|
}, {
|