@blues-inc/notehub-js 2.3.0-beta.9 → 3.0.0
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 +242 -251
- package/dist/ApiClient.js +154 -154
- package/dist/api/AlertApi.js +22 -22
- package/dist/api/AuthorizationApi.js +31 -31
- package/dist/api/BillingAccountApi.js +14 -14
- package/dist/api/DeviceApi.js +478 -513
- package/dist/api/EventApi.js +118 -118
- package/dist/api/ExternalDevicesApi.js +41 -41
- package/dist/api/MonitorApi.js +52 -52
- package/dist/api/ProjectApi.js +457 -457
- package/dist/api/RouteApi.js +77 -77
- package/dist/api/UsageApi.js +65 -44
- package/dist/api/WebhookApi.js +51 -51
- package/dist/index.js +14 -14
- package/dist/model/AddDeviceToFleetsRequest.js +8 -8
- package/dist/model/Alert.js +74 -76
- package/dist/model/AlertDataInner.js +35 -35
- package/dist/model/AlertNotificationsInner.js +18 -18
- package/dist/model/AwsRoute.js +65 -65
- package/dist/model/AzureRoute.js +43 -43
- package/dist/model/BillingAccount.js +21 -21
- package/dist/model/BillingAccountRole.js +9 -9
- package/dist/model/BlynkRoute.js +28 -28
- package/dist/model/Body.js +5 -5
- package/dist/model/CellularPlan.js +34 -34
- package/dist/model/CloneProjectRequest.js +20 -20
- package/dist/model/Contact.js +22 -22
- package/dist/model/CreateFleetRequest.js +17 -17
- package/dist/model/CreateMonitor.js +125 -126
- package/dist/model/CreateProductRequest.js +22 -22
- package/dist/model/CreateProjectRequest.js +16 -16
- package/dist/model/CreateUpdateRepository.js +17 -17
- package/dist/model/CurrentFirmware.js +12 -12
- package/dist/model/DFUEnv.js +12 -12
- package/dist/model/DFUState.js +65 -65
- package/dist/model/DataField.js +7 -7
- package/dist/model/DataSetField.js +19 -19
- package/dist/model/DataUsage.js +14 -14
- package/dist/model/DatacakeRoute.js +35 -35
- package/dist/model/DeleteDeviceFromFleetsRequest.js +8 -8
- package/dist/model/DeleteNotefilesRequest.js +7 -7
- package/dist/model/Device.js +101 -102
- package/dist/model/DeviceDfuHistory.js +19 -20
- package/dist/model/DeviceDfuHistoryCurrent.js +32 -32
- package/dist/model/DeviceDfuHistoryPage.js +12 -13
- package/dist/model/DeviceDfuStateMachine.js +24 -25
- package/dist/model/DeviceDfuStateMachineNode.js +22 -22
- package/dist/model/DeviceDfuStatus.js +20 -20
- package/dist/model/DeviceDfuStatusPage.js +12 -13
- package/dist/model/DeviceSession.js +221 -221
- package/dist/model/DeviceTowerInfo.js +14 -14
- package/dist/model/DeviceUsage.js +32 -32
- package/dist/model/DfuActionRequest.js +7 -7
- package/dist/model/EmailNotification.js +7 -7
- package/dist/model/EnvTreeJsonNode.js +67 -69
- package/dist/model/EnvVar.js +18 -18
- package/dist/model/EnvironmentVariables.js +8 -8
- package/dist/model/Error.js +31 -31
- package/dist/model/Event.js +248 -248
- package/dist/model/Filter.js +16 -16
- package/dist/model/Firmware.js +49 -49
- package/dist/model/FirmwareInfo.js +60 -60
- package/dist/model/Fleet.js +35 -35
- package/dist/model/FleetConnectivityAssurance.js +6 -6
- package/dist/model/GetAlerts200Response.js +14 -15
- package/dist/model/GetBillingAccounts200Response.js +9 -10
- package/dist/model/GetDataUsage200Response.js +9 -10
- package/dist/model/GetDataUsage200ResponseDataInner.js +40 -41
- package/dist/model/GetDbNote200Response.js +13 -13
- package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +16 -16
- package/dist/model/GetDeviceFleets200Response.js +11 -12
- package/dist/model/GetDeviceHealthLog200Response.js +11 -12
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
- package/dist/model/GetDeviceLatestEvents200Response.js +9 -10
- package/dist/model/GetDevicePlans200Response.js +9 -10
- package/dist/model/GetDevicePublicKey200Response.js +16 -16
- package/dist/model/GetDevicePublicKeys200Response.js +16 -17
- package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
- package/dist/model/GetDeviceSessions200Response.js +16 -17
- package/dist/model/GetDevices200Response.js +16 -17
- package/dist/model/GetEvents200Response.js +20 -21
- package/dist/model/GetEventsByCursor200Response.js +23 -24
- package/dist/model/GetNotefile200Response.js +11 -11
- package/dist/model/GetProducts200Response.js +9 -10
- package/dist/model/GetProjectMembers200Response.js +11 -12
- package/dist/model/GetProjects200Response.js +9 -10
- package/dist/model/GetSessionsUsage200Response.js +11 -12
- package/dist/model/GetWebhooks200Response.js +9 -10
- package/dist/model/GoogleRoute.js +33 -33
- package/dist/model/HttpRoute.js +35 -35
- package/dist/model/ListNotefiles200Response.js +106 -0
- package/dist/model/ListPendingNotefiles200Response.js +14 -14
- package/dist/model/Location.js +40 -40
- package/dist/model/Login200Response.js +7 -7
- package/dist/model/LoginRequest.js +12 -12
- package/dist/model/Monitor.js +99 -100
- package/dist/model/MonitorAlertRoutesInner.js +10 -9
- package/dist/model/MqttRoute.js +68 -68
- package/dist/model/Note.js +15 -95
- package/dist/model/NotefileSchema.js +18 -19
- package/dist/model/NotehubRoute.js +112 -98
- package/dist/model/NotehubRouteSummary.js +23 -23
- package/dist/model/OAuth2Error.js +20 -20
- package/dist/model/OAuth2TokenResponse.js +23 -23
- package/dist/model/PersonalAccessToken.js +34 -34
- package/dist/model/PersonalAccessTokenCreatedBy.js +17 -17
- package/dist/model/PersonalAccessTokenInfo.js +18 -18
- package/dist/model/PersonalAccessTokenSecret.js +12 -12
- package/dist/model/Product.js +26 -26
- package/dist/model/Project.js +34 -34
- package/dist/model/ProjectMember.js +22 -22
- package/dist/model/ProvisionDeviceRequest.js +18 -18
- package/dist/model/ProxyRoute.js +29 -29
- package/dist/model/QubitroRoute.js +33 -33
- package/dist/model/RadRoute.js +31 -31
- package/dist/model/Repository.js +22 -22
- package/dist/model/Role.js +9 -9
- package/dist/model/RouteLog.js +38 -38
- package/dist/model/RouteTransformSettings.js +18 -18
- package/dist/model/S3ArchiveRoute.js +79 -79
- package/dist/model/SatellitePlan.js +26 -26
- package/dist/model/SchemaProperty.js +36 -38
- package/dist/model/SignalDevice200Response.js +5 -5
- package/dist/model/SimUsage.js +19 -19
- package/dist/model/SlackBearerNotification.js +25 -25
- package/dist/model/SlackRoute.js +48 -48
- package/dist/model/SlackWebHookNotification.js +20 -20
- package/dist/model/SnowflakeRoute.js +45 -45
- package/dist/model/SnowpipeStreamingRoute.js +223 -0
- package/dist/model/ThingworxRoute.js +33 -33
- package/dist/model/TowerLocation.js +54 -54
- package/dist/model/TwilioRoute.js +43 -43
- package/dist/model/UpdateFleetRequest.js +30 -30
- package/dist/model/UploadMetadata.js +64 -64
- package/dist/model/UsageData.js +18 -18
- package/dist/model/UsageEventsData.js +40 -29
- package/dist/model/UsageEventsResponse.js +11 -12
- package/dist/model/UsageRouteLogsData.js +27 -27
- package/dist/model/UsageSessionsData.js +27 -27
- package/dist/model/UserDfuStateMachine.js +20 -20
- package/dist/model/UserDfuStateMachineStatus.js +20 -20
- package/dist/model/UserFirmwareInfo.js +12 -12
- package/dist/model/WebhookSettings.js +15 -15
- package/package.json +3 -3
- package/dist/model/Notefile.js +0 -147
- package/dist/model/NotefileTemplate.js +0 -128
|
@@ -15,7 +15,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
15
15
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
16
16
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
17
17
|
* Notehub API
|
|
18
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
18
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
19
19
|
*
|
|
20
20
|
* The version of the OpenAPI document: 1.2.0
|
|
21
21
|
* Contact: engineering@blues.io
|
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* The S3ArchiveRoute model module.
|
|
30
30
|
* @module model/S3ArchiveRoute
|
|
31
|
-
* @version
|
|
31
|
+
* @version 3.0.0
|
|
32
32
|
*/
|
|
33
33
|
var S3ArchiveRoute = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -61,56 +61,56 @@ var S3ArchiveRoute = /*#__PURE__*/function () {
|
|
|
61
61
|
value: function constructFromObject(data, obj) {
|
|
62
62
|
if (data) {
|
|
63
63
|
obj = obj || new S3ArchiveRoute();
|
|
64
|
-
if (data.hasOwnProperty(
|
|
65
|
-
obj[
|
|
64
|
+
if (data.hasOwnProperty("archive_count_exceeds")) {
|
|
65
|
+
obj["archive_count_exceeds"] = _ApiClient["default"].convertToType(data["archive_count_exceeds"], "Number");
|
|
66
66
|
}
|
|
67
|
-
if (data.hasOwnProperty(
|
|
68
|
-
obj[
|
|
67
|
+
if (data.hasOwnProperty("archive_every_mins")) {
|
|
68
|
+
obj["archive_every_mins"] = _ApiClient["default"].convertToType(data["archive_every_mins"], "Number");
|
|
69
69
|
}
|
|
70
|
-
if (data.hasOwnProperty(
|
|
71
|
-
obj[
|
|
70
|
+
if (data.hasOwnProperty("archive_id")) {
|
|
71
|
+
obj["archive_id"] = _ApiClient["default"].convertToType(data["archive_id"], "String");
|
|
72
72
|
}
|
|
73
|
-
if (data.hasOwnProperty(
|
|
74
|
-
obj[
|
|
73
|
+
if (data.hasOwnProperty("bucket_endpoint")) {
|
|
74
|
+
obj["bucket_endpoint"] = _ApiClient["default"].convertToType(data["bucket_endpoint"], "String");
|
|
75
75
|
}
|
|
76
|
-
if (data.hasOwnProperty(
|
|
77
|
-
obj[
|
|
76
|
+
if (data.hasOwnProperty("bucket_name")) {
|
|
77
|
+
obj["bucket_name"] = _ApiClient["default"].convertToType(data["bucket_name"], "String");
|
|
78
78
|
}
|
|
79
|
-
if (data.hasOwnProperty(
|
|
80
|
-
obj[
|
|
79
|
+
if (data.hasOwnProperty("bucket_region")) {
|
|
80
|
+
obj["bucket_region"] = _ApiClient["default"].convertToType(data["bucket_region"], "String");
|
|
81
81
|
}
|
|
82
|
-
if (data.hasOwnProperty(
|
|
83
|
-
obj[
|
|
82
|
+
if (data.hasOwnProperty("file_access")) {
|
|
83
|
+
obj["file_access"] = _ApiClient["default"].convertToType(data["file_access"], "String");
|
|
84
84
|
}
|
|
85
|
-
if (data.hasOwnProperty(
|
|
86
|
-
obj[
|
|
85
|
+
if (data.hasOwnProperty("file_folder")) {
|
|
86
|
+
obj["file_folder"] = _ApiClient["default"].convertToType(data["file_folder"], "String");
|
|
87
87
|
}
|
|
88
|
-
if (data.hasOwnProperty(
|
|
89
|
-
obj[
|
|
88
|
+
if (data.hasOwnProperty("file_format")) {
|
|
89
|
+
obj["file_format"] = _ApiClient["default"].convertToType(data["file_format"], "String");
|
|
90
90
|
}
|
|
91
|
-
if (data.hasOwnProperty(
|
|
92
|
-
obj[
|
|
91
|
+
if (data.hasOwnProperty("filter")) {
|
|
92
|
+
obj["filter"] = _Filter["default"].constructFromObject(data["filter"]);
|
|
93
93
|
}
|
|
94
|
-
if (data.hasOwnProperty(
|
|
95
|
-
obj[
|
|
94
|
+
if (data.hasOwnProperty("fleets")) {
|
|
95
|
+
obj["fleets"] = _ApiClient["default"].convertToType(data["fleets"], ["String"]);
|
|
96
96
|
}
|
|
97
|
-
if (data.hasOwnProperty(
|
|
98
|
-
obj[
|
|
97
|
+
if (data.hasOwnProperty("key_id")) {
|
|
98
|
+
obj["key_id"] = _ApiClient["default"].convertToType(data["key_id"], "String");
|
|
99
99
|
}
|
|
100
|
-
if (data.hasOwnProperty(
|
|
101
|
-
obj[
|
|
100
|
+
if (data.hasOwnProperty("key_secret")) {
|
|
101
|
+
obj["key_secret"] = _ApiClient["default"].convertToType(data["key_secret"], "String");
|
|
102
102
|
}
|
|
103
|
-
if (data.hasOwnProperty(
|
|
104
|
-
obj[
|
|
103
|
+
if (data.hasOwnProperty("throttle_ms")) {
|
|
104
|
+
obj["throttle_ms"] = _ApiClient["default"].convertToType(data["throttle_ms"], "Number");
|
|
105
105
|
}
|
|
106
|
-
if (data.hasOwnProperty(
|
|
107
|
-
obj[
|
|
106
|
+
if (data.hasOwnProperty("timeout")) {
|
|
107
|
+
obj["timeout"] = _ApiClient["default"].convertToType(data["timeout"], "Number");
|
|
108
108
|
}
|
|
109
|
-
if (data.hasOwnProperty(
|
|
110
|
-
obj[
|
|
109
|
+
if (data.hasOwnProperty("transform")) {
|
|
110
|
+
obj["transform"] = _RouteTransformSettings["default"].constructFromObject(data["transform"]);
|
|
111
111
|
}
|
|
112
|
-
if (data.hasOwnProperty(
|
|
113
|
-
obj[
|
|
112
|
+
if (data.hasOwnProperty("url")) {
|
|
113
|
+
obj["url"] = _ApiClient["default"].convertToType(data["url"], "String");
|
|
114
114
|
}
|
|
115
115
|
} else if (data === null) {
|
|
116
116
|
return null;
|
|
@@ -127,58 +127,58 @@ var S3ArchiveRoute = /*#__PURE__*/function () {
|
|
|
127
127
|
key: "validateJSON",
|
|
128
128
|
value: function validateJSON(data) {
|
|
129
129
|
// ensure the json data is a string
|
|
130
|
-
if (data[
|
|
131
|
-
throw new Error("Expected the field `archive_id` to be a primitive type in the JSON string but got " + data[
|
|
130
|
+
if (data["archive_id"] && !(typeof data["archive_id"] === "string" || data["archive_id"] instanceof String)) {
|
|
131
|
+
throw new Error("Expected the field `archive_id` to be a primitive type in the JSON string but got " + data["archive_id"]);
|
|
132
132
|
}
|
|
133
133
|
// ensure the json data is a string
|
|
134
|
-
if (data[
|
|
135
|
-
throw new Error("Expected the field `bucket_endpoint` to be a primitive type in the JSON string but got " + data[
|
|
134
|
+
if (data["bucket_endpoint"] && !(typeof data["bucket_endpoint"] === "string" || data["bucket_endpoint"] instanceof String)) {
|
|
135
|
+
throw new Error("Expected the field `bucket_endpoint` to be a primitive type in the JSON string but got " + data["bucket_endpoint"]);
|
|
136
136
|
}
|
|
137
137
|
// ensure the json data is a string
|
|
138
|
-
if (data[
|
|
139
|
-
throw new Error("Expected the field `bucket_name` to be a primitive type in the JSON string but got " + data[
|
|
138
|
+
if (data["bucket_name"] && !(typeof data["bucket_name"] === "string" || data["bucket_name"] instanceof String)) {
|
|
139
|
+
throw new Error("Expected the field `bucket_name` to be a primitive type in the JSON string but got " + data["bucket_name"]);
|
|
140
140
|
}
|
|
141
141
|
// ensure the json data is a string
|
|
142
|
-
if (data[
|
|
143
|
-
throw new Error("Expected the field `bucket_region` to be a primitive type in the JSON string but got " + data[
|
|
142
|
+
if (data["bucket_region"] && !(typeof data["bucket_region"] === "string" || data["bucket_region"] instanceof String)) {
|
|
143
|
+
throw new Error("Expected the field `bucket_region` to be a primitive type in the JSON string but got " + data["bucket_region"]);
|
|
144
144
|
}
|
|
145
145
|
// ensure the json data is a string
|
|
146
|
-
if (data[
|
|
147
|
-
throw new Error("Expected the field `file_access` to be a primitive type in the JSON string but got " + data[
|
|
146
|
+
if (data["file_access"] && !(typeof data["file_access"] === "string" || data["file_access"] instanceof String)) {
|
|
147
|
+
throw new Error("Expected the field `file_access` to be a primitive type in the JSON string but got " + data["file_access"]);
|
|
148
148
|
}
|
|
149
149
|
// ensure the json data is a string
|
|
150
|
-
if (data[
|
|
151
|
-
throw new Error("Expected the field `file_folder` to be a primitive type in the JSON string but got " + data[
|
|
150
|
+
if (data["file_folder"] && !(typeof data["file_folder"] === "string" || data["file_folder"] instanceof String)) {
|
|
151
|
+
throw new Error("Expected the field `file_folder` to be a primitive type in the JSON string but got " + data["file_folder"]);
|
|
152
152
|
}
|
|
153
153
|
// ensure the json data is a string
|
|
154
|
-
if (data[
|
|
155
|
-
throw new Error("Expected the field `file_format` to be a primitive type in the JSON string but got " + data[
|
|
154
|
+
if (data["file_format"] && !(typeof data["file_format"] === "string" || data["file_format"] instanceof String)) {
|
|
155
|
+
throw new Error("Expected the field `file_format` to be a primitive type in the JSON string but got " + data["file_format"]);
|
|
156
156
|
}
|
|
157
157
|
// validate the optional field `filter`
|
|
158
|
-
if (data[
|
|
158
|
+
if (data["filter"]) {
|
|
159
159
|
// data not null
|
|
160
|
-
_Filter["default"].validateJSON(data[
|
|
160
|
+
_Filter["default"].validateJSON(data["filter"]);
|
|
161
161
|
}
|
|
162
162
|
// ensure the json data is an array
|
|
163
|
-
if (!Array.isArray(data[
|
|
164
|
-
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data[
|
|
163
|
+
if (!Array.isArray(data["fleets"])) {
|
|
164
|
+
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data["fleets"]);
|
|
165
165
|
}
|
|
166
166
|
// ensure the json data is a string
|
|
167
|
-
if (data[
|
|
168
|
-
throw new Error("Expected the field `key_id` to be a primitive type in the JSON string but got " + data[
|
|
167
|
+
if (data["key_id"] && !(typeof data["key_id"] === "string" || data["key_id"] instanceof String)) {
|
|
168
|
+
throw new Error("Expected the field `key_id` to be a primitive type in the JSON string but got " + data["key_id"]);
|
|
169
169
|
}
|
|
170
170
|
// ensure the json data is a string
|
|
171
|
-
if (data[
|
|
172
|
-
throw new Error("Expected the field `key_secret` to be a primitive type in the JSON string but got " + data[
|
|
171
|
+
if (data["key_secret"] && !(typeof data["key_secret"] === "string" || data["key_secret"] instanceof String)) {
|
|
172
|
+
throw new Error("Expected the field `key_secret` to be a primitive type in the JSON string but got " + data["key_secret"]);
|
|
173
173
|
}
|
|
174
174
|
// validate the optional field `transform`
|
|
175
|
-
if (data[
|
|
175
|
+
if (data["transform"]) {
|
|
176
176
|
// data not null
|
|
177
|
-
_RouteTransformSettings["default"].validateJSON(data[
|
|
177
|
+
_RouteTransformSettings["default"].validateJSON(data["transform"]);
|
|
178
178
|
}
|
|
179
179
|
// ensure the json data is a string
|
|
180
|
-
if (data[
|
|
181
|
-
throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data[
|
|
180
|
+
if (data["url"] && !(typeof data["url"] === "string" || data["url"] instanceof String)) {
|
|
181
|
+
throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data["url"]);
|
|
182
182
|
}
|
|
183
183
|
return true;
|
|
184
184
|
}
|
|
@@ -187,85 +187,85 @@ var S3ArchiveRoute = /*#__PURE__*/function () {
|
|
|
187
187
|
/**
|
|
188
188
|
* @member {Number} archive_count_exceeds
|
|
189
189
|
*/
|
|
190
|
-
S3ArchiveRoute.prototype[
|
|
190
|
+
S3ArchiveRoute.prototype["archive_count_exceeds"] = undefined;
|
|
191
191
|
|
|
192
192
|
/**
|
|
193
193
|
* @member {Number} archive_every_mins
|
|
194
194
|
*/
|
|
195
|
-
S3ArchiveRoute.prototype[
|
|
195
|
+
S3ArchiveRoute.prototype["archive_every_mins"] = undefined;
|
|
196
196
|
|
|
197
197
|
/**
|
|
198
198
|
* @member {String} archive_id
|
|
199
199
|
*/
|
|
200
|
-
S3ArchiveRoute.prototype[
|
|
200
|
+
S3ArchiveRoute.prototype["archive_id"] = undefined;
|
|
201
201
|
|
|
202
202
|
/**
|
|
203
203
|
* @member {String} bucket_endpoint
|
|
204
204
|
*/
|
|
205
|
-
S3ArchiveRoute.prototype[
|
|
205
|
+
S3ArchiveRoute.prototype["bucket_endpoint"] = undefined;
|
|
206
206
|
|
|
207
207
|
/**
|
|
208
208
|
* @member {String} bucket_name
|
|
209
209
|
*/
|
|
210
|
-
S3ArchiveRoute.prototype[
|
|
210
|
+
S3ArchiveRoute.prototype["bucket_name"] = undefined;
|
|
211
211
|
|
|
212
212
|
/**
|
|
213
213
|
* @member {String} bucket_region
|
|
214
214
|
*/
|
|
215
|
-
S3ArchiveRoute.prototype[
|
|
215
|
+
S3ArchiveRoute.prototype["bucket_region"] = undefined;
|
|
216
216
|
|
|
217
217
|
/**
|
|
218
218
|
* @member {String} file_access
|
|
219
219
|
*/
|
|
220
|
-
S3ArchiveRoute.prototype[
|
|
220
|
+
S3ArchiveRoute.prototype["file_access"] = undefined;
|
|
221
221
|
|
|
222
222
|
/**
|
|
223
223
|
* @member {String} file_folder
|
|
224
224
|
*/
|
|
225
|
-
S3ArchiveRoute.prototype[
|
|
225
|
+
S3ArchiveRoute.prototype["file_folder"] = undefined;
|
|
226
226
|
|
|
227
227
|
/**
|
|
228
228
|
* @member {String} file_format
|
|
229
229
|
*/
|
|
230
|
-
S3ArchiveRoute.prototype[
|
|
230
|
+
S3ArchiveRoute.prototype["file_format"] = undefined;
|
|
231
231
|
|
|
232
232
|
/**
|
|
233
233
|
* @member {module:model/Filter} filter
|
|
234
234
|
*/
|
|
235
|
-
S3ArchiveRoute.prototype[
|
|
235
|
+
S3ArchiveRoute.prototype["filter"] = undefined;
|
|
236
236
|
|
|
237
237
|
/**
|
|
238
238
|
* @member {Array.<String>} fleets
|
|
239
239
|
*/
|
|
240
|
-
S3ArchiveRoute.prototype[
|
|
240
|
+
S3ArchiveRoute.prototype["fleets"] = undefined;
|
|
241
241
|
|
|
242
242
|
/**
|
|
243
243
|
* @member {String} key_id
|
|
244
244
|
*/
|
|
245
|
-
S3ArchiveRoute.prototype[
|
|
245
|
+
S3ArchiveRoute.prototype["key_id"] = undefined;
|
|
246
246
|
|
|
247
247
|
/**
|
|
248
248
|
* @member {String} key_secret
|
|
249
249
|
*/
|
|
250
|
-
S3ArchiveRoute.prototype[
|
|
250
|
+
S3ArchiveRoute.prototype["key_secret"] = undefined;
|
|
251
251
|
|
|
252
252
|
/**
|
|
253
253
|
* @member {Number} throttle_ms
|
|
254
254
|
*/
|
|
255
|
-
S3ArchiveRoute.prototype[
|
|
255
|
+
S3ArchiveRoute.prototype["throttle_ms"] = undefined;
|
|
256
256
|
|
|
257
257
|
/**
|
|
258
258
|
* @member {Number} timeout
|
|
259
259
|
*/
|
|
260
|
-
S3ArchiveRoute.prototype[
|
|
260
|
+
S3ArchiveRoute.prototype["timeout"] = undefined;
|
|
261
261
|
|
|
262
262
|
/**
|
|
263
263
|
* @member {module:model/RouteTransformSettings} transform
|
|
264
264
|
*/
|
|
265
|
-
S3ArchiveRoute.prototype[
|
|
265
|
+
S3ArchiveRoute.prototype["transform"] = undefined;
|
|
266
266
|
|
|
267
267
|
/**
|
|
268
268
|
* @member {String} url
|
|
269
269
|
*/
|
|
270
|
-
S3ArchiveRoute.prototype[
|
|
270
|
+
S3ArchiveRoute.prototype["url"] = undefined;
|
|
271
271
|
var _default = exports["default"] = S3ArchiveRoute;
|
|
@@ -17,7 +17,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
17
17
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
18
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
19
19
|
* Notehub API
|
|
20
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
20
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
21
21
|
*
|
|
22
22
|
* The version of the OpenAPI document: 1.2.0
|
|
23
23
|
* Contact: engineering@blues.io
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The SatellitePlan model module.
|
|
32
32
|
* @module model/SatellitePlan
|
|
33
|
-
* @version
|
|
33
|
+
* @version 3.0.0
|
|
34
34
|
*/
|
|
35
35
|
var SatellitePlan = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -53,9 +53,9 @@ var SatellitePlan = /*#__PURE__*/function () {
|
|
|
53
53
|
return _createClass(SatellitePlan, null, [{
|
|
54
54
|
key: "initialize",
|
|
55
55
|
value: function initialize(obj, activated, ntnProvider, psid) {
|
|
56
|
-
obj[
|
|
57
|
-
obj[
|
|
58
|
-
obj[
|
|
56
|
+
obj["activated"] = activated;
|
|
57
|
+
obj["ntn_provider"] = ntnProvider;
|
|
58
|
+
obj["psid"] = psid;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
/**
|
|
@@ -70,20 +70,20 @@ var SatellitePlan = /*#__PURE__*/function () {
|
|
|
70
70
|
value: function constructFromObject(data, obj) {
|
|
71
71
|
if (data) {
|
|
72
72
|
obj = obj || new SatellitePlan();
|
|
73
|
-
if (data.hasOwnProperty(
|
|
74
|
-
obj[
|
|
73
|
+
if (data.hasOwnProperty("activated")) {
|
|
74
|
+
obj["activated"] = _ApiClient["default"].convertToType(data["activated"], "Number");
|
|
75
75
|
}
|
|
76
|
-
if (data.hasOwnProperty(
|
|
77
|
-
obj[
|
|
76
|
+
if (data.hasOwnProperty("billable_bytes")) {
|
|
77
|
+
obj["billable_bytes"] = _DataUsage["default"].constructFromObject(data["billable_bytes"]);
|
|
78
78
|
}
|
|
79
|
-
if (data.hasOwnProperty(
|
|
80
|
-
obj[
|
|
79
|
+
if (data.hasOwnProperty("last_updated")) {
|
|
80
|
+
obj["last_updated"] = _ApiClient["default"].convertToType(data["last_updated"], "Number");
|
|
81
81
|
}
|
|
82
|
-
if (data.hasOwnProperty(
|
|
83
|
-
obj[
|
|
82
|
+
if (data.hasOwnProperty("ntn_provider")) {
|
|
83
|
+
obj["ntn_provider"] = _ApiClient["default"].convertToType(data["ntn_provider"], "String");
|
|
84
84
|
}
|
|
85
|
-
if (data.hasOwnProperty(
|
|
86
|
-
obj[
|
|
85
|
+
if (data.hasOwnProperty("psid")) {
|
|
86
|
+
obj["psid"] = _ApiClient["default"].convertToType(data["psid"], "String");
|
|
87
87
|
}
|
|
88
88
|
} else if (data === null) {
|
|
89
89
|
return null;
|
|
@@ -115,17 +115,17 @@ var SatellitePlan = /*#__PURE__*/function () {
|
|
|
115
115
|
} finally {
|
|
116
116
|
_iterator.f();
|
|
117
117
|
}
|
|
118
|
-
if (data[
|
|
118
|
+
if (data["billable_bytes"]) {
|
|
119
119
|
// data not null
|
|
120
|
-
_DataUsage["default"].validateJSON(data[
|
|
120
|
+
_DataUsage["default"].validateJSON(data["billable_bytes"]);
|
|
121
121
|
}
|
|
122
122
|
// ensure the json data is a string
|
|
123
|
-
if (data[
|
|
124
|
-
throw new Error("Expected the field `ntn_provider` to be a primitive type in the JSON string but got " + data[
|
|
123
|
+
if (data["ntn_provider"] && !(typeof data["ntn_provider"] === "string" || data["ntn_provider"] instanceof String)) {
|
|
124
|
+
throw new Error("Expected the field `ntn_provider` to be a primitive type in the JSON string but got " + data["ntn_provider"]);
|
|
125
125
|
}
|
|
126
126
|
// ensure the json data is a string
|
|
127
|
-
if (data[
|
|
128
|
-
throw new Error("Expected the field `psid` to be a primitive type in the JSON string but got " + data[
|
|
127
|
+
if (data["psid"] && !(typeof data["psid"] === "string" || data["psid"] instanceof String)) {
|
|
128
|
+
throw new Error("Expected the field `psid` to be a primitive type in the JSON string but got " + data["psid"]);
|
|
129
129
|
}
|
|
130
130
|
return true;
|
|
131
131
|
}
|
|
@@ -137,28 +137,28 @@ SatellitePlan.RequiredProperties = ["activated", "ntn_provider", "psid"];
|
|
|
137
137
|
* Activation date of the satellite plan as Unix timestamp
|
|
138
138
|
* @member {Number} activated
|
|
139
139
|
*/
|
|
140
|
-
SatellitePlan.prototype[
|
|
140
|
+
SatellitePlan.prototype["activated"] = undefined;
|
|
141
141
|
|
|
142
142
|
/**
|
|
143
143
|
* @member {module:model/DataUsage} billable_bytes
|
|
144
144
|
*/
|
|
145
|
-
SatellitePlan.prototype[
|
|
145
|
+
SatellitePlan.prototype["billable_bytes"] = undefined;
|
|
146
146
|
|
|
147
147
|
/**
|
|
148
148
|
* Time this plan information was last updated
|
|
149
149
|
* @member {Number} last_updated
|
|
150
150
|
*/
|
|
151
|
-
SatellitePlan.prototype[
|
|
151
|
+
SatellitePlan.prototype["last_updated"] = undefined;
|
|
152
152
|
|
|
153
153
|
/**
|
|
154
154
|
* Non-Terrestrial Network provider name
|
|
155
155
|
* @member {String} ntn_provider
|
|
156
156
|
*/
|
|
157
|
-
SatellitePlan.prototype[
|
|
157
|
+
SatellitePlan.prototype["ntn_provider"] = undefined;
|
|
158
158
|
|
|
159
159
|
/**
|
|
160
160
|
* Provider-specific identifier for the satellite subscription
|
|
161
161
|
* @member {String} psid
|
|
162
162
|
*/
|
|
163
|
-
SatellitePlan.prototype[
|
|
163
|
+
SatellitePlan.prototype["psid"] = undefined;
|
|
164
164
|
var _default = exports["default"] = SatellitePlan;
|
|
@@ -16,7 +16,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
17
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
18
18
|
* Notehub API
|
|
19
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
19
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
20
20
|
*
|
|
21
21
|
* The version of the OpenAPI document: 1.2.0
|
|
22
22
|
* Contact: engineering@blues.io
|
|
@@ -29,13 +29,13 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The SchemaProperty model module.
|
|
31
31
|
* @module model/SchemaProperty
|
|
32
|
-
* @version
|
|
32
|
+
* @version 3.0.0
|
|
33
33
|
*/
|
|
34
34
|
var SchemaProperty = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>SchemaProperty</code>.
|
|
37
37
|
* @alias module:model/SchemaProperty
|
|
38
|
-
* @param type {module:model/SchemaProperty.TypeEnum}
|
|
38
|
+
* @param type {module:model/SchemaProperty.TypeEnum}
|
|
39
39
|
*/
|
|
40
40
|
function SchemaProperty(type) {
|
|
41
41
|
_classCallCheck(this, SchemaProperty);
|
|
@@ -50,7 +50,7 @@ var SchemaProperty = /*#__PURE__*/function () {
|
|
|
50
50
|
return _createClass(SchemaProperty, null, [{
|
|
51
51
|
key: "initialize",
|
|
52
52
|
value: function initialize(obj, type) {
|
|
53
|
-
obj[
|
|
53
|
+
obj["type"] = type;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
/**
|
|
@@ -65,20 +65,20 @@ var SchemaProperty = /*#__PURE__*/function () {
|
|
|
65
65
|
value: function constructFromObject(data, obj) {
|
|
66
66
|
if (data) {
|
|
67
67
|
obj = obj || new SchemaProperty();
|
|
68
|
-
if (data.hasOwnProperty(
|
|
69
|
-
obj[
|
|
68
|
+
if (data.hasOwnProperty("items")) {
|
|
69
|
+
obj["items"] = _ApiClient["default"].convertToType(data["items"], [SchemaProperty]);
|
|
70
70
|
}
|
|
71
|
-
if (data.hasOwnProperty(
|
|
72
|
-
obj[
|
|
71
|
+
if (data.hasOwnProperty("name")) {
|
|
72
|
+
obj["name"] = _ApiClient["default"].convertToType(data["name"], "String");
|
|
73
73
|
}
|
|
74
|
-
if (data.hasOwnProperty(
|
|
75
|
-
obj[
|
|
74
|
+
if (data.hasOwnProperty("properties")) {
|
|
75
|
+
obj["properties"] = _ApiClient["default"].convertToType(data["properties"], [SchemaProperty]);
|
|
76
76
|
}
|
|
77
|
-
if (data.hasOwnProperty(
|
|
78
|
-
obj[
|
|
77
|
+
if (data.hasOwnProperty("type")) {
|
|
78
|
+
obj["type"] = _ApiClient["default"].convertToType(data["type"], "String");
|
|
79
79
|
}
|
|
80
|
-
if (data.hasOwnProperty(
|
|
81
|
-
obj[
|
|
80
|
+
if (data.hasOwnProperty("updated_at")) {
|
|
81
|
+
obj["updated_at"] = _ApiClient["default"].convertToType(data["updated_at"], "Date");
|
|
82
82
|
}
|
|
83
83
|
} else if (data === null) {
|
|
84
84
|
return null;
|
|
@@ -109,14 +109,14 @@ var SchemaProperty = /*#__PURE__*/function () {
|
|
|
109
109
|
} finally {
|
|
110
110
|
_iterator.f();
|
|
111
111
|
}
|
|
112
|
-
if (data[
|
|
112
|
+
if (data["items"]) {
|
|
113
113
|
// data not null
|
|
114
114
|
// ensure the json data is an array
|
|
115
|
-
if (!Array.isArray(data[
|
|
116
|
-
throw new Error("Expected the field `items` to be an array in the JSON data but got " + data[
|
|
115
|
+
if (!Array.isArray(data["items"])) {
|
|
116
|
+
throw new Error("Expected the field `items` to be an array in the JSON data but got " + data["items"]);
|
|
117
117
|
}
|
|
118
118
|
// validate the optional field `items` (array)
|
|
119
|
-
var _iterator2 = _createForOfIteratorHelper(data[
|
|
119
|
+
var _iterator2 = _createForOfIteratorHelper(data["items"]),
|
|
120
120
|
_step2;
|
|
121
121
|
try {
|
|
122
122
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -128,20 +128,19 @@ var SchemaProperty = /*#__PURE__*/function () {
|
|
|
128
128
|
} finally {
|
|
129
129
|
_iterator2.f();
|
|
130
130
|
}
|
|
131
|
-
;
|
|
132
131
|
}
|
|
133
132
|
// ensure the json data is a string
|
|
134
|
-
if (data[
|
|
135
|
-
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data[
|
|
133
|
+
if (data["name"] && !(typeof data["name"] === "string" || data["name"] instanceof String)) {
|
|
134
|
+
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data["name"]);
|
|
136
135
|
}
|
|
137
|
-
if (data[
|
|
136
|
+
if (data["properties"]) {
|
|
138
137
|
// data not null
|
|
139
138
|
// ensure the json data is an array
|
|
140
|
-
if (!Array.isArray(data[
|
|
141
|
-
throw new Error("Expected the field `properties` to be an array in the JSON data but got " + data[
|
|
139
|
+
if (!Array.isArray(data["properties"])) {
|
|
140
|
+
throw new Error("Expected the field `properties` to be an array in the JSON data but got " + data["properties"]);
|
|
142
141
|
}
|
|
143
142
|
// validate the optional field `properties` (array)
|
|
144
|
-
var _iterator3 = _createForOfIteratorHelper(data[
|
|
143
|
+
var _iterator3 = _createForOfIteratorHelper(data["properties"]),
|
|
145
144
|
_step3;
|
|
146
145
|
try {
|
|
147
146
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -153,11 +152,10 @@ var SchemaProperty = /*#__PURE__*/function () {
|
|
|
153
152
|
} finally {
|
|
154
153
|
_iterator3.f();
|
|
155
154
|
}
|
|
156
|
-
;
|
|
157
155
|
}
|
|
158
156
|
// ensure the json data is a string
|
|
159
|
-
if (data[
|
|
160
|
-
throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data[
|
|
157
|
+
if (data["type"] && !(typeof data["type"] === "string" || data["type"] instanceof String)) {
|
|
158
|
+
throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data["type"]);
|
|
161
159
|
}
|
|
162
160
|
return true;
|
|
163
161
|
}
|
|
@@ -169,46 +167,46 @@ SchemaProperty.RequiredProperties = ["type"];
|
|
|
169
167
|
* Used if type is array
|
|
170
168
|
* @member {Array.<module:model/SchemaProperty>} items
|
|
171
169
|
*/
|
|
172
|
-
SchemaProperty.prototype[
|
|
170
|
+
SchemaProperty.prototype["items"] = undefined;
|
|
173
171
|
|
|
174
172
|
/**
|
|
175
173
|
* Name of the field (optional for array/object children)
|
|
176
174
|
* @member {String} name
|
|
177
175
|
*/
|
|
178
|
-
SchemaProperty.prototype[
|
|
176
|
+
SchemaProperty.prototype["name"] = undefined;
|
|
179
177
|
|
|
180
178
|
/**
|
|
181
179
|
* Used if type is object
|
|
182
180
|
* @member {Array.<module:model/SchemaProperty>} properties
|
|
183
181
|
*/
|
|
184
|
-
SchemaProperty.prototype[
|
|
182
|
+
SchemaProperty.prototype["properties"] = undefined;
|
|
185
183
|
|
|
186
184
|
/**
|
|
187
185
|
* @member {module:model/SchemaProperty.TypeEnum} type
|
|
188
186
|
*/
|
|
189
|
-
SchemaProperty.prototype[
|
|
187
|
+
SchemaProperty.prototype["type"] = undefined;
|
|
190
188
|
|
|
191
189
|
/**
|
|
192
190
|
* @member {Date} updated_at
|
|
193
191
|
*/
|
|
194
|
-
SchemaProperty.prototype[
|
|
192
|
+
SchemaProperty.prototype["updated_at"] = undefined;
|
|
195
193
|
|
|
196
194
|
/**
|
|
197
195
|
* Allowed values for the <code>type</code> property.
|
|
198
196
|
* @enum {String}
|
|
199
197
|
* @readonly
|
|
200
198
|
*/
|
|
201
|
-
SchemaProperty[
|
|
199
|
+
SchemaProperty["TypeEnum"] = {
|
|
202
200
|
/**
|
|
203
201
|
* value: "string"
|
|
204
202
|
* @const
|
|
205
203
|
*/
|
|
206
|
-
|
|
204
|
+
string: "string",
|
|
207
205
|
/**
|
|
208
206
|
* value: "number"
|
|
209
207
|
* @const
|
|
210
208
|
*/
|
|
211
|
-
|
|
209
|
+
number: "number",
|
|
212
210
|
/**
|
|
213
211
|
* value: "boolean"
|
|
214
212
|
* @const
|
|
@@ -218,11 +216,11 @@ SchemaProperty['TypeEnum'] = {
|
|
|
218
216
|
* value: "array"
|
|
219
217
|
* @const
|
|
220
218
|
*/
|
|
221
|
-
|
|
219
|
+
array: "array",
|
|
222
220
|
/**
|
|
223
221
|
* value: "object"
|
|
224
222
|
* @const
|
|
225
223
|
*/
|
|
226
|
-
|
|
224
|
+
object: "object"
|
|
227
225
|
};
|
|
228
226
|
var _default = exports["default"] = SchemaProperty;
|