@blues-inc/notehub-js 1.0.9 → 1.0.11
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 +181 -178
- package/dist/ApiClient.js +157 -154
- package/dist/api/AuthorizationApi.js +63 -18
- package/dist/api/BillingAccountApi.js +15 -15
- package/dist/api/DeviceApi.js +159 -159
- 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 +139 -139
- package/dist/api/RouteApi.js +51 -51
- package/dist/index.js +7 -0
- package/dist/model/Aws.js +65 -64
- package/dist/model/Azure.js +51 -37
- 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/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/GenerateAuthToken200Response.js +114 -0
- 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 +70 -71
- 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 +25 -25
- package/dist/model/Route.js +35 -35
- package/dist/model/RouteSchema.js +53 -43
- package/dist/model/Snowflake.js +45 -45
- package/dist/model/SnowflakeTransform.js +11 -11
- package/dist/model/Thingworx.js +33 -32
- package/dist/model/TowerLocation.js +51 -51
- package/dist/model/Twilio.js +43 -43
- package/dist/model/UpdateFleetRequest.js +16 -16
- package/dist/model/UserDbRoute.js +24 -24
- package/package.json +3 -3
|
@@ -15,7 +15,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
15
15
|
/**
|
|
16
16
|
* The TowerLocation model module.
|
|
17
17
|
* @module model/TowerLocation
|
|
18
|
-
* @version 1.0.
|
|
18
|
+
* @version 1.0.11
|
|
19
19
|
*/
|
|
20
20
|
var TowerLocation = /*#__PURE__*/function () {
|
|
21
21
|
/**
|
|
@@ -48,47 +48,47 @@ var TowerLocation = /*#__PURE__*/function () {
|
|
|
48
48
|
value: function constructFromObject(data, obj) {
|
|
49
49
|
if (data) {
|
|
50
50
|
obj = obj || new TowerLocation();
|
|
51
|
-
if (data.hasOwnProperty(
|
|
52
|
-
obj[
|
|
51
|
+
if (data.hasOwnProperty("time")) {
|
|
52
|
+
obj["time"] = _ApiClient["default"].convertToType(data["time"], "Number");
|
|
53
53
|
}
|
|
54
|
-
if (data.hasOwnProperty(
|
|
55
|
-
obj[
|
|
54
|
+
if (data.hasOwnProperty("n")) {
|
|
55
|
+
obj["n"] = _ApiClient["default"].convertToType(data["n"], "String");
|
|
56
56
|
}
|
|
57
|
-
if (data.hasOwnProperty(
|
|
58
|
-
obj[
|
|
57
|
+
if (data.hasOwnProperty("c")) {
|
|
58
|
+
obj["c"] = _ApiClient["default"].convertToType(data["c"], "String");
|
|
59
59
|
}
|
|
60
|
-
if (data.hasOwnProperty(
|
|
61
|
-
obj[
|
|
60
|
+
if (data.hasOwnProperty("lat")) {
|
|
61
|
+
obj["lat"] = _ApiClient["default"].convertToType(data["lat"], "Number");
|
|
62
62
|
}
|
|
63
|
-
if (data.hasOwnProperty(
|
|
64
|
-
obj[
|
|
63
|
+
if (data.hasOwnProperty("lon")) {
|
|
64
|
+
obj["lon"] = _ApiClient["default"].convertToType(data["lon"], "Number");
|
|
65
65
|
}
|
|
66
|
-
if (data.hasOwnProperty(
|
|
67
|
-
obj[
|
|
66
|
+
if (data.hasOwnProperty("zone")) {
|
|
67
|
+
obj["zone"] = _ApiClient["default"].convertToType(data["zone"], "String");
|
|
68
68
|
}
|
|
69
|
-
if (data.hasOwnProperty(
|
|
70
|
-
obj[
|
|
69
|
+
if (data.hasOwnProperty("mcc")) {
|
|
70
|
+
obj["mcc"] = _ApiClient["default"].convertToType(data["mcc"], "Number");
|
|
71
71
|
}
|
|
72
|
-
if (data.hasOwnProperty(
|
|
73
|
-
obj[
|
|
72
|
+
if (data.hasOwnProperty("mnc")) {
|
|
73
|
+
obj["mnc"] = _ApiClient["default"].convertToType(data["mnc"], "Number");
|
|
74
74
|
}
|
|
75
|
-
if (data.hasOwnProperty(
|
|
76
|
-
obj[
|
|
75
|
+
if (data.hasOwnProperty("lac")) {
|
|
76
|
+
obj["lac"] = _ApiClient["default"].convertToType(data["lac"], "Number");
|
|
77
77
|
}
|
|
78
|
-
if (data.hasOwnProperty(
|
|
79
|
-
obj[
|
|
78
|
+
if (data.hasOwnProperty("cid")) {
|
|
79
|
+
obj["cid"] = _ApiClient["default"].convertToType(data["cid"], "Number");
|
|
80
80
|
}
|
|
81
|
-
if (data.hasOwnProperty(
|
|
82
|
-
obj[
|
|
81
|
+
if (data.hasOwnProperty("l")) {
|
|
82
|
+
obj["l"] = _ApiClient["default"].convertToType(data["l"], "String");
|
|
83
83
|
}
|
|
84
|
-
if (data.hasOwnProperty(
|
|
85
|
-
obj[
|
|
84
|
+
if (data.hasOwnProperty("z")) {
|
|
85
|
+
obj["z"] = _ApiClient["default"].convertToType(data["z"], "Number");
|
|
86
86
|
}
|
|
87
|
-
if (data.hasOwnProperty(
|
|
88
|
-
obj[
|
|
87
|
+
if (data.hasOwnProperty("count")) {
|
|
88
|
+
obj["count"] = _ApiClient["default"].convertToType(data["count"], "Number");
|
|
89
89
|
}
|
|
90
|
-
if (data.hasOwnProperty(
|
|
91
|
-
obj[
|
|
90
|
+
if (data.hasOwnProperty("towers")) {
|
|
91
|
+
obj["towers"] = _ApiClient["default"].convertToType(data["towers"], "Number");
|
|
92
92
|
}
|
|
93
93
|
} else if (data === null) {
|
|
94
94
|
return null;
|
|
@@ -105,20 +105,20 @@ var TowerLocation = /*#__PURE__*/function () {
|
|
|
105
105
|
key: "validateJSON",
|
|
106
106
|
value: function validateJSON(data) {
|
|
107
107
|
// ensure the json data is a string
|
|
108
|
-
if (data[
|
|
109
|
-
throw new Error("Expected the field `n` to be a primitive type in the JSON string but got " + data[
|
|
108
|
+
if (data["n"] && !(typeof data["n"] === "string" || data["n"] instanceof String)) {
|
|
109
|
+
throw new Error("Expected the field `n` to be a primitive type in the JSON string but got " + data["n"]);
|
|
110
110
|
}
|
|
111
111
|
// ensure the json data is a string
|
|
112
|
-
if (data[
|
|
113
|
-
throw new Error("Expected the field `c` to be a primitive type in the JSON string but got " + data[
|
|
112
|
+
if (data["c"] && !(typeof data["c"] === "string" || data["c"] instanceof String)) {
|
|
113
|
+
throw new Error("Expected the field `c` to be a primitive type in the JSON string but got " + data["c"]);
|
|
114
114
|
}
|
|
115
115
|
// ensure the json data is a string
|
|
116
|
-
if (data[
|
|
117
|
-
throw new Error("Expected the field `zone` to be a primitive type in the JSON string but got " + data[
|
|
116
|
+
if (data["zone"] && !(typeof data["zone"] === "string" || data["zone"] instanceof String)) {
|
|
117
|
+
throw new Error("Expected the field `zone` to be a primitive type in the JSON string but got " + data["zone"]);
|
|
118
118
|
}
|
|
119
119
|
// ensure the json data is a string
|
|
120
|
-
if (data[
|
|
121
|
-
throw new Error("Expected the field `l` to be a primitive type in the JSON string but got " + data[
|
|
120
|
+
if (data["l"] && !(typeof data["l"] === "string" || data["l"] instanceof String)) {
|
|
121
|
+
throw new Error("Expected the field `l` to be a primitive type in the JSON string but got " + data["l"]);
|
|
122
122
|
}
|
|
123
123
|
return true;
|
|
124
124
|
}
|
|
@@ -128,77 +128,77 @@ var TowerLocation = /*#__PURE__*/function () {
|
|
|
128
128
|
/**
|
|
129
129
|
* @member {Number} time
|
|
130
130
|
*/
|
|
131
|
-
TowerLocation.prototype[
|
|
131
|
+
TowerLocation.prototype["time"] = undefined;
|
|
132
132
|
|
|
133
133
|
/**
|
|
134
134
|
* Name of the location
|
|
135
135
|
* @member {String} n
|
|
136
136
|
*/
|
|
137
|
-
TowerLocation.prototype[
|
|
137
|
+
TowerLocation.prototype["n"] = undefined;
|
|
138
138
|
|
|
139
139
|
/**
|
|
140
140
|
* Country code
|
|
141
141
|
* @member {String} c
|
|
142
142
|
*/
|
|
143
|
-
TowerLocation.prototype[
|
|
143
|
+
TowerLocation.prototype["c"] = undefined;
|
|
144
144
|
|
|
145
145
|
/**
|
|
146
146
|
* @member {Number} lat
|
|
147
147
|
*/
|
|
148
|
-
TowerLocation.prototype[
|
|
148
|
+
TowerLocation.prototype["lat"] = undefined;
|
|
149
149
|
|
|
150
150
|
/**
|
|
151
151
|
* @member {Number} lon
|
|
152
152
|
*/
|
|
153
|
-
TowerLocation.prototype[
|
|
153
|
+
TowerLocation.prototype["lon"] = undefined;
|
|
154
154
|
|
|
155
155
|
/**
|
|
156
156
|
* @member {String} zone
|
|
157
157
|
*/
|
|
158
|
-
TowerLocation.prototype[
|
|
158
|
+
TowerLocation.prototype["zone"] = undefined;
|
|
159
159
|
|
|
160
160
|
/**
|
|
161
161
|
* @member {Number} mcc
|
|
162
162
|
*/
|
|
163
|
-
TowerLocation.prototype[
|
|
163
|
+
TowerLocation.prototype["mcc"] = undefined;
|
|
164
164
|
|
|
165
165
|
/**
|
|
166
166
|
* @member {Number} mnc
|
|
167
167
|
*/
|
|
168
|
-
TowerLocation.prototype[
|
|
168
|
+
TowerLocation.prototype["mnc"] = undefined;
|
|
169
169
|
|
|
170
170
|
/**
|
|
171
171
|
* @member {Number} lac
|
|
172
172
|
*/
|
|
173
|
-
TowerLocation.prototype[
|
|
173
|
+
TowerLocation.prototype["lac"] = undefined;
|
|
174
174
|
|
|
175
175
|
/**
|
|
176
176
|
* @member {Number} cid
|
|
177
177
|
*/
|
|
178
|
-
TowerLocation.prototype[
|
|
178
|
+
TowerLocation.prototype["cid"] = undefined;
|
|
179
179
|
|
|
180
180
|
/**
|
|
181
181
|
* Open location code
|
|
182
182
|
* @member {String} l
|
|
183
183
|
*/
|
|
184
|
-
TowerLocation.prototype[
|
|
184
|
+
TowerLocation.prototype["l"] = undefined;
|
|
185
185
|
|
|
186
186
|
/**
|
|
187
187
|
* Timezone ID
|
|
188
188
|
* @member {Number} z
|
|
189
189
|
*/
|
|
190
|
-
TowerLocation.prototype[
|
|
190
|
+
TowerLocation.prototype["z"] = undefined;
|
|
191
191
|
|
|
192
192
|
/**
|
|
193
193
|
* Number of times this location was recently used
|
|
194
194
|
* @member {Number} count
|
|
195
195
|
*/
|
|
196
|
-
TowerLocation.prototype[
|
|
196
|
+
TowerLocation.prototype["count"] = undefined;
|
|
197
197
|
|
|
198
198
|
/**
|
|
199
199
|
* Number of triangulation points
|
|
200
200
|
* @member {Number} towers
|
|
201
201
|
*/
|
|
202
|
-
TowerLocation.prototype[
|
|
202
|
+
TowerLocation.prototype["towers"] = undefined;
|
|
203
203
|
var _default = TowerLocation;
|
|
204
204
|
exports["default"] = _default;
|
package/dist/model/Twilio.js
CHANGED
|
@@ -16,7 +16,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
16
16
|
/**
|
|
17
17
|
* The Twilio model module.
|
|
18
18
|
* @module model/Twilio
|
|
19
|
-
* @version 1.0.
|
|
19
|
+
* @version 1.0.11
|
|
20
20
|
*/
|
|
21
21
|
var Twilio = /*#__PURE__*/function () {
|
|
22
22
|
/**
|
|
@@ -50,32 +50,32 @@ var Twilio = /*#__PURE__*/function () {
|
|
|
50
50
|
value: function constructFromObject(data, obj) {
|
|
51
51
|
if (data) {
|
|
52
52
|
obj = obj || new Twilio();
|
|
53
|
-
if (data.hasOwnProperty(
|
|
54
|
-
obj[
|
|
53
|
+
if (data.hasOwnProperty("fleets")) {
|
|
54
|
+
obj["fleets"] = _ApiClient["default"].convertToType(data["fleets"], ["String"]);
|
|
55
55
|
}
|
|
56
|
-
if (data.hasOwnProperty(
|
|
57
|
-
obj[
|
|
56
|
+
if (data.hasOwnProperty("filter")) {
|
|
57
|
+
obj["filter"] = _HttpFilter["default"].constructFromObject(data["filter"]);
|
|
58
58
|
}
|
|
59
|
-
if (data.hasOwnProperty(
|
|
60
|
-
obj[
|
|
59
|
+
if (data.hasOwnProperty("timeout")) {
|
|
60
|
+
obj["timeout"] = _ApiClient["default"].convertToType(data["timeout"], "Number");
|
|
61
61
|
}
|
|
62
|
-
if (data.hasOwnProperty(
|
|
63
|
-
obj[
|
|
62
|
+
if (data.hasOwnProperty("account_sid")) {
|
|
63
|
+
obj["account_sid"] = _ApiClient["default"].convertToType(data["account_sid"], "String");
|
|
64
64
|
}
|
|
65
|
-
if (data.hasOwnProperty(
|
|
66
|
-
obj[
|
|
65
|
+
if (data.hasOwnProperty("auth_token")) {
|
|
66
|
+
obj["auth_token"] = _ApiClient["default"].convertToType(data["auth_token"], "String");
|
|
67
67
|
}
|
|
68
|
-
if (data.hasOwnProperty(
|
|
69
|
-
obj[
|
|
68
|
+
if (data.hasOwnProperty("to")) {
|
|
69
|
+
obj["to"] = _ApiClient["default"].convertToType(data["to"], "String");
|
|
70
70
|
}
|
|
71
|
-
if (data.hasOwnProperty(
|
|
72
|
-
obj[
|
|
71
|
+
if (data.hasOwnProperty("from")) {
|
|
72
|
+
obj["from"] = _ApiClient["default"].convertToType(data["from"], "String");
|
|
73
73
|
}
|
|
74
|
-
if (data.hasOwnProperty(
|
|
75
|
-
obj[
|
|
74
|
+
if (data.hasOwnProperty("message")) {
|
|
75
|
+
obj["message"] = _ApiClient["default"].convertToType(data["message"], "String");
|
|
76
76
|
}
|
|
77
|
-
if (data.hasOwnProperty(
|
|
78
|
-
obj[
|
|
77
|
+
if (data.hasOwnProperty("throttle_ms")) {
|
|
78
|
+
obj["throttle_ms"] = _ApiClient["default"].convertToType(data["throttle_ms"], "Number");
|
|
79
79
|
}
|
|
80
80
|
} else if (data === null) {
|
|
81
81
|
return null;
|
|
@@ -92,33 +92,33 @@ var Twilio = /*#__PURE__*/function () {
|
|
|
92
92
|
key: "validateJSON",
|
|
93
93
|
value: function validateJSON(data) {
|
|
94
94
|
// ensure the json data is an array
|
|
95
|
-
if (!Array.isArray(data[
|
|
96
|
-
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data[
|
|
95
|
+
if (!Array.isArray(data["fleets"])) {
|
|
96
|
+
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data["fleets"]);
|
|
97
97
|
}
|
|
98
98
|
// validate the optional field `filter`
|
|
99
|
-
if (data[
|
|
99
|
+
if (data["filter"]) {
|
|
100
100
|
// data not null
|
|
101
|
-
_HttpFilter["default"].validateJSON(data[
|
|
101
|
+
_HttpFilter["default"].validateJSON(data["filter"]);
|
|
102
102
|
}
|
|
103
103
|
// ensure the json data is a string
|
|
104
|
-
if (data[
|
|
105
|
-
throw new Error("Expected the field `account_sid` to be a primitive type in the JSON string but got " + data[
|
|
104
|
+
if (data["account_sid"] && !(typeof data["account_sid"] === "string" || data["account_sid"] instanceof String)) {
|
|
105
|
+
throw new Error("Expected the field `account_sid` to be a primitive type in the JSON string but got " + data["account_sid"]);
|
|
106
106
|
}
|
|
107
107
|
// ensure the json data is a string
|
|
108
|
-
if (data[
|
|
109
|
-
throw new Error("Expected the field `auth_token` to be a primitive type in the JSON string but got " + data[
|
|
108
|
+
if (data["auth_token"] && !(typeof data["auth_token"] === "string" || data["auth_token"] instanceof String)) {
|
|
109
|
+
throw new Error("Expected the field `auth_token` to be a primitive type in the JSON string but got " + data["auth_token"]);
|
|
110
110
|
}
|
|
111
111
|
// ensure the json data is a string
|
|
112
|
-
if (data[
|
|
113
|
-
throw new Error("Expected the field `to` to be a primitive type in the JSON string but got " + data[
|
|
112
|
+
if (data["to"] && !(typeof data["to"] === "string" || data["to"] instanceof String)) {
|
|
113
|
+
throw new Error("Expected the field `to` to be a primitive type in the JSON string but got " + data["to"]);
|
|
114
114
|
}
|
|
115
115
|
// ensure the json data is a string
|
|
116
|
-
if (data[
|
|
117
|
-
throw new Error("Expected the field `from` to be a primitive type in the JSON string but got " + data[
|
|
116
|
+
if (data["from"] && !(typeof data["from"] === "string" || data["from"] instanceof String)) {
|
|
117
|
+
throw new Error("Expected the field `from` to be a primitive type in the JSON string but got " + data["from"]);
|
|
118
118
|
}
|
|
119
119
|
// ensure the json data is a string
|
|
120
|
-
if (data[
|
|
121
|
-
throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data[
|
|
120
|
+
if (data["message"] && !(typeof data["message"] === "string" || data["message"] instanceof String)) {
|
|
121
|
+
throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data["message"]);
|
|
122
122
|
}
|
|
123
123
|
return true;
|
|
124
124
|
}
|
|
@@ -129,53 +129,53 @@ var Twilio = /*#__PURE__*/function () {
|
|
|
129
129
|
* list of Fleet UIDs to apply route to, if any. If empty, applies to all Fleets
|
|
130
130
|
* @member {Array.<String>} fleets
|
|
131
131
|
*/
|
|
132
|
-
Twilio.prototype[
|
|
132
|
+
Twilio.prototype["fleets"] = undefined;
|
|
133
133
|
|
|
134
134
|
/**
|
|
135
135
|
* @member {module:model/HttpFilter} filter
|
|
136
136
|
*/
|
|
137
|
-
Twilio.prototype[
|
|
137
|
+
Twilio.prototype["filter"] = undefined;
|
|
138
138
|
|
|
139
139
|
/**
|
|
140
140
|
* Timeout in seconds for each request
|
|
141
141
|
* @member {Number} timeout
|
|
142
142
|
* @default 15
|
|
143
143
|
*/
|
|
144
|
-
Twilio.prototype[
|
|
144
|
+
Twilio.prototype["timeout"] = 15;
|
|
145
145
|
|
|
146
146
|
/**
|
|
147
147
|
* Twilio Account SID
|
|
148
148
|
* @member {String} account_sid
|
|
149
149
|
*/
|
|
150
|
-
Twilio.prototype[
|
|
150
|
+
Twilio.prototype["account_sid"] = undefined;
|
|
151
151
|
|
|
152
152
|
/**
|
|
153
|
-
* Twilio Auth Token
|
|
153
|
+
* Twilio Auth Token. This value will be omitted from the response and replaced with a placeholder.
|
|
154
154
|
* @member {String} auth_token
|
|
155
155
|
*/
|
|
156
|
-
Twilio.prototype[
|
|
156
|
+
Twilio.prototype["auth_token"] = undefined;
|
|
157
157
|
|
|
158
158
|
/**
|
|
159
159
|
* Phone number to send SMS to, leave blank to use notefile, must use E.164 format
|
|
160
160
|
* @member {String} to
|
|
161
161
|
*/
|
|
162
|
-
Twilio.prototype[
|
|
162
|
+
Twilio.prototype["to"] = undefined;
|
|
163
163
|
|
|
164
164
|
/**
|
|
165
165
|
* Phone number to send SMS from, leave blank to use notefile, must use E.164 format
|
|
166
166
|
* @member {String} from
|
|
167
167
|
*/
|
|
168
|
-
Twilio.prototype[
|
|
168
|
+
Twilio.prototype["from"] = undefined;
|
|
169
169
|
|
|
170
170
|
/**
|
|
171
171
|
* Message to send, leave blank to use notefile.
|
|
172
172
|
* @member {String} message
|
|
173
173
|
*/
|
|
174
|
-
Twilio.prototype[
|
|
174
|
+
Twilio.prototype["message"] = undefined;
|
|
175
175
|
|
|
176
176
|
/**
|
|
177
177
|
* @member {Number} throttle_ms
|
|
178
178
|
*/
|
|
179
|
-
Twilio.prototype[
|
|
179
|
+
Twilio.prototype["throttle_ms"] = undefined;
|
|
180
180
|
var _default = Twilio;
|
|
181
181
|
exports["default"] = _default;
|
|
@@ -15,7 +15,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
15
15
|
/**
|
|
16
16
|
* The UpdateFleetRequest model module.
|
|
17
17
|
* @module model/UpdateFleetRequest
|
|
18
|
-
* @version 1.0.
|
|
18
|
+
* @version 1.0.11
|
|
19
19
|
*/
|
|
20
20
|
var UpdateFleetRequest = /*#__PURE__*/function () {
|
|
21
21
|
/**
|
|
@@ -48,14 +48,14 @@ var UpdateFleetRequest = /*#__PURE__*/function () {
|
|
|
48
48
|
value: function constructFromObject(data, obj) {
|
|
49
49
|
if (data) {
|
|
50
50
|
obj = obj || new UpdateFleetRequest();
|
|
51
|
-
if (data.hasOwnProperty(
|
|
52
|
-
obj[
|
|
51
|
+
if (data.hasOwnProperty("label")) {
|
|
52
|
+
obj["label"] = _ApiClient["default"].convertToType(data["label"], "String");
|
|
53
53
|
}
|
|
54
|
-
if (data.hasOwnProperty(
|
|
55
|
-
obj[
|
|
54
|
+
if (data.hasOwnProperty("addDevices")) {
|
|
55
|
+
obj["addDevices"] = _ApiClient["default"].convertToType(data["addDevices"], ["String"]);
|
|
56
56
|
}
|
|
57
|
-
if (data.hasOwnProperty(
|
|
58
|
-
obj[
|
|
57
|
+
if (data.hasOwnProperty("removeDevices")) {
|
|
58
|
+
obj["removeDevices"] = _ApiClient["default"].convertToType(data["removeDevices"], ["String"]);
|
|
59
59
|
}
|
|
60
60
|
} else if (data === null) {
|
|
61
61
|
return null;
|
|
@@ -72,16 +72,16 @@ var UpdateFleetRequest = /*#__PURE__*/function () {
|
|
|
72
72
|
key: "validateJSON",
|
|
73
73
|
value: function validateJSON(data) {
|
|
74
74
|
// ensure the json data is a string
|
|
75
|
-
if (data[
|
|
76
|
-
throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data[
|
|
75
|
+
if (data["label"] && !(typeof data["label"] === "string" || data["label"] instanceof String)) {
|
|
76
|
+
throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data["label"]);
|
|
77
77
|
}
|
|
78
78
|
// ensure the json data is an array
|
|
79
|
-
if (!Array.isArray(data[
|
|
80
|
-
throw new Error("Expected the field `addDevices` to be an array in the JSON data but got " + data[
|
|
79
|
+
if (!Array.isArray(data["addDevices"])) {
|
|
80
|
+
throw new Error("Expected the field `addDevices` to be an array in the JSON data but got " + data["addDevices"]);
|
|
81
81
|
}
|
|
82
82
|
// ensure the json data is an array
|
|
83
|
-
if (!Array.isArray(data[
|
|
84
|
-
throw new Error("Expected the field `removeDevices` to be an array in the JSON data but got " + data[
|
|
83
|
+
if (!Array.isArray(data["removeDevices"])) {
|
|
84
|
+
throw new Error("Expected the field `removeDevices` to be an array in the JSON data but got " + data["removeDevices"]);
|
|
85
85
|
}
|
|
86
86
|
return true;
|
|
87
87
|
}
|
|
@@ -92,18 +92,18 @@ var UpdateFleetRequest = /*#__PURE__*/function () {
|
|
|
92
92
|
* The label for the Fleet.
|
|
93
93
|
* @member {String} label
|
|
94
94
|
*/
|
|
95
|
-
UpdateFleetRequest.prototype[
|
|
95
|
+
UpdateFleetRequest.prototype["label"] = undefined;
|
|
96
96
|
|
|
97
97
|
/**
|
|
98
98
|
* List of DeviceUIDs to add to fleet
|
|
99
99
|
* @member {Array.<String>} addDevices
|
|
100
100
|
*/
|
|
101
|
-
UpdateFleetRequest.prototype[
|
|
101
|
+
UpdateFleetRequest.prototype["addDevices"] = undefined;
|
|
102
102
|
|
|
103
103
|
/**
|
|
104
104
|
* List of DeviceUIDs to remove from fleet
|
|
105
105
|
* @member {Array.<String>} removeDevices
|
|
106
106
|
*/
|
|
107
|
-
UpdateFleetRequest.prototype[
|
|
107
|
+
UpdateFleetRequest.prototype["removeDevices"] = undefined;
|
|
108
108
|
var _default = UpdateFleetRequest;
|
|
109
109
|
exports["default"] = _default;
|
|
@@ -15,7 +15,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
15
15
|
/**
|
|
16
16
|
* The UserDbRoute model module.
|
|
17
17
|
* @module model/UserDbRoute
|
|
18
|
-
* @version 1.0.
|
|
18
|
+
* @version 1.0.11
|
|
19
19
|
*/
|
|
20
20
|
var UserDbRoute = /*#__PURE__*/function () {
|
|
21
21
|
/**
|
|
@@ -48,20 +48,20 @@ var UserDbRoute = /*#__PURE__*/function () {
|
|
|
48
48
|
value: function constructFromObject(data, obj) {
|
|
49
49
|
if (data) {
|
|
50
50
|
obj = obj || new UserDbRoute();
|
|
51
|
-
if (data.hasOwnProperty(
|
|
52
|
-
obj[
|
|
51
|
+
if (data.hasOwnProperty("uid")) {
|
|
52
|
+
obj["uid"] = _ApiClient["default"].convertToType(data["uid"], "String");
|
|
53
53
|
}
|
|
54
|
-
if (data.hasOwnProperty(
|
|
55
|
-
obj[
|
|
54
|
+
if (data.hasOwnProperty("label")) {
|
|
55
|
+
obj["label"] = _ApiClient["default"].convertToType(data["label"], "String");
|
|
56
56
|
}
|
|
57
|
-
if (data.hasOwnProperty(
|
|
58
|
-
obj[
|
|
57
|
+
if (data.hasOwnProperty("type")) {
|
|
58
|
+
obj["type"] = _ApiClient["default"].convertToType(data["type"], "String");
|
|
59
59
|
}
|
|
60
|
-
if (data.hasOwnProperty(
|
|
61
|
-
obj[
|
|
60
|
+
if (data.hasOwnProperty("modified")) {
|
|
61
|
+
obj["modified"] = _ApiClient["default"].convertToType(data["modified"], "String");
|
|
62
62
|
}
|
|
63
|
-
if (data.hasOwnProperty(
|
|
64
|
-
obj[
|
|
63
|
+
if (data.hasOwnProperty("disabled")) {
|
|
64
|
+
obj["disabled"] = _ApiClient["default"].convertToType(data["disabled"], "Boolean");
|
|
65
65
|
}
|
|
66
66
|
} else if (data === null) {
|
|
67
67
|
return null;
|
|
@@ -78,20 +78,20 @@ var UserDbRoute = /*#__PURE__*/function () {
|
|
|
78
78
|
key: "validateJSON",
|
|
79
79
|
value: function validateJSON(data) {
|
|
80
80
|
// ensure the json data is a string
|
|
81
|
-
if (data[
|
|
82
|
-
throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data[
|
|
81
|
+
if (data["uid"] && !(typeof data["uid"] === "string" || data["uid"] instanceof String)) {
|
|
82
|
+
throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data["uid"]);
|
|
83
83
|
}
|
|
84
84
|
// ensure the json data is a string
|
|
85
|
-
if (data[
|
|
86
|
-
throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data[
|
|
85
|
+
if (data["label"] && !(typeof data["label"] === "string" || data["label"] instanceof String)) {
|
|
86
|
+
throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data["label"]);
|
|
87
87
|
}
|
|
88
88
|
// ensure the json data is a string
|
|
89
|
-
if (data[
|
|
90
|
-
throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data[
|
|
89
|
+
if (data["type"] && !(typeof data["type"] === "string" || data["type"] instanceof String)) {
|
|
90
|
+
throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data["type"]);
|
|
91
91
|
}
|
|
92
92
|
// ensure the json data is a string
|
|
93
|
-
if (data[
|
|
94
|
-
throw new Error("Expected the field `modified` to be a primitive type in the JSON string but got " + data[
|
|
93
|
+
if (data["modified"] && !(typeof data["modified"] === "string" || data["modified"] instanceof String)) {
|
|
94
|
+
throw new Error("Expected the field `modified` to be a primitive type in the JSON string but got " + data["modified"]);
|
|
95
95
|
}
|
|
96
96
|
return true;
|
|
97
97
|
}
|
|
@@ -102,30 +102,30 @@ var UserDbRoute = /*#__PURE__*/function () {
|
|
|
102
102
|
* @member {String} uid
|
|
103
103
|
* @default 'route:8d65a087d5d290ce5bdf03aeff2becc0'
|
|
104
104
|
*/
|
|
105
|
-
UserDbRoute.prototype[
|
|
105
|
+
UserDbRoute.prototype["uid"] = "route:8d65a087d5d290ce5bdf03aeff2becc0";
|
|
106
106
|
|
|
107
107
|
/**
|
|
108
108
|
* @member {String} label
|
|
109
109
|
* @default 'success route'
|
|
110
110
|
*/
|
|
111
|
-
UserDbRoute.prototype[
|
|
111
|
+
UserDbRoute.prototype["label"] = "success route";
|
|
112
112
|
|
|
113
113
|
/**
|
|
114
114
|
* @member {String} type
|
|
115
115
|
* @default 'http'
|
|
116
116
|
*/
|
|
117
|
-
UserDbRoute.prototype[
|
|
117
|
+
UserDbRoute.prototype["type"] = "http";
|
|
118
118
|
|
|
119
119
|
/**
|
|
120
120
|
* @member {String} modified
|
|
121
121
|
* @default '2020-03-09T17:58:37Z'
|
|
122
122
|
*/
|
|
123
|
-
UserDbRoute.prototype[
|
|
123
|
+
UserDbRoute.prototype["modified"] = "2020-03-09T17:58:37Z";
|
|
124
124
|
|
|
125
125
|
/**
|
|
126
126
|
* @member {Boolean} disabled
|
|
127
127
|
* @default false
|
|
128
128
|
*/
|
|
129
|
-
UserDbRoute.prototype[
|
|
129
|
+
UserDbRoute.prototype["disabled"] = false;
|
|
130
130
|
var _default = UserDbRoute;
|
|
131
131
|
exports["default"] = _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blues-inc/notehub-js",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"description": "The OpenAPI definition for the Notehub.io API. ",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"browser": {
|
|
18
18
|
"fs": false
|
|
19
19
|
},
|
|
20
|
-
"publishConfig":{
|
|
21
|
-
"registry":"https://registry.npmjs.org"
|
|
20
|
+
"publishConfig": {
|
|
21
|
+
"registry": "https://registry.npmjs.org"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@babel/cli": "^7.0.0",
|