@blues-inc/notehub-js 1.0.10 → 1.0.12
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 +175 -180
- package/dist/ApiClient.js +155 -155
- package/dist/api/AuthorizationApi.js +15 -15
- package/dist/api/BillingAccountApi.js +13 -13
- package/dist/api/DeviceApi.js +157 -157
- package/dist/api/DevicesApi.js +58 -58
- package/dist/api/EnvironmentVariablesApi.js +110 -110
- package/dist/api/EventApi.js +94 -94
- package/dist/api/FilesApi.js +42 -42
- package/dist/api/FleetApi.js +160 -160
- package/dist/api/NotesApi.js +105 -105
- package/dist/api/ProductApi.js +29 -29
- package/dist/api/ProjectApi.js +137 -137
- package/dist/api/RouteApi.js +51 -51
- package/dist/index.js +14 -0
- package/dist/model/Aws.js +64 -64
- package/dist/model/Azure.js +42 -42
- package/dist/model/BillingAccount.js +20 -20
- package/dist/model/Body.js +4 -4
- package/dist/model/Contact.js +21 -21
- package/dist/model/CreateFleetRequest.js +6 -6
- package/dist/model/CreateProductRequest.js +21 -21
- package/dist/model/CreateProjectRequest.js +13 -13
- package/dist/model/DFUEnv.js +11 -11
- package/dist/model/DFUState.js +64 -64
- package/dist/model/DeleteDeviceFleetsRequest.js +7 -7
- package/dist/model/Device.js +82 -82
- package/dist/model/DeviceSession.js +181 -181
- package/dist/model/DeviceTowerInfo.js +13 -13
- package/dist/model/DeviceUsage.js +31 -31
- package/dist/model/Edgeimpulse.js +214 -0
- package/dist/model/EdgeimpulseSensorsInner.js +106 -0
- package/dist/model/EnvironmentVariables.js +7 -7
- package/dist/model/Error.js +30 -30
- package/dist/model/Event.js +222 -222
- package/dist/model/Fleet.js +20 -20
- package/dist/model/GetBillingAccounts200Response.js +8 -9
- package/dist/model/GetDeviceEnvironmentVariables200Response.js +11 -11
- package/dist/model/GetDeviceHealthLog200Response.js +10 -11
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +18 -18
- package/dist/model/GetDeviceLatest200Response.js +8 -9
- package/dist/model/GetDevicePublicKey200Response.js +15 -15
- package/dist/model/GetDeviceSessions200Response.js +15 -16
- package/dist/model/GetProjectDevicePublicKeys200Response.js +15 -16
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +11 -11
- package/dist/model/GetProjectDevices200Response.js +15 -16
- package/dist/model/GetProjectEvents200Response.js +20 -21
- package/dist/model/GetProjectEventsByCursor200Response.js +22 -23
- package/dist/model/GetProjectFleets200Response.js +10 -11
- package/dist/model/GetProjectMembers200Response.js +10 -11
- package/dist/model/GetProjectProducts200Response.js +8 -9
- package/dist/model/GetProjects200Response.js +8 -9
- package/dist/model/Google.js +27 -27
- package/dist/model/HandleNoteChanges200Response.js +10 -10
- package/dist/model/HandleNoteGet200Response.js +12 -12
- package/dist/model/HandleNoteSignal200Response.js +4 -4
- package/dist/model/HandleNotefileChanges200Response.js +10 -10
- package/dist/model/HandleNotefileChangesPending200Response.js +13 -13
- package/dist/model/HandleNotefileDeleteRequest.js +6 -6
- package/dist/model/Http.js +34 -34
- package/dist/model/HttpFilter.js +18 -18
- package/dist/model/HttpTransform.js +19 -19
- package/dist/model/Location.js +39 -39
- package/dist/model/Login200Response.js +6 -6
- package/dist/model/LoginRequest.js +11 -11
- package/dist/model/Mqtt.js +65 -65
- package/dist/model/Note.js +9 -9
- package/dist/model/Product.js +25 -25
- package/dist/model/Project.js +33 -33
- package/dist/model/ProjectMember.js +21 -21
- package/dist/model/Proxy.js +23 -23
- package/dist/model/PutDeviceFleetsRequest.js +7 -7
- package/dist/model/Radresponder.js +24 -24
- package/dist/model/Route.js +40 -35
- package/dist/model/RouteSchema.js +39 -38
- package/dist/model/Snowflake.js +44 -44
- package/dist/model/SnowflakeTransform.js +11 -11
- package/dist/model/Thingworx.js +32 -32
- package/dist/model/TowerLocation.js +51 -51
- package/dist/model/Twilio.js +42 -42
- package/dist/model/UpdateFleetRequest.js +16 -16
- package/dist/model/UserDbRoute.js +24 -24
- package/package.json +3 -3
package/dist/model/Error.js
CHANGED
|
@@ -18,7 +18,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
18
18
|
/**
|
|
19
19
|
* The Error model module.
|
|
20
20
|
* @module model/Error
|
|
21
|
-
* @version 1.0.
|
|
21
|
+
* @version 1.0.12
|
|
22
22
|
*/
|
|
23
23
|
var Error = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
|
@@ -41,9 +41,9 @@ var Error = /*#__PURE__*/function () {
|
|
|
41
41
|
_createClass(Error, null, [{
|
|
42
42
|
key: "initialize",
|
|
43
43
|
value: function initialize(obj, err, code, status) {
|
|
44
|
-
obj[
|
|
45
|
-
obj[
|
|
46
|
-
obj[
|
|
44
|
+
obj["err"] = err;
|
|
45
|
+
obj["code"] = code;
|
|
46
|
+
obj["status"] = status;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
/**
|
|
@@ -58,23 +58,23 @@ var Error = /*#__PURE__*/function () {
|
|
|
58
58
|
value: function constructFromObject(data, obj) {
|
|
59
59
|
if (data) {
|
|
60
60
|
obj = obj || new Error();
|
|
61
|
-
if (data.hasOwnProperty(
|
|
62
|
-
obj[
|
|
61
|
+
if (data.hasOwnProperty("err")) {
|
|
62
|
+
obj["err"] = _ApiClient["default"].convertToType(data["err"], "String");
|
|
63
63
|
}
|
|
64
|
-
if (data.hasOwnProperty(
|
|
65
|
-
obj[
|
|
64
|
+
if (data.hasOwnProperty("code")) {
|
|
65
|
+
obj["code"] = _ApiClient["default"].convertToType(data["code"], "Number");
|
|
66
66
|
}
|
|
67
|
-
if (data.hasOwnProperty(
|
|
68
|
-
obj[
|
|
67
|
+
if (data.hasOwnProperty("status")) {
|
|
68
|
+
obj["status"] = _ApiClient["default"].convertToType(data["status"], "String");
|
|
69
69
|
}
|
|
70
|
-
if (data.hasOwnProperty(
|
|
71
|
-
obj[
|
|
70
|
+
if (data.hasOwnProperty("request")) {
|
|
71
|
+
obj["request"] = _ApiClient["default"].convertToType(data["request"], "String");
|
|
72
72
|
}
|
|
73
|
-
if (data.hasOwnProperty(
|
|
74
|
-
obj[
|
|
73
|
+
if (data.hasOwnProperty("details")) {
|
|
74
|
+
obj["details"] = _ApiClient["default"].convertToType(data["details"], Object);
|
|
75
75
|
}
|
|
76
|
-
if (data.hasOwnProperty(
|
|
77
|
-
obj[
|
|
76
|
+
if (data.hasOwnProperty("debug")) {
|
|
77
|
+
obj["debug"] = _ApiClient["default"].convertToType(data["debug"], "String");
|
|
78
78
|
}
|
|
79
79
|
} else if (data === null) {
|
|
80
80
|
return null;
|
|
@@ -106,20 +106,20 @@ var Error = /*#__PURE__*/function () {
|
|
|
106
106
|
} finally {
|
|
107
107
|
_iterator.f();
|
|
108
108
|
}
|
|
109
|
-
if (data[
|
|
110
|
-
throw new Error("Expected the field `err` to be a primitive type in the JSON string but got " + data[
|
|
109
|
+
if (data["err"] && !(typeof data["err"] === "string" || data["err"] instanceof String)) {
|
|
110
|
+
throw new Error("Expected the field `err` to be a primitive type in the JSON string but got " + data["err"]);
|
|
111
111
|
}
|
|
112
112
|
// ensure the json data is a string
|
|
113
|
-
if (data[
|
|
114
|
-
throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data[
|
|
113
|
+
if (data["status"] && !(typeof data["status"] === "string" || data["status"] instanceof String)) {
|
|
114
|
+
throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data["status"]);
|
|
115
115
|
}
|
|
116
116
|
// ensure the json data is a string
|
|
117
|
-
if (data[
|
|
118
|
-
throw new Error("Expected the field `request` to be a primitive type in the JSON string but got " + data[
|
|
117
|
+
if (data["request"] && !(typeof data["request"] === "string" || data["request"] instanceof String)) {
|
|
118
|
+
throw new Error("Expected the field `request` to be a primitive type in the JSON string but got " + data["request"]);
|
|
119
119
|
}
|
|
120
120
|
// ensure the json data is a string
|
|
121
|
-
if (data[
|
|
122
|
-
throw new Error("Expected the field `debug` to be a primitive type in the JSON string but got " + data[
|
|
121
|
+
if (data["debug"] && !(typeof data["debug"] === "string" || data["debug"] instanceof String)) {
|
|
122
|
+
throw new Error("Expected the field `debug` to be a primitive type in the JSON string but got " + data["debug"]);
|
|
123
123
|
}
|
|
124
124
|
return true;
|
|
125
125
|
}
|
|
@@ -132,33 +132,33 @@ Error.RequiredProperties = ["err", "code", "status"];
|
|
|
132
132
|
* Human readable error message.
|
|
133
133
|
* @member {String} err
|
|
134
134
|
*/
|
|
135
|
-
Error.prototype[
|
|
135
|
+
Error.prototype["err"] = undefined;
|
|
136
136
|
|
|
137
137
|
/**
|
|
138
138
|
* The HTTP error code associated with the error.
|
|
139
139
|
* @member {Number} code
|
|
140
140
|
*/
|
|
141
|
-
Error.prototype[
|
|
141
|
+
Error.prototype["code"] = undefined;
|
|
142
142
|
|
|
143
143
|
/**
|
|
144
144
|
* Machine readable representation of the HTTP error code.
|
|
145
145
|
* @member {String} status
|
|
146
146
|
*/
|
|
147
|
-
Error.prototype[
|
|
147
|
+
Error.prototype["status"] = undefined;
|
|
148
148
|
|
|
149
149
|
/**
|
|
150
150
|
* @member {String} request
|
|
151
151
|
*/
|
|
152
|
-
Error.prototype[
|
|
152
|
+
Error.prototype["request"] = undefined;
|
|
153
153
|
|
|
154
154
|
/**
|
|
155
155
|
* @member {Object} details
|
|
156
156
|
*/
|
|
157
|
-
Error.prototype[
|
|
157
|
+
Error.prototype["details"] = undefined;
|
|
158
158
|
|
|
159
159
|
/**
|
|
160
160
|
* @member {String} debug
|
|
161
161
|
*/
|
|
162
|
-
Error.prototype[
|
|
162
|
+
Error.prototype["debug"] = undefined;
|
|
163
163
|
var _default = Error;
|
|
164
164
|
exports["default"] = _default;
|