@blues-inc/notehub-js 2.2.0-beta.9 → 2.2.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 +241 -249
- 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 +370 -382
- 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 +381 -381
- package/dist/api/RouteApi.js +77 -77
- package/dist/api/UsageApi.js +51 -51
- package/dist/api/WebhookApi.js +51 -51
- 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/DeleteDeviceFleetsRequest.js +8 -8
- 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/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/GetDeviceLatest200Response.js +9 -10
- package/dist/model/GetDevicePlans200Response.js +9 -10
- package/dist/model/GetDevicePublicKey200Response.js +16 -16
- package/dist/model/GetDeviceSessions200Response.js +16 -17
- package/dist/model/GetProducts200Response.js +9 -10
- package/dist/model/GetProjectDevicePublicKeys200Response.js +16 -17
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
- package/dist/model/GetProjectDevices200Response.js +16 -17
- package/dist/model/GetProjectEvents200Response.js +20 -21
- package/dist/model/GetProjectEventsByCursor200Response.js +23 -24
- 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/HandleNoteChanges200Response.js +11 -11
- package/dist/model/HandleNoteGet200Response.js +13 -13
- package/dist/model/HandleNoteSignal200Response.js +5 -5
- package/dist/model/HandleNotefileChanges200Response.js +11 -11
- package/dist/model/HandleNotefileChangesPending200Response.js +14 -14
- package/dist/model/HandleNotefileDeleteRequest.js +7 -7
- package/dist/model/HttpRoute.js +35 -35
- 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 +10 -10
- package/dist/model/NotefileSchema.js +18 -19
- package/dist/model/NotehubRoute.js +98 -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/PostProvisionProjectDeviceRequest.js +18 -18
- package/dist/model/Product.js +26 -26
- package/dist/model/Project.js +34 -34
- package/dist/model/ProjectMember.js +22 -22
- package/dist/model/ProxyRoute.js +24 -24
- package/dist/model/PutDeviceFleetsRequest.js +8 -8
- 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 +13 -13
- package/dist/model/S3ArchiveRoute.js +79 -79
- package/dist/model/SatellitePlan.js +26 -26
- package/dist/model/SchemaProperty.js +36 -38
- 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/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 +44 -31
- package/dist/model/UsageEventsResponse.js +11 -12
- package/dist/model/UsageRouteLogsData.js +28 -28
- 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
|
@@ -13,7 +13,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
13
13
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
14
|
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); } /**
|
|
15
15
|
* Notehub API
|
|
16
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
16
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
17
17
|
*
|
|
18
18
|
* The version of the OpenAPI document: 1.2.0
|
|
19
19
|
* Contact: engineering@blues.io
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The TowerLocation model module.
|
|
28
28
|
* @module model/TowerLocation
|
|
29
|
-
* @version 2.2.
|
|
29
|
+
* @version 2.2.1
|
|
30
30
|
*/
|
|
31
31
|
var TowerLocation = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -59,47 +59,47 @@ var TowerLocation = /*#__PURE__*/function () {
|
|
|
59
59
|
value: function constructFromObject(data, obj) {
|
|
60
60
|
if (data) {
|
|
61
61
|
obj = obj || new TowerLocation();
|
|
62
|
-
if (data.hasOwnProperty(
|
|
63
|
-
obj[
|
|
62
|
+
if (data.hasOwnProperty("c")) {
|
|
63
|
+
obj["c"] = _ApiClient["default"].convertToType(data["c"], "String");
|
|
64
64
|
}
|
|
65
|
-
if (data.hasOwnProperty(
|
|
66
|
-
obj[
|
|
65
|
+
if (data.hasOwnProperty("cid")) {
|
|
66
|
+
obj["cid"] = _ApiClient["default"].convertToType(data["cid"], "Number");
|
|
67
67
|
}
|
|
68
|
-
if (data.hasOwnProperty(
|
|
69
|
-
obj[
|
|
68
|
+
if (data.hasOwnProperty("l")) {
|
|
69
|
+
obj["l"] = _ApiClient["default"].convertToType(data["l"], "String");
|
|
70
70
|
}
|
|
71
|
-
if (data.hasOwnProperty(
|
|
72
|
-
obj[
|
|
71
|
+
if (data.hasOwnProperty("lac")) {
|
|
72
|
+
obj["lac"] = _ApiClient["default"].convertToType(data["lac"], "Number");
|
|
73
73
|
}
|
|
74
|
-
if (data.hasOwnProperty(
|
|
75
|
-
obj[
|
|
74
|
+
if (data.hasOwnProperty("lat")) {
|
|
75
|
+
obj["lat"] = _ApiClient["default"].convertToType(data["lat"], "Number");
|
|
76
76
|
}
|
|
77
|
-
if (data.hasOwnProperty(
|
|
78
|
-
obj[
|
|
77
|
+
if (data.hasOwnProperty("lon")) {
|
|
78
|
+
obj["lon"] = _ApiClient["default"].convertToType(data["lon"], "Number");
|
|
79
79
|
}
|
|
80
|
-
if (data.hasOwnProperty(
|
|
81
|
-
obj[
|
|
80
|
+
if (data.hasOwnProperty("mcc")) {
|
|
81
|
+
obj["mcc"] = _ApiClient["default"].convertToType(data["mcc"], "Number");
|
|
82
82
|
}
|
|
83
|
-
if (data.hasOwnProperty(
|
|
84
|
-
obj[
|
|
83
|
+
if (data.hasOwnProperty("mnc")) {
|
|
84
|
+
obj["mnc"] = _ApiClient["default"].convertToType(data["mnc"], "Number");
|
|
85
85
|
}
|
|
86
|
-
if (data.hasOwnProperty(
|
|
87
|
-
obj[
|
|
86
|
+
if (data.hasOwnProperty("n")) {
|
|
87
|
+
obj["n"] = _ApiClient["default"].convertToType(data["n"], "String");
|
|
88
88
|
}
|
|
89
|
-
if (data.hasOwnProperty(
|
|
90
|
-
obj[
|
|
89
|
+
if (data.hasOwnProperty("source")) {
|
|
90
|
+
obj["source"] = _ApiClient["default"].convertToType(data["source"], "String");
|
|
91
91
|
}
|
|
92
|
-
if (data.hasOwnProperty(
|
|
93
|
-
obj[
|
|
92
|
+
if (data.hasOwnProperty("time")) {
|
|
93
|
+
obj["time"] = _ApiClient["default"].convertToType(data["time"], "Number");
|
|
94
94
|
}
|
|
95
|
-
if (data.hasOwnProperty(
|
|
96
|
-
obj[
|
|
95
|
+
if (data.hasOwnProperty("towers")) {
|
|
96
|
+
obj["towers"] = _ApiClient["default"].convertToType(data["towers"], "Number");
|
|
97
97
|
}
|
|
98
|
-
if (data.hasOwnProperty(
|
|
99
|
-
obj[
|
|
98
|
+
if (data.hasOwnProperty("z")) {
|
|
99
|
+
obj["z"] = _ApiClient["default"].convertToType(data["z"], "Number");
|
|
100
100
|
}
|
|
101
|
-
if (data.hasOwnProperty(
|
|
102
|
-
obj[
|
|
101
|
+
if (data.hasOwnProperty("zone")) {
|
|
102
|
+
obj["zone"] = _ApiClient["default"].convertToType(data["zone"], "String");
|
|
103
103
|
}
|
|
104
104
|
} else if (data === null) {
|
|
105
105
|
return null;
|
|
@@ -116,24 +116,24 @@ var TowerLocation = /*#__PURE__*/function () {
|
|
|
116
116
|
key: "validateJSON",
|
|
117
117
|
value: function validateJSON(data) {
|
|
118
118
|
// ensure the json data is a string
|
|
119
|
-
if (data[
|
|
120
|
-
throw new Error("Expected the field `c` to be a primitive type in the JSON string but got " + data[
|
|
119
|
+
if (data["c"] && !(typeof data["c"] === "string" || data["c"] instanceof String)) {
|
|
120
|
+
throw new Error("Expected the field `c` to be a primitive type in the JSON string but got " + data["c"]);
|
|
121
121
|
}
|
|
122
122
|
// ensure the json data is a string
|
|
123
|
-
if (data[
|
|
124
|
-
throw new Error("Expected the field `l` to be a primitive type in the JSON string but got " + data[
|
|
123
|
+
if (data["l"] && !(typeof data["l"] === "string" || data["l"] instanceof String)) {
|
|
124
|
+
throw new Error("Expected the field `l` to be a primitive type in the JSON string but got " + data["l"]);
|
|
125
125
|
}
|
|
126
126
|
// ensure the json data is a string
|
|
127
|
-
if (data[
|
|
128
|
-
throw new Error("Expected the field `n` to be a primitive type in the JSON string but got " + data[
|
|
127
|
+
if (data["n"] && !(typeof data["n"] === "string" || data["n"] instanceof String)) {
|
|
128
|
+
throw new Error("Expected the field `n` to be a primitive type in the JSON string but got " + data["n"]);
|
|
129
129
|
}
|
|
130
130
|
// ensure the json data is a string
|
|
131
|
-
if (data[
|
|
132
|
-
throw new Error("Expected the field `source` to be a primitive type in the JSON string but got " + data[
|
|
131
|
+
if (data["source"] && !(typeof data["source"] === "string" || data["source"] instanceof String)) {
|
|
132
|
+
throw new Error("Expected the field `source` to be a primitive type in the JSON string but got " + data["source"]);
|
|
133
133
|
}
|
|
134
134
|
// ensure the json data is a string
|
|
135
|
-
if (data[
|
|
136
|
-
throw new Error("Expected the field `zone` to be a primitive type in the JSON string but got " + data[
|
|
135
|
+
if (data["zone"] && !(typeof data["zone"] === "string" || data["zone"] instanceof String)) {
|
|
136
|
+
throw new Error("Expected the field `zone` to be a primitive type in the JSON string but got " + data["zone"]);
|
|
137
137
|
}
|
|
138
138
|
return true;
|
|
139
139
|
}
|
|
@@ -143,83 +143,83 @@ var TowerLocation = /*#__PURE__*/function () {
|
|
|
143
143
|
* Country code
|
|
144
144
|
* @member {String} c
|
|
145
145
|
*/
|
|
146
|
-
TowerLocation.prototype[
|
|
146
|
+
TowerLocation.prototype["c"] = undefined;
|
|
147
147
|
|
|
148
148
|
/**
|
|
149
149
|
* Cell ID
|
|
150
150
|
* @member {Number} cid
|
|
151
151
|
*/
|
|
152
|
-
TowerLocation.prototype[
|
|
152
|
+
TowerLocation.prototype["cid"] = undefined;
|
|
153
153
|
|
|
154
154
|
/**
|
|
155
155
|
* Open Location Code
|
|
156
156
|
* @member {String} l
|
|
157
157
|
*/
|
|
158
|
-
TowerLocation.prototype[
|
|
158
|
+
TowerLocation.prototype["l"] = undefined;
|
|
159
159
|
|
|
160
160
|
/**
|
|
161
161
|
* Location Area Code
|
|
162
162
|
* @member {Number} lac
|
|
163
163
|
*/
|
|
164
|
-
TowerLocation.prototype[
|
|
164
|
+
TowerLocation.prototype["lac"] = undefined;
|
|
165
165
|
|
|
166
166
|
/**
|
|
167
167
|
* Latitude
|
|
168
168
|
* @member {Number} lat
|
|
169
169
|
*/
|
|
170
|
-
TowerLocation.prototype[
|
|
170
|
+
TowerLocation.prototype["lat"] = undefined;
|
|
171
171
|
|
|
172
172
|
/**
|
|
173
173
|
* Longitude
|
|
174
174
|
* @member {Number} lon
|
|
175
175
|
*/
|
|
176
|
-
TowerLocation.prototype[
|
|
176
|
+
TowerLocation.prototype["lon"] = undefined;
|
|
177
177
|
|
|
178
178
|
/**
|
|
179
179
|
* Mobile Country Code
|
|
180
180
|
* @member {Number} mcc
|
|
181
181
|
*/
|
|
182
|
-
TowerLocation.prototype[
|
|
182
|
+
TowerLocation.prototype["mcc"] = undefined;
|
|
183
183
|
|
|
184
184
|
/**
|
|
185
185
|
* Mobile Network Code
|
|
186
186
|
* @member {Number} mnc
|
|
187
187
|
*/
|
|
188
|
-
TowerLocation.prototype[
|
|
188
|
+
TowerLocation.prototype["mnc"] = undefined;
|
|
189
189
|
|
|
190
190
|
/**
|
|
191
191
|
* Name of the location
|
|
192
192
|
* @member {String} n
|
|
193
193
|
*/
|
|
194
|
-
TowerLocation.prototype[
|
|
194
|
+
TowerLocation.prototype["n"] = undefined;
|
|
195
195
|
|
|
196
196
|
/**
|
|
197
197
|
* The source of this location
|
|
198
198
|
* @member {String} source
|
|
199
199
|
*/
|
|
200
|
-
TowerLocation.prototype[
|
|
200
|
+
TowerLocation.prototype["source"] = undefined;
|
|
201
201
|
|
|
202
202
|
/**
|
|
203
203
|
* Unix timestamp when this location was ascertained
|
|
204
204
|
* @member {Number} time
|
|
205
205
|
*/
|
|
206
|
-
TowerLocation.prototype[
|
|
206
|
+
TowerLocation.prototype["time"] = undefined;
|
|
207
207
|
|
|
208
208
|
/**
|
|
209
209
|
* Number of triangulation points
|
|
210
210
|
* @member {Number} towers
|
|
211
211
|
*/
|
|
212
|
-
TowerLocation.prototype[
|
|
212
|
+
TowerLocation.prototype["towers"] = undefined;
|
|
213
213
|
|
|
214
214
|
/**
|
|
215
215
|
* Timezone ID
|
|
216
216
|
* @member {Number} z
|
|
217
217
|
*/
|
|
218
|
-
TowerLocation.prototype[
|
|
218
|
+
TowerLocation.prototype["z"] = undefined;
|
|
219
219
|
|
|
220
220
|
/**
|
|
221
221
|
* Timezone name
|
|
222
222
|
* @member {String} zone
|
|
223
223
|
*/
|
|
224
|
-
TowerLocation.prototype[
|
|
224
|
+
TowerLocation.prototype["zone"] = undefined;
|
|
225
225
|
var _default = exports["default"] = TowerLocation;
|
|
@@ -14,7 +14,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
14
14
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
15
15
|
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); } /**
|
|
16
16
|
* Notehub API
|
|
17
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
17
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
18
18
|
*
|
|
19
19
|
* The version of the OpenAPI document: 1.2.0
|
|
20
20
|
* Contact: engineering@blues.io
|
|
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
27
27
|
/**
|
|
28
28
|
* The TwilioRoute model module.
|
|
29
29
|
* @module model/TwilioRoute
|
|
30
|
-
* @version 2.2.
|
|
30
|
+
* @version 2.2.1
|
|
31
31
|
*/
|
|
32
32
|
var TwilioRoute = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
|
@@ -60,32 +60,32 @@ var TwilioRoute = /*#__PURE__*/function () {
|
|
|
60
60
|
value: function constructFromObject(data, obj) {
|
|
61
61
|
if (data) {
|
|
62
62
|
obj = obj || new TwilioRoute();
|
|
63
|
-
if (data.hasOwnProperty(
|
|
64
|
-
obj[
|
|
63
|
+
if (data.hasOwnProperty("account_sid")) {
|
|
64
|
+
obj["account_sid"] = _ApiClient["default"].convertToType(data["account_sid"], "String");
|
|
65
65
|
}
|
|
66
|
-
if (data.hasOwnProperty(
|
|
67
|
-
obj[
|
|
66
|
+
if (data.hasOwnProperty("auth_token")) {
|
|
67
|
+
obj["auth_token"] = _ApiClient["default"].convertToType(data["auth_token"], "String");
|
|
68
68
|
}
|
|
69
|
-
if (data.hasOwnProperty(
|
|
70
|
-
obj[
|
|
69
|
+
if (data.hasOwnProperty("filter")) {
|
|
70
|
+
obj["filter"] = _Filter["default"].constructFromObject(data["filter"]);
|
|
71
71
|
}
|
|
72
|
-
if (data.hasOwnProperty(
|
|
73
|
-
obj[
|
|
72
|
+
if (data.hasOwnProperty("fleets")) {
|
|
73
|
+
obj["fleets"] = _ApiClient["default"].convertToType(data["fleets"], ["String"]);
|
|
74
74
|
}
|
|
75
|
-
if (data.hasOwnProperty(
|
|
76
|
-
obj[
|
|
75
|
+
if (data.hasOwnProperty("from")) {
|
|
76
|
+
obj["from"] = _ApiClient["default"].convertToType(data["from"], "String");
|
|
77
77
|
}
|
|
78
|
-
if (data.hasOwnProperty(
|
|
79
|
-
obj[
|
|
78
|
+
if (data.hasOwnProperty("message")) {
|
|
79
|
+
obj["message"] = _ApiClient["default"].convertToType(data["message"], "String");
|
|
80
80
|
}
|
|
81
|
-
if (data.hasOwnProperty(
|
|
82
|
-
obj[
|
|
81
|
+
if (data.hasOwnProperty("throttle_ms")) {
|
|
82
|
+
obj["throttle_ms"] = _ApiClient["default"].convertToType(data["throttle_ms"], "Number");
|
|
83
83
|
}
|
|
84
|
-
if (data.hasOwnProperty(
|
|
85
|
-
obj[
|
|
84
|
+
if (data.hasOwnProperty("timeout")) {
|
|
85
|
+
obj["timeout"] = _ApiClient["default"].convertToType(data["timeout"], "Number");
|
|
86
86
|
}
|
|
87
|
-
if (data.hasOwnProperty(
|
|
88
|
-
obj[
|
|
87
|
+
if (data.hasOwnProperty("to")) {
|
|
88
|
+
obj["to"] = _ApiClient["default"].convertToType(data["to"], "String");
|
|
89
89
|
}
|
|
90
90
|
} else if (data === null) {
|
|
91
91
|
return null;
|
|
@@ -102,33 +102,33 @@ var TwilioRoute = /*#__PURE__*/function () {
|
|
|
102
102
|
key: "validateJSON",
|
|
103
103
|
value: function validateJSON(data) {
|
|
104
104
|
// ensure the json data is a string
|
|
105
|
-
if (data[
|
|
106
|
-
throw new Error("Expected the field `account_sid` to be a primitive type in the JSON string but got " + data[
|
|
105
|
+
if (data["account_sid"] && !(typeof data["account_sid"] === "string" || data["account_sid"] instanceof String)) {
|
|
106
|
+
throw new Error("Expected the field `account_sid` to be a primitive type in the JSON string but got " + data["account_sid"]);
|
|
107
107
|
}
|
|
108
108
|
// ensure the json data is a string
|
|
109
|
-
if (data[
|
|
110
|
-
throw new Error("Expected the field `auth_token` to be a primitive type in the JSON string but got " + data[
|
|
109
|
+
if (data["auth_token"] && !(typeof data["auth_token"] === "string" || data["auth_token"] instanceof String)) {
|
|
110
|
+
throw new Error("Expected the field `auth_token` to be a primitive type in the JSON string but got " + data["auth_token"]);
|
|
111
111
|
}
|
|
112
112
|
// validate the optional field `filter`
|
|
113
|
-
if (data[
|
|
113
|
+
if (data["filter"]) {
|
|
114
114
|
// data not null
|
|
115
|
-
_Filter["default"].validateJSON(data[
|
|
115
|
+
_Filter["default"].validateJSON(data["filter"]);
|
|
116
116
|
}
|
|
117
117
|
// ensure the json data is an array
|
|
118
|
-
if (!Array.isArray(data[
|
|
119
|
-
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data[
|
|
118
|
+
if (!Array.isArray(data["fleets"])) {
|
|
119
|
+
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data["fleets"]);
|
|
120
120
|
}
|
|
121
121
|
// ensure the json data is a string
|
|
122
|
-
if (data[
|
|
123
|
-
throw new Error("Expected the field `from` to be a primitive type in the JSON string but got " + data[
|
|
122
|
+
if (data["from"] && !(typeof data["from"] === "string" || data["from"] instanceof String)) {
|
|
123
|
+
throw new Error("Expected the field `from` to be a primitive type in the JSON string but got " + data["from"]);
|
|
124
124
|
}
|
|
125
125
|
// ensure the json data is a string
|
|
126
|
-
if (data[
|
|
127
|
-
throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data[
|
|
126
|
+
if (data["message"] && !(typeof data["message"] === "string" || data["message"] instanceof String)) {
|
|
127
|
+
throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data["message"]);
|
|
128
128
|
}
|
|
129
129
|
// ensure the json data is a string
|
|
130
|
-
if (data[
|
|
131
|
-
throw new Error("Expected the field `to` to be a primitive type in the JSON string but got " + data[
|
|
130
|
+
if (data["to"] && !(typeof data["to"] === "string" || data["to"] instanceof String)) {
|
|
131
|
+
throw new Error("Expected the field `to` to be a primitive type in the JSON string but got " + data["to"]);
|
|
132
132
|
}
|
|
133
133
|
return true;
|
|
134
134
|
}
|
|
@@ -137,45 +137,45 @@ var TwilioRoute = /*#__PURE__*/function () {
|
|
|
137
137
|
/**
|
|
138
138
|
* @member {String} account_sid
|
|
139
139
|
*/
|
|
140
|
-
TwilioRoute.prototype[
|
|
140
|
+
TwilioRoute.prototype["account_sid"] = undefined;
|
|
141
141
|
|
|
142
142
|
/**
|
|
143
143
|
* @member {String} auth_token
|
|
144
144
|
*/
|
|
145
|
-
TwilioRoute.prototype[
|
|
145
|
+
TwilioRoute.prototype["auth_token"] = undefined;
|
|
146
146
|
|
|
147
147
|
/**
|
|
148
148
|
* @member {module:model/Filter} filter
|
|
149
149
|
*/
|
|
150
|
-
TwilioRoute.prototype[
|
|
150
|
+
TwilioRoute.prototype["filter"] = undefined;
|
|
151
151
|
|
|
152
152
|
/**
|
|
153
153
|
* @member {Array.<String>} fleets
|
|
154
154
|
*/
|
|
155
|
-
TwilioRoute.prototype[
|
|
155
|
+
TwilioRoute.prototype["fleets"] = undefined;
|
|
156
156
|
|
|
157
157
|
/**
|
|
158
158
|
* @member {String} from
|
|
159
159
|
*/
|
|
160
|
-
TwilioRoute.prototype[
|
|
160
|
+
TwilioRoute.prototype["from"] = undefined;
|
|
161
161
|
|
|
162
162
|
/**
|
|
163
163
|
* @member {String} message
|
|
164
164
|
*/
|
|
165
|
-
TwilioRoute.prototype[
|
|
165
|
+
TwilioRoute.prototype["message"] = undefined;
|
|
166
166
|
|
|
167
167
|
/**
|
|
168
168
|
* @member {Number} throttle_ms
|
|
169
169
|
*/
|
|
170
|
-
TwilioRoute.prototype[
|
|
170
|
+
TwilioRoute.prototype["throttle_ms"] = undefined;
|
|
171
171
|
|
|
172
172
|
/**
|
|
173
173
|
* @member {Number} timeout
|
|
174
174
|
*/
|
|
175
|
-
TwilioRoute.prototype[
|
|
175
|
+
TwilioRoute.prototype["timeout"] = undefined;
|
|
176
176
|
|
|
177
177
|
/**
|
|
178
178
|
* @member {String} to
|
|
179
179
|
*/
|
|
180
|
-
TwilioRoute.prototype[
|
|
180
|
+
TwilioRoute.prototype["to"] = undefined;
|
|
181
181
|
var _default = exports["default"] = TwilioRoute;
|
|
@@ -14,7 +14,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
14
14
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
15
15
|
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); } /**
|
|
16
16
|
* Notehub API
|
|
17
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
17
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
18
18
|
*
|
|
19
19
|
* The version of the OpenAPI document: 1.2.0
|
|
20
20
|
* Contact: engineering@blues.io
|
|
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
27
27
|
/**
|
|
28
28
|
* The UpdateFleetRequest model module.
|
|
29
29
|
* @module model/UpdateFleetRequest
|
|
30
|
-
* @version 2.2.
|
|
30
|
+
* @version 2.2.1
|
|
31
31
|
*/
|
|
32
32
|
var UpdateFleetRequest = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
|
@@ -60,23 +60,23 @@ var UpdateFleetRequest = /*#__PURE__*/function () {
|
|
|
60
60
|
value: function constructFromObject(data, obj) {
|
|
61
61
|
if (data) {
|
|
62
62
|
obj = obj || new UpdateFleetRequest();
|
|
63
|
-
if (data.hasOwnProperty(
|
|
64
|
-
obj[
|
|
63
|
+
if (data.hasOwnProperty("addDevices")) {
|
|
64
|
+
obj["addDevices"] = _ApiClient["default"].convertToType(data["addDevices"], ["String"]);
|
|
65
65
|
}
|
|
66
|
-
if (data.hasOwnProperty(
|
|
67
|
-
obj[
|
|
66
|
+
if (data.hasOwnProperty("connectivity_assurance")) {
|
|
67
|
+
obj["connectivity_assurance"] = _FleetConnectivityAssurance["default"].constructFromObject(data["connectivity_assurance"]);
|
|
68
68
|
}
|
|
69
|
-
if (data.hasOwnProperty(
|
|
70
|
-
obj[
|
|
69
|
+
if (data.hasOwnProperty("label")) {
|
|
70
|
+
obj["label"] = _ApiClient["default"].convertToType(data["label"], "String");
|
|
71
71
|
}
|
|
72
|
-
if (data.hasOwnProperty(
|
|
73
|
-
obj[
|
|
72
|
+
if (data.hasOwnProperty("removeDevices")) {
|
|
73
|
+
obj["removeDevices"] = _ApiClient["default"].convertToType(data["removeDevices"], ["String"]);
|
|
74
74
|
}
|
|
75
|
-
if (data.hasOwnProperty(
|
|
76
|
-
obj[
|
|
75
|
+
if (data.hasOwnProperty("smart_rule")) {
|
|
76
|
+
obj["smart_rule"] = _ApiClient["default"].convertToType(data["smart_rule"], "String");
|
|
77
77
|
}
|
|
78
|
-
if (data.hasOwnProperty(
|
|
79
|
-
obj[
|
|
78
|
+
if (data.hasOwnProperty("watchdog_mins")) {
|
|
79
|
+
obj["watchdog_mins"] = _ApiClient["default"].convertToType(data["watchdog_mins"], "Number");
|
|
80
80
|
}
|
|
81
81
|
} else if (data === null) {
|
|
82
82
|
return null;
|
|
@@ -93,25 +93,25 @@ var UpdateFleetRequest = /*#__PURE__*/function () {
|
|
|
93
93
|
key: "validateJSON",
|
|
94
94
|
value: function validateJSON(data) {
|
|
95
95
|
// ensure the json data is an array
|
|
96
|
-
if (!Array.isArray(data[
|
|
97
|
-
throw new Error("Expected the field `addDevices` to be an array in the JSON data but got " + data[
|
|
96
|
+
if (!Array.isArray(data["addDevices"])) {
|
|
97
|
+
throw new Error("Expected the field `addDevices` to be an array in the JSON data but got " + data["addDevices"]);
|
|
98
98
|
}
|
|
99
99
|
// validate the optional field `connectivity_assurance`
|
|
100
|
-
if (data[
|
|
100
|
+
if (data["connectivity_assurance"]) {
|
|
101
101
|
// data not null
|
|
102
|
-
_FleetConnectivityAssurance["default"].validateJSON(data[
|
|
102
|
+
_FleetConnectivityAssurance["default"].validateJSON(data["connectivity_assurance"]);
|
|
103
103
|
}
|
|
104
104
|
// ensure the json data is a string
|
|
105
|
-
if (data[
|
|
106
|
-
throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data[
|
|
105
|
+
if (data["label"] && !(typeof data["label"] === "string" || data["label"] instanceof String)) {
|
|
106
|
+
throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data["label"]);
|
|
107
107
|
}
|
|
108
108
|
// ensure the json data is an array
|
|
109
|
-
if (!Array.isArray(data[
|
|
110
|
-
throw new Error("Expected the field `removeDevices` to be an array in the JSON data but got " + data[
|
|
109
|
+
if (!Array.isArray(data["removeDevices"])) {
|
|
110
|
+
throw new Error("Expected the field `removeDevices` to be an array in the JSON data but got " + data["removeDevices"]);
|
|
111
111
|
}
|
|
112
112
|
// ensure the json data is a string
|
|
113
|
-
if (data[
|
|
114
|
-
throw new Error("Expected the field `smart_rule` to be a primitive type in the JSON string but got " + data[
|
|
113
|
+
if (data["smart_rule"] && !(typeof data["smart_rule"] === "string" || data["smart_rule"] instanceof String)) {
|
|
114
|
+
throw new Error("Expected the field `smart_rule` to be a primitive type in the JSON string but got " + data["smart_rule"]);
|
|
115
115
|
}
|
|
116
116
|
return true;
|
|
117
117
|
}
|
|
@@ -121,34 +121,34 @@ var UpdateFleetRequest = /*#__PURE__*/function () {
|
|
|
121
121
|
* List of DeviceUIDs to add to fleet
|
|
122
122
|
* @member {Array.<String>} addDevices
|
|
123
123
|
*/
|
|
124
|
-
UpdateFleetRequest.prototype[
|
|
124
|
+
UpdateFleetRequest.prototype["addDevices"] = undefined;
|
|
125
125
|
|
|
126
126
|
/**
|
|
127
127
|
* @member {module:model/FleetConnectivityAssurance} connectivity_assurance
|
|
128
128
|
*/
|
|
129
|
-
UpdateFleetRequest.prototype[
|
|
129
|
+
UpdateFleetRequest.prototype["connectivity_assurance"] = undefined;
|
|
130
130
|
|
|
131
131
|
/**
|
|
132
132
|
* The label for the Fleet.
|
|
133
133
|
* @member {String} label
|
|
134
134
|
*/
|
|
135
|
-
UpdateFleetRequest.prototype[
|
|
135
|
+
UpdateFleetRequest.prototype["label"] = undefined;
|
|
136
136
|
|
|
137
137
|
/**
|
|
138
138
|
* List of DeviceUIDs to remove from fleet
|
|
139
139
|
* @member {Array.<String>} removeDevices
|
|
140
140
|
*/
|
|
141
|
-
UpdateFleetRequest.prototype[
|
|
141
|
+
UpdateFleetRequest.prototype["removeDevices"] = undefined;
|
|
142
142
|
|
|
143
143
|
/**
|
|
144
144
|
* JSONata expression that will be evaluated to determine device membership into this fleet, if the expression evaluates to a 1, the device will be included, if it evaluates to -1 it will be removed, and if it evaluates to 0 or errors it will be left unchanged.
|
|
145
145
|
* @member {String} smart_rule
|
|
146
146
|
*/
|
|
147
|
-
UpdateFleetRequest.prototype[
|
|
147
|
+
UpdateFleetRequest.prototype["smart_rule"] = undefined;
|
|
148
148
|
|
|
149
149
|
/**
|
|
150
150
|
* A watchdog timer is used to generate an event every N minutes of inactivity. 0 means no watchdog
|
|
151
151
|
* @member {Number} watchdog_mins
|
|
152
152
|
*/
|
|
153
|
-
UpdateFleetRequest.prototype[
|
|
153
|
+
UpdateFleetRequest.prototype["watchdog_mins"] = undefined;
|
|
154
154
|
var _default = exports["default"] = UpdateFleetRequest;
|