@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/model/Product.js
CHANGED
|
@@ -14,7 +14,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
|
|
|
14
14
|
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); } }
|
|
15
15
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
|
-
function _toPrimitive(t,
|
|
17
|
+
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); } /**
|
|
18
18
|
* Notehub API
|
|
19
19
|
* The OpenAPI definition for the Notehub.io API.
|
|
20
20
|
*
|
|
@@ -29,15 +29,15 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The Product model module.
|
|
31
31
|
* @module model/Product
|
|
32
|
-
* @version
|
|
32
|
+
* @version 7.0.0-beta.1
|
|
33
33
|
*/
|
|
34
34
|
var Product = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>Product</code>.
|
|
37
37
|
* @alias module:model/Product
|
|
38
|
-
* @param disableDevicesByDefault {Boolean}
|
|
39
|
-
* @param label {String}
|
|
40
|
-
* @param uid {String}
|
|
38
|
+
* @param disableDevicesByDefault {Boolean} If `true`, devices provisioned with this ProductUID start out disabled.
|
|
39
|
+
* @param label {String} Product name shown in Notehub.
|
|
40
|
+
* @param uid {String} ProductUID, e.g. `com.blues.bridge:sensors`. `GetProducts` returns it with a `product:` prefix.
|
|
41
41
|
*/
|
|
42
42
|
function Product(disableDevicesByDefault, label, uid) {
|
|
43
43
|
_classCallCheck(this, Product);
|
|
@@ -129,21 +129,25 @@ var Product = /*#__PURE__*/function () {
|
|
|
129
129
|
Product.RequiredProperties = ["disable_devices_by_default", "label", "uid"];
|
|
130
130
|
|
|
131
131
|
/**
|
|
132
|
+
* FleetUIDs that devices are added to when first provisioned with this ProductUID.
|
|
132
133
|
* @member {Array.<String>} auto_provision_fleets
|
|
133
134
|
*/
|
|
134
135
|
Product.prototype["auto_provision_fleets"] = undefined;
|
|
135
136
|
|
|
136
137
|
/**
|
|
138
|
+
* If `true`, devices provisioned with this ProductUID start out disabled.
|
|
137
139
|
* @member {Boolean} disable_devices_by_default
|
|
138
140
|
*/
|
|
139
141
|
Product.prototype["disable_devices_by_default"] = undefined;
|
|
140
142
|
|
|
141
143
|
/**
|
|
144
|
+
* Product name shown in Notehub.
|
|
142
145
|
* @member {String} label
|
|
143
146
|
*/
|
|
144
147
|
Product.prototype["label"] = undefined;
|
|
145
148
|
|
|
146
149
|
/**
|
|
150
|
+
* ProductUID, e.g. `com.blues.bridge:sensors`. `GetProducts` returns it with a `product:` prefix.
|
|
147
151
|
* @member {String} uid
|
|
148
152
|
*/
|
|
149
153
|
Product.prototype["uid"] = undefined;
|
package/dist/model/Project.js
CHANGED
|
@@ -16,7 +16,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
|
|
|
16
16
|
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); } }
|
|
17
17
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
18
18
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
19
|
-
function _toPrimitive(t,
|
|
19
|
+
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); } /**
|
|
20
20
|
* Notehub API
|
|
21
21
|
* The OpenAPI definition for the Notehub.io API.
|
|
22
22
|
*
|
|
@@ -31,15 +31,15 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
31
31
|
/**
|
|
32
32
|
* The Project model module.
|
|
33
33
|
* @module model/Project
|
|
34
|
-
* @version
|
|
34
|
+
* @version 7.0.0-beta.1
|
|
35
35
|
*/
|
|
36
36
|
var Project = /*#__PURE__*/function () {
|
|
37
37
|
/**
|
|
38
38
|
* Constructs a new <code>Project</code>.
|
|
39
39
|
* @alias module:model/Project
|
|
40
|
-
* @param created {Date}
|
|
41
|
-
* @param label {String}
|
|
42
|
-
* @param uid {String}
|
|
40
|
+
* @param created {Date} When the project was created.
|
|
41
|
+
* @param label {String} Project name shown in Notehub.
|
|
42
|
+
* @param uid {String} ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`.
|
|
43
43
|
*/
|
|
44
44
|
function Project(created, label, uid) {
|
|
45
45
|
_classCallCheck(this, Project);
|
|
@@ -148,11 +148,13 @@ Project.RequiredProperties = ["created", "label", "uid"];
|
|
|
148
148
|
Project.prototype["administrative_contact"] = undefined;
|
|
149
149
|
|
|
150
150
|
/**
|
|
151
|
+
* When the project was created.
|
|
151
152
|
* @member {Date} created
|
|
152
153
|
*/
|
|
153
154
|
Project.prototype["created"] = undefined;
|
|
154
155
|
|
|
155
156
|
/**
|
|
157
|
+
* Project name shown in Notehub.
|
|
156
158
|
* @member {String} label
|
|
157
159
|
*/
|
|
158
160
|
Project.prototype["label"] = undefined;
|
|
@@ -168,6 +170,7 @@ Project.prototype["role"] = undefined;
|
|
|
168
170
|
Project.prototype["technical_contact"] = undefined;
|
|
169
171
|
|
|
170
172
|
/**
|
|
173
|
+
* ProjectUID, e.g. `app:2606f411-dea6-44a0-9743-1130f57d77d8`.
|
|
171
174
|
* @member {String} uid
|
|
172
175
|
*/
|
|
173
176
|
Project.prototype["uid"] = undefined;
|
|
@@ -15,7 +15,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
|
|
|
15
15
|
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
16
16
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
17
17
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
|
-
function _toPrimitive(t,
|
|
18
|
+
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); } /**
|
|
19
19
|
* Notehub API
|
|
20
20
|
* The OpenAPI definition for the Notehub.io API.
|
|
21
21
|
*
|
|
@@ -30,14 +30,14 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The ProjectMember model module.
|
|
32
32
|
* @module model/ProjectMember
|
|
33
|
-
* @version
|
|
33
|
+
* @version 7.0.0-beta.1
|
|
34
34
|
*/
|
|
35
35
|
var ProjectMember = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
37
37
|
* Constructs a new <code>ProjectMember</code>.
|
|
38
38
|
* @alias module:model/ProjectMember
|
|
39
|
-
* @param email {String} The email address
|
|
40
|
-
* @param name {String}
|
|
39
|
+
* @param email {String} The member's email address. Empty unless the caller is an Owner of the project.
|
|
40
|
+
* @param name {String} The member's display name.
|
|
41
41
|
* @param role {module:model/Role}
|
|
42
42
|
*/
|
|
43
43
|
function ProjectMember(email, name, role) {
|
|
@@ -123,12 +123,13 @@ var ProjectMember = /*#__PURE__*/function () {
|
|
|
123
123
|
ProjectMember.RequiredProperties = ["email", "name", "role"];
|
|
124
124
|
|
|
125
125
|
/**
|
|
126
|
-
* The email address
|
|
126
|
+
* The member's email address. Empty unless the caller is an Owner of the project.
|
|
127
127
|
* @member {String} email
|
|
128
128
|
*/
|
|
129
129
|
ProjectMember.prototype["email"] = undefined;
|
|
130
130
|
|
|
131
131
|
/**
|
|
132
|
+
* The member's display name.
|
|
132
133
|
* @member {String} name
|
|
133
134
|
*/
|
|
134
135
|
ProjectMember.prototype["name"] = undefined;
|
|
@@ -14,7 +14,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
|
|
|
14
14
|
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); } }
|
|
15
15
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
|
-
function _toPrimitive(t,
|
|
17
|
+
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); } /**
|
|
18
18
|
* Notehub API
|
|
19
19
|
* The OpenAPI definition for the Notehub.io API.
|
|
20
20
|
*
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The ProjectSecret model module.
|
|
31
31
|
* @module model/ProjectSecret
|
|
32
|
-
* @version
|
|
32
|
+
* @version 7.0.0-beta.1
|
|
33
33
|
*/
|
|
34
34
|
var ProjectSecret = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -37,8 +37,8 @@ var ProjectSecret = /*#__PURE__*/function () {
|
|
|
37
37
|
* Metadata for a project secret. The value is never returned.
|
|
38
38
|
* @alias module:model/ProjectSecret
|
|
39
39
|
* @param created {Date} When the secret was first created.
|
|
40
|
-
* @param createdBy {String}
|
|
41
|
-
* @param name {String} The secret name
|
|
40
|
+
* @param createdBy {String} UID of the user or OAuth client that created the secret.
|
|
41
|
+
* @param name {String} The secret's name. Routes and alerts reference it as `[$$name]`.
|
|
42
42
|
*/
|
|
43
43
|
function ProjectSecret(created, createdBy, name) {
|
|
44
44
|
_classCallCheck(this, ProjectSecret);
|
|
@@ -139,25 +139,25 @@ ProjectSecret.RequiredProperties = ["created", "created_by", "name"];
|
|
|
139
139
|
ProjectSecret.prototype["created"] = undefined;
|
|
140
140
|
|
|
141
141
|
/**
|
|
142
|
-
*
|
|
142
|
+
* UID of the user or OAuth client that created the secret.
|
|
143
143
|
* @member {String} created_by
|
|
144
144
|
*/
|
|
145
145
|
ProjectSecret.prototype["created_by"] = undefined;
|
|
146
146
|
|
|
147
147
|
/**
|
|
148
|
-
* When the secret was last
|
|
148
|
+
* When the secret's value was last set.
|
|
149
149
|
* @member {Date} modified
|
|
150
150
|
*/
|
|
151
151
|
ProjectSecret.prototype["modified"] = undefined;
|
|
152
152
|
|
|
153
153
|
/**
|
|
154
|
-
*
|
|
154
|
+
* UID of the user or OAuth client that last set the secret's value.
|
|
155
155
|
* @member {String} modified_by
|
|
156
156
|
*/
|
|
157
157
|
ProjectSecret.prototype["modified_by"] = undefined;
|
|
158
158
|
|
|
159
159
|
/**
|
|
160
|
-
* The secret name
|
|
160
|
+
* The secret's name. Routes and alerts reference it as `[$$name]`.
|
|
161
161
|
* @member {String} name
|
|
162
162
|
*/
|
|
163
163
|
ProjectSecret.prototype["name"] = undefined;
|
|
@@ -14,7 +14,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
|
|
|
14
14
|
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); } }
|
|
15
15
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
|
-
function _toPrimitive(t,
|
|
17
|
+
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); } /**
|
|
18
18
|
* Notehub API
|
|
19
19
|
* The OpenAPI definition for the Notehub.io API.
|
|
20
20
|
*
|
|
@@ -29,13 +29,13 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The ProvisionDeviceRequest model module.
|
|
31
31
|
* @module model/ProvisionDeviceRequest
|
|
32
|
-
* @version
|
|
32
|
+
* @version 7.0.0-beta.1
|
|
33
33
|
*/
|
|
34
34
|
var ProvisionDeviceRequest = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>ProvisionDeviceRequest</code>.
|
|
37
37
|
* @alias module:model/ProvisionDeviceRequest
|
|
38
|
-
* @param productUid {String}
|
|
38
|
+
* @param productUid {String} ProductUID to provision the device under, e.g. `com.blues.bridge:sensors`. Must belong to this project.
|
|
39
39
|
*/
|
|
40
40
|
function ProvisionDeviceRequest(productUid) {
|
|
41
41
|
_classCallCheck(this, ProvisionDeviceRequest);
|
|
@@ -122,19 +122,19 @@ var ProvisionDeviceRequest = /*#__PURE__*/function () {
|
|
|
122
122
|
ProvisionDeviceRequest.RequiredProperties = ["product_uid"];
|
|
123
123
|
|
|
124
124
|
/**
|
|
125
|
-
*
|
|
125
|
+
* Serial number to give the device. Ignored if the device already has one.
|
|
126
126
|
* @member {String} device_sn
|
|
127
127
|
*/
|
|
128
128
|
ProvisionDeviceRequest.prototype["device_sn"] = undefined;
|
|
129
129
|
|
|
130
130
|
/**
|
|
131
|
-
*
|
|
131
|
+
* FleetUIDs to put a new device in. If omitted or empty, the product's auto-provision fleets are used. Ignored if the device already exists.
|
|
132
132
|
* @member {Array.<String>} fleet_uids
|
|
133
133
|
*/
|
|
134
134
|
ProvisionDeviceRequest.prototype["fleet_uids"] = undefined;
|
|
135
135
|
|
|
136
136
|
/**
|
|
137
|
-
*
|
|
137
|
+
* ProductUID to provision the device under, e.g. `com.blues.bridge:sensors`. Must belong to this project.
|
|
138
138
|
* @member {String} product_uid
|
|
139
139
|
*/
|
|
140
140
|
ProvisionDeviceRequest.prototype["product_uid"] = undefined;
|
package/dist/model/ProxyRoute.js
CHANGED
|
@@ -12,7 +12,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
|
|
|
12
12
|
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); } }
|
|
13
13
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
14
14
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
15
|
-
function _toPrimitive(t,
|
|
15
|
+
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); } /**
|
|
16
16
|
* Notehub API
|
|
17
17
|
* The OpenAPI definition for the Notehub.io API.
|
|
18
18
|
*
|
|
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
27
27
|
/**
|
|
28
28
|
* The ProxyRoute model module.
|
|
29
29
|
* @module model/ProxyRoute
|
|
30
|
-
* @version
|
|
30
|
+
* @version 7.0.0-beta.1
|
|
31
31
|
*/
|
|
32
32
|
var ProxyRoute = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
|
@@ -116,21 +116,25 @@ var ProxyRoute = /*#__PURE__*/function () {
|
|
|
116
116
|
}]);
|
|
117
117
|
}();
|
|
118
118
|
/**
|
|
119
|
+
* Name Notecards pass as `route` in `web.get`, `web.post` and other `web.*` requests to use this route. Required.
|
|
119
120
|
* @member {String} alias
|
|
120
121
|
*/
|
|
121
122
|
ProxyRoute.prototype["alias"] = undefined;
|
|
122
123
|
|
|
123
124
|
/**
|
|
125
|
+
* Has no effect: any device in the project can use the alias.
|
|
124
126
|
* @member {Array.<String>} fleets
|
|
125
127
|
*/
|
|
126
128
|
ProxyRoute.prototype["fleets"] = undefined;
|
|
127
129
|
|
|
128
130
|
/**
|
|
131
|
+
* HTTP headers added to each proxied request; values may contain placeholders. A `User-Agent` here replaces the default.
|
|
129
132
|
* @member {Object.<String, String>} http_headers
|
|
130
133
|
*/
|
|
131
134
|
ProxyRoute.prototype["http_headers"] = undefined;
|
|
132
135
|
|
|
133
136
|
/**
|
|
137
|
+
* Seconds to wait for the destination to respond. `0` or omitted uses 15.
|
|
134
138
|
* @member {Number} timeout
|
|
135
139
|
*/
|
|
136
140
|
ProxyRoute.prototype["timeout"] = undefined;
|
|
@@ -141,6 +145,7 @@ ProxyRoute.prototype["timeout"] = undefined;
|
|
|
141
145
|
ProxyRoute.prototype["transform"] = undefined;
|
|
142
146
|
|
|
143
147
|
/**
|
|
148
|
+
* Base URL for `web.*` requests; the request's `name` is appended. Required.
|
|
144
149
|
* @member {String} url
|
|
145
150
|
*/
|
|
146
151
|
ProxyRoute.prototype["url"] = undefined;
|
|
@@ -13,7 +13,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
|
|
|
13
13
|
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); } }
|
|
14
14
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
15
15
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
16
|
-
function _toPrimitive(t,
|
|
16
|
+
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); } /**
|
|
17
17
|
* Notehub API
|
|
18
18
|
* The OpenAPI definition for the Notehub.io API.
|
|
19
19
|
*
|
|
@@ -28,11 +28,12 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* The QubitroRoute model module.
|
|
30
30
|
* @module model/QubitroRoute
|
|
31
|
-
* @version
|
|
31
|
+
* @version 7.0.0-beta.1
|
|
32
32
|
*/
|
|
33
33
|
var QubitroRoute = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
35
35
|
* Constructs a new <code>QubitroRoute</code>.
|
|
36
|
+
* Settings for a Qubitro route. Devices are identified by the `qubitro_device_id` environment variable, else serial number, else DeviceUID.
|
|
36
37
|
* @alias module:model/QubitroRoute
|
|
37
38
|
*/
|
|
38
39
|
function QubitroRoute() {
|
|
@@ -128,21 +129,25 @@ var QubitroRoute = /*#__PURE__*/function () {
|
|
|
128
129
|
QubitroRoute.prototype["filter"] = undefined;
|
|
129
130
|
|
|
130
131
|
/**
|
|
132
|
+
* FleetUIDs to send events from. Omit for all fleets; on create, `[]` sends none. Unknown UIDs are dropped.
|
|
131
133
|
* @member {Array.<String>} fleets
|
|
132
134
|
*/
|
|
133
135
|
QubitroRoute.prototype["fleets"] = undefined;
|
|
134
136
|
|
|
135
137
|
/**
|
|
138
|
+
* Qubitro project ID, sent in the `projectId` header. Required.
|
|
136
139
|
* @member {String} project_id
|
|
137
140
|
*/
|
|
138
141
|
QubitroRoute.prototype["project_id"] = undefined;
|
|
139
142
|
|
|
140
143
|
/**
|
|
144
|
+
* Minimum milliseconds between deliveries on this route; extra events wait their turn. `0` or omitted means no limit.
|
|
141
145
|
* @member {Number} throttle_ms
|
|
142
146
|
*/
|
|
143
147
|
QubitroRoute.prototype["throttle_ms"] = undefined;
|
|
144
148
|
|
|
145
149
|
/**
|
|
150
|
+
* Seconds to wait for the destination to respond. `0` or omitted uses 15.
|
|
146
151
|
* @member {Number} timeout
|
|
147
152
|
*/
|
|
148
153
|
QubitroRoute.prototype["timeout"] = undefined;
|
|
@@ -153,6 +158,7 @@ QubitroRoute.prototype["timeout"] = undefined;
|
|
|
153
158
|
QubitroRoute.prototype["transform"] = undefined;
|
|
154
159
|
|
|
155
160
|
/**
|
|
161
|
+
* Qubitro webhook signing key. Required. Returned as `(omitted)`; send `(omitted)` to keep the stored value.
|
|
156
162
|
* @member {String} webhook_signing_key
|
|
157
163
|
*/
|
|
158
164
|
QubitroRoute.prototype["webhook_signing_key"] = undefined;
|
package/dist/model/RadRoute.js
CHANGED
|
@@ -11,7 +11,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
|
|
|
11
11
|
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); } }
|
|
12
12
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
13
13
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
|
-
function _toPrimitive(t,
|
|
14
|
+
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); } /**
|
|
15
15
|
* Notehub API
|
|
16
16
|
* The OpenAPI definition for the Notehub.io API.
|
|
17
17
|
*
|
|
@@ -26,11 +26,12 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The RadRoute model module.
|
|
28
28
|
* @module model/RadRoute
|
|
29
|
-
* @version
|
|
29
|
+
* @version 7.0.0-beta.1
|
|
30
30
|
*/
|
|
31
31
|
var RadRoute = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
33
33
|
* Constructs a new <code>RadRoute</code>.
|
|
34
|
+
* Settings for RadNote routes to RadResponder or MissionEdge. Only `_air.qo` events are sent (`_track.qo` for the mobile equipment survey).
|
|
34
35
|
* @alias module:model/RadRoute
|
|
35
36
|
*/
|
|
36
37
|
function RadRoute() {
|
|
@@ -115,36 +116,43 @@ var RadRoute = /*#__PURE__*/function () {
|
|
|
115
116
|
}]);
|
|
116
117
|
}();
|
|
117
118
|
/**
|
|
119
|
+
* OAuth2 client ID for the RadResponder API. Required.
|
|
118
120
|
* @member {String} client_id
|
|
119
121
|
*/
|
|
120
122
|
RadRoute.prototype["client_id"] = undefined;
|
|
121
123
|
|
|
122
124
|
/**
|
|
125
|
+
* OAuth2 client secret for the RadResponder API. Required. Returned as `(omitted)`; send `(omitted)` to keep the stored value.
|
|
123
126
|
* @member {String} client_secret
|
|
124
127
|
*/
|
|
125
128
|
RadRoute.prototype["client_secret"] = undefined;
|
|
126
129
|
|
|
127
130
|
/**
|
|
131
|
+
* RadResponder data feed key. Required for `radnote-radresp-fixed-survey` and `radnote-missionedge-fixed-survey`.
|
|
128
132
|
* @member {String} data_feed_key
|
|
129
133
|
*/
|
|
130
134
|
RadRoute.prototype["data_feed_key"] = undefined;
|
|
131
135
|
|
|
132
136
|
/**
|
|
137
|
+
* RadResponder event ID the surveys belong to. Required for `radnote-radresp-field-survey` and `radnote-radresp-mobile-equipment-survey`.
|
|
133
138
|
* @member {Number} event_id
|
|
134
139
|
*/
|
|
135
140
|
RadRoute.prototype["event_id"] = undefined;
|
|
136
141
|
|
|
137
142
|
/**
|
|
143
|
+
* FleetUIDs to send events from. Omit for all fleets; on create, `[]` sends none. Unknown UIDs are dropped.
|
|
138
144
|
* @member {Array.<String>} fleets
|
|
139
145
|
*/
|
|
140
146
|
RadRoute.prototype["fleets"] = undefined;
|
|
141
147
|
|
|
142
148
|
/**
|
|
149
|
+
* If true, send to RadResponder's testing API instead of production.
|
|
143
150
|
* @member {Boolean} test_api
|
|
144
151
|
*/
|
|
145
152
|
RadRoute.prototype["test_api"] = undefined;
|
|
146
153
|
|
|
147
154
|
/**
|
|
155
|
+
* Minimum milliseconds between deliveries on this route; extra events wait their turn. `0` or omitted means no limit.
|
|
148
156
|
* @member {Number} throttle_ms
|
|
149
157
|
*/
|
|
150
158
|
RadRoute.prototype["throttle_ms"] = undefined;
|
package/dist/model/Repository.js
CHANGED
|
@@ -12,7 +12,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
|
|
|
12
12
|
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); } }
|
|
13
13
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
14
14
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
15
|
-
function _toPrimitive(t,
|
|
15
|
+
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); } /**
|
|
16
16
|
* Notehub API
|
|
17
17
|
* The OpenAPI definition for the Notehub.io API.
|
|
18
18
|
*
|
|
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
27
27
|
/**
|
|
28
28
|
* The Repository model module.
|
|
29
29
|
* @module model/Repository
|
|
30
|
-
* @version
|
|
30
|
+
* @version 7.0.0-beta.1
|
|
31
31
|
*/
|
|
32
32
|
var Repository = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
|
@@ -125,7 +125,7 @@ Repository.prototype["archive"] = undefined;
|
|
|
125
125
|
Repository.prototype["fleet_uids"] = undefined;
|
|
126
126
|
|
|
127
127
|
/**
|
|
128
|
-
*
|
|
128
|
+
* Repository name.
|
|
129
129
|
* @member {String} name
|
|
130
130
|
*/
|
|
131
131
|
Repository.prototype["name"] = undefined;
|
|
@@ -136,7 +136,7 @@ Repository.prototype["name"] = undefined;
|
|
|
136
136
|
Repository.prototype["project_uids"] = undefined;
|
|
137
137
|
|
|
138
138
|
/**
|
|
139
|
-
*
|
|
139
|
+
* Repository UID, e.g. `repo:2606f411-dea6-44a0-9743-1130f57d77d8`.
|
|
140
140
|
* @member {String} uid
|
|
141
141
|
*/
|
|
142
142
|
Repository.prototype["uid"] = undefined;
|
|
@@ -15,7 +15,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
|
|
|
15
15
|
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
16
16
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
17
17
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
|
-
function _toPrimitive(t,
|
|
18
|
+
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); } /**
|
|
19
19
|
* Notehub API
|
|
20
20
|
* The OpenAPI definition for the Notehub.io API.
|
|
21
21
|
*
|
|
@@ -30,13 +30,13 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The RepositoryListResponse model module.
|
|
32
32
|
* @module model/RepositoryListResponse
|
|
33
|
-
* @version
|
|
33
|
+
* @version 7.0.0-beta.1
|
|
34
34
|
*/
|
|
35
35
|
var RepositoryListResponse = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
37
37
|
* Constructs a new <code>RepositoryListResponse</code>.
|
|
38
38
|
* @alias module:model/RepositoryListResponse
|
|
39
|
-
* @param repositories {Array.<module:model/Repository>}
|
|
39
|
+
* @param repositories {Array.<module:model/Repository>} The repositories, without archive stats.
|
|
40
40
|
*/
|
|
41
41
|
function RepositoryListResponse(repositories) {
|
|
42
42
|
_classCallCheck(this, RepositoryListResponse);
|
|
@@ -125,6 +125,7 @@ var RepositoryListResponse = /*#__PURE__*/function () {
|
|
|
125
125
|
RepositoryListResponse.RequiredProperties = ["repositories"];
|
|
126
126
|
|
|
127
127
|
/**
|
|
128
|
+
* The repositories, without archive stats.
|
|
128
129
|
* @member {Array.<module:model/Repository>} repositories
|
|
129
130
|
*/
|
|
130
131
|
RepositoryListResponse.prototype["repositories"] = undefined;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _DeviceSession = _interopRequireDefault(require("./DeviceSession"));
|
|
9
|
+
var _Event = _interopRequireDefault(require("./Event"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
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); }
|
|
12
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
13
|
+
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); } }
|
|
14
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
15
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
16
|
+
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); } /**
|
|
17
|
+
* Notehub API
|
|
18
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
19
|
+
*
|
|
20
|
+
* The version of the OpenAPI document: 1.2.0
|
|
21
|
+
* Contact: engineering@blues.io
|
|
22
|
+
*
|
|
23
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
24
|
+
* https://openapi-generator.tech
|
|
25
|
+
* Do not edit the class manually.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* The RepositoryRecord model module.
|
|
30
|
+
* @module model/RepositoryRecord
|
|
31
|
+
* @version 7.0.0-beta.1
|
|
32
|
+
*/
|
|
33
|
+
var RepositoryRecord = /*#__PURE__*/function () {
|
|
34
|
+
/**
|
|
35
|
+
* Constructs a new <code>RepositoryRecord</code>.
|
|
36
|
+
* One event in a repository's archive, with the session it arrived in and the device's environment at the time. `GetRepositoryData` returns one per line, and dataset JSONata expressions and Python functions read one at a time, as in `event.body.temp`. `session` is often absent, and `env` is absent in older records.
|
|
37
|
+
* @alias module:model/RepositoryRecord
|
|
38
|
+
*/
|
|
39
|
+
function RepositoryRecord() {
|
|
40
|
+
_classCallCheck(this, RepositoryRecord);
|
|
41
|
+
RepositoryRecord.initialize(this);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Initializes the fields of this object.
|
|
46
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
47
|
+
* Only for internal use.
|
|
48
|
+
*/
|
|
49
|
+
return _createClass(RepositoryRecord, null, [{
|
|
50
|
+
key: "initialize",
|
|
51
|
+
value: function initialize(obj) {}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Constructs a <code>RepositoryRecord</code> from a plain JavaScript object, optionally creating a new instance.
|
|
55
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
56
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
57
|
+
* @param {module:model/RepositoryRecord} obj Optional instance to populate.
|
|
58
|
+
* @return {module:model/RepositoryRecord} The populated <code>RepositoryRecord</code> instance.
|
|
59
|
+
*/
|
|
60
|
+
}, {
|
|
61
|
+
key: "constructFromObject",
|
|
62
|
+
value: function constructFromObject(data, obj) {
|
|
63
|
+
if (data) {
|
|
64
|
+
obj = obj || new RepositoryRecord();
|
|
65
|
+
if (data.hasOwnProperty("env")) {
|
|
66
|
+
obj["env"] = _ApiClient["default"].convertToType(data["env"], {
|
|
67
|
+
String: "String"
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
if (data.hasOwnProperty("event")) {
|
|
71
|
+
obj["event"] = _Event["default"].constructFromObject(data["event"]);
|
|
72
|
+
}
|
|
73
|
+
if (data.hasOwnProperty("session")) {
|
|
74
|
+
obj["session"] = _DeviceSession["default"].constructFromObject(data["session"]);
|
|
75
|
+
}
|
|
76
|
+
} else if (data === null) {
|
|
77
|
+
return null;
|
|
78
|
+
}
|
|
79
|
+
return obj;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Validates the JSON data with respect to <code>RepositoryRecord</code>.
|
|
84
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
85
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>RepositoryRecord</code>.
|
|
86
|
+
*/
|
|
87
|
+
}, {
|
|
88
|
+
key: "validateJSON",
|
|
89
|
+
value: function validateJSON(data) {
|
|
90
|
+
// validate the optional field `event`
|
|
91
|
+
if (data["event"]) {
|
|
92
|
+
// data not null
|
|
93
|
+
_Event["default"].validateJSON(data["event"]);
|
|
94
|
+
}
|
|
95
|
+
// validate the optional field `session`
|
|
96
|
+
if (data["session"]) {
|
|
97
|
+
// data not null
|
|
98
|
+
_DeviceSession["default"].validateJSON(data["session"]);
|
|
99
|
+
}
|
|
100
|
+
return true;
|
|
101
|
+
}
|
|
102
|
+
}]);
|
|
103
|
+
}();
|
|
104
|
+
/**
|
|
105
|
+
* The device's environment variables when the event arrived, after merging project and fleet ones.
|
|
106
|
+
* @member {Object.<String, String>} env
|
|
107
|
+
*/
|
|
108
|
+
RepositoryRecord.prototype["env"] = undefined;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* @member {module:model/Event} event
|
|
112
|
+
*/
|
|
113
|
+
RepositoryRecord.prototype["event"] = undefined;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* @member {module:model/DeviceSession} session
|
|
117
|
+
*/
|
|
118
|
+
RepositoryRecord.prototype["session"] = undefined;
|
|
119
|
+
var _default = exports["default"] = RepositoryRecord;
|