@blues-inc/notehub-js 2.1.0-beta.9 → 2.2.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 +238 -246
- 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 +374 -374
- 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 +50 -41
- 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/Aws.js +65 -65
- package/dist/model/AwsFilter.js +19 -19
- package/dist/model/AwsTransform.js +20 -20
- package/dist/model/Azure.js +43 -43
- package/dist/model/BillingAccount.js +21 -21
- package/dist/model/BillingAccountRole.js +9 -9
- 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 +12 -12
- 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/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/Firmware.js +49 -49
- package/dist/model/FirmwareInfo.js +60 -60
- package/dist/model/Fleet.js +30 -30
- 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 +53 -43
- 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/Google.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/Http.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/Mqtt.js +66 -66
- package/dist/model/Note.js +10 -10
- package/dist/model/NotefileSchema.js +18 -19
- package/dist/model/NotehubRoute.js +36 -36
- package/dist/model/NotehubRouteSchema.js +46 -45
- 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/Proxy.js +24 -24
- package/dist/model/PutDeviceFleetsRequest.js +8 -8
- package/dist/model/Radresponder.js +25 -25
- package/dist/model/Repository.js +22 -22
- package/dist/model/Role.js +9 -9
- package/dist/model/RouteLog.js +38 -38
- package/dist/model/SatellitePlan.js +26 -26
- package/dist/model/SchemaProperty.js +36 -38
- package/dist/model/SimUsage.js +19 -19
- package/dist/model/Slack.js +53 -53
- package/dist/model/SlackBearerNotification.js +25 -25
- package/dist/model/SlackTransform.js +12 -12
- package/dist/model/SlackWebHookNotification.js +20 -20
- package/dist/model/Snowflake.js +45 -45
- package/dist/model/Thingworx.js +33 -33
- package/dist/model/TowerLocation.js +54 -54
- package/dist/model/Twilio.js +43 -43
- package/dist/model/UpdateFleetRequest.js +25 -25
- package/dist/model/UploadMetadata.js +64 -64
- package/dist/model/UsageData.js +18 -18
- package/dist/model/UsageEventsData.js +38 -28
- package/dist/model/UsageEventsResponse.js +11 -12
- package/dist/model/UsageRouteLogsData.js +35 -36
- package/dist/model/UsageSessionsData.js +38 -28
- package/dist/model/UserDbRoute.js +25 -25
- 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/Snowflake.js
CHANGED
|
@@ -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 Snowflake model module.
|
|
30
30
|
* @module model/Snowflake
|
|
31
|
-
* @version 2.
|
|
31
|
+
* @version 2.2.0
|
|
32
32
|
*/
|
|
33
33
|
var Snowflake = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -62,32 +62,32 @@ var Snowflake = /*#__PURE__*/function () {
|
|
|
62
62
|
value: function constructFromObject(data, obj) {
|
|
63
63
|
if (data) {
|
|
64
64
|
obj = obj || new Snowflake();
|
|
65
|
-
if (data.hasOwnProperty(
|
|
66
|
-
obj[
|
|
65
|
+
if (data.hasOwnProperty("account_name")) {
|
|
66
|
+
obj["account_name"] = _ApiClient["default"].convertToType(data["account_name"], "String");
|
|
67
67
|
}
|
|
68
|
-
if (data.hasOwnProperty(
|
|
69
|
-
obj[
|
|
68
|
+
if (data.hasOwnProperty("filter")) {
|
|
69
|
+
obj["filter"] = _AwsFilter["default"].constructFromObject(data["filter"]);
|
|
70
70
|
}
|
|
71
|
-
if (data.hasOwnProperty(
|
|
72
|
-
obj[
|
|
71
|
+
if (data.hasOwnProperty("fleets")) {
|
|
72
|
+
obj["fleets"] = _ApiClient["default"].convertToType(data["fleets"], ["String"]);
|
|
73
73
|
}
|
|
74
|
-
if (data.hasOwnProperty(
|
|
75
|
-
obj[
|
|
74
|
+
if (data.hasOwnProperty("organization_name")) {
|
|
75
|
+
obj["organization_name"] = _ApiClient["default"].convertToType(data["organization_name"], "String");
|
|
76
76
|
}
|
|
77
|
-
if (data.hasOwnProperty(
|
|
78
|
-
obj[
|
|
77
|
+
if (data.hasOwnProperty("pem")) {
|
|
78
|
+
obj["pem"] = _ApiClient["default"].convertToType(data["pem"], "String");
|
|
79
79
|
}
|
|
80
|
-
if (data.hasOwnProperty(
|
|
81
|
-
obj[
|
|
80
|
+
if (data.hasOwnProperty("private_key_name")) {
|
|
81
|
+
obj["private_key_name"] = _ApiClient["default"].convertToType(data["private_key_name"], "String");
|
|
82
82
|
}
|
|
83
|
-
if (data.hasOwnProperty(
|
|
84
|
-
obj[
|
|
83
|
+
if (data.hasOwnProperty("timeout")) {
|
|
84
|
+
obj["timeout"] = _ApiClient["default"].convertToType(data["timeout"], "Number");
|
|
85
85
|
}
|
|
86
|
-
if (data.hasOwnProperty(
|
|
87
|
-
obj[
|
|
86
|
+
if (data.hasOwnProperty("transform")) {
|
|
87
|
+
obj["transform"] = _SlackTransform["default"].constructFromObject(data["transform"]);
|
|
88
88
|
}
|
|
89
|
-
if (data.hasOwnProperty(
|
|
90
|
-
obj[
|
|
89
|
+
if (data.hasOwnProperty("user_name")) {
|
|
90
|
+
obj["user_name"] = _ApiClient["default"].convertToType(data["user_name"], "String");
|
|
91
91
|
}
|
|
92
92
|
} else if (data === null) {
|
|
93
93
|
return null;
|
|
@@ -104,38 +104,38 @@ var Snowflake = /*#__PURE__*/function () {
|
|
|
104
104
|
key: "validateJSON",
|
|
105
105
|
value: function validateJSON(data) {
|
|
106
106
|
// ensure the json data is a string
|
|
107
|
-
if (data[
|
|
108
|
-
throw new Error("Expected the field `account_name` to be a primitive type in the JSON string but got " + data[
|
|
107
|
+
if (data["account_name"] && !(typeof data["account_name"] === "string" || data["account_name"] instanceof String)) {
|
|
108
|
+
throw new Error("Expected the field `account_name` to be a primitive type in the JSON string but got " + data["account_name"]);
|
|
109
109
|
}
|
|
110
110
|
// validate the optional field `filter`
|
|
111
|
-
if (data[
|
|
111
|
+
if (data["filter"]) {
|
|
112
112
|
// data not null
|
|
113
|
-
_AwsFilter["default"].validateJSON(data[
|
|
113
|
+
_AwsFilter["default"].validateJSON(data["filter"]);
|
|
114
114
|
}
|
|
115
115
|
// ensure the json data is an array
|
|
116
|
-
if (!Array.isArray(data[
|
|
117
|
-
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data[
|
|
116
|
+
if (!Array.isArray(data["fleets"])) {
|
|
117
|
+
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data["fleets"]);
|
|
118
118
|
}
|
|
119
119
|
// ensure the json data is a string
|
|
120
|
-
if (data[
|
|
121
|
-
throw new Error("Expected the field `organization_name` to be a primitive type in the JSON string but got " + data[
|
|
120
|
+
if (data["organization_name"] && !(typeof data["organization_name"] === "string" || data["organization_name"] instanceof String)) {
|
|
121
|
+
throw new Error("Expected the field `organization_name` to be a primitive type in the JSON string but got " + data["organization_name"]);
|
|
122
122
|
}
|
|
123
123
|
// ensure the json data is a string
|
|
124
|
-
if (data[
|
|
125
|
-
throw new Error("Expected the field `pem` to be a primitive type in the JSON string but got " + data[
|
|
124
|
+
if (data["pem"] && !(typeof data["pem"] === "string" || data["pem"] instanceof String)) {
|
|
125
|
+
throw new Error("Expected the field `pem` to be a primitive type in the JSON string but got " + data["pem"]);
|
|
126
126
|
}
|
|
127
127
|
// ensure the json data is a string
|
|
128
|
-
if (data[
|
|
129
|
-
throw new Error("Expected the field `private_key_name` to be a primitive type in the JSON string but got " + data[
|
|
128
|
+
if (data["private_key_name"] && !(typeof data["private_key_name"] === "string" || data["private_key_name"] instanceof String)) {
|
|
129
|
+
throw new Error("Expected the field `private_key_name` to be a primitive type in the JSON string but got " + data["private_key_name"]);
|
|
130
130
|
}
|
|
131
131
|
// validate the optional field `transform`
|
|
132
|
-
if (data[
|
|
132
|
+
if (data["transform"]) {
|
|
133
133
|
// data not null
|
|
134
|
-
_SlackTransform["default"].validateJSON(data[
|
|
134
|
+
_SlackTransform["default"].validateJSON(data["transform"]);
|
|
135
135
|
}
|
|
136
136
|
// ensure the json data is a string
|
|
137
|
-
if (data[
|
|
138
|
-
throw new Error("Expected the field `user_name` to be a primitive type in the JSON string but got " + data[
|
|
137
|
+
if (data["user_name"] && !(typeof data["user_name"] === "string" || data["user_name"] instanceof String)) {
|
|
138
|
+
throw new Error("Expected the field `user_name` to be a primitive type in the JSON string but got " + data["user_name"]);
|
|
139
139
|
}
|
|
140
140
|
return true;
|
|
141
141
|
}
|
|
@@ -144,51 +144,51 @@ var Snowflake = /*#__PURE__*/function () {
|
|
|
144
144
|
/**
|
|
145
145
|
* @member {String} account_name
|
|
146
146
|
*/
|
|
147
|
-
Snowflake.prototype[
|
|
147
|
+
Snowflake.prototype["account_name"] = undefined;
|
|
148
148
|
|
|
149
149
|
/**
|
|
150
150
|
* @member {module:model/AwsFilter} filter
|
|
151
151
|
*/
|
|
152
|
-
Snowflake.prototype[
|
|
152
|
+
Snowflake.prototype["filter"] = undefined;
|
|
153
153
|
|
|
154
154
|
/**
|
|
155
155
|
* list of Fleet UIDs to apply route to, if any. If empty, applies to all Fleets
|
|
156
156
|
* @member {Array.<String>} fleets
|
|
157
157
|
*/
|
|
158
|
-
Snowflake.prototype[
|
|
158
|
+
Snowflake.prototype["fleets"] = undefined;
|
|
159
159
|
|
|
160
160
|
/**
|
|
161
161
|
* @member {String} organization_name
|
|
162
162
|
*/
|
|
163
|
-
Snowflake.prototype[
|
|
163
|
+
Snowflake.prototype["organization_name"] = undefined;
|
|
164
164
|
|
|
165
165
|
/**
|
|
166
166
|
* PEM key with \\n newlines. This value is input-only and will be omitted from the response and replaced with a placeholder
|
|
167
167
|
* @member {String} pem
|
|
168
168
|
*/
|
|
169
|
-
Snowflake.prototype[
|
|
169
|
+
Snowflake.prototype["pem"] = undefined;
|
|
170
170
|
|
|
171
171
|
/**
|
|
172
172
|
* Name of PEM key. If omitted, defaults to \"present\"
|
|
173
173
|
* @member {String} private_key_name
|
|
174
174
|
* @default 'present'
|
|
175
175
|
*/
|
|
176
|
-
Snowflake.prototype[
|
|
176
|
+
Snowflake.prototype["private_key_name"] = "present";
|
|
177
177
|
|
|
178
178
|
/**
|
|
179
179
|
* Timeout in seconds for each request
|
|
180
180
|
* @member {Number} timeout
|
|
181
181
|
* @default 15
|
|
182
182
|
*/
|
|
183
|
-
Snowflake.prototype[
|
|
183
|
+
Snowflake.prototype["timeout"] = 15;
|
|
184
184
|
|
|
185
185
|
/**
|
|
186
186
|
* @member {module:model/SlackTransform} transform
|
|
187
187
|
*/
|
|
188
|
-
Snowflake.prototype[
|
|
188
|
+
Snowflake.prototype["transform"] = undefined;
|
|
189
189
|
|
|
190
190
|
/**
|
|
191
191
|
* @member {String} user_name
|
|
192
192
|
*/
|
|
193
|
-
Snowflake.prototype[
|
|
193
|
+
Snowflake.prototype["user_name"] = undefined;
|
|
194
194
|
var _default = exports["default"] = Snowflake;
|
package/dist/model/Thingworx.js
CHANGED
|
@@ -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 Thingworx model module.
|
|
30
30
|
* @module model/Thingworx
|
|
31
|
-
* @version 2.
|
|
31
|
+
* @version 2.2.0
|
|
32
32
|
*/
|
|
33
33
|
var Thingworx = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -62,26 +62,26 @@ var Thingworx = /*#__PURE__*/function () {
|
|
|
62
62
|
value: function constructFromObject(data, obj) {
|
|
63
63
|
if (data) {
|
|
64
64
|
obj = obj || new Thingworx();
|
|
65
|
-
if (data.hasOwnProperty(
|
|
66
|
-
obj[
|
|
65
|
+
if (data.hasOwnProperty("app_key")) {
|
|
66
|
+
obj["app_key"] = _ApiClient["default"].convertToType(data["app_key"], "String");
|
|
67
67
|
}
|
|
68
|
-
if (data.hasOwnProperty(
|
|
69
|
-
obj[
|
|
68
|
+
if (data.hasOwnProperty("filter")) {
|
|
69
|
+
obj["filter"] = _AwsFilter["default"].constructFromObject(data["filter"]);
|
|
70
70
|
}
|
|
71
|
-
if (data.hasOwnProperty(
|
|
72
|
-
obj[
|
|
71
|
+
if (data.hasOwnProperty("fleets")) {
|
|
72
|
+
obj["fleets"] = _ApiClient["default"].convertToType(data["fleets"], ["String"]);
|
|
73
73
|
}
|
|
74
|
-
if (data.hasOwnProperty(
|
|
75
|
-
obj[
|
|
74
|
+
if (data.hasOwnProperty("throttle_ms")) {
|
|
75
|
+
obj["throttle_ms"] = _ApiClient["default"].convertToType(data["throttle_ms"], "Number");
|
|
76
76
|
}
|
|
77
|
-
if (data.hasOwnProperty(
|
|
78
|
-
obj[
|
|
77
|
+
if (data.hasOwnProperty("timeout")) {
|
|
78
|
+
obj["timeout"] = _ApiClient["default"].convertToType(data["timeout"], "Number");
|
|
79
79
|
}
|
|
80
|
-
if (data.hasOwnProperty(
|
|
81
|
-
obj[
|
|
80
|
+
if (data.hasOwnProperty("transform")) {
|
|
81
|
+
obj["transform"] = _AwsTransform["default"].constructFromObject(data["transform"]);
|
|
82
82
|
}
|
|
83
|
-
if (data.hasOwnProperty(
|
|
84
|
-
obj[
|
|
83
|
+
if (data.hasOwnProperty("url")) {
|
|
84
|
+
obj["url"] = _ApiClient["default"].convertToType(data["url"], "String");
|
|
85
85
|
}
|
|
86
86
|
} else if (data === null) {
|
|
87
87
|
return null;
|
|
@@ -98,26 +98,26 @@ var Thingworx = /*#__PURE__*/function () {
|
|
|
98
98
|
key: "validateJSON",
|
|
99
99
|
value: function validateJSON(data) {
|
|
100
100
|
// ensure the json data is a string
|
|
101
|
-
if (data[
|
|
102
|
-
throw new Error("Expected the field `app_key` to be a primitive type in the JSON string but got " + data[
|
|
101
|
+
if (data["app_key"] && !(typeof data["app_key"] === "string" || data["app_key"] instanceof String)) {
|
|
102
|
+
throw new Error("Expected the field `app_key` to be a primitive type in the JSON string but got " + data["app_key"]);
|
|
103
103
|
}
|
|
104
104
|
// validate the optional field `filter`
|
|
105
|
-
if (data[
|
|
105
|
+
if (data["filter"]) {
|
|
106
106
|
// data not null
|
|
107
|
-
_AwsFilter["default"].validateJSON(data[
|
|
107
|
+
_AwsFilter["default"].validateJSON(data["filter"]);
|
|
108
108
|
}
|
|
109
109
|
// ensure the json data is an array
|
|
110
|
-
if (!Array.isArray(data[
|
|
111
|
-
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data[
|
|
110
|
+
if (!Array.isArray(data["fleets"])) {
|
|
111
|
+
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data["fleets"]);
|
|
112
112
|
}
|
|
113
113
|
// validate the optional field `transform`
|
|
114
|
-
if (data[
|
|
114
|
+
if (data["transform"]) {
|
|
115
115
|
// data not null
|
|
116
|
-
_AwsTransform["default"].validateJSON(data[
|
|
116
|
+
_AwsTransform["default"].validateJSON(data["transform"]);
|
|
117
117
|
}
|
|
118
118
|
// ensure the json data is a string
|
|
119
|
-
if (data[
|
|
120
|
-
throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data[
|
|
119
|
+
if (data["url"] && !(typeof data["url"] === "string" || data["url"] instanceof String)) {
|
|
120
|
+
throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data["url"]);
|
|
121
121
|
}
|
|
122
122
|
return true;
|
|
123
123
|
}
|
|
@@ -127,38 +127,38 @@ var Thingworx = /*#__PURE__*/function () {
|
|
|
127
127
|
* This value is input-only and will be omitted from the response and replaced with a placeholder
|
|
128
128
|
* @member {String} app_key
|
|
129
129
|
*/
|
|
130
|
-
Thingworx.prototype[
|
|
130
|
+
Thingworx.prototype["app_key"] = undefined;
|
|
131
131
|
|
|
132
132
|
/**
|
|
133
133
|
* @member {module:model/AwsFilter} filter
|
|
134
134
|
*/
|
|
135
|
-
Thingworx.prototype[
|
|
135
|
+
Thingworx.prototype["filter"] = undefined;
|
|
136
136
|
|
|
137
137
|
/**
|
|
138
138
|
* list of Fleet UIDs to apply route to, if any. If empty, applies to all Fleets
|
|
139
139
|
* @member {Array.<String>} fleets
|
|
140
140
|
*/
|
|
141
|
-
Thingworx.prototype[
|
|
141
|
+
Thingworx.prototype["fleets"] = undefined;
|
|
142
142
|
|
|
143
143
|
/**
|
|
144
144
|
* @member {Number} throttle_ms
|
|
145
145
|
*/
|
|
146
|
-
Thingworx.prototype[
|
|
146
|
+
Thingworx.prototype["throttle_ms"] = undefined;
|
|
147
147
|
|
|
148
148
|
/**
|
|
149
149
|
* Timeout in seconds for each request
|
|
150
150
|
* @member {Number} timeout
|
|
151
151
|
* @default 15
|
|
152
152
|
*/
|
|
153
|
-
Thingworx.prototype[
|
|
153
|
+
Thingworx.prototype["timeout"] = 15;
|
|
154
154
|
|
|
155
155
|
/**
|
|
156
156
|
* @member {module:model/AwsTransform} transform
|
|
157
157
|
*/
|
|
158
|
-
Thingworx.prototype[
|
|
158
|
+
Thingworx.prototype["transform"] = undefined;
|
|
159
159
|
|
|
160
160
|
/**
|
|
161
161
|
* @member {String} url
|
|
162
162
|
*/
|
|
163
|
-
Thingworx.prototype[
|
|
163
|
+
Thingworx.prototype["url"] = undefined;
|
|
164
164
|
var _default = exports["default"] = Thingworx;
|
|
@@ -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.
|
|
29
|
+
* @version 2.2.0
|
|
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;
|