@blues-inc/notehub-js 6.7.0-beta.2 → 6.7.0-beta.21
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 +147 -150
- package/dist/ApiClient.js +2 -2
- package/dist/api/AlertApi.js +4 -1
- package/dist/api/AuthorizationApi.js +3 -3
- package/dist/api/DescriptionApi.js +1 -1
- package/dist/api/DeviceApi.js +46 -34
- package/dist/api/EventApi.js +27 -166
- 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 +9 -9
- package/dist/api/ProjectApi.js +59 -53
- package/dist/api/RouteApi.js +8 -5
- package/dist/api/UsageApi.js +78 -18
- package/dist/api/WebhookApi.js +17 -17
- package/dist/index.js +73 -80
- package/dist/model/AWSRoleConfig.js +1 -1
- package/dist/model/AddDeviceToFleetsRequest.js +1 -1
- package/dist/model/Alert.js +4 -4
- package/dist/model/AlertDataInner.js +1 -1
- package/dist/model/AlertNotificationsInner.js +1 -1
- package/dist/model/{PersonalAccessTokenSecret.js → ArchiveStats.js} +55 -35
- package/dist/model/AwsRoute.js +1 -1
- package/dist/model/AzureRoute.js +1 -1
- package/dist/model/{GetEventsByCursor200Response.js → BatchJobNoteRequest.js} +83 -62
- package/dist/model/BatchJobRequests.js +38 -5
- 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 +3 -3
- 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 +44 -39
- package/dist/model/CreateProductRequest.js +1 -1
- package/dist/model/CreateProjectRequest.js +3 -3
- package/dist/model/CreateProjectSecretRequest.js +1 -1
- package/dist/model/CreateUpdateRepository.js +2 -1
- package/dist/model/CreatedRepository.js +2 -2
- 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 +77 -2
- package/dist/model/DataSetField.js +7 -2
- package/dist/model/DataUsage.js +1 -1
- package/dist/model/DatacakeRoute.js +1 -1
- package/dist/model/{PersonalAccessTokenCreatedBy.js → DatasetReloadProgress.js} +42 -42
- package/dist/model/DeleteDeviceFromFleetsRequest.js +1 -1
- package/dist/model/DeleteJob200Response.js +1 -1
- package/dist/model/DeleteNotefilesRequest.js +1 -1
- package/dist/model/DescriptionRecord.js +1 -1
- package/dist/model/DescriptionRecordList.js +1 -1
- package/dist/model/Device.js +125 -2
- package/dist/model/DeviceDfuHistory.js +11 -2
- package/dist/model/DeviceDfuHistoryCurrent.js +1 -1
- package/dist/model/DeviceDfuHistoryPage.js +14 -1
- package/dist/model/DeviceDfuStateMachine.js +1 -1
- package/dist/model/DeviceDfuStateMachineNode.js +1 -1
- package/dist/model/DeviceDfuStatus.js +11 -2
- package/dist/model/DeviceDfuStatusPage.js +14 -1
- package/dist/model/{GetBillingAccounts200Response.js → DeviceSensor.js} +54 -40
- package/dist/model/DeviceSession.js +5 -5
- 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 +1 -1
- package/dist/model/Error.js +1 -1
- package/dist/model/Event.js +34 -7
- 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 +3 -3
- package/dist/model/FleetConnectivityAssurance.js +1 -1
- package/dist/model/GetAlerts200Response.js +14 -1
- package/dist/model/GetApiUsage200Response.js +140 -0
- package/dist/model/GetDataUsage200Response.js +1 -1
- 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 +6 -6
- 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 +1 -1
- package/dist/model/GetDevicePlans200Response.js +1 -1
- package/dist/model/GetDevicePublicKey200Response.js +1 -1
- package/dist/model/GetDevicePublicKeys200Response.js +14 -1
- package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +10 -1
- package/dist/model/GetDeviceSessions200Response.js +14 -1
- package/dist/model/GetDevices200Response.js +14 -1
- package/dist/model/GetEvents200Response.js +14 -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 +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/{GetDeviceHealthLog200ResponseHealthLogInner.js → HealthLog.js} +22 -22
- 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 +1 -1
- package/dist/model/Login200Response.js +1 -1
- package/dist/model/LoginRequest.js +1 -1
- package/dist/model/Monitor.js +30 -23
- package/dist/model/MonitorAlertRoutesInner.js +1 -1
- package/dist/model/MqttRoute.js +1 -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 +1 -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 +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 +15 -1
- package/dist/model/RepositoryListResponse.js +1 -1
- package/dist/model/RepositoryTokenRequest.js +2 -2
- package/dist/model/RepositoryTokenResponse.js +1 -1
- package/dist/model/RouteLog.js +3 -3
- 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/UsageApiData.js +147 -0
- 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 +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 +1 -1
- package/package.json +1 -1
- package/dist/api/BillingAccountApi.js +0 -167
- package/dist/model/PersonalAccessToken.js +0 -168
- package/dist/model/PersonalAccessTokenInfo.js +0 -121
|
@@ -29,13 +29,13 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* The CreateProjectRequest model module.
|
|
31
31
|
* @module model/CreateProjectRequest
|
|
32
|
-
* @version 6.7.0-beta.
|
|
32
|
+
* @version 6.7.0-beta.21
|
|
33
33
|
*/
|
|
34
34
|
var CreateProjectRequest = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>CreateProjectRequest</code>.
|
|
37
37
|
* @alias module:model/CreateProjectRequest
|
|
38
|
-
* @param billingAccountUid {String} The
|
|
38
|
+
* @param billingAccountUid {String} The OrganizationUID for the project. The caller of the API must be able to create projects within the billing account, otherwise an error will be returned.
|
|
39
39
|
* @param label {String} The label for the project.
|
|
40
40
|
*/
|
|
41
41
|
function CreateProjectRequest(billingAccountUid, label) {
|
|
@@ -117,7 +117,7 @@ var CreateProjectRequest = /*#__PURE__*/function () {
|
|
|
117
117
|
CreateProjectRequest.RequiredProperties = ["billing_account_uid", "label"];
|
|
118
118
|
|
|
119
119
|
/**
|
|
120
|
-
* The
|
|
120
|
+
* The OrganizationUID for the project. The caller of the API must be able to create projects within the billing account, otherwise an error will be returned.
|
|
121
121
|
* @member {String} billing_account_uid
|
|
122
122
|
*/
|
|
123
123
|
CreateProjectRequest.prototype["billing_account_uid"] = undefined;
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* The CreateProjectSecretRequest model module.
|
|
31
31
|
* @module model/CreateProjectSecretRequest
|
|
32
|
-
* @version 6.7.0-beta.
|
|
32
|
+
* @version 6.7.0-beta.21
|
|
33
33
|
*/
|
|
34
34
|
var CreateProjectSecretRequest = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
26
26
|
/**
|
|
27
27
|
* The CreateUpdateRepository model module.
|
|
28
28
|
* @module model/CreateUpdateRepository
|
|
29
|
-
* @version 6.7.0-beta.
|
|
29
|
+
* @version 6.7.0-beta.21
|
|
30
30
|
*/
|
|
31
31
|
var CreateUpdateRepository = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -109,6 +109,7 @@ CreateUpdateRepository.prototype["fleet_uids"] = undefined;
|
|
|
109
109
|
CreateUpdateRepository.prototype["name"] = undefined;
|
|
110
110
|
|
|
111
111
|
/**
|
|
112
|
+
* The project whose events the repository holds. A repository can reference at most one project.
|
|
112
113
|
* @member {Array.<String>} project_uids
|
|
113
114
|
*/
|
|
114
115
|
CreateUpdateRepository.prototype["project_uids"] = undefined;
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
26
26
|
/**
|
|
27
27
|
* The CreatedRepository model module.
|
|
28
28
|
* @module model/CreatedRepository
|
|
29
|
-
* @version 6.7.0-beta.
|
|
29
|
+
* @version 6.7.0-beta.21
|
|
30
30
|
*/
|
|
31
31
|
var CreatedRepository = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -131,7 +131,7 @@ CreatedRepository.prototype["fleet_uids"] = undefined;
|
|
|
131
131
|
CreatedRepository.prototype["name"] = undefined;
|
|
132
132
|
|
|
133
133
|
/**
|
|
134
|
-
* read-only password for the database, also used as X-Repository-Token header for subsequent API calls. This value is only served once when the repository is created
|
|
134
|
+
* read-only password for the database, also used as X-Repository-Token header for subsequent API calls. This value is only served once when the repository is created, and never to a scoped token, which queries through the repository token endpoint instead
|
|
135
135
|
* @member {String} password
|
|
136
136
|
*/
|
|
137
137
|
CreatedRepository.prototype["password"] = undefined;
|
|
@@ -27,7 +27,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
27
27
|
/**
|
|
28
28
|
* The CurrentFirmware model module.
|
|
29
29
|
* @module model/CurrentFirmware
|
|
30
|
-
* @version 6.7.0-beta.
|
|
30
|
+
* @version 6.7.0-beta.21
|
|
31
31
|
*/
|
|
32
32
|
var CurrentFirmware = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
package/dist/model/DFUEnv.js
CHANGED
package/dist/model/DFUState.js
CHANGED
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
26
26
|
/**
|
|
27
27
|
* The DFUState model module.
|
|
28
28
|
* @module model/DFUState
|
|
29
|
-
* @version 6.7.0-beta.
|
|
29
|
+
* @version 6.7.0-beta.21
|
|
30
30
|
*/
|
|
31
31
|
var DFUState = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
package/dist/model/DataField.js
CHANGED
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
26
26
|
/**
|
|
27
27
|
* The DataField model module.
|
|
28
28
|
* @module model/DataField
|
|
29
|
-
* @version 6.7.0-beta.
|
|
29
|
+
* @version 6.7.0-beta.21
|
|
30
30
|
*/
|
|
31
31
|
var DataField = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
package/dist/model/DataSet.js
CHANGED
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
var _DataSetField = _interopRequireDefault(require("./DataSetField"));
|
|
9
|
+
var _DatasetReloadProgress = _interopRequireDefault(require("./DatasetReloadProgress"));
|
|
9
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
11
|
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); }
|
|
11
12
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
@@ -30,7 +31,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
30
31
|
/**
|
|
31
32
|
* The DataSet model module.
|
|
32
33
|
* @module model/DataSet
|
|
33
|
-
* @version 6.7.0-beta.
|
|
34
|
+
* @version 6.7.0-beta.21
|
|
34
35
|
*/
|
|
35
36
|
var DataSet = /*#__PURE__*/function () {
|
|
36
37
|
/**
|
|
@@ -72,9 +73,18 @@ var DataSet = /*#__PURE__*/function () {
|
|
|
72
73
|
if (data.hasOwnProperty("is_ready")) {
|
|
73
74
|
obj["is_ready"] = _ApiClient["default"].convertToType(data["is_ready"], "Boolean");
|
|
74
75
|
}
|
|
76
|
+
if (data.hasOwnProperty("lambda_name")) {
|
|
77
|
+
obj["lambda_name"] = _ApiClient["default"].convertToType(data["lambda_name"], "String");
|
|
78
|
+
}
|
|
79
|
+
if (data.hasOwnProperty("lambda_version")) {
|
|
80
|
+
obj["lambda_version"] = _ApiClient["default"].convertToType(data["lambda_version"], "String");
|
|
81
|
+
}
|
|
75
82
|
if (data.hasOwnProperty("lat")) {
|
|
76
83
|
obj["lat"] = _ApiClient["default"].convertToType(data["lat"], "String");
|
|
77
84
|
}
|
|
85
|
+
if (data.hasOwnProperty("location")) {
|
|
86
|
+
obj["location"] = _ApiClient["default"].convertToType(data["location"], "Boolean");
|
|
87
|
+
}
|
|
78
88
|
if (data.hasOwnProperty("lon")) {
|
|
79
89
|
obj["lon"] = _ApiClient["default"].convertToType(data["lon"], "String");
|
|
80
90
|
}
|
|
@@ -84,6 +94,15 @@ var DataSet = /*#__PURE__*/function () {
|
|
|
84
94
|
if (data.hasOwnProperty("notefiles")) {
|
|
85
95
|
obj["notefiles"] = _ApiClient["default"].convertToType(data["notefiles"], ["String"]);
|
|
86
96
|
}
|
|
97
|
+
if (data.hasOwnProperty("python")) {
|
|
98
|
+
obj["python"] = _ApiClient["default"].convertToType(data["python"], "String");
|
|
99
|
+
}
|
|
100
|
+
if (data.hasOwnProperty("reload")) {
|
|
101
|
+
obj["reload"] = _DatasetReloadProgress["default"].constructFromObject(data["reload"]);
|
|
102
|
+
}
|
|
103
|
+
if (data.hasOwnProperty("rows")) {
|
|
104
|
+
obj["rows"] = _ApiClient["default"].convertToType(data["rows"], "String");
|
|
105
|
+
}
|
|
87
106
|
if (data.hasOwnProperty("time")) {
|
|
88
107
|
obj["time"] = _ApiClient["default"].convertToType(data["time"], "String");
|
|
89
108
|
}
|
|
@@ -122,6 +141,14 @@ var DataSet = /*#__PURE__*/function () {
|
|
|
122
141
|
}
|
|
123
142
|
}
|
|
124
143
|
// ensure the json data is a string
|
|
144
|
+
if (data["lambda_name"] && !(typeof data["lambda_name"] === "string" || data["lambda_name"] instanceof String)) {
|
|
145
|
+
throw new Error("Expected the field `lambda_name` to be a primitive type in the JSON string but got " + data["lambda_name"]);
|
|
146
|
+
}
|
|
147
|
+
// ensure the json data is a string
|
|
148
|
+
if (data["lambda_version"] && !(typeof data["lambda_version"] === "string" || data["lambda_version"] instanceof String)) {
|
|
149
|
+
throw new Error("Expected the field `lambda_version` to be a primitive type in the JSON string but got " + data["lambda_version"]);
|
|
150
|
+
}
|
|
151
|
+
// ensure the json data is a string
|
|
125
152
|
if (data["lat"] && !(typeof data["lat"] === "string" || data["lat"] instanceof String)) {
|
|
126
153
|
throw new Error("Expected the field `lat` to be a primitive type in the JSON string but got " + data["lat"]);
|
|
127
154
|
}
|
|
@@ -138,6 +165,19 @@ var DataSet = /*#__PURE__*/function () {
|
|
|
138
165
|
throw new Error("Expected the field `notefiles` to be an array in the JSON data but got " + data["notefiles"]);
|
|
139
166
|
}
|
|
140
167
|
// ensure the json data is a string
|
|
168
|
+
if (data["python"] && !(typeof data["python"] === "string" || data["python"] instanceof String)) {
|
|
169
|
+
throw new Error("Expected the field `python` to be a primitive type in the JSON string but got " + data["python"]);
|
|
170
|
+
}
|
|
171
|
+
// validate the optional field `reload`
|
|
172
|
+
if (data["reload"]) {
|
|
173
|
+
// data not null
|
|
174
|
+
_DatasetReloadProgress["default"].validateJSON(data["reload"]);
|
|
175
|
+
}
|
|
176
|
+
// ensure the json data is a string
|
|
177
|
+
if (data["rows"] && !(typeof data["rows"] === "string" || data["rows"] instanceof String)) {
|
|
178
|
+
throw new Error("Expected the field `rows` to be a primitive type in the JSON string but got " + data["rows"]);
|
|
179
|
+
}
|
|
180
|
+
// ensure the json data is a string
|
|
141
181
|
if (data["time"] && !(typeof data["time"] === "string" || data["time"] instanceof String)) {
|
|
142
182
|
throw new Error("Expected the field `time` to be a primitive type in the JSON string but got " + data["time"]);
|
|
143
183
|
}
|
|
@@ -162,12 +202,30 @@ DataSet.prototype["is_optimized"] = undefined;
|
|
|
162
202
|
*/
|
|
163
203
|
DataSet.prototype["is_ready"] = undefined;
|
|
164
204
|
|
|
205
|
+
/**
|
|
206
|
+
* Name of the Lambda function deployed for a Python dataset. Derived from the repository and dataset name; set when the function is deployed.
|
|
207
|
+
* @member {String} lambda_name
|
|
208
|
+
*/
|
|
209
|
+
DataSet.prototype["lambda_name"] = undefined;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Published Lambda version this dataset is pinned to. A reload invokes this version rather than the latest, so republishing a projection never changes how a replay projects.
|
|
213
|
+
* @member {String} lambda_version
|
|
214
|
+
*/
|
|
215
|
+
DataSet.prototype["lambda_version"] = undefined;
|
|
216
|
+
|
|
165
217
|
/**
|
|
166
218
|
* JSONata expression resulting in the latitude field
|
|
167
219
|
* @member {String} lat
|
|
168
220
|
*/
|
|
169
221
|
DataSet.prototype["lat"] = undefined;
|
|
170
222
|
|
|
223
|
+
/**
|
|
224
|
+
* Whether the dataset has a location column, taken from each row's \"lat\" and \"lon\" keys. For Python datasets only; a JSONata dataset declares a location column by setting both lat and lon.
|
|
225
|
+
* @member {Boolean} location
|
|
226
|
+
*/
|
|
227
|
+
DataSet.prototype["location"] = undefined;
|
|
228
|
+
|
|
171
229
|
/**
|
|
172
230
|
* JSONata expression resulting in the Longitude field
|
|
173
231
|
* @member {String} lon
|
|
@@ -187,7 +245,24 @@ DataSet.prototype["name"] = undefined;
|
|
|
187
245
|
DataSet.prototype["notefiles"] = undefined;
|
|
188
246
|
|
|
189
247
|
/**
|
|
190
|
-
* JSONata expression
|
|
248
|
+
* Optional Python source projecting each event, as an alternative to JSONata. It defines one function, with type annotations required: \"def rows(record: dict[str, Any]) -> list[dict[str, Any]]\". It returns zero or more row objects per event, whose keys are the dataset's columns -- the same convention the rows expression uses. Returning an empty list contributes no rows and is not an error; anything else, None included, is an error for that event. Mutually exclusive with rows, time, lat, lon and every field's own jsonata expression, since a Python projection produces whole row objects and leaves nothing for them to do. Use it for payloads JSONata cannot decode, such as packed binary, base64-wrapped blobs, protobuf or CBOR. At most 64 KiB. Rows must come back in the same order every time rows() runs over the same event: a row's position in the list identifies it, so an order that varies (such as iterating over a set) makes a replay insert duplicates. Sort the list if the order is not already fixed.
|
|
249
|
+
* @member {String} python
|
|
250
|
+
*/
|
|
251
|
+
DataSet.prototype["python"] = undefined;
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* @member {module:model/DatasetReloadProgress} reload
|
|
255
|
+
*/
|
|
256
|
+
DataSet.prototype["reload"] = undefined;
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* Optional JSONata expression that expands one event into several rows. It evaluates to one row object per row, whose keys are the dataset's columns: an array of objects, or a single object for one row. Both are accepted because JSONata collapses a one-element sequence to the element, so the same expression yields an array for an event carrying several readings and a bare object for one carrying a single reading. A result that is undefined or empty contributes no rows and is not an error; anything that is not an object, or an array containing one, is rejected. When set it is the only expression that reads the event: each field below takes the row object key matching its name, and time/lat/lon name a key too. Omit it and the dataset produces one row per event, with each field's own jsonata expression reading the event directly. event.uploaded and event.captured always resolve against the event either way.
|
|
260
|
+
* @member {String} rows
|
|
261
|
+
*/
|
|
262
|
+
DataSet.prototype["rows"] = undefined;
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* JSONata expression resulting in the row's time. Required for a dataset with no rows expression. With one it defaults to the row object's \"time\" key, and only needs setting to name a different key, or to reach past the row as event.uploaded and event.captured do. lat and lon work the same way and are what declare that the dataset has a location column at all.
|
|
191
266
|
* @member {String} time
|
|
192
267
|
*/
|
|
193
268
|
DataSet.prototype["time"] = undefined;
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
26
26
|
/**
|
|
27
27
|
* The DataSetField model module.
|
|
28
28
|
* @module model/DataSetField
|
|
29
|
-
* @version 6.7.0-beta.
|
|
29
|
+
* @version 6.7.0-beta.21
|
|
30
30
|
*/
|
|
31
31
|
var DataSetField = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -101,7 +101,7 @@ var DataSetField = /*#__PURE__*/function () {
|
|
|
101
101
|
DataSetField.prototype["datatype"] = undefined;
|
|
102
102
|
|
|
103
103
|
/**
|
|
104
|
-
*
|
|
104
|
+
* The JSONata expression that populates this field from the event. Required for a dataset with no rows expression. Must be omitted when the dataset has one: the column is then taken from the row object key matching this field's name, and supplying an expression here is rejected rather than silently ignored.
|
|
105
105
|
* @member {String} jsonata
|
|
106
106
|
*/
|
|
107
107
|
DataSetField.prototype["jsonata"] = undefined;
|
|
@@ -133,6 +133,11 @@ DataSetField["DatatypeEnum"] = {
|
|
|
133
133
|
* @const
|
|
134
134
|
*/
|
|
135
135
|
2: 2,
|
|
136
|
+
/**
|
|
137
|
+
* value: 3
|
|
138
|
+
* @const
|
|
139
|
+
*/
|
|
140
|
+
3: 3,
|
|
136
141
|
/**
|
|
137
142
|
* value: 5
|
|
138
143
|
* @const
|
package/dist/model/DataUsage.js
CHANGED
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* The DataUsage model module.
|
|
31
31
|
* @module model/DataUsage
|
|
32
|
-
* @version 6.7.0-beta.
|
|
32
|
+
* @version 6.7.0-beta.21
|
|
33
33
|
*/
|
|
34
34
|
var DataUsage = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
28
28
|
/**
|
|
29
29
|
* The DatacakeRoute model module.
|
|
30
30
|
* @module model/DatacakeRoute
|
|
31
|
-
* @version 6.7.0-beta.
|
|
31
|
+
* @version 6.7.0-beta.21
|
|
32
32
|
*/
|
|
33
33
|
var DatacakeRoute = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -24,19 +24,19 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
24
24
|
*
|
|
25
25
|
*/
|
|
26
26
|
/**
|
|
27
|
-
* The
|
|
28
|
-
* @module model/
|
|
29
|
-
* @version 6.7.0-beta.
|
|
27
|
+
* The DatasetReloadProgress model module.
|
|
28
|
+
* @module model/DatasetReloadProgress
|
|
29
|
+
* @version 6.7.0-beta.21
|
|
30
30
|
*/
|
|
31
|
-
var
|
|
31
|
+
var DatasetReloadProgress = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
33
|
-
* Constructs a new <code>
|
|
34
|
-
*
|
|
35
|
-
* @alias module:model/
|
|
33
|
+
* Constructs a new <code>DatasetReloadProgress</code>.
|
|
34
|
+
* Live progress of an in-flight reload of this dataset; absent when not reloading.
|
|
35
|
+
* @alias module:model/DatasetReloadProgress
|
|
36
36
|
*/
|
|
37
|
-
function
|
|
38
|
-
_classCallCheck(this,
|
|
39
|
-
|
|
37
|
+
function DatasetReloadProgress() {
|
|
38
|
+
_classCallCheck(this, DatasetReloadProgress);
|
|
39
|
+
DatasetReloadProgress.initialize(this);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/**
|
|
@@ -44,30 +44,33 @@ var PersonalAccessTokenCreatedBy = /*#__PURE__*/function () {
|
|
|
44
44
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
45
45
|
* Only for internal use.
|
|
46
46
|
*/
|
|
47
|
-
return _createClass(
|
|
47
|
+
return _createClass(DatasetReloadProgress, null, [{
|
|
48
48
|
key: "initialize",
|
|
49
49
|
value: function initialize(obj) {}
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
|
-
* Constructs a <code>
|
|
52
|
+
* Constructs a <code>DatasetReloadProgress</code> from a plain JavaScript object, optionally creating a new instance.
|
|
53
53
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
54
54
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
55
|
-
* @param {module:model/
|
|
56
|
-
* @return {module:model/
|
|
55
|
+
* @param {module:model/DatasetReloadProgress} obj Optional instance to populate.
|
|
56
|
+
* @return {module:model/DatasetReloadProgress} The populated <code>DatasetReloadProgress</code> instance.
|
|
57
57
|
*/
|
|
58
58
|
}, {
|
|
59
59
|
key: "constructFromObject",
|
|
60
60
|
value: function constructFromObject(data, obj) {
|
|
61
61
|
if (data) {
|
|
62
|
-
obj = obj || new
|
|
63
|
-
if (data.hasOwnProperty("
|
|
64
|
-
obj["
|
|
62
|
+
obj = obj || new DatasetReloadProgress();
|
|
63
|
+
if (data.hasOwnProperty("archive_records_read")) {
|
|
64
|
+
obj["archive_records_read"] = _ApiClient["default"].convertToType(data["archive_records_read"], "Number");
|
|
65
65
|
}
|
|
66
|
-
if (data.hasOwnProperty("
|
|
67
|
-
obj["
|
|
66
|
+
if (data.hasOwnProperty("archive_records_total")) {
|
|
67
|
+
obj["archive_records_total"] = _ApiClient["default"].convertToType(data["archive_records_total"], "Number");
|
|
68
68
|
}
|
|
69
|
-
if (data.hasOwnProperty("
|
|
70
|
-
obj["
|
|
69
|
+
if (data.hasOwnProperty("started")) {
|
|
70
|
+
obj["started"] = _ApiClient["default"].convertToType(data["started"], "Date");
|
|
71
|
+
}
|
|
72
|
+
if (data.hasOwnProperty("tail_records_read")) {
|
|
73
|
+
obj["tail_records_read"] = _ApiClient["default"].convertToType(data["tail_records_read"], "Number");
|
|
71
74
|
}
|
|
72
75
|
} else if (data === null) {
|
|
73
76
|
return null;
|
|
@@ -76,41 +79,38 @@ var PersonalAccessTokenCreatedBy = /*#__PURE__*/function () {
|
|
|
76
79
|
}
|
|
77
80
|
|
|
78
81
|
/**
|
|
79
|
-
* Validates the JSON data with respect to <code>
|
|
82
|
+
* Validates the JSON data with respect to <code>DatasetReloadProgress</code>.
|
|
80
83
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
81
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>
|
|
84
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>DatasetReloadProgress</code>.
|
|
82
85
|
*/
|
|
83
86
|
}, {
|
|
84
87
|
key: "validateJSON",
|
|
85
88
|
value: function validateJSON(data) {
|
|
86
|
-
// ensure the json data is a string
|
|
87
|
-
if (data["email"] && !(typeof data["email"] === "string" || data["email"] instanceof String)) {
|
|
88
|
-
throw new Error("Expected the field `email` to be a primitive type in the JSON string but got " + data["email"]);
|
|
89
|
-
}
|
|
90
|
-
// ensure the json data is a string
|
|
91
|
-
if (data["name"] && !(typeof data["name"] === "string" || data["name"] instanceof String)) {
|
|
92
|
-
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data["name"]);
|
|
93
|
-
}
|
|
94
|
-
// ensure the json data is a string
|
|
95
|
-
if (data["uid"] && !(typeof data["uid"] === "string" || data["uid"] instanceof String)) {
|
|
96
|
-
throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data["uid"]);
|
|
97
|
-
}
|
|
98
89
|
return true;
|
|
99
90
|
}
|
|
100
91
|
}]);
|
|
101
92
|
}();
|
|
102
93
|
/**
|
|
103
|
-
*
|
|
94
|
+
* Archived records read so far.
|
|
95
|
+
* @member {Number} archive_records_read
|
|
96
|
+
*/
|
|
97
|
+
DatasetReloadProgress.prototype["archive_records_read"] = undefined;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Approximate total archived records to read. Null when it cannot be determined because some archive files predate the record-count filename format.
|
|
101
|
+
* @member {Number} archive_records_total
|
|
104
102
|
*/
|
|
105
|
-
|
|
103
|
+
DatasetReloadProgress.prototype["archive_records_total"] = undefined;
|
|
106
104
|
|
|
107
105
|
/**
|
|
108
|
-
*
|
|
106
|
+
* When this reload started.
|
|
107
|
+
* @member {Date} started
|
|
109
108
|
*/
|
|
110
|
-
|
|
109
|
+
DatasetReloadProgress.prototype["started"] = undefined;
|
|
111
110
|
|
|
112
111
|
/**
|
|
113
|
-
*
|
|
112
|
+
* Unarchived (Kafka tail) records read so far.
|
|
113
|
+
* @member {Number} tail_records_read
|
|
114
114
|
*/
|
|
115
|
-
|
|
116
|
-
var _default = exports["default"] =
|
|
115
|
+
DatasetReloadProgress.prototype["tail_records_read"] = undefined;
|
|
116
|
+
var _default = exports["default"] = DatasetReloadProgress;
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* The DeleteDeviceFromFleetsRequest model module.
|
|
31
31
|
* @module model/DeleteDeviceFromFleetsRequest
|
|
32
|
-
* @version 6.7.0-beta.
|
|
32
|
+
* @version 6.7.0-beta.21
|
|
33
33
|
*/
|
|
34
34
|
var DeleteDeviceFromFleetsRequest = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* The DeleteJob200Response model module.
|
|
31
31
|
* @module model/DeleteJob200Response
|
|
32
|
-
* @version 6.7.0-beta.
|
|
32
|
+
* @version 6.7.0-beta.21
|
|
33
33
|
*/
|
|
34
34
|
var DeleteJob200Response = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
26
26
|
/**
|
|
27
27
|
* The DeleteNotefilesRequest model module.
|
|
28
28
|
* @module model/DeleteNotefilesRequest
|
|
29
|
-
* @version 6.7.0-beta.
|
|
29
|
+
* @version 6.7.0-beta.21
|
|
30
30
|
*/
|
|
31
31
|
var DeleteNotefilesRequest = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* The DescriptionRecord model module.
|
|
31
31
|
* @module model/DescriptionRecord
|
|
32
|
-
* @version 6.7.0-beta.
|
|
32
|
+
* @version 6.7.0-beta.21
|
|
33
33
|
*/
|
|
34
34
|
var DescriptionRecord = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
30
30
|
/**
|
|
31
31
|
* The DescriptionRecordList model module.
|
|
32
32
|
* @module model/DescriptionRecordList
|
|
33
|
-
* @version 6.7.0-beta.
|
|
33
|
+
* @version 6.7.0-beta.21
|
|
34
34
|
*/
|
|
35
35
|
var DescriptionRecordList = /*#__PURE__*/function () {
|
|
36
36
|
/**
|