@blues-inc/notehub-js 6.7.0-beta.2 → 6.7.0-beta.20

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.
Files changed (186) hide show
  1. package/README.md +147 -150
  2. package/dist/ApiClient.js +2 -2
  3. package/dist/api/AlertApi.js +4 -1
  4. package/dist/api/AuthorizationApi.js +3 -3
  5. package/dist/api/DescriptionApi.js +1 -1
  6. package/dist/api/DeviceApi.js +46 -34
  7. package/dist/api/EventApi.js +27 -166
  8. package/dist/api/ExternalDevicesApi.js +1 -1
  9. package/dist/api/JobsApi.js +1 -1
  10. package/dist/api/MonitorApi.js +1 -1
  11. package/dist/api/OrganizationApi.js +9 -9
  12. package/dist/api/ProjectApi.js +59 -53
  13. package/dist/api/RouteApi.js +8 -5
  14. package/dist/api/UsageApi.js +78 -18
  15. package/dist/api/WebhookApi.js +17 -17
  16. package/dist/index.js +73 -80
  17. package/dist/model/AWSRoleConfig.js +1 -1
  18. package/dist/model/AddDeviceToFleetsRequest.js +1 -1
  19. package/dist/model/Alert.js +4 -4
  20. package/dist/model/AlertDataInner.js +1 -1
  21. package/dist/model/AlertNotificationsInner.js +1 -1
  22. package/dist/model/{PersonalAccessTokenSecret.js → ArchiveStats.js} +55 -35
  23. package/dist/model/AwsRoute.js +1 -1
  24. package/dist/model/AzureRoute.js +1 -1
  25. package/dist/model/{GetEventsByCursor200Response.js → BatchJobNoteRequest.js} +83 -62
  26. package/dist/model/BatchJobRequests.js +38 -5
  27. package/dist/model/BillingAccount.js +1 -1
  28. package/dist/model/BlynkRoute.js +1 -1
  29. package/dist/model/Body.js +1 -1
  30. package/dist/model/CancelJobRun200Response.js +1 -1
  31. package/dist/model/CellularPlan.js +1 -1
  32. package/dist/model/CloneProjectRequest.js +3 -3
  33. package/dist/model/Contact.js +1 -1
  34. package/dist/model/CreateFleetRequest.js +1 -1
  35. package/dist/model/CreateJob201Response.js +1 -1
  36. package/dist/model/CreateMonitor.js +44 -39
  37. package/dist/model/CreateProductRequest.js +1 -1
  38. package/dist/model/CreateProjectRequest.js +3 -3
  39. package/dist/model/CreateProjectSecretRequest.js +1 -1
  40. package/dist/model/CreateUpdateRepository.js +2 -1
  41. package/dist/model/CreatedRepository.js +2 -2
  42. package/dist/model/CurrentFirmware.js +1 -1
  43. package/dist/model/DFUEnv.js +1 -1
  44. package/dist/model/DFUState.js +1 -1
  45. package/dist/model/DataField.js +1 -1
  46. package/dist/model/DataSet.js +77 -2
  47. package/dist/model/DataSetField.js +7 -2
  48. package/dist/model/DataUsage.js +1 -1
  49. package/dist/model/DatacakeRoute.js +1 -1
  50. package/dist/model/{PersonalAccessTokenCreatedBy.js → DatasetReloadProgress.js} +42 -42
  51. package/dist/model/DeleteDeviceFromFleetsRequest.js +1 -1
  52. package/dist/model/DeleteJob200Response.js +1 -1
  53. package/dist/model/DeleteNotefilesRequest.js +1 -1
  54. package/dist/model/DescriptionRecord.js +1 -1
  55. package/dist/model/DescriptionRecordList.js +1 -1
  56. package/dist/model/Device.js +125 -2
  57. package/dist/model/DeviceDfuHistory.js +11 -2
  58. package/dist/model/DeviceDfuHistoryCurrent.js +1 -1
  59. package/dist/model/DeviceDfuHistoryPage.js +14 -1
  60. package/dist/model/DeviceDfuStateMachine.js +1 -1
  61. package/dist/model/DeviceDfuStateMachineNode.js +1 -1
  62. package/dist/model/DeviceDfuStatus.js +11 -2
  63. package/dist/model/DeviceDfuStatusPage.js +14 -1
  64. package/dist/model/{GetBillingAccounts200Response.js → DeviceSensor.js} +54 -40
  65. package/dist/model/DeviceSession.js +5 -5
  66. package/dist/model/DeviceTowerInfo.js +1 -1
  67. package/dist/model/DeviceUsage.js +1 -1
  68. package/dist/model/DfuActionRequest.js +1 -1
  69. package/dist/model/EmailNotification.js +1 -1
  70. package/dist/model/EnvTreeJsonNode.js +1 -1
  71. package/dist/model/EnvVar.js +1 -1
  72. package/dist/model/EnvironmentVariables.js +1 -1
  73. package/dist/model/Error.js +1 -1
  74. package/dist/model/Event.js +34 -7
  75. package/dist/model/Filter.js +1 -1
  76. package/dist/model/Firmware.js +1 -1
  77. package/dist/model/FirmwareInfo.js +1 -1
  78. package/dist/model/Fleet.js +3 -3
  79. package/dist/model/FleetConnectivityAssurance.js +1 -1
  80. package/dist/model/GetAlerts200Response.js +14 -1
  81. package/dist/model/GetApiUsage200Response.js +140 -0
  82. package/dist/model/GetDataUsage200Response.js +1 -1
  83. package/dist/model/GetDataUsage200ResponseDataInner.js +3 -3
  84. package/dist/model/GetDbNote200Response.js +1 -1
  85. package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +1 -1
  86. package/dist/model/GetDeviceFleets200Response.js +1 -1
  87. package/dist/model/GetDeviceHealthLog200Response.js +6 -6
  88. package/dist/model/GetDeviceJourney200Response.js +1 -1
  89. package/dist/model/GetDeviceJourney200ResponseJourney.js +1 -1
  90. package/dist/model/GetDeviceJourneys200Response.js +1 -1
  91. package/dist/model/GetDeviceJourneys200ResponseJourneysInner.js +1 -1
  92. package/dist/model/GetDeviceLatestEvents200Response.js +1 -1
  93. package/dist/model/GetDevicePlans200Response.js +1 -1
  94. package/dist/model/GetDevicePublicKey200Response.js +1 -1
  95. package/dist/model/GetDevicePublicKeys200Response.js +14 -1
  96. package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +10 -1
  97. package/dist/model/GetDeviceSessions200Response.js +14 -1
  98. package/dist/model/GetDevices200Response.js +14 -1
  99. package/dist/model/GetEvents200Response.js +14 -1
  100. package/dist/model/GetJobRuns200Response.js +1 -1
  101. package/dist/model/GetJobs200Response.js +1 -1
  102. package/dist/model/GetNotefile200Response.js +1 -1
  103. package/dist/model/{GetBillingAccount200Response.js → GetOrganization200Response.js} +28 -28
  104. package/dist/model/{GetBillingAccount200ResponsePlan.js → GetOrganization200ResponsePlan.js} +24 -24
  105. package/dist/model/{GetBillingAccountBalanceHistory200Response.js → GetOrganizationBalanceHistory200Response.js} +22 -22
  106. package/dist/model/{GetBillingAccountBalanceHistory200ResponseDataInner.js → GetOrganizationBalanceHistory200ResponseDataInner.js} +22 -22
  107. package/dist/model/GetOrganizations200Response.js +1 -1
  108. package/dist/model/GetProducts200Response.js +1 -1
  109. package/dist/model/GetProjectMembers200Response.js +1 -1
  110. package/dist/model/GetProjectSecretsResponse.js +1 -1
  111. package/dist/model/GetProjects200Response.js +1 -1
  112. package/dist/model/GetRouteLogsUsage200Response.js +1 -1
  113. package/dist/model/GetSessionsUsage200Response.js +1 -1
  114. package/dist/model/GetWebhooks200Response.js +1 -1
  115. package/dist/model/GoogleRoute.js +1 -1
  116. package/dist/model/{GetDeviceHealthLog200ResponseHealthLogInner.js → HealthLog.js} +22 -22
  117. package/dist/model/HttpRoute.js +1 -1
  118. package/dist/model/Job.js +1 -1
  119. package/dist/model/JobDefinition.js +2 -2
  120. package/dist/model/JobDefinitionReportOptions.js +1 -1
  121. package/dist/model/JobDefinitionSelect.js +3 -3
  122. package/dist/model/JobDetail.js +1 -1
  123. package/dist/model/JobDetailAllOf.js +1 -1
  124. package/dist/model/JobRun.js +1 -1
  125. package/dist/model/Location.js +1 -1
  126. package/dist/model/Login200Response.js +1 -1
  127. package/dist/model/LoginRequest.js +1 -1
  128. package/dist/model/Monitor.js +30 -23
  129. package/dist/model/MonitorAlertRoutesInner.js +1 -1
  130. package/dist/model/MqttRoute.js +1 -1
  131. package/dist/model/Note.js +1 -1
  132. package/dist/model/NoteInput.js +1 -1
  133. package/dist/model/Notefile.js +1 -1
  134. package/dist/model/NotefileSchema.js +1 -1
  135. package/dist/model/NotehubRoute.js +1 -1
  136. package/dist/model/NotehubRouteSummary.js +1 -1
  137. package/dist/model/OAuth2Error.js +1 -1
  138. package/dist/model/OAuth2TokenResponse.js +1 -1
  139. package/dist/model/Organization.js +1 -1
  140. package/dist/model/Product.js +1 -1
  141. package/dist/model/Project.js +1 -1
  142. package/dist/model/ProjectMember.js +1 -1
  143. package/dist/model/ProjectSecret.js +1 -1
  144. package/dist/model/ProvisionDeviceRequest.js +1 -1
  145. package/dist/model/ProxyRoute.js +1 -1
  146. package/dist/model/QubitroRoute.js +1 -1
  147. package/dist/model/RadRoute.js +1 -1
  148. package/dist/model/Repository.js +15 -1
  149. package/dist/model/RepositoryListResponse.js +1 -1
  150. package/dist/model/RepositoryTokenRequest.js +2 -2
  151. package/dist/model/RepositoryTokenResponse.js +1 -1
  152. package/dist/model/RouteLog.js +3 -3
  153. package/dist/model/RouteTransformSettings.js +1 -1
  154. package/dist/model/RunJob200Response.js +1 -1
  155. package/dist/model/S3ArchiveRoute.js +1 -1
  156. package/dist/model/SatelliteDataUsage.js +1 -1
  157. package/dist/model/SatellitePlan.js +1 -1
  158. package/dist/model/SchemaProperty.js +1 -1
  159. package/dist/model/SignalDevice200Response.js +1 -1
  160. package/dist/model/SimUsage.js +1 -1
  161. package/dist/model/SlackBearerNotification.js +1 -1
  162. package/dist/model/SlackRoute.js +1 -1
  163. package/dist/model/SlackWebHookNotification.js +1 -1
  164. package/dist/model/SnowflakeRoute.js +1 -1
  165. package/dist/model/SnowpipeStreamingRoute.js +1 -1
  166. package/dist/model/ThingworxRoute.js +1 -1
  167. package/dist/model/TowerLocation.js +1 -1
  168. package/dist/model/TwilioRoute.js +1 -1
  169. package/dist/model/UpdateFleetRequest.js +1 -1
  170. package/dist/model/UpdateHostFirmwareRequest.js +1 -1
  171. package/dist/model/UpdateProjectSecretRequest.js +1 -1
  172. package/dist/model/UploadMetadata.js +1 -1
  173. package/dist/model/UsageApiData.js +147 -0
  174. package/dist/model/UsageData.js +1 -1
  175. package/dist/model/UsageEventsData.js +1 -1
  176. package/dist/model/UsageEventsResponse.js +1 -1
  177. package/dist/model/UsageRouteLogsData.js +2 -2
  178. package/dist/model/UsageSessionsData.js +1 -1
  179. package/dist/model/UserDfuStateMachine.js +1 -1
  180. package/dist/model/UserDfuStateMachineStatus.js +1 -1
  181. package/dist/model/UserFirmwareInfo.js +1 -1
  182. package/dist/model/WebhookSettings.js +1 -1
  183. package/package.json +1 -1
  184. package/dist/api/BillingAccountApi.js +0 -167
  185. package/dist/model/PersonalAccessToken.js +0 -168
  186. 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.2
32
+ * @version 6.7.0-beta.20
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 billing account UID for the project. The caller of the API must be able to create projects within the billing account, otherwise an error will be returned.
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 billing account UID for the project. The caller of the API must be able to create projects within the billing account, otherwise an error will be returned.
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.2
32
+ * @version 6.7.0-beta.20
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.2
29
+ * @version 6.7.0-beta.20
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.2
29
+ * @version 6.7.0-beta.20
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.2
30
+ * @version 6.7.0-beta.20
31
31
  */
32
32
  var CurrentFirmware = /*#__PURE__*/function () {
33
33
  /**
@@ -27,7 +27,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
27
27
  /**
28
28
  * The DFUEnv model module.
29
29
  * @module model/DFUEnv
30
- * @version 6.7.0-beta.2
30
+ * @version 6.7.0-beta.20
31
31
  */
32
32
  var DFUEnv = /*#__PURE__*/function () {
33
33
  /**
@@ -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.2
29
+ * @version 6.7.0-beta.20
30
30
  */
31
31
  var DFUState = /*#__PURE__*/function () {
32
32
  /**
@@ -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.2
29
+ * @version 6.7.0-beta.20
30
30
  */
31
31
  var DataField = /*#__PURE__*/function () {
32
32
  /**
@@ -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.2
34
+ * @version 6.7.0-beta.20
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 resulting in the relevant time field
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.2
29
+ * @version 6.7.0-beta.20
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
- * the JSONata expression used to populate this field
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
@@ -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.2
32
+ * @version 6.7.0-beta.20
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.2
31
+ * @version 6.7.0-beta.20
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 PersonalAccessTokenCreatedBy model module.
28
- * @module model/PersonalAccessTokenCreatedBy
29
- * @version 6.7.0-beta.2
27
+ * The DatasetReloadProgress model module.
28
+ * @module model/DatasetReloadProgress
29
+ * @version 6.7.0-beta.20
30
30
  */
31
- var PersonalAccessTokenCreatedBy = /*#__PURE__*/function () {
31
+ var DatasetReloadProgress = /*#__PURE__*/function () {
32
32
  /**
33
- * Constructs a new <code>PersonalAccessTokenCreatedBy</code>.
34
- * The user that created this key
35
- * @alias module:model/PersonalAccessTokenCreatedBy
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 PersonalAccessTokenCreatedBy() {
38
- _classCallCheck(this, PersonalAccessTokenCreatedBy);
39
- PersonalAccessTokenCreatedBy.initialize(this);
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(PersonalAccessTokenCreatedBy, null, [{
47
+ return _createClass(DatasetReloadProgress, null, [{
48
48
  key: "initialize",
49
49
  value: function initialize(obj) {}
50
50
 
51
51
  /**
52
- * Constructs a <code>PersonalAccessTokenCreatedBy</code> from a plain JavaScript object, optionally creating a new instance.
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/PersonalAccessTokenCreatedBy} obj Optional instance to populate.
56
- * @return {module:model/PersonalAccessTokenCreatedBy} The populated <code>PersonalAccessTokenCreatedBy</code> instance.
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 PersonalAccessTokenCreatedBy();
63
- if (data.hasOwnProperty("email")) {
64
- obj["email"] = _ApiClient["default"].convertToType(data["email"], "String");
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("name")) {
67
- obj["name"] = _ApiClient["default"].convertToType(data["name"], "String");
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("uid")) {
70
- obj["uid"] = _ApiClient["default"].convertToType(data["uid"], "String");
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>PersonalAccessTokenCreatedBy</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>PersonalAccessTokenCreatedBy</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
- * @member {String} email
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
- PersonalAccessTokenCreatedBy.prototype["email"] = undefined;
103
+ DatasetReloadProgress.prototype["archive_records_total"] = undefined;
106
104
 
107
105
  /**
108
- * @member {String} name
106
+ * When this reload started.
107
+ * @member {Date} started
109
108
  */
110
- PersonalAccessTokenCreatedBy.prototype["name"] = undefined;
109
+ DatasetReloadProgress.prototype["started"] = undefined;
111
110
 
112
111
  /**
113
- * @member {String} uid
112
+ * Unarchived (Kafka tail) records read so far.
113
+ * @member {Number} tail_records_read
114
114
  */
115
- PersonalAccessTokenCreatedBy.prototype["uid"] = undefined;
116
- var _default = exports["default"] = PersonalAccessTokenCreatedBy;
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.2
32
+ * @version 6.7.0-beta.20
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.2
32
+ * @version 6.7.0-beta.20
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.2
29
+ * @version 6.7.0-beta.20
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.2
32
+ * @version 6.7.0-beta.20
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.2
33
+ * @version 6.7.0-beta.20
34
34
  */
35
35
  var DescriptionRecordList = /*#__PURE__*/function () {
36
36
  /**